/* Generated by apps/website/tools/render-samples.tsx from src/components/document/document.css. Do not edit. */
/* Print layout for every theme. 794px = 210mm at 96dpi, so px sizes print true.
   Base rules first, then the three layout families, then the six theme palettes. */
.sheet {
  --p-paper: #fff;
  --p-ink: #1f2224;
  --p-muted: #6f7276;
  --p-rule: #d6d2ca;
  --p-accent: #b8894a;
  --p-band: #2b2e31;
  --p-band-ink: #fff;
  --p-soft: #edebe6;
  --display: var(--font-display), "Arial Narrow", Impact, sans-serif;
  --body: var(--font-body), "Helvetica Neue", Arial, sans-serif;
  --mono: var(--font-mono), Menlo, Consolas, monospace;
  --num: var(--mono);

  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 40px 56px 32px;
  background: var(--p-paper);
  color: var(--p-ink);
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.42;
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}
.sheet *, .sheet *::before, .sheet *::after { box-sizing: border-box; }
.sheet .num { white-space: nowrap; text-align: right; }
.sheet .fine { font-size: 10.5px; color: var(--p-muted); }
.sheet span.fine { display: block; margin-top: 2px; }
.sheet .lbl { font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; color: var(--p-muted); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet td, .sheet th { vertical-align: top; padding: 6px 8px; }
.sheet .desc div + div { margin-top: 2px; }
.sheet .spec { color: var(--p-muted); }
.sheet .title { font-weight: 700; font-size: 14px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--p-ink); }
.sheet .intro { color: var(--p-muted); margin: -4px 0 12px; max-width: 70ch; }
.sheet .intro div + div { margin-top: 2px; }

/* items */
.sheet th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--p-muted); border-bottom: 1px solid var(--p-ink); }
.sheet td.n, .sheet th.n { font-family: var(--mono); font-size: 11px; color: var(--p-muted); width: 44px; }
.sheet td.num { font-family: var(--num); font-size: 12px; }
.sheet tr.sec td { font-weight: 700; padding-top: 10px; }
.sheet tr.item td { border-bottom: 1px dotted var(--p-rule); }
.sheet tr.sub td { font-family: var(--mono); font-size: 11px; color: var(--p-muted); padding-top: 4px; padding-bottom: 8px; }
.sheet tr { break-inside: avoid; }

/* totals + footer travel together */
.sheet-end { margin-top: auto; }
.sheet .totals { margin: 12px 0 18px auto; width: 320px; font-family: var(--num); font-size: 12px; }
.sheet .totals td { padding: 3px 8px; }
.sheet .totals tr.grand td { border-top: 1px solid var(--p-ink); border-bottom: 3px double var(--p-ink); font-weight: 500; font-size: 14px; padding: 7px 8px; }
.sheet-foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding-top: 10px; border-top: 1px solid var(--p-ink); }
.sheet-foot .fine { font-size: 10.5px; }
.sheet-foot b { color: var(--p-ink); }

/* ---------- family: ledger (Ledger, Blueprint) ---------- */
.family-ledger .sheet-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.family-ledger .mark { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .1em; line-height: 1; }
.family-ledger .mark small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0; color: var(--p-muted); margin-top: 8px; line-height: 1.5; font-weight: 400; }
.family-ledger .ref { border: 1px solid var(--p-ink); font-family: var(--mono); font-size: 11px; min-width: 270px; }
.family-ledger .ref div { display: flex; justify-content: space-between; gap: 20px; padding: 5px 10px; border-bottom: 1px solid var(--p-rule); }
.family-ledger .ref div:last-child { border-bottom: 0; }
.family-ledger .ref div span:first-child { color: var(--p-muted); }
.family-ledger .ref .big { font-family: var(--display); font-size: 20px; letter-spacing: .08em; text-transform: uppercase; background: var(--p-ink); color: var(--p-paper); display: block; padding: 6px 10px; }
.family-ledger .to { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0 16px; }

