/* ════════════════════════════════════════════════════════════════════════════
   STEIN GROUP — Compliance Platform Stylesheet
   Brand: Black (#000), Gold (#FFD700), White (#FFF)
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f0;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Colour Variables ──────────────────────────────────────────────────── */

:root {
    --black: #000000;
    --yellow: #FFD700;
    --white: #FFFFFF;
    --dark-grey: #1a1a1a;
    --mid-grey: #2a2a2a;
    --light-grey: #f5f5f0;
    --border-grey: #e0e0e0;
    --text-dark: #333333;
    --text-muted: #888888;

    --green: #27AE60;
    --amber: #F39C12;
    --red: #E74C3C;
    --orange: #fd7e14;
    --blue: #0d6efd;
    --purple: #6f42c1;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 6px;
}

/* ─── Header ────────────────────────────────────────────────────────────── */

.header {
    background: var(--black);
    border-bottom: 4px solid var(--yellow);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.header-title {
    color: var(--yellow);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.header-subtitle {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-user {
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
}

.header-link {
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.header-link-logout {
    color: var(--red);
    opacity: 1;
}

/* ─── Navigation ────────────────────────────────────────────────────────── */

.nav {
    background: var(--dark-grey);
    padding: 0 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-inner {
    display: flex;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-link {
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    opacity: 1;
    border-bottom-color: var(--yellow);
    color: var(--yellow);
}

/* ─── Main Content ──────────────────────────────────────────────────────── */

.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: calc(100vh - 200px);
}

/* ─── Flash Messages ────────────────────────────────────────────────────── */

.flash-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem 0;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    animation: flash-in 0.3s ease;
}

.flash-error {
    background: #fdf2f2;
    border: 1px solid var(--red);
    border-left: 4px solid var(--red);
    color: #9b1c1c;
}

.flash-success {
    background: #f0fdf4;
    border: 1px solid var(--green);
    border-left: 4px solid var(--green);
    color: #166534;
}

.flash-info {
    background: #fffbeb;
    border: 1px solid var(--amber);
    border-left: 4px solid var(--amber);
    color: #92400e;
}

.flash-close {
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.5;
    margin-left: 1rem;
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Page Headers ──────────────────────────────────────────────────────── */

.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
}

.subsection-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.25rem 0 0.75rem;
}

/* ─── Stat Cards ────────────────────────────────────────────────────────── */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.stat-grid-mini {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.stat-card {
    background: var(--black);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--yellow);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.stat-card-mini {
    padding: 1rem;
    border-left: 4px solid var(--yellow);
}

.stat-card-mini .stat-value {
    font-size: 1.5rem;
}

.stat-card-accent-red { border-left-color: var(--red); }
.stat-card-accent-amber { border-left-color: var(--amber); }
.stat-card-accent-blue { border-left-color: var(--blue); }
.stat-card-accent-yellow { border-left-color: var(--yellow); }
.stat-card-accent-green { border-left-color: var(--green); }

/* Horizontal stat card */
.stat-card-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 1rem 1.25rem;
}

.stat-card-horizontal .stat-value {
    font-size: 1.5rem;
}

.stat-card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.stat-meta {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ─── Cards ─────────────────────────────────────────────────────────────── */

.card {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-left: 4px solid var(--yellow);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* ─── Badges ────────────────────────────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-green  { background: #d1fae5; color: #065f46; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-grey   { background: #f3f4f6; color: #4b5563; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-yellow { background: #fef9c3; color: #854d0e; }

/* ─── Tables ────────────────────────────────────────────────────────────── */

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.table thead {
    background: var(--black);
}

.table th {
    color: var(--yellow);
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-grey);
    vertical-align: middle;
}

.table tbody tr:nth-child(even) {
    background: #fafafa;
}

.table tbody tr:hover {
    background: #f0f0ea;
}

.table-compact td,
.table-compact th {
    padding: 0.375rem 0.625rem;
}

.table-empty {
    text-align: center;
    padding: 2rem !important;
    color: var(--text-muted);
    font-style: italic;
}

.table-cell-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    line-height: 1.4;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: #e6c200;
}

.btn-secondary {
    background: var(--black);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark-grey);
}

.btn-danger {
    background: var(--red);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
}

.btn-full {
    display: block;
    width: 100%;
}

/* ─── Forms ─────────────────────────────────────────────────────────────── */

.form-group {
    margin-bottom: 1rem;
}

.form-group-sm {
    margin-bottom: 0.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.form-input-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.8125rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

select.form-input {
    appearance: auto;
}

/* ─── Filter Tabs ───────────────────────────────────────────────────────── */

.filter-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-grey);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tab {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.filter-tab:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.02);
}

.filter-tab.active {
    color: var(--black);
    border-bottom-color: var(--yellow);
    font-weight: 600;
}

.filter-count {
    display: inline-block;
    background: var(--light-grey);
    color: var(--text-muted);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.filter-tab.active .filter-count {
    background: var(--yellow);
    color: var(--black);
}

/* ─── Progress Bar ──────────────────────────────────────────────────────── */

.progress-bar-container {
    background: var(--dark-grey);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-bar {
    height: 100%;
    background: var(--yellow);
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 2%;
}

/* ─── Sync Progress Card ────────────────────────────────────────────────── */

.sync-progress-card {
    border-left-color: var(--amber);
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-left-color: var(--amber); }
    50% { border-left-color: var(--yellow); }
}

.sync-progress-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.sync-progress-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ─── Action Bar ────────────────────────────────────────────────────────── */

.action-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* ─── Loading Spinner ───────────────────────────────────────────────────── */

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--yellow);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Error Details ─────────────────────────────────────────────────────── */

.error-details {
    cursor: pointer;
}

.error-summary {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 600;
}

.error-pre {
    background: #1a1a1a;
    color: #ff6b6b;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    margin-top: 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

/* ─── Inline Edit ───────────────────────────────────────────────────────── */

.inline-edit {
    position: relative;
}

.inline-edit-form {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--light-grey);
    border-radius: var(--radius);
    border: 1px solid var(--border-grey);
}

/* ─── Dashboard Specific ────────────────────────────────────────────────── */

.dashboard-meta {
    text-align: center;
    margin: 1.5rem 0;
}

.meta-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ─── Admin Stats Grid ──────────────────────────────────────────────────── */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ─── Stub Pages ────────────────────────────────────────────────────────── */

.stub-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.stub-card {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
}

.stub-phase-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.stub-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.stub-message {
    font-size: 1.125rem;
    color: var(--amber);
    font-weight: 600;
    margin-bottom: 1rem;
}

.stub-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.stub-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* ─── Error Pages ───────────────────────────────────────────────────────── */

.error-page-code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--yellow);
    margin: 1rem 0 0.5rem;
}

