/* shared/receipt.css – on-screen receipt preview, shared by POS and Billing.

   Every rule is scoped under #receiptPreviewContent so the receipt's bare-bones
   thermal styling never leaks into the surrounding page. The print popup uses
   its own copy of these rules (receipt.CSS in shared/receipt.js); this file is
   for the screen preview only. */
#receiptPreviewContent {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: normal;
  width: 260px;
  margin: 0 auto;
  padding: 2px 0 2px;
  color: #000;
  background: #fff;
}
#receiptPreviewContent .dash  { border: none; border-top: 1px dashed #000; margin: 5px 0; }
#receiptPreviewContent .solid { border: none; border-top: 2px solid #000;  margin: 5px 0; }
/* Business name always renders on one line — utils.fitBizName() shrinks the
   font at runtime so long names fit instead of wrapping. */
#receiptPreviewContent .biz-name { font-size: 17px; font-weight: bold; text-align: center; letter-spacing: 1px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; }
#receiptPreviewContent .biz-sub  { font-size: 12px; text-align: center; line-height: 1.7; }
/* Phone + Tax ID share one line. */
#receiptPreviewContent .biz-contact { font-size: 11px; white-space: nowrap; }
#receiptPreviewContent .bill-id   { text-align: center; font-size: 13px; font-weight: bold; padding: 4px 0 1px; }
#receiptPreviewContent .bill-date { text-align: center; font-size: 11px; padding-bottom: 4px; }
#receiptPreviewContent .t     { width: 100%; border-collapse: collapse; }
#receiptPreviewContent .t td  { font-size: 11px; padding: 2px 0; vertical-align: top; }
#receiptPreviewContent .t td.v { text-align: right; white-space: nowrap; }
#receiptPreviewContent .t th  { font-size: 10px; font-weight: bold; padding: 3px 0 2px; border-bottom: 1px solid #000; }
#receiptPreviewContent .t th.r { text-align: right; }
#receiptPreviewContent .iname { font-size: 12px; padding: 4px 0 1px; word-break: break-word; }
#receiptPreviewContent .isub  { font-size: 10px; padding: 0 0 4px 4px; display: flex; justify-content: space-between; }
#receiptPreviewContent .iamt  { font-weight: bold; white-space: nowrap; }
#receiptPreviewContent .tot   { width: 100%; border-collapse: collapse; }
#receiptPreviewContent .tot td { font-size: 11px; padding: 2px 0; }
#receiptPreviewContent .tot td.r { text-align: right; white-space: nowrap; }
#receiptPreviewContent .grand td { font-size: 16px; font-weight: bold; padding: 5px 0; }
#receiptPreviewContent .footer { text-align: center; font-size: 10px; line-height: 1.8; margin-top: 6px; }
#receiptPreviewContent .status-badge { font-size: 11px; font-weight: bold; letter-spacing: 1px; margin-top: 2px; }
