/* Scrolling Glowing Marquee Banner */
.marquee-banner {
    width: 100%;
    overflow: hidden;
    background: hsl(220 20% 10%);
    border: 1px solid hsl(220 15% 20%);
    border-radius: 6px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-text {
    padding: 0 3rem;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00e5ff;
    text-shadow:
        0 0 7px rgba(0, 229, 255, 0.7),
        0 0 15px rgba(0, 229, 255, 0.5),
        0 0 30px rgba(0, 229, 255, 0.3);
    animation: glow-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes glow-pulse {
    0% {
        text-shadow:
            0 0 7px rgba(0, 229, 255, 0.7),
            0 0 15px rgba(0, 229, 255, 0.5),
            0 0 30px rgba(0, 229, 255, 0.3);
        color: #00e5ff;
    }
    100% {
        text-shadow:
            0 0 10px rgba(0, 229, 255, 1),
            0 0 25px rgba(0, 229, 255, 0.8),
            0 0 50px rgba(0, 229, 255, 0.5),
            0 0 80px rgba(0, 229, 255, 0.3);
        color: #80f0ff;
    }
}

:root {
    /* Design Tokens from Reference */
    --background: 220 25% 8%;
    --foreground: 0 0% 98%;
    --card: 220 20% 12%;
    --card-foreground: 0 0% 98%;
    --primary: 199 89% 48%;
    /* Bright Blue */
    --primary-foreground: 0 0% 100%;
    --secondary: 220 15% 18%;
    --muted: 220 15% 18%;
    --muted-foreground: 220 10% 60%;
    --accent: 162 85% 45%;
    /* Teal/Green */
    --destructive: 0 84.2% 60.2%;
    --border: 220 15% 20%;
    --input: 220 15% 20%;
    --ring: 199 89% 48%;
    --radius: 0.625rem;

    /* Legacy Mappings */
    --bg-color: hsl(var(--background));
    --card-bg: hsl(var(--card));
    --text-color: hsl(var(--foreground));
    --text-secondary: hsl(var(--muted-foreground));
    --accent-color: hsl(var(--primary));
    --accent-hover: hsl(var(--primary) / 0.8);
    --kpi-color: hsl(var(--accent));
    --border-color: hsl(var(--border));
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-family);
    line-height: 1.6;
}

.dashboard-container {
    max-width: 98%;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.exec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
    /* Align left */
}

.exec-header h1 {
    font-size: 1.1rem;
    margin-right: 0;
    flex: 0 0 auto;
    /* Don't grow, size to content */
    max-width: 40%;
}

.exec-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    /* Add separator */
}

h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1rem;
    flex: 1;
    /* Allow h1 to take available space */
    min-width: 0;
    /* Enable truncation in flexbox */
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.upload-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.upload-btn:hover {
    background-color: var(--accent-hover);
}

#fileUpload {
    display: none;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Filters */
/* Filters */
/* Filters */
.filters-section {
    display: flex;
    flex-wrap: nowrap;
    /* Force one line */
    gap: 0.3rem;
    /* Reduced from 0.5rem */
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    padding: 0.5rem;
    /* Reduced from 0.8rem */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    align-items: flex-end;
    /* Align bottom */
    overflow-x: auto;
    /* Allow scroll if screen is too small, but aim for fit */
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    /* Reduced */
    flex: 1;
    /* Allow stretching */
    min-width: 80px;
    /* Reduced min-width */
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

select {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.3rem;
    /* Reduced padding */
    border-radius: 6px;
    font-family: inherit;
    width: 100%;
    font-size: 0.85rem;
    /* Reduced font size */
}

/* Multi-Select Dropdown */
.filter-group {
    position: relative;
}

.multi-select-wrapper {
    position: relative;
    width: 100%;
}

.multi-select-trigger {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.3rem 1.4rem 0.3rem 0.3rem;
    border-radius: 6px;
    font-family: inherit;
    width: 100%;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    position: relative;
    user-select: none;
}

.multi-select-trigger::after {
    content: '';
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

.multi-select-wrapper.open .multi-select-trigger::after {
    border-top: none;
    border-bottom: 5px solid var(--text-secondary);
}

.multi-select-trigger.has-selection {
    border-color: #3b82f6;
    color: #93c5fd;
}

.multi-select-dropdown {
    display: none;
    position: fixed;
    min-width: 180px;
    max-height: 280px;
    overflow-y: auto;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 0.25rem 0;
}

/* Dropdown display is controlled via JS since it's appended to body */

.multi-select-search {
    width: calc(100% - 0.5rem);
    margin: 0.25rem;
    padding: 0.25rem 0.4rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.8rem;
    box-sizing: border-box;
    outline: none;
}

.multi-select-search:focus {
    border-color: #3b82f6;
}

.multi-select-actions {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.multi-select-actions button {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: inherit;
}

.multi-select-actions button:hover {
    background-color: rgba(59, 130, 246, 0.15);
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-color);
    white-space: nowrap;
}

.multi-select-option:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.multi-select-option input[type="checkbox"] {
    accent-color: #3b82f6;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.multi-select-option span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-select-option.hidden {
    display: none;
}

/* Scrollbar for dropdown */
.multi-select-dropdown::-webkit-scrollbar {
    width: 5px;
}

.multi-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.multi-select-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* KPI Cards */


.kpi-card {
    position: relative;
    background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--secondary)));
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: var(--radius) var(--radius) 0 0;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px hsl(var(--primary) / 0.3);
    border-color: hsl(var(--primary) / 0.5);
}

