/* INVOBILLING — thermal.css : thermal printer specific tweaks */
.thermal-paper {
  background: #FFFFFF;
  color: #000000;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  line-height: 1.35;
  width: 100%;
  box-sizing: border-box;
}
.thermal-58 { width: 58mm; padding: 4mm 2mm; }
.thermal-80 { width: 80mm; padding: 5mm 3mm; }

.thermal-header { text-align: center; margin-bottom: 8px; border-bottom: 1px dashed #000; padding-bottom: 6px; }
.thermal-header .biz-name { font-size: 13px; font-weight: 700; }
.thermal-58 .thermal-header .biz-name { font-size: 12px; }
.thermal-header .biz-meta { font-size: 8.5px; margin-top: 2px; line-height: 1.3; }

.thermal-invoice-info { text-align: center; margin: 6px 0; font-size: 9.5px; }
.thermal-invoice-info .inv-no { font-weight: 700; }

.thermal-items { margin: 6px 0; }
.thermal-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 6px; padding: 3px 0; border-bottom: 1px dashed #DDD; font-size: 10px; }
.thermal-item .ti-name { font-weight: 600; }
.thermal-item .ti-qty { font-size: 8.5px; color: #444; grid-column: 1; }
.thermal-item .ti-amount { text-align: right; font-weight: 600; }

.thermal-totals { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #000; }
.thermal-totals .trow { display: flex; justify-content: space-between; padding: 1px 0; font-size: 10px; }
.thermal-totals .trow.grand { font-weight: 700; font-size: 12px; border-top: 1px solid #000; margin-top: 4px; padding-top: 4px; }

.thermal-footer { text-align: center; margin-top: 10px; padding-top: 6px; border-top: 1px dashed #000; font-size: 8.5px; }
.thermal-footer .thanks { font-weight: 700; font-size: 10px; margin-bottom: 2px; }

.thermal-qr { text-align: center; margin: 8px 0; }
.thermal-qr img, .thermal-qr canvas { width: 70px; height: 70px; }

/* Print */
@media print {
  .thermal-paper { box-shadow: none; }
  .no-print { display: none !important; }
  body { background: #fff; }
}
