/*
 * AgriZen Web — stylesheet.
 *
 * The palette is a direct port of the desktop app's Helpers/UiTheme.vb, so the
 * two editions read as one product: deep green primary, near-black-green
 * sidebar, the same alternating grid and the same danger/warning colours.
 */

:root {
    --primary: #15803d;          /* UiTheme.Primary */
    --primary-dark: #0e5a2b;     /* UiTheme.PrimaryDark */
    --accent: #16a34a;           /* UiTheme.Accent */

    --side-bg: #0f1a14;          /* UiTheme.SidebarBg */
    --side-active: #1b5e20;      /* UiTheme.SidebarActiveBg */
    --side-hover: #1a2820;       /* UiTheme.SidebarHoverBg */
    --side-text: #d6e0d9;        /* UiTheme.SidebarText */
    --side-muted: #879b8c;       /* UiTheme.SidebarTextMuted */

    --bg: #f3f5f4;               /* UiTheme.Bg */
    --card: #ffffff;
    --border: #e4e7e5;           /* UiTheme.Border */
    --row-alt: #f6f8f6;          /* UiTheme.RowAlt */

    --ink: #111815;              /* UiTheme.TextDark */
    --muted: #6b7a70;            /* UiTheme.TextMuted */

    --danger: #dc2626;           /* UiTheme.Danger */
    --warning: #d97706;          /* UiTheme.Warning */
    --info: #2563eb;             /* UiTheme.Info */

    --radius: 12px;
    --sidebar-w: 236px;
    --shadow: 0 1px 2px rgba(15, 26, 20, .04), 0 8px 24px rgba(15, 26, 20, .05);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

code { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: .9em; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.neg { color: var(--danger); }
.link { color: var(--primary-dark); font-weight: 600; }

/* ---------------- shell ---------------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: var(--side-bg);
    color: var(--side-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.side-head {
    display: flex; align-items: center; gap: .7rem;
    padding: 1.15rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.side-head .mark { width: 30px; height: 30px; flex: 0 0 30px; color: var(--accent); }
.side-head svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.side-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.side-title b { font-size: 1.02rem; letter-spacing: -.01em; }
.side-title small { color: var(--side-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

.side-nav { flex: 1 1 auto; overflow-y: auto; padding: .7rem 0 1rem; }

/* Scrollbar in the sidebar's own greens instead of the browser's grey. */
.side-nav { scrollbar-width: thin; scrollbar-color: var(--side-active) var(--side-bg); }
.side-nav::-webkit-scrollbar { width: 8px; }
.side-nav::-webkit-scrollbar-track { background: var(--side-bg); }
.side-nav::-webkit-scrollbar-thumb { background: var(--side-active); border-radius: 8px; border: 2px solid var(--side-bg); }
.side-nav::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.side-group {
    display: block;
    padding: 1rem 1.15rem .4rem;
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--side-muted);
}
.side-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .56rem 1.15rem;
    color: var(--side-text); font-size: .925rem; font-weight: 500;
    border-left: 3px solid transparent;
}
.side-link:hover { background: var(--side-hover); text-decoration: none; }
.side-link.on { background: var(--side-active); border-left-color: var(--accent); color: #fff; font-weight: 600; }
.side-link svg {
    width: 18px; height: 18px; flex: 0 0 18px;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
    opacity: .85;
}

.side-foot {
    padding: .8rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    display: flex; flex-direction: column; gap: .1rem;
    font-size: .72rem;
}
.side-foot .muted { color: var(--side-muted); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex; align-items: center; gap: .7rem;
    padding: .8rem 1.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 1.16rem; margin-right: auto; }
.top-actions { display: flex; gap: .5rem; align-items: center; }
.stamp { color: var(--muted); font-size: .85rem; }
.bell { position: relative; display: inline-flex; padding: .35rem; border-radius: 8px; color: var(--muted); }
.bell:hover { background: var(--bg); color: var(--ink); }
.bell svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-count {
    position: absolute; top: -.2rem; right: -.35rem; min-width: 1.1rem; padding: 0 .28rem;
    border-radius: 999px; background: var(--warning); color: #fff;
    font-size: .66rem; font-weight: 700; line-height: 1.1rem; text-align: center;
}
.bell-critical .bell-count { background: var(--danger); }
.who { display: flex; flex-direction: column; line-height: 1.2; text-align: right; margin-left: .4rem; }
.who-name { font-weight: 600; font-size: .875rem; }
.who-role { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }

.side-toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    padding: .35rem; width: 34px;
}
.side-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

