/* .ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
} */

.sign-in-title {
    font-size: 3.75rem !important;
}

th.min-w-150::after {
    display: none !important;
}

.overflow-y {
    overflow: auto;
    width: 100%;
}

.action-top-bar {
    position: absolute;
    top: 0px;
    right: 0px;
}

.action-top-bar a:first-child {
    margin-left: 0;
}

.action-top-bar a {
    background-color: #f9f9f9;
    padding: calc(0.55rem + 1px) calc(1rem + 1px);
    font-size: 0.95rem;
    border-radius: 0.3rem;
    line-height: 1.5;
    color: #071437;
    display: inline-block;
    margin-left: 5px;
    height: 35px;
}

.action-top-bar a:hover {
    background-color: #1b84ff;
    color: #fff;
}

div.dataTables_wrapper {
    padding: 50px 0 0 0;
}

.dataTables_scroll > .dataTables_scrollBody > .table > thead {
    display: none !important;
}

table.dataTable thead > tr > td.sorting_asc:before,
table.dataTable thead > tr > td.sorting_desc:after,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:after {
    display: none !important;
}

table.dataTable > tbody > tr > td.select-checkbox:before,
table.dataTable > tbody > tr > th.select-checkbox:before {
    width: 20px;
    height: 20px;
    background-color: #f1f1f4;
    border: none;
    border-radius: 0.45em;
    border: none !important;
    margin-left: 0px;
    left: 0px;
}

table.dataTable > tbody > tr.selected > td.select-checkbox:after,
table.dataTable > tbody > tr.selected > th.select-checkbox:after {
    margin-top: -6px;
    margin-left: 0px;
    text-align: center;
    background: url(../assets/images/check.svg) center center no-repeat;
    width: 20px;
    height: 20px;
    display: block;
    font-size: 0px;
    background-size: 65% !important;
    left: 0px;
}

table.dataTable > tbody > tr.selected > td.select-checkbox:before {
    background-color: #1b84ff;
}

table.dataTable > tbody > tr.selected > * {
    box-shadow: none !important;
}

table.dataTable tbody > tr.selected {
    background-color: transparent !important;
}

.dataTables_wrapper
    .dataTables_scroll
    div.dataTables_scrollBody
    > table
    > tbody
    > tr
    > td {
    color: #071437;
}

table.table.dataTableCustom th,
table.table.dataTableCustom td {
    padding: 10px 18px !important;
}

table.table.dataTableCustom th:first-child,
table.table.dataTableCustom td:first-child {
    padding-left: 0px !important;
}

table.dataTable.dataTableCustom thead > tr > th.sorting_asc:after {
    display: none !important;
}

.menu-sub-indention .menu-item .menu-item .menu-link.active {
    margin-right: 0px !important;
}

.select2-container .select2-selection--single {
    height: auto;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px;
}

.form-check-input:checked[type="checkbox"] {
    background-size: 70% 70%;
}

.dropzone {
    background-color: #f9f9f9;
    border-color: #f9f9f9;
}

.aside
    .aside-menu
    .menu
    > .menu-item.menu-accordion.show
    > .menu-link
    > .menu-icon
    .svg-icon,
.aside
    .aside-menu
    .menu
    > .menu-item.menu-accordion.show
    > .menu-link
    > .menu-icon
    i,
.aside
    .aside-menu
    .menu
    > .menu-item.menu-accordion.showing
    > .menu-link
    > .menu-icon
    .svg-icon,
.aside
    .aside-menu
    .menu
    > .menu-item.menu-accordion.showing
    > .menu-link
    > .menu-icon
    i {
    transform: rotate(0deg) !important;
}

.reply-message-preview {
    display: none;
}

.reply-chat {
    display: none;
}

.cardCustom {
    height: 595px !important;
    position: relative;
}

.popcornOverviewHeight {
    height: 595px !important;
    position: relative;
}

.popcornOverviewHeight-noPaging {
    height: 595px !important;
    position: relative;
}

