/* ==========================================================================
   NEBULA ANALYTICS - MAIN STYLESHEET (style.css)
   ==========================================================================
   Table of Contents:
   1. ROOT & GLOBAL STYLES
   2. APP LAYOUT & COLLAPSIBLE SIDEBAR
   3. TOP MENU BAR & NAVIGATION
   4. DASHBOARD FILTERS & DROPDOWNS
   5. GENERAL CHART CONTAINERS & LAYOUTS
   6. KPI INDICATORS & SUMMARY CARDS
   7. DOMAIN-SPECIFIC DASHBOARD MODULES
      7.1 Sales & Ecommerce Performance
      7.2 Offer Performance
      7.3 Products Bought Together
      7.4 Hotel Search & Lead Prices
      7.5 Orders & Checkout Monitoring
      7.6 Audience & Behaviour Analytics
      7.7 BigQuery & System Monitoring
      7.8 Real-Time Monitoring
   8. DATA TABLES & AG-GRID OVERRIDES
   9. TOASTS, ALERTS & TOOLTIPS
   10. NEBULA AI CONVERSATIONAL ANALYTICS CHATBOT
   11. ANIMATIONS & BRAND ASSETS
   12. UTILITY & HELPER CLASSES
   ========================================================================== */


/* ==========================================================================
   1. ROOT & GLOBAL STYLES
   ========================================================================== */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0E223E;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide Plotly Modebar across all charts */
.modebar {
    display: none !important;
}


/* ==========================================================================
   2. APP LAYOUT & COLLAPSIBLE SIDEBAR
   ========================================================================== */

/* Main application root viewport container */
#app-root-layout {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #0E223E;
}

/* Collapsible Sidebar drawer */
#sidebar-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed state for sidebar drawer */
#sidebar-container.sidebar-collapsed {
    transform: translateX(-100%);
    box-shadow: none;
    pointer-events: none;
}

/* Backdrop overlay when sidebar is open */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(14, 34, 62, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1090;
    opacity: 1;
    transition: opacity 0.25s ease;
    cursor: pointer;
}

.sidebar-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Sidebar header area containing branding and collapse button */
.sidebar-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

/* Sidebar collapse toggle button */
.sidebar-collapse-button {
    border-radius: 6px !important;
    padding: 4px 8px !important;
    color: #64748b !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease;
}

.sidebar-collapse-button:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Scrollable sidebar body containing page navigation accordions */
.sidebar-menu-scroll-area {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding: 12px 10px;
}

/* Custom scrollbar styling for sidebar menu */
.sidebar-menu-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar-menu-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar footer */
.sidebar-footer-wrapper {
    flex-shrink: 0;
    padding: 14px 16px;
    border-top: 1px solid #f1f5f9;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Main scrollable page content wrapper */
#main-content-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background-color: #0E223E;
    display: flex;
    flex-direction: column;
}

.page-content-wrapper {
    flex: 1;
    width: 100%;
    background-color: #0E223E;
}


/* ==========================================================================
   3. TOP MENU BAR & NAVIGATION
   ========================================================================== */

.top-menu-bar-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.top-menu-bar-button {
    border-radius: 0px !important;
    font-weight: 500 !important;
    position: relative;
    overflow: hidden;
}

.menu-button-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Menu items inside sidebar */
.nebula-menu-link {
    width: 100%;
    padding: 4px 12px 4px 28px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #004a6d !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    text-align: left;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.nebula-menu-link:hover {
    background: #f1f6f8 !important;
    color: #004a6d !important;
}

.nebula-menu-nested {
    border-left: 1px solid #c8dce5;
    margin-left: 8px;
    padding-left: 8px;
}


/* ==========================================================================
   4. DASHBOARD FILTERS & DROPDOWNS
   ========================================================================== */

/* Sticky filter bar across dashboards */
.filters-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #0E223E;
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 20px;
}

/* Dropdown labels & titles */
.dropdown-title {
    font-size: 12px;
    color: #FFFFFF;
    font-weight: bold;
}

.toast-dropdown-title {
    font-size: 12px;
    color: #6c757d;
    font-weight: bold;
    margin-top: 15px;
}

/* Dropdown containers */
.dropdown-wrapper {
    margin: 10px;
    width: 250px;
}

.compact-dropdown-wrapper {
    margin: 10px;
    width: 200px;
}

.time-interval-dropdown {
    width: 150px;
}

.chart-dropdown-wrapper {
    width: 270px;
    min-width: 260px;
}

.lead-dropdown-wrapper {
    display: flex;
    flex-direction: row;
}

.custom-dropdown .Select-menu-outer {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Explorer Filter Bar */
.explorer-filter-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

.explorer-filter {
    margin: 10px;
}

/* Attribution Dropdowns */
.attribution-dropdown-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.attribution-model-dropdown {
    margin-left: 20px;
    width: 250px;
    margin-top: 5px;
}

/* UTM Selector */
.utm-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Dates Wrapper */
.dates-wrapper {
    margin: 10px;
}

/* Specific Dropdown IDs */
#acquisition-channels-metric-dropdown {
    width: 200px;
    margin-top: 20px;
}

#acquisition-channels-destination-dropdown {
    width: 220px;
    margin-left: 20px;
    margin-top: 5px;
}

#acquisition-channels-page-type-dropdown {
    width: 220px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 5px;
}

#acquisition-channels-brand-dropdown {
    width: 220px;
    margin-left: 20px;
    margin-top: 5px;
}

#audience-metric-dropdown,
#ecommerce-metric-dropdown,
#demo-ecommerce-metric-dropdown,
#ecommerce-overview-hotels-metric-dropdown,
#demo-ecommerce-overview-hotels-metric-dropdown,
#ecommerce-offer-performance-metric-dropdown,
#ecommerce-offer-performance-group-dropdown,
#ecommerce-offer-performance-individual-offers-dropdown,
#monitoring-checkout-payment-method-dropdown,
#behaviour-hotel-search-metric-dropdown,
#behaviour-site-search-bar-dropdown {
    width: 250px;
}

#ecommerce-offer-performance-metric-dropdown,
#ecommerce-offer-performance-group-dropdown,
#ecommerce-offer-performance-individual-offers-dropdown {
    margin-bottom: 12px;
}

#ecommerce-abandonment-metric-dropdown {
    width: 250px;
    margin-left: 20px;
}


/* ==========================================================================
   5. GENERAL CHART CONTAINERS & LAYOUTS
   ========================================================================== */

.chart-wrapper {
    background-color: #07132A;
    margin: 16px 20px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chart-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.20);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.chart-title-wrapper,
.monitoring-checkout-chart-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.chart-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #F8FAFC;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 0;
    padding: 3px 0 3px 12px;
    border-left: 3.5px solid #38bdf8;
    border-radius: 2px 0 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sub-chart-title {
    font-size: 1rem;
    font-weight: 500;
    color: #94A3B8;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 3px 0;
}

.chart-description {
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.5;
    margin-top: 4px;
    margin-bottom: 10px;
    padding-left: 0;
}

.chart-filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}

.chart-filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ecommerce-overview-mean-toggle-switch {
    display: flex;
    align-items: center;
    margin-left: 4px;
}

/* Tabbed Chart Containers */
.tabs-chart-wrapper {
    background-color: #07132A;
    margin: 20px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tabs-chart-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.20);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.tabs-chart-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #F8FAFC;
    letter-spacing: -0.015em;
    margin: 0;
    padding: 2px 0 2px 10px;
    border-left: 3px solid #38bdf8;
    border-radius: 2px 0 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tabs-chart-sub-title {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Flex Chart Rows */
.line-chart-container.full-width {
    flex: 1 1 100%;
    max-width: 100%;
}

.line-chart-container.reduced-width {
    flex: 0 0 65%;
    max-width: 65%;
}

.bar-chart-container {
    flex: 0 0 35%;
    max-width: 35%;
}

/* Dividers */
.dashed-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 30px 0 10px 0;
}


/* ==========================================================================
   6. KPI INDICATORS & SUMMARY CARDS
   ========================================================================== */

.kpi-chart-wrapper {
    background-color: #07132A;
    margin: 20px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    width: 530px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.kpi-chart-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.20);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.kpi-chart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.kpi-chart-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 10px 0;
    padding-bottom: 8px;
}

.kpi-chart-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #F8FAFC;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 2px 0 2px 8px;
    border-left: 3px solid #38bdf8;
    border-radius: 2px 0 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kpi-chart-sub-title {
    margin: 0;
    font-size: 0.85rem;
    text-align: left;
    flex: 0 0 auto;
    color: #94A3B8;
}

.kpi-indicator {
    text-align: right;
    flex: 0 0 auto;
    width: 150px;
}

.kpi-list {
    font-size: 14px;
    color: #FFFFFF;
}

.kpi-dashed-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

.kpi-table-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 10px 30px 10px 30px;
    padding-bottom: 8px;
}

.kpi-table-sub-title {
    font-size: 0.875rem;
    color: #94A3B8;
    margin: 8px;
}

.kpi-chart-block-last {
    display: flex;
    justify-content: flex-start;
    margin: 10px;
}

.kpi-toast-wrapper {
    margin: 30px;
}


/* ==========================================================================
   7. DOMAIN-SPECIFIC DASHBOARD MODULES
   ========================================================================== */

/* --------------------------------------------------------------------------
   7.1 Sales & Ecommerce Performance
   -------------------------------------------------------------------------- */

.sales-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.sales-indicator-wrapper {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
}

.sales-chart-indicator-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}

.sales-indicator-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 60%;
}

.sales-chart-wrapper {
    width: 100%;
}

.sales-pie-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    min-width: 35%;
    gap: 10px;
}

.sales-pie-wrapper {
    flex: 1;
    min-width: 45%;
}

.sales-performance-chart-filters {
    display: flex;
    padding-left: 40px;
    padding-right: 20px;
    padding-top: 20px;
}

.discount-codes-pie-chart-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.discount-codes-button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.discount-codes-button-toast-wrapper {
    position: relative;
    display: inline-block;
}

.discount-codes-button-toast-wrapper .discount-codes-toast {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1050;
    width: 470px;
    margin-right: 20px;
    background-color: #f8f8f8;
}

.currency-conversion-button-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   7.2 Offer Performance
   -------------------------------------------------------------------------- */

.offer-performance-chart-wrapper {
    display: flex;
    width: 100%;
}

.offer-performance-filter-wrapper {
    width: 250px;
    margin-right: 20px;
}

