/* ═══════════════════════════════════════════════════════════════════════════
   Verum Fleet Configuration — governed read-only workspace   [FLEET-COMP-4A]
   /ui/fleet_configuration/fleet_configuration_workspace.css

   Scoped to .vfc (mounted in #vfc-workspace-root inside OPS Settings → Fleet Configuration).
   Uses the established Verum OPS Settings palette: navy #0f172a, slate neutrals, accent #0369a1.
   Contrast: body text #1e293b / #334155 on #ffffff, review amber #92400e on #fffbeb,
   fault red #991b1b on #fef2f2, planning violet #5b21b6 on #f5f3ff — all ≥ 4.5:1.
   ═══════════════════════════════════════════════════════════════════════════ */
#vfc-workspace-root { margin: 0 0 20px; }

.vfc {
  --vfc-navy: #0f172a;
  --vfc-ink: #1e293b;
  --vfc-text: #334155;
  --vfc-muted: #475569;
  --vfc-line: #e2e8f0;
  --vfc-soft: #f8fafc;
  --vfc-accent: #0369a1;
  --vfc-focus: #0284c7;
  --vfc-review-fg: #92400e;
  --vfc-review-bg: #fffbeb;
  --vfc-review-line: #fcd34d;
  --vfc-fault-fg: #991b1b;
  --vfc-fault-bg: #fef2f2;
  --vfc-fault-line: #fca5a5;
  --vfc-plan-fg: #5b21b6;
  --vfc-plan-bg: #f5f3ff;
  --vfc-plan-line: #c4b5fd;
  background: #ffffff;
  border: 1px solid var(--vfc-line);
  border-radius: 10px;
  color: var(--vfc-text);
  font-size: 12px;
  line-height: 1.45;
  min-width: 0;
  overflow: hidden;
}

/* ── header ── */
.vfc-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 20px 14px;
  background: var(--vfc-navy);
  color: #f8fafc;
  border-bottom: 3px solid var(--vfc-accent);
}
.vfc-titles { min-width: 0; }
.vfc-eyebrow { margin: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7dd3fc; }
.vfc-title { margin: 4px 0 2px; font-size: 19px; font-weight: 800; color: #ffffff; letter-spacing: .01em; }
.vfc-subtitle { margin: 0; font-size: 12px; color: #cbd5e1; }
.vfc-badge {
  flex-shrink: 0; align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc;
}
.vfc-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #0369a1; }

/* ── screen-reader status ── */
.vfc-sr-status {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── matrix ── */
.vfc-matrix { padding: 16px 20px 6px; border-bottom: 1px solid var(--vfc-line); }
.vfc-matrix-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.vfc-filter { display: flex; align-items: center; gap: 8px; }
.vfc-filter label { font-size: 10.5px; font-weight: 700; color: var(--vfc-muted); text-transform: uppercase; letter-spacing: .08em; }
.vfc-filter select {
  font: inherit; font-size: 12px; color: var(--vfc-ink);
  padding: 5px 8px; border: 1px solid #94a3b8; border-radius: 6px; background: #ffffff; min-height: 30px;
}

.vfc-h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--vfc-navy); letter-spacing: .01em; }
.vfc-h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--vfc-navy); }
.vfc-intro { margin: 6px 0 10px; color: var(--vfc-muted); max-width: 90ch; }

