/**
 * Enterprise Cafeteria POS System
 * Print CSS - Thermal 80mm/58mm Receipts & A4 Corporate Invoices
 */

/* Receipt Preview Modal Styling (On Screen) */
.receipt-preview-container {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #525659;
}

.receipt-paper {
  width: 320px;
  background: #ffffff;
  padding: 18px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.35;
  color: #000000;
}

.receipt-header-center {
  text-align: center;
  margin-bottom: 12px;
}

.receipt-biz-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.receipt-subtext {
  font-size: 11px;
  margin-top: 2px;
}

.receipt-divider {
  border-top: 1px dashed #000000;
  margin: 8px 0;
}

.receipt-double-divider {
  border-top: 2px double #000000;
  margin: 8px 0;
}

.receipt-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  margin-bottom: 8px;
}

.receipt-meta-row {
  display: flex;
  justify-content: space-between;
}

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

.receipt-table th {
  text-align: left;
  border-bottom: 1px solid #000000;
  padding: 4px 0;
}

.receipt-table td {
  padding: 4px 0;
  vertical-align: top;
}

.receipt-table .text-right {
  text-align: right;
}

.receipt-totals {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
}

.receipt-total-row.grand-total {
  font-size: 15px;
  font-weight: 900;
  border-top: 1px dashed #000000;
  border-bottom: 1px dashed #000000;
  padding: 6px 0;
  margin-top: 4px;
}

.receipt-barcode-wrap {
  text-align: center;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.receipt-footer-notes {
  text-align: center;
  font-size: 11px;
  margin-top: 10px;
}

/* Print Media Rules */
@media print {
  body * {
    visibility: hidden;
  }
  
  #printable-receipt-area, #printable-receipt-area * {
    visibility: visible;
  }
  
  #printable-receipt-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 2mm;
    background: transparent;
    box-shadow: none;
  }
  
  @page {
    margin: 0;
    size: auto;
  }
}
