/* RTP Auto shop app (Rooftop Power). Tablet landscape first (1024x768); works at 390x844. */
:root {
  /* RTP brand kit (~/rooftop-power/brand/brand-colors.json): deep navy, blues, Action Color lime for CTAs. */
  --navy: #073755;
  --navy-2: #005893;
  --blue: #4995d1;
  --blue-light: #d2e4f2;
  --accent: #bbd531;
  --accent-dark: #9fb726;
  --font-display: "Jost", "Futura PT", Futura, "Avenir Next", Avenir, "Century Gothic", sans-serif;
  --font-body: Helvetica, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bg: #F2F4F7;
  --card: #ffffff;
  --text: #1b252f;
  --muted: #566274;
  --line: #d3d9e2;
  --green: #1b7f4b;
  --green-bg: #e3f3ea;
  --amber: #d99a00;
  --amber-bg: #fdf1d3;
  --red: #c0392b;
  --red-bg: #fbe5e2;
  --ph: #fff176;
  --radius: 10px;
  --tap: 46px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 var(--font-body);
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; color: var(--navy); font-family: var(--font-display); font-weight: 700; }
h2 { font-weight: 500; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .6rem; }
a { color: var(--navy-2); }
ul, ol { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
ul.plain { list-style: none; padding: 0; }
img { max-width: 100%; }
dl { margin: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.over { color: var(--red); font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 1rem; padding: 0 16px; min-height: 56px; }
.brand { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: .01em; padding: 8px 0; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--blue-light); text-decoration: none; padding: 0 14px; min-height: var(--tap); display: inline-flex; align-items: center; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--navy-2); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--navy); font-weight: 700; }
.menu-btn { display: none; margin-left: auto; min-height: var(--tap); padding: 0 16px; border-radius: 8px; border: 1px solid var(--blue); background: transparent; color: #fff; font: inherit; font-weight: 600; }
.proto-banner { background: var(--blue-light); color: var(--navy); text-align: center; font-size: .8125rem; padding: 4px 16px; border-bottom: 1px solid var(--line); }

.app { max-width: 1180px; margin: 0 auto; padding: 16px; outline: none; }

/* ---------- generic building blocks ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.crumb { margin: 0 0 4px; font-size: .875rem; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; min-width: 0; }
.card > summary { cursor: pointer; list-style: none; min-height: 34px; }
.card > summary h2 { display: inline; }
.card > summary::-webkit-details-marker { display: none; }
.card > summary::after { content: "  (show / hide)"; color: var(--muted); font-size: .8125rem; }
.card-inner { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fafbfc; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; align-items: flex-start; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 10px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 16px; border-radius: 8px; border: 1px solid #aeb8c7; background: #fff;
  color: var(--navy); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover:not(:disabled) { background: #eef2f8; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent-dark); color: var(--navy); }
.btn-primary:hover:not(:disabled) { background: #cde35f; }
.btn-small { min-height: 44px; padding: 0 12px; font-size: .9rem; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; text-decoration: underline; }
:focus-visible { outline: 3px solid #2b6cb0; outline-offset: 2px; }

.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
.chip-fleet { background: var(--navy); color: #fff; }
.chip-employee { background: #fff; color: var(--navy); border-color: var(--navy); }
.chip-retail { background: #dfe5ee; color: var(--navy); }
.chip-internal { background: #fff; color: var(--muted); border: 1px dashed var(--muted); }
.chip.kind { background: #edf0f5; color: var(--navy); border-color: var(--line); }
.chip.flag { background: var(--amber-bg); color: #6b4a00; border-color: var(--amber); }
.flag-text { color: #8a5a00; }
.status { background: #e9edf3; color: #3d4a5e; }
.status-draft { background: #e9edf3; color: #3d4a5e; }
.status-estimated { background: #e1e9f6; color: #254a80; }
.status-authorized { background: #d5e0f2; color: var(--navy); }
.status-in_progress { background: var(--amber-bg); color: #7a5300; }
.status-ready { background: var(--green-bg); color: var(--green); }
.status-invoiced { background: #d9ecf7; color: #17557d; }
.status-closed { background: #e9edf3; color: #566274; }
.status-declined, .status-void { background: var(--red-bg); color: var(--red); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: #8a95a6; }
.status-dot.status-in_progress { background: var(--amber); }
.status-dot.status-ready { background: var(--green); }
.status-dot.status-declined { background: var(--red); }
.count { display: inline-block; min-width: 22px; text-align: center; background: #e9edf3; border-radius: 999px; font-size: .75rem; padding: 1px 7px; color: var(--navy); }

mark.ph { background: var(--ph); color: #3b3200; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-bottom: 8px; }
.field > span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.field.inline { margin: 0; flex-direction: row; align-items: center; gap: 8px; }
.field.inline > span { white-space: nowrap; }
.req { color: var(--red); font-weight: 600; font-size: .75rem; margin-left: 4px; }
input:not([type="checkbox"]):not([type="file"]), select, textarea {
  font: inherit; color: var(--text); background: #fff; border: 1px solid #9aa6b8; border-radius: 8px;
  min-height: var(--tap); padding: 8px 10px; width: 100%; min-width: 0;
}
textarea { min-height: 80px; resize: vertical; }
input[type="checkbox"] { width: 24px; height: 24px; flex: none; accent-color: var(--navy); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.check.small { min-height: 36px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; padding: 10px 12px; min-width: 0; }
legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; align-items: end; }
.grid-fields .wide { grid-column: 1 / -1; }
.is-ph input { border-color: #d4b800; background: #fffbd0; }
[aria-invalid="true"] { border-color: var(--red); }
.field-error { display: block; font-size: .8125rem; margin-top: 2px; }
/* Locked (invoiced) RO: the editable sections sit in a disabled fieldset with no frame. */
fieldset.locked-fields { border: 0; margin: 0; padding: 0; }
fieldset.locked-fields input:disabled, fieldset.locked-fields select:disabled, fieldset.locked-fields textarea:disabled { background: #f3f4f6; color: var(--text); }
.locked-note { background: #eef2f7; border-left: 4px solid var(--navy); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-weight: 600; }
select.mini { min-height: 44px; width: auto; max-width: 100%; }
.money-in { max-width: 130px; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; margin-bottom: 14px; }
.col { background: #e8ecf2; border-radius: var(--radius); padding: 8px; min-width: 0; }
.col-h { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; margin: 2px 2px 8px; display: flex; align-items: center; }
.col-h .count { margin-left: auto; }
.empty { text-align: center; padding: 10px 0; }
.ro-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; text-decoration: none; color: var(--text); min-height: 44px; }
.ro-card:hover { border-color: var(--navy-2); box-shadow: 0 1px 4px rgba(7, 55, 85, .15); }
.ro-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.ro-card-name { font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.ro-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ro-card-foot .num { font-weight: 700; color: var(--navy); }
.strip h2 { margin-bottom: 4px; }
.strip ul { margin: 6px 0; }
.strip li { margin-bottom: 4px; }
.collapsed-group > summary h2 { font-size: 1rem; }
.closed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.closed-grid .ro-card { margin: 0; }

/* ---------- new RO ---------- */
.type-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.type-btn { min-height: 92px; padding: 12px; border-radius: var(--radius); border: 2px solid #aeb8c7; background: #fff; color: var(--navy); font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.type-btn strong { font-size: 1.2rem; }
.type-btn span { font-size: .8125rem; color: var(--muted); }
.type-btn[aria-pressed="true"] { border-color: var(--navy); background: var(--blue-light); box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- RO detail ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.main-col, .side-col { min-width: 0; }
.sticky { position: sticky; top: 72px; }
.header-card h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.lead { font-size: 1.1rem; font-weight: 600; margin: 0; }
.vehicle { margin-top: 6px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e3e8ef; vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
th.num { text-align: right; }
.group-row th { background: #eef1f6; color: var(--navy); font-size: .8125rem; }
.line-declined td { opacity: .55; }
.line-declined td:last-child { opacity: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
td.actions { display: table-cell; }
td.actions .chip { margin-right: 6px; }
td.actions .btn { margin: 4px 4px 0 0; }
.line-form { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.totals th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); font-weight: 500; }
.totals td { font-variant-numeric: tabular-nums; }
.totals .grand th, .totals .grand td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--navy); color: var(--navy); }
.checklist { background: var(--amber-bg); border: 1px solid var(--amber); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.checklist ul { margin-bottom: 0; }
.ok-note { background: var(--green-bg); color: var(--green); border-radius: 8px; padding: 8px 12px; margin-top: 10px; font-weight: 600; }
.teardown-note { background: #f4f7fb; border-left: 4px solid var(--navy); padding: 8px 12px; margin-top: 8px; border-radius: 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.kv dt { color: var(--muted); font-size: .875rem; }
.kv dd { margin: 0; }
.sig-canvas { width: 100%; height: 160px; border: 2px dashed #7d8aa0; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.sig-img { max-width: 100%; height: 90px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* ---------- modal and toast ---------- */
#modal-root { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(11, 37, 69, .55); }
.modal { position: relative; background: #fff; border-radius: 12px; padding: 20px; max-width: 640px; width: 100%; margin-top: 4vh; border-top: 6px solid var(--red); outline: none; }
.blocked-note { background: var(--red-bg); border-radius: 8px; padding: 8px 12px; }
.facts { background: #f4f7fb; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.facts dd { text-align: right; font-variant-numeric: tabular-nums; }
.error { color: var(--red); font-weight: 600; }
.blocked { background: var(--red-bg); border: 1px solid var(--red); border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 80; max-width: min(92vw, 560px); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.toast[data-kind="error"] { background: var(--red); }

/* ---------- inspection ---------- */
.summary-bar { display: flex; gap: 18px; flex-wrap: wrap; position: sticky; top: 56px; z-index: 10; padding: 10px 16px; }
.sum strong { font-size: 1.2rem; }
.sum-G strong { color: var(--green); }
.sum-Y strong { color: #9a6c00; }
.sum-R strong { color: var(--red); }
.insp-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) auto minmax(110px, 1fr) auto; gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e8ecf2; }
.insp-label { font-weight: 600; }
.gyr-group { display: flex; gap: 8px; }
.gyr { width: 56px; height: 52px; border-radius: 10px; font: inherit; font-size: 1.25rem; font-weight: 800; border: 3px solid; background: #fff; cursor: pointer; }
.gyr-G { border-color: var(--green); color: var(--green); }
.gyr-Y { border-color: var(--amber); color: #8a5f00; }
.gyr-R { border-color: var(--red); color: var(--red); }
.gyr-G[aria-pressed="true"] { background: var(--green); color: #fff; }
.gyr-Y[aria-pressed="true"] { background: var(--amber); color: #2b1d00; }
.gyr-R[aria-pressed="true"] { background: var(--red); color: #fff; }
.insp-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.thumbs { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { margin: 0; width: 170px; }
.thumb img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumb figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.camera { position: relative; }
.camera input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.camera:focus-within { outline: 3px solid #2b6cb0; outline-offset: 2px; }
.footnote { text-align: center; color: var(--muted); font-style: italic; margin: 18px 0 30px; }

/* ---------- reports ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fafbfc; }
.tile-value { font-size: 1.6rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.tile-label { font-weight: 600; }
.tile-note { font-size: .75rem; color: var(--muted); }

/* ---------- leads ---------- */
.leads-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.tone-overdue { border-left: 5px solid var(--red); }
.tone-today { border-left: 5px solid var(--amber); }
.tone-upcoming { border-left: 5px solid var(--navy); }
.stage-row { margin-top: 6px; }

/* ---------- invoice / statement sheet ---------- */
.invoice-sheet { padding: 22px; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--navy); padding-bottom: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.inv-shop { font-size: 1.5rem; margin: 0; }
.inv-contact div { margin-bottom: 2px; }
.inv-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.lbl { display: block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.inv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.sect { margin-top: 16px; border-bottom: 1px solid var(--navy); padding-bottom: 3px; }
.inv-table td, .inv-table th { padding: 6px 6px; }
.inv-pay-totals { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 16px; margin-top: 14px; align-items: start; }
.inv-totals { border: 1px solid var(--line); }
.sign-lines { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 16px; margin: 26px 0 10px; }
.sign-lines div { border-top: 1px solid #000; padding-top: 3px; font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.terms { font-size: .8125rem; columns: 2; column-gap: 24px; }
.terms li { break-inside: avoid; margin-bottom: 6px; }
.tick { margin-right: 12px; white-space: nowrap; }
.tickbox { display: inline-block; width: 16px; height: 16px; border: 1px solid #000; text-align: center; line-height: 14px; font-size: .75rem; font-weight: 700; vertical-align: middle; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--navy); padding: 8px 12px 12px; border-top: 1px solid var(--navy-2); box-shadow: 0 6px 12px rgba(0, 0, 0, .25); margin: 0; }
  .nav.open { display: flex; }
  .nav a { min-height: 50px; }
  .topbar { position: sticky; }
  .two-col, .leads-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .side-col { order: -1; }
  .type-picker { grid-template-columns: repeat(2, 1fr); }
  .inv-two, .inv-pay-totals { grid-template-columns: 1fr; }
  .terms { columns: 1; }
  .insp-row { grid-template-columns: 1fr auto; }
  .insp-note { grid-column: 1 / -1; grid-row: 3; }
  .insp-tools { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .app { padding: 12px 16px; }
  .board { grid-template-columns: 1fr; }
  .sign-lines { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .btn-stack { justify-content: flex-start; width: 100%; }
  .btn-stack .btn { flex: 1 1 auto; }
  .row.between { flex-direction: column; align-items: stretch; }
  .row.between > .row { flex-wrap: wrap; }
  .invoice-sheet { padding: 14px; }
  .modal { padding: 14px; }

  /* tables become stacked cards */
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; padding: 4px 8px; background: #fff; }
  table.stack tr.group-row { border: 0; padding: 0; background: transparent; }
  table.stack td, table.stack th[scope="row"] { border: 0; display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; text-align: right; }
  /* a cell can hold several controls (description, condition, PM / core toggles): let them wrap */
  table.stack td { flex-wrap: wrap; }
  table.stack td > * { min-width: 0; }
  table.stack td::before, table.stack th[scope="row"]::before { content: attr(data-label); font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; text-align: left; flex: none; max-width: 45%; }
  table.stack td:empty { display: none; }
  table.stack td.actions { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  table.stack td.actions::before { content: none; }
  table.stack td input, table.stack td select { max-width: 60%; }
  table.stack .money-in { max-width: 120px; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .topbar, .proto-banner, .net-banner, .no-print, .toast, #modal-root, .skip { display: none !important; }
  .app { max-width: none; padding: 0; }
  .card { border: 0; padding: 0; margin: 0; }
  .invoice-sheet { padding: 0; }
  mark.ph { background: var(--ph) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-table tr, .terms li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Totals sit in a 340px side column: let the column headers wrap and tighten padding so the
   three money columns fit without pushing the page sideways. */
.totals th.num { white-space: normal; }
.totals th, .totals td { padding: 6px 4px; }
.totals td.num { font-size: .95rem; }

/* sign-in gate, retry banner, loading, payment form */
.gate { max-width: 520px; margin: 40px auto; }
.net-banner { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 90; background: #fff7e0; color: var(--ink, #1a2433); border: 1px solid var(--amber); border-radius: 10px; padding: 10px 14px; max-width: min(94vw, 640px); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.net-banner[hidden] { display: none; }
.pay-form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.insp-fields { display: flex; gap: 6px; }
.insp-fields input { min-width: 0; flex: 1; }
.insp-fields input[data-measure] { flex: 0 0 38%; }
.sig-wrap { margin-top: 10px; }