/* ── tabs ── */
.vfc-tablist {
  display: flex; flex-wrap: wrap; gap: 2px;
  padding: 10px 20px 0; background: var(--vfc-soft); border-bottom: 1px solid var(--vfc-line);
}
.vfc-tab {
  font: inherit; font-size: 12px; font-weight: 700; color: var(--vfc-muted);
  background: transparent; border: 1px solid transparent; border-bottom: 0;
  border-radius: 7px 7px 0 0; padding: 8px 14px; cursor: pointer; min-height: 36px;
}
.vfc-tab:hover { color: var(--vfc-ink); background: #eef2f7; }
.vfc-tab.is-active, .vfc-tab[aria-selected="true"] {
  color: var(--vfc-accent); background: #ffffff; border-color: var(--vfc-line);
  box-shadow: inset 0 3px 0 var(--vfc-accent); margin-bottom: -1px;
}
.vfc-panel { padding: 14px 20px 18px; }
.vfc-panel[hidden] { display: none; }

/* visible keyboard focus everywhere in the workspace */
.vfc :focus-visible, .vfc-tab:focus-visible, .vfc-panel:focus-visible, .vfc-table-wrap:focus-visible, .vfc summary:focus-visible {
  outline: 3px solid var(--vfc-focus); outline-offset: 2px; border-radius: 4px;
}

/* ── sections and cards ── */
.vfc-section { margin: 0 0 18px; }
.vfc-section--templates {
  border: 1px dashed #94a3b8; border-radius: 8px; padding: 12px 14px; background: var(--vfc-soft);
}
.vfc-card {
  border: 1px solid var(--vfc-line); border-left: 4px solid var(--vfc-accent);
  border-radius: 8px; padding: 12px 14px; margin: 10px 0; background: #ffffff;
}
.vfc-card--review { border-left-color: #d97706; }
.vfc-card--planning { border-left-color: #7c3aed; background: #fcfbff; }
.vfc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 4px 0 10px; }
.vfc-facts dt { font-size: 10.5px; font-weight: 700; color: var(--vfc-muted); text-transform: uppercase; letter-spacing: .06em; }
.vfc-facts dd { margin: 0; color: var(--vfc-ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* ── tables: contained horizontally, never clipped or overlapping ── */
.vfc-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--vfc-line); border-radius: 8px; margin: 6px 0 10px; }
.vfc-table { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 640px; }
.vfc-table--compact { min-width: 480px; }
.vfc-table--matrix { min-width: 860px; }
.vfc-table caption {
  caption-side: top; text-align: left; padding: 8px 12px; font-size: 10.5px; font-weight: 700;
  color: var(--vfc-muted); text-transform: uppercase; letter-spacing: .08em; background: var(--vfc-soft);
}
.vfc-table thead th {
  text-align: left; padding: 8px 12px; font-size: 10px; font-weight: 800; color: var(--vfc-muted);
  text-transform: uppercase; letter-spacing: .07em; background: #f1f5f9; border-bottom: 1px solid var(--vfc-line); white-space: nowrap;
}
.vfc-table tbody th, .vfc-table tbody td { padding: 8px 12px; border-top: 1px solid #f1f5f9; vertical-align: top; color: var(--vfc-text); overflow-wrap: anywhere; }
.vfc-table tbody th { text-align: left; font-weight: 800; color: var(--vfc-ink); white-space: nowrap; }
.vfc-table tbody tr:hover { background: #f8fafc; }
.vfc-table .vfc-num { text-align: center; font-weight: 800; font-size: 13px; color: var(--vfc-navy); font-variant-numeric: tabular-nums; }
.vfc-row--review { background: #fffdf5; }

/* ── states ── */
.vfc-flag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.vfc-flag--review { color: var(--vfc-review-fg); background: var(--vfc-review-bg); border: 1px solid var(--vfc-review-line); }
.vfc-flag--fault { color: var(--vfc-fault-fg); background: var(--vfc-fault-bg); border: 1px solid var(--vfc-fault-line); }
.vfc-state { margin: 8px 0 12px; padding: 10px 12px; border-radius: 7px; font-weight: 700; }
.vfc-state--empty { color: var(--vfc-muted); background: var(--vfc-soft); border: 1px dashed #cbd5e1; }
.vfc-state--review { color: var(--vfc-review-fg); background: var(--vfc-review-bg); border: 1px solid var(--vfc-review-line); }
.vfc-state--fault { color: var(--vfc-fault-fg); background: var(--vfc-fault-bg); border: 1px solid var(--vfc-fault-line); }

/* ── disclosures ── */
.vfc-disclosure { margin: 8px 0; border: 1px solid var(--vfc-line); border-radius: 7px; background: var(--vfc-soft); }
.vfc-disclosure > summary { cursor: pointer; padding: 8px 12px; font-weight: 700; color: var(--vfc-ink); min-height: 20px; }
.vfc-disclosure[open] > summary { border-bottom: 1px solid var(--vfc-line); }
.vfc-disclosure > *:not(summary) { margin-left: 12px; margin-right: 12px; }
.vfc-warning {
  margin: 10px 12px; padding: 8px 10px; border-radius: 6px; font-weight: 700;
  color: var(--vfc-review-fg); background: var(--vfc-review-bg); border: 1px solid var(--vfc-review-line);
}
.vfc-history { margin: 8px 12px 12px; padding-left: 18px; }
.vfc-history li { margin: 3px 0; }
.vfc-history-at { display: inline-block; min-width: 150px; margin-right: 10px; font-variant-numeric: tabular-nums; color: var(--vfc-muted); }

/* ── Virtual Aircraft: planning-only isolation ── */
.vfc-planning-warning {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 8px;
  color: var(--vfc-plan-fg); background: var(--vfc-plan-bg); border: 1px solid var(--vfc-plan-line); border-left: 5px solid #7c3aed;
}
.vfc-planning-warning strong { display: block; font-size: 12px; letter-spacing: .03em; }
.vfc-planning-warning p { margin: 4px 0 0; color: #4c1d95; }
.vfc-chip { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vfc-chip--planning { color: var(--vfc-plan-fg); background: var(--vfc-plan-bg); border: 1px solid var(--vfc-plan-line); }

/* ── narrower layouts ── */
@media (max-width: 900px) {
  .vfc-head, .vfc-matrix, .vfc-panel { padding-left: 14px; padding-right: 14px; }
  .vfc-tablist { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 640px) {
  .vfc-head { flex-direction: column; }
  .vfc-badge { align-self: flex-start; }
  .vfc-tablist { flex-direction: column; gap: 4px; padding-bottom: 8px; }
  .vfc-tab { border-radius: 7px; border: 1px solid var(--vfc-line); text-align: left; }
  .vfc-tab.is-active, .vfc-tab[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--vfc-accent); margin-bottom: 0; }
  .vfc-facts { grid-template-columns: 1fr; }
  .vfc-filter { width: 100%; }
  .vfc-filter select { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .vfc * { transition: none !important; } }
@media (forced-colors: active) { .vfc-flag, .vfc-state, .vfc-badge, .vfc-tab[aria-selected="true"] { border: 1px solid CanvasText; } }

/* ═══════════════════════════════════════════════════════════════════════════
   [FLEET-COMP-4B / 4B-C1] Aircraft Crew Configuration Matrix and Verum in-app dialogs (scoped to .vfc*)
   [4B-C1] The dialog layer is a direct child of <body> covering the whole application (absolute, top-left,
   full viewport height); every other body child is made inert and aria-hidden while it is open. Contrast: #1e293b on #ffffff, #ffffff on #0369a1 / #0f172a,
   #991b1b on #fef2f2 — all ≥ 4.5:1.
   ═══════════════════════════════════════════════════════════════════════════ */
.vfc { position: relative; }
.vfc-badge--actions { background: #dcfce7; color: #14532d; border-color: #86efac; }
.vfc-badge--actions::before { background: #15803d; }

.vfc-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--vfc-line); border-radius: 8px; background: var(--vfc-soft);
}
.vfc-actions-org { margin: 0; display: flex; flex-direction: column; gap: 2px; color: var(--vfc-ink); }
.vfc-actions-org-label, .vfc-readonly-label { font-size: 10px; font-weight: 700; color: var(--vfc-muted); text-transform: uppercase; letter-spacing: .08em; }
.vfc-actions-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.vfc-actions-note { margin: 0; color: var(--vfc-muted); }

.vfc-btn {
  font: inherit; font-size: 12px; font-weight: 700; min-height: 34px; padding: 6px 14px; border-radius: 7px; cursor: pointer;
  border: 1px solid #94a3b8; background: #ffffff; color: var(--vfc-ink);
}
.vfc-btn:hover { background: #f1f5f9; }
.vfc-btn--primary { background: var(--vfc-accent); border-color: var(--vfc-accent); color: #ffffff; }
.vfc-btn--primary:hover { background: #075985; }
.vfc-btn--commit { background: var(--vfc-navy); border-color: var(--vfc-navy); color: #ffffff; }
.vfc-btn--ghost { background: #ffffff; }
.vfc-btn[disabled] { opacity: .55; cursor: not-allowed; }

.vfc-modal-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 12px; background: rgba(15, 23, 42, .6); overflow-y: auto;
}
.vfc-dialog {
  position: relative; width: 100%; max-width: 640px; background: #ffffff; color: var(--vfc-ink);
  border-radius: 10px; border-top: 4px solid var(--vfc-accent); box-shadow: 0 18px 48px rgba(15, 23, 42, .35); padding: 18px 20px;
}
.vfc-dialog[inert] { opacity: .4; }
.vfc-dialog--final {
  position: absolute; top: 120px; left: 50%; transform: translateX(-50%); max-width: 480px; width: calc(100% - 24px);
  border-top-color: var(--vfc-navy); z-index: 21;
}
.vfc-dialog-title { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--vfc-navy); }
.vfc-dialog-purpose { margin: 0 0 8px; color: var(--vfc-muted); }
.vfc-dialog-step { margin: 0 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vfc-accent); }
.vfc-dialog-alert { margin: 0 0 10px; padding: 8px 12px; border-radius: 7px; color: var(--vfc-fault-fg); background: var(--vfc-fault-bg); border: 1px solid var(--vfc-fault-line); }
.vfc-dialog-alert[hidden] { display: none; }
.vfc-dialog-alert ul { margin: 0; padding-left: 18px; }
.vfc-dialog-body { max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.vfc-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vfc-line); }

.vfc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.vfc-form > .vfc-readonly, .vfc-form > .vfc-fieldset { grid-column: 1 / -1; }
.vfc-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vfc-field[hidden], .vfc-fieldset[hidden] { display: none; }
.vfc-field label { font-size: 11px; font-weight: 700; color: var(--vfc-ink); }
.vfc-field-hint { margin: 0; font-size: 10.5px; color: var(--vfc-muted); }
.vfc-input { font: inherit; font-size: 12px; color: var(--vfc-ink); padding: 6px 8px; min-height: 32px; border: 1px solid #94a3b8; border-radius: 6px; background: #ffffff; min-width: 0; }
.vfc-fieldset { border: 1px solid var(--vfc-line); border-radius: 8px; padding: 8px 12px 10px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.vfc-fieldset legend { font-size: 11px; font-weight: 800; color: var(--vfc-navy); padding: 0 4px; }
.vfc-fieldset .vfc-field { flex: 1 1 140px; }
.vfc-radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-height: 28px; cursor: pointer; }
.vfc-readonly { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 6px; background: var(--vfc-soft); border: 1px solid var(--vfc-line); }
.vfc-summary { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 12px; }
.vfc-summary dt { font-size: 10.5px; font-weight: 700; color: var(--vfc-muted); text-transform: uppercase; letter-spacing: .06em; }
.vfc-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vfc-ack { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 7px; background: var(--vfc-review-bg); border: 1px solid var(--vfc-review-line); color: var(--vfc-review-fg); font-weight: 700; cursor: pointer; }

@media (max-width: 640px) {
  .vfc-form { grid-template-columns: 1fr; }
  .vfc-summary { grid-template-columns: 1fr; }
}

/* ── [FLEET-COMP-4B-C1] application-level dialog layer and crew matrix ── */
.vfc-modal-layer {
  --vfc-navy: #0f172a; --vfc-ink: #1e293b; --vfc-text: #334155; --vfc-muted: #475569; --vfc-line: #e2e8f0; --vfc-soft: #f8fafc;
  --vfc-accent: #0369a1; --vfc-focus: #0284c7; --vfc-review-fg: #92400e; --vfc-review-bg: #fffbeb; --vfc-review-line: #fcd34d;
  --vfc-fault-fg: #991b1b; --vfc-fault-bg: #fef2f2; --vfc-fault-line: #fca5a5; --vfc-plan-fg: #5b21b6; --vfc-plan-bg: #f5f3ff; --vfc-plan-line: #c4b5fd;
  position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000; overflow: hidden;   /* [4B-C2] top/left/size set from the current scroll offset and viewport */
  font-size: 12px; line-height: 1.45; color: var(--vfc-text);
}
.vfc-modal-layer :focus-visible { outline: 3px solid var(--vfc-focus); outline-offset: 2px; border-radius: 4px; }
.vfc-dialog--wide { max-width: 980px; }
.vfc-crew-form .vfc-summary { margin-bottom: 10px; }
.vfc-crew-totals { margin: 8px 0 0; padding: 8px 10px; border-radius: 7px; background: var(--vfc-soft); border: 1px solid var(--vfc-line); font-weight: 700; color: var(--vfc-navy); }
.vfc-crew-flags, .vfc-crew-need { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.vfc-crew-need select[hidden], .vfc-crew-need input[hidden] { display: none; }
.vfc-scope-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 7px; background: #e0f2fe; border: 1px solid #7dd3fc; color: #075985; font-weight: 700; }
.vfc-crewmx { margin-bottom: 22px; }
.vfc-crewmx-group { margin: 10px 0 14px; }
.vfc-crewmx-group--planning { padding: 10px 12px; border: 1px dashed #c4b5fd; border-radius: 8px; background: #fcfbff; }
.vfc-crewmx-detail { display: block; margin-top: 2px; font-size: 10.5px; color: var(--vfc-muted); }
.vfc-table--crewmx { min-width: 980px; }

/* ── [FLEET-COMP-4B-C2] Aircraft Minimum Crew ── */
.vfc-table--crewmx { min-width: 900px; }
.vfc-crewmx-kind { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--vfc-muted); }
.vfc-crewmx-kind--virtual { color: var(--vfc-plan-fg); }
.vfc-crewmx-row--virtual { background: #fcfbff; }
.vfc-crewmx-row--virtual th { border-left: 3px solid #7c3aed; }
.vfc-crewmx-comp { display: block; white-space: nowrap; font-weight: 700; color: var(--vfc-navy); font-variant-numeric: tabular-nums; }
.vfc-crewmx-comp-label { display: inline-block; min-width: 76px; margin-right: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vfc-muted); }
.vfc-record-basis { margin-top: 12px; }
.vfc-table--crewedit { min-width: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   [FLEET-COMP-4B-C3C] Visual alignment with People & Access (presentation only)
   Dark application canvas, flat page header, independent white cards separated by dark gutters, Inter, compact density,
   white table rows with subtle separators, compact badges and row actions. Reference tokens: canvas #020617, card #ffffff /
   #cbd5e1 / radius 10, header cells #f8fafc / #475569, row lines #f1f5f9, action #eff6ff / #1d4ed8 / #93c5fd, primary #1d4ed8.
   Contrast on white: #0f172a, #334155, #475569 ≥ 7:1; #1d4ed8 ≥ 6.7:1; #5b21b6 on #f5f3ff ≥ 7:1. On the canvas: #e2e8f0 / #94a3b8 ≥ 7:1.
   ═══════════════════════════════════════════════════════════════════════════ */
.vfc, .vfc-modal-layer { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.vfc {
  --vfc-accent: #1d4ed8; --vfc-focus: #2563eb; --vfc-line: #e2e8f0; --vfc-card-line: #cbd5e1;
  background: transparent; border: 0; border-radius: 0; overflow: visible; color: #e2e8f0; font-size: 13px;
}
/* flat page header on the canvas */
.vfc-head { background: transparent; border-bottom: 0; padding: 0 0 10px; color: #e2e8f0; }
.vfc-eyebrow { color: #94a3b8; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.vfc-title { font-size: 22px; font-weight: 700; letter-spacing: .02em; color: #e2e8f0; margin: 2px 0; }
.vfc-subtitle { color: #94a3b8; font-size: 12.5px; }
.vfc-badge { padding: 3px 10px; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: none; background: rgba(56, 189, 248, .08); color: #7dd3fc; border-color: rgba(56, 189, 248, .35); }
.vfc-badge::before { background: #38bdf8; }
.vfc-badge--actions { background: rgba(52, 211, 153, .08); color: #6ee7b7; border-color: rgba(52, 211, 153, .35); }
.vfc-badge--actions::before { background: #34d399; }
/* tabs in the People & Access style */
.vfc-tablist { background: transparent; padding: 0; margin: 4px 0 14px; gap: 4px; border-bottom: 1px solid #1e293b; }
.vfc-tab { font-size: 13px; font-weight: 600; color: #94a3b8; padding: 8px 16px; min-height: 0; border-radius: 8px 8px 0 0; letter-spacing: .02em; }
.vfc-tab:hover { color: #e2e8f0; background: rgba(56, 189, 248, .06); }
.vfc-tab.is-active, .vfc-tab[aria-selected="true"] { color: #f8fafc; background: #0f172a; border-color: #1e293b; border-bottom: 2px solid #38bdf8; box-shadow: none; margin-bottom: -1px; }
.vfc-panel { padding: 0; }
/* independent white cards separated by dark gutters */
.vfc-matrix, .vfc-panel > .vfc-section, .vfc-panel > .vfc-card, .vfc-panel > .vfc-state, .vfc-crewmx {
  background: #ffffff; color: #334155; border: 1px solid var(--vfc-card-line); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px;
}
.vfc-matrix { border-bottom: 1px solid var(--vfc-card-line); }
.vfc-section--templates { border-style: solid; background: #ffffff; }
.vfc-card { border-left-width: 1px; border-color: var(--vfc-card-line); }
.vfc-card--planning { border-left: 3px solid #7c3aed; background: #ffffff; }
.vfc-h3 { font-size: 14px; font-weight: 700; color: #0f172a; letter-spacing: 0; }
.vfc-h4 { font-size: 13px; font-weight: 700; color: #0f172a; }
.vfc-intro { color: #475569; font-size: 12.5px; margin: 4px 0 10px; }
/* tables: white rows, subtle separators */
.vfc-table-wrap { border-color: #e2e8f0; border-radius: 8px; background: #ffffff; }
.vfc-table { font-size: 12.5px; }
.vfc-table caption { background: #ffffff; color: #475569; font-size: 11px; font-weight: 600; letter-spacing: .06em; border-bottom: 1px solid #f1f5f9; }
.vfc-table thead th { background: #f8fafc; color: #475569; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 7px 10px; border-bottom: 1px solid #e2e8f0; }
.vfc-table tbody th, .vfc-table tbody td { background: #ffffff; border-top: 0; border-bottom: 1px solid #f1f5f9; padding: 8px 10px; color: #0f172a; }
.vfc-table tbody th { font-weight: 600; }
.vfc-table tbody tr:hover th, .vfc-table tbody tr:hover td { background: #eff6ff; }
.vfc-table tbody tr:last-child th, .vfc-table tbody tr:last-child td { border-bottom: 0; }
.vfc-row--review, .vfc-row--review th, .vfc-row--review td { background: #ffffff; }
.vfc-flag { font-weight: 600; border-radius: 999px; padding: 1px 8px; font-size: 11px; }
/* ── Aircraft Minimum Crew: the primary card ── */
.vfc-crewmx { padding: 16px 18px; }
.vfc-crewmx > .vfc-h3 { font-size: 15px; }
.vfc-table--crewmx { min-width: 860px; table-layout: auto; }
.vfc-table--crewmx th[scope="col"]:nth-child(n+6):nth-child(-n+9) { text-align: center; width: 52px; }
.vfc-crewmx-fn { width: 52px; font-size: 13px; font-weight: 600; color: #0f172a; }
.vfc-crewmx-row--virtual, .vfc-crewmx-row--virtual th, .vfc-crewmx-row--virtual td { background: #ffffff; }
.vfc-crewmx-row--virtual th { border-left: 0; }
.vfc-crewmx-kind { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; white-space: nowrap; }
.vfc-crewmx-kind--virtual { color: #5b21b6; background: #f5f3ff; border-color: #ddd6fe; }
.vfc-status-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; border: 1px solid; white-space: normal; }
.vfc-status-badge--ok { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.vfc-status-badge--empty { color: #475569; background: #f8fafc; border-color: #e2e8f0; }
.vfc-status-badge--review { color: #92400e; background: #fffbeb; border-color: #fcd34d; }
.vfc-crewmx-detail { font-size: 11.5px; color: #475569; margin-top: 3px; max-width: 46ch; }
.vfc-crewmx-action { white-space: nowrap; width: 1%; }
/* compact row action */
.vfc-btn { font-size: 12.5px; font-weight: 600; min-height: 30px; padding: 5px 12px; border-radius: 6px; border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.vfc-btn:hover { background: #dbeafe; }
.vfc-btn--row { min-height: 28px; padding: 3px 10px; font-size: 12px; }
.vfc-btn--primary, .vfc-btn--commit { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.vfc-btn--primary:hover, .vfc-btn--commit:hover { background: #1e40af; }
.vfc-btn--ghost { background: #ffffff; color: #334155; border-color: #cbd5e1; }
.vfc-btn--ghost:hover { background: #f1f5f9; }
.vfc-btn[disabled] { opacity: 1; background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
/* ── editor, review and confirmation: People & Access form cards ── */
.vfc-modal-layer { --vfc-accent: #1d4ed8; --vfc-focus: #2563eb; font-size: 13px; }
.vfc-modal-overlay { background: rgba(2, 6, 23, .72); padding: 28px 16px; }
.vfc-dialog { max-width: 720px; border: 1px solid #cbd5e1; border-top: 1px solid #cbd5e1; border-radius: 10px; padding: 16px 18px; color: #0f172a; box-shadow: 0 20px 50px rgba(2, 6, 23, .5); }
.vfc-dialog--final { max-width: 560px; border-top: 1px solid #cbd5e1; }
.vfc-dialog-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.vfc-dialog-purpose { color: #475569; font-size: 12.5px; }
.vfc-dialog-step { color: #1d4ed8; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.vfc-dialog-alert { color: #991b1b; background: #fef2f2; border-color: #fca5a5; border-radius: 8px; }
.vfc-dialog-body { max-height: calc(100vh - 260px); }
.vfc-summary { gap: 5px 18px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.vfc-summary dt { color: #475569; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.vfc-summary dd { color: #0f172a; font-weight: 600; }
.vfc-scope-note { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; font-weight: 600; border-radius: 8px; font-size: 12.5px; padding: 8px 12px; margin: 0 0 10px; }
.vfc-change-kind { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.vfc-shared-impact { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.vfc-planning-warning { color: #5b21b6; background: #f5f3ff; border: 1px solid #ddd6fe; border-left: 3px solid #7c3aed; border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: 12.5px; }
.vfc-dialog .vfc-table-wrap { margin: 6px 0 8px; }
.vfc-table--crewedit th, .vfc-table--crewedit td { padding: 6px 10px; }
.vfc-input { font-size: 13px; color: #0f172a; border-color: #94a3b8; border-radius: 6px; padding: 6px 8px; min-height: 32px; }
.vfc-field label { font-size: 12px; font-weight: 600; color: #334155; }
.vfc-disclosure { background: #ffffff; border-color: #e2e8f0; border-radius: 8px; }
.vfc-disclosure > summary { color: #0f172a; font-weight: 600; }
.vfc-record-basis .vfc-form { padding: 10px 0 12px; }
.vfc-ack { background: #fffbeb; border-color: #fcd34d; color: #92400e; font-weight: 600; border-radius: 8px; }
.vfc-dialog-actions { border-top-color: #e2e8f0; }
.vfc-table--crewmx tbody td:nth-child(2), .vfc-table--crewmx tbody td:nth-child(5) { white-space: nowrap; overflow-wrap: normal; }
.vfc-crewmx { border-top: 3px solid #1d4ed8; }                        /* the primary card */
.vfc-btn--row[disabled] { background: #ffffff; color: #94a3b8; border-color: #e2e8f0; }
/* [4B-C3C] compact layout below ≈1500 px viewport (≈1366×768 with both sidebars); em, never a pixel width */
.vfc-crewmx-status { min-width: 170px; }
@media (max-width: 94em) {
  .vfc-table--crewmx { min-width: 0; font-size: 12px; }
  .vfc-table--crewmx thead th, .vfc-table--crewmx tbody th, .vfc-table--crewmx tbody td { padding: 7px 6px; }
  .vfc-table--crewmx th[scope="col"]:nth-child(n+6):nth-child(-n+9), .vfc-crewmx-fn { width: 34px; }
  .vfc-crewmx-kind { display: table; margin-top: 3px; }
  .vfc-crewmx-status { min-width: 150px; }
  .vfc-crewmx-detail { font-size: 11px; }
  .vfc-btn--row { padding: 3px 8px; font-size: 11.5px; }
}
/* [4B-C3C] the host page sets global `thead th` / `tbody td` metrics with !important; restate the workspace's own metrics, scoped */
.vfc .vfc-table thead th, .vfc-modal-layer .vfc-table thead th { padding: 7px 10px !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .05em !important; color: #475569 !important; white-space: nowrap !important; }
.vfc .vfc-table tbody td, .vfc-modal-layer .vfc-table tbody td { padding: 8px 10px !important; font-size: 12.5px !important; }
@media (max-width: 94em) {
  .vfc-crewmx .vfc-table--crewmx thead th { padding: 7px 6px !important; letter-spacing: .02em !important; white-space: normal !important; }
  .vfc-crewmx .vfc-table--crewmx tbody td { padding: 7px 6px !important; font-size: 12px !important; }
}
@media (max-width: 94em) {
  .vfc-crewmx .vfc-table--crewmx tbody td:nth-child(5) { white-space: normal; }
  .vfc-crewmx .vfc-table--crewmx .vfc-flag { white-space: normal; }
  .vfc-crewmx-kind { font-size: 10px; padding: 0 6px; }
  .vfc-crewmx-status { min-width: 136px; }
  .vfc-crewmx-action { white-space: normal; }
  .vfc-crewmx .vfc-btn--row { white-space: normal; line-height: 1.25; max-width: 96px; text-align: center; }
}
@media (max-width: 94em) { .vfc-crewmx-action { min-width: 92px; } .vfc-crewmx .vfc-btn--row { width: 88px; } }
/* never break inside a word, code or badge: a readable column beats a narrower table (the frame scrolls if it must) */
.vfc-crewmx .vfc-table--crewmx tbody th, .vfc-crewmx .vfc-table--crewmx tbody td { overflow-wrap: normal; word-break: normal; hyphens: none; }
.vfc-crewmx .vfc-table--crewmx tbody td:nth-child(4), .vfc-crewmx .vfc-table--crewmx .vfc-flag, .vfc-crewmx .vfc-status-badge { white-space: nowrap; }
@media (max-width: 94em) { .vfc-crewmx .vfc-table--crewmx .vfc-flag { white-space: nowrap; } }
@media (max-width: 94em) {
  .vfc-crewmx .vfc-table--crewmx tbody td:nth-child(4), .vfc-crewmx .vfc-table--crewmx .vfc-flag, .vfc-crewmx .vfc-status-badge { white-space: normal; }
  .vfc-crewmx .vfc-flag, .vfc-crewmx .vfc-status-badge { border-radius: 8px; }
}
@media (max-width: 94em) {
  .vfc-crewmx .vfc-table--crewmx tbody th { white-space: normal; min-width: 84px; }
  .vfc-crewmx-kind { white-space: normal; border-radius: 6px; }
  .vfc-crewmx-status { min-width: 168px; }
}
/* [FLEET-COMP-4D] minimum-crew editor with the explicit operating position column: fixed shares, controls fill their cell */
.vfc-modal-layer .vfc-table--crewedit { table-layout: fixed; width: 100%; min-width: 0; }
.vfc-modal-layer .vfc-table--crewedit thead th:nth-child(1) { width: 42%; }
.vfc-modal-layer .vfc-table--crewedit thead th:nth-child(2) { width: 24%; }
.vfc-modal-layer .vfc-table--crewedit thead th:nth-child(3) { width: 16%; }
.vfc-modal-layer .vfc-table--crewedit thead th:nth-child(4) { width: 18%; }
.vfc-modal-layer .vfc-table--crewedit .vfc-input { width: 100%; box-sizing: border-box; min-width: 0; }
.vfc-modal-layer .vfc-table--crewedit .vfc-btn { white-space: nowrap; }
/* [FLEET-COMP-4D-V1] minimum-crew editor rows stay readable at every width. The host page sets table metrics with !important,
   so the editor restates its own. Wide: four fixed shares, controls fill their cell, Remove never wraps. Narrow: each row stacks. */
.vfc-modal-layer .vfc-table-wrap > .vfc-table--crewedit { table-layout: fixed !important; width: 100% !important; min-width: 0 !important; max-width: 100%; }
.vfc-modal-layer .vfc-table--crewedit thead th { white-space: normal !important; overflow-wrap: normal; }
.vfc-modal-layer .vfc-table--crewedit tbody th, .vfc-modal-layer .vfc-table--crewedit tbody td { padding: 6px 8px !important; vertical-align: middle; min-width: 0; }
.vfc-modal-layer .vfc-table--crewedit tbody .vfc-btn { white-space: nowrap !important; width: auto; max-width: none; min-width: max-content; }
.vfc-modal-layer .vfc-table--crewedit select.vfc-input { text-overflow: ellipsis; }
@media (max-width: 52em) {
  .vfc-modal-layer .vfc-table--crewedit, .vfc-modal-layer .vfc-table--crewedit tbody { display: block; }
  .vfc-modal-layer .vfc-table--crewedit caption { display: block; }
  .vfc-modal-layer .vfc-table--crewedit thead { display: block; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; }
  .vfc-modal-layer .vfc-table--crewedit tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 5.5em max-content; gap: 6px 8px; padding: 8px 10px; border-top: 1px solid var(--vfc-line); }
  .vfc-modal-layer .vfc-table--crewedit tbody tr > th { grid-column: 1 / -1; }
  .vfc-modal-layer .vfc-table--crewedit tbody tr > th, .vfc-modal-layer .vfc-table--crewedit tbody tr > td { display: block; padding: 0 !important; border: 0; }
}
@media (max-width: 52em) {
  .vfc-modal-layer .vfc-table--crewedit tbody tr, .vfc-modal-layer .vfc-table--crewedit tbody tr:hover { background: #ffffff !important; }
  .vfc-modal-layer .vfc-table--crewedit tbody tr > th, .vfc-modal-layer .vfc-table--crewedit tbody tr > td { background: transparent !important; }
}
/* [FLEET-COMP-4D-R] explicit Operating AOC and operation type in the minimum-crew editor */
.vfc-crew-context { margin: 0 0 12px; }
.vfc-crew-context .vfc-input { width: 100%; box-sizing: border-box; min-width: 0; }
.vfc-crew-context .vfc-crew-validity { grid-column: 1 / -1; margin: 0; }
.vfc-crew-context .vfc-crew-validity strong { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--vfc-muted); }
@media (max-width: 40em) { .vfc-crew-context { grid-template-columns: 1fr; } }
.vfc-reference { margin-top: 14px; }
.vfc-reference > summary { font-weight: 700; }
/* [FLEET-COMP-4D-R3] real-aircraft matrix with two validity columns (Aircraft/AOC validity · Minimum crew validity):
   the four position columns move from 6–9 to 7–10; column 6 is a text column like column 5. */
.vfc-table--crewmx.vfc-table--crewmx-two th[scope="col"]:nth-child(6) { text-align: left; width: auto; }
.vfc-table--crewmx.vfc-table--crewmx-two th[scope="col"]:nth-child(10) { text-align: center; width: 52px; }
.vfc-table--crewmx.vfc-table--crewmx-two tbody td:nth-child(6) { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 94em) {
  .vfc-table--crewmx.vfc-table--crewmx-two th[scope="col"]:nth-child(10) { width: 34px; }
  .vfc-crewmx .vfc-table--crewmx.vfc-table--crewmx-two tbody td:nth-child(6) { white-space: normal; }
  /* one more column at ≈1366 px: tighter cell padding and a narrower status column keep every action in view */
  .vfc-crewmx .vfc-table--crewmx.vfc-table--crewmx-two thead th, .vfc-crewmx .vfc-table--crewmx.vfc-table--crewmx-two tbody th,
  .vfc-crewmx .vfc-table--crewmx.vfc-table--crewmx-two tbody td { padding-left: 4px !important; padding-right: 4px !important; }
  .vfc-crewmx .vfc-table--crewmx.vfc-table--crewmx-two .vfc-crewmx-status { min-width: 112px; }
}
