.two-column-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    padding: 10px;
    margin: 0 auto;      /* Center the block */
}

.two-column-item {
    flex: 1 1 30%;
    box-sizing: border-box;
    margin-left: 15px;
    margin-right: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.three-column-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    padding: 10px;      
    margin: 0 auto;      /* Center the block */
}

.three-column-item {
    flex: 1 1 30%;
    box-sizing: border-box;
    margin-left: 15px;
    margin-right: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* additional */
/* Navigation bar styling */
.navbar {
    background-color: #f8f9fa;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}
/* With mahis color */
.nav-link:hover {
    background-color: #e9ecef;
    color: #006401;;
}

/* Active link styling - will be added by callback */
.active {
    background-color: #007bff;
    color: white !important;
}

/* Page content styling */
.content-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-content {
    color: #7f8c8d;
    line-height: 1.6;
}

/* malaria report */
/* Main container */
.container {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 0px;
    font-family: Arial, sans-serif;
}

/* Header styles */
.header {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 0px;
}

/* Table styles */
.data-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
}

.data-table th {
    background-color: #f2f2f2;
    text-align: left;
}

.data-table .center {
    text-align: center;
}

.data-table .highlight {
    background-color: #cccbcb;
    font-weight: bold;
}

.data-table .red {
    background-color: #fc8888;
    font-weight: bold;
}

/* Card styles */
.card-container-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;  /* optional: allow horizontal scroll if needed */
}
.card-container-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 equal columns */
    gap: 20px;                              /* space between cards */
    margin-bottom: 30px;
    width: 100%;
    justify-items: stretch;                 /* cards stretch to fill column */
}
.card-container-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 2 equal columns */
    gap: 20px;                              /* space between cards */
    margin-bottom: 30px;
    width: 100%;
    justify-items: stretch;                 /* cards stretch to fill column */
}

.card {
    width: 100%;           /* Slightly smaller than column to avoid edge-to-edge stretch */
    max-width: 100%;     /* Prevents over-stretching on wide screens */
    /* min-width: 250px;     Optional: prevent too small on narrow screens */
    max-height: 600px;
    overflow-y: auto;
    /* overflow: visible !important; */
    margin-top: 20px;
    /* border: 1px solid #f4f4f4; */
    /* border-radius: 5px; */
    /* text-align: center; */
    /* box-shadow: 0 2px 3px rgba(0,0,0,0.1); */
    background-color: #ffffff;
}

.card-2 {
    width: 95%;           /* Slightly smaller than column to avoid edge-to-edge stretch */
    max-width: 100%;     /* Prevents over-stretching on wide screens */
    /* min-width: 250px;     Optional: prevent too small on narrow screens */
    max-height: 450px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    background-color: #fff;
}

/* .card-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #3498db;
} */

.card-value {
    font-size: 24px;
    text-align: center;
    margin: 10px 0;
}

/* Chart container */
.chart-container {
    margin-top: 30px;
}

/* Counts */
.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px 0;
    color: #333;
    text-align: center;
}

.metric-title {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* filters */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-end;
}

.filter-input {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    /* height: 20px; */
    margin-bottom: 10px;
}

.filter-input label {
    color: #888;
    font-size: 13px;
    margin-bottom: 4px;
}

/* dcc.Dropdown styling */
.Select-control {
    border: 1px solid #ccc !important;
    border-radius: 4px;
    padding: 4px 8px;
}

/* dcc.DatePickerRange input styling */
.DateInput_input {
    border: 1px solid #fcfbfb !important;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 14px;
}

/* SUB MENU */
.has-submenu {
    position: relative;
    margin: 0 15px; /* Spacing between menu items */
}

/* Submenu container - hidden by default */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 300px;
    margin-top: 5px;
    padding: 8px 0;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease-out;
    pointer-events: none;
}

/* Visible state for click-triggered submenu */
.submenu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Submenu items */
.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s;
}

/* Hover state for submenu items */
.submenu a:hover {
    background: #f5f5f5;
    color: #0066cc;
    padding-left: 22px;
}

/* Chevron indicator for items with submenus */
.has-submenu > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 0.9em;
    vertical-align: middle;
    transition: transform 0.2s;
}

/* Rotate chevron when submenu is open */
.has-submenu.show-submenu > a::after {
    transform: rotate(180deg);
}

/* Active state for parent menu item */
.has-submenu.show-submenu > a {
    color: #0066cc;
    font-weight: 500;
}

.list-title {
    font-size: 0.95rem;
    font-weight: normal;
    color: black;
    margin-bottom: 10px;
}

