/* ═══════════════════════════════════════════════════════════════════════════
   vCrew EFB — Capacitor integration styles
   Scoped EFB styles for screens embedded inside the Zibo App.
   CSS variables (--b1, --bg, etc.) are inherited from Zibo's style.css.
═══════════════════════════════════════════════════════════════════════════ */

/* ── EFB wrapper & sub-screens ──────────────────────────────────────────── */
#screen-efb { display: block; width: 100%; min-height: 100dvh; background: #EEF2F9; }

.efb-subscreen { display: block; width: 100%; min-height: 100dvh; }
.efb-subscreen.hidden { display: none !important; }

/* Back-to-Zibo button (top-left of every EFB screen topbar) */
.efb-back-btn {
    display: flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    color: var(--b2); font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 0; font-family: inherit; transition: color 0.15s; flex-shrink: 0;
}
.efb-back-btn:hover { color: var(--b1); }
.efb-back-arrow { font-size: 15px; line-height: 1; }

/* ── Shared EFB topbar ───────────────────────────────────────────────────── */
.flight-topbar {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 9px 16px; display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0; box-shadow: 0 2px 8px rgba(21,75,150,0.07);
    gap: 10px; position: sticky; top: 0; z-index: 100;
}
.flight-back-btn {
    display: flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    color: var(--b2); font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 0; font-family: inherit; transition: color 0.15s; flex-shrink: 0;
}
.flight-back-btn:hover { color: var(--b1); }
.flight-back-arrow { font-size: 15px; line-height: 1; }
.flight-topbar-center { flex: 1; text-align: center; min-width: 0; }
.flight-topbar-label {
    font-size: 9px; font-weight: 700; color: var(--t3);
    text-transform: uppercase; letter-spacing: 0.14em; display: block;
}
.flight-topbar-route {
    font-size: 12px; font-weight: 800; color: var(--t1);
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flight-topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.flight-topbar-left-group { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.flight-topbar-left-group .efb-back-btn { font-size: 10px; opacity: 0.7; border-right: 1px solid var(--border); padding-right: 8px; margin-right: 2px; }

/* ── Screen-specific layouts ─────────────────────────────────────────────── */
#screen-efb-flight {
    height: 100dvh; min-height: unset; display: flex;
    flex-direction: column; overflow: hidden; background: #EEF2F9;
}
#screen-efb-flight-dash {
    height: 100dvh; min-height: unset; display: flex;
    flex-direction: column; overflow: hidden; background: #EEF2F9;
}
.fdash-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px; }
.flight-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#screen-efb-ac-status { background: #EEF2F9; min-height: 100dvh; }

/* ── Flight bottom nav (9-tab, scrollable) ──────────────────────────────── */
.flight-nav {
    flex-shrink: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; overflow-x: auto;
    padding: 7px 4px 8px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(208,223,240,0.9);
    -ms-overflow-style: none; scrollbar-width: none;
}
.flight-nav::-webkit-scrollbar { display: none; }
.flight-nav-tab {
    flex: 0 0 auto; min-width: 56px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; padding: 5px 10px;
    background: none; border: none; cursor: pointer; color: var(--t3);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.09em; text-transform: uppercase;
    border-radius: 10px; transition: all 0.15s; white-space: nowrap;
}
.flight-nav-tab.active { background: rgba(33,96,184,0.10); color: var(--b2); }
.flight-nav-tab:hover:not(:disabled):not(.active) { color: var(--t2); }
.flight-nav-tab:disabled { opacity: 0.32; cursor: default; }
.flight-nav-abbr {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; font-weight: 700; line-height: 1; color: inherit;
}
/* FLD tab — back-to-briefing */
.fnav-fld {
    color: var(--b2) !important;
    border-right: 1px solid var(--border-row);
    margin-right: 2px;
}
.fnav-fld .flight-nav-abbr { color: var(--b2); }
.fnav-fld:hover { background: rgba(33,96,184,0.08) !important; }

/* ── OFP Card ────────────────────────────────────────────────────────────── */
.ofp-card {
    background: var(--card); border-radius: 14px; overflow: hidden; margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05);
}
.ofp-card-strip {
    background: #16A34A; padding: 7px 16px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    font-family: 'IBM Plex Mono', monospace; color: #fff; text-transform: uppercase;
}
.ofp-card-body { padding: 14px 16px 12px; }
.ofp-meta-row { display: flex; justify-content: space-between; margin-bottom: 14px; }
.ofp-meta-label {
    font-size: 9px; font-weight: 700; color: var(--t3);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px;
}
.ofp-meta-value { font-size: 14px; font-weight: 800; color: var(--t1); }
.ofp-meta-value.primary { color: var(--b2); }
.ofp-meta-right { text-align: right; }
.ofp-route-row { display: flex; align-items: center; border-top: 1px solid #EEF2F9; padding-top: 12px; }
.ofp-airport { flex: 0 0 auto; }
.ofp-iata { font-size: 26px; font-weight: 800; color: var(--t1); line-height: 1; }
.ofp-apt-time { font-size: 10px; color: var(--t3); font-family: 'IBM Plex Mono', monospace; margin-top: 3px; }
.ofp-flight-line { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 14px; }
.ofp-line-bar { width: 100%; height: 1.5px; background: var(--border); border-radius: 1px; position: relative; }
.ofp-line-bar::after {
    content: '✈'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px; background: var(--card); padding: 0 5px;
    color: var(--b2); line-height: 1;
}
.ofp-ete { font-size: 10px; font-weight: 700; color: var(--b2); margin-top: 6px; font-family: 'IBM Plex Mono', monospace; }

/* ── FMC Section Label ───────────────────────────────────────────────────── */
.fmc-section-label {
    font-size: 10px; font-weight: 800; color: var(--t3);
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 7px; margin-top: 4px; padding: 0 16px;
}

/* ── EFB table / cell system ─────────────────────────────────────────────── */
.ecrew-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05);
}
.ecrew-table td { padding: 8px 12px; vertical-align: middle; }
.ecrew-table tr:has(> .label-col),
.ecrew-table tr:has(> .label3-col) { background: rgba(33,96,184,0.88); }
.ecrew-table tr:has(> .datis-col)  { background: rgba(21,75,150,0.92); }
.label-col, .label2-col, .label3-col, .label4-col, .datis-col {
    background: transparent; color: #fff; font-weight: 700; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.12em; text-align: left; width: 25%;
}
.sublabel-col {
    background: transparent; color: var(--b2); font-weight: 700; font-size: 9px;
    text-transform: uppercase; letter-spacing: 0.1em; text-align: left; width: 25%;
    padding-top: 10px !important; padding-bottom: 3px !important;
    border-top: 2px solid #EEF2F9;
}
.value-col {
    background: #fff; color: var(--t1); text-align: center; font-weight: 700; width: 25%;
    font-family: 'IBM Plex Mono', monospace; border-top: 1px solid #F0F4FA;
}
.unit-col {
    background: #fff; color: var(--t1); text-align: center; font-size: 11px; width: 25%;
    font-family: 'IBM Plex Mono', monospace; border-top: 1px solid #F0F4FA;
}
.unit2-col {
    background: #F8FAFD; color: var(--t2); text-align: center; font-size: 11px; width: 25%;
    font-family: 'IBM Plex Mono', monospace; border-top: 1px solid #F0F4FA;
}
.altern-col {
    background: #fff; color: var(--t2); text-align: left; font-size: 10px; width: 52%;
    font-family: 'IBM Plex Mono', monospace; border-top: 1px solid #F0F4FA; padding-left: 14px;
}
.altern2-col {
    background: #fff; color: var(--t1); text-align: center; font-size: 10px; width: 6%;
    font-family: 'IBM Plex Mono', monospace; border-top: 1px solid #F0F4FA;
}
.fuel-planned {
    background: rgba(33,96,184,0.06) !important; color: var(--b2) !important;
    font-weight: 700 !important; border-top: 1px solid rgba(33,96,184,0.12) !important;
}
.fuel-highlight {
    background: var(--b1) !important; color: #fff !important;
    font-family: 'IBM Plex Mono', monospace !important; font-weight: 800 !important;
    font-size: 13px !important; border-top: none !important;
}
.divider-row td { border-top: 1px solid rgba(208,223,240,0.5); padding: 0; height: 3px; background: transparent; }