.offer-performance-graph-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-performance-table-wrapper {
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   7.3 Products Bought Together
   -------------------------------------------------------------------------- */

.bought-together-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.bought-together-chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F8FAFC;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 4px 0 4px 14px;
    border-left: 3.5px solid #38bdf8;
    border-radius: 2px 0 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bought-together-chart-sub-title {
    font-size: 0.875rem;
    color: #94A3B8;
    margin-top: 4px;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7.4 Hotel Search & Lead Prices
   -------------------------------------------------------------------------- */

.hotel-search-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.hotel-search-indicator-wrapper {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
}

.hotel-search-indicator-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hotel-search-pie-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.hotel-search-chart-indicator-wrapper {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 25px;
    margin-left: 40px;
}

.hotel-search-chart-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hotel-lead-prices-button-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

/* --------------------------------------------------------------------------
   7.5 Orders & Checkout Monitoring
   -------------------------------------------------------------------------- */

.orders-switch-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
}

div.orders-switch-wrapper > div:nth-child(1) > div > div > label,
div.orders-switch-wrapper > div:nth-child(2) > div > div > label {
    width: max-content;
}

.orders-dropdown-wrapper {
    display: flex;
    flex-direction: row;
    margin: 20px;
}

.orders-dropdown {
    width: 100%;
}

.orders-table-wrapper {
    display: flex;
    flex-direction: column;
    margin: 20px;
}

.flagged-orders-charts,
.failed-orders-charts,
.dupe-orders-charts,
.site-search-charts {
    flex-direction: row;
    justify-content: space-evenly;
    display: flex;
    margin: 20px;
}

.monitoring-checkout-chart-filters,
.behaviour-site-search-chart-filters {
    display: flex;
    padding-right: 20px;
    padding-top: 20px;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   7.6 Audience & Behaviour Analytics
   -------------------------------------------------------------------------- */

.audience-indicator-wrapper,
.customer-accounts-indicator-wrapper {
    display: flex;
}

.behaviour-all-pages-chart-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   7.7 BigQuery & System Monitoring
   -------------------------------------------------------------------------- */

.monitoring-bigquery-filter-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.monitoring-nebula-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.monitoring-nebula-table-card {
    background: #07132A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    min-width: 0;
}

.monitoring-nebula-table-title {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.monitoring-nebula-chart-wrapper {
    margin: 20px;
    padding: 20px;
}

/* --------------------------------------------------------------------------
   7.8 Real-Time Monitoring
   -------------------------------------------------------------------------- */

.real-time-chart-wrapper {
    background-color: #ffffff;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}


/* ==========================================================================
   8. DATA TABLES & AG-GRID OVERRIDES
   ========================================================================== */

.ag-row {
    background-color: #ffffff !important;
}

.ag-row.percent-change-row {
    background-color: #f8f9fa !important;
}

.status-table {
    margin-left: 250px;
    margin-right: 250px;
}

.status-header {
    font-size: 25px;
    color: #FFFFFF;
    margin-left: 250px;
    margin-top: 50px;
}

.status-indicator {
    text-align: right;
    margin-right: 25px;
    margin-top: 10px;
    font-size: 18px;
    color: #FFFFFF;
}

.no-data-placeholder {
    color: white;
    padding: 10px;
    font-size: 16px;
}


/* ==========================================================================
   9. TOASTS, ALERTS & TOOLTIPS
   ========================================================================== */

.toast {
    width: 100%;
    max-width: 100%;
    font-size: .875rem;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, .85);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    border-radius: .25rem;
    margin-bottom: 20px;
    color: #212529;
}

.dates-toast {
    position: fixed !important;
    z-index: 1050;
    right: 0;
    width: 400px;
    margin-right: 20px;
    background-color: #FAFAFA;
    color: #212529;
}

.comments-toast {
    position: relative !important;
    z-index: 100;
    width: 100%;
    max-width: 480px;
    margin-top: 10px;
    margin-bottom: 15px;
    background-color: #FAFAFA;
    color: #212529;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filters-lead-prices-toast {
    position: fixed !important;
    z-index: 150;
    left: 0;
    width: 365px;
    margin-left: 20px;
    background-color: #FAFAFA;
    color: #212529;
}

/* Staff Comments Feed */
#comments-feed,
[id$="-comments-feed"] {
    background-color: #0B192C;
    color: #F8FAFC !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    max-height: 400px;
    overflow-y: auto;
}

#comments-feed *,
[id$="-comments-feed"] * {
    color: #F8FAFC;
}

#comments-feed .mantine-Timeline-itemTitle,
[id$="-comments-feed"] .mantine-Timeline-itemTitle {
    color: #38BDF8 !important;
    font-weight: 600;
}

#comments-feed .mantine-Timeline-itemBody,
[id$="-comments-feed"] .mantine-Timeline-itemBody {
    color: #CBD5E1 !important;
}

.timing-alert {
    z-index: 10000;
    position: absolute;
}

/* KPI Grouping & Thematic Containers */
.kpi-group-wrapper {
    margin-bottom: 12px;
    background: transparent;
    border: none;
    padding: 0;
}

.kpi-group-wrapper:last-child {
    margin-bottom: 0;
}

.kpi-group-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
    margin-bottom: 6px;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.indicator-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 1400px) {
    .indicator-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .indicator-cards-row {
        grid-template-columns: 1fr;
    }
}

.kpi-metric-card {
    background: rgba(15, 23, 42, 0.60) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    padding: 10px 14px 8px 14px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    font-variant-numeric: tabular-nums !important;
}

.kpi-metric-card:hover {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(56, 189, 248, 0.30) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

/* Dark Theme Modal for Definitions */
.dark-modal .modal-content {
    background-color: #07132A !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

.dark-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: #0B192C !important;
    padding: 16px 24px !important;
}

.dark-modal .modal-title {
    color: #F8FAFC !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dark-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

.dark-modal .modal-body {
    padding: 20px 24px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

.dark-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: #0B192C !important;
}

.def-card {
    background: #0B192C;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.def-card-title {
    color: #38BDF8;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.def-card-desc {
    color: #CBD5E1;
    font-size: 0.835rem;
    margin: 0;
    line-height: 1.45;
}


/* ==========================================================================
   10. NEBULA AI CONVERSATIONAL ANALYTICS CHATBOT
   ========================================================================== */

/* Floating Launcher Button */
.nebula-chat-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #088ec7;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nebula-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.nebula-chat-button:active {
    transform: translateY(0);
}

/* Chat Window Modal */
.nebula-chat-window {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 420px;
    height: 640px;
    display: flex;
    flex-direction: column;
    background: #07132A;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 4px 16px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 10000;
    animation: nebula-chat-open 0.2s ease-out;
}

.nebula-chat-window.hidden {
    display: none;
}

@keyframes nebula-chat-open {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Header */
.nebula-chat-header {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #07132A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.nebula-chat-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.nebula-chat-title span:first-child {
    font-size: 18px;
}

.nebula-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nebula-chat-new,
.nebula-chat-export,
.nebula-chat-fullscreen,
.nebula-chat-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nebula-chat-export {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nebula-chat-export:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #38BDF8;
    transform: translateY(-1px);
}

.nebula-chat-new {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nebula-chat-new:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00E5FF;
    transform: rotate(45deg);
}

.nebula-chat-fullscreen {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nebula-chat-fullscreen:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nebula-chat-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 24px;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.nebula-chat-close:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

/* Fullscreen Mode */
.nebula-chat-window.fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    z-index: 99999;
}

.nebula-fullscreen-exit-icon {
    display: none;
}

/* Message Scroll Area */
.nebula-chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.nebula-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.nebula-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.nebula-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.nebula-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Chat Message Bubbles */
.nebula-message {
    max-width: 90%;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
}

.nebula-message-user,
.nebula-chat-user-message {
    align-self: flex-end;
    max-width: 85%;
    padding: 10px 14px;
    background: #088ec7;
    color: #FFFFFF;
    border-radius: 14px;
    border-bottom-right-radius: 4px;
    font-size: 13.5px;
    line-height: 1.45;
}

.nebula-message-ai,
.nebula-chat-agent-message {
    align-self: flex-start;
    max-width: 100%;
    padding: 4px 2px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
}

.nebula-agent-response {
    align-self: flex-start;
    width: 100%;
    padding: 4px 4px 8px 4px;
}

/* Markdown Rendering in Chat */
.nebula-agent-markdown {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
}

.nebula-agent-markdown p,
.nebula-message-ai p {
    margin-top: 0;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.nebula-agent-markdown p:last-child,
.nebula-message-ai p:last-child {
    margin-bottom: 0;
}

.nebula-agent-markdown h1,
.nebula-agent-markdown h2,
.nebula-agent-markdown h3,
.nebula-message-ai h1,
.nebula-message-ai h2,
.nebula-message-ai h3,
.nebula-message-ai h4 {
    color: white;
    margin-top: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.nebula-message-ai h1 { font-size: 18px; }
.nebula-message-ai h2 { font-size: 16px; }
.nebula-message-ai h3 { font-size: 14px; }
.nebula-message-ai h4 { font-size: 13px; }

.nebula-agent-markdown strong,
.nebula-message-ai strong {
    color: white;
    font-weight: 650;
}

.nebula-message-ai em {
    color: rgba(255, 255, 255, 0.85);
}

.nebula-agent-markdown code,
.nebula-message-ai code {
    color: #6dc9ef;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.nebula-message-ai pre {
    margin: 10px 0;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.85);
    font-family: monospace;
    font-size: 11px;
    line-height: 1.5;
}

.nebula-message-ai ul,
.nebula-message-ai ol {
    margin-top: 8px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.nebula-message-ai li {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.90);
}

.nebula-message-ai a {
    color: #6dc9ef;
    text-decoration: none;
}

.nebula-message-ai a:hover {
    text-decoration: underline;
}

.nebula-message-ai table {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;
    font-size: 12px;
}

.nebula-message-ai th {
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nebula-message-ai td {
    padding: 9px 10px;
    color: rgba(255, 255, 255, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nebula-message-ai tr:last-child td {
    border-bottom: none;
}

.nebula-message-ai tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

/* Chat Input Bar */
.nebula-chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 12px 12px;
    padding: 6px;
    background: #132746;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    flex-shrink: 0;
}

.nebula-chat-input {
    flex: 1;
    min-height: 42px;
    max-height: 110px;
    padding: 10px 10px;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.nebula-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.nebula-chat-input:focus {
    border: none;
    outline: none;
}

.nebula-chat-send {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    border: none;
    border-radius: 9px;
    background: #088ec7;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.nebula-chat-send:hover {
    background: #0aa1df;
    transform: translateY(-1px);
}

.nebula-chat-send:active {
    transform: translateY(0);
}

.nebula-chat-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Thinking Indicator */
.nebula-thinking {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 2px;
    background: transparent;
    border: none;
}

.nebula-thinking-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.60);
    animation: nebula-thinking 1.2s infinite ease-in-out;
}

.nebula-thinking-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.nebula-thinking-dot:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes nebula-thinking {
    0%, 60%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Chat Follow-Up Options */
.nebula-followup-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 6px;
    width: 100%;
}

.nebula-followup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94A3B8;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nebula-followup-header-title {
    color: #94A3B8;
}

.nebula-followup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
    margin-left: 0;
    width: 100%;
}

.nebula-followup-button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(19, 39, 70, 0.65);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 8px 14px;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease;
    text-align: left;
    max-width: 100%;
}

.nebula-followup-button:hover {
    background: rgba(8, 142, 199, 0.16);
    border-color: rgba(8, 142, 199, 0.55);
    color: white;
}

.nebula-followup-button:active {
    transform: scale(0.98);
}

.nebula-domain-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
}

.nebula-domain-button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(19, 39, 70, 0.7);
    color: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 13px;
    line-height: 1.35;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.nebula-domain-button:hover {
    background: rgba(8, 142, 199, 0.12);
    border-color: rgba(8, 142, 199, 0.45);
    color: #ffffff;
}

.nebula-domain-button:active {
    background: rgba(8, 142, 199, 0.2);
}

/* =========================================================
   Nebula Diagnostic Starter View & Recipe Cards
   ========================================================= */
.nebula-starter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px 16px 4px;
    gap: 16px;
    animation: nebula-fade-in 0.3s ease-out;
}

@keyframes nebula-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nebula-starter-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.nebula-starter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: #00E5FF;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nebula-starter-title {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    margin: 4px 0 0 0;
    letter-spacing: -0.2px;
}

.nebula-starter-subtitle {
    color: #94A3B8;
    font-size: 12.5px;
    line-height: 1.4;
    margin: 0;
    max-width: 92%;
}

.nebula-starter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 580px) {
    .nebula-starter-grid {
        grid-template-columns: 1fr;
    }
}

