/* Minification failed. Returning unminified contents.
(3,17): run-time error CSS1039: Token not allowed after unary operator: '-navy'
(4,22): run-time error CSS1039: Token not allowed after unary operator: '-page-bg'
(599,28): run-time error CSS1039: Token not allowed after unary operator: '-bs-light'
(600,17): run-time error CSS1039: Token not allowed after unary operator: '-bs-primary'
(614,41): run-time error CSS1030: Expected identifier, found '.'
(614,51): run-time error CSS1031: Expected selector, found ')'
(614,51): run-time error CSS1025: Expected comma or open brace, found ')'
(623,17): run-time error CSS1039: Token not allowed after unary operator: '-kt-gray-500'
(630,17): run-time error CSS1039: Token not allowed after unary operator: '-kt-gray-800'
(637,17): run-time error CSS1039: Token not allowed after unary operator: '-kt-gray-600'
(645,28): run-time error CSS1039: Token not allowed after unary operator: '-kt-gray-400'
(653,28): run-time error CSS1039: Token not allowed after unary operator: '-kt-primary'
(660,28): run-time error CSS1039: Token not allowed after unary operator: '-kt-primary-light'
(665,21): run-time error CSS1039: Token not allowed after unary operator: '-kt-primary'
(670,17): run-time error CSS1039: Token not allowed after unary operator: '-kt-primary'
(675,33): run-time error CSS1039: Token not allowed after unary operator: '-kt-gray-200'
(680,34): run-time error CSS1039: Token not allowed after unary operator: '-kt-gray-200'
(1234,24): run-time error CSS1039: Token not allowed after unary operator: '-bs-primary'
(1314,24): run-time error CSS1039: Token not allowed after unary operator: '-bs-primary'
(1315,33): run-time error CSS1039: Token not allowed after unary operator: '-bs-primary-rgb'
(1316,41): run-time error CSS1039: Token not allowed after unary operator: '-bs-primary-rgb'
(1339,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(1345,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
 */
body {
    font-family: 'Space Grotesk',sans-serif;
    color: var(--navy);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .num {
    font-family: 'Space Grotesk',sans-serif;
}

.container {
    max-width: 100% !important;
}

/* video overlay on auth page */
.video-container {
    height: 100%;
    width: 100%;
    position: relative;
}

    .video-container video {
        width: 100%;
        height: 100%;
        position: absolute;
        object-fit: cover;
        z-index: 0;
    }

    .video-container .caption {
        z-index: 1;
        position: relative;
        text-align: center;
        color: #dc0000;
    }

.aside-menu .menu-bullet {
    padding-left: 25px;
    padding-right: 7px;
}

.highcharts-column-series rect,
.landing-bar .apexcharts-bar-series path {
    clip-path: inset(0% 0% -5px 0% round 5px);
}

.tile-chart-bar .apexcharts-bar-series path {
    clip-path: inset(0% 0% 0% -5px round 5px);
}

#menu-filters .menu-link {
    width: 175px;
    height: 34px;
    margin-top: 1px;
    margin-right: 10px;
}

.filter-bar {
    height: 3px;
    position: relative;
    top: -3px;
    background-color: #bfbfbf;
    width: 100%;
    margin: auto;
}

.landing-bar path,
.tile-chart-bar path {
    stroke-width: 0;
}

.highcharts-drilldown-axis-label {
    text-decoration: none !important;
    color: #666666 !important;
    fill: #666666 !important;
    font-weight: 400 !important;
}

.select2-container--disabled {
    opacity: 0.4 !important;
}

.select2-results li {
    font-size: 12px !important;
}

.select2-container--bootstrap5 .select2-dropdown .select2-results__options {
    max-height: 300px !important;
}

.highcharts-drilldown-data-label text {
    text-decoration: none !important;
    color: #666666 !important;
    fill: #666666 !important;
    font-weight: 400 !important;
}

#new-tile-placeholder {
    height: 440px;
    border: 5px dashed #eee;
    border-radius: 10px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

    #new-tile-placeholder:hover {
        border: 5px dashed #ddd;
        cursor: pointer;
    }

        #new-tile-placeholder:hover i {
            color: #ccc;
        }

    #new-tile-placeholder i {
        color: #eee;
        font-size: 80px;
    }

​
/* filter */
.dx-command-select {
    width: 10px !important;
    min-width: 10px !important;
}

.flatpickr-day.flatpickr-disabled {
    color: #e3e3e3;
}

.flatpickr-calendar {
    font-size: 13px !important;
}