.list-item-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.list-item-actions button {
    margin-left: 6px;
}


/*  */
/* Horizontal scroll container */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 16px;
    padding: 14px;
    background: #ffffff;
    border-bottom: 1px solid #ffffff;

    /* Hide scrollbar on Firefox + Edge */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar on Chrome + Safari */
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Menu button design */
.menu-btn {
    flex: 0 0 auto;
    padding: 12px 16px;
    font-size: 14px;
    background-color: #006401;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.menu-btn:hover {
    background-color: #6f6f6f;
}

.menu-btn.active {
    background-color: #6f6f6f; /* Grey when clicked */
    color: white;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Page Layout */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
    font-size: 2rem;
}

/* Card Styles */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px;
    margin: -16px -16px 16px -16px;
    border-radius: 8px 8px 0 0;
}

.card-header-title {
    margin: 0;
    color: #495057;
    font-size: 1.2rem;
}

.card-body {
    padding: 10px 0;
}

.card-body-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card-col {
    flex: 1;
    min-width: 300px;
}

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

/* Form Elements */
.form-label {
    font-weight: normal;
    margin-bottom: 2px;
    margin-top: 2px;
    display: block;
    color: black;
    font-size: 0.8rem;
}

.form-label-disabled {
    font-weight: normal;
    margin-bottom: 2px;
    margin-top: 2px;
    display: block;
    color: grey;
    font-size: 0.8rem;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0px;
    font-size: 0.8rem;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* .dropdown {
    margin-bottom: 15px;
} */

/* Button Styles */
.btn-primary {
    background-color: #198754;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #198754;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #198754;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: #1e7e34;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.btn-save {
    background-color: #006401;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Control Buttons */
.control-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.action-buttons {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Count Items */
.count-item {
    border: 1px solid #007bff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f8fbff;
}

.count-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.count-col {
    flex: 1;
    min-width: 200px;
}

/* Chart Items */
.chart-item {
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #f8fff9;
}

.chart-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.chart-col {
    flex: 1;
    min-width: 150px;
}


.chart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
}

.chart-field {
    display: flex;
    flex-direction: column;
}


/* Section Items */
.section-item {
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: white;
}

.section-header {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.section-col {
    flex: 1;
    min-width: 300px;
}

.charts-container {
    margin-top: 10px;
}

/* Overview Cards */
.overview-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.overview-card {
    text-align: center;
    flex: 1;
    min-width: 200px;
    border-radius: 8px;
    padding: 20px;
    border-top: 4px solid;
}

.overview-card-counts {
    border-top-color: #007bff;
    background: linear-gradient(135deg, #f8fbff, #e3f2fd);
}

.overview-card-sections {
    border-top-color: #28a745;
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
}

.overview-card-charts {
    border-top-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0, #fff3cd);
}

.overview-number {
    color: #2c3e50;
    font-size: 2.5em;
    margin: 10px 0;
    font-weight: bold;
}

.overview-label {
    color: #6c757d;
    font-weight: bold;
    margin: 0;
}


.sortable-ghost {
    opacity: 0.4;
    background: #e0ffe0 !important;
}


/* JSON Display */
.json-details {
    cursor: pointer;
    width: 100%;
}

.json-summary {
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.json-pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    max-height: 400px;
    border: 1px solid #ddd;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

/* Dropdown Improvements */
.Select-control {
    border-radius: 4px;
    border: 1px solid #ddd !important;
}

.Select-menu-outer {
    border-radius: 4px;
    border: 1px solid #ddd !important;
    z-index: 1002;
}

.Select-option.is-focused {
    background-color: #e3f2fd;
}

/* Stylish dropdown */
.dropdown .Select-control {
    border: 2px solid #006401 !important;
    border-radius: 1px !important;
    background: #ffffff;
    min-height: 42px;
    box-shadow: none !important;
}

.dropdown .Select-placeholder {
    color: #666 !important;
    font-size: 0.9rem;
}

.dropdown .Select-menu-outer {
    border: 1px solid #006401 !important;
    border-radius: 8px !important;
    box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.dropdown .Select-option {
    padding: 10px 12px !important;
    font-size: 0.9rem;
}

.dropdown .Select-option.is-focused {
    background-color: #e4f7e4 !important;
    color: #006401 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 10px;
    }
    
    .card-body-flex,
    .count-row,
    .chart-row,
    .section-header {
        flex-direction: column;
    }
    
    .card-col,
    .count-col,
    .chart-col,
    .section-col {
        min-width: 100%;
    }
    
    .overview-cards {
        flex-direction: column;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

.preview-popup,
.upload-popup,
.edit-popup,
.archive-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none; /* Show via JS */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.nav-btn {
    width: 100%;
    padding: 10px 15px;
    background: #f8f8f8;
    color: rgb(0, 0, 0);
    border: 1px;
    border-color: #e6e5e5;
    text-align: left;
    margin-top: 10px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.nav-btn:hover {
    background: #006401;
    color: white;
}

.nav-btn:selected {
    background: #006401;
    color: white;
}


/* Common button style */
.report-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}

/* Edit button */
.edit-btn-svg {
  background-color: #2563eb; /* blue */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 24 24'><path d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1.003 1.003 0 0 0 0-1.42l-2.34-2.34a1.003 1.003 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z'/></svg>");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 16px;
  padding-left: 32px; /* space for icon */
}

/* Archive button */
.archive-btn-svg {
  background-color: #f59e0b; /* amber */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 24 24'><path d='M20.54 5.23l-1.39-1.39C18.88 3.32 18.47 3 18 3H6c-.47 0-.88.32-1.15.84L3.46 5.23C3.17 5.62 3 6.09 3 6.58V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.58c0-.49-.17-.96-.46-1.35zM12 17l-4-4h3V9h2v4h3l-4 4z'/></svg>");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 16px;
  padding-left: 32px;
}

/* Download button */
.download-btn-svg {
  background-color: #10b981; /* green */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 24 24'><path d='M5 20h14v-2H5v2zm7-18l-5.5 5.5h4v6h3v-6h4L12 2z'/></svg>");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 16px;
  padding-left: 32px;
}

.premium-dashboard {
    margin-top: 8px;
}

.premium-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(166, 213, 214, 0.22), transparent 26%),
        linear-gradient(180deg, #f5f8fb 0%, #eef4f6 100%);
    border: 1px solid #dbe7ec;
    box-shadow: 0 24px 60px rgba(37, 76, 88, 0.09);
}

.premium-rail {
    position: sticky;
    top: 18px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
    border: 1px solid #dfebef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-rail-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #123b56;
}

.premium-rail-copy {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #5b7080;
}

.premium-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-rail-item {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #315469;
    background: rgba(232, 241, 246, 0.52);
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.premium-rail-item:hover {
    transform: translateX(2px);
    background: rgba(213, 232, 241, 0.8);
}

.premium-rail-item-active {
    background: linear-gradient(135deg, #dff0fb, #e9f8fb);
    border-color: #c5dfec;
    font-weight: 600;
}

.premium-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #f8fbfd);
    border: 1px solid #dde9ef;
    box-shadow: 0 12px 30px rgba(47, 88, 103, 0.07);
}

.premium-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f4fb;
    color: #146084;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.premium-title {
    margin: 0;
    color: #0d2234;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.1;
    font-family: Georgia, "Times New Roman", serif;
}

.premium-subtitle {
    max-width: 760px;
    margin: 12px 0 0;
    color: #5d7080;
    font-size: 1rem;
    line-height: 1.7;
}

.premium-filter-strip {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 12px;
    min-width: 280px;
}

.premium-filter-chip {
    min-width: 150px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f6fbfd, #edf5f8);
    border: 1px solid #d7e6ed;
}

.premium-filter-label {
    display: block;
    margin-bottom: 6px;
    color: #658091;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.premium-filter-value {
    display: block;
    color: #16354f;
    font-size: 1rem;
    font-weight: 600;
}

.premium-overview-band {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.premium-overview-copy {
    padding: 22px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #0f6b9a, #1782a2);
    box-shadow: 0 14px 36px rgba(23, 107, 154, 0.18);
}

.premium-overview-kicker {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #eaf9ff;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.premium-overview-title {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.2;
}

.premium-overview-text {
    margin: 0;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    font-size: 0.95rem;
}

.premium-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.premium-metric-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f9fcfd);
    border: 1px solid #dde8ee;
    box-shadow: 0 12px 26px rgba(47, 88, 103, 0.07);
    min-height: 165px;
}

.premium-metric-accent {
    width: 54px;
    height: 6px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.premium-accent-blue { background: linear-gradient(90deg, #1f7aec, #78c8ff); }
.premium-accent-mint { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.premium-accent-teal { background: linear-gradient(90deg, #0f9db5, #82e1e8); }
.premium-accent-gold { background: linear-gradient(90deg, #f2a93b, #f8d17b); }

.premium-metric-label {
    color: #5f7483;
    font-size: 0.88rem;
    line-height: 1.45;
    min-height: 40px;
}

.premium-metric-value {
    margin-top: 10px;
    color: #10293d;
    font-size: 2.1rem;
    font-weight: 700;
}

.premium-metric-caption {
    margin-top: 8px;
    color: #7a8f9d;
    font-size: 0.82rem;
}

.premium-sections {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.premium-section-block {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #fbfdfe);
    border: 1px solid #dbe7ec;
    box-shadow: 0 14px 32px rgba(47, 88, 103, 0.06);
}

.premium-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.premium-section-title {
    margin: 0;
    color: #0d2234;
    font-size: 1.35rem;
}

.premium-section-meta {
    color: #698090;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.premium-stage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.premium-stage-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fcfe, #f3f8fb);
    border: 1px solid #e0ebf0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.premium-stage-card-wide {
    grid-column: 1 / -1;
}

.premium-stage-card-compact {
    min-height: 320px;
}

.premium-stage-card-title {
    margin-bottom: 12px;
    color: #1a3850;
    font-size: 1rem;
    font-weight: 600;
}

.premium-graph {
    width: 100%;
    max-height: none;
    overflow: visible;
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.premium-theme-mch .dash-graph,
.premium-theme-mch .js-plotly-plot {
    border-radius: 14px;
}

.premium-theme-mch .dash-table-container .dash-spreadsheet-container {
    border: 1px solid #dce7ed;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.premium-theme-mch .dash-table-container .dash-header {
    background: #0f6b9a;
    color: #ffffff;
}

.premium-theme-mch .premium-hero {
    animation: premium-card-rise 0.4s ease-out both;
}

.premium-theme-mch .premium-overview-copy {
    animation: premium-card-rise 0.4s ease-out both;
    animation-delay: 0.05s;
}

/* Staggered metric card entrance */
.premium-theme-mch .premium-metric-card {
    animation: premium-card-rise 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.premium-metric-grid > .premium-metric-card:nth-child(1) { animation-delay: 0.06s; }
.premium-metric-grid > .premium-metric-card:nth-child(2) { animation-delay: 0.12s; }
.premium-metric-grid > .premium-metric-card:nth-child(3) { animation-delay: 0.18s; }
.premium-metric-grid > .premium-metric-card:nth-child(4) { animation-delay: 0.24s; }
.premium-metric-grid > .premium-metric-card:nth-child(5) { animation-delay: 0.30s; }
.premium-metric-grid > .premium-metric-card:nth-child(6) { animation-delay: 0.36s; }
.premium-metric-grid > .premium-metric-card:nth-child(7) { animation-delay: 0.42s; }
.premium-metric-grid > .premium-metric-card:nth-child(8) { animation-delay: 0.48s; }

/* Staggered section block entrance */
.premium-theme-mch .premium-section-block {
    animation: premium-card-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.premium-sections > .premium-section-block:nth-child(1) { animation-delay: 0.1s; }
.premium-sections > .premium-section-block:nth-child(2) { animation-delay: 0.2s; }
.premium-sections > .premium-section-block:nth-child(3) { animation-delay: 0.3s; }
.premium-sections > .premium-section-block:nth-child(4) { animation-delay: 0.4s; }
.premium-sections > .premium-section-block:nth-child(5) { animation-delay: 0.5s; }
.premium-sections > .premium-section-block:nth-child(6) { animation-delay: 0.6s; }

/* Staggered chart card entrance within sections */
.premium-theme-mch .premium-stage-card {
    animation: premium-card-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.premium-stage-grid > .premium-stage-card:nth-child(1) { animation-delay: 0.08s; }
.premium-stage-grid > .premium-stage-card:nth-child(2) { animation-delay: 0.16s; }
.premium-stage-grid > .premium-stage-card:nth-child(3) { animation-delay: 0.24s; }
.premium-stage-grid > .premium-stage-card:nth-child(4) { animation-delay: 0.32s; }

@keyframes premium-card-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .premium-shell {
        grid-template-columns: 1fr;
    }

    .premium-rail {
        order: 2;
    }

    .premium-main {
        order: 1;
    }

    .premium-overview-band,
    .premium-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .premium-hero,
    .premium-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-filter-strip {
        justify-content: flex-start;
        min-width: 0;
    }

    .premium-overview-band,
    .premium-stage-grid,
    .premium-metric-grid {
        grid-template-columns: 1fr;
    }
}