.nebula-starter-card {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.65);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.nebula-starter-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(0, 229, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nebula-starter-card:active {
    transform: translateY(0);
}

.nebula-starter-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
}

.nebula-starter-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nebula-starter-card-title {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.nebula-starter-card-desc {
    color: #94A3B8;
    font-size: 11px;
    line-height: 1.35;
}


.nebula-chat-chart,
.nebula-agent-chart {
    width: 100%;
    min-width: 0;
    min-height: 320px;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #0B1B33;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    display: block;
    position: relative;
}

.nebula-chat-chart .dash-graph,
.nebula-agent-chart .dash-graph,
.nebula-chat-chart .js-plotly-plot,
.nebula-agent-chart .js-plotly-plot {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
}

/* Chat Responsive Media Queries */
@media (max-width: 600px) {
    .nebula-chat-button {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .nebula-chat-window {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        height: 70vh;
        max-height: 650px;
        border-radius: 14px;
    }

    .nebula-chat-header {
        min-height: 58px;
    }

    .nebula-chat-messages {
        padding: 18px 12px;
    }

    .nebula-chat-input-container {
        margin: 0 8px 8px;
    }
}

@media (max-width: 400px) {
    .nebula-chat-window {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .nebula-chat-button {
        right: 14px;
        bottom: 14px;
    }
}


/* ==========================================================================
   11. ANIMATIONS & BRAND ASSETS
   ========================================================================== */

.headline-wrapper {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    margin-bottom: 20px;
}

.animated-text {
    font-weight: bold;
    color: #fffcff;
    animation: nebula 2s ease 0s 1 normal forwards;
    margin-top: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.animated-text-subtitle {
    font-weight: bold;
    animation: nebula 2s ease 0s 1 normal forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.site-logos {
    display: flex;
    justify-content: center;
    border-radius: 10px;
    align-items: center;
}

.site-logos img {
    width: 6%;
    height: 6%;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px;
    animation: nebula 2s ease 0s 1 normal forwards;
}

@keyframes nebula {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* ==========================================================================
   12. UTILITY & HELPER CLASSES
   ========================================================================== */

.red-text {
    color: red !important;
}

.green-text {
    color: green !important;
}

.bold-text {
    font-weight: bold;
}

.button-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
}

.download-button {
    margin: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.data-tag {
    padding-right: 10px;
    border-right: 1px solid lightgray;
    display: flex;
    align-items: center;
}

.data-tag-with-bot-filter {
    padding-right: 10px;
    display: flex;
    align-items: center;
}

.theme-switch {
    padding-right: 10px;
    display: flex;
    align-items: center;
}

.stats-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.processed-data {
    margin-top: 10px;
}

/* ==========================================================================
   Spooky Ghost Loading Animation & Glassmorphic Loader for All Dash Pages
   Matches ecommerce-overview-hotels-demo Loading Screen Experience
   ========================================================================== */

#loader-wrapper,
.loading,
.dash-spinner-container,
._dash-loading,
.dash-loading-callback,
div[data-dash-is-loading="true"],
.dash-loading-overlay,
.dashboard-backdrop-overlay {
    z-index: 999999998 !important;
}

/* Elevate loader container to fixed fullscreen overlay when loading */
#loader-wrapper:has(.dash-spinner-container),
#loader-wrapper:has(._dash-loading),
#loader-wrapper:has([data-dash-is-loading="true"]),
.loading:has(.dash-spinner-container),
.loading:has(._dash-loading),
.loading:has([data-dash-is-loading="true"]) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999998 !important;
    pointer-events: all !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fullscreen and overlay loading dark glassmorphic backdrop matching overview demo */
.dash-spinner-container,
._dash-loading,
.dash-loading-overlay,
.dashboard-backdrop-overlay,
#loader-wrapper > ._dash-loading,
.loading > ._dash-loading {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(11, 25, 44, 0.90) !important;
    background: rgba(11, 25, 44, 0.90) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999998 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    animation: fadeInOverlay 0.15s ease-in-out !important;
    cursor: wait !important;
    pointer-events: all !important;
    transition: opacity 0.2s ease-in-out !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    isolation: isolate !important;
    will-change: opacity, transform !important;
}

/* Top slim animated shimmering progress bar across all loading screens */
.dash-spinner-container::before,
._dash-loading::before,
.dash-loading-overlay::before,
.dashboard-backdrop-overlay::before,
#loader-wrapper > ._dash-loading::before,
.loading > ._dash-loading::before,
.overview-global-progress-bar::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 3.5px !important;
    background: linear-gradient(90deg, transparent 0%, #38BDF8 30%, #0284C7 60%, #38BDF8 85%, transparent 100%) !important;
    animation: shimmer-progress 1.3s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 0 14px #38BDF8, 0 0 6px #0284C7 !important;
    z-index: 999999999 !important;
    pointer-events: none !important;
}

/* Hide default Dash spinner dots/circles/cubes/bars */
.dash-spinner > div,
.dash-default-spinner > div,
.dash-dot-spinner > div,
.dash-circle-spinner > div,
.dash-cube-spinner > div,
.dash-graph-spinner > div,
#loader-wrapper .spinner-border,
#loader-wrapper .spinner-grow {
    display: none !important;
    visibility: hidden !important;
}

/* Style the Dash spinner container as the centered Glass Card */
.dash-spinner,
.dash-default-spinner,
.dash-dot-spinner,
.dash-circle-spinner,
.dash-cube-spinner,
.dash-graph-spinner,
.loading-glass-card {
    position: relative !important;
    width: auto !important;
    min-width: 260px !important;
    max-width: 320px !important;
    height: auto !important;
    min-height: 175px !important;
    background: rgba(7, 19, 42, 0.92) !important;
    background-color: rgba(7, 19, 42, 0.92) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 16px !important;
    padding: 24px 38px 22px 38px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.18) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    user-select: none !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    z-index: 999999998 !important;
}

/* ==========================================================================
   Seasonal Center Animations for Glass Loading Card
   ========================================================================== */

/* 1. HALLOWEEN (1st Oct - 31st Oct) & Default Fallback: Floating Spooky Ghost */
.dash-spinner::before,
.dash-default-spinner::before,
.dash-dot-spinner::before,
.dash-circle-spinner::before,
.dash-cube-spinner::before,
.dash-graph-spinner::before,
.loading-spinner-ring,
[data-seasonal-theme="halloween"] .dash-spinner::before,
[data-seasonal-theme="halloween"] .dash-default-spinner::before,
[data-seasonal-theme="halloween"] .dash-dot-spinner::before,
[data-seasonal-theme="halloween"] .dash-circle-spinner::before,
[data-seasonal-theme="halloween"] .dash-cube-spinner::before,
[data-seasonal-theme="halloween"] .dash-graph-spinner::before,
[data-seasonal-theme="halloween"] .loading-spinner-ring {
    content: '' !important;
    position: relative !important;
    width: 68px !important;
    height: 68px !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20256%20256%22%20width%3D%22256%22%20height%3D%22256%22%3E%3Cpath%20fill%3D%22%23F8FAFC%22%20d%3D%22M128%2024a96.11%2096.11%200%200%200-96%2096v96a8%208%200%200%200%2013.07%206.19l24.26-19.85l24.27%2019.85a8%208%200%200%200%2010.13%200L128%20202.34l24.27%2019.85a8%208%200%200%200%2010.13%200l24.27-19.85l24.26%2019.85A8%208%200%200%200%20224%20216v-96a96.11%2096.11%200%200%200-96-96m-28%20104a12%2012%200%201%201%2012-12a12%2012%200%200%201-12%2012m56%200a12%2012%200%201%201%2012-12a12%2012%200%200%201-12%2012%22/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    border-radius: 0 !important;
    animation: ghost-loader-float 2.2s ease-in-out infinite alternate !important;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.75)) drop-shadow(0 0 32px rgba(14, 165, 233, 0.4)) !important;
    z-index: 2 !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* 2. FIREWORKS (1st Nov - 5th Nov & 31st Dec - 1st Jan): Golden Handheld Sparkler & Roman Candle */
[data-seasonal-theme="fireworks"] .dash-spinner::before,
[data-seasonal-theme="fireworks"] .dash-default-spinner::before,
[data-seasonal-theme="fireworks"] .dash-dot-spinner::before,
[data-seasonal-theme="fireworks"] .dash-circle-spinner::before,
[data-seasonal-theme="fireworks"] .dash-cube-spinner::before,
[data-seasonal-theme="fireworks"] .dash-graph-spinner::before,
[data-seasonal-theme="fireworks"] .loading-spinner-ring {
    content: '' !important;
    position: relative !important;
    width: 78px !important;
    height: 78px !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20256%20256%22%20width%3D%22256%22%20height%3D%22256%22%3E%3Ccircle%20cx%3D%22134%22%20cy%3D%22116%22%20r%3D%2242%22%20fill%3D%22%23FDE047%22%20opacity%3D%220.18%22/%3E%3Ccircle%20cx%3D%22134%22%20cy%3D%22116%22%20r%3D%2222%22%20fill%3D%22%23FBBF24%22%20opacity%3D%220.35%22/%3E%3Cline%20x1%3D%2238%22%20y1%3D%22218%22%20x2%3D%22114%22%20y2%3D%22136%22%20stroke%3D%22%2394A3B8%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22/%3E%3Cline%20x1%3D%2268%22%20y1%3D%22186%22%20x2%3D%22116%22%20y2%3D%22134%22%20stroke%3D%22%23D97706%22%20stroke-width%3D%224.5%22%20stroke-linecap%3D%22round%22/%3E%3Cline%20x1%3D%2268%22%20y1%3D%22186%22%20x2%3D%22116%22%20y2%3D%22134%22%20stroke%3D%22%23FDE047%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-dasharray%3D%222%2C3%22/%3E%3Ccircle%20cx%3D%22134%22%20cy%3D%22116%22%20r%3D%2214%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%22134%22%20cy%3D%22116%22%20r%3D%228%22%20fill%3D%22%23FFFFFF%22/%3E%3Cpolygon%20points%3D%22134%2C94%20138%2C110%20154%2C116%20138%2C122%20134%2C138%20130%2C122%20114%2C116%20130%2C110%22%20fill%3D%22%23FFFFFF%22/%3E%3Cpath%20d%3D%22M134%2C102%20L134%2C58%20M134%2C70%20L118%2C52%20M134%2C70%20L150%2C52%22%20stroke%3D%22%23FDE047%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3Ccircle%20cx%3D%22134%22%20cy%3D%2246%22%20r%3D%224%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22112%22%20cy%3D%2244%22%20r%3D%223%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%22156%22%20cy%3D%2244%22%20r%3D%223%22%20fill%3D%22%23FDE047%22/%3E%3Cpath%20d%3D%22M144%2C106%20L182%2C68%20M166%2C84%20L162%2C60%20M166%2C84%20L190%2C88%22%20stroke%3D%22%23FBBF24%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3Ccircle%20cx%3D%22192%22%20cy%3D%2258%22%20r%3D%224.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22160%22%20cy%3D%2250%22%20r%3D%223.5%22%20fill%3D%22%2338BDF8%22/%3E%3Ccircle%20cx%3D%22200%22%20cy%3D%2290%22%20r%3D%223.5%22%20fill%3D%22%23F43F5E%22/%3E%3Cpath%20d%3D%22M148%2C116%20L196%2C116%20M176%2C116%20L192%2C100%20M176%2C116%20L192%2C132%22%20stroke%3D%22%23FDE047%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3Ccircle%20cx%3D%22208%22%20cy%3D%22116%22%20r%3D%224.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22202%22%20cy%3D%2292%22%20r%3D%223.5%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%22202%22%20cy%3D%22140%22%20r%3D%223.5%22%20fill%3D%22%2338BDF8%22/%3E%3Cpath%20d%3D%22M144%2C126%20L180%2C162%20M164%2C146%20L186%2C142%20M164%2C146%20L158%2C170%22%20stroke%3D%22%23F59E0B%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3Ccircle%20cx%3D%22190%22%20cy%3D%22172%22%20r%3D%224%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22196%22%20cy%3D%22138%22%20r%3D%223.5%22%20fill%3D%22%2334D399%22/%3E%3Ccircle%20cx%3D%22154%22%20cy%3D%22180%22%20r%3D%223.5%22%20fill%3D%22%23FDE047%22/%3E%3Cpath%20d%3D%22M134%2C130%20L134%2C174%20M134%2C154%20L118%2C170%20M134%2C154%20L150%2C170%22%20stroke%3D%22%23FDE047%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3Ccircle%20cx%3D%22134%22%20cy%3D%22186%22%20r%3D%224%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22112%22%20cy%3D%22178%22%20r%3D%223%22%20fill%3D%22%23F43F5E%22/%3E%3Ccircle%20cx%3D%22156%22%20cy%3D%22178%22%20r%3D%223%22%20fill%3D%22%2338BDF8%22/%3E%3Cpath%20d%3D%22M124%2C106%20L86%2C68%20M102%2C84%20L78%2C88%20M102%2C84%20L106%2C60%22%20stroke%3D%22%23FDE047%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3Ccircle%20cx%3D%2276%22%20cy%3D%2258%22%20r%3D%224%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%2290%22%20r%3D%223.5%22%20fill%3D%22%2338BDF8%22/%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2250%22%20r%3D%223.5%22%20fill%3D%22%23FDE047%22/%3E%3Cpath%20d%3D%22M120%2C116%20L76%2C116%20M96%2C116%20L80%2C102%20M96%2C116%20L80%2C130%22%20stroke%3D%22%23FBBF24%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22/%3E%3Ccircle%20cx%3D%2264%22%20cy%3D%22116%22%20r%3D%224%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%2272%22%20cy%3D%2294%22%20r%3D%223.5%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%2272%22%20cy%3D%22138%22%20r%3D%223.5%22%20fill%3D%22%23F43F5E%22/%3E%3Cpolygon%20points%3D%22172%2C40%20174%2C45%20179%2C47%20174%2C49%20172%2C54%20170%2C49%20165%2C47%20170%2C45%22%20fill%3D%22%23FDE047%22/%3E%3Cpolygon%20points%3D%2298%2C40%20100%2C45%20105%2C47%20100%2C49%2098%2C54%2096%2C49%2091%2C47%2096%2C45%22%20fill%3D%22%2338BDF8%22/%3E%3Cpolygon%20points%3D%22216%2C74%20218%2C79%20223%2C81%20218%2C83%20216%2C88%20214%2C83%20209%2C81%20214%2C79%22%20fill%3D%22%23FDE047%22/%3E%3Cpolygon%20points%3D%2260%2C74%2062%2C79%2067%2C81%2062%2C83%2060%2C88%2058%2C83%2053%2C81%2058%2C79%22%20fill%3D%22%23F43F5E%22/%3E%3Cpolygon%20points%3D%22196%2C186%20198%2C190%20202%2C192%20198%2C194%20196%2C198%20194%2C194%20190%2C192%20194%2C190%22%20fill%3D%22%2338BDF8%22/%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%2288%22%20r%3D%223%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22118%22%20cy%3D%2288%22%20r%3D%222.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%22144%22%20r%3D%222.5%22%20fill%3D%22%23FDE047%22/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    border-radius: 0 !important;
    animation: fireworks-loader-burst 1.6s cubic-bezier(0.25, 0.9, 0.35, 1) infinite !important;
    filter: drop-shadow(0 0 22px rgba(251, 191, 36, 0.95)) drop-shadow(0 0 42px rgba(245, 158, 11, 0.65)) drop-shadow(0 0 50px rgba(56, 189, 248, 0.35)) !important;
    z-index: 2 !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* 3. CHRISTMAS (1st Dec - 25th Dec): Festive Decorated Tree & Star */
[data-seasonal-theme="christmas"] .dash-spinner::before,
[data-seasonal-theme="christmas"] .dash-default-spinner::before,
[data-seasonal-theme="christmas"] .dash-dot-spinner::before,
[data-seasonal-theme="christmas"] .dash-circle-spinner::before,
[data-seasonal-theme="christmas"] .dash-cube-spinner::before,
[data-seasonal-theme="christmas"] .dash-graph-spinner::before,
[data-seasonal-theme="christmas"] .loading-spinner-ring {
    content: '' !important;
    position: relative !important;
    width: 68px !important;
    height: 68px !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20256%20256%22%20width%3D%22256%22%20height%3D%22256%22%3E%3Cpolygon%20points%3D%22128%2C14%20135%2C34%20156%2C34%20139%2C46%20145%2C66%20128%2C54%20111%2C66%20117%2C46%20100%2C34%20121%2C34%22%20fill%3D%22%23FDE047%22/%3E%3Cpolygon%20points%3D%22128%2C50%20162%2C94%20146%2C94%20176%2C134%20158%2C134%20194%2C184%2062%2C184%2098%2C134%2080%2C134%20110%2C94%2094%2C94%22%20fill%3D%22%2310B981%22/%3E%3Crect%20x%3D%22116%22%20y%3D%22184%22%20width%3D%2224%22%20height%3D%2228%22%20rx%3D%223%22%20fill%3D%22%23B45309%22/%3E%3Cellipse%20cx%3D%22128%22%20cy%3D%22216%22%20rx%3D%2260%22%20ry%3D%2212%22%20fill%3D%22%23E2E8F0%22%20opacity%3D%220.6%22/%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2280%22%20r%3D%225%22%20fill%3D%22%23EF4444%22/%3E%3Ccircle%20cx%3D%22112%22%20cy%3D%22115%22%20r%3D%225.5%22%20fill%3D%22%23F59E0B%22/%3E%3Ccircle%20cx%3D%22144%22%20cy%3D%22120%22%20r%3D%225%22%20fill%3D%22%2338BDF8%22/%3E%3Ccircle%20cx%3D%2295%22%20cy%3D%22160%22%20r%3D%226%22%20fill%3D%22%23EC4899%22/%3E%3Ccircle%20cx%3D%22132%22%20cy%3D%22155%22%20r%3D%225.5%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%22162%22%20cy%3D%22162%22%20r%3D%226%22%20fill%3D%22%23EF4444%22/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    border-radius: 0 !important;
    animation: christmas-loader-float 2.4s ease-in-out infinite alternate !important;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.75)) drop-shadow(0 0 28px rgba(253, 224, 71, 0.5)) !important;
    z-index: 2 !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* 4. NEW YEAR (31st Dec - 1st Jan): Champagne Toast Glasses & Sparkling Bubbles */
[data-seasonal-theme="newyear"] .dash-spinner::before,
[data-seasonal-theme="newyear"] .dash-default-spinner::before,
[data-seasonal-theme="newyear"] .dash-dot-spinner::before,
[data-seasonal-theme="newyear"] .dash-circle-spinner::before,
[data-seasonal-theme="newyear"] .dash-cube-spinner::before,
[data-seasonal-theme="newyear"] .dash-graph-spinner::before,
[data-seasonal-theme="newyear"] .loading-spinner-ring {
    content: '' !important;
    position: relative !important;
    width: 78px !important;
    height: 78px !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20256%20256%22%20width%3D%22256%22%20height%3D%22256%22%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2295%22%20r%3D%2248%22%20fill%3D%22%23FDE047%22%20opacity%3D%220.2%22/%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2295%22%20r%3D%2224%22%20fill%3D%22%23FBBF24%22%20opacity%3D%220.35%22/%3E%3Cg%20transform%3D%22translate%28100%2C%20155%29%20rotate%2816%29%22%3E%3Cellipse%20cx%3D%220%22%20cy%3D%2254%22%20rx%3D%2216%22%20ry%3D%224%22%20fill%3D%22%23E2E8F0%22%20stroke%3D%22%23CBD5E1%22%20stroke-width%3D%221.5%22/%3E%3Cline%20x1%3D%220%22%20y1%3D%2218%22%20x2%3D%220%22%20y2%3D%2254%22%20stroke%3D%22%23E2E8F0%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M-11%2C-12%20C-11%2C8%20-6%2C18%200%2C18%20C6%2C18%2011%2C8%2011%2C-12%20Z%22%20fill%3D%22%23FBBF24%22%20opacity%3D%220.9%22/%3E%3Cellipse%20cx%3D%220%22%20cy%3D%22-12%22%20rx%3D%2211%22%20ry%3D%223.5%22%20fill%3D%22%23FEF08A%22/%3E%3Cpath%20d%3D%22M-13%2C-36%20L-12%2C-8%20C-12%2C12%20-6%2C22%200%2C22%20C6%2C22%2012%2C12%2012%2C-8%20L13%2C-36%22%20fill%3D%22none%22%20stroke%3D%22%23F8FAFC%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22/%3E%3Cellipse%20cx%3D%220%22%20cy%3D%22-36%22%20rx%3D%2213%22%20ry%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23F8FAFC%22%20stroke-width%3D%222%22/%3E%3Cpath%20d%3D%22M-9%2C-30%20L-8%2C-8%20C-8%2C4%20-4%2C12%200%2C14%22%20fill%3D%22none%22%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%221.5%22%20opacity%3D%220.8%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%22-3%22%20cy%3D%224%22%20r%3D%221.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%224%22%20cy%3D%22-2%22%20r%3D%221.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22-2%22%20cy%3D%22-8%22%20r%3D%221.8%22%20fill%3D%22%23FFFFFF%22/%3E%3C/g%3E%3Cg%20transform%3D%22translate%28156%2C%20155%29%20rotate%28-16%29%22%3E%3Cellipse%20cx%3D%220%22%20cy%3D%2254%22%20rx%3D%2216%22%20ry%3D%224%22%20fill%3D%22%23E2E8F0%22%20stroke%3D%22%23CBD5E1%22%20stroke-width%3D%221.5%22/%3E%3Cline%20x1%3D%220%22%20y1%3D%2218%22%20x2%3D%220%22%20y2%3D%2254%22%20stroke%3D%22%23E2E8F0%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M-11%2C-12%20C-11%2C8%20-6%2C18%200%2C18%20C6%2C18%2011%2C8%2011%2C-12%20Z%22%20fill%3D%22%23FBBF24%22%20opacity%3D%220.9%22/%3E%3Cellipse%20cx%3D%220%22%20cy%3D%22-12%22%20rx%3D%2211%22%20ry%3D%223.5%22%20fill%3D%22%23FEF08A%22/%3E%3Cpath%20d%3D%22M-13%2C-36%20L-12%2C-8%20C-12%2C12%20-6%2C22%200%2C22%20C6%2C22%2012%2C12%2012%2C-8%20L13%2C-36%22%20fill%3D%22none%22%20stroke%3D%22%23F8FAFC%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22/%3E%3Cellipse%20cx%3D%220%22%20cy%3D%22-36%22%20rx%3D%2213%22%20ry%3D%223.5%22%20fill%3D%22none%22%20stroke%3D%22%23F8FAFC%22%20stroke-width%3D%222%22/%3E%3Cpath%20d%3D%22M9%2C-30%20L8%2C-8%20C8%2C4%204%2C12%200%2C14%22%20fill%3D%22none%22%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%221.5%22%20opacity%3D%220.8%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%223%22%20cy%3D%224%22%20r%3D%221.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22-4%22%20cy%3D%22-2%22%20r%3D%221.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%222%22%20cy%3D%22-8%22%20r%3D%221.8%22%20fill%3D%22%23FFFFFF%22/%3E%3C/g%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2292%22%20r%3D%2214%22%20fill%3D%22%23FDE047%22%20opacity%3D%220.6%22/%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2292%22%20r%3D%226%22%20fill%3D%22%23FFFFFF%22/%3E%3Cpolygon%20points%3D%22128%2C70%20132%2C87%20148%2C92%20132%2C97%20128%2C114%20124%2C97%20108%2C92%20124%2C87%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2256%22%20r%3D%225%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%22112%22%20cy%3D%2244%22%20r%3D%224.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22144%22%20cy%3D%2240%22%20r%3D%224.5%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2224%22%20r%3D%225.5%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%2294%22%20cy%3D%2262%22%20r%3D%223.5%22%20fill%3D%22%2338BDF8%22/%3E%3Ccircle%20cx%3D%22162%22%20cy%3D%2258%22%20r%3D%223.5%22%20fill%3D%22%23F43F5E%22/%3E%3Ccircle%20cx%3D%22104%22%20cy%3D%2228%22%20r%3D%223.5%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%22152%22%20cy%3D%2222%22%20r%3D%224%22%20fill%3D%22%23FEF08A%22/%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2274%22%20r%3D%223%22%20fill%3D%22%23FFFFFF%22/%3E%3Ccircle%20cx%3D%22118%22%20cy%3D%2265%22%20r%3D%222.5%22%20fill%3D%22%23FDE047%22/%3E%3Ccircle%20cx%3D%22138%22%20cy%3D%2265%22%20r%3D%222.5%22%20fill%3D%22%23FDE047%22/%3E%3Cpolygon%20points%3D%22146%2C30%20148%2C35%20153%2C37%20148%2C39%20146%2C44%20144%2C39%20139%2C37%20144%2C35%22%20fill%3D%22%23FDE047%22/%3E%3Cpolygon%20points%3D%22110%2C30%20112%2C35%20117%2C37%20112%2C39%20110%2C44%20108%2C39%20103%2C37%20108%2C35%22%20fill%3D%22%2338BDF8%22/%3E%3Cpolygon%20points%3D%22176%2C72%20178%2C76%20182%2C78%20178%2C80%20176%2C84%20174%2C80%20170%2C78%20174%2C76%22%20fill%3D%22%23FDE047%22/%3E%3Cpolygon%20points%3D%2280%2C72%2082%2C76%2086%2C78%2082%2C80%2080%2C84%2078%2C80%2074%2C78%2078%2C76%22%20fill%3D%22%23F43F5E%22/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    border-radius: 0 !important;
    animation: newyear-toast-clink 1.8s cubic-bezier(0.25, 0.9, 0.35, 1) infinite !important;
    filter: drop-shadow(0 0 22px rgba(251, 191, 36, 0.95)) drop-shadow(0 0 40px rgba(245, 158, 11, 0.65)) drop-shadow(0 0 50px rgba(254, 240, 138, 0.45)) !important;
    z-index: 2 !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* 5. STANDARD (Nov 6 - Nov 30, Jan 2 - Sep 30, Dec 26 - Dec 30): Sleek Modern Loading Spinner Ring */
[data-seasonal-theme="standard"] .dash-spinner::before,
[data-seasonal-theme="standard"] .dash-default-spinner::before,
[data-seasonal-theme="standard"] .dash-dot-spinner::before,
[data-seasonal-theme="standard"] .dash-circle-spinner::before,
[data-seasonal-theme="standard"] .dash-cube-spinner::before,
[data-seasonal-theme="standard"] .dash-graph-spinner::before,
[data-seasonal-theme="standard"] .loading-spinner-ring {
    content: '' !important;
    position: relative !important;
    width: 52px !important;
    height: 52px !important;
    background-image: none !important;
    border: 3.5px solid rgba(56, 189, 248, 0.18) !important;
    border-top-color: #38BDF8 !important;
    border-right-color: #0284C7 !important;
    border-radius: 50% !important;
    animation: spin-loader 0.85s linear infinite !important;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.6)) !important;
    z-index: 2 !important;
    display: block !important;
    margin-bottom: 8px !important;
}

/* Glass Card Title & Subtitle text inside .dash-spinner */
.dash-spinner::after,
.dash-default-spinner::after,
.dash-dot-spinner::after,
.dash-circle-spinner::after,
.dash-cube-spinner::after,
.dash-graph-spinner::after {
    content: "Updating Metrics...\AQuerying BigQuery data" !important;
    white-space: pre-wrap !important;
    text-align: center !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #F8FAFC !important;
    letter-spacing: -0.01em !important;
    line-height: 1.45 !important;
    display: block !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Comprehensive anti-flicker rules: hide popups, tooltips, dropdowns, and Plotly modebars when loading */
body:has(.dash-spinner-container) .mantine-Select-dropdown,
body:has(.dash-spinner-container) .mantine-MultiSelect-dropdown,
body:has(.dash-spinner-container) .mantine-Popover-dropdown,
body:has(.dash-spinner-container) .mantine-Tooltip-tooltip,
body:has(.dash-spinner-container) .mantine-Modal-root,
body:has(.dash-spinner-container) .mantine-Modal-inner,
body:has(.dash-spinner-container) .mantine-Modal-modal,
body:has(.dash-spinner-container) .modebar-container,
body:has(.dash-spinner-container) .modebar,
body:has(.dash-spinner-container) .js-plotly-plot .plotly .modebar,
body:has(.dash-spinner-container) .hoverlayer,
body:has(.dash-spinner-container) .tooltip,
body:has(.dash-spinner-container) .ag-header-cell-menu-button,
body:has(.dash-spinner-container) .ag-menu,
body:has(.dash-spinner-container) .definitions-button,
body:has(._dash-loading) .mantine-Select-dropdown,
body:has(._dash-loading) .mantine-MultiSelect-dropdown,
body:has(._dash-loading) .mantine-Popover-dropdown,
body:has(._dash-loading) .mantine-Tooltip-tooltip,
body:has(._dash-loading) .mantine-Modal-root,
body:has(._dash-loading) .mantine-Modal-inner,
body:has(._dash-loading) .mantine-Modal-modal,
body:has(._dash-loading) .modebar-container,
body:has(._dash-loading) .modebar,
body:has(._dash-loading) .js-plotly-plot .plotly .modebar,
body:has(._dash-loading) .hoverlayer,
body:has(._dash-loading) .tooltip,
body:has(._dash-loading) .ag-header-cell-menu-button,
body:has(._dash-loading) .ag-menu,
body:has(._dash-loading) .definitions-button,
body:has([data-dash-is-loading="true"]) .mantine-Select-dropdown,
body:has([data-dash-is-loading="true"]) .mantine-MultiSelect-dropdown,
body:has([data-dash-is-loading="true"]) .mantine-Popover-dropdown,
body:has([data-dash-is-loading="true"]) .mantine-Tooltip-tooltip,
body:has([data-dash-is-loading="true"]) .mantine-Modal-root,
body:has([data-dash-is-loading="true"]) .mantine-Modal-inner,
body:has([data-dash-is-loading="true"]) .mantine-Modal-modal,
body:has([data-dash-is-loading="true"]) .modebar-container,
body:has([data-dash-is-loading="true"]) .modebar,
body:has([data-dash-is-loading="true"]) .js-plotly-plot .plotly .modebar,
body:has([data-dash-is-loading="true"]) .hoverlayer,
body:has([data-dash-is-loading="true"]) .tooltip,
body:has(.dashboard-backdrop-overlay) .mantine-Select-dropdown,
body:has(.dashboard-backdrop-overlay) .mantine-MultiSelect-dropdown,
body:has(.dashboard-backdrop-overlay) .mantine-Popover-dropdown,
body:has(.dashboard-backdrop-overlay) .mantine-Tooltip-tooltip,
body:has(.dashboard-backdrop-overlay) .mantine-Modal-root,
body:has(.dashboard-backdrop-overlay) .mantine-Modal-inner,
body:has(.dashboard-backdrop-overlay) .mantine-Modal-modal,
body:has(.dashboard-backdrop-overlay) .modebar-container,
body:has(.dashboard-backdrop-overlay) .modebar,
body:has(.dashboard-backdrop-overlay) .js-plotly-plot .plotly .modebar,
body:has(.dashboard-backdrop-overlay) .hoverlayer,
body:has(.dashboard-backdrop-overlay) .tooltip,
body:has(.dash-loading-callback) .mantine-Select-dropdown,
body:has(.dash-loading-callback) .mantine-MultiSelect-dropdown,
body:has(.dash-loading-callback) .mantine-Popover-dropdown,
body:has(.dash-loading-callback) .mantine-Tooltip-tooltip,
body:has(.dash-loading-callback) .mantine-Modal-root,
body:has(.dash-loading-callback) .modebar-container,
body:has(.dash-loading-callback) .modebar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Dim charts, AG grids, and SVGs during loading to prevent any high-contrast flickering */
body:has(.dash-spinner-container) .js-plotly-plot,
body:has(.dash-spinner-container) .dash-graph,
body:has(.dash-spinner-container) .plot-container,
body:has(.dash-spinner-container) .svg-container,
body:has(.dash-spinner-container) svg.main-svg,
body:has(.dash-spinner-container) .ag-root-wrapper,
body:has(.dash-spinner-container) .ag-root,
body:has(.dash-spinner-container) .ag-theme-alpine-dark,
body:has(.dashboard-backdrop-overlay) .js-plotly-plot,
body:has(.dashboard-backdrop-overlay) .dash-graph,
body:has(.dashboard-backdrop-overlay) .plot-container,
body:has(.dashboard-backdrop-overlay) .svg-container,
body:has(.dashboard-backdrop-overlay) svg.main-svg,
body:has(.dashboard-backdrop-overlay) .ag-root-wrapper,
body:has(.dashboard-backdrop-overlay) .ag-root,
body:has(.dashboard-backdrop-overlay) .ag-theme-alpine-dark,
body:has([data-dash-is-loading="true"]) .js-plotly-plot,
body:has([data-dash-is-loading="true"]) .dash-graph,
body:has([data-dash-is-loading="true"]) .plot-container,
body:has([data-dash-is-loading="true"]) .svg-container,
body:has([data-dash-is-loading="true"]) svg.main-svg,
body:has([data-dash-is-loading="true"]) .ag-root-wrapper,
body:has([data-dash-is-loading="true"]) .ag-root,
body:has([data-dash-is-loading="true"]) .ag-theme-alpine-dark {
    opacity: 0.15 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease-in-out !important;
}

/* Floating animation keyframes */
@keyframes ghost-loader-float {
    0% {
        transform: translateY(0px) rotate(-4deg) scale(1);
    }
    50% {
        transform: translateY(-12px) rotate(2deg) scale(1.03);
    }
    100% {
        transform: translateY(-20px) rotate(-3deg) scale(1.05);
    }
}

/* Fireworks golden handheld sparkler crackle & flare keyframes */
@keyframes fireworks-loader-burst {
    0% {
        transform: translateY(2px) scale(0.92) rotate(-2deg);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.8)) drop-shadow(0 0 30px rgba(245, 158, 11, 0.5));
        opacity: 0.85;
    }
    25% {
        transform: translateY(-5px) scale(1.18) rotate(3deg);
        filter: drop-shadow(0 0 35px rgba(254, 240, 138, 1)) drop-shadow(0 0 50px rgba(245, 158, 11, 0.9)) drop-shadow(0 0 25px rgba(56, 189, 248, 0.8));
        opacity: 1;
    }
    50% {
        transform: translateY(-2px) scale(1.05) rotate(-3deg);
        filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 40px rgba(244, 63, 94, 0.6));
        opacity: 0.95;
    }
    75% {
        transform: translateY(-6px) scale(1.22) rotate(2deg);
        filter: drop-shadow(0 0 38px rgba(254, 240, 138, 1)) drop-shadow(0 0 55px rgba(251, 146, 60, 0.95)) drop-shadow(0 0 30px rgba(52, 211, 153, 0.75));
        opacity: 1;
    }
    100% {
        transform: translateY(2px) scale(0.92) rotate(-2deg);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.8)) drop-shadow(0 0 30px rgba(245, 158, 11, 0.5));
        opacity: 0.85;
    }
}