.dx-widget {
    font-size: 13px !important;
    font-family: "Roboto" !important;
}

.dx-checkbox-icon {
    width: 18px !important;
    height: 18px !important;
}

.dx-checkbox-checked .dx-checkbox-icon {
    font: 13px/13px DXIcons !important;
    color: #ff6752 !important;
}

.dx-checkbox-indeterminate .dx-checkbox-icon {
    color: #ff6752 !important;
}

    .dx-checkbox-indeterminate .dx-checkbox-icon::before {
        background-color: #ff6752 !important;
    }

.dx-checkbox-checked .dx-checkbox-icon::before {
    top: 63% !important;
}

.dx-checkbox.dx-state-hover .dx-checkbox-icon {
    border: 1px solid #ff6752 !important;
}

.dx-treeview-item-with-checkbox.dx-state-focused > .dx-checkbox .dx-checkbox-icon {
    border: 1px solid #ff6752 !important;
}

.dx-texteditor.dx-state-active.dx-editor-filled,
.dx-texteditor.dx-state-active.dx-editor-outlined,
.dx-texteditor.dx-state-active.dx-editor-underlined,
.dx-texteditor.dx-state-focused.dx-editor-filled,
.dx-texteditor.dx-state-focused.dx-editor-outlined,
.dx-texteditor.dx-state-focused.dx-editor-underlined,
.dx-texteditor.dx-state-hover.dx-editor-filled,
.dx-texteditor.dx-state-hover.dx-editor-outlined,
.dx-texteditor.dx-state-hover.dx-editor-underlined {
    border-color: #ff6752 !important;
}

.dx-datagrid-search-panel {
    width: 100% !important;
    max-width: 100% !important;
}

    .dx-datagrid-search-panel .dx-texteditor {
        width: 100% !important;
    }
.dx-datagrid-header-panel,
.dx-datagrid-headers {
    border: 0 !important;
}

.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused):hover:not(.dx-row-lines) > td,
.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused):not(.dx-row-lines) > td {
    border: 0 !important;
    background-color: #FFF;
}

.dx-treeview-select-all-item {
    padding: 9px 0 11px 0px !important;
}
/* broken image placeholder */
.broken-override {
    display: block;
    position: relative;
}

    .broken-override::before {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #FFF;
    }

.wait-overlay {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: #FFF;
    background-image: url('ajax-loader.gif');
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10000000;
    opacity: 0.6;
    filter: alpha(opacity=40);
}

.symbol.symbol-45px {
    width: 45px !important;
    height: 45px !important;
}

    .symbol.symbol-45px > img {
        max-width: 45px !important;
        max-height: 45px !important;
        display: block !important;
        width: auto !important;
        height: auto !important;
    }

/* Calculation Group Colours */

