/* Ancho útil habitual: rollo 58 mm → 48 mm; rollo 80 mm → 72 mm. */
.thermal { box-sizing:border-box; width:72mm; max-width:100%; margin:0; padding:1mm 0 2mm; background:#fff; color:#000; font:700 12px/1.22 'Courier New',Courier,monospace; overflow-wrap:anywhere; }
.thermal[data-paper="58"] { width:48mm; font-size:11px; }
.thermal * { box-sizing:border-box; color:#000!important; opacity:1!important; text-shadow:none!important; box-shadow:none!important; }
.thermal .t-line { margin:0; padding:0; white-space:pre-wrap; }
.thermal .t-brand { text-align:center; font-size:18px; font-weight:900; }
.thermal .t-number { text-align:center; font-size:22px; font-weight:900; line-height:1.05; margin:1mm 0; }
.thermal-kitchen .t-number { font-size:30px; }
.thermal .t-strong,.thermal .t-label { font-weight:900; }
.thermal .t-label { margin-top:1mm; }
.thermal .t-product { margin-top:1.5mm; font-size:13px; font-weight:900; break-inside:avoid; }
.thermal-kitchen .t-product { font-size:16px; }
.thermal .t-option { padding-left:1mm; }
.thermal-kitchen .t-option { font-size:13px; }
.thermal .t-small { font-size:11px; }
.thermal .t-hora { font-size:15px; font-weight:900; border:1.5px solid #000; padding:.5mm 1mm; margin:.5mm 0; }
.thermal .t-ingrediente { padding-left:1mm; }
.thermal-kitchen .t-ingrediente { font-size:14px; }
.thermal .t-pair { display:flex; justify-content:space-between; align-items:baseline; gap:2mm; }
.thermal .t-pair > span { min-width:0; }
.thermal .t-pair > b { flex-shrink:0; white-space:nowrap; }
.thermal .t-total { font-size:18px; font-weight:900; }
.thermal .t-note { border:1px solid #000; padding:1mm; margin-top:1mm; font-size:15px; font-weight:900; }
.thermal .t-footer { text-align:center; font-size:11px; }
.thermal hr { border:0; border-top:1px dashed #000; margin:1.5mm 0; padding:0; height:0; }
@media print {
  @page { margin:0; }
  html,body { margin:0!important; padding:0!important; height:auto!important; min-height:0!important; overflow:visible!important; background:#fff!important; }
  #areaImprimir { padding:0!important; margin:0!important; height:auto!important; min-height:0!important; }
  #areaImprimir:has(.thermal) { width:auto!important; }
  #areaImprimir .thermal { margin:0!important; height:auto!important; min-height:0!important; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