/* Christmas tree & star festive floating keyframes */
@keyframes christmas-loader-float {
    0% {
        transform: translateY(0px) rotate(-2deg);
        filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.75)) drop-shadow(0 0 28px rgba(253, 224, 71, 0.45));
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
        filter: drop-shadow(0 0 22px rgba(52, 211, 153, 0.85)) drop-shadow(0 0 34px rgba(239, 68, 68, 0.45));
    }
    100% {
        transform: translateY(2px) rotate(-1deg);
        filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.65)) drop-shadow(0 0 24px rgba(253, 224, 71, 0.35));
    }
}

/* Champagne Toast celebration keyframes */
@keyframes newyear-toast-clink {
    0% {
        transform: translateY(3px) scale(0.94) rotate(-1.5deg);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 28px rgba(245, 158, 11, 0.5));
        opacity: 0.85;
    }
    25% {
        transform: translateY(-5px) scale(1.18) rotate(2deg);
        filter: drop-shadow(0 0 35px rgba(254, 240, 138, 1)) drop-shadow(0 0 50px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 25px rgba(244, 63, 94, 0.6));
        opacity: 1;
    }
    60% {
        transform: translateY(-9px) scale(1.08) rotate(-1deg);
        filter: drop-shadow(0 0 26px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 38px rgba(56, 189, 248, 0.5));
        opacity: 0.95;
    }
    85% {
        transform: translateY(-2px) scale(1.14) rotate(1deg);
        filter: drop-shadow(0 0 30px rgba(254, 240, 138, 0.95)) drop-shadow(0 0 45px rgba(251, 146, 60, 0.8));
        opacity: 1;
    }
    100% {
        transform: translateY(3px) scale(0.94) rotate(-1.5deg);
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 28px rgba(245, 158, 11, 0.5));
        opacity: 0.85;
    }
}