.text-hover-success {
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .text-hover-success:hover {
        transition: color 0.2s ease, background-color 0.2s ease;
        color: #50CD89 !important;
    }

/* 
$blue:    #0d6efd;  
$indigo:  #6610f2;
$purple:  #6f42c1;
$pink:    #d63384;
$red:     #dc3545;
$orange:  #fd7e14;
$yellow:  #ffc107;
$green:   #198754;
*/
/* Blue ------ */
.badge-light-blue {
    color: #41B1F9;
    background-color: #eee;
}

.bg-blue {
    background-color: #41B1F9 !important;
    background: -webkit-linear-gradient(top, #41B1F9 50%, #ffffff 120%);
}

/* indigo ------ */

.badge-light-indigo {
    color: #41DFB6;
    background-color: #eee;
}

.bg-indigo {
    background-color: #41DFB6 !important;
    background: -webkit-linear-gradient(top, #41DFB6 50%, #ffffff 120%);
}

/* purple ------ */

.badge-light-purple {
    color: #9D91FB;
    background-color: #eee;
}

.bg-purple {
    background-color: #9D91FB !important;
    background: -webkit-linear-gradient(top, #9D91FB 50%, #ffffff 120%);
}


/* pink ------ */

.badge-light-pink {
    color: #ED80AA;
    background-color: #eee;
}

.bg-pink {
    background-color: #ED80AA !important;
    background: -webkit-linear-gradient(top, #ED80AA 50%, #ffffff 120%);
}


/* red ------ */

.badge-light-red {
    color: #dc3545;
    background-color: #eee;
}

.bg-red {
    background-color: #dc3545 !important;
    background: -webkit-linear-gradient(top, #dc3545 50%, #ffffff 120%);
}


/* orange ------ */

.badge-light-orange {
    color: #fd7e14;
    background-color: #eee;
}

.bg-orange {
    background-color: #fd7e14 !important;
    background: -webkit-linear-gradient(top, #fd7e14 50%, #ffffff 120%);
}


/* yellow ------ */

.badge-light-yellow {
    color: #F9C72B;
    background-color: #eee;
}

.bg-yellow {
    background-color: #F9C72B !important;
    background: -webkit-linear-gradient(top, #ffc107 50%, #ffffff 120%);
}


/* green ------ */

.badge-light-green {
    color: #77DB4F;
    background-color: #eee;
}

.bg-green {
    background-color: #77DB4F !important;
    background: -webkit-linear-gradient(top, #77DB4F 50%, #ffffff 120%);
}


/* YG1 ------ */

.badge-light-yg1 {
    color: #FFF;
    background-color: #E8281E;
}

.bg-yg1 {
    background-color: #E8281E !important;
    /*   background: -webkit-linear-gradient(top, #E8281E 50%, #ffffff 120%);*/
}

/* YG2 ------ */

.badge-light-yg2 {
    color: #FFF;
    background-color: #31CAA8;
}

.bg-yg2 {
    background-color: #31CAA8 !important;
    /*  background: -webkit-linear-gradient(top, #31CAA8 50%, #ffffff 120%);*/
}

/* YG3 ------ */

.badge-light-yg3 {
    color: #FFF;
    background-color: #9F29FF;
}

.bg-yg3 {
    background-color: #9F29FF !important;
    /*  background: -webkit-linear-gradient(top, #9F29FF 50%, #ffffff 120%);*/
}

/* YG4 ------ */

.badge-light-yg4 {
    color: #FFF;
    background-color: #06A6EE;
}

.bg-yg4 {
    background-color: #06A6EE !important;
    /*background: -webkit-linear-gradient(top, #06A6EE 50%, #ffffff 120%);*/
}

/* YG5 ------ */

.badge-light-yg5 {
    color: #FFF;
    background-color: #FF2380;
}

.bg-yg5 {
    background-color: #FF2380 !important;
    /* background: -webkit-linear-gradient(top, #FF2380 50%, #ffffff 120%);*/
}

/* YG6 ------ */

.badge-light-yg6 {
    color: #FFF;
    background-color: #FF2380;
}

.bg-yg6 {
    background-color: #FF2380 !important;
    /*    background: -webkit-linear-gradient(top, #FF2380 50%, #ffffff 120%);*/
}

/* YG7 ------ */

.badge-light-yg7 {
    color: #FFF;
    background-color: #003CAB;
}

.bg-yg7 {
    background-color: #003CAB !important;
    background: -webkit-linear-gradient(top, #003CAB 50%, #ffffff 120%);
}

/* YG8 ------ */

.badge-light-yg8 {
    color: #FFF;
    background-color: #585377;
}

.bg-yg8 {
    background-color: #585377 !important;
    background: -webkit-linear-gradient(top, #585377 50%, #ffffff 120%);
}


#qs-embed-container {
    width: 100%;
    /* Optional: constrain max width */
    margin: 0 auto;
    padding: 0px;
    overflow-x: hidden !important;
    justify-content: center;
    align-items: flex-start;
}
/* Inner container for QuickSight iframe */



/*#qsContainer {
    width: 100%;
}*/
/* Default iframe style (desktop) */

/*#qsContainer iframe {
    width: 100%;
    height: 95vh !important;*/ /* 80% of viewport height */
/*border: none;
    display: block;
}*/
/* Tablet view (portrait and landscape) */

/*#qBarContainer iframe {
    width: 100%;
    height: 50vh !important;*/ /* 80% of viewport height */
/*border: none;
    display: block;
}
@media (max-width: 1024px) {
    #qsContainer {
        max-width: 100%;*/ /* use full width on tablet */
/*}

        #qsContainer iframe {
            height: 70vh !important;*/ /* slightly shorter height for tablets */
/*}
}*/
/* Small tablets / large phones */

/*@media (max-width: 768px) {
    #qsContainer iframe {
        height: 60vh !important;*/ /* reduce height further */
/*}
}*/
#qsContainer {
    height: calc(100vh - 120px); /* adjust header height */
    overflow: hidden;
}

    #qsContainer iframe {
        height: 100% !important;
    }

#qsContainer,
#qBarContainer {
    width: 100%;
    position: relative;
}

    /* qsContainer - 95vh */
    #qsContainer iframe {
        width: 100%;
        height: 100% !important;
        border: none;
        display: block;
        margin: 0;
        padding: 0;
    }

    /* qBarContainer - 50vh but scales the same way */
    #qBarContainer iframe {
        width: 100%;
        border: none;
        display: block;
        margin: 0;
        padding: 0;
    }

/* Both scale proportionally on tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    #qsContainer iframe {
        height: 70vh !important; /* 95 * 0.74 ≈ 70 */
    }

    #qBarContainer iframe {
        height: 37vh !important; /* 50 * 0.74 ≈ 37 */
    }
}

/* Both scale proportionally on mobile */
@media (max-width: 768px) and (min-width: 481px) {


    #qBarContainer iframe {
        height: 32vh !important; /* 50 * 0.63 ≈ 32 */
    }
}

@media (max-width: 480px) {


    #qBarContainer iframe {
        height: 26vh !important; /* 50 * 0.53 ≈ 26 */
    }
}

