/* Schiphol Airlines Database — stijlen (sg-airlines namespace) */

.sg-airlines-wrap {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sg-airlines-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.sg-airlines-type {
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #1a3d6d;
    border-radius: 8px;
    background: #fff;
    color: #1a3d6d;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}
.sg-airlines-type:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .25);
}

.sg-airlines-zoek {
    flex: 1 1 220px;
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #1a3d6d;
    border-radius: 8px;
    outline: none;
}
.sg-airlines-zoek:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .25);
}

.sg-airlines-datum {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sg-airlines-datum label {
    font-size: 13px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sg-airlines-datum input[type="date"] {
    padding: 8px 10px;
    font-size: 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
}

.sg-airlines-btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #1a3d6d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}
.sg-airlines-btn:hover {
    background: #f5a623;
    color: #1a3d6d;
}

.sg-airlines-status {
    padding: 6px 0;
    font-size: 14px;
    color: #666;
}

.sg-airlines-leeg {
    padding: 20px;
    text-align: center;
    color: #888;
}

/* ── Tabel ──────────────────────────────────────────────────────────────── */
.sg-airlines-tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.sg-airlines-tabel th {
    background: #1a3d6d;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}
.sg-airlines-tabel td {
    padding: 8px 12px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}
.sg-airlines-tabel tbody tr:hover {
    background: #f0f6ff;
}

.sg-al-code {
    font-weight: 700;
    font-family: "SF Mono", "Consolas", monospace;
    color: #1a3d6d;
}
.sg-al-num {
    text-align: center;
    font-weight: 600;
}

/* Gates/check-in compact weergeven */
.sg-al-gates,
.sg-al-checkin {
    font-size: 13px;
    line-height: 1.5;
    max-width: 200px;
}
.sg-al-datums {
    font-size: 13px;
    line-height: 1.5;
    max-width: 180px;
}
.sg-al-vluchten {
    font-size: 13px;
    line-height: 1.5;
    max-width: 220px;
}
.sg-al-vcount {
    color: #1a3d6d;
    cursor: pointer;
    text-decoration: underline;
    font-style: normal;
    font-weight: 600;
}
.sg-al-toggle.sg-al-open .sg-al-vcount { display: none; }

/* Inklapbare lange lijsten (via data-sg-toggle + event delegatie) */
.sg-al-toggle { cursor: pointer; }
.sg-al-toggle .sg-al-rest { display: none; }
.sg-al-toggle em {
    color: #1a3d6d;
    cursor: pointer;
    text-decoration: underline;
    font-style: normal;
}
.sg-al-toggle.sg-al-open .sg-al-rest { display: inline; }
.sg-al-toggle.sg-al-open > em { display: none; }

/* Daggrens bij per-dag resultaten */
.sg-al-daggrens td {
    border-top: 2px solid #1a3d6d;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .sg-airlines-tabel { font-size: 12px; }
    .sg-airlines-tabel th,
    .sg-airlines-tabel td { padding: 6px 8px; }
    .sg-al-gates,
    .sg-al-checkin { max-width: 120px; }
}
