:root {
  --blue: #074b8f;
  --navy: #102d4e;
  --sky: #7dbbe2;
  --ink: #172e45;
  --muted: #65768a;
  --line: #e3eaf1;
  --bg: #f3f6fa;
  --green: #18765f;
  --red: #ad3e39;
  --amber: #8c6420;
  --radius: 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.journal-pager { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:0 0 18px; }
.journal-pager .page-number { width:76px; min-height:36px; padding:7px 10px; }
.journal-pager button:disabled { cursor:default; }
.tlb-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.tlb-grid > div { padding:14px; border-bottom:1px solid var(--line); border-right:1px solid var(--line); min-width:0; }
.tlb-value { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.tlb-sheet .panel-head { align-items:flex-start; gap:12px; flex-wrap:wrap; }
.blank-sheet { background:#fff; }
.blank-line { min-height:58px; border-bottom:1px solid var(--line); }
.defect-item { padding:16px; border-left:3px solid var(--sky); background:#f5f9fd; margin-bottom:12px; overflow-wrap:anywhere; }
.defect-item:last-child { margin-bottom:0; }
.defect-item.overdue { border-color:var(--red); background:#fff5f4; }
.defect-item p, .mel-details p { white-space:pre-wrap; line-height:1.6; }
.mel-details { display:grid; gap:6px; margin-top:12px; font-size:13px; }
.mel-details p { margin:0; }
@media(max-width:500px) { .tlb-grid { grid-template-columns:1fr; } .journal-pager > .row { flex-wrap:wrap; } }
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #85c4ee;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  background: white;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.boot {
  padding: 80px;
  text-align: center;
}
.brand {
  display: block;
  width: 236px;
  height: auto;
  max-width: 100%;
}
.topbar {
  height: 94px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.fsa-link {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.external {
  font-size: 16px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.avatar {
  width: 36px;
  height: 36px;
  background: #eaf2fa;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--blue);
}
.identity small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 94px);
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 25px 14px;
  position: sticky;
  top: 94px;
  height: calc(100vh - 94px);
  display: flex;
  flex-direction: column;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 13px 15px;
  border-radius: 10px;
  color: #52677c;
  white-space: nowrap;
}
.nav-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: #f5f8fc;
}
.nav-item.active {
  background: #eaf2fb;
  color: var(--blue);
  font-weight: 700;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 15px 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 14px 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.main {
  max-width: 1600px;
  width: 100%;
  padding: 34px 38px 60px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
  font-weight: 700;
}
.subtle {
  color: var(--muted);
  line-height: 1.55;
}
.page-heading p {
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 16px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  min-height: 40px;
}
.btn:hover {
  background: #f5f8fc;
  text-decoration: none;
}
.btn.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.btn.primary:hover {
  background: #063b71;
}
.btn.danger {
  color: var(--red);
  border-color: #ead2d0;
}
.btn.small {
  padding: 8px 12px;
  font-size: 12px;
  min-height: 34px;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.row.end {
  justify-content: flex-end;
}
.gap-top {
  margin-top: 20px;
}
.hero {
  background: var(--navy);
  color: white;
  padding: 30px 32px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}
.hero:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  right: -100px;
  top: -120px;
  pointer-events: none;
}
.hero h2 {
  font-size: 24px;
  margin: 10px 0;
}
.hero p {
  color: #b8cfe4;
  line-height: 1.6;
  margin: 0;
}
.hero .eyebrow {
  color: #8fc8ef;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero .btn {
  background: white;
  border-color: white;
  color: var(--blue);
}
.hero-route {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
}
.airport-code {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.airport-city {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.hero .airport-city {
  color: #a8c4dd;
}
.flight-line {
  height: 1px;
  background: #6e9dbe;
  min-width: 42px;
  flex: 1;
  position: relative;
}
.flight-line:after {
  content: "✈";
  position: absolute;
  left: 50%;
  top: -12px;
  font-size: 21px;
  color: #8fc8ef;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}
.stat strong {
  font-size: 27px;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel h2 {
  font-size: 17px;
  margin: 0;
}
.panel-body {
  padding: 24px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  letter-spacing: 0.35px;
  color: var(--muted);
  font-weight: 600;
  background: #fafbfd;
  white-space: nowrap;
  text-transform: uppercase;
}
th,
td {
  padding: 15px 22px;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td {
  line-height: 1.55;
}
tbody tr:hover {
  background: #fafcfe;
}
.number,
.time {
  font-variant-numeric: tabular-nums;
}
.time {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.route-cell {
  font-weight: 600;
  white-space: nowrap;
}
.route-arrow {
  color: #94a7ba;
  margin: 0 10px;
}
.weekdays {
  max-width: 240px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  background: #edf3fa;
  color: #426487;
}
.badge.green {
  background: #e6f4ee;
  color: var(--green);
}
.badge.amber {
  background: #fff3df;
  color: var(--amber);
}
.badge.red {
  background: #fcebe9;
  color: var(--red);
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters label {
  min-width: 150px;
}
.filters .search {
  flex: 1;
  max-width: 380px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #4a5e73;
  margin-bottom: 16px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7e1eb;
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
  min-height: 42px;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #74a9d4;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: var(--blue);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0;
}
.filters .field {
  margin: 0;
}
.toolbar {
  display: flex;
  gap: 6px;
  background: #e9eff6;
  padding: 4px;
  border-radius: 10px;
}
.toolbar button {
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 9px 14px;
  color: var(--muted);
}
.toolbar button.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 3px #193d5b15;
}
.empty {
  text-align: center;
  padding: 44px 22px;
  color: var(--muted);
  line-height: 1.7;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 8px;
}
.notice {
  border: 1px solid #cfe0ed;
  background: #eef6fc;
  color: #375d7c;
  border-radius: 10px;
  padding: 14px 17px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.notice.warn {
  background: #fff8ed;
  border-color: #efdfbf;
  color: #805d29;
}
.notice.error {
  background: #fff1f0;
  border-color: #f2cfca;
  color: var(--red);
}
.fleet-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}
.fleet-card header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fleet-card h2 {
  font-size: 19px;
  margin: 0 0 7px;
}
.fleet-card .aircraft-body {
  padding: 20px 22px;
}
.fleet-card .airport-code {
  font-size: 21px;
}
.aircraft-icon {
  height: 42px;
  width: 42px;
  color: #88b8d9;
}
.mini-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.definition {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 2fr);
  font-size: 13px;
  gap: 0;
}
.definition dt,
.definition dd {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  overflow-wrap: anywhere;
}
.definition dt {
  color: var(--muted);
}
.definition dd {
  font-weight: 500;
  white-space: pre-wrap;
}
.timeline-item {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child {
  border: 0;
}
.timeline-item h3 {
  font-size: 15px;
  margin: 0;
}
.timeline-item p {
  line-height: 1.6;
  margin: 10px 0;
  white-space: pre-wrap;
}
.technical {
  margin: 16px 0 0;
  padding: 14px 18px;
  background: #f4f8fc;
  border-left: 3px solid #78acd3;
  border-radius: 0 8px 8px 0;
}
.technical small {
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.inline-error {
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
.login-wrap {
  min-height: calc(100vh - 94px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-brand {
  padding: 90px 10%;
  background: #102d4e;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-brand h1 {
  font-size: 47px;
  line-height: 1.15;
  letter-spacing: -1.6px;
  max-width: 410px;
  margin: 18px 0;
}
.login-brand p {
  color: #a9c4dc;
  font-size: 16px;
  line-height: 1.7;
  max-width: 340px;
}
.login-brand .orbit {
  width: 360px;
  height: 360px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  position: absolute;
  bottom: -210px;
  right: -100px;
}
.login-brand .flight-line {
  flex: 0;
  margin-top: 30px;
  max-width: 220px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  background: #fafcfe;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 27px;
  margin: 0 0 12px;
}
.login-form .field {
  margin-top: 20px;
}
.login-form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
}
.login-form .security {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
}
.demo-strip {
  background: #fff2d9;
  padding: 9px 24px;
  text-align: center;
  font-size: 12px;
  color: #805d29;
}
.demo-select {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.login-badge {
  letter-spacing: 2px;
  color: #8fc8ef;
  font-size: 11px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #c6dceb;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 15px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(500px, 90vw);
  z-index: 100;
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px #18375530;
  display: none;
  line-height: 1.5;
}
#toast.show {
  display: block;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  max-width: 850px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #102d4e33;
}
dialog::backdrop {
  background: #0e294c70;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 23px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin: 0;
  font-size: 22px;
}
.dialog-body {
  padding: 26px;
}
.close {
  border: 0;
  background: #edf2f7;
  font-size: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
}
.code-text {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.7;
  font: inherit;
}
.section-title {
  font-size: 15px;
  margin: 24px 0 16px;
}
.print-only {
  display: none;
}
.success-icon {
  color: var(--green);
}
.table-action {
  white-space: nowrap;
}
.flow-nav {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}
.flow-nav strong {
  color: var(--blue);
}
@media (min-width: 1600px) {
  .main {
    padding: 40px 55px;
  }
  .brand {
    width: 255px;
  }
}
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .main {
    padding: 26px 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .grid-three {
    grid-template-columns: 1fr 1fr;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 20px;
    padding: 26px;
  }
  .sidebar {
    padding: 20px 8px;
  }
  .nav-item {
    gap: 9px;
    padding: 13px 10px;
  }
  th,
  td {
    padding: 14px 16px;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: 76px;
    padding: 12px 20px;
  }
  .brand {
    width: 185px;
  }
  .top-actions {
    gap: 12px;
  }
  .identity {
    padding-left: 12px;
  }
  .identity .user-text,
  .utc-top {
    display: none;
  }
  .layout {
    display: block;
    min-height: calc(100vh - 76px);
  }
  .sidebar {
    position: sticky;
    top: 76px;
    height: auto;
    padding: 7px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    z-index: 9;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .nav-item {
    padding: 10px 13px;
    font-size: 12px;
  }
  .nav-item svg {
    width: 16px;
    height: 16px;
  }
  .sidebar-bottom,
  .nav-divider {
    display: none;
  }
  .main {
    padding: 25px 18px 50px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading p {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat strong {
    font-size: 25px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-route {
    max-width: 500px;
  }
  .grid-three {
    grid-template-columns: 1fr 1fr;
  }
  .hero h2 {
    font-size: 22px;
  }
  .login-wrap {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 40px 28px;
    min-height: 240px;
  }
  .login-brand h1 {
    font-size: 35px;
    margin: 12px 0;
  }
  .login-brand p {
    font-size: 14px;
  }
  .login-brand .flight-line {
    display: none;
  }
  .login-panel {
    padding: 35px 25px;
  }
  .filters {
    gap: 10px;
  }
  .filters .field {
    min-width: 120px;
    flex: 1;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body,
  .timeline-item {
    padding: 18px;
  }
  .top-actions .btn {
    padding: 8px;
    font-size: 12px;
  }
}
@media (max-width: 500px) {
  .grid-three,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .brand {
    width: 160px;
  }
  .topbar {
    padding: 12px 14px;
  }
  .top-actions {
    gap: 8px;
  }
  .identity {
    border: 0;
    padding: 0;
  }
  .fsa-link {
    font-size: 12px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .page-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .hero {
    padding: 22px;
  }
  .airport-code {
    font-size: 28px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 23px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-head {
    padding: 20px;
  }
  .dialog-head h2 {
    font-size: 20px;
  }
  .definition {
    grid-template-columns: 1fr 1fr;
  }
  .meta-grid {
    gap: 15px;
  }
  .toolbar button {
    font-size: 12px;
    padding: 8px;
  }
  .sidebar nav {
    scrollbar-width: thin;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
@media print {
  .topbar,
  .sidebar,
  .page-heading .btn,
  #toast,
  .demo-strip {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .main {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  .btn {
    display: none;
  }
  .print-only {
    display: block;
  }
  dialog {
    position: static;
    max-height: none;
    width: 100%;
    box-shadow: none;
  }
}
.account-button {
  border: 0;
}
.schedule-mobile {
  display: none;
}
.mobile-route {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-route:last-child {
  border: 0;
}
.mobile-route .airport-city {
  max-width: 125px;
  line-height: 1.6;
}
.mobile-route .time {
  margin-bottom: 8px;
}
.mobile-route .weekdays {
  max-width: none;
}
.mobile-route .row.between.gap-top {
  align-items: flex-start;
}
@media (max-width: 650px) {
  .schedule-desktop {
    display: none;
  }
  .schedule-mobile {
    display: block;
  }
}

/* TLB: one flight page, one REPORT / ACTION pair per defect. */
.tlb-sheet .tlb-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.tlb-report-block { border-top:1px solid var(--line); }
.tlb-block-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; background:#edf4fa; }
.tlb-report-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); }
.tlb-report-columns > div { padding:18px; min-width:0; overflow-wrap:anywhere; }
.tlb-report-columns > div + div { border-left:1px solid var(--line); }
.tlb-report-columns h3 { font-size:12px; color:var(--blue); letter-spacing:.06em; margin:0 0 14px; }
.preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.tlb-action { border-bottom:1px solid var(--line); padding-bottom:16px; margin-bottom:16px; }
.tlb-signature { color:var(--muted); font-size:12px; line-height:1.6; }
.tlb-form-meta { display:flex; flex-wrap:wrap; gap:8px 20px; color:var(--muted); margin-bottom:24px; }
.tlb-form-meta strong { color:var(--blue); }
.tlb-form-section { background:#edf4fa; color:var(--blue); font-size:12px; letter-spacing:.06em; padding:12px; margin:22px 0 16px; border-radius:6px; }
.defect-input { border:1px solid var(--line); border-radius:8px; padding:12px; margin-bottom:12px; }
#technical-form fieldset { min-width:0; margin:16px 0; border:1px solid var(--line); border-radius:8px; padding:16px; }
#technical-form legend { font-weight:700; color:var(--blue); padding:0 6px; }
.mel-catalog { margin-bottom:18px; }
.mel-catalog summary { cursor:pointer; font-weight:700; color:var(--blue); }
#mel-results { max-height:340px; overflow:auto; margin-top:12px; }
#mel-results table { min-width:500px; }
#mel-results small { display:block; margin-top:4px; color:var(--muted); }
#mel-selection { margin-bottom:16px; }
@media(max-width:650px) {
  .tlb-sheet .tlb-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tlb-report-columns { grid-template-columns:1fr; }
  .tlb-report-columns > div + div { border-left:0; border-top:1px solid var(--line); }
  .tlb-block-head { flex-wrap:wrap; }
  #technical-form fieldset { padding:12px; }
}
@media print { .tlb-sheet button, .journal-pager button { display:none; } .tlb-report-block { break-inside:avoid; } }
.tlb-sheet .tlb-grid > div:nth-child(n+5):nth-child(-n+12) { grid-column:span 2; }
@media(max-width:650px) {
  .tlb-sheet .tlb-grid > div:nth-child(n+5):nth-child(-n+12) { grid-column:span 1; }
  #mel-results table { min-width:0; width:100%; }
  #mel-results thead { display:none; }
  #mel-results tbody, #mel-results tr, #mel-results td { display:block; }
  #mel-results tr { border-bottom:1px solid var(--line); padding:8px 0; }
  #mel-results td { border:0; padding:5px 8px; white-space:normal; }
  #mel-results td:first-child { display:none; }
  #mel-results td:last-child .btn { width:100%; }
}
/* The same typeface and digit proportions are used throughout the portal. */
input,select,textarea,button { font-family:inherit; font-stretch:normal; }
.login-brand { isolation:isolate; }
.login-snowflake { position:absolute; width:86%; max-width:813px; height:auto; right:-20%; top:10%; opacity:.14; filter:grayscale(1) invert(1); mix-blend-mode:screen; transform:rotate(-12deg); pointer-events:none; z-index:-1; }
.login-brand h1,.login-brand p { position:relative; }
.login-brand p { max-width:29rem; line-height:1.75; }
.sidebar { overflow:hidden; }
.sidebar nav { overflow-y:auto; }
.nav-item { white-space:normal; line-height:1.35; }
.mini-label { display:block; }
.meta-grid strong { display:block; }
.panel > .stats { margin:20px; }
@media(max-width:800px) { .nav-item { white-space:nowrap; } .sidebar:after { display:none; } }
@media(max-width:500px) { .meta-grid { grid-template-columns:1fr; } .page-heading { flex-wrap:wrap; } }
.sidebar:after { content:''; position:absolute; pointer-events:none; width:320px; height:320px; border:1px solid #ffffff0a; border-radius:50%; bottom:-140px; left:30px; }
.sort-button { background:none; border:0; color:inherit; font:inherit; padding:0; cursor:pointer; text-align:left; display:flex; gap:8px; align-items:center; }
.sort-button span { opacity:.45; }
th[aria-sort] .sort-button { color:#075baf; }
.tlb-form-meta { flex-wrap:wrap; }

.login-brand > .flight-line { display:none; }

.gap-bottom { margin-bottom:24px; }

/* Fleet hierarchy and account details share the portal typography. */
.fleet-group { margin-bottom: 36px; }
.fleet-group-title { padding-bottom: 12px; border-bottom: 1px solid var(--line, #dce5ef); }
.fleet-type { margin-top: 24px; }
.fleet-type > h3 { color: var(--muted, #60728a); font-size: 16px; margin-bottom: 14px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.booking-actions .btn { min-height: 46px; font-size: 14px; padding: 12px 18px; }
.btn.disabled { opacity: .5; cursor: not-allowed; }
.account-details { display: grid; gap: 8px; }
.account-details > strong { font-size: 20px; margin-bottom: 8px; }
.company-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 20px; }
.company-summary strong { display: block; margin-top: 6px; }
@media (max-width: 640px) { .booking-actions { flex-direction: column; } .booking-actions .btn { width: 100%; justify-content: center; } }

.booking-actions .btn { flex: 1; }

.own-airline td { font-weight: 700; }
.alert-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy); cursor: pointer; flex-shrink: 0; }
.alert-button svg { width: 22px; height: 22px; }
#flight-alert-count { position: absolute; top: -5px; right: -8px; min-width: 20px; height: 20px; padding: 2px 5px; border-radius: 12px; background: var(--red); color: white; font-size: 11px; font-weight: 700; }
.audit-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.audit-toolbar .field { min-width: 180px; }
@media(max-width:640px) { .audit-toolbar .row { flex-wrap: wrap; } }

.flight-alert-list { display: grid; gap: 14px; }
.flight-alert-item { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.flight-alert-item.unread { border-left: 4px solid var(--blue); background: #f7faff; }
.flight-alert-item > .row { gap: 12px; align-items: flex-start; }
.flight-alert-item strong { overflow-wrap: anywhere; line-height: 1.5; }
.flight-alert-route, .flight-alert-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.flight-alert-action { display: flex; justify-content: flex-end; margin-top: 16px; }
@media(max-width:640px) { .flight-alert-item { padding: 14px; } .flight-alert-action .btn { width: 100%; white-space: normal; } }

.own-pilot td { font-weight:700; }
.own-pilot td strong { font-weight:inherit; }

.management-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
@media(max-width:640px) { .management-links .btn { width:100%; white-space:normal; } }

.aircraft-card { padding:0; width:100%; text-align:left; color:inherit; font:inherit; cursor:pointer; transition:box-shadow .15s,border-color .15s; }
.aircraft-card:hover { border-color:#86b5dc; box-shadow:0 5px 18px #0c386316; }
.aircraft-card-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:20px; border-bottom:1px solid var(--line); }
.aircraft-card-head > strong { font-size:20px; }
.aircraft-card-body { display:block; padding:20px; }
.aircraft-card-body > .subtle,.aircraft-card-open { display:block; }
.aircraft-card-open { margin-top:20px; color:var(--blue); font-weight:700; }
.aircraft-photo { display:block; max-width:100%; max-height:260px; object-fit:contain; margin:0 auto 18px; border-radius:12px; }
.aircraft-summary { margin-bottom:20px; }
.aircraft-detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.aircraft-detail-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
@media(max-width:640px) { .aircraft-detail-meta { grid-template-columns:1fr; } .aircraft-detail-actions .btn { width:100%; } }