/* Landscape - both get larger */
@media (min-width: 768px) {
    #qsContainer iframe {
        height: 85vh !important;
        min-height: auto !important;
    }
}

/* Hide all sections by default */
.aside-section {
    display: none !important;
}

    /* Show only active section */
    .aside-section.active {
        display: block !important;
    }

/* Active icon highlight */
#kt_aside_nav .nav-link.active {
    background-color: var(--bs-light) !important;
    color: var(--bs-primary) !important;
}

/* _metronic-menu-custom.css */

/* ── Root Level Items ─────────────────────────── */
#kt_aside_menu > .menu-fit > .menu-item > .menu-link,
#kt_aside_menu > .menu-fit > [data-kt-menu-trigger] > .menu-link {
    border-radius: 0.65rem;
    margin-bottom: 2px;
    transition: background-color 0.2s ease;
}

/* Root level icon size */
#kt_aside_menu .menu-item:not(.menu-sub .menu-item) .menu-icon i {
    font-size: 1.25rem;
    color: var(--kt-gray-500);
}

/* ── Section Label ────────────────────────────── */
.menu-section {
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    color: var(--kt-gray-500) !important;
    padding-left: 0.5rem;
}

/* ── Parent Title (Root Level) ────────────────── */
.menu-item > .menu-link > .menu-title.fw-semibold {
    font-size: 0.95rem;
    color: var(--kt-gray-800);
    letter-spacing: 0.02rem;
}

/* ── Child Title ──────────────────────────────── */
.menu-sub .menu-item > .menu-link > .menu-title.fw-normal {
    font-size: 0.875rem;
    color: var(--kt-gray-600);
    padding-left: 0.25rem;
}

/* ── Bullet Dot for Children ──────────────────── */
.menu-sub .menu-bullet .bullet-dot {
    width: 5px;
    height: 5px;
    background-color: var(--kt-gray-400);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Active bullet ──────────────────────────────── */
.menu-sub .menu-item .menu-link.active .bullet-dot,
.menu-sub .menu-item .menu-link:hover .bullet-dot {
    background-color: var(--kt-primary);
    width: 7px;
    height: 7px;
}

/* ── Active & Hover State ─────────────────────── */
.menu-item .menu-link.active {
    background-color: var(--kt-primary-light) !important;
}

    .menu-item .menu-link.active .menu-title,
    .menu-item .menu-link.active i {
        color: var(--kt-primary) !important;
    }

.menu-item .menu-link:hover .menu-title,
.menu-item .menu-link:hover i {
    color: var(--kt-primary) !important;
}

/* ── Indent Levels ────────────────────────────── */
.menu-sub.menu-sub-accordion {
    border-left: 2px solid var(--kt-gray-200);
}

/* Level 2 deeper indent */
.menu-sub .menu-sub.menu-sub-accordion {
    border-left: 2px dashed var(--kt-gray-200);
}

/* ── Arrow Transition ─────────────────────────── */
.menu-accordion .menu-arrow {
    transition: transform 0.3s ease;
}

.menu-accordion.show > .menu-link .menu-arrow {
    transform: rotate(90deg);
}

button[data-automation-id="analysis_navbar_export"] {
    background-color: #1976d2 !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
}

    button[data-automation-id="analysis_navbar_export"]:hover {
        background-color: #0d5bb5 !important;
    }

/* ========== Q Bar Floating Button ========== */
#qBarFloatingButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-image: linear-gradient(10deg, #6097db, #9877d2 9%, #c962ca 23%, #f73d91 53%, #fe4d36 74%, #ec2c5b 89%, #d41787 95%);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

    #qBarFloatingButton:hover {
        transform: scale(1.1);
    }

    #qBarFloatingButton svg {
        width: 24px;
        height: 24px;
    }