.cardCustom .loader {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cardCustom .tableWrap {
    height: 410px;
    overflow: scroll;
    padding-right: 10px;
}

.popcornOverviewHeight-noPaging .tableWrap {
    height: 465px;
    overflow: scroll;
    padding-right: 10px;
}

.popcornOverviewHeight .tableWrap {
    height: 470px;
    overflow: scroll;
    padding-right: 10px;
}

.cardCustom .tableWrap2 {
    height: 470px;
    overflow: scroll;
    padding-right: 10px;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    padding-left: 0px !important;
    display: block !important;
}

/* .campaign-div-wrapper .tableWrap {
    height: 100px;
    overflow: scroll;
} */

.custom-logo-sidebar {
    display: flex !important;
    align-items: flex-end !important;
}

.custom-logo-sidebar h1 {
    font-size: 15px !important;
    margin-left: 10px;
    padding-top: 5px;
}

.custom-pagination .flex.justify-between.flex-1 {
    display: none;
}

.custom-pagination .text-sm.text-gray-700.leading-5 {
    text-align: center;
}

.custom-pagination a {
    width: 45px;
    height: 45px;
    display: inline-block;
    line-height: 28px;
    text-align: center;
}

.custom-pagination span[aria-current="page"] {
    width: 45px;
    height: 45px;
    text-align: center;
    display: inline-block;
    line-height: 28px;
}

.custom-pagination span[aria-current="page"] span {
    color: #000 !important;
    width: 45px;
    height: 45px;
    text-align: center;
    display: inline-block;
    line-height: 28px;
    background: #f1f1f4 !important;
}

.custom-pagination span[aria-disabled="true"] {
    width: 45px;
    height: 45px;
    text-align: center;
    display: inline-block;
    line-height: 28px;
}

.custom-pagination span[aria-disabled="true"] span {
    width: 45px;
    height: 45px;
    text-align: center;
    display: inline-block;
    line-height: 28px;
}

.custom-pagination {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    position: absolute;
    bottom: 20px;
    left: 0px;
    right: 0px;
    margin-left: auto;
    margin-right: auto;
}

.custom-pagination nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.custom-pagination .relative[aria-disabled="true"] {
    cursor: default;
    color: #e2e8f0;
    background-color: #ffffff;
    border-color: #e2e8f0;
}

.custom-pagination .relative[aria-current="page"] {
    color: #2d3748;
    background-color: #edf2f7;
    border-color: #cbd5e0;
}

.custom-pagination .relative svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.custom-pagination .relative.ml-3 {
    margin-left: 0.75rem;
}

.custom-pagination .relative.rounded-md {
    border-radius: 0.375rem;
}

.custom-pagination .relative.rounded-l-md {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.custom-pagination .relative.rounded-r-md {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.custom-pagination .relative.bg-gray-800 {
    background-color: #2d3748;
}

.custom-pagination .relative.border-gray-600 {
    border-color: #4a5568;
}

.custom-pagination .relative.text-gray-300 {
    color: #e2e8f0;
}

.custom-pagination .relative.hover:text-gray-500:hover {
    color: #4a5568;
}

.custom-pagination .relative.active:bg-gray-100:active {
    background-color: #f7fafc;
}

.custom-pagination .relative.dark\:bg-gray-800 {
    background-color: #1a202c;
}

.custom-pagination .relative.dark\:border-gray-600 {
    border-color: #2d3748;
}

.custom-pagination .relative.dark\:text-gray-300 {
    color: #e2e8f0;
}

.custom-pagination .relative.dark\:hover\:text-gray-300:hover {
    color: #e2e8f0;
}

.custom-pagination .relative.dark\:active\:bg-gray-700:active {
    background-color: #2d3748;
}

.custom-pagination .relative.dark\:focus\:border-blue-800:focus {
    border-color: #2b6cb0;
}

.custom-pagination .relative[aria-label="Next »"],
.custom-pagination .relative[aria-label="« Previous"] {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.custom-pagination .relative[aria-label="Next »"] svg,
.custom-pagination .relative[aria-label="« Previous"] svg {
    width: 1.25rem;
    height: 1.25rem;
}

.zoom-container .image-container {
    overflow: hidden;
    position: relative;
}

.magnifier-lens {
    position: absolute;
    border-radius: 50%;
    cursor: none;
    width: 150px;
    height: 150px;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#image {
    width: 100%;
    height: auto;
}

.image-container img {
    transition: transform 0.1s ease;
}

#awardModal .modal-dialog {
    max-width: 800px;
}

.highcharts-title,
.highcharts-credits {
    display: none;
}

.table-responsive {
    max-height: 600px;
    max-width: 100%;
    overflow: auto;
    position: relative;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}

.table-responsive {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f25f;
}

.table-responsive thead {
    background-color: #f2f2f2b7;
    color: white; /* Ensure text is readable */
}

.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f2f2f2;
    color: rgba(0, 0, 0, 0.647);
}

.chart-container {
    width: 100%;
    height: 400px; /* Ensure proper height */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent overflow issues */
}

/* put this in app.css or a <style> block */
#page-overlay {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* over Bootstrap modals */
}

/* a quick Bootstrap-flavoured spinner */
#page-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.35em;
}

