/* REVISION: 40 */
:root {
  --bg: #edf3f8;
  --bg-2: #dbe7f2;
  --panel: #ffffff;
  --ink: #0e1d29;
  --muted: #465967;
  --line: #9eb6c8;
  --nav: #0d2337;
  --nav-2: #214a79;
  --body-radial-accent: rgba(46, 94, 153, 0.14);
  --footer-bg: rgba(255, 255, 255, 0.72);
  --accent: var(--nav-2);
  --accent-2: #6e8faa;
  --paper: #ffffff;
  --sand: #ead8a8;
  --green: #165d37;
  --yellow: #7f5a05;
  --red: #cf3e33;
  --magenta: #7a1f5b;
}

body[data-color-theme="rose_red"] {
  --bg: #ffe4e1;
  --bg-2: #ffe4e1;
  --line: #d89992;
  --nav: #8b0000;
  --nav-2: #8b0000;
  --accent: #8b0000;
  --accent-2: #b85252;
  --body-radial-accent: rgba(139, 0, 0, 0.10);
  --footer-bg: #fff0f5;
}

body[data-color-theme="arsenic_old_lace"] {
  --bg: #fdf5e6;
  --bg-2: #fdf5e6;
  --line: #b8aa94;
  --nav: #808080;
  --nav-2: #808080;
  --accent: #6f6f6f;
  --accent-2: #9a9a9a;
  --body-radial-accent: rgba(128, 128, 128, 0.11);
  --footer-bg: #f8f8ff;
}

body[data-color-theme="pretty_pink"] {
  --bg: #ffc0cb;
  --bg-2: #ffc0cb;
  --line: #d87093;
  --nav: #ff1493;
  --nav-2: #ff1493;
  --accent: #c41273;
  --accent-2: #ff69b4;
  --body-radial-accent: rgba(255, 20, 147, 0.12);
  --footer-bg: #ff69b4;
}

body[data-color-theme="sea_sand"] {
  --bg: #f5deb3;
  --bg-2: #f5deb3;
  --line: #c7a965;
  --nav: #4682b4;
  --nav-2: #4682b4;
  --accent: #2f6690;
  --accent-2: #7ba3c4;
  --body-radial-accent: rgba(70, 130, 180, 0.14);
  --footer-bg: rgba(255, 255, 255, 0.72);
}

body[data-color-theme="forest_meadow"] {
  --bg: #fafad2;
  --bg-2: #fafad2;
  --line: #b6c483;
  --nav: #006400;
  --nav-2: #006400;
  --accent: #006400;
  --accent-2: #4f8f4f;
  --body-radial-accent: rgba(0, 100, 0, 0.12);
  --footer-bg: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /*font-family: "Book Antiqua", "Goudy Old Style", Palatino, "Palatino Linotype", "Baskerville Old Face", "Times New Roman", serif;*/
  font-family: Palatino, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, var(--body-radial-accent), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a {
  color: var(--nav-2);
}

.site-header {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--nav) 0%, var(--nav-2) 100%);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.site-brand-stack {
  display: grid;
  gap: 0.35rem;
  align-items: start;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.brand h1 {
  margin: 0;
  font-size: 1.55rem;
}

.brand-kicker,
.eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header .brand-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.header-debug-form {
  margin: 0 0 0 72px;
}

.header-debug-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  min-width: 7.4rem;
  white-space: nowrap;
}

.header-debug-toggle span {
  margin: 0;
  font-weight: 600;
}

.header-debug-toggle input {
  margin: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.site-nav a {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.site-nav .nav-link-disabled {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  user-select: none;
}

.site-nav a.active {
  background: rgba(255, 255, 255, 0.18);
}

.site-nav a.help-link {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.92);
  color: var(--nav);
  font-weight: 700;
}

.nav-user {
  padding: 0.35rem 0.2rem 0.35rem 0.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--nav);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.logout-form button.secondary {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #fff;
}

.page-shell {
  width: min(1200px, calc(100% - 1.4rem));
  margin: 1.25rem auto 3rem;
}

.site-footer {
  border-top: 1px solid rgba(13, 35, 55, 0.12);
  background: var(--footer-bg);
}

.site-footer-inner {
  width: min(1200px, calc(100% - 1.4rem));
  margin: 0 auto;
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-inner a {
  color: var(--nav-2);
  text-decoration: none;
}

.site-footer-inner a:hover {
  text-decoration: underline;
}

.site-footer-inner > :last-child {
  margin-left: auto;
  text-align: right;
}

.panel {
  display: grid;
  gap: 1rem;
}

.panel.narrow {
  max-width: 28rem;
}

.card,
.hero-strip {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0.8rem;
  box-shadow: 0 10px 30px rgba(21, 42, 60, 0.08);
}

.card h3 {
  font-family: Helvetica, /*Calibri,*/ Arial, sans-serif;
}

.hero-strip,
.section-bar,
.flight-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

button,
.button-link {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--nav-2);
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button:disabled,
button[disabled],
.button-link[aria-disabled="true"] {
  opacity: 0.46;
  cursor: not-allowed;
  filter: saturate(0.45);
  box-shadow: none;
}

button.secondary,
.button-link.ghost {
  background: transparent;
  color: var(--nav-2);
  border: 1px solid var(--nav-2);
}

.dashboard-grid,
.split-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-status-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.admin-subpage-row {
  justify-content: flex-end;
}

.admin-subpage-active {
  background: rgba(33, 74, 121, 0.12);
}

.admin-form-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-permission-grid {
  display: grid;
  gap: 0.45rem 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-permission-item {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.45rem;
  min-height: 1.55rem;
  padding: 0.05rem 0;
}

.admin-permission-item input {
  width: auto;
  margin: 0.12rem 0 0;
  padding: 0;
  justify-self: start;
}

.admin-permission-item span {
  display: block;
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
}

.admin-users-grid {
  align-items: start;
}

.admin-self-service-actions {
  align-self: start;
}

.admin-user-state-actions {
  margin-top: 0.7rem;
}

.passenger-record-info-card {
  margin-top: 5pt;
  font-size: calc(1rem - 2pt);
}

.passenger-record-info-card h3,
.passenger-record-info-card p,
.passenger-record-info-card dt,
.passenger-record-info-card dd {
  font-size: inherit;
}

.workspace-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 260px 1fr;
}

.workspace-main {
  display: grid;
  gap: 1rem;
}

.auth-card,
.kv-list,
.result-list,
.file-stamp-list {
  display: grid;
  gap: 0.8rem;
}

.notice-banner {
  border-color: var(--green);
  color: var(--green);
}

.maintenance-banner {
  margin-bottom: 1rem;
}

.maintenance-banner-grid {
  display: grid;
  gap: 0.35rem;
}

.maintenance-banner p {
  margin: 0.2rem 0 0;
}

.maintenance-banner-label {
  font-weight: 700;
}

.dashboard-ready-details {
  margin-top: 0.55rem;
}

.dashboard-ready-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
}

.dashboard-ready-meta {
  display: grid;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
}

.dashboard-ready-meta div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.5rem;
}

