/* Thermal Receipt Printing Styles & Table QR Tent Card Printing */

#thermal-receipt-print-area,
#table-qr-print-area {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  /* When printing thermal receipt */
  #thermal-receipt-print-area:not(:empty),
  #thermal-receipt-print-area:not(:empty) * {
    visibility: visible;
  }

  #thermal-receipt-print-area:not(:empty) {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #000000;
  }

  /* When printing table QR cards */
  #table-qr-print-area:not(:empty),
  #table-qr-print-area:not(:empty) * {
    visibility: visible;
  }

  #table-qr-print-area:not(:empty) {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 6mm;
    background: #ffffff;
    color: #000000;
  }

  @page {
    margin: 4mm;
    size: auto;
  }
}

/* Base Thermal Receipt Styles */
.thermal-receipt {
  font-family: 'Courier New', Courier, monospace, 'Sarabun', sans-serif;
  color: #000000;
  background: #ffffff;
  padding: 6px 8px;
  line-height: 1.25;
  font-size: 12px;
  margin: 0 auto;
}

.thermal-receipt.paper-58mm {
  width: 58mm;
  max-width: 58mm;
}

.thermal-receipt.paper-80mm {
  width: 80mm;
  max-width: 80mm;
  font-size: 13px;
}

.receipt-logo {
  text-align: center;
  margin-bottom: 6px;
}

.receipt-logo img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%) contrast(150%);
}

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

.store-title {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 2px 0;
}

.store-sub {
  font-size: 11px;
  margin: 0 0 3px 0;
}

.store-info {
  font-size: 10px;
  margin: 1px 0;
}

.receipt-divider {
  text-align: center;
  font-weight: bold;
  letter-spacing: -1px;
  margin: 4px 0;
  overflow: hidden;
  white-space: nowrap;
}

.receipt-queue-box {
  text-align: center;
  padding: 6px 0;
  border: 1.5px dashed #000000;
  margin: 6px 0;
}

.queue-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
}

.queue-number {
  display: block;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 2px 0;
}

.order-table {
  display: block;
  font-size: 11px;
}

.receipt-meta {
  font-size: 10px;
  line-height: 1.3;
}

.receipt-items-head {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  border-bottom: 1px solid #000000;
  padding-bottom: 2px;
  margin-bottom: 4px;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.item-col-name {
  flex: 1;
  padding-right: 4px;
  word-break: break-word;
}

.name-text {
  font-weight: bold;
}

.options-text, .note-text {
  font-size: 10px;
  color: #333333;
}

.item-col-qty {
  width: 25px;
  text-align: center;
  font-weight: bold;
}

.item-col-price {
  width: 48px;
  text-align: right;
  font-weight: bold;
}

.receipt-totals {
  margin-top: 4px;
}

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

.total-row.grand-total {
  font-size: 15px;
  font-weight: 900;
  border-top: 1px solid #000000;
  padding-top: 4px;
  margin-top: 3px;
}

.receipt-payment-info {
  margin-top: 4px;
  font-size: 11px;
}

.receipt-footer {
  text-align: center;
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.3;
}

.receipt-footer .thank-you {
  font-weight: bold;
  margin-top: 4px;
  font-size: 11px;
}

/* ========================================================
   Table QR Tent Card & Sticker Printing Styles
   ======================================================== */
.table-tent-single-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  padding: 20px;
}

.table-tent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.table-tent-card {
  box-sizing: border-box;
  background: #ffffff;
  color: #0f172a;
  border: 2px dashed #64748b;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  page-break-inside: avoid;
  break-inside: avoid;
  font-family: 'Prompt', 'Sarabun', sans-serif;
}

.table-tent-card.single-card {
  max-width: 340px;
  margin: 0 auto;
  border: 2px solid #0f172a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.tent-card-header {
  margin-bottom: 6px;
}

.tent-store-name {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.tent-store-sub {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.tent-table-badge {
  background: #0f172a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 20px;
  margin: 8px 0 10px 0;
  display: inline-block;
  letter-spacing: 0.5px;
}

.tent-qr-box {
  background: #ffffff;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.tent-qr-img {
  width: 145px;
  height: 145px;
  display: block;
}

.tent-card-steps {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 10px;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 8px;
}

.tent-step-item {
  margin-bottom: 2px;
}

.tent-step-item strong {
  color: #0f172a;
}

.tent-card-footer {
  font-size: 9px;
  color: #64748b;
  text-align: center;
  border-top: 1px dashed #cbd5e1;
  padding-top: 6px;
  width: 100%;
}