/* Synchronized shadow pulsation */
@keyframes ghost-loader-shadow {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(0.75);
        opacity: 0.45;
    }
    100% {
        transform: scale(0.55);
        opacity: 0.2;
    }
}

.secondary-loading {
    z-index: 10;
}

.mt-3 {
    margin-right: 10px;
}

.mantine-Notification-icon {
    background-color: transparent !important;
    background: none !important;
}

/* Executive Highlights / Key Takeaways Summary Section */
.executive-summary-wrapper {
    background-color: #07132A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 20px 20px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.executive-summary-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.20);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.executive-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.executive-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

@media (max-width: 900px) {
    .executive-summary-grid {
        grid-template-columns: 1fr;
    }
}

.executive-summary-card {
    background: rgba(15, 23, 42, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.executive-summary-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.30);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.executive-summary-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
}

.executive-summary-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #CBD5E1;
    font-weight: 400;
}

.executive-summary-text strong {
    color: #FFFFFF;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.insight-badge {
    display: inline-block;
    padding: 0 1px;
    font-size: 0.76rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin: 0 1px;
}

.insight-pos {
    background-color: transparent !important;
    background: transparent !important;
    color: #34D399;
}

.insight-neg {
    background-color: transparent !important;
    background: transparent !important;
    color: #F87171;
}

