/* SBD client portal. One brand blue, one accent, red only for money owed and alerts. */
:root {
  --primary: #0036EB; --primary-hover: #002bc0; --primary-tint: #eef2fe; --primary-ring: rgba(0, 54, 235, .22);
  --accent: #00A8F1; --accent-strong: #0089c7; --accent-tint: #e5f6fe; --accent-ink: #005f8a;
  --owed: #E40E24; --owed-tint: #fdeced; --owed-ink: #b30a1c;
  --ok-tint: #e7f5ec; --ok-ink: #0b6b3a; --ok-strong: #12924f;
  --amber-tint: #fef3e0; --amber-ink: #874600; --amber-dot: #e08a00;
  --blue-tint: #e3e9fd; --blue-ink: #0030d1;
  --gray-tint: #f0f2f5; --gray-ink: #475467;

  --ink: #101828; --ink-2: #475467; --ink-3: #667085;
  --page: #f6f7f9; --card: #ffffff; --inset: #f9fafb; --line: #e4e7ec; --line-soft: #eef0f3;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-title: 26px; --fs-section: 17px; --fs-body: 14.5px; --fs-small: 13px; --fs-label: 12px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --radius: 10px; --radius-sm: 6px;
  --hair: 0 1px 0 rgba(16, 24, 40, .03);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 400 var(--fs-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); border-radius: var(--radius-sm); }
svg { flex: none; }
h1, h2 { margin: 0; }
.hidden { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s5); }
.num { font-variant-numeric: tabular-nums; }
.r { text-align: right; }
.owed { color: var(--owed); font-weight: 650; }
.zero { color: var(--ink-3); }
.muted-s { color: var(--ink-3); font-size: var(--fs-small); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--gray-tint); color: var(--ink-2); font-size: var(--fs-label); font-weight: 600; margin-left: var(--s2); font-variant-numeric: tabular-nums; }

.sample-banner { background: #1d2939; color: #fff; text-align: center; font-size: var(--fs-label); padding: 5px 8px; letter-spacing: .02em; }

/* header */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.who { display: flex; align-items: center; gap: var(--s4); font-size: var(--fs-small); }
.who-co { color: var(--ink); font-weight: 600; }
.link-quiet { color: var(--ink-3); }
.link-quiet:hover { color: var(--ink); }
.tabs-inner { display: flex; gap: var(--s5); overflow-x: auto; scrollbar-width: none; }
.tabs-inner::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 0 11px; color: var(--ink-2); font-weight: 500; font-size: var(--fs-body); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* page */
main.wrap { padding-top: var(--s6); padding-bottom: var(--s7); }
.page-title { font-size: var(--fs-title); font-weight: 650; letter-spacing: -.015em; margin: 0 0 var(--s5); line-height: 1.2; }
.page-sub { color: var(--ink-3); margin: calc(-1 * var(--s4)) 0 var(--s4); }
.section-title { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-section); font-weight: 650; margin: var(--s6) 0 var(--s3); }
.section-title .count { margin-left: 0; }
.foot { border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-label); padding: var(--s4) 0 var(--s5); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--hair); }
.pad { padding: var(--s5); }
section.card, .od-head + section.card { margin-top: var(--s4); }
.empty { padding: var(--s5); color: var(--ink-3); text-align: center; font-size: var(--fs-small); }
.list { display: grid; gap: var(--s3); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); font: 600 var(--fs-body)/1 var(--font); padding: 11px 16px; border-radius: 8px; border: 0; cursor: pointer; background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: var(--fs-small); }
.link .i-chev { width: 14px; height: 14px; }
.doclink { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.i-doc { width: 15px; height: 15px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: var(--s4); font-weight: 600; font-size: var(--fs-small); }
.i-back { width: 15px; height: 15px; }

/* chips: one color per meaning */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; font-size: var(--fs-label); font-weight: 600; line-height: 1.25; padding: 3px 9px; border-radius: 12px; white-space: normal; overflow-wrap: anywhere; background: var(--gray-tint); color: var(--gray-ink); }
/* a long status wraps inside its own column; no grid or table cell ever lets it run into the next (Logan 11/17/26) */
.ohead > *, .orow > summary > *, .xl > *, .tbl td { min-width: 0; }
.c-gray { background: var(--gray-tint); color: var(--gray-ink); }
.c-sky { background: var(--accent-tint); color: var(--accent-ink); }
.c-blue { background: var(--blue-tint); color: var(--blue-ink); }
.c-green { background: var(--ok-tint); color: var(--ok-ink); }
.c-red { background: var(--owed-tint); color: var(--owed-ink); }
.c-amber { background: var(--amber-tint); color: var(--amber-ink); }
.flag { margin-top: 4px; font-size: var(--fs-label); font-weight: 600; color: var(--amber-ink); }

