/* Print CSS (design 9). Everything prints from #print-root (lib: print/print-util.js printDoc). */
@media print {
  :root { color-scheme: light; }
  body { background: #fff !important; color: #000 !important; }
  body > :not(#print-root), .toast, dialog, .bottomnav { display: none !important; }
  #print-root { display: block !important; }
  a { color: inherit; text-decoration: none; }
  .num { font-variant-numeric: tabular-nums; }

  @page { size: A4 portrait; margin: 12mm; }
  @page landscape { size: A4 landscape; margin: 10mm; }
  .print-landscape { page: landscape; }
  .sheet { box-shadow: none !important; margin: 0 !important; width: auto !important; padding: 0 !important; background: #fff !important; }
  .doc-head-rule { border: 0; border-top: 2pt solid var(--brand); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-title, .doc-lines thead th { color: var(--brand-text); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-logo { max-height: 18mm; max-width: 50mm; }
  .doc-lines tr { break-inside: avoid; }
  .doc-lines thead { display: table-header-group; }
  .badge { border: .5pt solid #555; background: none !important; color: #000 !important; }

  @page receipt80 { size: 80mm auto; margin: 0; }
  @page receipt58 { size: 58mm auto; margin: 0; }
  html[data-paper="80"] .rcpt { page: receipt80; width: 72mm; padding: 2mm 4mm; font-size: 10pt; }
  html[data-paper="58"] .rcpt { page: receipt58; width: 48mm; padding: 2mm 5mm; font-size: 9pt; }
  .rcpt { font-family: var(--font-receipt); font-weight: 500; line-height: 1.35; color: #000; box-shadow: none !important; margin: 0 !important; background: #fff !important; }
  .rcpt hr { border: 0; border-top: .3mm dashed #000; margin: 1.5mm 0; }
  .rcpt .total { font-size: 1.4em; font-weight: 700; }
  .rcpt .qr svg { width: 28mm; height: 28mm; }
  html[data-paper="58"] .rcpt .qr svg { width: 24mm; height: 24mm; }

  @page labelroll { size: 50mm 30mm; margin: 0; }
  html[data-labels="roll-50x30"] .lbl { page: labelroll; width: 50mm; height: 30mm; break-after: page; }
  @page labelsheet { size: A4 portrait; margin: 0; }
  html[data-labels^="a4"] .lbl-sheet { page: labelsheet; display: grid; break-after: page; }
  .lbl { overflow: hidden; padding: 1.5mm; display: flex; flex-direction: column; justify-content: space-between; }
  .lbl .barcode svg { width: 100%; }
  .no-print { display: none !important; }
}
