/* SAN Exceptions design system: the statement.
   Calm white sheets on a cool ground under a navy bar, the figures set like a bank statement,
   every queue a hairline ledger. One face (Geist), navy for the bar and the primary action,
   action blue for links and focus. Pages that use Views/Shared/_AppLayout.cshtml load this
   instead of Bootstrap. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/geist.woff2") format("woff2"); } /* Geist, SIL Open Font License 1.1 (Vercel) */

:root {
    --san-navy: #0B2545;
    --san-navy-2: #123366;
    --san-blue: #0B63CE;
    --san-blue-dark: #084C9E;
    --san-wash: #EAF2FD;
    --san-ink: #0B1B33;
    --san-caption: #5E6B7E;
    --san-box: #D5DCE5;      /* control edges */
    --san-hair: #E6EAF0;     /* sheet edges and rules */
    --san-row: #EEF1F5;      /* rules between table rows */
    --san-sheet: #FFFFFF;
    --san-tint: #F7F9FC;     /* table heads, read-only fields */
    --san-ground: #F4F6FA;   /* the page behind the sheets */
    --san-focus: #0B63CE;
    --san-ring: 0 0 0 3px rgba(11, 99, 206, .18);
    --san-lift: 0 1px 2px rgba(11, 37, 69, .04), 0 6px 20px rgba(11, 37, 69, .05);
    --san-lift-up: 0 2px 4px rgba(11, 37, 69, .06), 0 18px 40px rgba(11, 37, 69, .14);
    /* status colours: the team's coding, tuned to read at 4.5:1 on their wash */
    --san-open: #157A3E;      --san-open-wash: #E8F5EC;
    --san-escalated: #1E5AA8; --san-escalated-wash: #E8F0FB;
    --san-refund: #6B4AA8;    --san-refund-wash: #F1ECFA;
    --san-closed: #B42318;    --san-closed-wash: #FDECEB;
    --san-deleted: #5E6B7E;   --san-deleted-wash: #EEF1F5;
    --san-overdue: #C8102E;
    --san-soon: #B5501C;
    --san-font: "Geist", "Segoe UI", system-ui, sans-serif;
    --san-radius: 8px;        /* controls */
    --san-r-sheet: 14px;      /* sheets */
    --san-ease: cubic-bezier(.2, .7, .2, 1);
    --san-bar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--san-ground); scroll-padding-top: 128px; } /* focus scrolling clears the bar and a pinned action row */

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--san-ink);
    background: var(--san-ground);
    font: 14px/1.45 var(--san-font);
    -webkit-font-smoothing: antialiased;
    accent-color: var(--san-navy);
    caret-color: var(--san-blue);
}

