.flights-actions { margin: 0 0 1rem; }
.flights-page nav { margin-bottom: 1rem; }
/* One flight roster serves both the screen and the printed report. */
.flights-page { max-width: 1150px; }
.flights-print {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}
.flights-print .flight-label-col { width: 15%; }
.flights-print th, .flights-print td {
  border: 1px solid #ccc;
  padding: 16px;
  color: #222;
  letter-spacing: normal;
  text-transform: none;
}
.flights-print-columns { border-top: 5px solid #bf2026; }
.flights-print-columns th { text-align: center; font-weight: 700; background: #fff; }
.flights-print-flight { scroll-margin-top: 100px; }
.flights-print-flight th { text-align: left; vertical-align: middle; font-weight: 700; }
.flights-print-flight td { vertical-align: top; }
.flights-print-flight:nth-child(odd) { background: #fff; }
.flights-print-flight:nth-child(even) { background: #eee; }
.flights-print-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
}
.flights-print-members > div { min-width: 0; overflow-wrap: anywhere; }
.flights-print-members span { white-space: nowrap; }
@media screen {
  .flights-print-title { display: none; }
}
@media screen and (max-width: 900px) {
  .flights-print-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flights-print .flight-label-col { width: 20%; }
}
@media screen and (max-width: 560px) {
  .flights-print-members { grid-template-columns: minmax(0, 1fr); }
  .flights-print .flight-label-col { width: 25%; }
  .flights-print th, .flights-print td { padding: 10px; }
}

@page { size: letter portrait; margin: 0.45in; }

@media print {
  html, body, body.has-fixed-header {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #111 !important;
    font-family: Arial, sans-serif;
  }
  #header, #footer, #navPanel, #titleBar, .skel-layers-fixed,
  .flights-page > .page-title, .flights-actions,
  .flights-page > nav { display: none !important; }
  .flights-page { width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 0; }
  .flights-page, .flights-page * { box-sizing: border-box; }
  .flights-print {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    font-size: 9pt;
    line-height: 1.3;
  }
  .flights-print .flight-label-col { width: 15%; }
  .flights-print thead { display: table-header-group; }
  .flights-print th, .flights-print td {
    color: #111;
    padding: 7pt;
    border: 0.5pt solid #bbb;
    white-space: normal;
    letter-spacing: normal;
    text-transform: none;
  }
  .flights-print .flights-print-title {
    border: 0;
    padding: 0 0 16pt;
    text-align: center;
    background: white;
  }
  .flights-print-title h1 { font-size: 18pt; line-height: 1.2; margin: 0 0 5pt; color: #111; }
  .flights-print-title p { font-size: 12pt; margin: 0; }
  .flights-print-columns { border-top: 4pt solid #bf2026; }
  .flights-print-columns th { text-align: center; font-size: 10pt; }
  .flights-print-flight { break-inside: avoid; page-break-inside: avoid; }
  .flights-print-flight th { text-align: left; vertical-align: middle; }
  .flights-print-flight td { vertical-align: top; }
  .flights-print-flight:nth-child(even) { background: #eee; }
  .flights-print-members {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5pt 9pt;
  }
  .flights-print-members > div { overflow-wrap: anywhere; }
  .flights-print-members span { white-space: nowrap; }
  .flights-print { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
