/* assets/css/thermal-bill.css - Thermal Receipt & KOT Styles */

@page {
  size: 58mm auto;
  margin: 0;
}

body.print-receipt-body {
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  font-family: 'Courier New', Courier, monospace, system-ui;
  color: #000000;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.thermal-receipt {
  width: 58mm;
  max-width: 58mm;
  margin: 0 auto;
  padding: 3mm 2mm;
  font-size: 11px;
  line-height: 1.25;
  background: #FFFFFF;
  color: #000000;
  box-sizing: border-box;
}

/* 80mm option */
.thermal-receipt.width-80mm {
  width: 80mm;
  max-width: 80mm;
  font-size: 13px;
  padding: 4mm;
}

.center-text {
  text-align: center;
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.receipt-header {
  margin-bottom: 3mm;
}

.brand-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 10px;
  font-style: italic;
  margin-top: 1px;
}

.receipt-meta {
  font-size: 9.5px;
  margin-top: 1px;
}

.divider-dashed {
  border-bottom: 1px dashed #000000;
  margin: 2.5mm 0;
}

.divider-single {
  border-bottom: 1px solid #000000;
  margin: 2mm 0;
}

.divider-double {
  border-bottom: 2px solid #000000;
  margin: 2.5mm 0;
}

.receipt-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 1mm;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.receipt-table th {
  padding: 1.5mm 0;
  border-bottom: 1px solid #000000;
  font-weight: 800;
  font-size: 9.5px;
}

.receipt-table td {
  padding: 1.5mm 0;
  vertical-align: top;
}

.item-name-cell {
  word-break: break-word;
}

.modifier-text {
  font-size: 9px;
  color: #222222;
}

.note-text {
  font-size: 8.5px;
  font-style: italic;
}

.bold-qty {
  font-weight: 800;
}

.totals-section {
  font-size: 10.5px;
  margin-top: 1mm;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1mm;
}

.discount-row {
  font-weight: 700;
}

.tax-row {
  font-size: 9.5px;
}

.grand-total-row {
  font-size: 13px;
  font-weight: 900;
  padding-top: 1.5mm;
  margin-top: 1mm;
}

.payment-info {
  font-size: 10px;
  margin: 2mm 0;
}

.upi-qr-block {
  margin: 2mm 0;
  text-align: center;
}

.upi-label {
  font-size: 9.5px;
  font-weight: 800;
  margin-bottom: 1mm;
}

.upi-qr-img {
  width: 34mm;
  height: 34mm;
  display: block;
  margin: 0 auto;
}

.upi-id {
  font-size: 9px;
  font-weight: 700;
  margin-top: 1mm;
}

.upi-apps {
  font-size: 8px;
  margin-top: 0.5mm;
}

.receipt-footer {
  margin-top: 2.5mm;
  font-size: 9.5px;
}

.thank-you-msg {
  font-weight: 800;
}

.bn-msg {
  font-size: 9px;
  margin: 1mm 0;
}

.brand-footer {
  font-size: 8px;
}

/* KOT SPECIFIC */
.kot-title {
  font-size: 14px;
  font-weight: 900;
  border-bottom: 1.5px solid #000000;
  padding-bottom: 1.5mm;
}

.kot-table {
  font-size: 16px;
  font-weight: 900;
  margin-top: 1.5mm;
}

.kot-table-list {
  width: 100%;
  border-collapse: collapse;
}

.kot-item-row td {
  padding: 2mm 0;
  border-bottom: 1px dotted #666666;
}

.kot-qty {
  font-size: 14px;
  font-weight: 900;
  vertical-align: top;
}

.kot-name {
  font-size: 12px;
  font-weight: 800;
}

.kot-size, .kot-mod {
  font-size: 10px;
  margin-top: 0.5mm;
}

.kot-warn {
  font-size: 9.5px;
  font-weight: 800;
  margin-top: 1mm;
}

.kot-general-note {
  font-size: 10px;
  font-weight: 700;
  margin: 1.5mm 0;
}

.kot-footer {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Web Action Bar on Print Preview */
.print-action-bar {
  position: sticky;
  top: 0;
  background: #2B1704;
  color: white;
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn-print-action {
  background: #E0533C;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}

.btn-print-secondary {
  background: #555555;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

@media print {
  .print-action-bar, .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
  }
}
