:root {
    --color-primary: #c8102e;
    --color-secondary: #1a365d;
    --color-bg: #f8f9fa;
    --color-text: #333333;
    --color-text-light: #6b7280;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-white: #ffffff;
    --color-border: #e5e7eb;
    --color-hover: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

/* Nav */
.nav {
    background: var(--color-secondary);
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 8px;
}
.nav-logo {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    flex-shrink: 0;
}
.nav-brand {
    color: var(--color-white);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    margin-right: 24px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-white);
    background: rgba(255,255,255,0.12);
}
.nav-spacer { flex: 1; }
.nav-user {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

/* Layout */
.page { max-width: 1400px; margin: 0 auto; padding: 24px; }
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}
.page-subtitle {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 20px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 20px;
}
.stat-label {
    font-size: 13px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 4px;
}
.stat-value.primary { color: var(--color-primary); }
.stat-value.success { color: var(--color-success); }
.stat-value.warning { color: var(--color-warning); }
.stat-value.secondary { color: var(--color-secondary); }

/* Tables */
.table-wrap {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
thead th {
    background: var(--color-bg);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
thead th[data-col] {
    cursor: pointer;
    user-select: none;
}
thead th[data-col]:hover { background: #e9ecef; }
thead th.sorted-asc::after { content: ' \25B2'; font-size: 10px; }
thead th.sorted-desc::after { content: ' \25BC'; font-size: 10px; }
tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
tbody tr:hover { background: var(--color-hover); }
tbody tr:last-child td { border-bottom: none; }
.amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.comment-cell {
    min-width: 250px;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

/* Category badges / pills */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-rent { background: #dbeafe; color: #1e40af; }
.badge-electric { background: #fef3c7; color: #92400e; }
.badge-gas { background: #e0e7ff; color: #3730a3; }
.badge-car { background: #fce7f3; color: #9d174d; }
.badge-motel { background: #ede9fe; color: #5b21b6; }
.badge-school { background: #d1fae5; color: #065f46; }
.badge-heatshare { background: #fef2f2; color: #991b1b; }
.badge-other { background: #f3f4f6; color: #374151; }

/* Category filter panel */
.cat-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    transition: all 0.15s;
}
.cat-filter-toggle:hover { background: var(--color-hover); }
.cat-filter-toggle.has-filters {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.cat-filter-toggle .arrow { font-size: 10px; transition: transform 0.15s; }
.cat-filter-toggle.open .arrow { transform: rotate(180deg); }
.cat-filter-panel {
    display: none;
    margin-top: 8px;
    padding: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.cat-filter-panel.open { display: block; }
.cat-selected-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
    min-height: 28px;
}
.cat-selected-row:empty { display: none; }
.cat-selected-row + .cat-available-label { margin-top: 0; }
.cat-available-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 6px;
}
.cat-selected-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 6px;
}

/* Pill filter toggles */
.pill-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.pill-toggle {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-light);
    transition: all 0.15s;
    user-select: none;
}
.pill-toggle:hover { border-color: #9ca3af; }
.pill-toggle.active {
    border-color: transparent;
    color: var(--color-white);
}
.pill-toggle.active[data-cat="Rent"] { background: #1e40af; }
.pill-toggle.active[data-cat="Electric"] { background: #92400e; }
.pill-toggle.active[data-cat="gas cards"],
.pill-toggle.active[data-cat="Gas"] { background: #3730a3; }
.pill-toggle.active[data-cat="Car Repair"] { background: #9d174d; }
.pill-toggle.active[data-cat="Motel"] { background: #5b21b6; }
.pill-toggle.active[data-cat="School Fees"] { background: #065f46; }
.pill-toggle.active[data-cat-default] { background: #374151; }

/* Selected pill (with X remove button) */
.pill-selected {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    user-select: none;
}
.pill-selected .pill-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    color: var(--color-white);
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.pill-selected .pill-x:hover { background: rgba(255,255,255,0.5); }

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-select, .filter-input {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--color-white);
    color: var(--color-text);
}
.filter-input { min-width: 250px; }
.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
}
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover { background: #a30d25; }
.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
}
.btn-secondary:hover { background: #12263e; }
.btn-outline {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-outline:hover { background: var(--color-hover); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { background: var(--color-danger); color: var(--color-white); }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--color-success); color: var(--color-white); }
.btn-success:hover { background: #16a34a; }

/* Row actions */
.row-actions {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

/* Results count */
.results-count {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

/* Contacts cards */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.contact-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 16px;
    position: relative;
}
.contact-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.contact-business {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.contact-detail {
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 2px;
}
.contact-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
}
.login-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}
.login-logo {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}
.login-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--color-primary);
}
.login-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 24px;
}
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text);
}
.form-input, .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
.form-input.input-error, .form-textarea.input-error, select.form-input.input-error {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 2px;
}
.form-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 12px;
}
.form-warning strong { color: #78350f; }

/* Search modal results */
.search-results { margin-top: 4px; }
.search-result-item {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.12s;
}
.search-result-item:hover {
    background: var(--color-hover);
    border-color: var(--color-primary);
}
.search-result-name {
    font-weight: 700;
    font-size: 14px;
}
.search-result-detail {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 2px;
}
.search-result-stats {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 2px;
    font-style: italic;
}

/* Person/donor info banner in forms */
.entity-banner {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
}
.entity-banner strong { font-size: 14px; }
.entity-banner .entity-edit-link {
    float: right;
    font-size: 12px;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
}
.btn-full { width: 100%; justify-content: center; padding: 12px; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Budget editable cells */
.editable-cell {
    cursor: pointer;
    position: relative;
}
.editable-cell:hover {
    background: #fef3c7;
}
.editable-cell input {
    width: 100px;
    padding: 2px 6px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
}

/* Budget summary table */
.budget-table { margin-top: 24px; }
.budget-table td.positive { color: var(--color-success); font-weight: 600; }
.budget-table td.negative { color: var(--color-danger); font-weight: 600; }

/* FY badge */
.fy-badge {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

/* Dashboard tabs */
.dash-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 20px;
}
.dash-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.15s;
}
.dash-tab:hover {
    color: var(--color-text);
}
.dash-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.dash-panel {
    display: none;
}
.dash-panel.active {
    display: block;
}

/* Metrics mini cards (2-col inside a card) */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.metric-row:last-child { border-bottom: none; }
.metric-label {
    font-size: 13px;
    color: var(--color-text-light);
}
.metric-value {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Bar chart (simple CSS-only horizontal bars) */
.bar-chart { margin-top: 8px; }
.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.bar-label {
    width: 90px;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}
.bar-track {
    flex: 1;
    height: 20px;
    background: var(--color-hover);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.bar-amount {
    width: 80px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-light);
    flex-shrink: 0;
}

/* Settings sections */
.settings-section {
    margin-bottom: 32px;
}
.settings-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

/* ===== Mobile Nav (hamburger) ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.nav-links {
    display: contents;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .page { max-width: 100%; padding: 20px; }
    .metrics-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Nav - hamburger menu */
    .nav {
        padding: 0 12px;
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
    }
    .nav-toggle { display: block; }
    .nav-brand { font-size: 15px; margin-right: auto; }
    .nav-user {
        font-size: 12px;
        margin-right: 8px;
    }
    .nav-spacer { display: none; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 8px 0;
        order: 10;
    }
    .nav-links.open { display: flex; }
    .nav-link {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 6px;
    }

    /* Page layout */
    .page { padding: 16px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .page-title { font-size: 20px; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 22px; }

    /* Filters */
    .filters { flex-direction: column; align-items: stretch; }
    .filter-input { min-width: 100%; }
    .filter-select { width: 100%; }

    /* Tables scroll horizontally */
    .table-wrap { margin: 0 -16px; border-radius: 0; border-left: none; border-right: none; }
    table { font-size: 13px; }
    thead th { padding: 8px 10px; font-size: 11px; }
    tbody td { padding: 8px 10px; }
    .row-actions { gap: 2px; }
    .row-actions .btn-sm { padding: 3px 6px; font-size: 11px; }

    /* Contacts grid */
    .contacts-grid { grid-template-columns: 1fr; }

    /* Modal */
    .modal-overlay { align-items: flex-end; }
    .modal {
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: 85vh;
        padding: 20px;
    }

    /* Forms inside modals */
    .modal [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Buttons */
    .btn { padding: 10px 16px; }
    .page-header .btn { width: 100%; justify-content: center; }

    /* Dashboard tabs */
    .dash-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dash-tab { white-space: nowrap; padding: 10px 14px; font-size: 13px; }

    /* Settings activity grid */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Bar chart */
    .bar-label { width: 60px; font-size: 11px; }
    .bar-amount { width: 60px; font-size: 11px; }

    /* Budget table */
    .budget-table { margin-top: 16px; }

    /* Comment column constrained on mobile */
    .comment-cell { min-width: 140px; max-width: 200px; }

    /* SER report table horizontal scroll */
    .ser-table-wrap { margin: 0 -16px; border-radius: 0; border-left: none; border-right: none; }
    .ser-header { border-radius: 0; margin: 0 -16px; padding: 12px 16px; }
    .ser-seasonal { margin: 0 -16px; padding: 8px 16px; }
    .ser-seasonal-grid { grid-template-columns: 1fr; }

    /* Entity banner link */
    .entity-banner .entity-edit-link { float: none; display: block; margin-top: 6px; }

    /* Export buttons */
    .page-header [style*="display:flex"][style*="gap: 8px"] {
        flex-direction: column;
        width: 100%;
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    min-width: 280px;
    max-width: 420px;
    animation: toastIn 0.25s ease-out;
    transition: opacity 0.2s, transform 0.2s;
}
.toast.toast-out {
    opacity: 0;
    transform: translateX(30px);
}
.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.toast-message { flex: 1; }
.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
    line-height: 1;
}
.toast-close:hover { color: var(--color-text); }
.toast.toast-success { border-left: 4px solid var(--color-success); }
.toast.toast-error { border-left: 4px solid var(--color-danger); }
.toast.toast-warning { border-left: 4px solid var(--color-warning); }
.toast.toast-info { border-left: 4px solid var(--color-secondary); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Error banner (data load failure) */
.error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #991b1b;
}
.error-banner-icon { font-size: 20px; flex-shrink: 0; }
.error-banner-message { flex: 1; }
.error-banner .btn { flex-shrink: 0; }

/* Small phones */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-value { font-size: 20px; }
    .nav-brand { font-size: 14px; }
    .nav-user { font-size: 11px; }
    .nav-user .badge { display: none; }
    .page { padding: 12px; }
    .table-wrap { margin: 0 -12px; }
    .toast-container { top: 8px; right: 8px; left: 8px; }
    .toast { min-width: auto; max-width: 100%; font-size: 13px; padding: 10px 12px; }

    /* SER header grid stacks on small phones */
    .ser-header-grid { grid-template-columns: 1fr; }
    .ser-table-wrap { margin: 0 -12px; }
    .ser-header { margin: 0 -12px; }
    .ser-seasonal { margin: 0 -12px; }
}
