/* ==========================================================================
   Receipts and printable reports (on-screen preview + print).
   These always render as black-on-white paper, in both themes.
   ========================================================================== */
#receiptPrintArea, #reportPrintArea{ display: none; }

.receipt-doc{
  width: 100%; max-width: 340px; margin: var(--sp-3) auto 0; padding: 18px 16px;
  background: #fff; color: #111; border: 1px dashed #B9C3D3; border-radius: 6px;
  font: 500 12.5px/1.55 "Inter", system-ui, sans-serif;
}
.receipt-doc .rc-logo{ text-align: center; }
.receipt-doc .rc-logo img{ height: 50px; width: 50px; object-fit: cover; border-radius: 8px; }
.receipt-doc .rc-title{ text-align: center; font: 800 16px/1.3 "Poppins", sans-serif; letter-spacing: .04em; }
.receipt-doc .rc-sub{ text-align: center; font-size: 11px; color: #444; }
.receipt-doc .rc-kind{ text-align: center; margin: 6px 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #222; }
.receipt-doc hr{ border: none; border-top: 1px dashed #333; margin: 8px 0; }
.receipt-doc .rc-row{ display: flex; justify-content: space-between; gap: 10px; }
.receipt-doc .rc-row span:last-child{ text-align: right; font-variant-numeric: tabular-nums; }
.receipt-doc .rc-items .rc-row{ margin-bottom: 3px; }
.receipt-doc .rc-total{ font-weight: 800; font-size: 14px; }
.receipt-doc .rc-balance{ font-weight: 800; }
.receipt-doc .rc-foot{ text-align: center; margin-top: 12px; font-size: 10.5px; color: #444; }
.receipt-doc .rc-extra{ font-size: 11.5px; line-height: 1.5; }
.receipt-doc .rc-sign{ margin-top: 14px; }
.receipt-doc .rc-sign-line{ margin-bottom: 10px; }

.report-doc{ font-family: "Inter", sans-serif; color: #111; width: 100%; }
.report-doc .rp-logo{ text-align: center; }
.report-doc .rp-logo img{ height: 56px; width: 56px; object-fit: cover; border-radius: 8px; }
.report-doc .rp-title{ text-align: center; font: 800 20px/1.3 "Poppins", sans-serif; letter-spacing: .03em; }
.report-doc .rp-sub{ text-align: center; font-size: 11px; color: #444; }
.report-doc .rp-meta{ text-align: center; font-size: 11px; color: #444; margin-bottom: 12px; }
.report-doc .rp-totals{ font-weight: 700; color: #111; }
.report-doc hr{ border: none; border-top: 1px solid #333; margin: 10px 0; }
.report-doc table{ width: 100%; border-collapse: collapse; font-size: 11px; }
.report-doc th{ position: static; text-align: left; border-bottom: 2px solid #111; padding: 5px 6px; background: none; color: #111; font-size: 10.5px; }
.report-doc td{ padding: 5px 6px; border-bottom: 1px solid #ccc; color: #111; }
.report-doc .rp-num{ text-align: right; }
.report-doc .rp-foot{ text-align: center; margin-top: 14px; font-size: 10.5px; color: #444; }

@media print{
  body{ background: #fff; }
  body *{ visibility: hidden; }
  #receiptPrintArea, #receiptPrintArea *, #reportPrintArea, #reportPrintArea *{ visibility: visible; }
  #receiptPrintArea, #reportPrintArea{ display: block; position: absolute; top: 0; left: 0; width: 100%; }
  #receiptPrintArea .receipt-doc{ border: 0; margin: 0 auto; }
  .corner-actions, .bottom-nav, .toast{ display: none !important; }
}