.insight-neutral {
    background-color: transparent !important;
    background: transparent !important;
    color: #94A3B8;
}

/* Clipboard Copy Controls */
.dash-clipboard,
.kpi-copy-clipboard,
.takeaway-card-copy-btn,
.summary-copy-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    outline: none !important;
}

.kpi-copy-clipboard {
    background: transparent !important;
    border: none !important;
    color: #94A3B8 !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    opacity: 0.35;
    transform: scale(0.9);
    transition: all 0.15s ease !important;
}

.kpi-metric-card:hover .kpi-copy-clipboard {
    opacity: 0.85;
}

.kpi-copy-clipboard:hover {
    color: #38BDF8 !important;
    opacity: 1 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    transform: scale(1.1) !important;
}

/* Individual Takeaway Card Copy Button */
.takeaway-card-copy-btn {
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #94A3B8 !important;
    opacity: 0.65 !important;
    transition: all 0.18s ease-in-out !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.takeaway-card-copy-btn svg {
    width: 12px !important;
    height: 12px !important;
    fill: currentColor !important;
    transition: transform 0.18s ease, fill 0.18s ease !important;
}

.executive-summary-card:hover .takeaway-card-copy-btn,
.product-breakdown-card:hover .takeaway-card-copy-btn,
.device-breakdown-card:hover .takeaway-card-copy-btn,
.market-breakdown-card:hover .takeaway-card-copy-btn,
.takeaway-card-copy-btn:hover {
    opacity: 1 !important;
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.40) !important;
    color: #38BDF8 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 6px rgba(56, 189, 248, 0.2) !important;
}

.takeaway-card-copy-btn:active {
    transform: scale(0.95) !important;
}

.takeaway-card-copy-btn.copy-success-bounce {
    background: rgba(52, 211, 153, 0.20) !important;
    border-color: rgba(52, 211, 153, 0.60) !important;
    color: #34D399 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.4) !important;
}

.takeaway-card-copy-btn.copy-success-bounce svg {
    fill: #34D399 !important;
}

/* Executive Summary & Breakdown Header Copy Pills */
.summary-copy-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    user-select: none;
    transition: all 0.18s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.summary-copy-pill:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.18);
}

.summary-copy-pill:not(.slack-share-pill):hover svg {
    color: #38BDF8 !important;
}

/* Slack Share Pill */
.slack-share-pill {
    background: rgba(224, 30, 90, 0.08);
    border: 1px solid rgba(224, 30, 90, 0.24);
    color: #E2E8F0;
}

.slack-share-pill:hover {
    background: rgba(224, 30, 90, 0.18);
    border-color: rgba(224, 30, 90, 0.50);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(224, 30, 90, 0.25);
}

/* Absolute clipboard overlay so entire button surface area is clickable */
.summary-clipboard-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Copy Button Click Tick & Animation Feedback */
.summary-copy-pill.copy-success {
    background: rgba(52, 211, 153, 0.20) !important;
    border-color: rgba(52, 211, 153, 0.60) !important;
    color: #34D399 !important;
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.35) !important;
    animation: copyPulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.summary-copy-pill.copy-success span {
    color: #34D399 !important;
    font-weight: 700 !important;
}

.summary-copy-pill.copy-success svg,
.summary-copy-pill.copy-success img {
    display: none !important;
}

.summary-copy-pill.copy-success::before {
    content: "✓";
    display: inline-block;
    color: #34D399;
    font-size: 12px;
    font-weight: 800;
    margin-right: 2px;
    animation: tickPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes copyPulse {
    0% { transform: scale(0.96); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

@keyframes tickPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.35); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.copy-success-bounce {
    color: #34D399 !important;
    transform: scale(1.25) !important;
    animation: tickPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-success-bounce svg {
    color: #34D399 !important;
    stroke: #34D399 !important;
}

/* Variance Decomposition Badge */
.driver-decomposition-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.20);
    color: #38BDF8;
    font-size: 10.5px;
    font-weight: 600;
    margin-top: 5px;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.driver-decomposition-badge:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.40);
    transform: translateY(-1px);
}

/* Unified Breakdown Section with Tabs */
.breakdown-unified-wrapper {
    background-color: #07132A;
    margin: 20px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.breakdown-unified-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.20);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.breakdown-unified-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 16px;
    flex-wrap: wrap;
}

.breakdown-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}

.breakdown-tabs-nav {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.breakdown-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: #94A3B8;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.breakdown-nav-tab:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.05);
}

.breakdown-nav-tab.active {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}

/* Ensure inner wrappers inside tab panels have no duplicate card borders/margins */
.breakdown-panels-container .resort-breakdown-wrapper,
.breakdown-panels-container .product-breakdown-wrapper,
.breakdown-panels-container .supplier-breakdown-wrapper,
.breakdown-panels-container .device-breakdown-wrapper,
.breakdown-panels-container .market-breakdown-wrapper,
.breakdown-panels-container .destination-breakdown-wrapper,
.breakdown-panels-container .session-source-breakdown-wrapper {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Standalone fallback for breakdown wrappers if rendered individually */
.resort-breakdown-wrapper,
.product-breakdown-wrapper,
.supplier-breakdown-wrapper,
.device-breakdown-wrapper,
.market-breakdown-wrapper,
.destination-breakdown-wrapper,
.session-source-breakdown-wrapper {
    background-color: #07132A;
    margin: 20px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.resort-breakdown-wrapper:hover,
.product-breakdown-wrapper:hover,
.supplier-breakdown-wrapper:hover,
.device-breakdown-wrapper:hover,
.market-breakdown-wrapper:hover,
.destination-breakdown-wrapper:hover,
.session-source-breakdown-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.20);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.resort-breakdown-header,
.product-breakdown-header,
.supplier-breakdown-header,
.device-breakdown-header,
.market-breakdown-header,
.destination-breakdown-header,
.session-source-breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.resort-parity-callout,
.product-parity-callout,
.supplier-parity-callout,
.device-parity-callout,
.market-parity-callout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.20);
    border-radius: 6px;
}

.supplier-breakdown-grid,
.resort-breakdown-grid,
.market-breakdown-grid,
.destination-breakdown-grid,
.session-source-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px;
}

.product-breakdown-grid,
.device-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

@media (max-width: 1200px) {
    .resort-breakdown-grid,
    .supplier-breakdown-grid,
    .market-breakdown-grid,
    .destination-breakdown-grid,
    .session-source-breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .resort-breakdown-grid,
    .supplier-breakdown-grid,
    .market-breakdown-grid,
    .destination-breakdown-grid,
    .session-source-breakdown-grid {
        grid-template-columns: 1fr !important;
    }
}

.resort-breakdown-card,
.product-breakdown-card,
.supplier-breakdown-card,
.device-breakdown-card,
.market-breakdown-card,
.destination-breakdown-card,
.session-source-breakdown-card {
    background: rgba(15, 23, 42, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.resort-breakdown-card:hover,
.product-breakdown-card:hover,
.supplier-breakdown-card:hover,
.device-breakdown-card:hover,
.market-breakdown-card:hover,
.destination-breakdown-card:hover,
.session-source-breakdown-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.30);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.resort-card-header,
.product-card-header,
.supplier-card-header,
.device-card-header,
.market-card-header,
.destination-card-header,
.session-source-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.resort-card-title-group,
.product-card-title-group,
.supplier-card-title-group,
.device-card-title-group,
.market-card-title-group,
.destination-card-title-group,
.session-source-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resort-card-title,
.product-card-title,
.supplier-card-title,
.device-card-title,
.market-card-title,
.destination-card-title,
.session-source-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 155px;
}

