/* ******************************-={ 03/29/2026 - WB }=-******************************
   FILE: /assets/app.css
   PURPOSE:
   Shared site styling for layout, forms, tables, dashboard cards, modals,
   and helper utilities.
   ********************************************************************************** */

/* ******************************-={ 01. DESIGN TOKENS }=-****************************** */
:root {
    --font-sans: "Segoe UI", Tahoma, Arial, sans-serif;
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.12);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --header-height: 88px;
}

html[data-theme="dark"] {
    --bg: #11161d;
    --bg-elevated: #171d26;
    --bg-panel: #1d2430;
    --bg-input: #121821;
    --bg-subtle: #212a37;
    --text: #eaf1fb;
    --text-soft: #aab6c8;
    --text-faint: #7f8b9f;
    --border: #2f3a4d;
    --accent: #6ea8ff;
    --accent-strong: #4b8ff7;
    --accent-soft: rgba(110, 168, 255, 0.12);
    --success-bg: rgba(54, 179, 126, 0.12);
    --success-text: #88e0af;
    --error-bg: rgba(224, 80, 80, 0.12);
    --error-text: #ff9c9c;
    --chip-road: rgba(244, 164, 96, 0.18);
    --chip-road-text: #f6c087;
    --chip-eq: rgba(79, 174, 110, 0.18);
    --chip-eq-text: #8fe1aa;
    --header-grad-a: #273140;
    --header-grad-b: #1b2230;
    --table-stripe: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] {
    --bg: #f3f5f8;
    --bg-elevated: #ffffff;
    --bg-panel: #ffffff;
    --bg-input: #f8fafc;
    --bg-subtle: #f1f4f8;
    --text: #1f2937;
    --text-soft: #5e6b7d;
    --text-faint: #7b8796;
    --border: #d8dee8;
    --accent: #2f7cf6;
    --accent-strong: #2367d6;
    --accent-soft: rgba(47, 124, 246, 0.08);
    --success-bg: rgba(31, 161, 93, 0.10);
    --success-text: #147245;
    --error-bg: rgba(220, 53, 69, 0.10);
    --error-text: #9b1c27;
    --chip-road: #f7e6d7;
    --chip-road-text: #a45f1a;
    --chip-eq: #dcf4df;
    --chip-eq-text: #28764a;
    --header-grad-a: #ffffff;
    --header-grad-b: #f7f9fc;
    --table-stripe: rgba(31, 41, 55, 0.02);
}

/* ******************************-={ 02. BASE / RESET }=-****************************** */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, black 12%) 100%);
    color: var(--text);
}

/* ******************************-={ 03. TYPOGRAPHY / LINKS }=-****************************** */
a {
    color: var(--accent);
    text-decoration: none;
}

 a:hover {
    text-decoration: underline;
}

label {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
}

.muted {
    color: var(--text-faint);
    font-size: 13px;
}

.code-note {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.list-clean {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
    font-size: 12px;
}

i.ip {
    color: red;
}

i.done {
    color: green;
}

/* ******************************-={ 04. APP SHELL / HEADER / NAV }=-****************************** */
.app-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 82%, transparent 18%);
    border-bottom: 1px solid var(--border);
}

.site-header__inner,
.top-nav,
.page-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0 12px 0;
}

.brand-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    margin-bottom: 4px;
}

.brand-title {
    font-size: 34px;
    line-height: 1;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 14px;
}

.top-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 0 16px 0;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.top-nav a:hover {
    text-decoration: none;
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 30%);
}

.header-actions {
    display: flex;
    align-items: center;
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: 999px;
    min-height: 42px;
    padding: 0 14px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.theme-toggle__sun,
.theme-toggle__moon {
    display: inline-flex;
    align-items: center;
}

.page-wrap {
    padding: 28px 0 48px 0;
}

/* ******************************-={ 05. PAGE HEADERS / CARDS / PANELS }=-****************************** */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    margin: 0 0 8px 0;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.page-subtitle {
    color: var(--text-soft);
    max-width: 900px;
}

.page-card,
.panel-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.page-card {
    padding: 22px;
}

.panel-card {
    padding: 18px;
}

.empty-box {
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--bg-subtle) 64%, transparent 36%);
}

/* ******************************-={ 06. ALERTS / SIMPLE FORM HELPERS }=-****************************** */

.alert {
    margin: 0 0 18px 0;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}

.alert--success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert--error {
    background: var(--error-bg);
    color: var(--error-text);
}

.stack-form {
    display: block;
}

.form-field--full {
    grid-column: 1 / -1;
}

