/* GargTent Desk online — black, white and gold #F1BE15. Print: white page, gold rules, no black fills. */
:root { --gold: #F1BE15; --gold-dark: #b8975a; --ink: #111; --line: #e3dfd4; --muted: #6b6b6b; --bg: #f6f5f2; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #cfcac0; border-radius: 6px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
label { display: block; font-size: 13px; color: #333; }
label > input, label > select, label > textarea { margin-top: 4px; }
h1, h2, h3 { margin: 0 0 10px; }
h2 { font-size: 17px; } h3 { font-size: 16px; } h3 small { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.btn { padding: 9px 16px; border: 1px solid #222; background: #fff; color: #111; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: #7a5d00; text-decoration: underline; cursor: pointer; font-size: 14px; }
.link.danger { color: #b3261e; }
.err { color: #b3261e; min-height: 1em; } .muted { color: var(--muted); } .hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.loading { text-align: center; padding: 60px; color: var(--muted); }
.center-card { max-width: 400px; margin: 8vh auto; background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,.08); text-align: center; }
.center-card form { text-align: left; } .logo-big { width: 120px; } .stack > * { margin-bottom: 12px; }
.top { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #000; color: #fff; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; } .brand img { height: 34px; } .brand span { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.top nav { display: flex; gap: 4px; flex: 1; }
.tab { background: none; border: 0; color: #ddd; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.tab.on { background: #222; color: var(--gold); }
.who { font-size: 13px; color: #ccc; } .who .link { color: var(--gold); margin-left: 8px; font-size: 13px; }
main { max-width: 980px; margin: 18px auto 60px; padding: 0 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.card.empty { color: var(--muted); text-align: center; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.status { font-size: 13px; color: #2e7d32; } .status.warn { color: #b26a00; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .span2 { grid-column: span 2; }
.add-row { display: flex; gap: 10px; } .add-row select { flex: 1; }
.line { border-left: 3px solid var(--gold); }
.line-grid { display: grid; grid-template-columns: 1fr 140px; gap: 12px; margin-bottom: 10px; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.size span { display: block; font-size: 13px; color: #333; margin-bottom: 4px; }
.size div, .deck-size { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.size input, .deck-size input { width: 74px; } .size select, .deck-size select { width: 62px; }
details.more { margin: 8px 0; } details.more summary { cursor: pointer; color: #7a5d00; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; } .check input { width: auto; margin: 0; }
.deck { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 4px; }
.price { margin-top: 10px; background: #fbf8ee; border-radius: 8px; padding: 10px 12px; }
.p-main, .p-sub, .grand { display: flex; justify-content: space-between; }
.p-main b { font-size: 18px; } .p-sub { color: #444; } .p-opt { font-size: 13px; color: #555; margin-top: 6px; }
.totals .grand { font-size: 18px; border-left: 3px solid var(--gold); border-top: 1px solid var(--gold-dark); background: #f6f3ea; padding: 10px 12px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); padding: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.list td { border-bottom: 1px solid var(--line); padding: 7px 6px; vertical-align: top; }
.r { text-align: right; } .nowrap { white-space: nowrap; }
#print-area { display: none; }
@media (max-width: 700px) { .grid2, .sizes { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .line-grid { grid-template-columns: 1fr 100px; } .who { width: 100%; } }

/* ---------- print ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 10pt; }
  #app { display: none !important; }
  #print-area { display: block !important; }
  .doc { color: #111; }
  .doc-head { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--gold); padding-bottom: 8px; font-size: 8.5pt; color: #333; }
  .doc-head img { height: 52px; }
  .doc h1 { font-size: 16pt; letter-spacing: .12em; text-transform: uppercase; margin: 14px 0 8px; }
  table.meta { width: 100%; font-size: 9pt; border-collapse: collapse; margin-bottom: 8px; } table.meta td { padding: 2px 0; }
  .to { font-size: 9.5pt; margin: 6px 0 12px; }
  table.lines { width: 100%; border-collapse: collapse; border: 1px solid #d0cdc5; font-size: 9pt; }
  table.lines th { background: #fff; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); text-align: left; padding: 6px; font-size: 8pt; text-transform: uppercase; letter-spacing: .06em; }
  table.lines td { padding: 6px; vertical-align: top; }
  table.lines tr.item td { border-top: 1px solid #d9d4c7; }
  table.lines tr.inc td { font-size: 8.5pt; color: #333; padding-top: 0; }
  table.lines tr { page-break-inside: avoid; }
  table.lines .r { text-align: right; }
  .opt { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--gold-dark); }
  .small { font-size: 8.5pt; color: #444; }
  .sum { margin: 10px 0 12px auto; width: 60%; }
  .sum-total { display: flex; justify-content: space-between; border-left: 3px solid var(--gold); border-top: 1px solid var(--gold-dark); background: #f6f3ea; padding: 7px 10px; font-size: 10.5pt; font-weight: 700; }
  .terms { page-break-before: auto; margin-top: 12px; font-size: 8.5pt; }
  .terms h2 { font-size: 10pt; border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
  .term p { margin: 2px 0; } .term ul { margin: 2px 0 4px 16px; padding: 0; } .term { margin-bottom: 6px; page-break-inside: avoid; }
}
