:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #17202a;
  --headertext: #a4a1a1;
  --muted: #5e6b78;
  --line: #d8dee7;
  --accent: #1f6f8b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ops-header {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
}

.ops-brand {
  color: var(--text);
  flex: 0 0 auto;
  font-weight: 650;
  text-decoration: none;
}

.ops-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  justify-content: flex-end;
}

.ops-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 8px 10px;
  text-decoration: none;
}

.ops-nav a[aria-current="page"] {
  background: #e9f3f6;
  color: var(--accent);
}

.ops-main {
  margin: 0 auto;
  max-width: 1320px;
  padding: 32px 24px;
}

.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 48px auto;
  max-width: 380px;
  padding: 24px;
}

.login-panel h1,
.page-heading h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 16px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  gap: 6px;
}

.login-form input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 10px 14px;
}

.ops-button-secondary {
  background: #eef3f7;
  border: 1px solid var(--line);
  color: var(--text);
}

.logout-form {
  margin: 0;
}

.form-error {
  background: #fff3f1;
  border: 1px solid #e2aaa1;
  border-radius: 6px;
  color: #8b2f22;
  padding: 10px 12px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.page-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.page-heading-row {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.ops-page {
  display: grid;
  gap: 20px;
}

.ops-subtitle {
  color: var(--muted);
  margin: 0;
}

.airport-header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
  background-color: #333333;
}

.airport-header-main {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.8fr);
}

.airport-identity {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  align-content: center;
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #a4a1a1;
  font-size: 8px;
}

.airport-identity .eyebrow {
  margin-bottom: 2px;
}


.airport-identity h1 {
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}

.airport-identity h1 a {
  color: var(--headertext);
  text-decoration: none;
}

.airport-identity .ops-subtitle {
  color: #fff;
  font-size: 2.6em;
}

.airport-country {
  color: var(--headertext);
  font-size: 2em;
  margin: 0;
}

.airport-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
}

.airport-metric {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 64px;
  min-width: 0;
  padding: 9px 10px;
}

.airport-metric i {
  color: var(--accent);
  font-size: 0.95rem;
  grid-row: 1 / span 2;
  line-height: 1;
  text-align: center;
}

.airport-metric i::before {
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 750;
  min-width: 1em;
}

.airport-metric .fa-cloud-sun::before {
  content: "WX";
}

.airport-metric .fa-wind::before {
  content: "KT";
}

.airport-metric .fa-location-arrow::before {
  content: "HDG";
}

.airport-metric .fa-plane-departure::before {
  content: "RWY";
}

.airport-metric .fa-clock::before {
  content: "LT";
}

.airport-metric-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.1;
  text-transform: uppercase;
}

