/* ===============================
   PRINT — FINAL (A4 LANDSCAPE)
   Travel Exchange Reports
   =============================== */

@page {
  size: A4 landscape;
  margin: 12mm 12mm;
}

/* PRINT ONLY */
@media print {

  html,
  body {
    background: #ffffff !important;
    color: #111 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide UI elements */
  .no-print,
  nav,
  header,
  footer,
  .filters,
  .actions,
  .report-badges,
  .section-head-actions,
  .report-tools,
  .scroll-top {
    display: none !important;
  }

  /* MAIN PRINT FRAME */
  .container {
    max-width: none !important;
    margin: 0 auto !important;
    padding-left: 12mm !important;
    padding-right: 12mm !important;
    padding-top: 6mm !important;
    padding-bottom: 6mm !important;
  }

  /* Header spacing */
  .report-header {
    margin-bottom: 6mm !important;
    padding: 0 !important;
    border-bottom: 0 !important;
  }

  .report-title {
    font-size: 16pt !important;
    line-height: 1.15 !important;
    margin: 0 0 1.2mm 0 !important;
  }

  .report-sub {
    font-size: 8.5pt !important;
    line-height: 1.15 !important;
  }

  .report-meta,
  .section-kicker,
  .section-meta-line,
  .report-context-strip,
  .section-stats-grid {
    font-size: 8.4pt !important;
    line-height: 1.15 !important;
  }

  .report-context-strip {
    display: block !important;
    margin: 0 0 5mm 0 !important;
    padding: 2.6mm 3.4mm !important;
    border: 1px solid #d4d8db !important;
    background: #fff !important;
  }

  .section-head-alltours {
    padding: 2.6mm 3.2mm !important;
    background: #f8f8f8 !important;
    border: 1px solid #d9dddf !important;
  }

  .section-stats-grid strong {
    font-size: 9.6pt !important;
    line-height: 1.1 !important;
  }

  /* Tables */
  table,
  .report-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  thead {
    display: table-header-group !important;
  }

  .report-table thead th {
    position: static !important;
    background: #efefef !important;
    font-size: 8.2pt !important;
    line-height: 1.1 !important;
    padding: 1.8mm 2.2mm !important;
    white-space: normal !important;
  }

  .report-table tbody td {
    font-size: 8.8pt !important;
    line-height: 1.12 !important;
    padding: 1.8mm 2.2mm !important;
    vertical-align: top !important;
  }

  th,
  td {
    page-break-inside: avoid !important;
  }

  /* Avoid ugly page breaks */
  .report-section {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Hide Date + Status only in print */
  .alltours-table .col-date,
  .alltours-table .col-status {
    display: none !important;
  }

  .cell-note,
  .inline-flag {
    display: inline !important;
  }
}