.dashboard-ready-meta dt {
  font-weight: 700;
}

.dashboard-ready-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-airports-status-head,
.admin-airports-ready-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-airports-status-main {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.admin-airports-status-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.admin-airports-status-chip {
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  min-width: 8rem;
}

.admin-airports-status-row > p,
.admin-airports-status-row > div > p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-airports-page .panel-header > div {
  min-width: 0;
}

.admin-airports-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-airports-page code,
.admin-airports-page .data-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-airports-runs-table .admin-airports-runs-col-source {
  width: 6.75em;
}

.admin-airports-runs-table .admin-airports-runs-col-cycle {
  width: 4.5em;
}

.admin-airports-runs-table .admin-airports-runs-col-status {
  width: 7em;
}

.admin-airports-runs-table .admin-airports-runs-col-started,
.admin-airports-runs-table .admin-airports-runs-col-finished {
  width: 6.4em;
}

.admin-airports-runs-table .admin-airports-runs-col-log {
  width: 12em;
}

.data-table.admin-airports-runs-table th,
.data-table.admin-airports-runs-table td {
  padding-left: 0.1rem;
  padding-right: 0.1rem;
}

.admin-airports-runs-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #2e5e99;
}

.data-table.admin-airports-runs-table th,
.data-table.admin-airports-runs-table td {
  border-right: 1px solid #dae1e7;
  border-bottom: 1px solid #3a5c95;
}

.admin-airports-runs-table th:last-child,
.admin-airports-runs-table td:last-child {
  border-right: 0;
}

.admin-airports-runs-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-airports-runs-datetime {
  white-space: nowrap;
}

.error-banner {
  border-color: var(--red);
  color: var(--red);
}

.warning-banner {
  border-color: var(--yellow);
  color: var(--yellow);
}

.system-notice-interstitial {
  max-width: 52rem;
  margin: 2rem auto;
  border-top: 0.4rem solid var(--yellow);
}

.system-notice-body {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--sand) 35%, var(--paper));
  font-size: 1.08rem;
  line-height: 1.55;
}

.unsupported-browser-banner {
  border-color: var(--red);
  color: var(--red);
  font-size: 18pt;
  font-weight: 700;
  line-height: 1.25;
}

label span {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.kv-list {
  margin: 0;
}

.kv-list div,
.result-list div,
.file-stamp-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #d8e1e8;
}

.kv-list dt,
.result-list dt,
.file-stamp-list dt {
  font-weight: 700;
}

.kv-list dd,
.result-list dd,
.file-stamp-list dd {
  margin: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #d8e1e8;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.35em;
  border-radius: 999px;
  background: #dbe7f2;
}

.admin-airports-runs-status-processing {
  font-size: calc(1em - 1pt);
}

.pill-green,
.status-green {
  background: rgba(31, 122, 74, 0.12);
  color: var(--green);
}

.pill-yellow,
.status-yellow {
  background: rgba(173, 125, 10, 0.14);
  color: var(--yellow);
}

.pill-red,
.status-red {
  background: rgba(179, 58, 47, 0.12);
  color: var(--red);
}

.pill-magenta,
.status-magenta {
  background: rgba(159, 44, 120, 0.12);
  color: var(--magenta);
}

.pill-info,
.status-info {
  background: #e6e6e6;
  color: #444444;
}

.status-card-list {
  display: grid;
  gap: 0.8rem;
}

.status-card {
  border-left: 6px solid currentColor;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.status-card p {
  margin-bottom: 0;
}

.rail-card ul {
  padding-left: 1.15rem;
}

.file-stamp-card {
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem 0.25rem;
  border-top: 1px solid rgba(21, 42, 60, 0.14);
  color: var(--muted);
  font-size: 0.78rem;
}

.file-stamp-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.file-stamp-head strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.file-stamp-head span {
  font-size: 0.72rem;
}

.file-stamp-list {
  margin: 0;
  gap: 0.2rem;
}

.file-stamp-list div {
  padding-bottom: 0.2rem;
  border-bottom: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.74rem;
}

.file-stamp-list dt,
.file-stamp-list dd {
  font-weight: 400;
}

@media (min-width: 901px) {
  .site-header {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .site-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .dashboard-grid,
  .split-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .site-header,
  .hero-strip,
  .section-bar,
  .flight-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 0.5rem 0;
    border-bottom: 1px solid #d8e1e8;
  }

  .data-table td {
    border: 0;
    padding: 0.25rem 0;
  }
}
