/* Printable A4 sheets in downloads/. Screen: a paper-width page. Print: just the sheet. */
@page { size: A4; margin: 12mm; }
* { box-sizing: border-box; }
body { margin: 0; font: 13px/1.4 Arial, Helvetica, sans-serif; color: #111; background: #f3f3f3; }
.sheet { width: 210mm; max-width: 100%; margin: 0 auto; padding: 12mm; background: #fff; }
.bar { max-width: 210mm; margin: 0 auto; padding: 10px 12mm; font-size: 14px; }
.bar button { font: inherit; padding: 8px 16px; margin-right: 12px; cursor: pointer; }
.bar a { color: #0b4fa8; }
h1 { font-size: 22px; margin: 0 0 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.box { border: 1px solid #333; padding: 6px 8px; min-height: 22mm; }
.box.small { min-height: 12mm; }
.box b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; table-layout: fixed; }
th, td { border: 1px solid #333; padding: 4px 5px; text-align: left; vertical-align: top; font-size: 11px; }
th { background: #eee; }
td { height: 8.5mm; }
.num { text-align: right; }
.totals { width: 70mm; margin-left: auto; }
.totals td { height: 8mm; }
.terms { min-height: 24mm; }
.foot { font-size: 10px; color: #555; margin-top: 8px; }
@media (max-width: 700px) { .sheet { padding: 8px; } .pair { grid-template-columns: 1fr; } table { font-size: 10px; } th { font-size: 8px; padding: 3px 2px; overflow-wrap: anywhere; hyphens: auto; } td { padding: 3px 2px; overflow-wrap: anywhere; }
  .count col:nth-child(1) { width: 14% !important; } .count col:nth-child(2) { width: 16% !important; } .count col:nth-child(3) { width: 19% !important; } .count col:nth-child(4) { width: 10% !important; } .count col:nth-child(5) { width: 10% !important; } .count col:nth-child(6) { width: 13% !important; } .count col:nth-child(7) { width: 9% !important; } .count col:nth-child(8) { width: 9% !important; } }
@media print { body { background: #fff; } .sheet { width: auto; padding: 0; } .bar { display: none; } }