.apexcharts-toolbar .apex-fullscreen {
    cursor: pointer;
    margin-right: 4px;
}

.apexcharts-canvas:fullscreen {
    width: 100vw;
    height: 100vh !important;
    background: #fff;
}

:fullscreen,
:-webkit-full-screen {
    background: #fff;
}

:fullscreen .apexcharts-canvas,
:fullscreen .apexcharts-canvas svg,
:-webkit-full-screen .apexcharts-canvas,
:-webkit-full-screen .apexcharts-canvas svg {
    width: 100vw !important;
    height: 100vh !important;
}

.chart-fullscreen,
.chart-fullscreen .apexcharts-canvas,
.chart-fullscreen .apexcharts-canvas svg {
    width: 100vw !important;
    height: 100vh !important;
}

/* Aside is a flex sibling in .page, not a fixed overlay — Metronic's wrapper padding-left (~350px) would double the gap. */
#kt_wrapper {
    padding-left: 0 !important;
}

/* Desktop-collapsible sidebar (Metronic aside) */
#kt_aside {
    transition: width 540ms cubic-bezier(0.22, 1, 0.36, 1),
        min-width 540ms cubic-bezier(0.22, 1, 0.36, 1),
        max-width 540ms cubic-bezier(0.22, 1, 0.36, 1),
        flex-basis 540ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: width;
    /* Keep Metronic's vertical layout/scroll behavior stable. */
    overflow-y: hidden;
    overflow-x: visible; /* allow the toggle overlay to render above the edge */
}