.q-badge {
    font-size: 9px;
    margin-top: 2px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.q-badge {
    animation: pulse 1s ease-in-out 3;
}

/* ========== Q Bar Container ========== */
#qBarContainer {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60%;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    /* DEFAULT visible state */
    opacity: 1;
    transform: translateY(0);
}

/* ✅ SINGLE definition — uses visibility + opacity for animation support */
.qbar-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
}

.qbar-minimized {
    height: 50px !important;
    overflow: hidden;
}

    .qbar-minimized .qbar-content iframe {
        height: 50px !important;
    }

/* ========== Q Bar Header ========== */
.qbar-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background-image: linear-gradient(10deg, #6097db, #9877d2 9%, #c962ca 23%, #f73d91 53%, #fe4d36 74%, #ec2c5b 89%, #d41787 95%);
    color: white;
    gap: 8px;
    flex-shrink: 0;
}

.qbar-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qbar-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

    .qbar-btn:hover {
        opacity: 0.7;
    }

/* ========== Q Bar Content ========== */
.qbar-content {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px !important;
    border-radius: 10px !important;
}

    .qbar-content iframe {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
    }



/* ── Mobile Actions Container ───────────────────────────────── */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Wrapper ────────────────────────────────────────────────── */
.mobile-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* ── Trigger Button ─────────────────────────────────────────── */
.mobile-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    width: 34px;
    min-width: 34px;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: #ffffff; /* ✅ icon colour */
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
}

    .mobile-control-btn i {
        color: #000; /* ✅ force icon white */
        font-size: 1rem;
        line-height: 1;
        pointer-events: none;
    }

    .mobile-control-btn:hover,
    .mobile-control-btn:focus-visible {
        background: rgba(255, 255, 255, 0.28);
        border-color: rgba(255, 255, 255, 0.65);
        outline: none;
    }

    .mobile-control-btn:active {
        transform: scale(0.95);
    }

/* ── Hidden Select (for Select2) ────────────────────────────── */
/*
   Must NOT be display:none or visibility:hidden — Select2 won't init.
   Clipped off-screen with no pointer-events.
*/
.mobile-hidden-select {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    border: none;
}

/* ── Hidden Date Input ──────────────────────────────────────── */
/*
   Must have real dimensions so daterangepicker can
   calculate its drop position correctly.
*/
.mobile-hidden-input {
    position: absolute;
    top: 100%;
    left: 0;
    width: 160px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 1px;
    color: transparent;
    caret-color: transparent;
}

/* ── Very small screens — icon only ─────────────────────────── */
@media (max-width: 380px) {
    .mobile-control-btn {
        height: 32px;
        width: 32px;
        min-width: 32px;
    }
}

/* ============================================================
   SELECT2 OVERRIDES
   ============================================================ */
.select2-container--open {
    z-index: 9999 !important;
}

.select2-dropdown {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    min-width: 160px;
    animation: s2DropdownIn 0.18s cubic-bezier(0.4, 0, 0.2, 1) both;
}

    .select2-dropdown .select2-results__option {
        padding: 10px 16px;
        font-size: 0.875rem;
        font-weight: 500;
        transition: background 0.15s ease;
    }

    .select2-dropdown .select2-results__option--highlighted {
        background-color: #f1f5ff;
        color: #3699ff;
    }

    .select2-dropdown .select2-results__option[aria-selected="true"] {
        background-color: #e8f0fe;
        color: #1a73e8;
        font-weight: 600;
    }

@keyframes s2DropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   DATERANGEPICKER OVERRIDES
   ============================================================ */
.daterangepicker {
    z-index: 9999 !important;
}

@media (max-width: 991.98px) {
    .daterangepicker {
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        border: none;
    }

        .daterangepicker.show-calendar .drp-calendar {
            max-width: 100%;
        }
}

/* ============================================================
   BOTTOM SHEET
   ============================================================ */
.mobile-bottom-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

    .mobile-bottom-sheet.is-open {
        display: block;
    }

.mobile-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    animation: overlayFadeIn 0.25s ease both;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-sheet-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
    max-height: 70vh;
    overflow-y: auto;
    animation: sheetSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    overscroll-behavior: contain;
}

@keyframes sheetSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.mobile-sheet-handle {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 12px auto 8px;
}

.mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-sheet-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1e2d;
}

.mobile-sheet-close {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #7e8299;
    border-radius: 6px;
    transition: background 0.15s ease;
}

    .mobile-sheet-close:hover {
        background: #f5f5f5;
        color: #1e1e2d;
    }

.mobile-sheet-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

    .mobile-sheet-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        font-size: 0.925rem;
        font-weight: 500;
        color: #3f4254;
        cursor: pointer;
        transition: background 0.15s ease;
    }

        .mobile-sheet-list li:hover {
            background: #f5f8ff;
            color: #3699ff;
        }

        .mobile-sheet-list li.is-selected {
            background: #e8f0fe;
            color: #1a73e8;
            font-weight: 700;
        }

            .mobile-sheet-list li.is-selected::after {
                content: '\F26E';
                font-family: 'bootstrap-icons';
                margin-left: auto;
                font-size: 1rem;
            }

/* Sheet close animation */
.mobile-bottom-sheet.is-closing .mobile-sheet-panel {
    animation: sheetSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.mobile-bottom-sheet.is-closing .mobile-sheet-overlay {
    animation: overlayFadeOut 0.25s ease both;
}

@keyframes sheetSlideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

@keyframes overlayFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 991px) {
    #mobile-dashboard-wrapper .select2-container {
        display: none !important;
    }
}

#mobile-dashboard-wrapper .select2-dropdown {
    top: 40px !important;
}

/* Overlay */
/* Overlay container */
.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

/* Loader text */
.loader-text {
    margin-top: 12px;
}

/* Error UI */
.loader-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    text-align: center;
}

.error-title {
    font-size: 18px;
    color: #dc3545;
    margin-bottom: 8px;
}

.error-text {
    font-size: 13px;
    color: #666;
}

.hover-elevate-up {
    transition: all 0.2s ease;
}

    .hover-elevate-up:hover {
        box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075) !important;
    }

/* Transition Effects */
.transition-all {
    transition: all 0.2s ease;
}

/* Border Hover */
.border-hover-primary:hover {
    border-color: var(--bs-primary) !important;
}

/* Letter Spacing */
.ls-1 {
    letter-spacing: 0.1em;
}

/* Tab Styling */
.filter-tab-btn {
    transition: all 0.2s ease;
}

    .filter-tab-btn:not(.active) {
        background-color: transparent !important;
    }

    .filter-tab-btn.active {
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    }

/* Smooth Scrolling */
#kt_explore_scroll {
    scroll-behavior: smooth;
}

/* Card Hover States */
.card.cursor-pointer:hover {
    cursor: pointer;
}


/* Dropdown Improvements */
.dropdown-menu {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    transition: all 0.15s ease;
    padding: 0.65rem 1rem;
}

    .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

/* Form Check Improvements */
.form-check-custom .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0;
}

.form-check-custom .form-check-label {
    padding-left: 0.5rem;
    padding-top: 0.15rem;
}

/* Badge Improvements */
.badge-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Button Icon Improvements */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Footer Shadow */
.card-footer {
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.05) !important;
}

/* Selected Saved Set Styling */
.saved-set-selected {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
    box-shadow: 0 0.5rem 1rem rgba(var(--bs-primary-rgb), 0.15) !important;
}

/* Animation for tab switching */
.filter-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Improvements */
@media (max-width: 991.98px) {
    #side-filter {
        --kt-drawer-width: 320px !important;
    }
}

@media (max-width: 575.98px) {
    #side-filter {
        --kt-drawer-width: 100% !important;
    }

    .card-header h3 {
        font-size: 1.25rem !important;
    }
}

/* Skeleton Loader Styles */
.skeleton-loader {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-text-md {
    height: 16px;
    width: 80%;
}

.skeleton-text-lg {
    height: 24px;
    width: 50%;
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-chart {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}
.sticky-filter-footer {
    position: fixed;
    bottom: 0;
    right: 0; /* Adjust according to your offcanvas width */
    width: 420px; /* Same width as your sidebar */
    background: #fff;
    padding: 16px;
    border-top: 1px solid #e4e6ef;
    z-index: 1055;
}

.breaking-banner {
    display: flex;
    align-items: center;
    height: 55px;
    background: #d32f2f;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.breaking-label {
    background: #b71c1c;
    color: #fff;
    font-weight: 700;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 2;
}

.breaking-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.breaking-text {
    display: inline-block;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
    line-height: 42px;
    padding-left: 100%;
    animation: ticker 22s linear infinite;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}