.kpi-card h3 {
    font-size: 0.7rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 450px;
    transition: border-color 0.3s ease;
    overflow: hidden;
    /* Prevent content spill */
}

.chart-container:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.chart-container.wide {
    grid-column: span 2;
}

.split-row {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.chart-split-row {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Give more space to the line chart, less to doughnut */
    gap: 1.5rem;
}



@media (max-width: 900px) {
    .chart-split-row {
        grid-template-columns: 1fr;
    }
}

.chart-container h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Plotly overrides for dark mode context */
.js-plotly-plot .plotly .modebar {
    left: 50%;
    transform: translateX(-50%);
}

/* Data Table */
.table-section {
    padding: 0 10px 40px;
    /* Reduced from 0 40px 40px */
}

.table-section .chart-container {
    padding: 0.5rem;
    /* Reduced from 1.5rem */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Compact Table Mode used for DT Analysis */
#dtTable {
    font-size: 0.70rem;
    table-layout: auto;
    /* Allow column widths to adjust */
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

/* Specific styles for the compact DT table */
#dtTable th,
#dtTable td {
    padding: 4px 6px;
    vertical-align: middle;
}

#dtTable th {
    white-space: nowrap;
    /* Headers check */
}

/* Column specific constraints for DT table */
#dtTable td:nth-child(2) {
    /* DT Name */
    max-width: 160px;
    white-space: normal;
}

#dtTable td:nth-child(7) {
    /* Field Officers */
    max-width: 140px;
    /* Force truncation width */
    /* Handled by inline style in script.js but good to enforce */
}

.data-table th {
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground));
    font-weight: 600;
}

.data-table tbody tr:hover {
    background-color: hsl(var(--muted) / 0.5);
}

.data-table td {
    color: hsl(var(--muted-foreground));
}

.vendor-tag {
    padding: 2px 6px;
    /* Smaller tag padding */
    border-radius: 4px;
    font-size: 0.75rem;
    /* Smaller tag font */
    font-weight: 600;
    white-space: nowrap;
}

.vendor-etc {
    background-color: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.vendor-jesom {
    background-color: hsl(var(--destructive) / 0.2);
    color: #f97316;
}

/* Animations & Glow Effects */
/* Filters */
.filters-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--secondary)));
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    align-items: flex-end;
}

/* Animations & Glow Effects - SIMPLIFIED */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px hsl(var(--primary) / 0.2);
    }

    50% {
        box-shadow: 0 0 20px hsl(var(--primary) / 0.5);
    }
}



/* View Utility */
.hidden {
    display: none !important;
}

/* Executive Summary Styles */
.exec-summary {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-color);
}

/* Removed conflicting exec-header styles */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    transition: border-color 0.3s ease;
}

.summary-card:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.summary-card h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.summary-card p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-card ul {
    list-style-type: none;
    padding-left: 0.5rem;
}

.summary-card li {
    margin-bottom: 0.5rem;
    color: #e4e5e7;
    position: relative;
    padding-left: 1.2rem;
}

.summary-card li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Enhanced Executive Summary Styles */

.parameter-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.parameter-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: static;
    /* Overlay fix */
    padding-left: 0;
}

/* Remove default bullet from summary card for this list */
.parameter-list li::before {
    content: none !important;
}

.param-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
    line-height: 1;
    min-width: 2.5rem;
    text-align: center;
}