.breakdown-share-pill,
.resort-share-pill,
.product-share-pill,
.supplier-share-pill,
.device-share-pill,
.market-share-pill,
.destination-share-pill,
.session-source-share-pill {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94A3B8 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.resort-metrics-grid,
.product-metrics-grid,
.supplier-metrics-grid,
.device-metrics-grid,
.market-metrics-grid,
.destination-metrics-grid,
.session-source-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.resort-metric-col,
.product-metric-col,
.supplier-metric-col,
.device-metric-col,
.market-metric-col,
.destination-metric-col,
.session-source-metric-col {
    display: flex;
    flex-direction: column;
}

.resort-metric-label,
.product-metric-label,
.supplier-metric-label,
.device-metric-label,
.market-metric-label,
.destination-metric-label,
.session-source-metric-label {
    font-size: 10px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.resort-metric-val,
.product-metric-val,
.supplier-metric-val,
.device-metric-val,
.market-metric-val,
.destination-metric-val,
.session-source-metric-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
}

.resort-metric-sub,
.product-metric-sub,
.supplier-metric-sub,
.device-metric-sub,
.market-metric-sub,
.destination-metric-sub,
.session-source-metric-sub {
    font-size: 10px;
    color: #64748B;
    margin-top: 1px;
}

/* Resort, Product, Supplier, Device, Market & Destination Split Progress Bar */
.breakdown-split-bar-container,
.resort-split-bar-container,
.product-split-bar-container,
.supplier-split-bar-container,
.device-split-bar-container,
.market-split-bar-container,
.destination-split-bar-container,
.session-source-split-bar-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    padding: 8px 14px 10px 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.breakdown-split-bar-header,
.resort-split-bar-header,
.product-split-bar-header,
.supplier-split-bar-header,
.device-split-bar-header,
.market-split-bar-header,
.destination-split-bar-header,
.session-source-split-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.breakdown-split-bar-title {
    font-size: 10px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.breakdown-split-bar-track,
.resort-split-bar-track,
.product-split-bar-track,
.supplier-split-bar-track,
.device-split-bar-track,
.market-split-bar-track,
.destination-split-bar-track,
.session-source-split-bar-track {
    display: flex;
    height: 8px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    gap: 1.5px;
}

.breakdown-split-bar-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 2px;
}

.breakdown-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5.5px;
    font-size: 11px;
    line-height: 1;
}

.breakdown-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.breakdown-legend-name {
    font-weight: 500;
    color: #CBD5E1;
}

.breakdown-legend-pct {
    font-weight: 600;
    color: #94A3B8;
    font-variant-numeric: tabular-nums;
}

.dest-view-toggle-group,
.session-source-view-toggle-group,
.breakdown-view-toggle-group,
.dist-metric-toggle-group {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    height: 24px;
    box-sizing: border-box;
}

.dest-view-pill,
.session-source-view-pill,
.breakdown-view-toggle-btn,
.dist-metric-pill {
    background: transparent;
    border: none;
    outline: none;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 600;
    padding: 0 10px;
    height: 18px;
    line-height: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.dest-view-pill:hover,
.session-source-view-pill:hover,
.breakdown-view-toggle-btn:hover,
.dist-metric-pill:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.08);
}

.dest-view-pill.active,
.session-source-view-pill.active,
.breakdown-view-toggle-btn.active,
.dist-metric-pill.active {
    background: #0284C7 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.4) !important;
}

/* Ag-Grid Pinned Bottom Row Styling */
.ag-theme-alpine-dark .ag-floating-bottom {
    background-color: rgba(15, 23, 42, 0.95) !important;
    font-weight: 700 !important;
    border-top: 2px solid #38BDF8 !important;
    color: #F8FAFC !important;
}

.ag-theme-alpine-dark .ag-floating-bottom .ag-cell {
    color: #38BDF8 !important;
    font-size: 12.5px !important;
}

/* ==========================================================================
   Active Filter Dropdown Glowing Highlights
   ========================================================================== */

/* Active Dropdown Highlights */
.compact-dropdown-wrapper.filter-active,
.dates-wrapper.filter-active {
    position: relative;
}

.compact-dropdown-wrapper.filter-active .dropdown-title,
.dates-wrapper.filter-active .dropdown-title {
    color: #F59E0B !important;
}

.compact-dropdown-wrapper.filter-active .mantine-Select-input,
.compact-dropdown-wrapper.filter-active .mantine-MultiSelect-input,
.compact-dropdown-wrapper.filter-active div[class*="Select-input"],
.compact-dropdown-wrapper.filter-active input {
    border: 2px solid #F59E0B !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35) !important;
    background-color: #FFFFFF !important;
    color: #1E293B !important;
}

.dates-wrapper.filter-active button#ecommerce-overview-open-departure-dates-btn,
.dates-wrapper.filter-active button#ecommerce-overview-hotels-open-departure-dates-btn,
.dates-wrapper.filter-active button#ecommerce-overview-tickets-open-departure-dates-btn,
.dates-wrapper.filter-active button#demo-ecommerce-overview-open-departure-dates-btn,
.dates-wrapper.filter-active button#demo-ecommerce-overview-hotels-open-departure-dates-btn,
.dates-wrapper.filter-active button#demo-ecommerce-overview-tickets-open-departure-dates-btn,
.dates-wrapper.filter-active button#behaviour-hotel-search-open-check-in-dates-btn {
    border: 2px solid #F59E0B !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35) !important;
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Ecommerce Overview Unified Scope Switcher Bar
   ========================================================================== */

.overview-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 16px 20px 14px 20px;
    background-color: #0E223E;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.overview-sticky-header:has(.dashboard-backdrop-overlay),
.overview-sticky-header:has(.overview-loading-indicator-wrapper) {
    z-index: 99999999 !important;
}

.overview-sticky-header .filters-wrapper {
    position: relative;
    z-index: 1;
    margin: 0;
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 18px;
    overflow-x: auto;
    overflow-y: visible;
}

.overview-sticky-header .lead-dropdown-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 0;
}

.overview-sticky-header .dropdown-wrapper,
.overview-sticky-header .compact-dropdown-wrapper,
.overview-sticky-header .dates-wrapper {
    margin: 0 !important;
    width: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.overview-sticky-header .dropdown-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px !important;
    white-space: nowrap;
    line-height: 1.1;
}

.overview-sticky-header .ecommerce-overview-bot-filter-container {
    padding-left: 2px;
    padding-right: 10px;
    margin-right: 6px;
    height: 40px;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.overview-sticky-header .mantine-Select-input,
.overview-sticky-header .mantine-MultiSelect-input,
.overview-sticky-header div[class*="Select-input"],
.overview-sticky-header input[class*="Select-input"] {
    font-size: 13.5px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
}

.overview-sticky-header .mantine-MultiSelect-root {
    min-width: 110px !important;
    max-width: 340px !important;
    width: auto !important;
}

.overview-sticky-header .mantine-MultiSelect-input {
    min-width: 110px !important;
    max-width: 340px !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

.overview-sticky-header .mantine-MultiSelect-input::-webkit-scrollbar {
    display: none !important;
}

.overview-sticky-header .mantine-MultiSelect-values {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    max-height: 34px !important;
}

.overview-sticky-header .mantine-MultiSelect-value {
    margin: 0 !important;
    height: 26px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    white-space: nowrap !important;
}

.overview-sticky-header button#ecommerce-overview-open-departure-dates-btn,
.overview-sticky-header button#ecommerce-overview-hotels-open-departure-dates-btn,
.overview-sticky-header button#ecommerce-overview-tickets-open-departure-dates-btn,
.overview-sticky-header button#demo-ecommerce-overview-open-departure-dates-btn,
.overview-sticky-header button#demo-ecommerce-overview-hotels-open-departure-dates-btn,
.overview-sticky-header button#demo-ecommerce-overview-tickets-open-departure-dates-btn,
.overview-sticky-header button#ecommerce-overview-open-dates-btn,
.overview-sticky-header button#ecommerce-overview-hotels-open-dates-btn,
.overview-sticky-header button#ecommerce-overview-tickets-open-dates-btn,
.overview-sticky-header button#demo-ecommerce-overview-open-dates-btn,
.overview-sticky-header button#demo-ecommerce-overview-hotels-open-dates-btn,
.overview-sticky-header button#demo-ecommerce-overview-tickets-open-dates-btn,
.overview-sticky-header button#behaviour-hotel-search-open-check-in-dates-btn,
.overview-sticky-header button#behaviour-hotel-search-open-dates-btn {
    height: 40px !important;
    font-size: 12.5px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    border: 1px solid #CBD5E1 !important;
    font-weight: 500 !important;
}

.overview-scope-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(11, 25, 44, 0.95);
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1005;
}

.overview-scope-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overview-scope-title {
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}

.overview-scope-bullet {
    color: #475569;
    font-size: 14px;
}

.overview-scope-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
}

.overview-scope-badge {
    font-size: 11px;
    font-weight: 600;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
}

.overview-scope-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.75);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.overview-scope-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.overview-scope-tab:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.06);
}

.overview-scope-tab.active {
    background: #0284C7;
    color: #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.4);
    cursor: default;
}

.overview-scope-right-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-scope-sync-wrapper {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Currency Switch Segmented Control Selected Label Styling (Pure White)
   ========================================================================== */
.currency-switch-control label[data-active],
.currency-switch-control label[data-active] *,
.currency-switch-control input:checked + label,
.currency-switch-control input:checked + label *,
.currency-switch-control [data-active],
.currency-switch-control [data-active] *,
.overview-scope-sync-wrapper label[data-active],
.overview-scope-sync-wrapper label[data-active] *,
.overview-scope-sync-wrapper input:checked + label,
.overview-scope-sync-wrapper input:checked + label *,
.overview-scope-sync-wrapper [data-active],
.overview-scope-sync-wrapper [data-active] *,
.currency-conversion-button-wrapper label[data-active],
.currency-conversion-button-wrapper label[data-active] *,
.currency-conversion-button-wrapper input:checked + label,
.currency-conversion-button-wrapper input:checked + label *,
.currency-conversion-button-wrapper [data-active],
.currency-conversion-button-wrapper [data-active] * {
    color: #FFFFFF !important;
}

.currency-switch-control label:hover,
.overview-scope-sync-wrapper label:hover {
    color: #F1F5F9 !important;
}

/* ==========================================================================
   Top Slim Animated Progress Bar & Header Live Sync Badge & Backdrop Overlay
   ========================================================================== */

.overview-global-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 3.5px;
    background: rgba(14, 34, 62, 0.4);
    overflow: hidden;
    z-index: 99999999;
    pointer-events: none;
}

.overview-global-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #38BDF8 30%, #0284C7 60%, #38BDF8 85%, transparent 100%);
    animation: shimmer-progress 1.3s infinite cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 14px #38BDF8, 0 0 6px #0284C7;
}

/* Greyed-out backdrop overlay matching menu blur */
.dashboard-backdrop-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(11, 25, 44, 0.85) !important;
    background: rgba(11, 25, 44, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    animation: fadeInOverlay 0.15s ease-in-out !important;
    cursor: wait !important;
    pointer-events: all !important;
    transition: opacity 0.2s ease-in-out !important;
}

