/* BELREUS Filter Engine (includes/sim-compare.php): filtercockpit, chips en resultaatstatus. Tabelopmaak staat in home-master.css (.sc2-*). */
.fe-cockpit { margin-bottom: 16px; padding: 18px; background: #fff; border: 1px solid #e1e8f3; border-radius: 18px; box-shadow: 0 10px 26px rgba(11, 31, 66, .06); }
.fe-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.fe-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.fe-field--sort { min-width: 240px; }
.fe-field select, .fe-field input { height: 44px; padding: 0 12px; border: 1px solid #d6e0ee; border-radius: 11px; background: #fff; font: 500 14px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.fe-field select:focus, .fe-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 98, 242, .15); }
.fe-field--num { min-width: 140px; }
.fe-dir, .fe-more { height: 44px; padding: 0 14px; border: 1px solid #d6e0ee; border-radius: 11px; background: var(--tint); color: var(--navy); font: 700 13.5px var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
.fe-dir:hover, .fe-more:hover { border-color: var(--blue); background: #fff; }
.fe-more[aria-expanded="true"] { border-color: var(--blue); background: var(--tint-blue); }
.fe-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; }
.fe-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf1f8; }
.fe-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.fe-group legend { margin-bottom: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fe-pair { display: flex; flex-wrap: wrap; gap: 10px; }
.fe-pair .fe-field { flex: 1 1 120px; min-width: 0; }
.fe-checks { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.fe-check { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid #d6e0ee; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.fe-check:has(input:checked), .fe-pick:has(input:checked) span { border-color: var(--blue); background: var(--tint-blue); color: var(--navy); }
.fe-chips-choose { display: flex; flex-wrap: wrap; gap: 8px; }
.fe-pick input { position: absolute; opacity: 0; pointer-events: none; }
.fe-pick span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid #d6e0ee; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.fe-pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.fe-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.fe-count { margin: 0 !important; font-size: 14px; color: var(--ink); }
.fe-count strong { font-size: 16px; color: var(--navy); }
.fe-active { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fe-active button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 12px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 12.5px var(--font); cursor: pointer; }
.fe-active button:hover { background: var(--blue); }
.fe-clear { margin-left: auto; border: 0; background: none; color: var(--blue); font: 700 13.5px var(--font); text-decoration: underline; cursor: pointer; }
.fe-tag { display: inline-block; padding: 0 6px; border: 1px solid #f3c9ad; border-radius: 5px; background: #fff7f1; color: #b4470c; font-size: 10.5px; font-weight: 700; }
.fe-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; border: 1px solid #e1e8f3; border-radius: 16px; background: #fff; }
.fe-empty p { margin: 0 !important; }
@media (max-width: 760px) {
    .fe-cockpit { padding: 14px; }
    .fe-row .fe-field { flex: 1 1 calc(50% - 12px); min-width: 0; }
    .fe-field--sort { flex-basis: 100% !important; }
    .fe-dir, .fe-more { flex: 1 1 calc(50% - 12px); }
    .fe-clear { margin-left: 0; }
}
.fe [hidden], .fe-cockpit [hidden] { display: none !important; }

/* ---------- Layout volgens design-references/Vergelijk Sim Only-aanbiedingen.png: zijbalk + bovenbalk + tabel ---------- */
.fe-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.fe-main { min-width: 0; }
.fe-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding: 14px 16px 16px; background: #fff; border: 1px solid #e1e8f3; border-radius: 16px; box-shadow: 0 10px 26px rgba(11, 31, 66, .06); }
.fe-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #edf1f8; }
.fe-side-title { display: flex; align-items: center; gap: 7px; margin: 0 !important; font-weight: 800; font-size: 15px; color: var(--navy); }
.fe-side-title .icon { color: var(--blue); }
.fe-side-count { margin: 0 !important; font-size: 12px; color: var(--muted); }
.fe-side-close { display: none; }
.fe-clear--side { display: block; margin: 6px 0 2px auto; font-size: 12.5px; }
.fe-list { margin: 12px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid #edf1f8; }
.fe-list legend { float: left; width: 100%; margin-bottom: 6px; font-size: 13px; font-weight: 800; color: var(--navy); }
.fe-opt { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13.5px; color: var(--ink); cursor: pointer; clear: both; }
.fe-opt input { width: 16px; height: 16px; accent-color: var(--blue); }
.fe-opt small { margin-left: auto; color: var(--muted); font-size: 12px; }
.fe-opt:hover span { color: var(--blue); }
.fe-pair--stack { flex-direction: column; }
.fe-side .fe-field { min-width: 0; font-size: 12px; }
.fe-side .fe-field input { height: 38px; }
.fe-cockpit { padding: 14px 16px; }
.fe-row--main { gap: 10px; }
.fe-row--main .fe-field { min-width: 130px; }
.fe-row--main .fe-field--sort { min-width: 230px; }
.fe-row--main .fe-check { min-height: 44px; }
.fe-sideopen { display: none; height: 44px; padding: 0 14px; border: 1px solid #d6e0ee; border-radius: 11px; background: #fff; color: var(--navy); font: 700 13.5px var(--font); align-items: center; gap: 6px; cursor: pointer; }
.fe-adv { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.fe-status { margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1f8; }
.fe-status-label { font-size: 13px; font-weight: 800; color: var(--navy); }
.fe-none { font-size: 13px; color: var(--muted); }
.fe-active button { background: var(--tint-blue); color: var(--navy); border: 1px solid #c9d8f2; }
.fe-active button:hover { background: var(--blue); color: #fff; }
.fe-count { margin-left: auto !important; }
.fe-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(7, 21, 48, .45); }
@media (max-width: 1100px) {
    .fe-layout { grid-template-columns: minmax(0, 1fr); }
    .fe-sideopen { display: inline-flex; }
    .fe-side { position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; border-radius: 0 16px 16px 0; transform: translateX(-105%); transition: transform .25s ease; }
    .fe-side-open .fe-side { transform: none; }
    .fe-side-close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d6e0ee; border-radius: 10px; background: #fff; font-size: 20px; cursor: pointer; }
}
@media (max-width: 760px) {
    .fe-row--main .fe-field, .fe-row--main .fe-check, .fe-sideopen, .fe-dir, .fe-more { flex: 1 1 calc(50% - 10px); }
    .fe-row--main .fe-field--sort { flex-basis: 100%; }
    .fe-count { margin-left: 0 !important; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fe-side { transition: none; } }

/* Tabel naast de zijbalk: compacter, cijfers op één regel (referentie). */
.fe-main .sc2-table { font-size: 13.5px; }
.fe-main .sc2-table th, .fe-main .sc2-table td { padding: 10px 10px; }
/* Looptijd mag afbreken ("Maandelijks opzegbaar" maakte de kolom te breed); bedragen blijven op één regel. Nooit een knop afsnijden: anders horizontaal scrollen in de tabel. */
.fe-main .sc2-table td:nth-child(5), .fe-main .sc2-table td:nth-child(6), .fe-main .sc2-table td:nth-child(7) { white-space: nowrap; }
.fe-main .sc2-box { overflow-x: auto; }
.fe-main .sc2-prov { width: 120px; }
.fe-main .sc2-logo img { height: 22px; max-width: 100px; }
.fe-main .sc2-month small { white-space: nowrap; }
.fe-main .sc2-cta .btn { padding-inline: 12px; }
.fe-more, .fe-dir { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 1101px) { .fe-row--main .fe-sideopen { display: none; } }
.fe-list .fe-pair { clear: both; width: 100%; padding-top: 2px; } .fe-list .fe-pair .fe-field { flex: 1 1 90px; }

/* Compacte modus (smalle kolom, bijv. uitgebreide providerpagina): filters altijd als uitschuifpaneel, tabel over de volle breedte. */
.fe--compact .fe-layout { grid-template-columns: minmax(0, 1fr); }
.fe--compact .fe-row--main .fe-sideopen { display: inline-flex; }
.fe--compact .fe-side { position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; border-radius: 0 16px 16px 0; transform: translateX(-105%); transition: transform .25s ease; }
.fe--compact.fe-side-open .fe-side { transform: none; }
.fe--compact .fe-side-close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d6e0ee; border-radius: 10px; background: #fff; font-size: 20px; cursor: pointer; }
.fe-main .sc2-bundle strong { white-space: nowrap; }

/* Weergaveschakelaar (gebalanceerd / per provider / op prijs) */
.fe-views { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 12px; background: var(--tint); border: 1px solid #e1e8f3; }
.fe-views button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 700 13px var(--font); cursor: pointer; }
.fe-views button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(11, 31, 66, .1); }
.fe-dir:disabled { opacity: .55; cursor: default; }
@media (max-width: 760px) { .fe-views { display: flex; } .fe-views button { flex: 1 1 auto; justify-content: center; padding: 0 8px; font-size: 12px; } }