/* ── EFB inputs ──────────────────────────────────────────────────────────── */
.ecrew-input {
    background: var(--input-bg); border: 1.5px solid var(--border);
    color: var(--t1); text-align: center; padding: 4px 8px;
    font-size: 11px; border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace; transition: border-color 0.15s, box-shadow 0.15s;
}
.ecrew-input:focus { outline: none; border-color: var(--b2); box-shadow: 0 0 0 3px rgba(33,96,184,0.14); }
input[type="number"].ecrew-input { width: 70px; }
input[type="text"].ecrew-input   { width: 80px; }
input.w-120 { width: 120px; }
input.w-60  { width: 60px; }
.req-star { color: var(--red); font-weight: 700; margin-left: 2px; font-size: 10px; }

/* Input save states */
input.input-saved,   textarea.input-saved   { border-color: var(--green) !important; box-shadow: 0 0 0 2px rgba(22,163,74,0.14) !important; }
input.input-unsaved, textarea.input-unsaved { border-color: var(--red)   !important; box-shadow: 0 0 0 2px rgba(220,38,38,0.14) !important; }
.save-dot { display: inline-block; width: 14px; font-size: 10px; }
.save-dot.ok    { color: var(--green); }
.save-dot.err   { color: var(--red); }
.save-dot.saving { color: var(--t3); }