/* Ensure no floating dropdowns/tooltips/popovers bleed above the backdrop */
body:has(.dashboard-backdrop-overlay) .mantine-Select-dropdown,
body:has(.dashboard-backdrop-overlay) .mantine-MultiSelect-dropdown,
body:has(.dashboard-backdrop-overlay) .mantine-Popover-dropdown,
body:has(.dashboard-backdrop-overlay) .mantine-Tooltip-tooltip,
body:has(.dashboard-backdrop-overlay) .mantine-Modal-root {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-glass-card {
    background: rgba(7, 19, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 24px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    user-select: none;
}

/* Inherits full seasonal animation from main loading rules */
.loading-spinner-ring {
    position: relative;
    z-index: 2;
}

.loading-glass-title {
    color: #F8FAFC;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.loading-glass-subtitle {
    color: #94A3B8;
    font-size: 12px;
    font-weight: 500;
}

@keyframes shimmer-progress {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes spin-loader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sync-spinner-icon {
    animation: spin-loader 0.85s linear infinite;
    color: #38BDF8;
}

.sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    user-select: none;
    transition: all 0.25s ease;
}

.sync-status-badge.idle {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.sync-status-badge.updating {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38BDF8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.sync-idle-icon {
    color: #34D399;
}

.overview-sync-loading-container {
    display: inline-flex;
    align-items: center;
}

.overview-loading-indicator-wrapper {
    display: inline-flex;
    align-items: center;
}




/* ==========================================================================
   Customer Journey & Funnel Friction Diagnostics
   ========================================================================== */

.journey-diagnostics-wrapper {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 22px;
    margin: 16px 0 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.journey-diagnostics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.journey-diagnostics-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.journey-diagnostics-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.journey-diagnostics-subtitle {
    font-size: 0.78rem;
    color: #94A3B8;
    margin: 0;
}

.journey-funnel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.funnel-step-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease;
}

.funnel-step-card:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.30);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.funnel-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.funnel-step-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
}

.funnel-step-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.funnel-step-sub {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opportunity-callout-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.opportunity-callout-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

.opportunity-callout-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #38BDF8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.opportunity-callout-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #38BDF8;
    font-variant-numeric: tabular-nums;
    margin: 4px 0;
}

.opportunity-callout-desc {
    font-size: 0.76rem;
    color: #94A3B8;
    line-height: 1.4;
    margin: 0;
}

.device-matrix-wrapper {
    background: rgba(11, 25, 44, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow-x: auto;
    margin-top: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.device-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    white-space: nowrap;
}

.device-matrix-th {
    background: rgba(15, 23, 42, 0.95);
    color: #94A3B8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.device-matrix-th.text-right,
.device-matrix-td.text-right {
    text-align: right;
}

.device-matrix-td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #E2E8F0;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

.device-matrix-row:hover {
    background: rgba(56, 189, 248, 0.05);
}

.health-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.health-pill-healthy {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.health-pill-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #FBBF24;
}

.health-pill-critical {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

.product-insights-box {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-insights-icon {
    color: #38BDF8;
    margin-top: 1px;
    flex-shrink: 0;
}

.product-insights-content {
    font-size: 0.80rem;
    color: #CBD5E1;
    line-height: 1.5;
}

.product-insights-content strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* ==========================================================================
   Nebula Staff Monitoring Tabs Dark Theme Styling
   ========================================================================== */
.monitoring-tab-btn,
.mantine-Tabs-tab,
div[class*="Tabs-tab"],
button[class*="Tabs-tab"] {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 10px 18px !important;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.2s ease !important;
}

.monitoring-tab-btn:hover,
.mantine-Tabs-tab:hover,
div[class*="Tabs-tab"]:hover,
button[class*="Tabs-tab"]:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.monitoring-tab-btn[data-active="true"],
.mantine-Tabs-tab[data-active="true"],
div[class*="Tabs-tab"][data-active="true"],
button[class*="Tabs-tab"][data-active="true"],
.monitoring-tab-btn[aria-selected="true"],
.mantine-Tabs-tab[aria-selected="true"],
div[class*="Tabs-tab"][aria-selected="true"],
button[class*="Tabs-tab"][aria-selected="true"] {
    color: #38bdf8 !important;
    border-bottom: 2px solid #38bdf8 !important;
    font-weight: 700 !important;
    background-color: rgba(56, 189, 248, 0.1) !important;
}

.mantine-Tabs-tabLabel,
div[class*="Tabs-tabLabel"] {
    color: inherit !important;
    font-weight: inherit !important;
}

.mantine-Tabs-tabSection,
div[class*="Tabs-tabSection"] {
    color: inherit !important;
}

/* ==========================================================================
   Check-In Seasonality Matrix / Heatmap Styles
   ========================================================================== */

.seasonality-matrix-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.seasonality-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 1024px) {
    .seasonality-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .seasonality-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.seasonality-kpi-card {
    background: rgba(15, 23, 42, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.seasonality-kpi-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.30);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.seasonality-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seasonality-kpi-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.seasonality-kpi-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94A3B8;
}

.seasonality-kpi-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.seasonality-kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.seasonality-kpi-val {
    font-size: 18px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.02em;
}

.seasonality-kpi-sub {
    font-size: 11px;
    color: #64748B;
    line-height: 1.3;
}

/* Seasonality Matrix Table Card */
.seasonality-matrix-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.seasonality-matrix-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.seasonality-matrix-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.seasonality-matrix-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 5px;
    table-layout: fixed;
}

.seasonality-matrix-table th {
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94A3B8;
    text-align: center;
}

.seasonality-matrix-table th.col-year {
    width: 105px;
    text-align: left;
    padding-left: 8px;
}

.seasonality-matrix-table th.col-total {
    width: 115px;
    text-align: right;
    padding-right: 8px;
    color: #38BDF8;
}

.seasonality-matrix-table td {
    padding: 0;
    vertical-align: middle;
}

.seasonality-matrix-table td.col-year {
    padding-left: 4px;
    vertical-align: middle;
}

.seasonality-matrix-table td.col-total {
    padding-right: 4px;
    text-align: right;
    vertical-align: middle;
}

/* Year Badge */
.matrix-year-badge-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.matrix-year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #F8FAFC;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.matrix-year-sub {
    font-size: 10px;
    color: #64748B;
    font-weight: 500;
}

/* Month Cell */
.matrix-cell {
    border-radius: 8px;
    padding: 8px 4px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.matrix-cell:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.matrix-cell.cell-empty {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: #475569;
}

.matrix-cell.cell-past {
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.04);
    color: #475569;
    opacity: 0.35;
    cursor: default;
    user-select: none;
}

.matrix-cell.cell-level-1 {
    background: rgba(56, 189, 248, 0.07);
    border: 1px solid rgba(56, 189, 248, 0.14);
}

.matrix-cell.cell-level-2 {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.26);
}

.matrix-cell.cell-level-3 {
    background: rgba(14, 165, 233, 0.30);
    border: 1px solid rgba(56, 189, 248, 0.42);
}

.matrix-cell.cell-level-4 {
    background: rgba(2, 132, 199, 0.52);
    border: 1px solid rgba(56, 189, 248, 0.62);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.matrix-cell.cell-level-peak {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.90) 0%, rgba(56, 189, 248, 0.80) 100%);
    border: 1px solid #7DD3FC;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.matrix-cell-val {
    font-size: 12px;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.1;
}

.matrix-cell.cell-level-peak .matrix-cell-val {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}

.matrix-cell-share {
    font-size: 10px;
    font-weight: 600;
    color: #94A3B8;
    line-height: 1;
}

.matrix-cell.cell-level-peak .matrix-cell-share {
    color: #E0F2FE;
    font-weight: 700;
}

.matrix-peak-tag {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 8px;
    line-height: 1;
}

/* Total Column Card */
.matrix-total-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.matrix-total-val {
    font-size: 13px;
    font-weight: 700;
    color: #F8FAFC;
}

.matrix-total-share {
    font-size: 10px;
    font-weight: 600;
    color: #38BDF8;
}

.matrix-total-bar-track {
    width: 65px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.matrix-total-bar-fill {
    height: 100%;
    background: #38BDF8;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Seasonality Profile Row (Bottom summary) */
.seasonality-profile-row td {
    padding-top: 10px !important;
}

.seasonality-profile-cell {
    border-radius: 8px;
    padding: 7px 4px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
    transition: all 0.15s ease;
}

.seasonality-profile-cell:hover {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateY(-2px);
}

.seasonality-profile-cell.is-peak-profile {
    background: rgba(245, 158, 11, 0.24);
    border: 1px solid #F59E0B;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.seasonality-profile-val {
    font-size: 11px;
    font-weight: 700;
    color: #FEF3C7;
}

.seasonality-profile-share {
    font-size: 9.5px;
    font-weight: 600;
    color: #FBBF24;
}

/* Heatmap Legend Scale */
.seasonality-legend-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.seasonality-legend-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
}

.seasonality-legend-scale {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.seasonality-legend-step {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: #94A3B8;
}

.seasonality-legend-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

/* ==========================================================================
   CUSTOM FUNNEL BUILDER - DARK TABLE & UNIFIED FILTERS OVERRIDES
   ========================================================================== */
.custom-funnel-table {
    background-color: #08122b !important;
    color: #e2e8f0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.custom-funnel-table thead th {
    background-color: #0c1a38 !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: none !important;
}

.custom-funnel-table tbody td {
    background-color: #08122b !important;
    color: #e2e8f0 !important;
    font-size: 12.5px !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top: none !important;
    vertical-align: middle !important;
}

.custom-funnel-table tbody tr:hover td {
    background-color: #0e234c !important;
    color: #ffffff !important;
}

.custom-funnel-table tbody tr.summary-row td {
    background-color: #0e2452 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-top: 2px solid #38bdf8 !important;
    border-bottom: none !important;
}

.custom-funnel-table tbody tr.summary-row:hover td {
    background-color: #122c63 !important;
}

/* ==========================================================================
   CUSTOM FUNNEL BUILDER - ENHANCED INSIGHTS & SIMULATOR STYLES
   ========================================================================== */

/* 1. Automated Anomaly & Benchmark Findings Ribbon */
.anomaly-findings-ribbon {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.anomaly-ribbon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.anomaly-ribbon-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #38BDF8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.anomaly-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.anomaly-chip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.anomaly-chip:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-1px);
}

.anomaly-chip-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0;
}

.anomaly-chip-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.anomaly-chip-title {
    font-size: 11px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: 0.3px;
}

.anomaly-chip-text {
    font-size: 11.5px;
    color: #CBD5E1;
    line-height: 1.4;
}

/* 2. Interactive CRO Sensitivity Simulator */
.cro-simulator-wrapper {
    background: #08122B;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.cro-simulator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cro-simulator-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cro-simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1100px) {
    .cro-simulator-grid {
        grid-template-columns: 1fr;
    }
}

.cro-slider-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.cro-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cro-slider-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #E2E8F0;
}

.cro-slider-val {
    font-size: 11.5px;
    font-weight: 700;
    color: #38BDF8;
}

.cro-results-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
}

.cro-results-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cro-result-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
}

.cro-result-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
    margin-bottom: 4px;
}

.cro-result-value {
    font-size: 18px;
    font-weight: 800;
    color: #38BDF8;
}

.cro-result-sub {
    font-size: 11px;
    color: #34D399;
    font-weight: 600;
    margin-top: 2px;
}

/* 3. Heatmap Matrix Tab Styles */
.funnel-heatmap-wrapper {
    background: #08122B;
    border-radius: 8px;
    padding: 16px;
}

.funnel-heatmap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 12px;
}

.funnel-heatmap-table th {
    background: #0C1A38;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.funnel-heatmap-table td {
    padding: 9px 12px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.heatmap-rate-cell {
    font-weight: 700;
    border-radius: 4px;
    padding: 4px 8px;
    display: inline-block;
    min-width: 58px;
    text-align: center;
}

/* 4. Opportunity Sizing & Leakage Strip */
.opportunity-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.opportunity-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opportunity-card-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94A3B8;
    letter-spacing: 0.4px;
}

.opportunity-card-value {
    font-size: 16px;
    font-weight: 800;
    color: #F8FAFC;
}

.opportunity-card-hint {
    font-size: 10.5px;
    color: #38BDF8;
    font-weight: 500;
}