::selection { background: #CFE0FA; color: var(--san-ink); }
::placeholder { color: var(--san-caption); opacity: 1; }

:focus-visible { outline: 2px solid var(--san-focus); outline-offset: 2px; }

a { color: var(--san-blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--san-blue-dark); text-decoration: underline; }

/* Figures line up wherever they are read in columns */
table, .san-facts, .san-sticker, .san-field input, .san-charges, .san-notes__meta { font-variant-numeric: tabular-nums; }

* { scrollbar-width: thin; scrollbar-color: #C3CCD8 transparent; }

/* ---------- Header bar ---------- */

.san-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    min-height: var(--san-bar-h);
    padding: 0 24px;
    background: var(--san-navy);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 8px 24px rgba(11, 37, 69, .12);
}

.san-bar__brand {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 10px;
    margin-right: 16px;
    background: #fff;
    border-radius: 10px;
}

.san-bar__brand img { height: 28px; display: block; }

.san-bar__nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

.san-bar__nav a {
    display: inline-block;
    padding: 7px 10px;
    color: #C9D6EA;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: -.005em;
    white-space: nowrap;
    border-radius: 999px;
    transition: background-color 180ms var(--san-ease), color 180ms var(--san-ease);
}

.san-bar__nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.san-bar__nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .16); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.san-bar__nav a:focus-visible { outline-color: #fff; }

.san-bar__search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.san-bar__search input {
    height: 34px;
    width: 200px;
    min-width: 120px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: 13.5px var(--san-font);
    transition: background-color 180ms var(--san-ease), border-color 180ms var(--san-ease), color 180ms var(--san-ease);
}

.san-bar__search input::placeholder { color: #A9B8CE; }
.san-bar__search input:hover { border-color: rgba(255, 255, 255, .3); }
.san-bar__search input:focus { background: #fff; color: var(--san-ink); border-color: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.san-bar__search input:focus::placeholder { color: var(--san-caption); }

/* Advanced Search: a drawn sliders icon beside the field, named for screen readers and on hover */
.san-bar__adv { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; color: #C9D6EA; transition: background-color 180ms var(--san-ease), color 180ms var(--san-ease); }
.san-bar__adv:hover { color: #fff; background: rgba(255, 255, 255, .1); text-decoration: none; }
.san-bar__adv[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .16); }
.san-bar__adv:focus-visible { outline-color: #fff; }

.san-bar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .16);
    font-size: 13px;
    color: #C9D6EA;
    white-space: nowrap;
}

.san-bar__user a { display: inline-flex; align-items: center; gap: 8px; color: #C9D6EA; font-weight: 500; }
/* The signed-in user: an initials chip, with the name beside it when the bar has room */
.san-bar__initials { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.san-bar__user a:hover { color: #fff; }

.san-bar__user form { margin: 0; }

/* Full width, so the page's edges follow the bar's on any monitor; narrow pages and the home page set their own measure */
.san-page { flex: 1 0 auto; width: 100%; margin: 0 auto; padding: 24px 32px 56px; }

.san-footer { padding: 18px 32px 24px; color: var(--san-caption); font-size: 12px; text-align: center; }

/* ---------- Buttons ---------- */

.san-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 16px;
    border: 1px solid var(--san-navy);
    border-radius: 999px;
    background: var(--san-navy);
    color: #fff;
    font: 600 13.5px var(--san-font);
    letter-spacing: -.005em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(11, 37, 69, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: background-color 180ms var(--san-ease), border-color 180ms var(--san-ease), box-shadow 180ms var(--san-ease), transform 180ms var(--san-ease), color 180ms var(--san-ease);
}

.san-btn:hover { background: var(--san-navy-2); border-color: var(--san-navy-2); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 37, 69, .2); }
.san-btn:active { transform: none; }
.san-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.san-btn--quiet { background: #fff; color: var(--san-ink); border-color: var(--san-box); box-shadow: 0 1px 2px rgba(11, 37, 69, .05); }
.san-btn--quiet:hover { background: var(--san-tint); color: var(--san-ink); border-color: #B8C3D1; box-shadow: 0 1px 2px rgba(11, 37, 69, .06); transform: none; }

/* The one destructive action on a confirm page (Delete) */
.san-btn--danger { background: var(--san-overdue); border-color: var(--san-overdue); }
.san-btn--danger:hover { background: #A00D25; border-color: #A00D25; }

.san-btn--bar { height: 32px; padding: 0 14px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; font-weight: 500; }
.san-btn--bar:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); box-shadow: none; transform: none; }

/* ---------- Sheets and captions ---------- */

.san-caption {
    display: block;
    margin-bottom: 6px;
    color: var(--san-caption);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
}

.san-section {
    border: 1px solid var(--san-hair);
    border-radius: var(--san-r-sheet);
    background: var(--san-sheet);
    padding: 18px 20px 20px;
    box-shadow: var(--san-lift);
}

.san-section__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 14px;
    color: var(--san-ink);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.san-section__title small { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--san-caption); overflow-wrap: anywhere; }

/* The page's own heading: every page marks its first sheet's title as its one h1 */
h1.san-section__title {
    margin-bottom: 18px;
    color: var(--san-navy);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -.022em;
    line-height: 1.2;
    gap: 6px 14px;
}

.san-field { min-width: 0; }

.san-field select,
.san-field input,
.san-table--edit td select,
.san-table--edit td input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--san-box);
    border-radius: var(--san-radius);
    background: #fff;
    color: var(--san-ink);
    font: 13.5px var(--san-font);
    box-shadow: 0 1px 1px rgba(11, 37, 69, .03);
    transition: border-color 180ms var(--san-ease), box-shadow 180ms var(--san-ease);
}

.san-field select,
.san-table--edit td select,
.san-assign select {
    appearance: none;
    padding-right: 30px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235E6B7E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;
}

.san-field select:hover,
.san-field input:hover,
.san-table--edit td select:hover,
.san-table--edit td input:hover { border-color: #AEB9C7; }

.san-field select:focus-visible,
.san-field input:focus-visible,
.san-table--edit td select:focus-visible,
.san-table--edit td input:focus-visible { outline: none; border-color: var(--san-blue); box-shadow: var(--san-ring); }

.san-field select:disabled { background-color: var(--san-tint); color: var(--san-caption); }

/* Multi-select filter: a details/summary that reads like a select, with a checkbox list inside */
.san-multi { position: relative; }

.san-multi > summary {
    list-style: none;
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--san-box);
    border-radius: var(--san-radius);
    background: #fff;
    color: var(--san-ink);
    font-size: 13.5px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 1px rgba(11, 37, 69, .03);
    transition: border-color 180ms var(--san-ease), box-shadow 180ms var(--san-ease), background-color 180ms var(--san-ease);
}

.san-multi > summary::-webkit-details-marker { display: none; }

.san-multi > summary::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 13px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--san-caption);
    border-bottom: 1.5px solid var(--san-caption);
    transform: rotate(45deg);
    transition: transform 180ms var(--san-ease);
}

.san-multi > summary:hover { border-color: #AEB9C7; }
.san-multi[open] > summary { border-color: var(--san-blue); box-shadow: var(--san-ring); }
.san-multi[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.san-multi.is-set > summary { font-weight: 600; color: var(--san-navy); background: var(--san-wash); border-color: #BFD5F5; }

.san-multi__menu {
    position: absolute;
    z-index: 30;
    top: 40px;
    left: 0;
    min-width: 100%;
    max-width: 340px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--san-hair);
    border-radius: 12px;
    box-shadow: var(--san-lift-up);
}

.san-multi__tools { position: sticky; top: -6px; margin: -6px -6px 4px; padding: 8px 8px 8px; background: #fff; border-bottom: 1px solid var(--san-hair); }
.san-multi__find { width: 100%; height: 30px; padding: 0 10px; border: 1px solid var(--san-box); border-radius: var(--san-radius); font: 13px var(--san-font); color: var(--san-ink); }
.san-multi__find:focus-visible { outline: none; border-color: var(--san-blue); box-shadow: var(--san-ring); }

.san-multi__group {
    padding: 8px 8px 4px;
    color: var(--san-caption);
    font-size: 12px;
    font-weight: 600;
}

.san-multi__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
}

.san-multi__item:hover { background: var(--san-tint); }
.san-multi__item:has(input:checked) { color: var(--san-navy); font-weight: 500; }
.san-multi__item input { margin: 0; width: 15px; height: 15px; }

/* Date range: From / To */
.san-range { display: flex; align-items: center; gap: 8px; }
.san-range input { flex: 1 1 0; min-width: 0; }
.san-range__to { color: var(--san-caption); font-size: 12.5px; }
.san-field--range { grid-column: span 2; }

/* The statement: captioned figures, the figure that needs attention ruled off in navy */
.san-sticker {
    border: 1px solid var(--san-hair);
    border-radius: var(--san-r-sheet);
    background: #fff;
    box-shadow: var(--san-lift);
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 0;           /* no column gap, so a rule runs unbroken under caption and figure */
    align-items: stretch;  /* caption and figure share a top edge, so their rules meet */
    align-content: start;
}

.san-sticker > .san-caption, .san-sticker > .san-sticker__n, .san-sticker > .san-sticker__word { display: flex; align-items: flex-end; }
.san-sticker > .san-sticker__n, .san-sticker > .san-sticker__word { justify-content: flex-end; }
.san-sticker .san-caption { margin: 0; padding-right: 16px; padding-bottom: 3px; font-size: 13px; }
/* Beside a queue's filters the statement sits at the top of the head at its own height, figures set large */
.san-head { align-items: start; }
.san-head > .san-sticker .san-sticker__n { font-size: 44px; letter-spacing: -.035em; }
.san-head > .san-sticker .san-caption { padding-bottom: 6px; }
/* The attention figure (due today or overdue) sits under a navy rule, like a statement's balance due */
.san-sticker .san-caption:has(+ .san-sticker__n--due),
.san-sticker .san-sticker__n--due { border-top: 1.5px solid var(--san-navy); padding-top: 12px; margin-top: 2px; }
/* A full-width line under the figures (e.g. the last Providence pull and its button) */
.san-sticker__foot { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--san-hair); color: var(--san-caption); font-size: 13px; }

.san-sticker__n { font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: -.03em; text-align: right; color: var(--san-navy); transition: color 180ms var(--san-ease); }
.san-sticker__n--due { color: var(--san-overdue); }
.san-sticker__n--due.is-zero { color: var(--san-navy); }   /* nothing due: no alarm (set by san-grid.js) */
/* A word (the status) in the statement where a figure would go */
.san-sticker__word { font-size: 15px; font-weight: 600; text-align: right; letter-spacing: -.005em; }
/* The status pill standing in for a figure keeps its own centred layout */
.san-sticker > .san-status { display: inline-flex; align-items: center; justify-content: center; justify-self: end; align-self: end; font-size: 13px; height: 24px; }

/* ---------- The ledger table (DataTables 2 skin) ---------- */

.san-grid {
    border: 1px solid var(--san-hair);
    border-radius: var(--san-r-sheet);
    box-shadow: var(--san-lift);
    overflow-x: auto;
    /* Scroll edges: a soft shade appears at whichever side has more columns to scroll to */
    background:
        linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
        linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(11, 37, 69, .14), rgba(11, 37, 69, 0)) left center / 14px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(11, 37, 69, .14), rgba(11, 37, 69, 0)) right center / 14px 100% no-repeat scroll,
        #fff;
}