/* ******************************-={ 06-a. LAYOUT GRIDS }=-****************************** */
.grid-two {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-two--spaced {
    margin-top: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px 18px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* ******************************-={ 07. DASHBOARD BLOCKS }=-****************************** */
.stat-card {
    padding: 18px;
    background: linear-gradient(180deg, var(--bg-elevated), var(--bg-subtle));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.stat-label {
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-note {
    color: var(--text-faint);
    margin-top: 8px;
    font-size: 13px;
}

.dashboard-callout {
    margin-top: 18px;
}

.section-title--flush {
    margin-top: 0;
}

.list-clean--spaced {
    margin-top: 14px;
}

/* ******************************-={ 08. FORMS / INPUTS / BUTTONS }=-****************************** */
.form-shell {
    max-width: 980px;
}

.form-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

input,
select,
textarea,
button {
    font: inherit;
}

input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent 82%);
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0 16px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.button-link:hover {
    background: var(--accent-strong);
    text-decoration: none;
}

.button-link.is-secondary,
button.is-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 4px;
}

.inline-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.field-help {
    color: var(--text-faint);
    font-size: 13px;
    margin-top: 7px;
}

.field-help--spaced {
    margin-top: 12px;
}

.form-hidden {
    display: none;
}

/* ******************************-={ 09. MESSAGES / STATUS }=-****************************** */
.success,
.error {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    font-weight: 700;
}

.success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: color-mix(in srgb, var(--success-text) 24%, transparent 76%);
}

.error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: color-mix(in srgb, var(--error-text) 24%, transparent 76%);
}

/* ******************************-={ 10. PICKERS / TOKENS }=-****************************** */
.picker-wrap {
    position: relative;
}

.picker-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 50;
}

.picker-item {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text);
}

.picker-item:hover {
    background: var(--accent-soft);
}

.token-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.token {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text);
}

.token button {
    background: transparent;
    border: 0;
    color: inherit;
    min-height: auto;
    padding: 0;
    cursor: pointer;
}

/* ******************************-={ 11. TABLES / CHIPS }=-****************************** */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.table-shell {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    line-height: 1.2;
}

.data-table th,
.data-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table th {
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--bg-subtle) 76%, transparent 24%);
}

.data-table tbody tr:nth-child(even) {
    background: var(--table-stripe);
}

.data-table td:nth-child(5) {
    max-width: 320px;
    font-size: 0.80rem;
    overflow-wrap: break-word;
}

.data-table td:nth-child(2) {
    white-space: nowrap;
}

.data-table td:first-child {
    white-space: nowrap;
    width: 70px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 700;
}

.chip-road {
    background: var(--chip-road);
    color: var(--chip-road-text);
}

.chip-equipment {
    background: var(--chip-eq);
    color: var(--chip-eq-text);
}



.expense-toolbar-meta {
    justify-content: flex-end;
    margin-bottom: 0;
}

.expense-table td:nth-child(3),
.expense-table th:nth-child(3) {
    white-space: nowrap;
    width: 110px;
}

.expense-table td:nth-child(4),
.expense-table th:nth-child(4) {
    white-space: nowrap;
    width: 120px;
}

.expense-table td:nth-child(5),
.expense-table td:nth-child(6) {
    max-width: 320px;
    overflow-wrap: break-word;
    vertical-align: top;
}

.expense-amount {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ******************************-={ 12. ROAD LOG MODALS / RECORD VIEW }=-****************************** */
.table-row-clickable {
    cursor: pointer;
}

.table-row-clickable:hover {
    background: color-mix(in srgb, var(--accent-soft) 42%, transparent 58%);
}

.annual-check {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 16, 0.58);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 1000;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-card {
    width: min(1080px, 100%);
    max-height: min(88vh, 980px);
    overflow: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

.modal-card--filter {
    width: min(880px, 100%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.modal-subtitle {
    color: var(--text-soft);
    margin-top: 6px;
}

.modal-close {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.record-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.record-meta .code-note {
    background: var(--bg-subtle);
    color: var(--text-soft);
}

.work-date-hover {
    text-decoration: none;
}

.inline-employee-note {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-style: italic;
}

.time-exception-inline {
    display: block;
    margin-bottom: 4px;
    color: #ef4444;
    font-weight: 700;
}


/* ******************************-={ 13. RESPONSIVE }=-****************************** */
@media (max-width: 1024px) {
    .grid-two,
    .grid-three,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .col-12,
    .col-8,
    .col-6,
    .col-4,
    .col-3 {
        grid-column: span 12;
    }

    .page-title {
        font-size: 30px;
    }
}

/* ******************************-={ 14. CONDOM WRAPPER}=-****************************** */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.button-link--secondary {
    opacity: 0.88;
}


/* ******************************-={ 04/07/2026 - WB PHASE 1 }=-******************************
   COMPACT HEADER / NAV / REPORT PAGES
   ********************************************************************************** */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 88%, transparent 12%);
    border-bottom: 1px solid var(--border);
}

.site-header__inner,
.page-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.compact-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
}

.brand-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    min-width: 0;
}

.brand-inline:hover {
    text-decoration: none;
}

.brand-inline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    font-size: 18px;
}