.airport-metric-value {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ops-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.ops-stack {
  display: grid;
  gap: 16px;
}

.ops-group,
.ops-stack > section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.ops-group:first-child,
.ops-stack > section:first-child {
  border-top: 0;
  padding-top: 0;
}

.ops-group h2,
.ops-stack h2 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.ops-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ops-controls label {
  color: var(--muted);
  display: grid;
  font-size: 0.8rem;
  font-weight: 650;
  gap: 4px;
}

.ops-controls .ops-check {
  align-items: center;
  display: flex;
  min-height: 38px;
}

.ops-date-nav {
  align-items: end;
  display: grid;
  gap: 4px;
  grid-template-columns: 36px minmax(142px, max-content) 36px;
}

.ops-date-step {
  align-items: center;
  background: #eef3f7;
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.ops-controls input,
.ops-controls select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

.ops-controls input[type="number"] {
  width: 72px;
}

.ops-controls input[type="checkbox"] {
  min-height: auto;
}

.ops-state {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  margin: 0;
  padding: 10px 12px;
}

.ops-state-error {
  background: #fff3f1;
  border-color: #e2aaa1;
  color: #8b2f22;
}

.ops-table-wrap {
  overflow-x: auto;
}

.ops-timeline {
  display: grid;
  gap: 12px;
  overflow-x: auto;
}

.ops-gantt {
  color: var(--text);
  min-width: 980px;
}

.ops-gantt-header,
.ops-gantt-row {
  display: grid;
  grid-template-columns: 138px minmax(720px, 1fr);
}

.ops-gantt-header {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  min-height: 28px;
  text-transform: uppercase;
}

.ops-gantt-scale-wrap {
  min-width: 0;
  position: relative;
}

.ops-gantt-scale {
  min-height: 28px;
  position: relative;
}

.ops-gantt-tick {
  border-left: 1px solid #cfd7e2;
  bottom: 0;
  padding-left: 5px;
  position: absolute;
  top: 0;
  transform: translateX(-1px);
  white-space: nowrap;
}

.ops-gantt-body {
  display: grid;
}

.ops-gantt-row {
  border-bottom: 1px solid var(--line);
  min-height: 30px;
}

.ops-gantt-aircraft {
  align-content: center;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 3px 7px;
}

.ops-gantt-aircraft strong,
.ops-gantt-aircraft span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-gantt-aircraft strong {
  font-size: 0.72rem;
}

.ops-gantt-aircraft span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
}

.ops-gantt-aircraft a,
.ops-gantt-block {
  color: #327db6;
  text-decoration: none;
}

.ops-gantt-lane {
  background: linear-gradient(90deg, #edf2f7 1px, transparent 1px) 0 0 / 25% 100%;
  min-height: 30px;
  overflow: hidden;
  position: relative;
}

.ops-gantt-block {
  align-items: center;
  background: #dff0f4;
  border: 1px solid #8fc2d0;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
  padding: 2px 2px;
  position: absolute;
  top: 3px;
  z-index: 2;
}

.ops-gantt-block-planned {
  background: #dff0f4;
  border-color: #8fc2d0;
  border-left-color: var(--accent);
}

.ops-gantt-block-operational {
  background: #e8f5df;
  border-color: #82b66e;
  border-left-color: #41842f;
  color: #1f5f18;
}

.ops-gantt-block-complete {
  background: #1f5f18;
  border-color: #b8d4e4;
  border-left-color: #77aeca;
  color: #e8f5df;
}

.ops-gantt-block-delayed {
  border-left-color: #c83737;
}

.ops-gantt-now-line {
  background: #d32828;
  bottom: 0;
  box-shadow: 0 0 0 1px rgba(211, 40, 40, 0.16);
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(-1px);
  width: 2px;
  z-index: 4;
}

.ops-gantt-block-content {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ops-gantt-block-content span {
  flex: 0 1 auto;
  font-family: "Andale Mono", "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-gantt-block-label,
.ops-gantt-block-time {
  color: var(--muted);
  font-family: "Andale Mono", "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  z-index: 3;
}

.ops-gantt-block-label {
  font-size: 9px;
  font-weight: 750;
  top: 6px;
}

.ops-gantt-block-label-left {
  transform: translateX(calc(-100% - 2px));
}

.ops-gantt-block-label-right {
  transform: translateX(2px);
}

.ops-gantt-block-time {
  font-size: 8px;
  font-weight: 700;
  top: 21px;
}

.ops-gantt-block-time-right {
  transform: translateX(-100%);
}

.ops-table {
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 840px;
  width: 100%;
}

.ops-table th,
.ops-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.ops-table td {
  font-family: "Andale Mono", "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
}

.ops-table th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.ops-table td.ops-fleet-available-past {
  background: #e8f5df;
}

.ops-table td.ops-fleet-available-future {
  background: #dff0f4;
}

.ops-aircraft-plan-group td {
  background: #eef3f7;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
}

.ops-planning-unassigned-row td {
  background: #fff8e7;
}

.ops-planning-unassigned-row td:first-child {
  border-left: 3px solid #c98718;
}

.ops-table a {
  color: #327db6;
  font-weight: 650;
  text-decoration: none;
}

.ops-timetable-route-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.ops-timetable-table {
  min-width: 980px;
}

.ops-timetable-time,
.ops-timetable-operation {
  white-space: nowrap;
}

.ops-timetable-operation {
  text-align: center;
}

.ops-routes-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(440px, 0.9fr) minmax(520px, 1.1fr);
}

.ops-route-panel-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.ops-route-panel-heading h2 {
  margin: 0;
}

.ops-route-actions {
  justify-content: flex-end;
}

.ops-route-selection {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ops-route-select {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #327db6;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.ops-route-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ops-route-row-selected td {
  background: #e9f3f6;
}

.ops-route-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  padding: 4px 7px;
  white-space: nowrap;
}

.ops-route-status-enabled {
  background: #e8f5df;
  border-color: #82b66e;
  color: #1f5f18;
}

.ops-route-status-disabled {
  background: #f1f5f9;
  color: var(--muted);
}

.ops-route-map {
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 340px;
  min-height: 340px;
  overflow: hidden;
  width: 100%;
}

.ops-route-import {
  display: grid;
  gap: 12px;
}

.ops-route-import label {
  color: var(--muted);
  display: grid;
  font-size: 0.8rem;
  font-weight: 650;
  gap: 6px;
}

.ops-route-import textarea,
.ops-route-flight-plan textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: 13px "Andale Mono", "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.ops-season-toolbar,
.ops-season-line-controls {
  justify-content: flex-end;
}

.ops-season-state-grid,
.ops-season-station-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-season-summary h3,
.ops-season-station-grid h3 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.ops-season-tabs {
  align-items: center;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.ops-season-tabs button {
  background: #eef3f7;
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 40px;
  min-width: 112px;
}

.ops-season-tabs button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.ops-season-panel-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
}

.ops-season-panel-heading h2 {
  margin: 0;
}

.ops-season-import {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 0.35fr);
}

.ops-season-import .ops-controls {
  grid-column: 1 / -1;
}

.ops-season-import label {
  color: var(--muted);
  display: grid;
  font-size: 0.8rem;
  font-weight: 650;
  gap: 6px;
}

.ops-season-import textarea,
.ops-season-import input[type="file"],
.ops-season-toolbar input,
.ops-season-toolbar select,
.ops-season-line-controls select,
.ops-season-panel-heading input,
.ops-season-panel-heading select,
.ops-season-schedule td input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-width: 0;
  padding: 8px 10px;
}

.ops-season-import textarea {
  font: 13px "Andale Mono", "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  min-height: 132px;
  resize: vertical;
  width: 100%;
}

.ops-season-schedule td input {
  min-width: 88px;
  width: 100%;
}

.ops-season-schedule td input:disabled {
  background: transparent;
  border-color: transparent;
  color: var(--text);
  opacity: 1;
  padding-left: 0;
}

.ops-season-actions {
  min-width: 148px;
  white-space: nowrap;
}

.ops-season-actions button + button {
  margin-left: 6px;
}

.ops-season-markers {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 120px;
}

.ops-season-marker {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  max-width: 160px;
  overflow: hidden;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-season-marker-hard {
  background: #fff3f1;
  border-color: #e2aaa1;
  color: #8b2f22;
}

.ops-season-marker-warning {
  background: #fff7db;
  border-color: #d5aa3e;
  color: #765100;
}

.ops-season-gantt {
  display: grid;
  gap: 6px;
  min-width: 920px;
  overflow-x: auto;
}

.ops-season-gantt-header,
.ops-season-gantt-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 86px minmax(760px, 1fr);
}

.ops-season-gantt-header {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.ops-season-gantt-header span:not(:first-child) {
  grid-column: auto;
}

.ops-season-gantt-header {
  grid-template-columns: 86px repeat(7, minmax(100px, 1fr));
}

.ops-season-gantt-label {
  align-content: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  font-weight: 750;
  min-height: 42px;
  padding: 6px 10px;
  text-align: center;
}

.ops-season-gantt-lane {
  background:
    linear-gradient(to right, rgba(216, 222, 231, 0.9) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%,
    #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 42px;
  overflow: hidden;
  position: relative;
}

.ops-season-gantt-block {
  align-content: center;
  background: #dceef4;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  color: var(--text);
  display: grid;
  font-size: 0.75rem;
  font-weight: 700;
  height: 28px;
  min-width: 18px;
  overflow: hidden;
  padding: 0 6px;
  position: absolute;
  text-overflow: ellipsis;
  top: 6px;
  white-space: nowrap;
}

.ops-season-gantt-maintenance {
  background: #fff7db;
  border-left-color: #d5aa3e;
}

.ops-season-gantt-carry-in {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.ops-season-gantt-carry-out {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.ops-nowrap {
  white-space: nowrap;
}

.ops-day-offset {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 650;
}

.ops-facts {
  display: grid;
  gap: 6px 20px;
  grid-template-columns: max-content 1fr;
  margin: 0;
}

.ops-facts dt {
  color: var(--muted);
  font-weight: 650;
}

.ops-facts dd {
  margin: 0;
}

@media (max-width: 900px) {
  .airport-header-main {
    grid-template-columns: 1fr;
  }

  .airport-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ops-header,
  .page-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-header {
    padding: 14px 18px;
  }

  .ops-nav {
    justify-content: flex-start;
  }

  .ops-main {
    padding: 24px 16px;
  }

  .airport-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .airport-header .ops-controls {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 88px;
  }

  .airport-header .ops-controls button {
    grid-column: 1 / -1;
  }

  .ops-timeline {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .ops-routes-grid {
    grid-template-columns: 1fr;
  }

  .ops-route-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-route-actions {
    justify-content: flex-start;
  }

  .ops-season-toolbar,
  .ops-season-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-season-state-grid,
  .ops-season-station-grid,
  .ops-season-import {
    grid-template-columns: 1fr;
  }

  .ops-season-tabs {
    overflow-x: auto;
  }

  .ops-season-tabs button {
    flex: 0 0 124px;
  }

  .ops-season-gantt {
    min-width: 820px;
  }

  .ops-season-gantt-header {
    grid-template-columns: 72px repeat(7, minmax(92px, 1fr));
  }

  .ops-season-gantt-row {
    grid-template-columns: 72px minmax(680px, 1fr);
  }

  .ops-gantt {
    min-width: 860px;
  }

  .ops-gantt-header,
  .ops-gantt-row {
    grid-template-columns: 118px minmax(640px, 1fr);
  }
}


/* Flight history colours share boundaries with the performance chart. */
.flight-performance-chart { display: flex; height: 1.5rem; border-radius: .25rem; overflow: hidden; margin: 1rem 0; }
.flight-chart-segment { display: block; height: 100%; }
.flight-performance-legend { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.flight-status-light { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .4rem; }
.flight-band-early { background: #168056; }
.flight-band-on_time { background: #329853; }
.flight-band-minor { background: #c78a14; }
.flight-band-major { background: #c74444; }
[data-ops-page="flight-history"] .ops-table-wrap { overflow-x: auto; }
[data-ops-page="flight-history"] .ops-table th,
[data-ops-page="flight-history"] .ops-table td { white-space: nowrap; }


.ops-movement-table td.flight-condensed {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 300;
  font-size: 1em;
}

.ops-movement-table .flight-chip {
  display: inline-block;
  padding: 1px 3px;
  border: 1px solid;
  border-radius: 10px;
  margin: 1px;
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: baseline;
}

.ops-movement-table .flight-chip-airportcode {
  background: #eef5fb;
  border-color: #cbddea;
  color: #365d7f;
}

.ops-movement-table .flight-chip-registration {
  background: #e8f5ef;
  border-color: #bfded0;
  color: #2d6850;
}

.ops-movement-table .flight-day-offset {
  color: var(--muted);
  font-size: 0.75em;
  vertical-align: super;
}


/* Share a compact width for HH:MM and a signed day offset. */
[data-ops-page="flight-history"] .flight-time-column {
  width: 4.5rem;
}

[data-ops-page="flight-history"] .ops-table th:nth-child(n+5):nth-child(-n+9),
[data-ops-page="flight-history"] .ops-table td:nth-child(n+5):nth-child(-n+9) {
  padding-left: 4px;
  padding-right: 4px;
}


.ops-movement-table .ops-time-cell {
  padding-left: 4px;
  padding-right: 4px;
  white-space: nowrap;
}

.ops-plan-scroll {
  max-height: 70vh;
  overflow: auto;
}

.ops-plan-movements {
  border-collapse: separate;
  border-spacing: 0;
}

.ops-plan-movements > thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.ops-plan-movements th {
  vertical-align: middle;
}


.ops-plan-movements { table-layout: fixed; }
.ops-plan-clock-column { width: 4.5rem; }
.ops-plan-flight-column { width: 7rem; }
.ops-plan-aircraft-column { width: 9rem; }
.ops-plan-status-column { width: 7rem; }
.ops-plan-movements > tbody > tr > td:nth-child(4),
.ops-plan-movements > tbody > tr > td:nth-child(5),
.ops-plan-movements > tbody > tr > td:nth-child(6) {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ops-plan-expand {
  padding: 0 4px;
  margin-right: 4px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.ops-plan-expand:focus-visible { outline: 2px solid #327db6; }
.ops-plan-detail-row > td { background: #f8fafc; }
.ops-plan-detail-groups { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.ops-plan-detail-groups h4 { margin: 0 0 4px; font-size: .85rem; }
.ops-plan-detail-values { border-collapse: collapse; }
.ops-plan-detail-values th,
.ops-plan-detail-values td { border: 0; padding: 2px 12px 2px 0; }

.ops-cancellation-dialog {
  width: min(64rem, 90vw);
  max-height: 85vh;
  overflow: auto;
  color: inherit;
  background: var(--panel);
  border: 1px solid #64748b;
  border-radius: .4rem;
  padding: 1.25rem;
}
.ops-cancellation-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.ops-cancellation-dialog textarea { display: block; width: 100%; min-height: 5rem; }
.ops-cancellation-choice { display: flex; align-items: baseline; gap: .5rem; margin-block: .5rem; }
.ops-cancellation-controls { margin-block: .75rem; }
.ops-flight-events { border-top: 1px solid #94a3b8; margin-top: .75rem; }
.ops-flight-events li p { margin-block: .25rem; overflow-wrap: anywhere; }
.ops-cancelled-label { font-size: .85em; }
