/* print.css - Dedicated Print Styles for Thermal 80mm, Invoice A4, and Production SPK */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #appRoot, .modal-overlay, .toast-stack {
    display: none !important;
  }
  #printRoot {
    display: block !important;
    width: 100%;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
  }

  /* Thermal Receipt 80mm / 58mm */
  .print-thermal {
    width: 74mm;
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.35;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
  }
  .print-thermal.w58 {
    width: 54mm;
    font-size: 10px;
  }
  .print-thermal hr {
    border: none;
    border-top: 1px dashed #000;
    margin: 6px 0;
  }

  /* Official Invoice / Kuitansi A4/A5 */
  .print-invoice {
    width: 100%;
    max-width: 190mm;
    margin: 0 auto;
    padding: 8mm;
    font-size: 12px;
    line-height: 1.45;
  }
  .print-invoice table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
  }
  .print-invoice th, .print-invoice td {
    border: 1px solid #cbd5e1;
    padding: 7px 9px;
    text-align: left;
  }
  .print-invoice th {
    background: #f1f5f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-weight: 700;
  }

  /* Production Job Ticket / SPK */
  .print-spk {
    width: 100%;
    max-width: 190mm;
    margin: 0 auto;
    padding: 6mm;
    border: 2px solid #000;
    font-size: 12px;
  }
  .print-spk table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  .print-spk th, .print-spk td {
    border: 1px solid #000;
    padding: 7px 9px;
  }
}