.error-page-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.error-page-message {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ─── Login Page ────────────────────────────────────────────────────────── */

.login-body {
    background: var(--dark-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    background: var(--black);
    margin: -2rem -2rem 1.5rem -2rem;
    padding: 2rem;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 4px solid var(--yellow);
}

.login-logo {
    color: var(--yellow);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.login-subtitle {
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.login-form {
    padding: 0;
}

.login-footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    margin-top: 1.5rem;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--border-grey);
    margin-top: 2rem;
}

/* ─── Utility ───────────────────────────────────────────────────────────── */

.text-muted {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ─── Timeline ──────────────────────────────────────────────────────────── */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--yellow);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--yellow);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--yellow);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.timeline-content {
    font-size: 0.875rem;
    color: var(--text-dark);
}

/* ─── Responsive: Tablet ────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-inner {
        gap: 0;
    }

    .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .main-content {
        padding: 1rem;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar form,
    .action-bar .btn {
        width: 100%;
    }

    .action-bar .btn {
        display: block;
    }
}

/* ─── Responsive: Mobile ────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .header-title {
        font-size: 1rem;
    }

    .header-subtitle {
        display: none;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .table {
        font-size: 0.75rem;
    }

    .table th, .table td {
        padding: 0.375rem 0.5rem;
    }

    .filter-tabs {
        gap: 0;
    }

    .filter-tab {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-header {
        margin: -1.5rem -1.5rem 1.25rem -1.5rem;
        padding: 1.5rem;
    }
}

/* ─── Chart Components (Phase 7) ────────────────────────────────────────── */

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chart-card h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFD700;
}

.chart-card canvas {
    width: 100% !important;
    max-height: 280px;
}

.chart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
    font-style: italic;
    font-size: 0.875rem;
}

/* ─── KPI Trend Indicators ──────────────────────────────────────────────── */

.trend-up { color: #27AE60; }
.trend-down { color: #E74C3C; }
.trend-stable { color: #888; }
.trend-arrow { font-size: 0.75rem; margin-left: 0.25rem; }

/* ─── Utilisation Bar ───────────────────────────────────────────────────── */

.util-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.util-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.util-bar-fill.green { background: #27AE60; }
.util-bar-fill.amber { background: #F39C12; }
.util-bar-fill.red { background: #E74C3C; }

/* ─── Info Banner ───────────────────────────────────────────────────────── */

.info-banner {
    background: #fff8e1;
    border: 1px solid #FFD700;
    border-left: 4px solid #FFD700;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.info-banner p {
    margin: 0;
    color: #333;
    font-size: 0.875rem;
}

/* ─── Print Styles ──────────────────────────────────────────────────────── */

@media print {
    .header, .nav, .footer, .flash-container,
    .btn, .action-bar, .no-print { display: none !important; }

    .main-content { padding: 0; max-width: 100%; }

    body { background: #fff; }

    .stat-card { break-inside: avoid; border: 1px solid #ccc; }

    .chart-card { break-inside: avoid; }

    .table { font-size: 0.7rem; }

    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 3px solid #000;
    }

    .print-header h1 { font-size: 1.5rem; margin: 0; }
    .print-header p { font-size: 0.875rem; color: #666; margin: 0.25rem 0 0; }
}

/* ─── Report Sections ───────────────────────────────────────────────────── */

.report-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.report-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ─── Responsive Chart Grid ─────────────────────────────────────────────── */

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

    .info-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