@media (min-width: 992px) {
    /* Make the aside layout always fit the viewport (prevents stretching). */
    #kt_aside {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: 100vh;
    }

    #kt_aside_logo,
    #kt_aside_footer {
        flex: 0 0 auto;
        min-height: 0;
    }

    #kt_aside_menu {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden; /* let the scroll wrapper handle scrolling */
    }

    #kt_aside_menu_wrapper {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    #kt_aside {
        position: sticky;
        top: 50px;
        align-self: flex-start;
        width: 300px;
        min-width: 300px;
        max-width: 300px;
        flex-basis: 300px;
        max-height: calc(100vh - 100px);
        z-index: 100;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    /* Tighten aside header padding to make the toggle sit like the reference UI */
    #kt_aside_logo {
        position: relative;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #kt_body.sidebar-collapsed #kt_aside {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
        flex-basis: 84px !important; /* animate basis smoothly */
    }

    /* Make the content container expand to available width */
    #kt_body.sidebar-collapsed #kt_header_container,
    #kt_body.sidebar-collapsed #kt_content_container {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Ensure flex layout can grow; slight gutter so content does not sit flush on narrow collapsed rail */
    #kt_body.sidebar-collapsed #kt_wrapper {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        padding-left: 2rem !important;
    }

    /* Smoothly shift main area when sidebar width changes */
    #kt_wrapper,
    #kt_content,
    #kt_header_container,
    #kt_content_container {
        transition: padding-left 460ms cubic-bezier(0.22, 1, 0.36, 1),
            width 460ms cubic-bezier(0.22, 1, 0.36, 1),
            max-width 460ms cubic-bezier(0.22, 1, 0.36, 1),
            margin 460ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    #kt_body.sidebar-collapsed #kt_content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    /* No vertical overrides here: rely on Metronic KTScroll sizing. */

    /* Smooth text/icon transitions during collapse/expand */
    #kt_aside .menu-title,
    #kt_aside .menu-text,
    #kt_aside .menu-bullet,
    #kt_aside .menu-arrow {
        opacity: 1;
        transition: opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
            max-width 540ms cubic-bezier(0.22, 1, 0.36, 1);
        max-width: 260px;
        white-space: nowrap;
        overflow: hidden;
    }

    /* In collapsed mode, fade labels/arrows out after width transition starts */
    #kt_body.sidebar-collapsed:not(.sidebar-animating) #kt_aside .menu-title,
    #kt_body.sidebar-collapsed:not(.sidebar-animating) #kt_aside .menu-text,
    #kt_body.sidebar-collapsed:not(.sidebar-animating) #kt_aside .menu-bullet,
    #kt_body.sidebar-collapsed:not(.sidebar-animating) #kt_aside .menu-arrow {
        opacity: 0 !important;
        max-width: 0 !important;
        pointer-events: none;
    }

    /* Smooth icon row compaction */
    #kt_aside .menu-link {
        transition: padding-left 540ms cubic-bezier(0.22, 1, 0.36, 1),
            padding-right 540ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Collapse logo + account section smoothly */
    #kt_aside_logo .custom-logo-sidebar {
        transition: top 900ms cubic-bezier(0.22, 1, 0.36, 1),
            left 900ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 900ms ease,
            transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    #kt_aside_logo .custom-logo-sidebar .logo {
        transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1),
            transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 900ms ease;
    }

    #kt_aside_logo .custom-logo-sidebar h1,
    #kt_aside_footer .ms-2 {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 900ms ease, max-width 900ms ease, transform 900ms ease;
        max-width: 220px;
        overflow: hidden;
        white-space: nowrap;
    }

    #kt_body.sidebar-collapsed #kt_aside_logo .custom-logo-sidebar h1,
    #kt_body.sidebar-collapsed #kt_aside_footer .ms-2 {
        opacity: 0 !important;
        transform: translateX(-8px);
        max-width: 0 !important;
        pointer-events: none;
    }

    /* Ensure the toggle button remains visible in icon-only mode */
    #kt_body.sidebar-collapsed #kt_aside_logo {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sidebar-brand-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .sidebar-brand-link {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    /* Floating logo effect when sidebar is collapsed (toggle stays in sidebar) */
    #kt_body.sidebar-collapsed #kt_aside_logo .custom-logo-sidebar {
        position: fixed !important;
        /* Restore original floating placement */
        top: 10px !important;
        left: 12px !important;
        z-index: 1200 !important;
        /* Requested small horizontal nudge */
        padding-left: 4px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #kt_body.sidebar-collapsed #kt_aside_logo .custom-logo-sidebar .logo {
        height: 34px !important;
    }

    [data-bs-theme=dark] #kt_body.sidebar-collapsed #kt_aside_logo .custom-logo-sidebar {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Toggle placement outside sidebar (top-right edge) */
    .sidebar-toggle-row {
        position: absolute;
        top: 8px !important;
        right: 0 !important;
        width: 40px !important;
        transform: translateX(50%) !important;
        justify-content: center;
        z-index: 10000 !important;
        overflow: visible;
    }

    #kt_body.sidebar-collapsed .sidebar-toggle-row {
        top: 8px !important;
        right: 0 !important;
        left: auto !important;
        transform: translateX(50%) !important;
    }

    #kt_sidebar_toggler {
        position: relative;
        z-index: 10001 !important;
        border-radius: 9999px;
        /* Keep default high-contrast: avoid low-contrast blue-on-blue */
        color: #111827 !important;
        background: rgba(15, 23, 42, 0.06) !important;
        border-color: rgba(15, 23, 42, 0.14) !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    }

    #kt_sidebar_toggler:hover,
    #kt_sidebar_toggler:focus {
        color: #ffffff !important;
        background: var(--bs-primary) !important;
        border-color: var(--bs-primary) !important;
        box-shadow: 0 4px 14px rgba(27, 132, 255, 0.35);
    }

    [data-bs-theme=dark] #kt_sidebar_toggler {
        color: #e5e7eb !important;
        background: rgba(229, 231, 235, 0.08) !important;
        border-color: rgba(229, 231, 235, 0.22) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    }

    [data-bs-theme=dark] #kt_sidebar_toggler:hover,
    [data-bs-theme=dark] #kt_sidebar_toggler:focus {
        color: #ffffff !important;
        background: #1b84ff !important;
        border-color: #4da0ff !important;
    }

    /* Arrow direction:
       - sidebar expanded => arrow points left (default icon)
       - sidebar collapsed => arrow points right (rotate 180deg) */
    #kt_sidebar_toggler i {
        color: inherit !important;
        transform: none;
        transition: transform 220ms ease, color 220ms ease;
    }

    #kt_body.sidebar-collapsed #kt_sidebar_toggler i {
        transform: rotate(180deg);
    }

    /* Tighten padding so icons stay centered */
    #kt_body.sidebar-collapsed #kt_aside .aside-menu {
        padding-left: 0.75rem !important;
        padding-right: 0.25rem !important;
    }

    #kt_body.sidebar-collapsed:not(.sidebar-animating) #kt_aside .menu-link {
        justify-content: flex-start;
        padding-left: 0.75rem !important;
        padding-right: 0.5rem !important;
    }

    /* Ensure icon-only rendering stays visible */
    #kt_body.sidebar-collapsed #kt_aside .menu-link .menu-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: auto;
    }

    #kt_body.sidebar-collapsed #kt_aside .menu-link i,
    #kt_body.sidebar-collapsed #kt_aside .menu-link svg {
        visibility: visible !important;
    }

    /* Hide admin profile settings icon and text when collapsed */
    #kt_body.sidebar-collapsed #kt_aside_footer .ms-1,
    #kt_body.sidebar-collapsed #kt_aside_footer .ms-2 {
        display: none !important;
    }

    #kt_body.sidebar-collapsed #kt_aside_footer .d-flex.flex-stack {
        justify-content: center !important;
    }

    #kt_body.sidebar-collapsed #kt_aside_footer {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* No special positioning for the toggle wrapper in collapsed mode */
}