.san-grid table.dataTable { width: 100% !important; border-collapse: collapse; margin: 0 !important; }

.san-grid table.dataTable thead th {
    height: 38px;
    padding: 0 10px;
    text-align: left;
    vertical-align: middle;
    background: var(--san-tint);
    color: var(--san-caption);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    border: 0;
    border-bottom: 1px solid var(--san-hair);
    transition: color 180ms var(--san-ease), background-color 180ms var(--san-ease);
}

/* DataTables 2.3 sets its sort arrows in flow beside the label (a flex row), so the header needs no
   reserved right padding: the arrow keeps a fixed gap from its label and the cell pads like any other */
.san-grid table.dataTable thead > tr > th.dt-orderable-asc,
.san-grid table.dataTable thead > tr > th.dt-orderable-desc,
.san-grid table.dataTable thead > tr > th.dt-ordering-asc,
.san-grid table.dataTable thead > tr > th.dt-ordering-desc { padding-right: 8px; }
/* A gap, not a margin: numeric and date headers set the arrow on the left of their label */
.san-grid table.dataTable thead > tr > th div.dt-column-header { gap: 5px; }
.san-grid table.dataTable thead > tr > th span.dt-column-order { flex: none; margin: 0; opacity: .7; }
/* Client and carrier names stay on one line, cut with an ellipsis; the full name is the cell's title (san-grid.js) */
.san-grid table.dataTable tbody td.san-wrap { white-space: nowrap; }
.san-grid td.san-wrap .san-cut { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }

.san-grid table.dataTable thead th.dt-orderable-asc:hover,
.san-grid table.dataTable thead th.dt-orderable-desc:hover { color: var(--san-ink); background: #EFF3F8; }
.san-grid table.dataTable thead th.dt-ordering-asc,
.san-grid table.dataTable thead th.dt-ordering-desc { color: var(--san-navy); font-weight: 600; }

.san-grid table.dataTable tbody td {
    height: 34px;
    padding: 5px 10px;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid var(--san-row);
    white-space: nowrap;
    font-size: 13.5px;
    line-height: 1.25;
    transition: background-color 120ms var(--san-ease);
}

.san-grid table.dataTable tbody tr:hover td { background: #F5F8FD; }
.san-grid table.dataTable tbody tr:last-child td { border-bottom: 0; }

.san-grid td.san-num, .san-grid th.san-num { text-align: right; }
/* The money columns share one faint band, so the figures read as one block per row */
.san-grid td.san-money--start, .san-grid td.san-money--start + td, .san-grid td.san-money--end { background: #FAFBFD; }
.san-grid td.san-key { font-weight: 600; }
.san-grid td.san-act { padding-right: 4px; }
.san-grid td.san-act a { font-weight: 500; margin-right: 12px; }
.san-grid td.san-act a:last-child { margin-right: 0; }
.san-grid td.san-wrap { white-space: normal; min-width: 150px; }
/* Long free text (variance detail): keeps its line breaks, a size down */
.san-grid td.san-note { white-space: pre-line; min-width: 220px; font-size: 12.5px; color: var(--san-caption); }
/* A submit button that sits among the Edit / Details links and reads like one */
.san-grid td.san-act button { padding: 0; margin-right: 12px; border: 0; background: none; font: inherit; font-weight: 500; color: var(--san-blue); cursor: pointer; }
.san-grid td.san-act button:hover { color: var(--san-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.san-over { color: var(--san-overdue); font-weight: 600; }
/* Negative money, anywhere a figure appears (set by san-grid.js) */
.san-neg, .san-field input.san-neg, .san-charges input.san-neg { color: var(--san-overdue); }

.san-grid table.dataTable.dt-orderable-none, .san-grid .dt-empty { color: var(--san-caption); }

/* Status: a soft pill in its own cell; the word carries the state */
.san-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background: var(--san-deleted-wash);
}
.san-status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .85; }
.san-status--open { color: var(--san-open); background: var(--san-open-wash); }
.san-status--escalated { color: var(--san-escalated); background: var(--san-escalated-wash); }
.san-status--refund { color: var(--san-refund); background: var(--san-refund-wash); }
.san-status--closed { color: var(--san-closed); background: var(--san-closed-wash); }
.san-status--deleted { color: var(--san-deleted); background: var(--san-deleted-wash); }

.san-due--late { color: var(--san-overdue); font-weight: 600; }
.san-due--soon { color: var(--san-soon); font-weight: 600; }

/* Read by screen readers only; the state is also in the cell's title */
.san-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.san-grid .dt-empty { padding: 28px 12px; }

/* DataTables chrome under the table */
.san-grid .dt-layout-row { margin: 0; }
.san-grid .dt-layout-row:last-child { padding: 10px 14px; border-top: 1px solid var(--san-hair); background: #fff; }
.san-grid .dt-info { color: var(--san-caption); font-size: 13px; padding: 0 !important; }

.san-grid .dt-paging .dt-paging-button {
    min-width: 30px;
    height: 30px;
    margin: 0 1px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--san-ink);
    font-weight: 500;
    cursor: pointer;
    background: none;
    transition: background-color 180ms var(--san-ease), color 180ms var(--san-ease);
}

.san-grid .dt-paging .dt-paging-button:hover { background: var(--san-tint); color: var(--san-navy); border-color: var(--san-hair); }
.san-grid .dt-paging .dt-paging-button.current { background: var(--san-navy); color: #fff; border-color: var(--san-navy); }
.san-grid .dt-paging .dt-paging-button.disabled { color: #B8C3D1; cursor: default; background: none; border-color: transparent; }

.san-grid select.dt-input {
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--san-box);
    border-radius: var(--san-radius);
    background: #fff;
    font: 13px var(--san-font);
    color: var(--san-ink);
}

/* ---------- Page scaffolds ---------- */

.san-head { display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-bottom: 20px; }
.san-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 14px; }
.san-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.san-filters__hint { color: var(--san-caption); font-size: 13px; margin-left: auto; min-width: 0; }

.san-after { margin-top: 14px; display: flex; gap: 18px; align-items: center; color: var(--san-caption); font-size: 13px; }

.san-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid #F3C6CC;
    border-radius: 12px;
    color: #A30E26;
    background: #FEF3F4;
    font-weight: 500;
}

/* Information, not an error */
.san-alert--note { border-color: var(--san-hair); color: var(--san-ink); background: #fff; box-shadow: var(--san-lift); }

/* "Assign selected to [user] [Assign]" in a filter-actions row */
.san-assign { display: flex; align-items: center; gap: 8px; }
.san-assign select { height: 34px; min-width: 220px; padding: 0 30px 0 10px; border: 1px solid var(--san-box); border-radius: var(--san-radius); font: 13.5px var(--san-font); color: var(--san-ink); }

/* ---------- Entry forms (Create / Edit) ---------- */

.san-form { display: grid; gap: 18px; }
/* Grid tracks must not grow with a wide table inside a section; the section scrolls instead */
.san-form > *, .san-head > * { min-width: 0; }
.san-head--form { grid-template-columns: 1fr 320px; margin-bottom: 0; }
.san-head--form > .san-section { display: flex; flex-direction: column; }
.san-section__foot { margin-top: auto; padding-top: 12px; }

/* Captioned fields on the same six-column rhythm as the filters */
.san-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
.san-span-2 { grid-column: span 2; }
.san-span-3 { grid-column: span 3; }
.san-span-6 { grid-column: 1 / -1; }

.san-field label.san-caption { cursor: default; }
.san-field__hint { display: block; margin-top: 6px; color: var(--san-caption); font-size: 12.5px; line-height: 1.4; }

.san-field textarea {
    display: block;
    width: 100%;
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid var(--san-box);
    border-radius: var(--san-radius);
    background: #fff;
    color: var(--san-ink);
    font: 14px/1.45 var(--san-font);
    resize: vertical;
    box-shadow: 0 1px 1px rgba(11, 37, 69, .03);
    transition: border-color 180ms var(--san-ease), box-shadow 180ms var(--san-ease);
}

.san-field textarea:hover { border-color: #AEB9C7; }
.san-field textarea:focus-visible { outline: none; border-color: var(--san-blue); box-shadow: var(--san-ring); }

/* Figures the sheet works out itself: tinted and quiet */
.san-field input[readonly] { background: var(--san-tint); color: var(--san-caption); border-color: var(--san-hair); box-shadow: none; }
.san-field input[readonly]:hover { border-color: var(--san-hair); }

/* A single prefilled or server-set value shown as text at field height */
.san-field__text { display: flex; align-items: center; min-height: 34px; font-size: 14px; }

/* Native date inputs: the picker glyph in caption grey, not the browser's black */
.san-field input[type="date"] { padding-right: 6px; }
.san-field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }

/* File inputs: the browser's button restyled as a quiet pill */
.san-field input[type="file"] { height: auto; padding: 5px; font-size: 13px; color: var(--san-caption); cursor: pointer; }
.san-field input[type="file"]::file-selector-button {
    height: 26px;
    margin-right: 10px;
    padding: 0 12px;
    border: 1px solid var(--san-box);
    border-radius: 999px;
    background: #fff;
    color: var(--san-ink);
    font: 600 12.5px var(--san-font);
    cursor: pointer;
    transition: background-color 180ms var(--san-ease), border-color 180ms var(--san-ease);
}
.san-field input[type="file"]:hover::file-selector-button { background: var(--san-tint); border-color: #B8C3D1; }

/* A checkbox that sits on the field baseline beside its neighbours */
.san-check { display: flex; align-items: center; gap: 9px; min-height: 34px; font-size: 14px; cursor: pointer; }
.san-check input { width: 16px; height: 16px; margin: 0; }
.san-checks { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* Previous notes under the note field: a ruled list, newest first */
.san-notes { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--san-hair); }
.san-notes li { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--san-row); }
.san-notes li:last-child { border-bottom: 0; }
.san-notes__meta { color: var(--san-caption); font-size: 12.5px; }
.san-notes__text { white-space: pre-line; font-size: 14px; line-height: 1.45; }

/* The charges block: quoted / actual / variance by raw and sell */
.san-charges { border-collapse: separate; border-spacing: 0; width: 100%; max-width: 760px; border: 1px solid var(--san-hair); border-radius: 12px; overflow: hidden; }
.san-charges th {
    height: 34px;
    padding: 0 10px;
    text-align: left;
    vertical-align: middle;
    background: var(--san-tint);
    color: var(--san-caption);
    font-size: 12.5px;
    font-weight: 500;
    border-bottom: 1px solid var(--san-hair);
}
.san-charges th[scope="row"] { background: #fff; color: var(--san-ink); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--san-row); width: 72px; }
.san-charges td { padding: 7px 10px; border-bottom: 1px solid var(--san-row); }
.san-charges tr:last-child th, .san-charges tr:last-child td { border-bottom: 0; }
.san-charges input { text-align: right; }
.san-charges__wrap { display: grid; grid-template-columns: minmax(0, 720px) minmax(200px, 1fr); gap: 14px 24px; align-items: start; }
.san-charges__aside { display: grid; gap: 10px; justify-items: start; max-width: 360px; }
.san-charges__aside .san-field__hint { margin: 0; }
.san-lookup { max-width: 320px; }

/* The action row: pinned under the bar so the primary action stays in reach down a long form */
.san-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.san-form__actions .san-filters__hint { margin-left: 4px; }
/* Secondary destinations at the right of the action row (Edit charges, Details) */
.san-form__links { margin-left: auto; display: flex; gap: 18px; font-weight: 500; font-size: 13.5px; }
.san-form__actions--sticky {
    position: sticky;
    top: var(--san-bar-h);
    z-index: 10;
    margin: -24px -32px 0;
    padding: 12px 32px;
    background: rgba(244, 246, 250, .88);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--san-hair);
}

/* Validation (jQuery unobtrusive adds these) */
.san-field .input-validation-error, .san-charges .input-validation-error { border-color: var(--san-overdue); }
.san-field .input-validation-error:focus-visible { box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.field-validation-error { display: block; margin-top: 6px; color: var(--san-overdue); font-size: 12.5px; font-weight: 500; }
.field-validation-valid { display: none; }
.san-alert ul { margin: 0; padding-left: 18px; }
.san-alert label { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 400; color: var(--san-ink); cursor: pointer; }
.san-alert label input { width: 16px; height: 16px; margin: 0; }

/* ---------- Read-only sheet (Details): the same sections, typed in instead of filled in ---------- */

.san-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; margin: 0; }

/* The sheet: the record on the left, its margin (statement, journal, files) on the right */
.san-sheet { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.san-sheet__main, .san-sheet__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.san-sheet__main > *, .san-sheet__side > * { min-width: 0; }

/* Journal: meta line over the text, like a dated entry */
.san-notes--journal li { grid-template-columns: 1fr; gap: 3px; padding: 10px 0; }
.san-fact { min-width: 0; }
.san-fact dt { margin-bottom: 4px; }
.san-fact dd { margin: 0; min-height: 20px; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.san-fact__key { font-weight: 600; }
.san-fact__text { white-space: pre-line; }
/* A fact with no value reads as a dash, not a gap (san-grid.js marks it) */
.san-fact dd.san-fact--blank::before { content: "\2014"; color: var(--san-caption); }

/* The charges block with figures instead of inputs */
.san-charges--read td { height: 38px; padding: 0 12px; font-size: 14.5px; }
.san-charges--read th.san-num, .san-charges td.san-num { text-align: right; }

/* A plain ruled table (no DataTables) inside a grid box */
.san-grid--static { overflow-x: auto; box-shadow: none; border-radius: 12px; }
.san-section .san-grid { box-shadow: none; border-radius: 12px; }
.san-table { width: 100%; border-collapse: collapse; }
.san-table thead th {
    height: 36px;
    padding: 0 10px;
    text-align: left;
    vertical-align: middle;
    background: var(--san-tint);
    color: var(--san-caption);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid var(--san-hair);
}
.san-table tbody td, .san-table tfoot td, .san-table tfoot th {
    height: 34px;
    padding: 5px 10px;
    vertical-align: middle;
    border-bottom: 1px solid var(--san-row);
    white-space: nowrap;
    font-size: 13.5px;
    line-height: 1.25;
}
.san-table tbody tr:hover td { background: #F5F8FD; }
.san-table tbody tr:last-child td { border-bottom: 0; }
.san-table tfoot th, .san-table tfoot td { background: var(--san-tint); border-top: 1px solid var(--san-hair); border-bottom: 0; font-weight: 600; text-align: left; }
.san-table .san-num { text-align: right; }
.san-table td.san-key { font-weight: 600; }
.san-table td.san-note { white-space: pre-line; min-width: 220px; font-size: 12.5px; color: var(--san-caption); }

.san-empty { margin: 0; color: var(--san-caption); font-size: 14px; }
.san-notes--flush { margin-top: 0; border-top: 0; }
.san-notes__change b { font-weight: 600; }

/* Attached files: type, then the file as a link */
.san-files { list-style: none; margin: 0; padding: 0; }
.san-files li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--san-row); font-size: 14px; }
.san-files li:last-child { border-bottom: 0; }
.san-files__type { flex: 0 0 90px; color: var(--san-caption); font-size: 12.5px; font-weight: 500; }

/* A charge line ticked for deletion: still editable, visibly on its way out */
.san-line--deleting .san-fields, .san-line--deleting .san-section__title { opacity: .5; }

/* Collapsed extra detail inside a section (e.g. notes on the approval queue) */
.san-details { margin-top: 12px; }
.san-details > summary { cursor: pointer; color: var(--san-blue); font-size: 13.5px; font-weight: 500; }
.san-details[open] > summary { margin-bottom: 8px; }
.san-section__title .san-check { display: inline-flex; min-height: 0; font: inherit; }

/* A ruled table whose cells are inputs (rows added by script) */
.san-table--edit td.san-num input { text-align: right; }
.san-table--edit td { vertical-align: middle; }

/* The one destructive link: red, still a link */
.san-link--danger { color: var(--san-overdue); }
.san-link--danger:hover { color: #A00D25; }

/* ---------- Home ---------- */

/* The hero: the headline and the role's way in on the left, an image on the right (staff: the exceptions board; customers: the receiving dock). Each image is graded
   so its ground is the hero's own (#F6F8FB); its left edge fades into that ground under the copy. */
.san-hero, .san-below, .san-home__note { max-width: 1240px; margin-left: auto; margin-right: auto; }
.san-hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: 520px; margin-top: 4px; overflow: hidden; border: 1px solid var(--san-hair); border-radius: 24px; background: #F6F8FB; box-shadow: var(--san-lift); isolation: isolate; }
.san-hero__copy { position: relative; z-index: 1; align-self: start; padding: 52px 8px 56px 56px; }
.san-hero__title { margin: 0 0 18px; color: var(--san-navy); font-size: 52px; line-height: 1.04; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.san-hero__lede { margin: 0 0 30px; max-width: 34ch; color: var(--san-caption); font-size: 17.5px; line-height: 1.55; text-wrap: pretty; }
.san-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.san-hero__actions .san-btn { height: 44px; padding: 0 22px; font-size: 14.5px; }
.san-hero__art { position: absolute; right: 0; bottom: 0; display: block; width: 64%; z-index: 0; }
.san-hero__art img { display: block; width: 100%; height: auto;
    /* Two masks, intersected: a 1% edge fade and the bottom-left corner, so the dock image's floor settles into the sheet (the board overrides this below) */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1%), radial-gradient(ellipse 16% 34% at 0 100%, transparent 30%, #000 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 1%), radial-gradient(ellipse 16% 34% at 0 100%, transparent 30%, #000 100%);
    mask-composite: intersect; }
@media (prefers-reduced-motion: no-preference) {
    /* The page's one authored moment: the image settles in from slightly right as the page opens */
    .san-hero__art img { animation: san-hero-in 1100ms cubic-bezier(.16, 1, .3, 1) 60ms backwards; }
}
/* The staff home's board image has its leg and truck at the bottom-left, so only the 1% edge fades there;
   its floor band is faded into the ground in the asset itself (left 12%), so no seam shows at the edge */
.san-hero--board .san-hero__art { width: 59%; } /* the board fills its frame edge to edge; keep it clear of the headline */
.san-hero--board .san-hero__art img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1%); mask-image: linear-gradient(to right, transparent 0, #000 1%); }
@keyframes san-hero-in { from { opacity: .35; transform: translateX(18px) scale(1.02); } }

/* Below the hero: the three promises as one ruled strip, the visitor's figures beside it */
.san-below { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: stretch; }
.san-below--figures { grid-template-columns: minmax(0, 1fr) 320px; }
.san-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; margin: 0; padding: 0; border: 1px solid var(--san-hair); border-radius: var(--san-r-sheet); background: #fff; box-shadow: var(--san-lift); }
.san-promises > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 8px; padding: 24px 26px 26px; border-left: 1px solid var(--san-row); }
.san-promises > div:first-child { border-left: 0; }
.san-promises dt { margin: 0; color: var(--san-navy); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.san-promises dd { margin: 0; color: var(--san-caption); font-size: 14px; line-height: 1.55; }
.san-below .san-sticker { align-self: stretch; }
.san-below .san-alert { margin: 0; }
.san-home__note { margin-top: 20px; }

/* The customer claims landing (Views/Home/Customer): the same hero frame, then how a claim works as three numbered steps.
   The numbers carry the order a claim moves in, so they earn their place. */
.san-steps { counter-reset: san-step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; max-width: 1240px; margin: 20px auto 0; padding: 0; list-style: none; border: 1px solid var(--san-hair); border-radius: var(--san-r-sheet); background: #fff; box-shadow: var(--san-lift); }
.san-steps > li { counter-increment: san-step; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; padding: 24px 26px 24px; border-left: 1px solid var(--san-row); }
.san-steps > li:first-child { border-left: 0; }
.san-steps__title { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--san-navy); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.san-steps__title::before { content: counter(san-step); flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--san-navy); border-radius: 999px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.san-steps > li > p { margin: 0; color: var(--san-caption); font-size: 14px; line-height: 1.55; }
.san-steps > li > p.san-steps__links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 6px; font-size: 14px; font-weight: 500; }

/* ---------- Account pages (sign in, passwords, profile): one narrow sheet ---------- */

.san-narrow { width: 100%; max-width: 440px; margin: 32px auto 0; }
.san-narrow .san-fields { grid-template-columns: minmax(0, 1fr); }
.san-narrow .san-form__actions { flex-wrap: wrap; }
.san-narrow p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
/* Profile / Password tabs over the account forms */
.san-subnav { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--san-hair); }
.san-subnav a { padding: 8px 12px; color: var(--san-caption); font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 180ms var(--san-ease), border-color 180ms var(--san-ease); }
.san-subnav a:hover { color: var(--san-ink); }
.san-subnav a[aria-current="page"] { color: var(--san-navy); border-bottom-color: var(--san-navy); font-weight: 600; }

/* An asp-validation-summary with nothing to say renders empty; don't draw an empty alert box */
.san-alert.validation-summary-valid { display: none; }

/* ---------- Narrower screens ---------- */

/* The bar stays one 60px row down to 1025px: the destinations and search tighten instead of wrapping */
@media (max-width: 1520px) {
    .san-bar { padding: 0 16px; gap: 4px; }
    .san-bar__brand { margin-right: 8px; }
    .san-bar__nav a { padding: 7px 8px; font-size: 12.5px; }
    .san-bar__search { gap: 4px; }
    .san-bar__search input { width: 168px; }
    .san-bar__user { margin-left: 8px; padding-left: 10px; gap: 8px; }
    /* The ledger keeps all its columns on the sheet: tighter cells, names allowed to wrap */
    .san-grid table.dataTable tbody td { padding: 5px 7px; font-size: 13px; }
    .san-grid table.dataTable thead th { padding-left: 7px; font-size: 12px; }
    .san-grid td.san-wrap { min-width: 0; }
    .san-grid td.san-wrap .san-cut { max-width: 128px; }
    .san-bar__name { display: none; }
    .san-status { padding: 0 8px; font-size: 12px; gap: 5px; }
}

@media (max-width: 1320px) {
    .san-hero { min-height: 460px; }
    .san-hero__copy { align-self: center; padding: 48px 8px 48px 44px; }
    .san-hero__title { font-size: 44px; }
    .san-hero__art { width: 62%; }
    .san-hero--board .san-hero__art { width: 57%; }
    .san-bar__brand { margin-right: 4px; }
    .san-bar__nav a { padding: 6px 4px; font-size: 12px; }
    .san-bar__search input { width: 140px; padding: 0 10px; font-size: 12px; }
    .san-bar__user { margin-left: 6px; padding-left: 8px; gap: 6px; }
    .san-page { padding: 20px 24px 48px; }
    .san-form__actions--sticky { margin: -20px -24px 0; padding: 12px 24px; }
    .san-filters, .san-fields, .san-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .san-head--form { grid-template-columns: 1fr 280px; }
    .san-grid table.dataTable tbody td { padding: 5px 5px; font-size: 12.5px; }
    .san-grid table.dataTable thead th { padding-left: 5px; }
    .san-grid table.dataTable thead > tr > th.dt-orderable-asc,
    .san-grid table.dataTable thead > tr > th.dt-orderable-desc,
    .san-grid table.dataTable thead > tr > th.dt-ordering-asc,
    .san-grid table.dataTable thead > tr > th.dt-ordering-desc { padding-right: 6px; }
    .san-grid table.dataTable thead > tr > th div.dt-column-header { gap: 4px; }
    /* At this width a name may take two lines, never more */
    .san-grid table.dataTable tbody td.san-wrap { white-space: normal; }
    .san-grid td.san-wrap .san-cut { max-width: 112px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; line-height: 1.3; overflow-wrap: anywhere; }
    .san-grid td.san-act a, .san-grid td.san-act button { margin-right: 8px; }
    .san-status { padding: 0 7px; }
}

@media (max-width: 1024px) {
    .san-bar { position: static; height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 6px 4px; }
    .san-bar__nav { flex-wrap: wrap; flex-shrink: 1; flex-basis: 100%; min-width: 0; order: 3; height: auto; margin: 0 -6px; }
    .san-bar__nav a { padding: 6px 8px; font-size: 13px; }
    .san-bar__search input { width: 170px; }
    .san-bar__search { margin-left: auto; }
    .san-head, .san-head--form { grid-template-columns: 1fr; }
    .san-sheet { grid-template-columns: 1fr; }
    .san-below--figures { grid-template-columns: 1fr; }
    .san-promises { grid-template-columns: 1fr; }
    .san-promises > div { display: block; grid-row: auto; padding: 18px 22px; border-left: 0; border-top: 1px solid var(--san-row); }
    .san-promises dt { margin-bottom: 8px; }
    .san-steps { grid-template-columns: 1fr; grid-template-rows: none; }
    .san-steps > li { display: block; grid-row: auto; padding: 18px 22px; border-left: 0; border-top: 1px solid var(--san-row); }
    .san-steps > li:first-child { border-top: 0; }
    .san-steps > li > p { margin-top: 8px; }
    .san-promises > div:first-child { border-top: 0; }
    .san-form__actions--sticky { position: static; margin: -16px -16px 0; padding: 12px 16px; }
    .san-filters, .san-fields, .san-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .san-page { padding: 16px; }
    .san-hero { display: block; min-height: 0; }
    .san-hero__copy { padding: 40px 40px 8px; }
    .san-hero__title { font-size: 40px; }
    .san-hero__lede { max-width: 56ch; }
    .san-hero__art { position: relative; width: auto; margin-top: -11%; } /* the image's top fifth is empty ground; tuck it under the copy */
    .san-hero--board .san-hero__art { width: auto; margin-top: 12px; } /* full width when stacked; the board starts near its top edge */
    .san-hero__art img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%); }
}

@media (max-width: 600px) {
    /* Phone: brand and user on top, search full width, the destinations as one row that scrolls sideways */
    .san-bar { gap: 8px 4px; }
    .san-bar__user { margin-left: auto; padding-left: 0; border-left: 0; }
    .san-bar__search { order: 2; flex-basis: 100%; }
    .san-bar__search input { flex: 1; width: auto; }
    .san-bar__nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 10px; -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 24px), transparent); }
    .san-bar__nav::-webkit-scrollbar { display: none; }
    .san-filters, .san-fields, .san-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .san-span-3 { grid-column: span 2; }
    .san-charges__wrap { grid-template-columns: 1fr; }
    .san-filters__hint { flex-basis: 100%; margin-left: 0; }
    .san-form__links { margin-left: 0; flex-basis: 100%; }
    .san-notes li { grid-template-columns: 1fr; gap: 3px; }
    .san-charges th[scope="row"] { width: 52px; }
    .san-section { padding: 16px; }
    .san-hero { border-radius: 18px; }
    .san-hero__copy { padding: 28px 20px 4px; }
    .san-hero__title { font-size: 32px; }
    .san-hero__lede { font-size: 16px; margin-bottom: 22px; }
    .san-hero__actions .san-btn { height: 42px; padding: 0 18px; }
    /* The dock image's left quarter is empty ground: let it run off the sheet's left edge so the truck and the ringed carton stay readable */
    .san-hero--claims .san-hero__art { width: 128%; margin-left: -28%; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .san-hero__art img { animation: none; }
}