.content { padding: 1.5rem; max-width: 1500px; width: 100%; }
.page-intro { margin: 0 0 1.2rem; color: var(--muted); }

/* ---------------- cards, tiles, grids ---------------- */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
}
.card-danger { border-color: rgba(220, 38, 38, .35); }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin: -.15rem 0 .9rem;
    flex-wrap: wrap;
}
.card-head h2 { font-size: 1rem; }

.cols { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); align-items: start; }
.cols-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cols-sidebar { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; }

.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 1.3rem; }
.tiles-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tiles-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1rem;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: .1rem;
}
.tile-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tile-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.tile-sub { font-size: .8rem; color: var(--muted); }
.tile-ok { border-left-color: var(--accent); }
.tile-warn { border-left-color: var(--warning); }
.tile-bad { border-left-color: var(--danger); }
.tile-bad .tile-value { color: var(--danger); }

table.grid { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.grid th, table.grid td {
    padding: .55rem .6rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
table.grid thead th {
    background: var(--primary);
    color: #fff;
    font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 0;
    white-space: nowrap;
}
table.grid thead th:first-child { border-top-left-radius: 8px; }
table.grid thead th:last-child { border-top-right-radius: 8px; }
table.grid tbody tr:nth-child(even) { background: var(--row-alt); }
table.grid tbody tr:last-child td { border-bottom: 0; }
.grid-hover tbody tr:hover { background: #eef4ef; }
table.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid tfoot th, table.grid tfoot td { padding: .5rem .6rem; border-bottom: 0; font-size: .9rem; }
table.grid tfoot .total-row th, table.grid tfoot .total-row td {
    border-top: 2px solid var(--ink); font-weight: 800; font-size: 1rem;
}
.row-low { background: #fff8ec !important; }
.row-void { color: var(--muted); }
.row-void a { color: var(--muted); }
.row-actions { display: flex; gap: .3rem; justify-content: flex-end; flex-wrap: wrap; }
.sub { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; }
.empty { color: var(--muted); text-align: center; padding: 1.6rem .5rem; margin: 0; }

.defs { margin: 0; display: grid; gap: .1rem; }
.defs > div { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; border-bottom: 1px solid var(--border); }
.defs > div:last-child { border-bottom: 0; }
.defs dt { color: var(--muted); font-size: .85rem; }
.defs dd { margin: 0; font-weight: 600; text-align: right; }

.badge {
    display: inline-block;
    padding: .1rem .45rem;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.badge-ok { background: #e7f6ec; color: #0e5a2b; }
.badge-warn { background: #fdf1e0; color: #92500a; }
.badge-bad { background: #fdeaea; color: #a51b1b; }
.badge-muted { background: #eef0ef; color: var(--muted); }

.pager { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.pager a {
    min-width: 2rem; text-align: center;
    padding: .28rem .5rem;
    border: 1px solid var(--border); border-radius: 7px;
    font-size: .85rem; font-weight: 600;
}
.pager a:hover { background: var(--row-alt); text-decoration: none; }
.pager a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .gap { color: var(--muted); padding: .28rem .2rem; }

.changes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.chg { background: var(--row-alt); border: 1px solid var(--border); border-radius: 6px; padding: .05rem .35rem; font-size: .76rem; }
.chg b { font-weight: 700; }
.audit-grid td { font-size: .86rem; }

/* ---------------- forms ---------------- */

label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .25rem; }

input[type="text"], input[type="password"], input[type="search"], input[type="number"],
input[type="date"], input:not([type]), select, textarea {
    width: 100%;
    padding: .5rem .6rem;
    font: inherit; font-size: .925rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #ccd4cf;
    border-radius: 8px;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(22, 163, 74, .35);
    outline-offset: 1px;
    border-color: var(--accent);
}
textarea { resize: vertical; }

.field { margin-bottom: .85rem; min-width: 0; }
.field .hint { display: block; font-size: .76rem; color: var(--muted); margin-top: .2rem; }
.field .pick-filter { margin-bottom: .3rem; }
.field-grow { flex: 1 1 14rem; }
.field-span { grid-column: 1 / -1; }
.field-actions { display: flex; gap: .5rem; align-items: flex-end; }

.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-section {
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted);
    margin: .6rem 0 .7rem; padding-top: .8rem;
    border-top: 1px solid var(--border);
}
.form-actions { display: flex; gap: .6rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }
.form-narrow { max-width: 27rem; }
.form-wide { max-width: none; }

.filters { display: flex; gap: 0 1rem; flex-wrap: wrap; align-items: flex-end; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.inline-form input, .inline-form select { width: auto; }

.check { display: flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--ink); font-weight: 500; margin-bottom: .3rem; }
.check input { width: auto; }

.note {
    background: var(--row-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .6rem .75rem;
    font-size: .875rem;
    margin: .5rem 0 0;
}

.alert {
    border-radius: 9px;
    padding: .7rem .9rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    border: 1px solid;
}
.alert-ok { background: #e7f6ec; border-color: #bfe3cb; color: #0e5a2b; }
.alert-error { background: #fdeaea; border-color: #f3c4c4; color: #8f1a1a; }
.alert-warn { background: #fdf6e8; border-color: #f0dcb4; color: #7a4a06; }
.temp-pw {
    display: inline-block;
    background: #fff; border: 1px dashed var(--warning); border-radius: 6px;
    padding: .15rem .5rem; font-size: 1rem; font-weight: 700; letter-spacing: .04em;
}

/* ---------------- buttons ---------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .52rem 1rem;
    font: inherit; font-size: .9rem; font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #ccd4cf; }
.btn-ghost:hover { background: var(--row-alt); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a51b1b; }
.btn-sm { padding: .32rem .62rem; font-size: .82rem; }
.btn-lg { padding: .7rem 1.2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-x {
    background: none; border: 0; cursor: pointer;
    color: var(--muted); font-size: 1.2rem; line-height: 1;
    padding: 0 .25rem;
}
.btn-x:hover { color: var(--danger); }

/* ---------------- POS ---------------- */

.pos { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: start; }
.pos-cart { position: sticky; top: 5rem; }

.scan { display: flex; gap: .5rem; margin-bottom: .9rem; }
.scan input { flex: 1 1 auto; }

.cart-grid td { padding: .45rem .4rem; }
.cart-qty input { width: 5.2rem; text-align: right; }

.checkout { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.totals { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .6rem; }
.totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.totals span { color: var(--muted); font-size: .875rem; }
.totals b { font-variant-numeric: tabular-nums; font-weight: 700; }
.totals-due { padding: .5rem .65rem; background: var(--row-alt); border-radius: 8px; }
.totals-due span { color: var(--ink); font-weight: 600; font-size: .95rem; }
.totals-due b { font-size: 1.35rem; color: var(--primary-dark); }
.totals-change b { font-size: 1.1rem; }

/* ---------------- plain pages (login, errors) ---------------- */

body.plain { background: var(--side-bg); display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.auth-wrap { width: 100%; max-width: 23rem; }
.auth-wrap-wide { max-width: 30rem; }
.auth-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.auth-head h1 { color: #fff; font-size: 1.3rem; }
.auth-head .link { color: var(--side-muted); font-size: .85rem; }

.auth-card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.8rem 1.7rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.auth-card h1 { font-size: 1.4rem; margin-bottom: .1rem; }
.auth-card h1 span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.auth-mark { display: block; width: 46px; height: 46px; color: var(--primary); margin-bottom: .7rem; }
.auth-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.auth-sub { color: var(--muted); font-size: .875rem; margin: 0 0 1.2rem; }
.auth-card label { margin-top: .7rem; }
.auth-card .btn { margin-top: 1.1rem; }
.auth-foot { color: var(--muted); font-size: .76rem; text-align: center; margin: 1rem 0 0; }
.auth-msg { text-align: center; }
.auth-msg h1 { font-size: 1.6rem; margin-bottom: .5rem; }

/* ---------------- receipt ---------------- */

body.receipt-page { background: #e8ebe9; padding: 1.5rem; }
.receipt-bar {
    display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
    max-width: 22rem; margin: 0 auto 1rem;
}
.receipt {
    width: 80mm; max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 6mm 5mm;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    font-size: 12px; line-height: 1.45;
    color: #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
.receipt p { margin: 0; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: .4rem 0; }
.r-center { text-align: center; }
.r-strong { font-weight: 700; }
.r-title { font-weight: 700; margin-top: .3rem; }
.r-void { font-weight: 700; margin: .4rem 0; letter-spacing: .08em; }
.r-meta { margin-top: .5rem; }
.r-item { margin-top: .25rem; }
.r-row { display: flex; justify-content: space-between; gap: .6rem; }
.r-footer { margin-top: .7rem; }

@media print {
    body.receipt-page { background: #fff; padding: 0; }
    .no-print { display: none; }
    .receipt { box-shadow: none; width: auto; padding: 0; }
    @page { margin: 4mm; }
}

/* Reports, statements and ledgers print as the page content alone. */
@media print {
    body:not(.receipt-page) .sidebar, body:not(.receipt-page) .topbar, .filters, .form-actions, .alert, .btn, .pick-filter { display: none !important; }
    body:not(.receipt-page) .shell { display: block; }
    body:not(.receipt-page) .main { margin: 0; }
    body:not(.receipt-page) .content { padding: 0; }
    .card { box-shadow: none; break-inside: avoid-page; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1100px) {
    .cols-2, .cols-sidebar { grid-template-columns: 1fr; }
    .pos { grid-template-columns: 1fr; }
    .pos-cart { position: static; }
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed; inset: 0 auto 0 0; z-index: 40;
        transform: translateX(-100%);
        transition: transform .18s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, .3);
    }
    .sidebar.open { transform: none; }
    .side-toggle { display: block; }
    .content { padding: 1rem; }
    .topbar { padding: .7rem 1rem; }
    .topbar h1 { font-size: 1.02rem; }
    .who { display: none; }
    table.grid { font-size: .84rem; }
}

/* ---------- search by column: the filter row under a list's headings ---------- */
.grid thead tr.col-filters th { padding-top: 0; padding-bottom: .4rem; }
.grid thead tr.col-filters input {
    width: 100%; min-width: 4.5rem; padding: .25rem .4rem; font-size: .78rem; font-weight: 400;
    border: 1px solid var(--border); border-radius: 6px; background: #fff;
}

/* ---------- approval: the supervisor's sign-off on a form ---------- */
.approval-box {
    margin: .5rem 0; padding: .6rem .7rem; border: 1px dashed var(--warning); border-radius: 8px;
    background: rgba(217, 119, 6, .06); display: grid; gap: .4rem;
}

/* ---------- POS: customer picker above the cart ---------- */
.pos-customer { margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

@media print {
    .grid thead tr.col-filters, .approval-box { display: none !important; }
}

/* ---------- popup (modal): the supervisor sign-off for voiding an item ---------- */
dialog.modal {
    width: min(26rem, calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(15, 26, 20, .35);
}
dialog.modal::backdrop { background: rgba(15, 26, 20, .55); }
dialog.modal h2 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--danger); }
dialog.modal p { margin: 0 0 .6rem; }
dialog.modal .form-actions { margin-top: .75rem; }
/* Scripting off: the dialog is simply shown in place, above the cart. */
dialog.modal[open]:not(:modal) { position: static; margin: 0 0 .75rem; width: auto; box-shadow: none; }

/* ---------- revision batches: shared form parts ---------- */
/* A grid or flex container would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
/* UiTheme.MarkRequired: the red asterisk on a field a form will not save without. */
.req { color: var(--danger); font-weight: 700; margin-left: .1rem; }
/* The check's particulars, shown only for a payment by check. */
.check-panel { margin: .25rem 0 .5rem; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 8px; }
/* "+" beside a dropdown a supervisor can add to. */
.with-plus { display: flex; gap: .35rem; align-items: center; }
.with-plus select { flex: 1; min-width: 0; }
.lookup-plus { flex: none; font-weight: 700; min-width: 2.1rem; }
/* A popup that is a choice, not a warning (bag or kilo). */
dialog.modal.modal-plain h2 { color: var(--ink); }
/* Tabs across the top of a screen with several parts (Stock Count / Record Damage...). */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; }
.tabs a {
    padding: .42rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
    color: var(--ink); font-size: .86rem; font-weight: 600; text-decoration: none;
}
.tabs a:hover { border-color: var(--primary); }
.tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Wide grids (the monthly share schedule) scroll inside their card. */
.table-scroll { overflow-x: auto; }

/* Sub-total and total rows in report grids. */
.grid tr.row-total td { background: var(--bg, #f6f7f5); }
