/* ==========================================================================
   MAUDY KOMPUTER - PRINT STYLESHEET (THERMAL 58mm/80mm & NOTA FAKTUR A4/A5)
   ========================================================================== */

#print-container {
  display: none;
}

@media print {
  /* Hide standard UI */
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #sidebar,
  #top-header,
  #mobile-nav,
  #content-area,
  #toast-container,
  .modal-overlay,
  .btn,
  .no-print {
    display: none !important;
  }

  #print-container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Thermal Receipt Print (80mm / 58mm) */
  .thermal-receipt-print {
    width: 80mm;
    margin: 0 auto;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10pt;
    line-height: 1.35;
    color: #000000;
    padding: 2mm 4mm;
  }

  .thermal-receipt-print.size-58mm {
    width: 58mm;
    font-size: 8.5pt;
    padding: 1mm 2mm;
  }

  .thermal-header {
    text-align: center;
    margin-bottom: 6px;
  }

  .thermal-store-name {
    font-size: 13pt;
    font-weight: bold;
    text-transform: uppercase;
  }

  .thermal-address {
    font-size: 8pt;
    margin: 2px 0;
  }

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

  .thermal-table {
    width: 100%;
    border-collapse: collapse;
  }

  .thermal-table td {
    padding: 2px 0;
    vertical-align: top;
  }

  .thermal-row {
    display: flex;
    justify-content: space-between;
    margin: 2px 0;
  }

  .thermal-footer {
    text-align: center;
    margin-top: 8px;
    font-size: 8pt;
  }

  /* Nota Faktur Resmi (Standard A4 / A5 Document Print) */
  .doc-print-sheet, .doc-invoice-sheet {
    width: 100%;
    max-width: 190mm;
    margin: 0 auto;
    padding: 8mm 10mm;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: #000000;
    background: #FFFFFF;
  }

  .doc-print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #000000;
    padding-bottom: 5mm;
    margin-bottom: 5mm;
  }

  .doc-store-brand h1 {
    font-size: 16pt;
    font-weight: 800;
    margin-bottom: 2px;
  }

  .doc-doc-title {
    text-align: right;
  }

  .doc-doc-title h2 {
    font-size: 13pt;
    font-weight: 800;
    text-transform: uppercase;
    color: #000000;
  }

  .doc-meta-table {
    width: 100%;
    margin-bottom: 5mm;
  }

  .doc-meta-table td {
    padding: 3px 4px;
    font-size: 9.5pt;
    vertical-align: top;
  }

  .doc-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 5mm 0;
  }

  .doc-data-table th {
    background-color: #F1F5F9;
    border: 1px solid #000000;
    padding: 6px 8px;
    font-size: 9pt;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
  }

  .doc-data-table td {
    border: 1px solid #000000;
    padding: 6px 8px;
    font-size: 9pt;
  }

  .doc-terbilang-box {
    background: #F8FAFC;
    border: 1px dashed #64748B;
    padding: 6px 10px;
    font-size: 9pt;
    font-style: italic;
    margin: 4mm 0;
  }

  .doc-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 8mm;
    page-break-inside: avoid;
  }

  .signature-box {
    text-align: center;
    width: 45mm;
  }

  .signature-line {
    border-bottom: 1px solid #000000;
    margin-top: 16mm;
    margin-bottom: 3px;
  }

  /* Barcode Labels Sheet */
  .barcode-labels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5mm;
  }

  .barcode-label-card {
    border: 1px dashed #64748B;
    padding: 4mm;
    text-align: center;
    border-radius: 4px;
    page-break-inside: avoid;
  }
}