/* ── ATIS Editor ─────────────────────────────────────────────────────────── */
.atis-editor-row  { display: flex; gap: 8px; margin-bottom: 6px; }
.atis-field       { flex: 1; }
.atis-field label {
    display: block; font-size: 9px; font-weight: 700; margin-bottom: 3px;
    color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em;
}
.atis-field input, .atis-field select {
    width: 100%; font-size: 11px; padding: 4px 7px;
    border: 1.5px solid var(--border); border-radius: 6px;
    background: var(--input-bg); color: var(--t1);
    font-family: 'IBM Plex Mono', monospace;
}
.atis-actions { text-align: right; margin-top: 8px; }
.atis-btn {
    border: none; padding: 6px 14px; font-size: 10px; border-radius: 9999px;
    cursor: pointer; margin-left: 6px; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase; font-family: inherit;
}
.atis-btn-primary   { background: var(--green); color: #fff; }
.atis-btn-secondary { background: var(--input-bg); color: var(--t2); border: 1.5px solid var(--border); }
.atis-display {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; min-height: 44px;
    padding: 12px 14px; background: #F8FAFD; border-radius: 0;
    line-height: 1.7; color: var(--t1); white-space: pre-wrap;
}
.atis-edit-btn {
    float: right; background: rgba(255,255,255,0.18); border: none;
    color: rgba(255,255,255,0.85); font-size: 13px; cursor: pointer;
    padding: 0 4px; border-radius: 4px;
}

/* ── Flight Log success modal ────────────────────────────────────────────── */
#flg-success-modal .modal-card { background: var(--card-bg, #f0f4fb); text-align: center; padding: 28px 24px; }
#flg-success-modal .modal-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin: 0 auto 14px; }
.modal-title { font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.modal-body  { font-size: 13px; color: var(--t2); margin-bottom: 20px; }

/* ── EFB Dashboard ──────────────────────────────────────────────────────── */
#screen-efb-dashboard { padding-bottom: 16px; background: #EEF2F9; min-height: 100dvh; }
.dash-content   { padding: 14px 16px; }
.dash-topbar-left { display: flex; align-items: center; gap: 10px; }
.dash-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--b3); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; flex-shrink: 0;
}
.dash-action-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.dash-action-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-action-right { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-date-chip {
    background: var(--b1); color: #fff; padding: 4px 12px;
    border-radius: 9999px; font-size: 11px; font-weight: 700;
}
.dash-pilot-code { font-size: 15px; font-weight: 800; color: var(--b2); }
.dash-aircraft-badge {
    font-size: 11px; font-weight: 600; color: var(--t2);
    background: var(--card); border: 1px solid var(--border);
    padding: 3px 10px; border-radius: 9999px;
}
.dash-pill-btn {
    padding: 6px 14px; border: none; border-radius: 9999px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; cursor: pointer; font-family: inherit;
}
.dash-pill-primary   { background: var(--b2); color: #fff; }
.dash-pill-secondary { background: var(--card); color: var(--t2); border: 1.5px solid var(--border); }
.dash-card {
    background: var(--card); border-radius: 14px; overflow: hidden; margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05);
}
.dash-card-header { padding: 14px 18px 12px; border-bottom: 1px solid #EEF2F9; display: flex; align-items: center; justify-content: space-between; }
.dash-section-title { font-size: 15px; font-weight: 700; color: var(--t1); }
.dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dash-table thead th {
    padding: 8px 14px; font-size: 10px; font-weight: 700;
    color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em;
    white-space: nowrap; text-align: left; background: transparent;
}
.dash-table thead th.th-center { text-align: center; }
.dash-table thead th.th-right  { text-align: right; }
.dash-row td { border-bottom: 1px solid #F2F5FB; }
.dash-row:last-child td { border-bottom: none; }
.dash-row:hover td { background: #F8FAFD !important; }
.dash-cell { padding: 11px 14px; vertical-align: middle; background: transparent; }
.dash-fn     { font-weight: 700; color: var(--b2); white-space: nowrap; }
.dash-bold   { font-weight: 700; white-space: nowrap; }
.dash-center { text-align: center; }
.dash-muted  { color: var(--t3); }
.dash-mono   { font-family: 'IBM Plex Mono', monospace; color: var(--t3); }
.dash-airport-cell { text-align: center; }
.dash-iata   { font-weight: 700; color: var(--b2); }
.dash-time   { font-size: 10px; color: var(--t3); font-family: 'IBM Plex Mono', monospace; margin-top: 1px; }
.dash-status-cell { text-align: right; white-space: nowrap; padding: 11px 18px; vertical-align: middle; }
.dash-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; }
.dash-dot-complete   { background: #16A34A; }
.dash-dot-scheduled  { background: #F59E0B; }
.dash-dot-inprogress { background: var(--b2); }
.dash-dot-cancelled  { background: var(--red); }
.dash-dot-open       { background: var(--t3); }
.dash-action-btn {
    padding: 4px 10px; border: none; border-radius: 9999px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; cursor: pointer; font-family: inherit; white-space: nowrap;
    vertical-align: middle; margin-right: 6px;
}
.dash-btn-checkin { background: rgba(245,158,11,0.15); color: #92400E; border: 1px solid rgba(245,158,11,0.35); }
.dash-btn-efl     { background: var(--b2); color: #fff; }
.dash-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    padding: 10px 18px; background: #F8FAFD; border-top: 1px solid #EEF2F9;
}
.dash-legend-label { font-size: 10px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-legend-item  { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--t3); text-transform: uppercase; }
.dash-empty { padding: 36px; text-align: center; }
.dash-empty-title { font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 4px; }
.dash-empty-sub   { font-size: 11px; color: var(--t3); }

/* ── Flight Dash (Briefing screen) ─────────────────────────────────────── */
.fdash-pill-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fdash-pill-ac  { background: rgba(33,96,184,0.09); color: var(--b2); border: 1.5px solid rgba(33,96,184,0.28); }
.fdash-pill-ofp { background: var(--header-grad); color: #fff; box-shadow: 0 2px 10px rgba(21,75,150,0.28); }
.fdash-pill-ofp:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; background: var(--border); color: var(--t3); }
.fdash-pill-ntm { background: rgba(33,96,184,0.09); color: var(--b2); border: 1.5px solid rgba(33,96,184,0.28); }
.fdash-route-body { padding: 16px 18px; }
.fdash-id-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.fdash-flight-id { display: flex; flex-direction: column; gap: 2px; }
.fdash-fn { font-size: 22px; font-weight: 800; color: var(--b2); line-height: 1; }
.fdash-cs { font-size: 12px; font-weight: 600; color: var(--t3); margin-top: 2px; }
.fdash-status-badge { display: flex; align-items: center; gap: 7px; }
.fdash-status-text  { font-size: 10px; font-weight: 700; color: var(--t2); text-transform: uppercase; }
.fdash-route-viz {
    display: flex; align-items: center;
    border-top: 1px solid #EEF2F9; border-bottom: 1px solid #EEF2F9; padding: 16px 0; margin-bottom: 14px;
}
.fdash-apt { flex: 0 0 auto; }
.fdash-apt-right { text-align: right; }
.fdash-iata { font-size: 40px; font-weight: 800; color: var(--t1); line-height: 1; }
.fdash-apt-time { font-size: 13px; font-weight: 700; color: var(--b2); font-family: 'IBM Plex Mono', monospace; margin-top: 4px; }
.fdash-apt-sub  { font-size: 9px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.fdash-line { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 18px; }
.fdash-line-bar { width: 100%; height: 1.5px; background: var(--border); border-radius: 1px; position: relative; }
.fdash-line-bar::after {
    content: '✈'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 14px;
    background: var(--card); padding: 0 8px; color: var(--b2); line-height: 1;
}
.fdash-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fdash-meta-item { display: flex; flex-direction: column; gap: 3px; background: var(--input-bg); border-radius: 9px; padding: 8px 10px; }
.fdash-meta-label { font-size: 9px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; }
.fdash-meta-val   { font-size: 13px; font-weight: 700; color: var(--t1); }
.fdash-mono       { font-family: 'IBM Plex Mono', monospace; }
.fdash-msg { margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 1.4; }
.fdash-msg-error   { background: var(--red-bg);   color: var(--red);        border: 1px solid #FECACA; }
.fdash-msg-success { background: var(--green-bg); color: var(--green-text); border: 1px solid #BBF7D0; }
.fdash-msg-info    { background: rgba(33,96,184,0.07); color: var(--b2);    border: 1px solid rgba(33,96,184,0.22); }
.fdash-crew-card { margin-top: 12px; overflow: visible; }
.fdash-details-summary {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px;
    cursor: pointer; list-style: none; border-bottom: 1px solid #EEF2F9;
}
.fdash-details-summary::-webkit-details-marker { display: none; }
.fdash-details-chevron { font-size: 18px; font-weight: 700; color: var(--b2); transition: transform 0.2s; display: inline-block; line-height: 1; }
.fdash-details[open] .fdash-details-chevron { transform: rotate(90deg); }
.fdash-crew-self td { background: rgba(33,96,184,0.04) !important; }
.fdash-crew-empty { text-align: center; padding: 24px !important; color: var(--t3); font-size: 11px; font-style: italic; }
.fdash-crew-footnote { padding: 8px 16px 10px; background: #F8FAFD; border-top: 1px solid #EEF2F9; }
.fdash-crew-footnote p { font-size: 9px; color: var(--t3); line-height: 1.5; margin: 0; }

/* ── A/C Status ──────────────────────────────────────────────────────────── */
.acstat-content { padding: 14px 16px; }
.acstat-hero    { margin-bottom: 14px; }
.acstat-reg-num { font-size: 42px; font-weight: 800; color: var(--b1); font-family: 'IBM Plex Mono', monospace; letter-spacing: -0.02em; line-height: 1; }
.acstat-type    { font-size: 12px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }
.acstat-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 580px) { .acstat-grid { grid-template-columns: 1fr; } }
.acstat-col { display: flex; flex-direction: column; }
.acstat-sub-label { font-size: 9px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 6px; }
.acstat-flight-card { background: var(--card); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-left: 3px solid var(--b2); box-shadow: 0 1px 3px rgba(21,75,150,0.07); }
.acstat-flight-left  { display: flex; flex-direction: column; gap: 3px; }
.acstat-flight-fn    { font-size: 15px; font-weight: 800; color: var(--b2); }
.acstat-flight-route { font-size: 11px; font-weight: 600; color: var(--t2); }
.acstat-flight-right { text-align: right; }
.acstat-flight-time-lbl { display: block; font-size: 8px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; }
.acstat-flight-time { display: block; font-size: 13px; font-weight: 700; color: var(--t1); font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
.acstat-pills { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.acstat-pill  { border-radius: 10px; padding: 10px 6px; text-align: center; }
.acstat-pill-ok   { background: var(--green-bg); }
.acstat-pill-warn { background: var(--red-bg); }
.acstat-pill-lbl  { display: block; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.acstat-pill-ok   .acstat-pill-lbl { color: var(--green-text); }
.acstat-pill-warn .acstat-pill-lbl { color: var(--red); }
.acstat-pill-val  { display: block; font-size: 10px; font-weight: 800; font-family: 'IBM Plex Mono', monospace; }
.acstat-pill-ok   .acstat-pill-val { color: var(--green); }
.acstat-pill-warn .acstat-pill-val { color: var(--red); }
.acstat-weight-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.acstat-weight-item { background: var(--card); border-radius: 9px; padding: 9px 6px; text-align: center; box-shadow: 0 1px 3px rgba(21,75,150,0.06); }
.acstat-weight-lbl  { display: block; font-size: 8px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; }
.acstat-weight-val  { display: block; font-size: 13px; font-weight: 800; color: var(--b2); font-family: 'IBM Plex Mono', monospace; }
.acstat-weight-sub  { display: block; font-size: 8px; font-weight: 600; color: var(--t3); font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
.acstat-no-limit    { background: var(--card); border-radius: 10px; padding: 24px; text-align: center; color: var(--t3); font-size: 11px; font-style: italic; box-shadow: 0 1px 3px rgba(21,75,150,0.07); }
.acstat-limit-section { margin-bottom: 10px; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(21,75,150,0.07); }
.acstat-limit-title   { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; padding: 7px 12px; }
.acstat-limit-mel     { background: var(--red-bg);              color: var(--red); }
.acstat-limit-cdl     { background: rgba(245,158,11,0.12);      color: #92400E; }
.acstat-limit-other   { background: rgba(33,96,184,0.08);       color: var(--b2); }
.acstat-limit-item    { background: var(--card); padding: 10px 12px; border-bottom: 1px solid #EEF2F9; }
.acstat-limit-item:last-child { border-bottom: none; }
.acstat-limit-cat     { font-size: 9px; font-weight: 700; color: var(--t3); text-transform: uppercase; margin-bottom: 3px; }
.acstat-limit-desc    { font-size: 11px; font-weight: 600; color: var(--t1); line-height: 1.4; }
.acstat-limit-ref     { font-size: 9px; color: var(--t3); margin-top: 2px; font-family: 'IBM Plex Mono', monospace; }
.acstat-tl-card   { background: var(--card); border-radius: 14px; overflow: hidden; margin-top: 12px; box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05); }
.acstat-tl-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #EEF2F9; }
.acstat-tl-title  { font-size: 13px; font-weight: 700; color: var(--t1); }
.acstat-tl-count  { font-size: 10px; font-weight: 700; color: var(--t3); background: var(--input-bg); border: 1px solid var(--border); padding: 2px 9px; border-radius: 9999px; }
.acstat-tl-empty  { padding: 28px; text-align: center; font-size: 11px; color: var(--t3); font-style: italic; }
.acstat-tl-row    { padding: 10px 16px; border-bottom: 1px solid #EEF2F9; }
.acstat-tl-row:last-child { border-bottom: none; }
.acstat-tl-row:hover { background: #F8FAFD; }
.acstat-tl-row-main  { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acstat-tl-row-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.acstat-tl-row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.acstat-tl-date   { font-size: 11px; font-weight: 700; color: var(--t1); font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.acstat-tl-cs     { font-size: 11px; font-weight: 700; color: var(--b2); white-space: nowrap; }
.acstat-tl-route  { font-size: 10px; font-weight: 600; color: var(--t3); white-space: nowrap; }
.acstat-tl-ft     { font-size: 11px; font-weight: 700; color: var(--t2); font-family: 'IBM Plex Mono', monospace; }
.acstat-tl-badge  { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 9999px; }
.acstat-tl-badge-mel { background: var(--red-bg); color: var(--red); border: 1px solid #FECACA; }
.acstat-tl-remark { margin-top: 4px; font-size: 10px; color: var(--t3); font-family: 'IBM Plex Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acstat-tl-more     { border-top: 1px solid #EEF2F9; padding: 10px 16px; text-align: center; }
.acstat-tl-more-btn { background: none; border: 1.5px solid var(--border); border-radius: 9999px; padding: 6px 18px; font-size: 10px; font-weight: 700; color: var(--b2); cursor: pointer; font-family: inherit; }
.acstat-tl-more-btn:disabled { color: var(--t3); cursor: default; }
.acstat-tl-more-hint { font-weight: 400; color: var(--t3); }
.acstat-loading { padding: 32px; text-align: center; font-size: 11px; color: var(--t3); background: var(--card); border-radius: 12px; box-shadow: 0 1px 3px rgba(21,75,150,0.07); }
.acstat-error   { padding: 20px; text-align: center; font-size: 11px; color: var(--red); background: var(--red-bg); border: 1px solid #FECACA; border-radius: 12px; }

/* ── eLID Tab ─────────────────────────────────────────────────────────────── */
.elid-lid-card   { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05); }
.elid-lid-strip  { background: rgba(33,96,184,0.88); padding: 7px 16px; display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; }
.elid-lid-cell   { text-align: center; }
.elid-lid-th     { display: block; font-size: 8px; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.elid-lid-val    { display: block; font-size: 11px; font-weight: 800; color: #fff; font-family: 'IBM Plex Mono', monospace; }
.elid-lid-meta   { padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--t3); flex-wrap: wrap; gap: 6px; }
.elid-lid-meta span { font-weight: 700; color: var(--t2); }
.elid-card        { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05); }
.elid-card-header { background: rgba(33,96,184,0.88); padding: 7px 14px; font-size: 10px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.12em; display: flex; align-items: center; justify-content: space-between; }
.elid-card-body   { padding: 12px 14px; }
#elid-save-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background 0.3s; vertical-align: middle; margin-left: 6px; }
#elid-save-indicator.elid-saved { background: var(--green); }
.elid-pcc-card  { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05); display: flex; }
.elid-pcc-pax   { flex: 1; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #EEF2F9; }
.elid-pcc-crew  { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.elid-pcc-sec-hdr { padding: 6px 14px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: #fff; }
.elid-pcc-pax-hdr  { background: rgba(33,96,184,0.88); }
.elid-pcc-crew-hdr { background: rgba(33,96,184,0.55); }
.elid-pcc-row   { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; border-bottom: 1px solid #EEF2F9; }
.elid-pcc-row:last-of-type { border-bottom: none; }
.elid-pcc-lbl   { font-size: 9px; font-weight: 800; color: var(--t3); text-transform: uppercase; letter-spacing: 0.12em; }
.elid-pcc-inp   { width: 66px; border: none; background: transparent; text-align: right; font-weight: 800; font-size: 19px; color: var(--t1); padding: 0; font-family: 'IBM Plex Mono', monospace; outline: none; -moz-appearance: textfield; appearance: textfield; }
.elid-pcc-inp::-webkit-outer-spin-button, .elid-pcc-inp::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.elid-pcc-inp:focus { background: var(--input-bg); border-radius: 6px; padding: 0 6px; }
.elid-pcc-mid   { width: 230px; flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; padding: 7px; background: #EEF2F9; }
.elid-pcc-tob   { flex: 1; background: var(--b2); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 8px; }
.elid-pcc-tob-lbl { font-size: 9px; font-weight: 800; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 6px; }
.elid-pcc-tob-num { font-size: 34px; font-weight: 800; color: #fff; font-family: 'IBM Plex Mono', monospace; line-height: 1; text-align: center; }
.elid-pcc-tob-sub { font-size: 7px; color: rgba(255,255,255,0.4); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }
.elid-pcc-zones { display: flex; flex-direction: column; gap: 4px; }
.elid-pcc-zone  { background: var(--card); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; }
.elid-pcc-zone-name { font-size: 8px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; }
.elid-pcc-zone-val  { font-size: 17px; font-weight: 800; color: var(--b2); font-family: 'IBM Plex Mono', monospace; line-height: 1; }
.elid-pcc-thob  { margin-top: auto; background: #1A9B5F; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; border-top: 1px solid rgba(255,255,255,0.15); }
.elid-pcc-thob-lbl { font-size: 9px; font-weight: 800; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 6px; }
.elid-pcc-thob-num { font-size: 34px; font-weight: 800; color: #fff; font-family: 'IBM Plex Mono', monospace; line-height: 1; text-align: center; }
.elid-pcc-thob-sub { font-size: 7px; color: rgba(255,255,255,0.4); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }
.elid-grid   { display: grid; gap: 1px; background: #EEF2F9; border-radius: 10px; overflow: hidden; }
.elid-grid-2 { grid-template-columns: 1fr 1fr; }
.elid-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.elid-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.elid-field       { background: var(--card); padding: 9px 10px; }
.elid-field-label { font-size: 8px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.elid-field-value { font-size: 13px; font-weight: 800; color: var(--t1); font-family: 'IBM Plex Mono', monospace; }
.elid-field-value.muted { color: var(--t3); font-size: 12px; }
.elid-input       { width: 100%; border: none; background: transparent; text-align: center; font-weight: 700; font-size: 13px; color: var(--t1); padding: 2px; font-family: 'IBM Plex Mono', monospace; outline: none; }
.elid-input:focus { background: var(--input-bg); border-radius: 4px; }
.elid-input[readonly] { color: var(--b2); }
.elid-sub-label   { font-size: 9px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.12em; padding: 7px 14px 4px; }
.elid-cargo-table { width: 100%; border-collapse: collapse; }
.elid-cargo-table th { background: rgba(33,96,184,0.08); font-size: 8px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 10px; text-align: center; }
.elid-cargo-table th:first-child { text-align: left; }
.elid-cargo-table td { padding: 7px 10px; text-align: center; border-top: 1px solid #EEF2F9; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 700; }
.elid-cargo-table td:first-child { text-align: left; font-weight: 800; color: var(--b2); }
.elid-cargo-table td.readonly { color: var(--t3); }
.elid-bws-toggle  { display: flex; gap: 2px; background: #EEF2F9; border-radius: 9999px; padding: 3px; margin: 0 14px 10px; }
.elid-bws-opt     { flex: 1; text-align: center; cursor: pointer; font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 5px 10px; border-radius: 9999px; color: var(--t3); user-select: none; }
.elid-bws-opt input { display: none; }
.elid-bws-opt:has(input:checked) { background: var(--card); color: var(--b2); box-shadow: 0 1px 3px rgba(21,75,150,0.12); }
.elid-textarea { width: 100%; border: none; background: var(--input-bg); border-radius: 8px; color: var(--t1); padding: 10px 12px; font-size: 11px; resize: vertical; font-family: 'IBM Plex Mono', monospace; min-height: 70px; outline: none; }
.elid-security-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.elid-toggle-wrap  { display: flex; align-items: center; gap: 8px; }
.elid-toggle-label { font-size: 10px; font-weight: 700; color: var(--t2); }
.elid-toggle {
    width: 38px; height: 22px; background: var(--border); border-radius: 9999px;
    position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0;
    -webkit-appearance: none; appearance: none; border: none; outline: none;
}
.elid-toggle::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.elid-toggle:checked { background: var(--green); }
.elid-toggle:checked::after { transform: translateX(16px); }
.elid-sec-field  { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--t3); }
.elid-sec-input  { border: 1px solid var(--border); border-radius: 6px; background: var(--input-bg); color: var(--t1); font-size: 11px; padding: 4px 8px; font-family: 'IBM Plex Mono', monospace; width: 90px; text-align: center; }
.elid-sec-from   { width: 60px; }
.elid-action-row { display: flex; gap: 8px; align-items: center; }
.elid-save-btn   { flex: 1; padding: 12px; border: none; border-radius: 9999px; background: var(--b2); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; font-family: inherit; }
.elid-cg-btn     { flex-shrink: 0; padding: 12px 16px; border: 1.5px solid var(--b2); border-radius: 9999px; background: transparent; color: var(--b2); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; font-family: inherit; white-space: nowrap; }
.elid-inc-row, .elid-pcc-inc-row  { display: flex; border-top: 1px solid #EEF2F9; }
.elid-pcc-inc-field { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 8px; border-right: 1px solid #EEF2F9; }
.elid-pcc-inc-field:last-child { border-right: none; }
.elid-pcc-inc-lbl { font-size: 7px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; }
.elid-pcc-inc-inp { width: 48px; border: none; background: transparent; text-align: center; font-weight: 700; font-size: 13px; color: var(--t1); padding: 0; font-family: 'IBM Plex Mono', monospace; outline: none; -moz-appearance: textfield; appearance: textfield; }
.elid-pcc-inc-inp::-webkit-outer-spin-button, .elid-pcc-inc-inp::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* ── eLID: simulated ramp-agent PAX (no-shows / SNY / Inc Item / Inc Comfort) ── */
.elid-info-icon-btn {
    background: none; border: none; color: #fff; opacity: 0.8;
    font-size: 12px; line-height: 1; padding: 0; margin-left: 3px;
    cursor: pointer; vertical-align: middle;
}
.elid-info-icon-btn:active { opacity: 0.55; }

/* Applied to elid-pcc-inp / elid-pcc-inc-inp fields whose prefilled value was
   randomly generated (no-show / SNY / Inc Item / Inc Comfort) and differs from
   the flight-plan estimate — cleared automatically once the pilot edits it. */
.elid-amber {
    background: rgba(245,158,11,0.16) !important;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(245,158,11,0.55);
}

.elid-pax-compare-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; padding: 0 20px; }
.elid-pax-compare-table th, .elid-pax-compare-table td { padding: 5px 20px; text-align: right; }
.elid-pax-compare-table th:first-child, .elid-pax-compare-table td:first-child { text-align: left; padding-right: 4px; }
.elid-pax-compare-table th {
    font-size: 9px; font-weight: 800; color: var(--t3, #888);
    text-transform: uppercase; letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border, #ddd);
}
.elid-pax-compare-table td {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700; color: var(--t1, #111);
}
.elid-pax-compare-table td:first-child {
    font-family: inherit; font-size: 10px; font-weight: 700; color: var(--t3, #888);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.pax-cmp-total td { border-top: 1px solid var(--border, #ddd); padding-top: 8px; color: var(--btn-blue, #154B96); }
.pax-cmp-total td:first-child { color: var(--btn-blue, #154B96); }
.pax-cmp-kg td { font-size: 15px; color: var(--btn-blue, #154B96); padding-bottom: 8px; }
.pax-cmp-kg td:first-child { font-size: 10px; color: var(--btn-blue, #154B96); }

.elid-pax-modal-extra { display: flex; gap: 8px; padding: 4px 20px 0; }
.elid-pax-modal-extra-item { flex: 1; text-align: center; background: rgba(245,158,11,0.12); border-radius: 8px; padding: 6px 4px; }
.elid-pax-modal-extra-item span { display: block; font-size: 8px; font-weight: 700; color: var(--t3, #888); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.elid-pax-modal-extra-item b { font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: #b45309; }

/* ── Flight Log ──────────────────────────────────────────────────────────── */
.flg-computed { color: var(--b2); font-weight: 700; }
.flg-src { display: inline-block; font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 9999px; vertical-align: middle; margin-left: 4px; letter-spacing: 0.08em; text-transform: uppercase; }
.flg-src-fmc { background: var(--green-bg); color: var(--green-text); border: 1px solid #86efac; }
.flg-src-ofp { background: #FEF9EE; color: #92400e; border: 1px solid #fcd34d; }
.flg-gops-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.flg-gops-btns { display: inline-flex; gap: 2px; }
.flg-gops-btn  { display: inline-block; padding: 2px 8px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; border: 1.5px solid var(--border); border-radius: 9999px; cursor: pointer; color: var(--t3); background: var(--input-bg); user-select: none; }
.flg-gops-btn input[type=radio] { display: none; }
.flg-gops-active { background: var(--b2) !important; color: #fff !important; border-color: var(--b2) !important; }
.flg-textarea    { width: 100%; resize: vertical; min-height: 56px; background: var(--input-bg); border: 1.5px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--t1); font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; }
.flg-checkbox    { width: 18px; height: 18px; accent-color: var(--b2); cursor: pointer; }
.flg-msg         { padding: 8px 14px; border-radius: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 600; border: 1.5px solid; }
.flg-msg-success { background: var(--green-bg); color: var(--green-text); border-color: #86efac; }
.flg-msg-error   { background: var(--red-bg);   color: var(--red);        border-color: #fca5a5; }
.flg-msg-info    { background: #EFF6FF; color: var(--b2); border-color: #bfdbfe; }
.flg-presave-info { font-size: 10px; color: var(--t3); margin-bottom: 8px; min-height: 14px; font-family: 'IBM Plex Mono', monospace; }
.flg-clear-btn   { display: block; width: 100%; padding: 9px; background: transparent; color: var(--t3); border: 1.5px solid var(--border); border-radius: 9999px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; font-family: inherit; }
.flg-clear-btn:hover { color: var(--red); border-color: #fca5a5; }
.flg-loading     { padding: 16px; color: var(--t3); font-size: 11px; text-align: center; }
.flg-elid-row    { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.flg-link-btn    { padding: 5px 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--b2); color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.flg-unlink-btn  { padding: 4px 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: transparent; color: var(--t3); border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.flg-unlink-btn:hover { color: var(--red); border-color: #fca5a5; }

/* ── Weather ─────────────────────────────────────────────────────────────── */
#wx-content   { max-width: 760px; margin: 0 auto; }
.wx-state-msg { padding: 24px 16px; text-align: center; font-size: 12px; color: var(--t3); }
.wx-apt-card  { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05); overflow: hidden; margin-bottom: 6px; }
.wx-apt-hdr   { background: rgba(33,96,184,0.88); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; letter-spacing: 0.04em; }
.wx-sigmet-body { padding: 6px 10px; }
.wx-metar-row { display: flex; align-items: flex-start; gap: 8px; padding: 3px 10px; border-top: 1px solid #F0F4FA; }
.wx-badge     { flex-shrink: 0; background: rgba(33,96,184,0.55); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; padding: 2px 5px; border-radius: 4px; min-width: 22px; text-align: center; margin-top: 2px; }
.wx-metar-text { font-family: 'IBM Plex Mono', 'Roboto Mono', monospace; font-size: 10.5px; line-height: 1.45; white-space: pre-wrap; color: var(--t1); margin: 0; }
.wx-nil-card  { padding: 10px 12px; font-size: 11px; }
.wx-wind-pre  { font-family: 'Roboto Mono', monospace; font-size: 10.5px; white-space: pre; margin: 0; padding: 12px 16px; background: #fff; color: var(--t1); overflow-x: auto; border-radius: 14px; box-shadow: 0 1px 3px rgba(21,75,150,0.07), 0 4px 16px rgba(21,75,150,0.05); width: 100%; text-align: center; }
.wx-chart-img { display: block; max-width: 100%; border: 1px solid var(--border); border-radius: 6px; margin: 6px 0; }
.wx-nil       { color: var(--t3); font-style: italic; }
.wx-no-data   { font-size: 11px; color: var(--t3); padding: 8px 0; margin: 0; }

/* ── Content area ────────────────────────────────────────────────────────── */
.content       { padding: 14px 16px; }
.section       { margin-bottom: 0; }
.section-gap   { height: 14px; }

/* ── CI Calculator Modal ─────────────────────────────────────────────────── */
.ci-calc-icon { cursor: pointer; margin-left: 6px; font-size: 13px; color: var(--b2); transition: transform 0.2s; display: inline-block; vertical-align: middle; }
.ci-calc-icon:hover { transform: scale(1.3); }

.ci-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.ci-modal-content { background: var(--bg, #fff); margin: 5% auto; padding: 0; border: 1px solid var(--border, #ccc); border-radius: 12px; width: 90%; max-width: 540px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); animation: ci-slide-down 0.25s ease-out; }
@keyframes ci-slide-down { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ci-modal-header { background: linear-gradient(135deg, #003580 0%, #0051a8 100%); color: #fff; padding: 18px 20px; border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center; }
.ci-modal-header h2 { margin: 0; font-size: 18px; font-weight: 700; }
.ci-modal-close { color: #fff; font-size: 28px; font-weight: bold; cursor: pointer; background: none; border: none; padding: 0; line-height: 1; transition: transform 0.2s; }
.ci-modal-close:hover { transform: scale(1.2); }

.ci-modal-body { padding: 20px; }
.ci-section { margin-bottom: 20px; padding: 16px; border: 1px solid var(--border, #e1e1e1); border-radius: 8px; background: var(--bg2, #f9f9f9); }
.ci-section:last-child { margin-bottom: 0; }
.ci-section h3 { font-size: 13px; font-weight: 700; margin: 0 0 14px; color: var(--t2, #555); border-bottom: 2px solid #003580; padding-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

.ci-form-group { margin-bottom: 12px; }
.ci-form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 11px; color: var(--t1, #333); text-transform: uppercase; letter-spacing: 0.05em; }
.ci-form-group input { width: 100%; padding: 9px 10px; border: 1px solid var(--border, #ccc); border-radius: 6px; box-sizing: border-box; font-size: 13px; background: var(--bg, #fff); color: var(--t1, #333); transition: border-color 0.2s; }
.ci-form-group input:focus { outline: none; border-color: #003580; box-shadow: 0 0 0 3px rgba(0,53,128,0.1); }

.ci-calc-btn { width: 100%; background: linear-gradient(135deg, #003580 0%, #0051a8 100%); color: #fff; padding: 12px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: transform 0.15s, box-shadow 0.15s; }
.ci-calc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,53,128,0.3); }
.ci-calc-btn:active { transform: translateY(0); }

.ci-result { margin-top: 12px; padding: 14px; background: linear-gradient(135deg, #e7f3ff 0%, #d0e8ff 100%); border-left: 4px solid #003580; border-radius: 6px; font-size: 13px; font-weight: 600; text-align: center; display: none; color: #003580; }
.ci-result.show { display: block; animation: ci-fade-in 0.25s ease-in; }
@keyframes ci-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ci-result span { font-weight: 800; font-size: 28px; display: block; margin-top: 4px; color: #003580; }

/* ── ATC / VP Tab ────────────────────────────────────────────────────────── */
.atcvp-prefile-row  { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px; }
.atcvp-prefile-btn  { display: inline-block; padding: 6px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 20px; border: 1.5px solid var(--b2); color: var(--b2); background: transparent; cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.atcvp-prefile-btn:not(.disabled):hover { background: var(--b2); color: #fff; }
.atcvp-prefile-btn.disabled { opacity: 0.35; cursor: default; pointer-events: none; }

.atcvp-fpl-card     { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.atcvp-fpl-bar      { background: var(--b2); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; display: flex; justify-content: space-between; align-items: center; }
.atcvp-copy-btn     { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 12px; cursor: pointer; transition: background 0.15s; }
.atcvp-copy-btn:hover { background: rgba(255,255,255,0.32); }
.atcvp-fpl-text     { font-family: 'IBM Plex Mono', 'Roboto Mono', monospace; font-size: 11.5px; line-height: 1.7; margin: 0; padding: 12px 14px; white-space: pre-wrap; word-break: break-all; color: var(--t1); }

.atcvp-vp-img       { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--border); margin-top: 4px; }
.atcvp-vp-nil       { padding: 20px; text-align: center; color: var(--t2); font-size: 12px; }

/* ── DOC / DOCUNET ──────────────────────────────────────────────────────────── */
#flight-tab-doc .section { background: var(--card); border: 1px solid var(--b2);
                            border-radius: 0 0 8px 8px; padding: 10px 12px; margin-top: -1px;
                            margin-bottom: 10px; }
#flight-tab-doc .fmc-section-label { border-radius: 8px 8px 0 0; border: 1px solid var(--b2);
                                      border-bottom: none; background: var(--b2);
                                      color: #fff; padding: 6px 12px; margin: 0; }

.doc-apt-tabs-wrap   { padding: 12px 14px 10px; }
.doc-apt-tabs        { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-apt-tab         { background: var(--card); border: 1px solid var(--border); border-radius: 8px;
                       padding: 6px 10px; text-align: center; cursor: pointer;
                       display: flex; flex-direction: column; gap: 1px; min-width: 80px;
                       transition: border-color 0.15s, background 0.15s; }
.doc-apt-tab.active  { background: var(--b2); border-color: var(--b2); }
.doc-apt-tab-type    { font-size: 9px; font-weight: 700; text-transform: uppercase;
                       letter-spacing: 0.08em; color: var(--t2); }
.doc-apt-tab.active .doc-apt-tab-type { color: rgba(255,255,255,0.75); }
.doc-apt-tab-icao    { font-size: 14px; font-weight: 800; color: var(--t1); }
.doc-apt-tab.active .doc-apt-tab-icao { color: #fff; }
.doc-apt-tab-iata    { font-size: 10px; color: var(--t2); }
.doc-apt-tab.active .doc-apt-tab-iata { color: rgba(255,255,255,0.7); }

.doc-info-table      { width: 100%; border-collapse: collapse; font-size: 12px; }
.doc-info-table th   { color: var(--t2); font-weight: 600; text-align: left; padding: 4px 8px 4px 0;
                       white-space: nowrap; width: 100px; }
.doc-info-table td   { color: var(--t1); padding: 4px 0; }

.doc-gnd-handler     { font-size: 13px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.doc-park-row        { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.doc-park-label      { color: var(--t2); min-width: 100px; }
.doc-badge           { display: inline-block; border-radius: 10px; padding: 2px 10px;
                       font-size: 11px; font-weight: 700; }
.doc-badge-primary   { background: rgba(59,130,246,0.18);  color: #60a5fa; }
.doc-badge-warning   { background: rgba(245,158,11,0.18);  color: #fbbf24; }
.doc-badge-success   { background: rgba(34,197,94,0.18);   color: #4ade80; }
.doc-badge-info      { background: rgba(14,165,233,0.18);  color: #38bdf8; }
.doc-badge-secondary { background: rgba(148,163,184,0.15); color: var(--t2); }

.doc-freq-badge      { display: inline-flex; align-items: baseline; gap: 4px;
                       background: var(--bg); border: 1px solid var(--border);
                       border-radius: 6px; padding: 2px 8px; font-size: 12px;
                       font-weight: 700; color: var(--t1); margin: 2px 4px 2px 0; }
.doc-freq-badge small { font-size: 10px; font-weight: 400; color: var(--t2); }

.doc-nil             { color: var(--t2); font-size: 12px; padding: 8px 0; }

.doc-briefing-content       { margin-top: 4px; }
.doc-briefing-section       { border-top: 1px solid var(--border); }
.doc-briefing-section:first-child { border-top: none; }
.doc-briefing-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase;
                               letter-spacing: 0.08em; color: var(--b2);
                               padding: 8px 0 4px; }
.doc-briefing-section-body  { font-size: 12px; line-height: 1.65; color: var(--t1);
                               padding-bottom: 10px; }
.doc-briefing-section-body h1,
.doc-briefing-section-body h2,
.doc-briefing-section-body h3 { font-size: 13px; font-weight: 700; margin: 10px 0 4px; color: var(--t1); }
.doc-briefing-section-body ul  { padding-left: 16px; margin: 4px 0; }
.doc-briefing-section-body li  { margin-bottom: 3px; }
.doc-briefing-section-body p   { margin: 4px 0; }
.doc-briefing-section-body code { font-family: 'IBM Plex Mono', monospace; font-size: 11px;
                                   background: var(--bg); border: 1px solid var(--border);
                                   border-radius: 4px; padding: 1px 4px; }

/* ── Briefing: Operational block ────────────────────────────────────────────── */
.doc-briefing-op          { border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
                             margin-bottom: 14px; font-size: 12px; }
.doc-briefing-op-row      { display: flex; border-bottom: 1px solid var(--border); }
.doc-briefing-op-row:last-child { border-bottom: none; }
.doc-briefing-op-cell     { flex: 1; padding: 0; min-width: 0; }
.doc-briefing-op-cell-wide { flex: 3; }
.doc-briefing-op-cell-full { flex: 1; }
.doc-briefing-op-label    { background: #4f5254; color: #fff; font-size: 10px; font-weight: 800;
                             text-transform: uppercase; letter-spacing: 0.06em;
                             padding: 4px 8px; }
.doc-briefing-op-value    { padding: 6px 8px; color: var(--t1); white-space: pre-wrap; }
.doc-briefing-op-airspace { font-size: 20px; font-weight: 800; line-height: 1.2; }
.doc-briefing-op-cell + .doc-briefing-op-cell { border-left: 1px solid var(--border); }

/* ── Briefing: Aviation markers ─────────────────────────────────────────────── */
.inline-caution  { color: var(--t1); padding: 8px 12px; margin: 10px 0;
                   border-top: 3px solid #f97316; border-bottom: 3px solid #f97316; font-size: 12px; }
.inline-caution::before { content: "CAUTION: "; font-weight: 800; color: #f97316; }

.inline-sms      { color: var(--t1); padding: 8px 12px; margin: 10px 0;
                   border-top: 3px solid #eab308; border-bottom: 3px solid #eab308; font-size: 12px; }
.inline-sms::before { content: "SMS HOTSPOT: "; font-weight: 800; color: #eab308; }

.inline-warning  { color: var(--t1); padding: 8px 12px; margin: 10px 0;
                   border-top: 3px solid #ef4444; border-bottom: 3px solid #ef4444; font-size: 12px; }
.inline-warning::before { content: "WARNING: "; font-weight: 800; color: #ef4444; }

.tem-button      { background: #dc2626; color: #fff; padding: 2px 6px; border-radius: 4px;
                   font-size: 10px; font-weight: 800; display: inline-block;
                   margin-right: 6px; vertical-align: middle; letter-spacing: 0.05em; }
.tem-line        { position: relative; padding-left: 44px; margin-bottom: 8px; font-size: 12px;
                   color: var(--t1); }
.tem-line .tem-button { position: absolute; left: 0; top: 1px; }

.rwy-condition-box { display: inline-flex; align-items: center; background: #1a1a1a;
                     padding: 3px 6px; border-radius: 4px; gap: 3px; }
.rwy-condition-box .dot       { width: 10px; height: 10px; border-radius: 50%; }
.rwy-condition-box .dot.white { background: #fff; }
.rwy-condition-box .dot.red   { background: #ef4444; }

/* ── Order Fuel (FMC Page) ───────────────────────────────────────────────── */
.order-fuel-btn {
    background: none;
    border: 1px solid var(--btn-blue, #154B96);
    border-radius: 10px;
    color: var(--btn-blue, #154B96);
    font-size: 10px; font-weight: 700; font-family: inherit;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 3px 8px; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.order-fuel-btn:hover { background: var(--btn-blue, #154B96); color: #fff; }
.order-fuel-chevron { font-size: 12px; vertical-align: -1px; }

.order-fuel-panel {
    background: var(--card-bg, #f0f4fb);
    border: 1px solid var(--border, #d0d8e8);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 4px 0 6px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.order-fuel-label {
    font-size: 11px; font-weight: 600; color: var(--t2, #555);
    white-space: nowrap;
}
.order-fuel-input-row {
    display: flex; align-items: center; gap: 6px; flex: 1;
}
.order-fuel-input {
    width: 80px; padding: 4px 6px;
    border: 1px solid var(--border, #ccc); border-radius: 6px;
    font-size: 13px; font-weight: 700; font-family: inherit;
    background: var(--bg, #fff); color: var(--t1, #111);
    text-align: right;
}
.order-fuel-unit {
    font-size: 11px; color: var(--t3, #888); font-weight: 600;
}
.order-fuel-order-btn {
    background: var(--btn-blue, #154B96); color: #fff;
    border: none; border-radius: 10px;
    font-size: 11px; font-weight: 700; font-family: inherit;
    letter-spacing: 0.07em; padding: 5px 14px; cursor: pointer;
    transition: opacity 0.15s;
}
.order-fuel-order-btn:hover { opacity: 0.85; }
.order-fuel-order-btn:active { opacity: 0.7; }

/* ── Fuel Receipt Modal ──────────────────────────────────────────────────── */
.fuel-receipt-card {
    background: var(--card-bg, #f0f4fb);
    min-width: 260px; max-width: 340px; width: 90%;
    padding: 0 0 16px; overflow: hidden;
}
.fuel-receipt-header {
    background: var(--btn-blue, #154B96);
    color: #fff;
    padding: 14px 20px 10px;
    text-align: center;
}
.fuel-receipt-title {
    font-size: 14px; font-weight: 800;
    letter-spacing: 0.15em; text-transform: uppercase;
}
.fuel-receipt-subtitle {
    font-size: 10px; opacity: 0.75; margin-top: 2px;
    letter-spacing: 0.1em;
}
.fuel-receipt-table {
    width: 100%; border-collapse: collapse;
    margin: 10px 0 6px;
    padding: 0 20px;
}
.fuel-receipt-table td { padding: 4px 20px; }
.rcpt-lbl {
    font-size: 10px; font-weight: 700; color: var(--t3, #888);
    letter-spacing: 0.1em; text-transform: uppercase;
    width: 50%;
}
.rcpt-val {
    font-size: 13px; font-weight: 700; color: var(--t1, #111);
    font-family: 'IBM Plex Mono', monospace;
    text-align: right;
}
.rcpt-highlight {
    color: var(--btn-blue, #154B96);
    font-size: 14px;
}
.rcpt-divider td {
    padding: 2px 20px;
    border-top: 1px solid var(--border, #ddd);
}
.fuel-receipt-footer {
    font-size: 10px; color: var(--t3, #999);
    text-align: center; margin: 6px 0 12px;
    letter-spacing: 0.05em;
}
.fuel-receipt-cg-hint {
    font-size: 10px; font-weight: 700; color: var(--b2, #1a6fce);
    text-align: center; margin: 0 16px 12px;
    padding: 8px 12px; border-radius: 8px;
    background: color-mix(in srgb, var(--b2, #1a6fce) 10%, transparent);
    letter-spacing: 0.03em;
}

/* ── Flight Log: Uploaded Docs / Fuel Receipt Cards ─────────────────────── */
.flg-docs-empty,
.flg-docs-loading {
    font-size: 11px; color: var(--t3); padding: 10px 0; text-align: center;
}

.flg-receipt-card {
    background: var(--card-bg, #f0f4fb);
    border: 1px solid var(--border, #d0d8e8);
    border-radius: 10px;
    margin: 8px 0;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.flg-receipt-card:hover {
    border-color: var(--btn-blue, #154B96);
    box-shadow: 0 2px 10px rgba(21,75,150,0.12);
}

.flg-receipt-card-header {
    background: var(--btn-blue, #154B96);
    color: #fff;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
}
.flg-receipt-card-icon  { font-size: 14px; }
.flg-receipt-card-title { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; flex: 1; }
.flg-receipt-card-time  { font-size: 11px; font-family: 'IBM Plex Mono', monospace; opacity: 0.85; }

.flg-receipt-card-body {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; padding: 8px 12px 4px;
}
.flg-receipt-stat {
    display: flex; flex-direction: column;
    padding: 4px 6px;
}
.flg-receipt-stat-lbl {
    font-size: 9px; font-weight: 700; color: var(--t3, #888);
    letter-spacing: 0.12em; text-transform: uppercase;
}
.flg-receipt-stat-val {
    font-size: 13px; font-weight: 700; color: var(--t1, #111);
    font-family: 'IBM Plex Mono', monospace;
}
.flg-receipt-highlight { color: var(--btn-blue, #154B96); }

.flg-receipt-bar-wrap {
    padding: 4px 12px 6px;
    display: flex; align-items: center; gap: 8px;
}
.flg-receipt-bar-track {
    flex: 1; height: 4px;
    background: var(--border, #dde3ee);
    border-radius: 2px; overflow: hidden;
}
.flg-receipt-bar-fill {
    height: 100%;
    background: var(--btn-blue, #154B96);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.flg-receipt-bar-lbl {
    font-size: 9px; color: var(--t3, #999);
    white-space: nowrap; letter-spacing: 0.05em;
}

.flg-receipt-card-footer {
    font-size: 9px; color: var(--t3, #aaa);
    text-align: center; padding: 4px;
    border-top: 1px solid var(--border, #eee);
    letter-spacing: 0.06em; text-transform: uppercase;
}
/* ── Fuel Receipt Modal: Action Buttons ──────────────────────────────────── */
.fuel-receipt-actions {
    display: flex; flex-direction: column; gap: 8px;
    padding: 0 16px 4px;
}
.rcpt-upload-btn {
    width: 100%;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.06em;
    padding: 11px;
    transition: background 0.2s, opacity 0.15s;
}
.rcpt-upload-btn:disabled {
    opacity: 0.65; cursor: not-allowed;
}