/* attention */
.attention { border-left: 3px solid var(--owed); margin-bottom: var(--s5); padding: var(--s1) 0; }
.att-title { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: var(--s3) var(--s5) var(--s1); }
.att-item { display: grid; grid-template-columns: 8px 1fr auto; gap: var(--s3); align-items: center; padding: 10px var(--s5); color: var(--ink); border-top: 1px solid var(--line-soft); }
.att-item:first-of-type { border-top: 0; }
.att-item:hover { background: var(--inset); text-decoration: none; }
.att-dot { width: 8px; height: 8px; border-radius: 50%; }
.red-bg { background: var(--owed); } .amber-bg { background: var(--amber-dot); }
.att-go { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 600; font-size: var(--fs-small); }
.att-go .i-chev { width: 14px; height: 14px; }

/* summary tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-bottom: var(--s6); }
.stat { padding: var(--s4) var(--s5); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s2); min-height: 92px; }
.stat-l { color: var(--ink-2); font-size: var(--fs-small); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.stat-n { font-size: 26px; font-weight: 650; letter-spacing: -.015em; line-height: 1.1; color: var(--ink); }
.stat-link { color: var(--ink); }
.stat-n.owed { color: var(--owed); }
.stat-link:hover { text-decoration: none; border-color: #c9d3f7; }
.stat-go { display: inline-flex; align-items: center; color: var(--primary); font-weight: 600; font-size: var(--fs-label); }
.stat-go .i-chev { width: 13px; height: 13px; }

/* groups on My Orders */
.group + .group { margin-top: var(--s6); }
.group > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; padding: 0 0 var(--s3); }
.group > summary::-webkit-details-marker { display: none; }
.g-chev { display: inline-flex; color: var(--ink-3); margin-right: 6px; transition: transform .15s; }
.g-chev .i-chev { width: 16px; height: 16px; }
.group[open] .g-chev { transform: rotate(90deg); }
.g-title { font-size: var(--fs-section); font-weight: 650; }
.g-sub { flex-basis: 100%; color: var(--ink-3); font-size: var(--fs-small); padding-left: 22px; margin-top: 2px; }