.parameter-list div strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.parameter-list div p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Recommendation Cards */
.rec-section {
    margin-top: 3rem;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rec-card {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rec-card:hover {
    box-shadow: 0 10px 40px -10px hsl(var(--primary) / 0.2);
    transform: translateY(-2px);
}

.etc-card {
    border-top: 4px solid #3b82f6;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--card-bg) 100%);
}

.jesom-card {
    border-top: 4px solid #f97316;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.05) 0%, var(--card-bg) 100%);
}

.ikeja-card {
    border-top: 4px solid #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--card-bg) 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: hsl(var(--card-foreground));
}

.status-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-attention {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-good {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.rec-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rec-item h4 {
    margin: 0 0 0.5rem 0;
    color: hsl(var(--card-foreground));
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rec-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .rec-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Header */
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    h1 {
        white-space: normal;
        /* Allow wrapping on mobile */
        margin-right: 0;
        font-size: 1.1rem;
    }

    /* Executive Summary Mobile Header */
    .exec-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .exec-header h1 {
        max-width: 100%;
    }

    .exec-header p {
        border-left: none;
        padding-left: 0;
        white-space: normal;
        /* Allow wrapping */
    }

    .exec-header .last-updated {
        align-self: flex-start;
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }

    /* Charts Stack */
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-container.wide {
        grid-column: span 1;
    }

    .split-row {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    /* Adjust padding */
    .dashboard-container {
        padding: 10px;
    }

    .exec-summary {
        padding: 1rem;
    }

    /* Ensure filters scroll smoothly */
    .filters-section {
        padding-bottom: 0.8rem;
        /* Space for scrollbar */
    }

    /* Mobile Vendor Charts */
    .vendor-charts-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1rem;
    }
}

/* --- Modern KPI Cards --- */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* Force 7 columns on one line */
    gap: 0.5rem;
    /* Reduced margin */
    margin-bottom: 1.5rem;
}

.kpi-card-modern {
    background-color: #1e1e24;
    /* Dark card bg */
    border-radius: 8px;
    /* Reduced radius */
    padding: 0.75rem;
    /* Reduced padding */
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 120px;
    /* Reduced min-height */
}

.kpi-border-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #3b82f6;
    /* Default Blue */
}

.kpi-border-top.blue {
    background: #3b82f6;
}

.kpi-border-top.green {
    background: #10b981;
}

.kpi-border-top.orange {
    background: #f59e0b;
}

.kpi-border-top.purple {
    background: #8b5cf6;
}

.kpi-border-top.cyan {
    background: #06b6d4;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    /* Reduced margin */
}

.kpi-title {
    font-size: 0.7rem;
    /* Reduced font size */
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    line-height: 1.1;
    /* Tighter line height to fit */
}

.kpi-icon-bg {
    width: 28px;
    /* Reduced size */
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.kpi-icon-bg svg {
    width: 16px;
    height: 16px;
}

.kpi-icon-bg.blue {
    background: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.kpi-icon-bg.green {
    background: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.kpi-icon-bg.orange {
    background: #f59e0b;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.kpi-icon-bg.purple {
    background: #8b5cf6;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.kpi-icon-bg.cyan {
    background: #06b6d4;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

.kpi-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.kpi-stat {
    display: flex;
    flex-direction: column;
    z-index: 50;
    /* Ensure sidebar is above content if needed */
}

.kpi-stat.align-right {
    align-items: flex-end;
}

.stat-label {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-value.color-green {
    color: #10b981;
}

.kpi-progress {
    margin-bottom: 0.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-in-out;
}

.progress-fill.blue {
    background: #3b82f6;
}

.progress-fill.green {
    background: #10b981;
}

.progress-fill.orange {
    background: #f59e0b;
}

.progress-fill.purple {
    background: #8b5cf6;
}

.kpi-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
}

.footer-status {
    font-weight: 600;
}

.footer-status.color-blue {
    color: #3b82f6;
}

.footer-status.color-orange {
    color: #f59e0b;
}

.footer-status.color-green {
    color: #10b981;
}

/* Base Vendor Charts Grid */
.vendor-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 400px;
}

/* --- Pagination Styled --- */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.page-btn {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    /* Rounded squares */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    color: hsl(var(--foreground));
    border-color: hsl(var(--primary));
}

.page-btn.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    font-weight: 600;
}

.page-ellipsis {
    color: #94a3b8;
    padding: 0 4px;
}



.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Column Toggle --- */
.column-filter-container {
    position: relative;
    display: inline-block;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background-color: #1e1e24;
    /* match kpi */
    border: 1px solid #334155;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #3b82f6;
}

.column-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: #1e1e24;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px;
    z-index: 100;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    /* proper list */
    gap: 5px;
}

.col-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.85rem;
}

.col-check-item:hover {
    background-color: #334155;
    border-radius: 4px;
}

.col-check-item input[type="checkbox"] {
    accent-color: #3b82f6;
}

/* --- Search Suggestions --- */
.search-wrapper {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    background-color: #1e1e24;
    border: 1px solid #334155;
    border-radius: 6px;
    z-index: 999;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
}