/* ConformTest Field Manager – mobile-first. Tested from 360px wide upwards. */
:root {
  --red: #cc1022; --red-d: #a40b1b; --navy: #002866; --ink: #1d2733; --muted: #66727d; --line: #e1e6eb; --bg: #f5f6f8; --card: #fff;
  --good: #1f6b4f; --good-bg: #e7f4ed; --warn: #8a5a0b; --warn-bg: #fff6e3; --bad: #b1203a; --bad-bg: #fdecef;
  --r: 12px; --nav-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --focus: 0 0 0 3px #447ecc;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0 0 .5em; overflow-wrap: anywhere; }
h1 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
h2 { font-size: 1.1rem; }
h3 { font-size: .95rem; margin-top: 1.2em; }
a { color: var(--red); }
img { max-width: 100%; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .strong { font-weight: 700; color: var(--ink); text-decoration: none; }
.text-bad { color: var(--bad); font-weight: 600; }
.is-hidden, [hidden] { display: none !important; }
.boot { padding: 40px 20px; color: var(--muted); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- Shell ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + var(--safe-t)) 16px 8px; background: #fff; border-bottom: 1px solid var(--line); min-height: 54px; }
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); line-height: 1.1; min-width: 0; }
.brand img { display: block; height: 28px; width: auto; max-width: 160px; }
.wm { font-weight: 800; letter-spacing: -.5px; font-size: 1.15rem; } .wm b { color: var(--red); }
.sub { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.net { font-size: .78rem; color: var(--muted); text-align: right; min-width: 0; }
.net.off { color: var(--warn); background: var(--warn-bg); padding: 4px 10px; border-radius: 20px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h); color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; min-width: 0; }
.nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--red); }
main { padding: 16px 14px calc(var(--nav-h) + var(--safe-b) + 96px); max-width: 1180px; margin: 0 auto; outline: none; }
.kb-open .nav, .kb-open .actionbar { display: none; }
.kb-open main { padding-bottom: 24px; }

/* ---------- Page structure ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.page-head > div { min-width: 0; }
.page-head p { margin: 0; }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.save-state { font-size: .82rem; color: var(--muted); text-align: right; }
.save-state[data-state="saved"] { color: var(--good); } .save-state[data-state="saving"] { color: var(--muted); }
.save-state[data-state="error"], .save-state[data-state="conflict"] { color: var(--bad); font-weight: 600; }
.save-state[data-state="unsaved"] { color: var(--warn); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 14px; min-width: 0; }
.panel > h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: .8rem; flex-shrink: 0; }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; font-size: .92rem; background: #eef3f9; color: #2f4d68; }
.banner > span { flex: 1 1 200px; min-width: 0; }
.banner.warn { background: var(--warn-bg); color: var(--warn); } .banner.bad { background: var(--bad-bg); color: var(--bad); } .banner.good { background: var(--good-bg); color: var(--good); }
.advisory { margin: 10px 0; padding: 10px 12px; border-left: 3px solid #d39d36; background: var(--warn-bg); color: var(--warn); border-radius: 0 8px 8px 0; font-size: .85rem; }
.advisory.bad { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); }
.tabs { display: flex; gap: 6px; margin: -4px 0 12px; }
.tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 20px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; background: #fff; border: 1px solid var(--line); }
.tabs a[aria-current="page"] { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 6px 0 0; flex-wrap: wrap; }
.stepper li { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: #eceff2; color: var(--muted); }
.stepper li.done { background: var(--good-bg); color: var(--good); }
.stepper li.current { background: var(--red); color: #fff; }

/* ---------- Forms ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; border-radius: 8px; }
.field label { font-size: .85rem; font-weight: 600; color: #3d4955; }
.field small { color: var(--muted); font-size: .8rem; }
.req { color: var(--red); }
input, select, textarea, button { font: inherit; color: inherit; }
.field input, .field select, .field textarea, .toolbar select, .search input, #dlg-input {
  width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; /* >=16px: no iOS zoom */
  border: 1px solid #cfd6dd; border-radius: 8px; background: #fff;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; line-height: 1.5; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field select, .toolbar select { -webkit-appearance: none; appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366727d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:disabled, select:disabled, textarea:disabled { background: #f4f6f8; color: #3d4955; opacity: 1; -webkit-text-fill-color: #3d4955; }
.invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 3px #f5c6cf; }
.readonly-value { display: flex; align-items: center; min-height: 46px; padding: 10px 12px; border-radius: 8px; background: #f4f6f8; font-weight: 700; overflow-wrap: anywhere; }
.with-btn { display: flex; gap: 8px; min-width: 0; }
.with-btn select { flex: 1 1 auto; min-width: 0; }
.with-btn .btn { flex: 0 0 auto; }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px #f6b7c2; background: #fff3f5; } 100% { box-shadow: none; } }
details.sub { margin-top: 14px; border-top: 1px solid var(--line); }
details.sub > summary, details.product > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
details.sub > summary { font-size: .9rem; color: var(--muted); padding: 8px 0; }
details.sub[open] > summary { margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; max-width: 100%; }
.btn.sm { min-height: 40px; padding: 8px 12px; font-size: .85rem; }
.btn.primary { background: var(--red); color: #fff; } .btn.primary:hover { background: var(--red-d); }
.btn.secondary { background: #fff; color: var(--ink); border-color: #cfd6dd; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.danger { color: var(--bad); } .btn.primary.danger, .btn.danger:not(.ghost):not(.secondary) { background: var(--bad); color: #fff; }
.btn.block { width: 100%; margin-top: 12px; min-height: 52px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row > .btn { flex: 1 1 200px; }
.link { background: none; border: 0; color: var(--red); font-weight: 600; min-height: 44px; padding: 8px 4px; cursor: pointer; text-align: left; }
.link.danger { color: var(--bad); }
.icon-btn { background: none; border: 0; min-width: 44px; min-height: 44px; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; font-size: 16px; }
.upload:focus-within { box-shadow: var(--focus); }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.search { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; min-width: 0; background: #fff; border: 1px solid #cfd6dd; border-radius: 8px; padding-left: 12px; color: var(--muted); }
.search input { border: 0; padding-left: 0; }
.toolbar select { flex: 0 1 180px; min-width: 0; width: auto; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: .76rem; font-weight: 700; background: #eceff2; color: #4f5b66; white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.warn { background: var(--warn-bg); color: var(--warn); }

/* ---------- Responsive table: cards under 700px ---------- */
.rtable { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); font-size: .92rem; }
.rtable th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8f9fa; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rtable td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.rtable tr:last-child td { border-bottom: 0; }
.rtable tr[data-href], .rtable tr[data-open-item] { cursor: pointer; }
.rtable tr[data-href]:hover td, .rtable tr[data-open-item]:hover td { background: #fafbfc; }
.rtable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rtable td.actions { white-space: nowrap; } .rtable td.actions .btn { margin: 2px; }
@media (max-width: 699.98px) {
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable { border: 0; background: transparent; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable tr { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; padding: 6px 14px; }
  .rtable td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0f2f4; text-align: right; min-width: 0; }
  .rtable td::before { content: attr(data-label); font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; text-align: left; flex: 0 0 auto; max-width: 45%; }
  .rtable td:first-child { font-size: 1rem; }
  .rtable td:last-child { border-bottom: 0; }
  .rtable td.num { text-align: right; }
  .rtable td.actions { white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
  .rtable td.actions::before { display: none; }
  .wide-only { display: none; }
}

/* ---------- Products ---------- */
details.product { border: 1px solid #d9dfe5; border-radius: 10px; margin: 0 0 10px; background: #fff; }
details.product > summary { list-style: none; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #f7f8fa; border-radius: 10px; min-height: 56px; }
details.product[open] > summary { border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--line); }
details.product > summary::-webkit-details-marker { display: none; }
.p-title { min-width: 0; overflow-wrap: anywhere; }
.p-title::before { content: '+'; color: var(--red); font-weight: 700; margin-right: 8px; }
details[open] > summary .p-title::before { content: '−'; }
.p-body { padding: 14px; }
.p-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 6px; }
.rcd { background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 12px; margin-top: 12px; }
.assess { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.photo-grid:empty { display: none; }
.photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f3f5f7; }
.photo-grid img, .photo-grid .ph { display: block; width: 100%; height: 120px; object-fit: cover; }
.photo-grid .ph { display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.photo-grid .link { width: 100%; text-align: center; }
.photos { margin-top: 12px; }

/* ---------- Signature ---------- */
.sig-wrap { position: relative; width: 100%; border: 2px dashed #9aa8b6; border-radius: 10px; background: #fff; overflow: hidden; margin-top: 12px; touch-action: none; -webkit-user-select: none; user-select: none; }
.sig-wrap canvas { display: block; touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa4ae; pointer-events: none; font-size: .95rem; }
.sig-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

/* ---------- Action bar ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 25; display: flex; gap: 8px; padding: 10px 12px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(32, 42, 53, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.actionbar .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
.actionbar .btn .ic { width: 18px; height: 18px; }

/* ---------- Dialog ---------- */
.dialog { width: min(640px, calc(100vw - 20px)); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 0; border: 0; border-radius: 14px; color: var(--ink); box-shadow: 0 20px 80px rgba(20, 30, 45, .35); overflow: hidden; }
.dialog.wide { width: min(900px, calc(100vw - 20px)); }
.dialog[open] { display: flex; flex-direction: column; }
.dialog::backdrop { background: rgba(20, 30, 45, .5); }
.dialog-inner { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
.dialog header h2 { margin: 0; font-size: 1.05rem; min-width: 0; }
.dialog-body { padding: 16px 18px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; flex: 1 1 auto; }
.dialog-body p { white-space: pre-line; }
.dialog footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: #fafbfc; }
.dialog footer .btn { flex: 1 1 140px; }
.menu { display: flex; flex-direction: column; }
.menu-item { min-height: 52px; text-align: left; padding: 12px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.menu-item.danger { color: var(--bad); }
.missing { list-style: none; padding: 0; margin: 0; }
.missing li { border-bottom: 1px solid var(--line); }
.missing .link { width: 100%; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history li > div { min-width: 0; display: flex; flex-direction: column; }
.summary { padding-left: 18px; }
.progress { display: flex; align-items: center; gap: 14px; }
.spinner { width: 28px; height: 28px; border: 3px solid #e3e7ec; border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
pre.json { white-space: pre-wrap; word-break: break-word; font-size: .78rem; background: #f6f7f9; padding: 12px; border-radius: 8px; margin: 0; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.logo-box { flex: 0 1 240px; min-height: 70px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.logo-box img { max-height: 60px; object-fit: contain; }

/* ---------- Toasts & update banner ---------- */
.toasts { position: fixed; left: 10px; right: 10px; top: calc(60px + var(--safe-t)); z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 8px; max-width: 560px; width: 100%; padding: 6px 6px 6px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .9rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.toast > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast .icon-btn { color: #fff; }
.toast.error { background: var(--bad); } .toast.good { background: var(--good); }
.update { position: fixed; left: 10px; right: 10px; bottom: calc(var(--nav-h) + var(--safe-b) + 76px); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 560px; margin: 0 auto; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  main { padding-left: 20px; padding-right: 20px; }
  .panel { padding: 20px; }
}
@media (max-width: 599.98px) { .hide-sm { display: none; } }
@media (min-width: 900px) {
  .topbar { padding-left: 244px; z-index: 22; }
  .brand { position: fixed; top: 14px; left: 20px; }
  .nav { top: 0; bottom: 0; right: auto; width: 224px; grid-template-columns: 1fr; align-content: start; padding: 76px 12px 20px; border-top: 0; border-right: 1px solid var(--line); gap: 4px; z-index: 21; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 8px; font-size: .92rem; }
  .nav a[aria-current="page"] { background: #fbecf0; }
  main { margin-left: 224px; padding: 24px 32px 120px; }
  .actionbar { left: 224px; bottom: 0; padding: 12px 32px calc(12px + var(--safe-b)); justify-content: flex-end; }
  .actionbar .btn { flex: 0 0 auto; min-width: 150px; }
  .update { bottom: 90px; left: 244px; }
  h1 { font-size: 1.85rem; }
}
@media (min-width: 1200px) { .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } main { margin-left: max(224px, calc((100vw - 1180px) / 2 + 112px)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .nav, .topbar, .actionbar, .update, .toasts { display: none !important; } main { margin: 0; padding: 0; } }

/* ---------- v1.1: sign-off, invoices ---------- */
.signoff-preview { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; min-height: 0; }
.signoff-preview:empty { display: none; }
.so-sig { height: 70px; width: auto; max-width: 60%; object-fit: contain; }
.so-stamp { height: 86px; width: auto; object-fit: contain; }
.signoff-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 14px; }
.asset-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.asset-box img { max-height: 90px; max-width: 100%; object-fit: contain; }
.inv-line { display: flex; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.inv-line > .grid { flex: 1 1 auto; min-width: 0; }
.inv-no { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; margin-top: 26px; }
.inv-rm { justify-content: flex-end; }
.inv-totals { margin: 16px 0 14px auto; max-width: 360px; }
.inv-totals p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.inv-totals p.grand { border-bottom: 0; border-top: 2px solid var(--red); font-size: 1.1rem; padding-top: 10px; }
.menu a.menu-item { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
@media (min-width: 900px) { .brand img { height: 32px; } }
