:root {
    --bg-black: #050505;
    --text-white: #e5e5e5;
    --text-dim: #525252;
    --border-dim: #262626;
    
    --fids-green: #22c55e;
    --fids-yellow: #eab308;
    --fids-red: #ef4444;
    --fids-amber: #f59e0b;
    
    --font-ui: 'Roboto Condensed', 'Noto Sans CJK JP', 'Noto Sans CJK SC', 'Noto Sans CJK', sans-serif;
    --font-data: 'JetBrains Mono', 'Noto Sans Mono CJK JP', 'Noto Sans Mono CJK SC', 'Noto Sans Mono CJK', monospace;
    
    /* Dynamic Font Sizing */
    --font-size-cell: 1.1rem; 
    --font-size-header: 1rem;
    --row-height: 42px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 1. ANCHORED LAYOUT */
html, body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-ui);
    height: 100vh;       
    height: 100dvh;      
    overflow: hidden;    
    display: flex;
    flex-direction: column;
}

.monitor-frame { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    width: 100%; 
    overflow: hidden;
}

/* 2. HEADER (Fixed) - Changed from grid to flexbox for better control */
.fids-header {
    padding: 15px 30px; 
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;      
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* CHILD 1: The Airport Selector */
.airport-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
}

.airport-selector select {
    border: none;
    font-family: var(--font-ui); font-size: 2.5rem; font-weight: 700;
    text-transform: uppercase; cursor: pointer; outline: none;
    /* SAFARI FIXES: */
    -webkit-appearance: none; /* Safely removes macOS glossy styling */
    -moz-appearance: none;    /* Removes Firefox default styling */
    appearance: none;         /* Standard property */
    background-color: transparent;
    border-radius: 0;         /* Removes default rounded corners */
    flex: 0 1 auto;
    max-width: clamp(320px, 45vw, 720px);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airport-selector select option {
    font-size: 16px;  
    font-weight: normal; 
    padding: 4px;
}

.clock-container {
    font-size: 2.5rem; 
    font-weight: 700; 
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* CHILD 2: The Right Wrapper (Widgets + Clock) */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: 0 0 auto;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
}

.header-right-group > * {
    flex: 0 0 auto;
}

/* 3. CONTENT AREA */
.page-container { 
    flex: 1;             
    min-height: 0;       
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    overflow: hidden;    
}

.fids-table-wrapper {
    flex: 1;             
    min-height: 0;       
    display: flex;
    flex-direction: column;
}

/* 4. SPLIT LAYOUT ENGINE */
.split-top-row {
    display: flex;
    gap: 30px;
    flex: 1;             
    min-height: 0;       
}

.split-panel {
    flex: 1;             
    display: flex;
    flex-direction: column;
    min-width: 0;        
    background: #0a0a0a; 
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;    
}

/* Sticky Table Headers */
.section-divider {
    font-size: 1.5rem; 
    font-weight: 700; 
    text-transform: uppercase;
    padding: 15px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-shrink: 0;      
}

.table-scroll-area {
    flex: 1;            
    min-height: 0;      
    overflow-y: hidden;   
    scrollbar-width: none; 
}
.table-scroll-area::-webkit-scrollbar { display: none; }

.page-ind {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.7;
}

.flight-table { 
    width: 100%; 
    border-collapse: collapse; 
    table-layout: fixed; 
    border-spacing: 0;
}

.flight-table th, .flight-table td { border-left: none; border-right: none; }

.flight-table th {
    position: sticky; top: 0; 
    z-index: 2;
    text-align: left; text-transform: uppercase; 
    font-size: var(--font-size-header); padding: 12px 10px; 
    font-weight: 400; letter-spacing: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.flight-table td {
    padding: 8px 10px; 
    font-family: var(--font-data); 
    font-size: var(--font-size-cell);
    border-bottom: 1px solid #222; 
    vertical-align: middle;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    height: var(--row-height);
}

.flight-table tbody tr {
    cursor: pointer;
}

.flight-table tbody tr.is-tracked {
    outline: 1px solid var(--tracking-outline, #ffffff);
    outline-offset: -1px;
}

/* 5. TEXT STYLING (Standard Columns) */
.flap-container { 
    font-weight: 700; 
}

/* =========================================
   6. SOLID STATUS BADGES (Full Row Fill)
   ========================================= */

/* Target the Cell: Remove padding and match border color */
.flight-table td.col-status {
    padding: 0 !important;      
    height: 100%;               
    vertical-align: middle;
    border-bottom: 1px solid #222;
    box-sizing: border-box;
    border-left: none;
    border-right: none;
}

/* Target the Container: Flexbox to center text and FILL the cell */
.col-status .flap-container {
    width: 100%;
    height: 100%;               
    min-height: var(--row-height); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;     
    border-radius: 0;           
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: none;
    background-color: transparent;
    color: #ffffff; 

    /* Force a compositing layer to avoid sub-pixel seams in some browsers */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity, background-color;
}

/* STATUS COLORS */
.col-status[data-status="Boarding"] .flap-container {
    background-color: #00b000; 
    color: #ffffff !important; 
}

.col-status[data-status*="GO TO"] .flap-container {
    background-color: #e6007e; 
    color: #ffffff !important;
}

.col-status[data-status="Check-in"] .flap-container,
.col-status[data-status="Taxiing"] .flap-container,
.col-status[data-status="Wait"] .flap-container,
.col-status[data-status="Landing"] .flap-container,
.col-status[data-status="Landed"] .flap-container,
.col-status[data-status="At Gate"] .flap-container,
.col-status[data-status="Scheduled"] .flap-container {
    background-color: #ffcc00; 
    color: #000000 !important; 
}

.col-status[data-status="Pushback"] .flap-container,
.col-status[data-status="Departing"] .flap-container,
.col-status[data-status="Approaching"] .flap-container {
    background-color: #0055b8; 
    color: #ffffff !important;
}

.col-status[data-status*="Delayed"] .flap-container,
.col-status[data-status="Cancelled"] .flap-container,
.col-status[data-status="CLOSED"] .flap-container {
    background-color: #d60000; 
    color: #ffffff !important; 
}

.col-status[data-status="En Route"] .flap-container {
    color: #b3d9ff !important; 
    background-color: transparent;
}

/* FLASHING GATE STATUS */
.flap-container.status-wait,
.flap-container.gate-closed {
    color: var(--fids-amber) !important; 
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- SMOOTH OPACITY FADE FOR STATUS CHANGES --- */
.col-status .flap-container {
    transition: opacity 0.35s ease-in-out;
}

.col-status .flap-container.status-updating {
    opacity: 0;
}

/* =========================================
   7. FOOTER
   ========================================= */

.fids-footer {
    padding: 15px 40px; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    height: 100px; 
    flex-shrink: 0;
}

.footer-group { display: flex; align-items: center; gap: 20px; }
.huge-arrow { font-size: 50px; font-weight: 900; }
.gate-icon-box {
    display: flex; flex-direction: column; align-items: center;
    border: 2px solid; padding: 5px 12px; border-radius: 6px;
}
.main-label { display: flex; flex-direction: column; font-size: 32px; font-weight: 700; line-height: 1; }
.main-label .en { font-size: 18px; font-weight: 400; color: #ccc; }
.footer-divider { width: 2px; height: 50px; background: #333; margin: 0 30px; }
.security-time .time { font-size: 28px; font-weight: 700; }
.fs-footer-btn { background: transparent; border: 1px solid #aaa; color: #fff; cursor: pointer; padding: 5px; }
.footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.support-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 999px;
    color: #d5d5d5;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.support-footer-btn .material-icons {
    font-size: 16px;
    color: #e58b8b;
}
.support-footer-btn:hover,
.support-footer-btn:focus-visible {
    border-color: #666;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}
.airline-logo { height: 20px; width: auto; filter: grayscale(100%) brightness(200%); }
.flight-cell { display: flex; align-items: center; gap: 10px; }

.footer-logos {
    display: flex;
    align-items: center;
    gap: 14px;
}

.powered-by {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    position: absolute;
    left: 0;
    top: -12px;
}

.footer-logo-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 2px;
}

.footer-logos img {
    height: 30px;
    width: auto;
    opacity: 0.9;
}
.footer-logos img.simfixr-logo {
    height: 56px;
}

/* MEDIA QUERIES */
/* Force portrait when height > width (which should be true for 1080x1920) */
@media (min-height: 1500px), (orientation: portrait) {
    .split-top-row { flex-direction: column; }
    .airport-selector select { font-size: 2rem; }
    :root { --font-size-cell: 1.4rem; --font-size-header: 1.1rem; --row-height: 50px; }
    .flight-table th:nth-child(1) { width: 15%; }
    .flight-table th:nth-child(2) { width: 28%; }
    .flight-table th:nth-child(3) { width: 10%; }
    .flight-table th:nth-child(4) { width: 12%; }
    .flight-table th:nth-child(5) { width: 10%; } 
    .flight-table th:nth-child(6) { width: 10%; }
    .flight-table th:nth-child(7) { width: 15%; }

    /* --- NEW FOOTER FIXES --- */
    /* 1. Hide the Security Time container completely */
    .security-time {
        display: none !important;
    }

    /* 2. Optimize footer spacing for the remaining elements */
    .fids-footer {
        /* Ensure elements spread out to fill the gaps */
        justify-content: space-between;
        /* Slightly reduce padding to give elements more room */
        padding: 15px 10px;
    }

    /* 3. Optional: Adjust the 'Arrivals/Departures' label size if it's still tight */
    .main-label {
        font-size: 28px; /* Slightly smaller than the default 32px */
    }
}

@media (max-height: 1499px) and (orientation: landscape) {
    .split-top-row { flex-direction: row; }
    :root { --font-size-cell: 0.95rem; --font-size-header: 0.85rem; --row-height: 36px; }
    .flight-table th:nth-child(1) { width: 14%; }
    .flight-table th:nth-child(2) { width: 22%; }
    .flight-table th:nth-child(3) { width: 10%; }
    .flight-table th:nth-child(4) { width: 12%; }
    .flight-table th:nth-child(5) { width: 10%; }
    .flight-table th:nth-child(6) { width: 10%; }
    .flight-table th:nth-child(7) { width: 22%; }
}

/* =========================================
   RESPONSIVE HEADER ADJUSTMENTS
   ========================================= */

/* Portrait mode header optimizations */
@media (min-height: 1500px), (orientation: portrait) {
    .fids-header {
        padding: 12px 20px;
        column-gap: 20px;
    }
    
    .header-right-group {
        gap: 15px;
    }
    
    .header-widgets {
        gap: 15px;
    }
    
    .clock-container {
        font-size: 2rem;
    }
    
    .widget-icon {
        font-size: 1.8rem;
    }
    
    .widget-text {
        font-size: 1.4rem;
    }
    
    .atc-popover {
        width: 200px;
    }

    .tracking-chip {
        max-width: min(60vw, 460px);
        font-size: 0.85rem;
    }
}

/* Small screens / mobile optimization */
@media (max-width: 768px) {
    .airport-selector select {
        font-size: 1.8rem;
        max-width: 30vw;
    }
    
    .airport-selector {
        gap: 8px;
    }
    
    .fids-header {
        padding: 10px 15px;
        column-gap: 15px;
    }
    
    .header-right-group {
        gap: 12px;
    }
    
    .header-widgets {
        gap: 12px;
    }
    
    .clock-container {
        font-size: 1.8rem;
    }
    
    .widget-icon {
        font-size: 1.6rem;
    }
    
    .widget-text {
        font-size: 1.2rem;
    }
    
    .atc-popover {
        width: 90vw;
        max-width: 250px;
    }

    .tracking-chip {
        max-width: 56vw;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

.country-flags {
    display: flex;
    gap: 12px;
    align-items: center;
}
.country-flags img {
    height: 28px;
    width: auto;
    border-radius: 2px;
    opacity: 0.85;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Add Airport Button (next to dropdown) */
.add-airport-btn {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    margin-left: 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    vertical-align: middle;
}

.add-airport-btn:hover {
    background: rgba(255,255,255,0.1);
}

.add-airport-btn .material-icons {
    font-size: 24px;
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

/* Modal Content Box */
.modal-content {
    background-color: #1a1a1a;
    margin: 15% auto;
    padding: 30px;
    border: 2px solid #333;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-content h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.modal-content p {
    margin-bottom: 20px;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Search Input */
.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-family: monospace;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: #0055b8;
}

/* Search Button */
.modal-content button {
    width: 100%;
    padding: 12px;
    background: #0055b8;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 600;
}

.modal-content button:hover {
    background: #0066cc;
}

.modal-content button:active {
    background: #004499;
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #fff;
}

/* Result Message */
#searchResult {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

#searchResult.success {
    display: block;
    background: #22c55e;
    color: #000;
    font-weight: 600;
}

#searchResult.error {
    display: block;
    background: #ef4444;
    color: #fff;
    font-weight: 600;
}

/* =========================================
   8. HEADER WIDGETS
   ========================================= */

.header-widgets {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: 0 0 auto;
}

.tracking-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    padding: 0;
    max-width: min(45vw, 520px);
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1.1;
    font-weight: 700;
}

.tracking-chip[hidden] {
    display: none;
}

.tracking-chip-icon {
    display: none;
}

.tracking-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tracking-chip-stop {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.8;
}

.tracking-chip-stop:hover {
    opacity: 1;
}

body.theme-lsgg .tracking-chip,
body.theme-lfsb .tracking-chip,
body.theme-rjtt .tracking-chip,
body.theme-kjfk .tracking-chip {
    color: #ffffff !important;
}

body.theme-lszh .tracking-chip,
body.theme-default .tracking-chip,
body.theme-egll .tracking-chip,
body.theme-egkk .tracking-chip,
body.theme-eglc .tracking-chip,
body.theme-egss .tracking-chip,
body.theme-eham .tracking-chip {
    color: #000000 !important;
}
/* Ensure your widget items have no weird margins */
.widget-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    opacity: 0.4;
    white-space: nowrap;
}

.widget-item.active { opacity: 1; }

.widget-icon {
    font-size: 2.2rem;
    color: currentColor;
    line-height: 1;
    flex-shrink: 0;
}

.widget-text {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-ui);
    color: currentColor;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Animations & Popovers */
@keyframes radar-pulse {
    0% { text-shadow: 0 0 0 rgba(34, 197, 94, 0); }
    50% { text-shadow: 0 0 15px rgba(34, 197, 94, 0.8); color: #22c55e; }
    100% { text-shadow: 0 0 0 rgba(34, 197, 94, 0); }
}

.widget-item.atc-online .widget-icon {
    animation: radar-pulse 3s infinite ease-in-out;
}

.atc-popover {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    max-width: 90vw;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: all 0.2s;
    pointer-events: none;
    color: #fff;
    text-align: left;
}

.widget-item:hover .atc-popover {
    visibility: visible;
    opacity: 1;
    top: 100%;
}

.popover-title {
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    border-bottom: 1px solid #333;
    margin-bottom: 5px;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.atc-popover ul { list-style: none; margin: 0; padding: 0; }
.atc-popover li { display: flex; justify-content: space-between; font-family: var(--font-data); font-size: 0.9rem; padding: 2px 0; }
.atc-popover li span.freq { color: #22c55e; }

    /* Flight Plan Tooltip */
.flight-plan-tooltip {
    position: fixed;
    display: none;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #444;
    padding: 12px;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-data);
    font-size: 0.9rem;
    max-width: 400px;
    z-index: 9999;
    pointer-events: none; /* Allows mouse to pass through */
    white-space: pre;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    white-space: normal;
    line-height: 1.4;
}

/* Hover effect for the cell to show it's interactive */
.flight-cell {
    cursor: help;
}

/* Touch-device table density tuning (both portrait and landscape). */
@media (max-width: 1366px) and (pointer: coarse) {
    :root {
        --font-size-cell: 0.74rem;
        --font-size-header: 0.64rem;
        --row-height: 30px;
    }

    .flight-table th {
        padding: 8px 5px;
        letter-spacing: 0.2px;
    }

    .flight-table td {
        padding: 5px 5px;
    }
}

/* Touch portrait: keep stacked boards and rebalance widths for readability. */
@media (max-width: 1366px) and (pointer: coarse) and (orientation: portrait) {
    .split-top-row {
        flex-direction: column;
        gap: 12px;
    }

    .flight-table th:nth-child(1),
    .flight-table colgroup col:nth-child(1) {
        width: 13% !important;
    }

    .flight-table th:nth-child(2),
    .flight-table colgroup col:nth-child(2) {
        width: 24% !important;
    }

    .flight-table th:nth-child(3),
    .flight-table colgroup col:nth-child(3) {
        width: 10% !important;
    }

    .flight-table th:nth-child(4),
    .flight-table colgroup col:nth-child(4) {
        width: 10% !important;
    }

    .flight-table th:nth-child(5),
    .flight-table colgroup col:nth-child(5) {
        width: 8% !important;
    }

    .flight-table th:nth-child(6),
    .flight-table colgroup col:nth-child(6) {
        width: 10% !important;
    }

    .flight-table th:nth-child(7),
    .flight-table colgroup col:nth-child(7) {
        width: 25% !important;
    }

    .flight-table th:nth-child(6),
    .flight-table td:nth-child(6) {
        padding-right: 10px;
    }

    .flight-table th:nth-child(7),
    .flight-table td:nth-child(7) {
        padding-left: 8px;
    }

}

/* Mobile/tablet landscape tuning (including iPad):
   keep split boards side-by-side while fitting columns cleanly. */
@media (max-width: 1366px) and (pointer: coarse) and (orientation: landscape) {
    .fids-header {
        padding: 8px 12px;
        gap: 12px;
    }

    .airport-selector {
        gap: 6px;
    }

    .airport-selector select {
        font-size: 1.45rem;
        max-width: 42vw;
    }

    .clock-container {
        font-size: 1.45rem;
        letter-spacing: 1px;
    }

    .header-right-group {
        gap: 10px;
    }

    .header-widgets {
        gap: 10px;
    }

    .widget-icon {
        font-size: 1.35rem;
    }

    .widget-text {
        font-size: 1rem;
    }

    .section-divider {
        font-size: 1.05rem;
        padding: 8px 10px;
    }

    .page-ind {
        font-size: 0.72rem;
    }

    .page-container {
        padding: 8px 10px;
    }

    .split-top-row {
        flex-direction: row;
        gap: 12px;
    }

    .flight-table colgroup col:nth-child(1) {
        width: 12% !important;
    }

    .flight-table colgroup col:nth-child(2) {
        width: 24% !important;
    }

    .flight-table colgroup col:nth-child(3) {
        width: 10% !important;
    }

    .flight-table colgroup col:nth-child(4) {
        width: 10% !important;
    }

    .flight-table colgroup col:nth-child(5) {
        width: 8% !important;
    }

    .flight-table colgroup col:nth-child(6) {
        width: 11% !important;
    }

    .flight-table colgroup col:nth-child(7) {
        width: 25% !important;
    }

    .flight-table th:nth-child(6),
    .flight-table td:nth-child(6) {
        padding-right: 10px;
    }

    .flight-table th:nth-child(7),
    .flight-table td:nth-child(7) {
        padding-left: 8px;
    }


    .fids-footer {
        height: 78px;
        padding: 8px 12px;
    }

    .footer-group {
        gap: 10px;
    }

    .huge-arrow {
        font-size: 32px;
    }

    .main-label {
        font-size: 20px;
    }

    .main-label .en {
        font-size: 12px;
    }

    .security-time .label {
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .security-time .time {
        font-size: 16px;
    }

    .footer-divider {
        height: 30px;
        margin: 0 8px;
    }

    .footer-logos img {
        height: 20px;
    }

    .footer-logos img.simfixr-logo {
        height: 36px;
    }

    .support-footer-btn {
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    .support-footer-btn .material-icons {
        font-size: 14px;
    }
}

/* EDDF terminal indicators — hidden by default, shown only via eddf.css */
.eddf-terminals {
    display: none;
}

/* ---- EVENT TICKER ---- */
.event-ticker {
    height: 22px;
    background-color: var(--bg-black);
    border-top: 1px solid var(--border-dim);
    overflow: hidden;
    flex-shrink: 0;
}

.event-ticker-window {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.event-ticker-track {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: ticker-scroll linear infinite;
}

.event-ticker-item {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 400;
    color: rgb(255, 255, 255);
    padding: 0 44px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.event-ticker-gap {
    display: inline-block;
    width: 100vw;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
