/* Deliberately plain. This page is a quotation, not a campaign: it has to read
   the same on a phone in a workshop as on a buyer's desktop, and print to
   something a customer can put in a file. */
:root {
  --ink: #16202a;
  --muted: #5d6b7a;
  --rule: #dfe5ea;
  --bg: #f6f8fa;
  --panel: #ffffff;
  --accent: #14506e;
  --accent-soft: #eaf2f7;
  --up: #8a3b12;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px 64px; }
.loading, .error { padding: 48px 8px; color: var(--muted); text-align: center; }
.error strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 8px; }

header.doc { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
  justify-content: space-between; margin-bottom: 20px; }
header.doc .who h1 { margin: 0 0 2px; font-size: 22px; }
header.doc .who p { margin: 0; color: var(--muted); font-size: 14px; }
header.doc .meta { text-align: right; font-size: 14px; color: var(--muted); }
header.doc .meta b { color: var(--ink); }
header.doc img.logo { max-height: 48px; width: auto; }

.note { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 20px; white-space: pre-wrap; }

section.group { background: var(--panel); border: 1px solid var(--rule);
  border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
section.group > h2 { margin: 0; padding: 12px 16px; font-size: 16px;
  background: var(--accent-soft); color: var(--accent); border-bottom: 1px solid var(--rule); }
section.group > p.summary { margin: 0; padding: 10px 16px; color: var(--muted);
  border-bottom: 1px solid var(--rule); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--rule); font-size: 14px; }
th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; }
td.num, th.num { text-align: right; white-space: nowrap; }
/* List sits beside the quoted unit price, quieter than it: the number
   that matters is what we are charging. No strike-through, no badge. */
td.list { color: #6b7280; }
tr:last-child td { border-bottom: 0; }
.sku { font-weight: 600; }
.desc { color: var(--muted); }
.desc a { color: var(--accent); }
td img.thumb { max-width: 56px; height: auto; border-radius: 4px; }

.subtotal { display: flex; justify-content: space-between; padding: 10px 16px;
  background: var(--accent-soft); font-weight: 600; }

.options { border-top: 1px solid var(--rule); background: #fbfcfd; padding: 14px 16px; }
.options h3 { margin: 0 0 4px; font-size: 14px; }
.options > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.decision { margin-bottom: 14px; }
.decision > h4 { margin: 0 0 2px; font-size: 13px; }
.decision > p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.choices { display: grid; gap: 8px; }
label.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--panel);
  cursor: pointer; }
label.choice.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
label.choice.off { opacity: .45; cursor: not-allowed; }
label.choice input { margin-top: 3px; }
label.choice .what { flex: 1; }
label.choice .what b { display: block; font-weight: 600; }
label.choice .what span { color: var(--muted); font-size: 12px; }
label.choice .delta { white-space: nowrap; font-variant-numeric: tabular-nums; }
label.choice .delta.up { color: var(--up); }
label.choice .delta.same { color: var(--muted); }

.totals { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px;
  padding: 8px 16px; margin-top: 20px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals div.grand { border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 10px;
  font-size: 18px; font-weight: 700; }
.changed { color: var(--accent); font-size: 13px; padding: 6px 0 0; }

footer.doc { margin-top: 24px; color: var(--muted); font-size: 13px; }
footer.doc a { color: var(--accent); }

@media print {
  body { background: #fff; }
  .options { display: none; }
  section.group, .totals { border-color: #999; }
}