.brand-inline__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-inline__kicker {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.brand-inline__title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.compact-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-chip,
.nav-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    box-shadow: none;
}

.nav-chip:hover,
.nav-menu > summary:hover,
.nav-chip.is-active {
    text-decoration: none;
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-chip__icon {
    font-size: 14px;
    line-height: 1;
}

.nav-menu {
    position: relative;
}

.nav-menu > summary::-webkit-details-marker {
    display: none;
}

.nav-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-soft);
}

.nav-menu__panel a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
}

.nav-menu__panel a:hover {
    text-decoration: none;
    background: var(--accent-soft);
    color: var(--accent);
}

.theme-toggle {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    box-shadow: none;
}

.theme-toggle__sun,
.theme-toggle__moon {
    font-size: 14px;
}

.page-wrap {
    padding: 22px 0 42px 0;
}

.page-header--compact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.page-title--tight {
    font-size: 30px;
    margin-bottom: 4px;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

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

.quick-list {
    display: grid;
    gap: 10px;
}

.quick-list__item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-elevated) 82%, var(--bg-subtle) 18%);
    color: var(--text);
}

.quick-list__item span {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-soft);
}

.quick-list__item strong {
    font-size: 14px;
}

.quick-list__item small {
    color: var(--text-soft);
    font-size: 12px;
}

.quick-list__item:hover {
    text-decoration: none;
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border) 55%);
}

.summary-stack {
    display: grid;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: 0;
}

.soft-note {
    margin: 12px 0 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.45;
}

.notice {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
}

.notice--error {
    background: var(--error-bg);
    color: var(--error-text);
}

.report-shell,
.print-shell {
    max-width: 100%;
}

.report-card {
    padding: 18px;
}

.report-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.report-head__actions {
    justify-content: flex-end;
}

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

.stats-grid--compact {
    gap: 10px;
}

.compact-stat {
    padding: 14px;
}

.stat-value--small {
    font-size: 22px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.section-block {
    margin-top: 16px;
}

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

.section-block__head h3,
.section-title--flush {
    margin: 0;
}

.table-shell--tight {
    border-radius: 12px;
}

.data-table--compact {
    font-size: 0.78rem;
}

.data-table--compact th,
.data-table--compact td {
    padding: 7px 9px;
}

.report-table td,
.report-table th {
    white-space: nowrap;
}

.report-table td:nth-child(4),
.report-table td:nth-child(6),
.report-table td:nth-child(7) {
    white-space: normal;
}

.diff-ok {
    font-weight: 700;
}

.diff-bad {
    font-weight: 800;
    color: var(--error-text);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid var(--border);
}

.status-pill--matched {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-pill--ticket_not_found,
.status-pill--tons_mismatch {
    background: var(--error-bg);
    color: var(--error-text);
}

.filter-panel {
    margin-top: 14px;
}

.compact-filter-panel {
    padding: 16px;
}

.filter-grid--four {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.filter-actions {
    margin-top: 14px;
}

.top-gap {
    margin-top: 14px;
}

.muted-cell {
    color: var(--text-soft);
    text-align: center;
    padding: 16px !important;
}

.date-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.print-only {
    display: none;
}

@media (max-width: 1080px) {
    .compact-bar {
        grid-template-columns: 1fr;
    }

    .compact-nav {
        justify-content: flex-start;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .grid-four,
    .stats-grid,
    .grid-two {
        grid-template-columns: 1fr 1fr;
    }

    .filter-grid,
    .filter-grid--four {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .site-header__inner,
    .page-wrap {
        width: min(1320px, calc(100% - 20px));
    }

    .grid-four,
    .grid-two,
    .stats-grid,
    .filter-grid,
    .filter-grid--four,
    .date-pair {
        grid-template-columns: 1fr;
    }

    .report-head,
    .page-header--compact {
        flex-direction: column;
    }

    .nav-menu__panel {
        position: static;
        margin-top: 6px;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .site-header,
    .no-print,
    .button-row,
    .header-actions,
    .compact-nav {
        display: none !important;
    }

    .page-wrap,
    .site-header__inner {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .page-card,
    .panel-card,
    .stat-card,
    .table-shell {
        box-shadow: none !important;
        border-color: #cfcfcf !important;
        background: #ffffff !important;
    }

    .print-only {
        display: block;
    }

    .print-title-block {
        margin-bottom: 12px;
    }

    .print-title-block h1 {
        margin: 0 0 4px 0;
        font-size: 20px;
    }

    .data-table {
        font-size: 11px;
    }

    .data-table th,
    .data-table td {
        padding: 5px 6px;
        color: #000000;
    }

    .diff-bad,
    .status-pill {
        color: #000000 !important;
        background: transparent !important;
        border-color: #999999 !important;
    }
}
