/* ==========================================================================
   HOTEL BOOKING & PROPERTY MANAGEMENT SYSTEM (PMS)
   Print Engine Styles (80mm POS Thermal Receipt & A4 Master Folio)
   ========================================================================== */

/* Thermal 80mm Mode Preview & Print */
.thermal-receipt-wrap {
  width: 80mm;
  margin: 0 auto;
  background: #fff;
  color: #000;
  padding: 12px 10px;
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.thermal-center {
  text-align: center;
}

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

.thermal-double-divider {
  border-top: 2px dashed #000;
  margin: 8px 0;
}

.thermal-hotel-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.thermal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0;
}

.thermal-table th, .thermal-table td {
  padding: 3px 0;
  font-size: 10px;
}

.thermal-table th {
  border-bottom: 1px dashed #000;
  text-align: left;
}

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

/* A4 Master Folio Invoice Preview & Print */
.a4-invoice-wrap {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #fff;
  color: #1e293b;
  padding: 20mm 15mm;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.a4-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 18px;
}

.a4-brand h1 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.a4-brand p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.a4-invoice-tag {
  text-align: right;
}

.a4-invoice-tag h2 {
  font-size: 26px;
  font-weight: 800;
  color: #c59b27;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.a4-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.a4-meta-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.a4-meta-col p {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.5;
}

.a4-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.a4-table th {
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 12px;
  text-align: left;
}

.a4-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #e2e8f0;
}

.a4-summary-box {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.a4-summary-table {
  width: 320px;
}

.a4-summary-table tr td {
  padding: 6px 10px;
  font-size: 13px;
}

.a4-summary-table tr.grand-total td {
  font-size: 16px;
  font-weight: 800;
  background: #f1f5f9;
  border-top: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  color: #0f172a;
}

.a4-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 20px;
}

.sig-box {
  width: 200px;
  text-align: center;
  border-top: 1px solid #94a3b8;
  padding-top: 6px;
  font-size: 12px;
  color: #64748b;
}

/* Print Overrides */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .no-print, .app-sidebar, .top-navbar, .invoice-switch-bar, .command-palette-trigger {
    display: none !important;
  }

  .app-main, .content-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .thermal-receipt-wrap {
    width: 100% !important;
    max-width: 80mm !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .a4-invoice-wrap {
    width: 100% !important;
    max-width: 210mm !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  @page {
    margin: 5mm;
  }
}