/* ---------- family: letterhead (Letterhead, Sandstone) ---------- */
.family-letterhead .lh-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--p-ink); padding-bottom: 12px; }
.family-letterhead .mark { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .06em; line-height: 1; }
.family-letterhead .mark small { display: block; font-family: var(--body); font-weight: 400; font-size: 11px; letter-spacing: .08em; color: var(--p-muted); margin-top: 4px; text-transform: uppercase; }
.family-letterhead .contact { text-align: right; font-size: 11px; color: var(--p-muted); line-height: 1.45; }
.family-letterhead .lh-meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; margin: 18px 0 20px; }
.family-letterhead .lh-meta .v { font-size: 12.5px; margin-top: 2px; }
.family-letterhead .doc-type { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 2px; }
.family-letterhead .title { font-size: 15px; border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }
.family-letterhead td.n, .family-letterhead th.n { display: none; }
.family-letterhead th { font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--p-ink); }
.family-letterhead tr.item td { border-bottom: 1px solid var(--p-rule); }
.family-letterhead tr.sec td { border-bottom: 1px solid var(--p-rule); padding-top: 14px; }
.family-letterhead tr.sub td { font-family: var(--body); font-weight: 600; }
.family-letterhead td.num { font-family: var(--body); }
.family-letterhead .totals { font-family: var(--body); width: 300px; }
.family-letterhead .totals tr.grand td { border-top: 2px solid var(--p-ink); border-bottom: 0; font-weight: 700; font-size: 15px; }
.family-letterhead .totals tr.dep td { color: var(--p-muted); font-weight: 600; }
.family-letterhead .sheet-foot { border-top: 1px solid var(--p-rule); padding-top: 12px; }

/* ---------- family: slate (Slate, Charcoal) ---------- */
.family-slate { padding: 0 0 32px; }
.family-slate .sl-band { background: var(--p-band); color: var(--p-band-ink); padding: 30px 56px 22px; display: flex; justify-content: space-between; align-items: flex-start; }
.family-slate .mark { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: .05em; line-height: 1; }
.family-slate .mark small { display: block; font-family: var(--body); font-weight: 400; font-size: 11px; letter-spacing: .06em; opacity: .75; margin-top: 6px; }
.family-slate .doc { text-align: right; }
.family-slate .doc .type { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--p-accent); }
.family-slate .doc .no { font-size: 13px; opacity: .85; margin-top: 6px; }
.family-slate .sl-stripe { height: 6px; background: var(--p-accent); }
.family-slate .sl-meta { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; padding: 22px 56px 16px; border-bottom: 1px solid var(--p-rule); margin: 0 0 16px; }
.family-slate .sl-meta .v { font-size: 12.5px; margin-top: 2px; }
.family-slate .sl-meta .contact { font-size: 11px; color: var(--p-muted); line-height: 1.45; text-align: right; }
.family-slate .sl-meta .contact .lbl { text-align: right; }
.family-slate .sl-body { padding: 0 56px; display: flex; flex-direction: column; flex: 1; }
.family-slate .title { font-family: var(--display); font-weight: 600; font-size: 20px; border-bottom: 0; padding-bottom: 0; margin: 0 0 4px; }
.family-slate td.n, .family-slate th.n { display: none; }
.family-slate th { border-bottom: 1px solid var(--p-rule); }
.family-slate tr.sec td { background: var(--p-soft); padding: 6px 10px; }
.family-slate tr.sec td:nth-child(2) { border-left: 4px solid var(--p-accent); }
.family-slate tr.item td { border-bottom: 1px solid var(--p-rule); }
.family-slate tr.sub td { font-family: var(--body); font-weight: 600; }
.family-slate td.num { font-family: var(--body); }
.family-slate .totals { background: var(--p-band); color: var(--p-band-ink); padding: 10px 14px; width: 300px; font-family: var(--body); margin-bottom: 18px; }
.family-slate .totals td { padding: 3px 6px; }
.family-slate .totals tr.grand td { font-family: var(--display); font-size: 22px; font-weight: 600; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 0; }
.family-slate .totals tr.dep td { color: var(--p-accent); font-weight: 600; padding-top: 8px; }
.family-slate .sheet-foot { border-top: 1px solid var(--p-rule); }

/* the logo in place of the typed name: sized per family; a plate, where needed, is in the image */
.sheet .mark img.logo { display: block; width: auto; height: auto; max-width: 260px; }
.family-ledger .mark img.logo { max-height: 64px; }
.family-letterhead .mark img.logo { max-height: 72px; max-width: 300px; }
.family-slate .mark img.logo { max-height: 70px; max-width: 300px; }

