.paper-size-choice{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}.paper-size-choice[hidden]{display:none}.paper-size-choice select{display:inline-block;width:72px;min-height:38px;padding:5px 8px;margin:0;direction:ltr}.header-actions{flex-wrap:wrap}.paper-size-choice span{color:#556e7b}
@media(max-width:700px){.paper-size-choice span{display:none}.paper-size-choice select{width:65px}}
@media print{
  html[data-paper-size]{background:#fff}
  html[data-paper-size] body{width:var(--accounting-print-width);max-width:100%;margin:0;padding:0;background:#fff}
  html[data-paper-size] main{width:100%;max-width:100%;margin:0;padding:0}
  .paper-size-choice{display:none!important}
  /* A prior quotation-only page name must not force A5 after choosing A4. */
  html[data-paper-size] body.receipt-print>#receipt-view{page:auto!important;padding:0!important;width:100%;max-width:100%;margin:0}
  html[data-paper-size] #receipt-view>.tablewrap{overflow:visible}
  html[data-paper-size] #receipt-view:not(.quotation-receipt){font-size:9pt;line-height:1.7;overflow-wrap:anywhere}
  html[data-paper-size] #receipt-view:not(.quotation-receipt) table{width:100%;table-layout:fixed;white-space:normal}
  html[data-paper-size] #receipt-view:not(.quotation-receipt) td,
  html[data-paper-size] #receipt-view:not(.quotation-receipt) th{padding:1.4mm 1mm;font-size:8pt;overflow-wrap:anywhere;vertical-align:top}
  html[data-paper-size] #receipt-view tr{break-inside:avoid}
  html[data-paper-size] #receipt-view thead{display:table-header-group}
  html[data-paper-size="A4"] .quote-sheet{font-size:11pt;line-height:1.8}
  html[data-paper-size="A4"] .quote-brand img{width:15mm;height:15mm}
  html[data-paper-size="A4"] .quote-brand strong{font-size:18pt}
  html[data-paper-size="A4"] .quote-title h1{font-size:18pt}
  html[data-paper-size="A4"] .quote-brand span,
  html[data-paper-size="A4"] .quote-title span,
  html[data-paper-size="A4"] .quote-meta span,
  html[data-paper-size="A4"] .quote-address{font-size:9pt}
  html[data-paper-size="A4"] .quote-meta bdi{font-size:10pt}
  html[data-paper-size="A4"] .quote-sheet .quote-items th,
  html[data-paper-size="A4"] .quote-sheet .quote-items td{font-size:9pt;padding:1.6mm}
  html[data-paper-size="A4"] .quote-sheet .quote-items strong{font-size:9pt}
  html[data-paper-size="A4"] .quote-sheet .quote-items small{font-size:8pt}
  html[data-paper-size="A4"] .quote-device bdi{font-size:7.5pt}
  html[data-paper-size="A4"] .quote-totals{width:95mm;margin-top:4mm;padding:2mm 3mm}
  html[data-paper-size="A4"] .quote-totals>div{font-size:10pt;padding:.8mm 0}
  html[data-paper-size="A4"] .quote-total-final strong{font-size:12pt}
  html[data-paper-size="A4"] .quote-note p,
  html[data-paper-size="A4"] .quote-status,
  html[data-paper-size="A4"] .quote-signatures{font-size:9pt}
  html[data-paper-size="A4"] .quote-signatures>div{min-height:17mm}
  html[data-paper-size="A4"] #receipt-view:not(.quotation-receipt){font-size:11pt}
  html[data-paper-size="A4"] #receipt-view:not(.quotation-receipt) td,
  html[data-paper-size="A4"] #receipt-view:not(.quotation-receipt) th{font-size:10pt;padding:2mm}
}
