/* Documento independiente: sin tema oscuro, navegación del panel ni fondos al imprimir. */
.thermal-body, .thermal-body * { box-sizing: border-box; }
.thermal-body { margin: 0; color: #111; background: #f1f3f6; font: 14px/1.45 Arial, sans-serif; }
.thermal-toolbar { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 20px 16px 8px; }
.thermal-widths { display: flex; gap: 4px; }
.thermal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 1px solid #c3c9d2; border-radius: 8px; background: #fff; color: #182033; font: inherit; text-decoration: none; cursor: pointer; }
.thermal-button:focus-visible { outline: 3px solid #2140e8; outline-offset: 3px; }
.thermal-button[aria-current=true] { border-color: #2140e8; color: #2140e8; font-weight: 700; }
.thermal-primary { color: #fff; background: #2140e8; border-color: #2140e8; }
.thermal-help { max-width: 510px; padding: 0 16px; margin: 8px auto 20px; text-align: center; color: #515b6c; font-size: 13px; }
.paper-80 { --paper-width: 80mm; }
.paper-58 { --paper-width: 58mm; }
.thermal-receipt { width: var(--paper-width); max-width: 100%; padding: 4mm; margin: 0 auto 32px; background: #fff; box-shadow: 0 2px 18px #18203312; font: 12px/1.4 Arial, sans-serif; overflow-wrap: anywhere; }
.thermal-business { padding-bottom: 3mm; border-bottom: 1px dashed #555; text-align: center; }
.thermal-body h1 { margin: 0 0 1mm; font-size: 18px; line-height: 1.2; }
.thermal-body h2 { margin: 0 0 1mm; font-size: 13px; }
.thermal-body p { margin: 1mm 0; }
.thermal-document { margin: 3mm 0; text-align: center; }
.thermal-status { font-weight: 700; }
.thermal-items { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: inherit; }
.thermal-items th { text-align: left; font-weight: 700; }
.thermal-items td, .thermal-items th { padding: 2mm 0; vertical-align: top; }
.thermal-items th:first-child, .thermal-items td:first-child { width: 61%; padding-right: 2mm; }
.thermal-items .thermal-number { text-align: right; font-variant-numeric: tabular-nums; }
.thermal-items tbody td { border-top: 1px dashed #888; }
.thermal-items small { display: block; font-size: 10px; margin-top: 1mm; }
.thermal-items tfoot { border-top: 1px solid #111; font-size: 15px; }
.thermal-payment { margin: 2mm 0; }
.thermal-payment div { display: flex; justify-content: space-between; gap: 2mm; margin: 1mm 0; }
.thermal-payment dd { margin: 0; text-align: right; }
.thermal-customer { margin-top: 2mm; }
.thermal-footer { text-align: center; margin-top: 4mm; border-top: 1px dashed #555; padding-top: 2mm; font-size: 10px; }
.paper-58 .thermal-receipt { font-size: 11px; }
.paper-58 .thermal-items tfoot { font-size: 13px; }
@page thermal-receipt { size: auto; margin: 0; }
@media print {
  .thermal-body { page: thermal-receipt; width: var(--paper-width); margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .thermal-toolbar, .thermal-help { display: none !important; }
  .thermal-receipt { margin: 0; max-width: none; box-shadow: none; }
  .thermal-items tr, .thermal-business, .thermal-document, .thermal-payment, .thermal-footer { break-inside: avoid; }
  .thermal-items thead { display: table-header-group; }
  .thermal-items tfoot { display: table-row-group; }
  .thermal-body a { color: #111; text-decoration: none; }
}
.thermal-section { margin-top: 4mm; padding-top: 3mm; border-top: 1px dashed #555; }
.thermal-emphasis { font-weight: 700; }
.thermal-small { font-size: 10px; }
.thermal-cash-movement { margin-top: 2mm; break-inside: avoid; }
.thermal-footer .thermal-signature { margin-top: 6mm; }
.thermal-calibration { width: 40mm; max-width: 100%; height: 2mm; margin: 3mm auto 1mm; border: solid #111; border-width: 0 1px 1px; }
.tip-notice { text-align: left; line-height: 1.45; }
