/* ==========================================================
   BITEFLOW POS & CRM — Printing stylesheet
   ========================================================== */

@media print {
  /* Hide all app shell elements */
  body * {
    visibility: hidden;
  }

  .print-area, .print-area * {
    visibility: visible;
  }

  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm; /* standard thermal printer width */
    padding: 2mm;
    margin: 0;
    color: #000 !important;
    background: #fff !important;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.3;
  }

  /* Thermal Receipt Formats */
  .receipt-header {
    text-align: center;
    margin-bottom: 8px;
  }
  .receipt-title {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
  }
  .receipt-divider {
    border-top: 1px dashed #000;
    margin: 6px 0;
  }
  .receipt-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
  }
  .receipt-items {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
  }
  .receipt-items th {
    border-bottom: 1px dashed #000;
    text-align: left;
    font-size: 10px;
    font-weight: bold;
  }
  .receipt-items td {
    padding: 3px 0;
    vertical-align: top;
  }
  .receipt-item-modifiers {
    font-size: 9px;
    padding-left: 8px;
    color: #333;
  }
  .receipt-total-section {
    margin-top: 6px;
  }
  .receipt-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 2px;
  }
  .receipt-total-row.grand-total {
    font-size: 13px;
    font-weight: bold;
    border-top: 1px dashed #000;
    padding-top: 4px;
    margin-top: 2px;
  }
  .receipt-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 10px;
  }
}