/* Period Comparison Report Enhancements */
#period-comparison-result .badge {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

#period-comparison-labels {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-radius: 0.5rem;
}

#period-comparison-btn {
    min-width: 200px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.25);
    transition: all 0.2s ease;
}

#period-comparison-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.35);
}

#period-comparison-chart-type {
    font-weight: 500;
}

.form-check-label {
    font-weight: 500;
    cursor: pointer;
}

#period-comparison-metrics-table {
    margin-bottom: 0;
}

#period-comparison-metrics-table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

#period-comparison-metrics-table tbody td {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
}

#period-comparison-metrics-table tbody tr:hover {
    background: rgba(var(--bs-primary-rgb), 0.04);
}

#period-comparison-metrics-col-diff {
    min-width: 140px;
}

.form-check:hover {
    background: rgba(var(--bs-gray-200-rgb), 0.3);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
}

#period-comparison-chart-type-hint {
    min-height: 20px;
    font-style: italic;
}

#period-comparison-chart-row .card {
    transition: all 0.2s ease;
}

#period-comparison-chart-row .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#period-comparison-chart-row .col-lg-6 .card {
    border: 2px solid rgba(var(--bs-primary-rgb), 0.1);
}

#period-comparison-chart-wrapper .card-title,
#period-comparison-chart2-wrapper .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-gray-800);
}

#period-comparison-metrics-row .card-header {
    cursor: pointer;
    transition: background 0.2s ease;
}

#period-comparison-metrics-row .card-header:hover {
    background: rgba(var(--bs-gray-100-rgb), 0.5);
}

#period-comparison-metrics-row .collapse-icon {
    transition: transform 0.3s ease;
}

#period-comparison-metrics-row .card-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}