/* order table */
.otable { overflow: hidden; }
.ohead, .orow > summary { display: grid; grid-template-columns: minmax(170px, 1.5fr) minmax(150px, 1.45fr) minmax(150px, 1.45fr) 80px 120px 120px 20px; gap: var(--s4); align-items: center; padding: 0 var(--s5); }
.ohead { height: 40px; background: var(--inset); border-bottom: 1px solid var(--line); font-size: var(--fs-label); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.orow + .orow { border-top: 1px solid var(--line-soft); }
.orow > summary { list-style: none; cursor: pointer; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.orow > summary::-webkit-details-marker { display: none; }
.orow > summary:hover { background: #fafbfc; }
.oc-po { font-weight: 600; }
.oc-meta { color: var(--ink-3); font-size: var(--fs-small); }
.oc-units, .oc-total, .oc-bal { text-align: right; }
.oc-total { font-weight: 600; }
.oc-chev { color: var(--ink-3); display: inline-flex; transition: transform .15s; justify-self: end; }
.oc-chev .i-chev { width: 16px; height: 16px; }
.orow[open] .oc-chev { transform: rotate(90deg); color: var(--ink); }
.orow[open] > summary { background: #fafbfc; }

.inset { background: var(--inset); border-top: 1px solid var(--line); padding: var(--s4) var(--s5) var(--s5); }
.inset-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.docs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-small); }
.docs-l { color: var(--ink-3); }
.doc-pair { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-right: var(--s3); }
.oc-break { display: none; }
.partial { display: inline-block; margin-top: var(--s3); font-size: var(--fs-label); font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.xg { margin-top: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.xg-title { display: flex; align-items: center; font-size: var(--fs-small); font-weight: 650; padding: 10px var(--s4) 6px; }
.xl-head, .xl { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.6fr) 80px 120px; gap: var(--s4); padding: 0 var(--s4); }
.xl-head { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.xl { padding-top: 10px; padding-bottom: 10px; align-items: start; font-size: var(--fs-small); }
.xl + .xl { border-top: 1px solid var(--line-soft); }
.xl-title { font-weight: 600; color: var(--ink); font-size: var(--fs-body); }
.xl-sku { color: var(--ink-3); margin-left: 6px; font-size: var(--fs-label); }
.xl-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.xl-where { color: var(--ink-2); font-size: var(--fs-label); }
.xl-inv { flex-basis: 100%; }
.xl-qty, .xl-amt { text-align: right; font-weight: 600; font-size: var(--fs-body); }
.xl-amt small { display: block; color: var(--ink-3); font-size: var(--fs-label); font-weight: 400; }
.m-unit { display: none; }

/* tables */
.filters { display: flex; gap: var(--s2); margin: 0 0 var(--s4); flex-wrap: wrap; }
.fchip { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: var(--fs-small); }
.fchip:hover { text-decoration: none; border-color: #cdd2da; color: var(--ink); }
.fchip.on { background: var(--primary-tint); border-color: #c9d3f7; color: var(--primary); font-weight: 600; }
.table-card { overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.tbl th { text-align: left; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 11px var(--s5); border-bottom: 1px solid var(--line); background: var(--inset); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 13px var(--s5); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr.static { cursor: default; }
.tbl tbody tr:not(.static):hover { background: #fafbfc; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.empty { text-align: center; cursor: default; }

/* order detail */
.od-top { display: flex; justify-content: space-between; gap: var(--s4); align-items: flex-start; margin-bottom: var(--s4); }
.od-po { font-size: 24px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.od-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; color: var(--ink-2); font-size: var(--fs-small); }
.od-total { text-align: right; }
.od-total > .num:first-child { font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
.od-total small { color: var(--ink-3); font-size: var(--fs-small); }
.od-due { margin-top: 4px; font-size: var(--fs-body); }
.card-head { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.card-title { font-size: var(--fs-section); font-weight: 650; }

/* horizontal stepper */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.stepper li::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper li.done::before { background: var(--accent); }
.st-dot { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink-3); font-size: var(--fs-label); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.st-dot svg { width: 15px; height: 15px; }
.stepper li.done .st-dot { background: var(--accent-strong); color: #fff; box-shadow: none; }
.stepper li.cur .st-dot { box-shadow: 0 0 0 4px var(--accent-tint); }
.st-text { display: flex; flex-direction: column; margin-top: var(--s2); }
.st-label { font-size: var(--fs-small); font-weight: 500; color: var(--ink-3); line-height: 1.3; }
.stepper li.done .st-label { color: var(--ink); }
.stepper li.cur .st-label { font-weight: 650; }
.st-date { font-size: var(--fs-label); color: var(--ink-3); min-height: 18px; font-variant-numeric: tabular-nums; }
.stepper.pay li.done::before { background: var(--ok-strong); }
.stepper.pay li.done .st-dot { background: var(--ok-strong); }
.stepper.pay li.cur .st-dot { box-shadow: 0 0 0 4px var(--ok-tint); }
.stepper + .muted-s { margin: var(--s4) 0 0; }

.inv { border: 1px solid var(--line); border-radius: 8px; padding: var(--s4); margin-top: var(--s4); background: var(--inset); }
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s3) var(--s4); margin: var(--s3) 0 0; }
.inv-grid dt { color: var(--ink-3); font-size: var(--fs-label); }
.inv-grid dd { margin: 2px 0 0; font-weight: 500; }
.inv-grid small { color: var(--ink-3); }
.inv-lines { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: var(--s3); color: var(--ink-2); font-size: var(--fs-label); font-variant-numeric: tabular-nums; }
.credit { margin-top: var(--s2); font-size: var(--fs-small); color: var(--ok-ink); font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.line { padding: var(--s4) var(--s5); }
.line.cancelled { background: var(--inset); }
.line-head { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.line-name { font-weight: 600; font-size: 15px; }
.line-ids { color: var(--ink-3); font-size: var(--fs-label); margin-top: 2px; word-break: break-word; }
.line-money { text-align: right; font-weight: 600; white-space: nowrap; }
.line-money small { display: block; font-weight: 400; font-size: var(--fs-label); color: var(--ink-3); }
.strike { text-decoration: line-through; color: var(--ink-3); }
.line-note { margin-top: var(--s2); font-size: var(--fs-small); color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3) var(--s4); margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line-soft); }
.facts dt { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.exception { font-weight: 600; font-size: var(--fs-small); color: var(--ink-2); }
.line-steps { margin-top: var(--s3); }
.line-steps summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; font-size: var(--fs-small); }
.line-steps summary::-webkit-details-marker { display: none; }
.line-steps summary .i-chev { width: 14px; height: 14px; transition: transform .15s; }
.line-steps[open] summary .i-chev { transform: rotate(90deg); }
.steps { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; }
.steps li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: var(--fs-small); color: var(--ink-3); }
.steps .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); justify-self: center; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--accent-strong); }
.steps li.cur .dot { box-shadow: 0 0 0 3px var(--accent-tint); }
.steps li.cur .sn { font-weight: 650; }
.steps li.skip { font-style: italic; }
.steps .sd { color: var(--ink-3); font-size: var(--fs-label); text-align: right; font-variant-numeric: tabular-nums; }

/* account */
.kv { display: grid; grid-template-columns: 200px 1fr; gap: var(--s4); margin: 0 0 var(--s4); }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }

/* sign in */
.signin { min-height: calc(100vh - 26px); display: grid; place-items: center; padding: var(--s5) var(--s4); background: var(--page); }
.signin-card { width: 100%; max-width: 400px; padding: var(--s6) 28px; text-align: center; }
.signin-logo { height: 40px; width: auto; display: block; margin: 0 auto var(--s5); }
.signin h1 { font-size: 20px; font-weight: 650; margin: 0 0 6px; }
.lead { color: var(--ink-2); margin: 0 0 var(--s5); font-size: var(--fs-small); }
.signin form { text-align: left; display: grid; gap: var(--s2); }
.signin label { font-weight: 500; font-size: var(--fs-small); color: var(--ink-2); }
.signin input { font: inherit; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; outline: none; color: var(--ink); }
.signin input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.signin .btn { margin-top: var(--s2); width: 100%; }
.sent { display: grid; gap: var(--s3); justify-items: center; }
.sent-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--ok-tint); color: var(--ok-ink); display: grid; place-items: center; }
.sent-icon svg { width: 20px; height: 20px; }
.sent p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.fine { color: var(--ink-3); font-size: var(--fs-label); margin: var(--s5) 0 0; }

/* documents: originals only */
.docnum { font-weight: 600; color: var(--ink); white-space: nowrap; }
.orig { display: flex; align-items: center; gap: var(--s5); }
.orig-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.orig-icon .i-doc { width: 24px; height: 24px; }
.orig-body { flex: 1; }
.orig-file { font-size: var(--fs-small); color: var(--ink-2); font-weight: 500; margin-top: var(--s2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.orig + .muted-s { margin-top: var(--s3); }

/* contact your rep */
.rep-card { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.rep-label { color: var(--ink-3); font-size: var(--fs-small); }
.rep-name { font-size: var(--fs-section); font-weight: 650; margin: 2px 0 4px; }
.rep-card .muted-s { margin: 0; }
.rep-card .btn { flex: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font: 600 var(--fs-small)/1.2 var(--font); color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 2px; }
.i-mail { width: 16px; height: 16px; }
.od-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.modal-back { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: grid; place-items: center; padding: var(--s4); z-index: 20; }
.modal { width: 100%; max-width: 480px; padding: var(--s5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); }
.modal-x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 2px 6px; }
.modal-x:hover { color: var(--ink); }
.modal form { display: grid; gap: var(--s2); }
.modal label { font-weight: 500; font-size: var(--fs-small); color: var(--ink-2); margin-top: var(--s1); }
.modal select, .modal textarea { font: inherit; padding: 9px 12px; border: 1px solid #d0d5dd; border-radius: 8px; color: var(--ink); background: var(--card); width: 100%; }
.modal textarea { resize: vertical; min-height: 110px; }
.modal select:focus, .modal textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.modal .muted-s { margin: var(--s1) 0 0; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--s4); margin-top: var(--s3); }
.modal-sent { display: grid; gap: var(--s3); justify-items: center; text-align: center; padding: var(--s3) 0; }
.modal-sent p { margin: 0; color: var(--ink-2); }

/* tablet: an 8 column table must fit its card, so the Status column is never cut off (Logan 11/17/26) */
@media (min-width: 761px) and (max-width: 1100px) {
  .tbl th, .tbl td { padding-left: 10px; padding-right: 10px; }
  .tbl th { white-space: normal; }
  .tbl td { font-size: var(--fs-small); }
}

/* phone */
@media (max-width: 760px) {
  .wrap { padding: 0 var(--s4); }
  main.wrap { padding-top: var(--s5); padding-bottom: var(--s6); }
  :root { --fs-title: 22px; }
  .topbar-inner { height: 56px; }
  .brand-logo { height: 24px; }
  .who-co { display: none; }
  .tabs-inner { gap: var(--s4); }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s3); margin-bottom: var(--s5); }
  .stats .stat:last-child { grid-column: span 2; }
  .stat { min-height: 0; padding: var(--s3) var(--s4); }
  .stat-n { font-size: 22px; }
  .group + .group { margin-top: var(--s5); }

  /* order rows become stacked cards */
  .otable { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .ohead { display: none; }
  .orow { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .orow + .orow { border-top: 1px solid var(--line); margin-top: var(--s3); }
  .orow > summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s4); }
  .oc-order { flex: 1 1 calc(100% - 40px); order: 1; }
  .oc-chev { order: 2; }
  .oc-status { order: 3; } .oc-pay { order: 4; }
  .oc-break { display: block; order: 5; flex-basis: 100%; height: 0; }
  .oc-units, .oc-total, .oc-bal { order: 6; flex: 1 1 28%; text-align: left; display: flex; flex-direction: column; margin-top: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line-soft); }
  .oc-bal { text-align: right; align-items: flex-end; } .oc-total { align-items: center; }
  .oc-units::before, .oc-total::before, .oc-bal::before { content: attr(data-l); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
  .inset { padding: var(--s3) var(--s4) var(--s4); }
  .xl-head { display: none; }
  .xl { grid-template-columns: 1fr auto; grid-template-areas: "name amt" "stat qty"; gap: 6px var(--s3); padding: var(--s3); }
  .xl-name { grid-area: name; } .xl-amt { grid-area: amt; } .xl-stat { grid-area: stat; } .xl-qty { grid-area: qty; align-self: end; font-size: var(--fs-small); }
  .m-unit { display: inline; font-weight: 400; color: var(--ink-3); }
  .xg-title { padding: 10px var(--s3) 4px; }

  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line-soft); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 3px 0; border: 0; text-align: right; }
  .tbl td::before { content: attr(data-l); color: var(--ink-3); font-size: var(--fs-label); text-align: left; }
  .tbl td.empty::before { content: none; }
  .tbl td.empty { justify-content: center; text-align: center; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: var(--s3); }
  .pad { padding: var(--s4); }
  .od-top { flex-direction: column; gap: var(--s2); }
  .od-total { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; }
  .line { padding: var(--s4); }

  /* stepper goes vertical */
  .stepper { grid-auto-flow: row; grid-auto-columns: auto; }
  .stepper li { flex-direction: row; align-items: flex-start; text-align: left; gap: var(--s3); padding: 0 0 var(--s4); }
  .stepper li:last-child { padding-bottom: 0; }
  .stepper li::before { top: -16px; left: 13px; right: auto; width: 2px; height: 16px; }
  .st-text { margin-top: 4px; flex-direction: row; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
  .st-date { min-height: 0; }
  .rep-card, .orig { flex-direction: column; align-items: flex-start; gap: var(--s4); }
  .rep-card .btn, .orig .btn { width: 100%; }
}
@media print {
  .sample-banner, .topbar, .foot { display: none !important; }
  body { background: #fff; }
}

/* ---- real pages (web/), added 11/16/26 ---- */
.review-banner { background: #1d2939; color: #fff; font-size: var(--fs-label); padding: 6px 0; }
.review-inner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.review-ctl { display: inline-flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.review-ctl select { font: inherit; padding: 3px 6px; border-radius: 6px; border: 0; max-width: 100%; }
.review-tog { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.docwrap { display: inline-flex; flex-direction: column; gap: 1px; vertical-align: top; margin-right: 10px; }
.line-sum { margin: var(--s3) 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.pay-list { display: flex; flex-wrap: wrap; gap: 4px var(--s4); margin-top: var(--s3); font-size: var(--fs-small); color: var(--ink-2); }
.copy-note { font-size: 11.5px; color: var(--ink-3); font-weight: 400; white-space: normal; max-width: 240px; line-height: 1.3; }
.copy-note.changed { color: var(--amber, #9a6700); }
.copy-top { font-size: 13px; color: var(--ink-3); margin: 0 0 10px; }
.money-sum { margin: 10px 0 4px; }
@media print { .review-banner { display: none !important; } }