/* ---------- theme palettes ---------- */
.theme-blueprint {
  --p-paper: #fbfcfe; --p-ink: #1f3a5f; --p-muted: #5b7392; --p-rule: #c9d6e6; --p-accent: #1f3a5f;
}
.theme-blueprint .mark { font-family: var(--mono); letter-spacing: .14em; font-weight: 500; font-size: 22px; }
.theme-blueprint .title { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.theme-blueprint tr.item td { border-bottom: 1px solid var(--p-rule); }
.theme-blueprint .lbl, .theme-blueprint th { color: var(--p-ink); }

.theme-sandstone {
  --p-paper: #fbf7ef; --p-ink: #2b2622; --p-muted: #7a6f63; --p-rule: #e2d6c2; --p-accent: #b8894a;
  --display: var(--font-serif), Georgia, "Times New Roman", serif;
}
.theme-sandstone .mark { letter-spacing: .02em; font-weight: 600; }
.theme-sandstone .lh-head { border-bottom-color: var(--p-accent); }
.theme-sandstone .lbl { font-family: var(--body); letter-spacing: .1em; }
.theme-sandstone .doc-type { font-style: italic; text-transform: none; letter-spacing: 0; font-size: 24px; }
.theme-sandstone .totals tr.grand td { border-top-color: var(--p-accent); }
.theme-sandstone .sheet-foot { border-top-color: var(--p-accent); }

.theme-charcoal {
  --p-band: #141516; --p-band-ink: #f4f1eb; --p-accent: #e0a458; --p-soft: #ecebe8; --p-rule: #d9d6cf;
}
.theme-charcoal .mark { font-size: 38px; letter-spacing: .02em; }
.theme-charcoal .doc .type { color: var(--p-accent); }
.theme-charcoal tr.sec td { background: var(--p-band); color: var(--p-band-ink); }
.theme-charcoal tr.sec td:nth-child(2) { border-left-color: var(--p-accent); }
.theme-charcoal .sl-meta { border-bottom: 2px solid var(--p-band); }
.theme-charcoal .title { font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.theme-charcoal .sheet-foot { background: var(--p-band); color: var(--p-band-ink); margin: 0 -56px -32px; padding: 14px 56px 18px; border-top: 0; }
.theme-charcoal .sheet-foot .fine { color: #c9c6bf; }
.theme-charcoal .sheet-foot b { color: var(--p-accent); }
.theme-charcoal .totals { margin-bottom: 22px; }

/* on-screen preview grid: each sheet shown at half size */
.theme-preview { overflow: hidden; }
.theme-preview .sheet { zoom: 0.48; box-shadow: none; }
@media screen and (max-width: 480px) { .theme-preview .sheet { zoom: 0.42; } }

/* On narrow screens the on-screen preview shrinks the A4 sheet to fit; pinch to zoom in.
   Screen only: printing and PDFs keep the true 210mm size. */
@media screen and (max-width: 840px) { .print-page .sheet { zoom: 0.9; } }
@media screen and (max-width: 760px) { .print-page .sheet { zoom: 0.8; } }
@media screen and (max-width: 680px) { .print-page .sheet { zoom: 0.7; } }
@media screen and (max-width: 600px) { .print-page .sheet { zoom: 0.6; } }
@media screen and (max-width: 520px) { .print-page .sheet { zoom: 0.5; } }
@media screen and (max-width: 440px) { .print-page .sheet { zoom: 0.44; } }
@media screen and (max-width: 380px) { .print-page .sheet { zoom: 0.42; } }
@media screen and (max-width: 350px) { .print-page .sheet { zoom: 0.38; } }

/* print */
@page { size: A4; margin: 0; }
/* Printed, not shown: what the browser's own Print (Ctrl/Cmd+P, the menu) prints of a page that
   shows something it cannot print, such as the kept PDF in a frame. */
.print-only { display: none; }
@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .print-page { padding: 0 !important; margin: 0 !important; }
  /* A hair under a full page so rounding never pushes the footer onto a blank second page.
     Longer documents flow across pages and the footer follows the totals. */
  .sheet { min-height: 296mm; margin: 0; box-shadow: none !important; }
  .sheet-end { break-inside: avoid; }
  .family-slate .sl-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .family-slate .totals, .family-slate tr.sec td, .family-slate .sl-stripe, .theme-charcoal .sheet-foot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
