dialog.thermalPreview {width:min(94vw,390px);max-width:94vw;max-height:92dvh;padding:16px;border:1px solid #becbda;border-radius:14px;color:#172d54;background:#fff;overflow-y:auto}
.thermalToolbar,.thermalActions {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.thermalToolbar h2{font:700 22px/1.2 Inter,Arial,sans-serif;margin:0}
.thermalToolbar label{font:600 13px Inter,Arial,sans-serif}
.thermalStage{padding:16px 8px;background:#e9edf2;border-radius:6px;margin:12px 0}
.thermalTicket{box-sizing:content-box;width:var(--receipt-width,50mm);padding:3mm 0;margin:0 auto;background:white;color:black;font:9pt/1.3 'Courier New',monospace;overflow-wrap:anywhere}
.thermalStage .thermalTicket{border-inline:3mm solid white}
.thermalTicket .thermalLogo{display:block;width:30mm;height:auto;margin:0 auto 1mm}
.thermalTicket p{margin:.8mm 0;color:inherit;font:inherit}
.thermalBlock,.thermalItems{border-top:1px dashed #000;padding:1.4mm 0;margin:1mm 0}
.thermalItems{list-style:none}.thermalItems li{margin:.6mm 0 1.2mm;break-inside:avoid}
.thermalItems b{display:block}.thermalItems li>div,.thermalLine{display:flex;justify-content:space-between;align-items:baseline;gap:1mm}
.thermalLine strong,.thermalItems strong{white-space:nowrap}.thermalCenter{text-align:center}.thermalActions{justify-content:flex-end}
.thermalActions [data-print]{background:#1b429a;color:white;border:1px solid #1b429a}
@media print {
  html:has(body.thermalPrinting),html.melati-workspace body.thermalPrinting,body.thermalPrinting{margin:0!important;padding:0!important;width:auto;height:auto;min-height:0;background:white;overflow:visible!important}
  body.thermalPrinting > :not(.thermalPreview){display:none!important}
  body.thermalPrinting .thermalPreview[open]{position:static;inset:auto;display:block;box-sizing:border-box;max-width:none;width:100%;height:auto;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:visible;box-shadow:none}
  .thermalPreview::backdrop{background:transparent}
  body.thermalPrinting .thermalStage{padding:0;margin:0;border:0;background:white}
  body.thermalPrinting .thermalTicket{border:0;print-color-adjust:exact}
  body.thermalPrinting :is(.thermalToolbar,.thermalActions){display:none!important}
}
