/* IND Vluchtboeker — bouwt op national.css (huisstijl-tokens). */
/* Meer ruimte voor de optielijst: smallere zijkolom, minder tussenruimte en een bredere shell,
   zodat elke vlucht op één regel past zonder horizontaal scrollen. */
.int-main { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; max-width: 1780px; margin: 0 auto; padding: 20px 18px 70px; align-items: start; }
@media (max-width: 980px) { .int-main { grid-template-columns: 1fr; } }
.int-who { font-size: 13px; }

/* linkerkolom */
.int-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); }
@media (max-width: 980px) { .int-side { position: static; max-height: none; } }
.int-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.int-title { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--ink); }
.int-count { font-size: 13px; }
.int-filters { display: flex; flex-direction: column; gap: 8px; }
.int-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.int-chip { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.int-chip.on { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-dark); }
.int-chip small { font-weight: 400; color: var(--ink-dim); margin-left: 3px; }
.int-search { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); }
.int-search:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.int-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.int-row { display: grid; text-decoration: none; color: inherit; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.int-row:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.int-row.on { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-tint); }
.int-row.blocked { background: #fbfcfc; }
.int-row .r1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.int-row .code { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.int-row .name { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-row .r2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 12px; color: var(--ink-soft); }
.int-row .dep { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.int-row .dep b { color: var(--ink); }
.pill { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); white-space: nowrap; }
.pill-ok { color: var(--ok); border-color: rgba(31,157,116,.35); background: rgba(31,157,116,.07); }
.pill-warn { color: var(--warn); border-color: rgba(217,145,0,.35); background: rgba(217,145,0,.07); }
.pill-bad { color: var(--bad); border-color: rgba(214,69,69,.35); background: rgba(214,69,69,.06); }
.pill-teal { color: var(--teal-dark); border-color: rgba(3,181,170,.4); background: var(--teal-tint); }
.pill-q { color: #6b3fa0; border-color: rgba(107,63,160,.35); background: #f3edfb; }

.int-queue { background: #f3edfb; border: 1px solid rgba(107,63,160,.25); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.int-queue h3 { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .05em; color: #6b3fa0; margin-bottom: 4px; }
.int-queue ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.int-queue li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.int-queue li a:hover { color: var(--teal-dark); }

/* dossier */
.int-dossier { min-width: 0; }
.int-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px; }
.int-head-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.int-head-code { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--ink); }
.int-head-name { font-size: 16px; color: var(--ink-soft); }
.int-head-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.int-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; margin-top: 14px; }
.int-fact { display: flex; flex-direction: column; gap: 1px; }
.int-fact .k { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.int-fact .v { font-size: 14.5px; color: var(--ink); }
.int-fact .v b { font-weight: 600; }
.int-fact .v .mono { font-size: 13px; }
.int-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.int-links { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.int-links a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.int-links a:hover { text-decoration: underline; }
.int-warnings { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; }
.int-warnings .w { font-size: 13px; color: var(--warn); }
.int-warnings .w::before { content: "⚠ "; }
.int-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.int-cnt { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--ink-soft); }
.int-cnt b { font-family: var(--font-mono); font-size: 15px; color: var(--ink); margin-right: 4px; }
.int-cnt.hi b { color: var(--teal-dark); }

.int-section { margin-top: 22px; }
.int-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.int-section-head h2 { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.int-table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.int-table th { text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); padding: 9px 10px; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.int-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.int-table tr:last-child td { border-bottom: 0; }
.int-table tr.dimmed td { color: var(--ink-dim); }
.int-table .mono { font-family: var(--font-mono); font-size: 12.5px; }
.int-table .nm { font-weight: 600; color: var(--ink); white-space: nowrap; }
.int-table .issues { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--warn); }
.int-table input[type=checkbox] { width: 15px; height: 15px; }

.int-booked { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.int-bk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 13.5px; }
.int-bk .t { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.int-bk .leg { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--teal-dark); }
.int-bk .pnr { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.int-bk .price { margin-left: auto; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.int-bk .meta { color: var(--ink-soft); font-size: 12.5px; }
.int-bk .pax { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.int-none { color: var(--ink-dim); font-size: 13.5px; }

.int-queue-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.int-queue-form textarea { font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; min-height: 56px; }
.int-queue-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.int-queue-form .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.int-queued { background: #f3edfb; border-color: rgba(107,63,160,.3); }

/* ── fase 2: zoeken en kiezen ─────────────────────────────── */
.int-search-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.int-select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: var(--surface); color: var(--ink); }
.int-progress { background: #1d2726; color: #cfe6e3; font-family: var(--font-mono); font-size: 12px; border-radius: 10px; padding: 10px 14px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.int-progress .st { font-family: var(--font-head); font-size: 13px; letter-spacing: .05em; color: #7fe6de; margin-bottom: 4px; }
.int-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; font-size: 13px; color: var(--ink-soft); }
.int-stats .int-cnt b { margin-right: 4px; }
.int-optfilters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.int-options th { white-space: nowrap; }
.int-options td { vertical-align: middle; }
.int-options tr.chosen td { background: var(--teal-tint); }
.int-options tr.nearmiss td { background: #fffaf0; }
.opt-flight { display: flex; flex-direction: column; gap: 3px; }
/* Eén leg = één regel: niet afbreken, de vlucht­kolom krijgt de ruimte die andere kolommen
   niet nodig hebben (bagage en luchthaven zijn smal). */
.opt-leg { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.opt-leg .lg { font-family: var(--font-head); font-weight: 700; font-size: 10px; color: var(--ink-dim); width: 30px; flex: none; }
.opt-leg .tm { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.opt-leg .fl { color: var(--ink-soft); font-size: 12px; }
.opt-leg .dur { color: var(--ink-dim); font-size: 11.5px; }
.opt-price { font-family: var(--font-mono); font-size: 16px; color: var(--ink); white-space: nowrap; }
.opt-price small { display: block; font-size: 11px; color: var(--ink-dim); }
.opt-srcs { display: flex; flex-direction: column; gap: 3px; }
.opt-src { display: inline-flex; gap: 6px; align-items: baseline; font-size: 12px; }
.opt-src .mono { font-size: 12px; }
.opt-src.api .pill { color: var(--teal-dark); border-color: rgba(3,181,170,.4); background: var(--teal-tint); }
.opt-src.site .pill { color: var(--warn); border-color: rgba(217,145,0,.35); background: rgba(217,145,0,.07); }
.opt-src.nota .pill { color: var(--bad); border-color: rgba(214,69,69,.35); background: rgba(214,69,69,.06); }
.opt-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.btn-sm { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .04em; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; white-space: nowrap; }
.btn-sm:hover { background: var(--teal-dark); }
.btn-sm.ghost { background: var(--surface); color: var(--teal-dark); }
.btn-sm.warn { background: var(--warn); border-color: var(--warn); }
.btn-sm:disabled { opacity: .5; cursor: default; }
.int-selection { background: var(--teal-tint); border: 1px solid rgba(3,181,170,.4); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.int-approval { background: #fbf1dc; border: 1px solid rgba(217,145,0,.4); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.int-approval .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.int-approval input[type=number] { width: 90px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.int-split { background: var(--surface); border: 1px dashed var(--teal); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 13.5px; }
/* Tabel met de losse heen/terug-opties: compacter dan de hoofdtabel, zelfde stijl. */
.int-legtbl { width: 100%; margin-top: 6px; font-size: 12.5px; }
/* Knop die zegt dat het gevraagde er al in zit (+ PARIJS / + LOSSE LEGS). */
.btn-sm.on, .btn-sm.on:disabled { background: var(--teal-tint); border-color: var(--teal); color: var(--teal); opacity: 1; cursor: default; }
.int-legtbl th, .int-legtbl td { padding: 4px 8px; }
.int-legtbl .opt-price { white-space: nowrap; }

/* Losse heen/terug-legs per routing (low cost altijd zichtbaar). */
.int-legrow { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line, #e5e5e5); }
.int-legdir { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.int-leg { display: inline-flex; gap: 5px; align-items: baseline; padding: 2px 7px; border-radius: 6px; background: var(--teal-tint); }

/* Aanklikbare kop-tags + hun uitlegvak (IND Vluchtboeker). */
.pill-info { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .04em; line-height: 1.5; border-style: dashed; }
.pill-info:hover { filter: brightness(.97); }
.pill-info:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.int-chip-info { margin: 8px 0 0; padding: 8px 11px; border-left: 3px solid var(--teal); background: var(--teal-tint); color: var(--ink); font-size: 13px; line-height: 1.45; border-radius: 0 6px 6px 0; }

/* Aanklikbaar boekingskaartje + detail-popup (IND Vluchtboeker). */
.int-bk-click { cursor: pointer; }
.int-bk-click:hover { border-color: var(--teal); box-shadow: 0 1px 6px rgba(3,181,170,.12); }
.int-bk-click:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.vc-btn { font: inherit; color: var(--teal-dark); background: none; border: 0; border-bottom: 1px dashed var(--teal); padding: 0; cursor: pointer; }
.int-modal { position: fixed; inset: 0; z-index: 50; background: rgba(20,28,32,.42); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; }
.int-modal-box { background: var(--surface); border-radius: var(--radius); max-width: 620px; width: 100%; max-height: 84vh; overflow: auto; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.int-modal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 15px; position: sticky; top: 0; background: var(--surface); }
.int-modal-x { margin-left: auto; font-size: 20px; line-height: 1; background: none; border: 0; color: var(--ink-soft); cursor: pointer; }
.int-modal-body { padding: 6px 16px 16px; font-size: 13.5px; }
.int-modal-tbl { width: 100%; border-collapse: collapse; }
.int-modal-tbl th { text-align: left; vertical-align: top; font-weight: 600; color: var(--ink-soft); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; padding: 8px 12px 8px 0; white-space: nowrap; width: 38%; }
.int-modal-tbl td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.int-modal-list { margin: 0; padding-left: 18px; }
.int-modal-list li { margin: 2px 0; }

/* Situatie 2: melding boven de optielijst + markering van opties op de geboekte vluchten. */
.int-note { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--teal); background: var(--teal-tint); border-radius: 0 6px 6px 0; font-size: 13px; }
.int-note-warn { border-left-color: var(--warn); background: rgba(217,145,0,.08); }
#s-table tbody tr.same-booked { background: rgba(3,181,170,.09); box-shadow: inset 4px 0 0 var(--teal); }
/* Lijkt erop maar is niet identiek: enkel een grijs streepje, geen groene rij. */
#s-table tbody tr.part-booked { box-shadow: inset 4px 0 0 var(--line); }
.pill-soft { color: var(--ink-soft); border-style: dashed; }
.int-note-form { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.int-note-form input { font: inherit; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; }

/* Controlepopup vóór het boeken. */
.int-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.bk-sum h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 4px; }
.bk-sum-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 10px 0 12px; }
.bk-sum-price { font-family: var(--font-mono); font-size: 26px; color: var(--ink); }
.bk-sum-price small { font-size: 13px; color: var(--ink-soft); }
.bk-pax th { width: 28px; font-family: var(--font-head); text-transform: none; font-size: 13px; letter-spacing: 0; color: var(--ink); }
.bk-warn li { color: var(--warn-ink, var(--ink)); }
.bk-warn { border-left: 3px solid var(--warn); padding-left: 14px; margin-left: 0; }
.wl-blocked { margin: 6px 2px 0; font-size: 12px; cursor: help; }

/* Compacter reizigersoverzicht: document als vinkje, alles op één regel per reiziger. */
.int-table td { padding-top: 6px; padding-bottom: 6px; }
.int-table .nowrap, #d-pax td { white-space: nowrap; }
#d-pax .issues { flex-direction: row; flex-wrap: wrap; gap: 6px; white-space: normal; }
.doc-cell { text-align: center; }
.doc { font-size: 14px; line-height: 1; cursor: help; }
.doc-ok { color: var(--ok); }
.doc-warn { color: var(--warn); }
.doc-no { color: var(--bad); }
#d-pax td.reason { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* Bron kiezen: pil als knop in de optielijst en in de keuze-banner. */
button.pill { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .04em; cursor: pointer; }
.src-pick:hover { border-color: var(--teal); color: var(--teal-dark); }
.src-switch { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; color: var(--ink-soft); font-size: 12px; }
.src-switch .on { outline: 1px solid var(--teal); }
.bk-same { margin: 0 0 6px; padding: 7px 11px; background: var(--teal-tint); border-left: 3px solid var(--teal); border-radius: 0 6px 6px 0; font-size: 13px; }

/* Notitie bij een reiziger. */
/* Aandacht: de comment uit kolom R kan lang zijn. Breed genoeg om te lezen, na twee regels
   afgekapt, en aanklikbaar voor de volledige tekst in een popup (Maarten, 7 sep 2026). */
#d-pax td.att { white-space: normal; position: relative; padding-right: 26px; min-width: 300px; max-width: 380px; }
.pax-note { color: var(--ink-soft); font-size: 12px; }
.pax-note.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.pax-note.clamp:hover { color: var(--teal-dark); }
.note-btn { position: absolute; right: 4px; top: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 6px; width: 20px; height: 20px; line-height: 1; cursor: pointer; font-size: 12px; }
.note-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.note-txt { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.bk-note { color: var(--teal-dark); font-size: 12.5px; }

/* Urgentie in de werkvoorraad: binnen 30 dagen oranje, binnen 15 dagen rood. */
.int-row .dep.soon { color: var(--warn); }
.int-row .dep.urg { color: var(--bad); }
.int-row .dep.urg b { font-weight: 700; }

/* ── Zoekopdracht in uitvoering: donker paneel met beweging, voortgang en resterende tijd ── */
.int-progress { padding: 0; background: none; border: 0; }
.prog-shell {
  position: relative; overflow: hidden; border-radius: 14px; padding: 14px 16px 12px;
  color: #d9f5f1; background:
    radial-gradient(120% 140% at 10% 0%, rgba(3,181,170,.28), transparent 60%),
    radial-gradient(90% 120% at 90% 100%, rgba(3,181,170,.16), transparent 55%),
    linear-gradient(160deg, #0d1f24 0%, #0a171b 55%, #0d2228 100%);
  box-shadow: 0 10px 30px rgba(3,181,170,.14), inset 0 0 0 1px rgba(3,181,170,.22);
}
/* Traag over het paneel schuivende glans. */
.prog-shell::before {
  content: ""; position: absolute; inset: -40% -10%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.07) 50%, transparent 58%);
  animation: prog-sheen 3.4s linear infinite;
}
@keyframes prog-sheen { from { transform: translateX(-45%); } to { transform: translateX(45%); } }
.prog-top { display: flex; align-items: center; gap: 10px; position: relative; }
.prog-phase { font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .01em; color: #eafffb; }
.prog-eta { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: #8fded6; }
/* Pulserende bol als "er gebeurt iets". */
.prog-orb { width: 12px; height: 12px; border-radius: 50%; background: #2ff0dc; box-shadow: 0 0 0 0 rgba(47,240,220,.55); animation: prog-pulse 1.6s ease-out infinite; flex: none; }
@keyframes prog-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,240,220,.5); } 70% { box-shadow: 0 0 0 12px rgba(47,240,220,0); } 100% { box-shadow: 0 0 0 0 rgba(47,240,220,0); } }
.prog-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.prog-dots i { width: 3px; height: 3px; border-radius: 50%; background: #6fd8ce; animation: prog-dot 1.2s infinite; }
.prog-dots i:nth-child(2) { animation-delay: .18s; }
.prog-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes prog-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
/* Voortgangsbalk met lichtstreep die vooruit loopt. */
.prog-bar { position: relative; height: 9px; margin: 11px 0 8px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.prog-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #03b5aa, #46f0d8); box-shadow: 0 0 12px rgba(70,240,216,.5); transition: width .6s cubic-bezier(.3,.8,.3,1); position: relative; }
.prog-bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); background-size: 40% 100%; animation: prog-run 1.5s linear infinite; }
@keyframes prog-run { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.prog-pct { position: absolute; right: 0; top: -18px; font-family: var(--font-mono); font-size: 11.5px; color: #9fe8e0; }
.prog-srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.prog-src { font-size: 11px; font-family: var(--font-head); letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; border: 1px dashed rgba(143,222,214,.4); color: #8fded6; opacity: .7; }
.prog-src.on { border-style: solid; border-color: #46f0d8; color: #0d1f24; background: #46f0d8; opacity: 1; }
.prog-log { margin: 0; max-height: 190px; overflow: auto; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: #a9cfcb; white-space: pre-wrap; mask-image: linear-gradient(to bottom, transparent, #000 14px); }
.prog-foot { margin-top: 6px; font-size: 10.5px; color: #5e8e8a; letter-spacing: .04em; }
.prog-shell.err { background: linear-gradient(160deg, #2a1416, #1b0f11); box-shadow: inset 0 0 0 1px rgba(214,69,69,.4); }
.prog-shell.err .prog-phase { color: #ffd7d7; }
@media (prefers-reduced-motion: reduce) {
  .prog-shell::before, .prog-orb, .prog-dots i, .prog-bar > i::after { animation: none; }
}

/* Kolombreedtes van de optielijst: vlucht zo breed mogelijk, de rest krap. */
.int-options { table-layout: auto; }
.int-options td, .int-options th { padding-left: 8px; padding-right: 8px; }
.int-options th:nth-child(1) { width: auto; }
.int-options th:nth-child(2), .int-options td:nth-child(2) { width: 52px; text-align: left; }
.int-options th:nth-child(3), .int-options td:nth-child(3) { width: 58px; }
.int-options th:nth-child(4), .int-options td:nth-child(4) { width: 34px; text-align: center; }
.int-options th:nth-child(5), .int-options td:nth-child(5) { width: 78px; }
.int-options th:nth-child(7), .int-options td:nth-child(7) { width: 84px; }
.int-options th:nth-child(8), .int-options td:nth-child(8) { width: 76px; text-align: right; }
.int-options td, .int-options th { padding-left: 6px; padding-right: 6px; }
.int-options td:nth-child(2) { font-size: 12.5px; }
.int-options td:nth-child(3) { white-space: nowrap; }

/* Op smallere schermen iets kleiner zetten in plaats van de regel te laten afbreken. */
@media (max-width: 1520px) {
  .opt-leg { font-size: 11.8px; gap: 5px; }
  .opt-leg .lg { width: 26px; font-size: 9.5px; }
  .opt-leg .tm { font-size: 11.5px; }
  .int-options td, .int-options th { padding-left: 4px; padding-right: 4px; }
  .int-options th:nth-child(5), .int-options td:nth-child(5) { width: 70px; }
  .int-options th:nth-child(7), .int-options td:nth-child(7) { width: 76px; }
  .int-options th:nth-child(8), .int-options td:nth-child(8) { width: 66px; }
  .int-options .opt-src { font-size: 11px; }
}

/* Laadregel: wisselende tekst met drie stuiterende puntjes. */
.load-line { display: inline-flex; align-items: center; gap: 8px; }
.load-dots { display: inline-flex; gap: 4px; }
.load-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); animation: load-dot 1.1s infinite; }
.load-dots i:nth-child(2) { animation-delay: .15s; }
.load-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes load-dot { 0%, 65%, 100% { opacity: .25; transform: translateY(0); } 32% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .load-dots i { animation: none; } }

/* Volledig reisschema in de boekpopup. */
.itin { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.itin-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.itin-head b { font-family: var(--font-head); }
.itin-sum { margin-left: auto; color: var(--ink-soft); font-size: 12px; }
/* Van → naar in woorden in de kop van een vluchtblok ("Charleroi → Rabat"). */
.itin-van { color: var(--ink); font-size: 12.5px; }
.itin-route .mono { color: var(--ink-soft); font-size: 11.5px; }
.itin-seg { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 3px 0; font-size: 12.5px; }
.itin-fl { color: var(--ink); }
.itin-air { color: var(--ink-soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itin-route { color: var(--ink); white-space: nowrap; }
.itin-next { color: var(--warn); font-size: 11px; }
.itin-lay { margin: 2px 0 2px 64px; padding-left: 10px; border-left: 2px dashed var(--line); color: var(--ink-soft); font-size: 12px; }
.itin-tight { color: var(--warn); }
.bk-quote { display: block; width: 100%; margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); }

/* Statuschip in de werkvoorraad: aanklikbaar voor uitleg, opent de reis niet. */
.wl-status { cursor: help; border-style: dashed; }
.wl-status:hover { filter: brightness(.97); }

/* Live status in de boek-popup terwijl je in Slack beslist. */
.bk-live { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--bg); border: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft); }
.bk-live.done { border-style: solid; border-color: var(--teal); background: var(--teal-tint); color: var(--ink); }
.land-btn { border: 0; background: none; cursor: pointer; font-size: 13px; line-height: 1; opacity: .55; padding: 0 0 0 3px; }
.land-btn:hover { opacity: 1; }

/* Tussentijdse resultaten: de lijst staat er al terwijl de trage bronnen (Kayak) nog lopen. */
.int-partial { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft);
  background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }

/* tabbladen met open reizen (boven het dossier) */
.int-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.int-tab { display: inline-flex; align-items: center; gap: 7px; max-width: 240px; flex: 0 0 auto; text-decoration: none; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; transition: border-color .12s, box-shadow .12s; }
.int-tab:hover { border-color: var(--teal); }
.int-tab.on { border-color: var(--teal); background: var(--teal-tint); box-shadow: 0 0 0 2px var(--teal-tint); color: var(--ink); }
.int-tab .code { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); }
.int-tab .name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.int-tab .x { border: 0; background: transparent; color: var(--ink-dim); font-size: 16px; line-height: 1; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; flex: 0 0 auto; }
.int-tab .x:hover { background: rgba(214,69,69,.1); color: var(--bad); }
.int-row .tab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; align-self: center; }
.int-row.in-tab { border-left: 3px solid var(--teal); }

/* ── Meeting 6 okt 2026: inklapbare werkvoorraad ─────────────── */
.int-side-head { position: relative; }
.int-side-close { margin-left: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-size: 14px; flex: none; }
.int-side-close:hover { border-color: var(--teal); color: var(--teal-dark); }
.int-side-open { position: sticky; top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 40px; padding: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--teal-dark); cursor: pointer; font-family: var(--font-head); font-weight: 700; }
.int-side-open .v { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; letter-spacing: .12em; }
.int-side-open:hover { border-color: var(--teal); }
.int-main.side-off { grid-template-columns: 40px minmax(0, 1fr); }
.int-main.side-off .int-side { display: none; }
.int-head-btn { margin-left: auto; }

/* ── Optiekaarten (vervangen de compacte tabel) ─────────────── */
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-card { display: grid; grid-template-columns: 130px 150px minmax(0, 1fr) 210px 190px; gap: 6px 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(20,40,40,.05); transition: border-color .12s, box-shadow .12s; }
.opt-card:hover { border-color: rgba(3,181,170,.55); box-shadow: 0 4px 14px rgba(3,181,170,.10); }
.opt-card.chosen { border-color: var(--teal); background: var(--teal-tint); }
.opt-card.nearmiss { background: #fffaf0; }
.opt-card.same-booked { box-shadow: inset 5px 0 0 var(--teal); }
.opt-card.part-booked { box-shadow: inset 5px 0 0 var(--line); }
.oc-price { display: flex; flex-direction: column; gap: 2px; padding-right: 14px; border-right: 1px dashed var(--line); }
.oc-price b { font-size: 28px; line-height: 1.05; color: var(--ink); font-weight: 600; }
.oc-price span { font-size: 12.5px; color: var(--ink-soft); }
.oc-air { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--ink); min-width: 0; }
.oc-air b { font-family: var(--font-head); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-air span { font-size: 12.5px; }
.oc-legs { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.oc-leg { display: grid; grid-template-columns: 52px 46px auto minmax(110px, 1fr) auto; align-items: center; gap: 10px; }
.oc-lg { font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .06em; color: var(--ink-dim); }
.oc-date { font-size: 13px; color: var(--ink-soft); }
.oc-end { display: flex; flex-direction: column; align-items: center; line-height: 1.1; position: relative; }
.oc-end b { font-size: 21px; color: var(--ink); font-weight: 600; }
.oc-ap { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--teal-dark); letter-spacing: .03em; margin-top: 2px; cursor: help; }
.oc-plus { position: absolute; top: -9px; right: -16px; font-size: 11.5px; font-weight: 700; color: var(--warn); }
.oc-mid { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.oc-dur { font-size: 13px; color: var(--ink); }
.oc-tr { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.oc-line { position: relative; width: 100%; height: 2px; background: var(--ink-dim); opacity: .55; border-radius: 2px; }
.oc-line::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ink-dim); border-right: 0; }
.oc-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.oc-bagok { color: var(--ink); }
.oc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.oc-tags .pill { font-size: 11.5px; }
.oc-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.oc-book { padding: 10px 16px; font-size: 14px; }
.oc-book.warn { background: var(--warn); border-color: var(--warn); }
.oc-srcs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.oc-src { font-family: var(--font-head); font-weight: 600; font-size: 11.5px; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.oc-src b { font-weight: 600; margin-left: 2px; }
.oc-src.api { color: var(--teal-dark); border-color: rgba(3,181,170,.4); background: var(--teal-tint); cursor: pointer; }
.oc-src.api:hover { border-color: var(--teal); }
.oc-src.site { color: var(--warn); border-color: rgba(217,145,0,.35); }
.oc-src.nota { color: var(--bad); border-color: rgba(214,69,69,.35); }
.oc-det { border: 0; background: none; color: var(--teal-dark); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.oc-details { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 6px; }
.oc-details .itin { background: var(--bg); }
/* FAV / BACK: klein label, klik toont de routes. */
.rt-tag { font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px; cursor: pointer; border: 1px solid; }
.rt-tag.fav { color: var(--teal-dark); border-color: rgba(3,181,170,.45); background: var(--teal-tint); }
.rt-tag.back { color: #6b3fa0; border-color: rgba(107,63,160,.4); background: #f3edfb; }
tr.rt-on th, tr.rt-on td { color: var(--teal-dark); }
/* Losse legs onderaan */
.int-legs { margin-top: 26px; }
.int-legrow-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 13px; }
@media (max-width: 1400px) {
  .opt-card { grid-template-columns: 120px minmax(0, 1fr) 190px; }
  .oc-air { grid-column: 1; }
  .oc-legs { grid-column: 2; grid-row: 1 / span 2; }
  .oc-meta { grid-column: 3; }
  .oc-act { grid-column: 3; }
}
@media (max-width: 900px) {
  .opt-card { grid-template-columns: 1fr; }
  .oc-legs, .oc-air, .oc-meta, .oc-act { grid-column: auto; grid-row: auto; }
  .oc-price { border-right: 0; }
  .oc-act { align-items: flex-start; }
}

/* ── Boekpopup ─────────────────────────────────────────────── */
.int-modal-box.wide { max-width: 780px; }
.bk-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-size: 13.5px; }
.bk-check input { width: 17px; height: 17px; margin-top: 1px; flex: none; }
.bk-err { color: var(--bad); background: rgba(214,69,69,.06); border-left: 3px solid var(--bad); padding: 8px 12px; border-radius: 0 6px 6px 0; margin: 8px 0; }
.bk-lock { margin-top: 10px; font-size: 13px; color: var(--warn); }
.mb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 10px 0; }
.mb-grid label { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); }
.mb-grid label .dim { font-family: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; }
.int-open { border-color: rgba(217,145,0,.5); background: #fffaf0; }
.int-open-act { display: flex; gap: 8px; margin-top: 10px; }
.int-side-open[hidden] { display: none; }
.opt-more { align-self: center; margin-top: 4px; padding: 9px 18px; font-size: 13px; }
.oc-meta { align-items: flex-start; }
.int-refresh { margin-left: auto; font-size: 16px; }
.int-refresh + .int-side-close { margin-left: 6px; }
.int-refresh.spin { animation: wl-spin .8s linear infinite; }
@keyframes wl-spin { to { transform: rotate(360deg); } }
