/* =============================================================
   Zimmer Staal — Voorraadmodule
   main.css v2.1
   Bevat: design tokens, login, zoekinterface (index.php)
   ============================================================= */

/* ---- RESET & BOX MODEL ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- DESIGN TOKENS ---- */
:root {
    --red:      #F27E3F;
    --red-d:    #d9642a;
    --dark:     #2D4F7A;
    --silver:   #64748b;
    --slt:      #94a3b8;
    --border:   #e2e8f0;
    --bg:       #f8fafc;
    --card:     #fff;
    --thead:    #f1f5f9;
    --text:     #1e293b;
    --textlt:   #475569;
    --fh:       'Barlow Condensed', sans-serif;
    --fb:       'Inter', sans-serif;
}

/* ---- GLOBAAL ---- */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--fb);
    font-size: 14px;
    min-height: 100vh;
}

/* Rode balk links */
body::before {
    content: '';
    position: fixed;
    left: 0; top: 0;
    width: 5px; height: 100vh;
    background: var(--red);
    z-index: 100;
}

/* ---- HEADER ---- */
header {
    background: var(--dark);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0; z-index: 10;
    margin-left: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.brand {
    font-family: var(--fh);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}

.brand span { color: var(--red); }

.hnav { display: flex; gap: 20px; align-items: center; }
.huser { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.5); }
.himport { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.5); }
.hnav-divider { width: 1px; height: 18px; background: rgba(255,255,255,.15); }
.lang-switcher { display: flex; gap: 2px; align-items: center; }
.lang-btn { font-family: var(--fh); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.45); text-decoration: none; padding: 3px 6px; border-radius: 3px; transition: color .15s, background .15s; }
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-actief { color: var(--red) !important; background: rgba(242,126,63,.15); }

.hlink {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .2s;
}

.hlink:hover { color: #fff; }

/* ---- MAIN ---- */
main { max-width: 1400px; margin: 0 auto; padding: 24px; }

.ptitle {
    font-family: var(--fh);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 16px;
}

.ptitle span { color: var(--red); }

.tdnote {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    padding: 8px 14px;
    font-size: 12px;
    color: #c2410c;
    margin-bottom: 16px;
}

/* ---- ZOEKBALK ---- */
.swrap { position: relative; margin-bottom: 12px; }

.sinput {
    width: 100%;
    background: var(--card);
    border: 2px solid var(--border);
    border-left: 4px solid var(--red);
    color: var(--text);
    font-family: var(--fb);
    font-size: 15px;
    padding: 12px 44px 12px 16px;
    outline: none;
    transition: border-color .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.sinput:focus { border-color: var(--red); }
.sinput::placeholder { color: var(--slt); }

.sicon {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 48px;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slt);
    padding: 0;
    transition: color .15s;
}
.sicon:hover { color: var(--red); }
.sicon svg { width: 18px; height: 18px; }

/* ---- ZOEK HELP ---- */
.zoek-help-wrap { position: relative; flex-shrink: 0; }

.zoek-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--red);
    font-family: var(--fh);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 4px 0;
}
.zoek-help-btn:hover { opacity: .75; }
.zoek-help-btn svg { width: 13px; height: 13px; }

.zoek-help-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    z-index: 200;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    padding: 16px 20px;
    min-width: 580px;
    max-width: 720px;
}
.zoek-help-panel[hidden] { display: none; }

.zhp-sectie { margin-bottom: 12px; }
.zhp-sectie:last-of-type { margin-bottom: 0; }

.zhp-label {
    font-family: var(--fh);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--slt);
    margin-bottom: 5px;
}

.zhp-rijen { display: flex; flex-direction: column; gap: 3px; }

.zhp-rij {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
}
.zhp-rij code {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    background: var(--thead);
    padding: 1px 5px;
    color: var(--red);
    white-space: nowrap;
}
.zhp-rij span { color: var(--silver); }
.zhp-rij span code { background: none; padding: 0; color: var(--red); font-weight: 700; }

.zhp-combo {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.zhp-combo-label {
    font-family: var(--fh);
    font-weight: 700;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
}
.zhp-combo code {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    background: var(--thead);
    padding: 2px 8px;
    color: var(--red);
}

@media (max-width: 600px) {
    .zoek-help-panel { min-width: 0; width: calc(100vw - 32px); }
    .zhp-rij { grid-template-columns: 1fr; gap: 1px; }
    .zhp-rij span { padding-left: 4px; }
}

/* ---- HOE WERKT ZOEKEN MODAL ---- */
.hwz-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,.5);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}
.hwz-modal {
    background: var(--card);
    border-radius: 10px;
    border-top: 4px solid var(--red);
    max-width: 720px; width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,.20);
    padding: 28px 28px 24px;
}
.hwz-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.hwz-modal-titel {
    font-family: var(--fh);
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
    display: flex; align-items: center; gap: 8px;
}
.hwz-modal-titel svg { width: 22px; height: 22px; stroke: var(--red); flex-shrink: 0; }
.hwz-intro {
    font-size: 14px;
    line-height: 1.65;
    color: var(--textlt);
    margin-bottom: 14px;
}
.hwz-intro p + p { margin-top: 6px; }
.hwz-intro strong { color: var(--text); }
.hwz-pijl { color: var(--red); font-weight: 700; font-size: 11px; }
.hwz-tip { background: var(--thead); border-radius: 4px; padding: 5px 8px; font-weight: 700; color: var(--text); margin-top: 6px; }
.hwz-intro code { font-family: monospace; font-size: 14px; background: var(--thead); padding: 2px 6px; border-radius: 3px; color: var(--red); font-weight: 700; }
.hwz-intro code.hwz-voorbeeld { font-size: 15px; padding: 4px 8px; border-radius: 4px; display: block; margin-top: 4px; }
.hwz-verwijzing { font-size: 13px; color: var(--slt); text-align: center; margin: 8px 0 14px; }
.hwz-verwijzing strong { color: var(--red); font-weight: 700; font-size: 14px; }
.hwz-verwijzing svg { width: 13px; height: 13px; stroke: var(--red); vertical-align: -2px; display: inline; }
.hwz-begrepen { flex-shrink: 0; }

/* ---- FILTERS ---- */
.filters {
    background: var(--card);
    border: 1px solid var(--border);
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 7fr 3fr 10fr 10fr auto;
    gap: 20px 10px;
    align-items: end;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.fg-sub { display: flex; gap: 10px; align-items: flex-end; min-width: 0; }
.fg-sub > .fg { flex: 1; min-width: 0; }
.fg-sub > .fg-auto { flex: 0 0 auto; }
.fg-span2 { grid-column: span 2; }
.fg-span-end { grid-column: 4 / -1; }
.fg.kwal-enkv-row { flex-direction: row; align-items: flex-end; gap: 10px; }
.kwal-cell { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 4px; }
.enkv-cell { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }

.fg { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }

.fg label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--silver);
    white-space: nowrap;
}

.fg input[type=text],
.fg select {
    height: 34px;
    padding: 0 9px;
    font-size: 13px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--fb);
    width: 100%;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}

.fg select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    padding-right: 26px;
}

.fg input:focus,
.fg select:focus { border-color: var(--red); }

.fa { display: flex; align-items: flex-end; gap: 6px; flex-shrink: 0; }

.btn {
    height: 34px;
    padding: 0 18px;
    background: var(--red);
    color: #fff;
    font-family: var(--fh);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn:hover { background: var(--red-d); }

.bto {
    height: 34px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--silver);
    font-family: var(--fh);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all .2s;
}

.bto:hover { border-color: var(--silver); color: var(--text); }

/* ---- ACTIEVE FILTER TAGS ---- */
.aftags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.aftag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    font-size: 12px;
    color: var(--textlt);
    padding: 3px 9px;
}

.aftag a { color: var(--slt); text-decoration: none; font-size: 15px; line-height: 1; margin-left: 2px; }
.aftag a:hover { color: var(--red); }

/* ---- RESULTATEN TELLER ---- */
.rcnt {
    font-family: var(--fh);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rcnt-knoppen { display: flex; gap: 8px; align-items: center; }
.rcnt-knoppen .btn,
.rcnt-knoppen .bto,
.rcnt-knoppen .ranking-toggle { min-width: 180px; justify-content: center; }
.rcnt-alt { color: #15803d; font-weight: 600; }

.rcnt strong { color: var(--text); font-size: 15px; }

.zoek-te-breed { font-family: var(--fh); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); padding: 6px 0 4px; }

/* ---- TABEL ---- */
.twrap {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.thead {
    display: grid;
    grid-template-columns: 100px 120px 120px 120px 1fr 88px 32px;
    background: var(--thead);
    border-bottom: 2px solid var(--border);
    padding: 0 6px;
}

.thead div {
    font-family: var(--fb);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--silver);
    padding: 12px 20px;
}

.rij { border-bottom: 1px solid var(--border); cursor: pointer; transition: background .1s; }
.rij:last-child { border-bottom: none; }
.rij              { background: #fff; }
.rij.zebra        { background: rgba(0,0,0,0.02); }
.rij:hover        { background: #f8fafc; }
.rij.open         { background: #fff; border-left: 4px solid #F27E3F; }
.rij.zebra.open   { background: rgba(0,0,0,0.02); }

.rh {
    display: grid;
    grid-template-columns: 100px 120px 120px 120px 1fr 88px 32px;
    padding: 0 6px;
    align-items: center;
}

.rh div { padding: 14px 20px; font-size: 14px; color: var(--text); }

.ntal { font-family: var(--fh); font-size: 20px; font-weight: 800; color: var(--text) !important; }
.ntal.plus { color: var(--red) !important; }
.afm { font-weight: 500; }
.rh .afm-deelbaar { color: var(--red); font-weight: 700; }
.dik { font-weight: 600; white-space: nowrap; }
.ks { font-size: 13px; color: var(--textlt); line-height: 1.5; }
.kv { font-size: 12px; color: var(--silver); }

.bh {
    display: inline-block;
    font-family: var(--fh);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
}

.beu  { background: #daeaf8; color: #1a4f7a; }
.bimp { background: #fff0e6; color: #c0531a; }

.rh div:nth-child(6) { text-align: center; }
.thead div:nth-child(6) { text-align: center; }
.thead div:nth-child(6) a { justify-content: center; width: 100%; }
.rh .chev { font-size: 10px; color: var(--slt); transition: transform .2s; text-align: center; }
.rij.open .rh .chev { transform: rotate(180deg); color: var(--red); }

/* ---- ACCORDION DETAIL ---- */
.rdet { display: none; padding: 4px 20px 16px 34px; border-top: 1px solid var(--border); border-left: none; background: transparent; }
.rij.open .rdet { display: block; }

.dtbl { border-collapse: collapse; margin-top: 10px; }

.dtbl th {
    font-family: var(--fb);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--silver);
    padding: 5px 20px 5px 0;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.dtbl td { font-size: 13px; color: var(--text); padding: 8px 20px 8px 0; border-bottom: 1px solid var(--border); }
.dtbl tr:last-child td { border-bottom: none; }

/* ---- BRANCHE BADGES ---- */
.bb {
    display: inline-block;
    font-family: var(--fh);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 7px;
}

.bc { background: #ede8f8; color: #4a2d8c; }
.bs { background: #e0f0f5; color: #1a5068; }
.bo { background: #fdf3d0; color: #7a5000; }
.by { background: #fff9c2; color: #6b5500; }
.br { background: #e8e8f5; color: #3a3a7a; }
.bx { background: #f1f5f9; color: var(--silver); }

/* ---- LEGE STATE ---- */
.geen { text-align: center; padding: 80px 20px; color: var(--silver); }
.geen .ic { font-size: 44px; margin-bottom: 14px; opacity: .25; }
.geen p { font-size: 15px; }

/* ---- LOGIN PAGINA ---- */
body.login-body {
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Grid textuur achtergrond login */
body.login-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
        repeating-linear-gradient(0deg,  transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
    pointer-events: none;
}

/* Rode balk login (overschrijft globale ::before kleur) */
body.login-body::after {
    content: '';
    position: fixed;
    left: 0; top: 0;
    width: 6px; height: 100vh;
    background: var(--red);
}

.login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-login { margin-bottom: 40px; }

.brand-name {
    font-family: var(--fh);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f0f4f8;
    text-transform: uppercase;
}

.brand-name span { color: var(--red); }

.brand-sub {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a9ab0;
    margin-top: 4px;
}

.card {
    background: #234569;
    border: 1px solid rgba(255,255,255,0.07);
    border-top: 3px solid var(--red);
    padding: 40px;
}

.card-title {
    font-family: var(--fh);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f0f4f8;
    margin-bottom: 32px;
}

.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a9ab0;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    color: #1e293b;
    font-family: var(--fb);
    font-size: 15px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
}

.field input:focus { border-color: var(--red); }
.field input::placeholder { color: #94a3b8; }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #1e293b !important;
    caret-color: #1e293b;
}

.error-msg {
    background: rgba(200,16,46,0.15);
    border-left: 3px solid var(--red);
    color: #ff8a9a;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.btn-login {
    width: 100%;
    background: var(--red);
    color: #fff;
    font-family: var(--fh);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    padding: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-login:hover { background: var(--red-d); }

.login-forgot {
    font-size: 12px;
    color: #8a9ab0;
    text-decoration: none;
    transition: color .2s;
}
.login-forgot:hover { color: #f0f4f8; }

.footer-note {
    margin-top: 24px;
    font-size: 11px;
    color: rgba(138,154,176,0.5);
    text-align: center;
    letter-spacing: 0.05em;
}

/* ---- EXPORTBLOKKADE & WATERMARK ---- */
.twrap { user-select: none; -webkit-user-select: none; position: relative; }

.twrap::after {
    content: attr(data-user);
    position: fixed;
    bottom: 40px; right: 40px;
    font-size: 11px;
    color: rgba(0,0,0,0.07);
    font-family: Arial, sans-serif;
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.watermark-footer {
    font-size: 11px;
    color: rgba(0,0,0,0.25);
    text-align: center;
    padding: 16px 0 8px;
    letter-spacing: 0.05em;
    user-select: none;
}

@media print {
    .twrap, .filters, .swrap, header, nav { display: none !important; }
    body::after {
        content: "Deze pagina kan niet worden afgedrukt.";
        display: block;
        text-align: center;
        margin-top: 100px;
        font-size: 18px;
        color: #333;
    }
}

/* Wachtwoord tonen/verbergen */
.field-pw-wrap { position: relative; }
.field-pw-wrap input { padding-right: 46px !important; box-sizing: border-box; }
.pw-toggle {
    position: absolute;
    right: 1px; top: 1px; bottom: 1px;
    width: 42px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8a9ab0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}
.pw-toggle:hover { color: #f0f4f8; }
.pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Login pitch + toegang aanvragen */
.login-pitch {
    margin-top: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 22px 28px;
    text-align: center;
}
.login-pitch-text {
    font-size: 13px;
    color: #8a9ab0;
    line-height: 1.6;
    margin-bottom: 16px;
}
.btn-aanvragen {
    display: inline-block;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #f0f4f8;
    font-family: var(--fh);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 9px 22px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.btn-aanvragen:hover { border-color: var(--red); color: var(--red); }

/* Toegang aanvragen pagina */
.field-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.field-check input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--red); cursor: pointer; }
.field-check label { font-size: 13px; color: #8a9ab0; line-height: 1.5; cursor: pointer; }
.field-check label a { color: #f0f4f8; text-decoration: underline; }
.success-msg {
    background: rgba(22,163,74,0.15);
    border-left: 3px solid #16a34a;
    color: #86efac;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

/* =============================================================
   Autocomplete kwaliteit filter
   ============================================================= */
.fg { position: relative; }

.kwal-suggestions {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.kwal-suggestions.open { display: block; }

.kwal-sug-item {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.kwal-sug-item:hover,
.kwal-sug-item.active { background: var(--thead); color: var(--text); }

.kwal-sug-item strong { color: var(--red); }

.kwal-fav-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--red);
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* =============================================================
   Sorteerbare tabelheaders
   ============================================================= */
.th-sort a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--fb);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.th-sort a:hover { color: var(--text); }
.th-sort.th-actief a { color: var(--red); }
.th-ico { font-size: 10px; opacity: 0.7; }

.th-sort.th-multi a { color: var(--text); }


/* ── Sorteerbeschrijving ── */
.sort-desc { font-family: var(--fh); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slt); margin-bottom: 10px; }
.sort-desc strong { color: var(--silver); font-weight: 600; }

/* ── Standaard secundaire sortering in header ── */
.th-sort.th-default a { color: var(--text); }
.th-sort.th-default .th-ico { opacity: 0.55; }

/* ── Quarantaine badge in voorraadtabel ── */
.tag-quarantaine { background: rgba(217,119,6,0.10); color: #d97706; font-size: 10px; font-family: var(--fh); padding: 2px 6px; margin-left: 6px; letter-spacing: .06em; text-transform: uppercase; display: inline-block; }

/* ── Relevantie ranking badge ── */
.relevantie-badge {
    display: inline-block;
    font-family: var(--fh);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Quarantaine waarschuwing in accordeon ── */
.quarantaine-note { font-size: 12px; color: #d97706; font-style: italic; }
.quarantaine-note a { color: #d97706; }

/* ── Zoekprompt (leeg scherm bij eerste bezoek) ── */
.search-prompt { text-align: center; padding: 80px 20px; color: var(--silver); }
.search-prompt .ic { font-size: 48px; margin-bottom: 16px; opacity: .2; }
.search-prompt p { font-size: 15px; }

/* ── Kleine reset-sortering knop ── */
.bto-sm { font-size: 11px; margin-left: 12px; }

/* ── Slimme volgorde toggle ── */
.ranking-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    transition: border-color .2s;
}

.ranking-toggle.aan { border-color: var(--red); }

.ranking-toggle-slider {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 10px;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}

.ranking-toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.ranking-toggle.aan .ranking-toggle-slider { background: var(--red); }
.ranking-toggle.aan .ranking-toggle-slider::after { left: 18px; }

.ranking-toggle-label {
    font-family: var(--fh);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--silver);
    transition: color .2s;
}

.ranking-toggle.aan .ranking-toggle-label { color: var(--text); }

/* ── Geïnterpreteerde zoekopdracht ── */
.vq-wrap { min-height: 38px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.vq-content { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; flex: 1; }

.vq-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    font-size: 13px;
    color: var(--textlt);
    padding: 5px 12px;
}
.vq-pill strong { color: var(--text); font-weight: 600; }
.vq-pill a { color: var(--slt); text-decoration: none; font-size: 16px; line-height: 1; margin-left: 2px; }
.vq-pill a:hover { color: var(--red); }
.vq-rest-warn { font-size: 12px; color: var(--orange); margin-left: 8px; }
.vq-doorhalen { display: inline-flex; align-items: center; background: rgba(242,126,63,.07); border: 1px solid rgba(242,126,63,.5); border-left: 3px solid var(--red); font-size: 13px; color: var(--textlt); padding: 5px 12px; }

/* =============================================================
   Suggestie-banner (alternatieven)
   ============================================================= */

.suggestie-banner {
    background: var(--card);
    border: 1px solid #d4dae4;
    border-left: 4px solid var(--red);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.suggestie-titel {
    font-family: var(--fh);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #15803d;
    margin-bottom: 4px;
}

.suggestie-sub {
    font-size: 13px;
    color: var(--textlt);
    margin-bottom: 12px;
}

.suggestie-opties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggestie-opties:not(.eq-klaar) .suggestie-optie { visibility: hidden; }

.suggestie-groep { margin-top: 10px; }

.suggestie-groep-label {
    font-family: var(--fh);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--textlt);
    margin-bottom: 6px;
}

.suggestie-optie {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-family: var(--fb);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.04em;
    padding: 6px 10px;
    justify-content: space-between;
    text-decoration: none;
    border: 0.5px solid #e0e0e0;
    border-left: 4px solid var(--red);
    border-radius: 0 6px 6px 0;
    transition: background .15s;
}

.suggestie-optie:hover { background: #f5f5f5; }

.suggestie-optie-eu     { border-left-color: #daeaf8; }
.suggestie-optie-import { border-left-color: #fff0e6; }

.suggestie-import-blok { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e0e0e0; }
.herk-badge  { font-size: 10px; font-weight: 600; padding: 2px 6px; letter-spacing: 0.04em; }
.herk-eu     { background: #daeaf8; color: #1a4f7a; }
.herk-import { background: #fff0e6; color: #c0531a; }

/* ── Certificaattype toggle knoppen ── */
.fg select.cert-blocked { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.cert-toggle { display: flex; gap: 4px; }
.cert-btn {
    height: 34px; padding: 0 12px;
    background: var(--bg); border: 1px solid var(--border);
    color: var(--silver); font-family: var(--fh); font-size: 13px;
    font-weight: 700; letter-spacing: .06em; cursor: pointer;
    transition: all .15s;
}
.cert-btn:hover:not(.cert-actief) { border-color: var(--red); color: var(--red); }
.cert-btn.cert-actief { background: var(--red); color: #fff; border-color: var(--red); }

.enkelvoudig-btn {
    display: inline-flex; align-items: center;
    height: 34px; padding: 0;
    border: none; background: none;
    cursor: pointer;
}
.enkelvoudig-btn.enkelvoudig-actief { }
.enkv-slider {
    width: 36px; height: 20px; background: var(--border);
    border-radius: 10px; position: relative;
    transition: background .2s; flex-shrink: 0;
}
.enkv-slider::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px; background: #fff;
    border-radius: 50%; top: 2px; left: 2px;
    transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.enkelvoudig-actief .enkv-slider { background: var(--red); }
.enkelvoudig-actief .enkv-slider::after { left: 18px; }

.suggestie-sub-hoofd {
    font-family: var(--fh);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #1a2332;
    margin: 14px 0 8px;
}
.suggestie-sub-hoofd-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.toon-meer-btn {
    font-family: var(--fh);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--red);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.toon-meer-btn:hover { opacity: 0.75; }
.toon-meer-inhoud    { display: contents; }
.toon-meer-verborgen { display: none; }

/* ── Instellingen pagina ──────────────────────────────── */
.page-instellingen { max-width: 620px; margin: 40px auto; padding: 0 24px; }

.inst-title {
    font-family: var(--fh);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 28px;
}

.inst-msg { padding: 10px 14px; margin-bottom: 20px; font-size: 13px; border-left: 3px solid; }
.inst-msg-ok { background: rgba(22,163,74,.08); border-color: #16a34a; color: #15803d; }

.inst-section {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.inst-section-title {
    font-family: var(--fh);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 16px;
}

.inst-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.inst-row:last-child { border-bottom: none; padding-bottom: 0; }

.inst-row-label { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.inst-row-desc  { font-size: 12px; color: var(--silver); line-height: 1.4; }

/* Checkbox toggle */
.inst-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.inst-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.inst-toggle-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 12px;
    transition: background .2s;
}
.inst-toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: left .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.inst-toggle input:checked + .inst-toggle-slider { background: var(--red); }
.inst-toggle input:checked + .inst-toggle-slider::after { left: 23px; }

/* Sortering select */
.inst-sort-wrap { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.inst-sort-rij { display: flex; align-items: center; gap: 6px; }
.inst-sort-nr { font-family: var(--font-h); font-size: 11px; font-weight: 700; color: var(--silver); width: 12px; text-align: right; flex-shrink: 0; }

/* ---- WATERMARK ---- */
.watermark-footer {
    text-align: center;
    font-size: 11px;
    color: var(--slt);
    padding: 16px 0 8px;
    letter-spacing: 0.04em;
    user-select: none;
}
.watermark-footer a { color: var(--slt); text-decoration: underline; text-underline-offset: 2px; }
.watermark-footer a:hover { color: var(--red); }

/* ---- AFDRUKKEN ---- */
@media print {
    .twrap, .filters, .swrap, header, .sort-bar { display: none !important; }
    body::after {
        content: "Deze pagina kan niet worden afgedrukt.";
        display: block;
        text-align: center;
        margin-top: 100px;
        font-size: 18px;
        color: #333;
    }
}
.inst-select {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--fb);
    font-size: 13px;
    padding: 7px 10px;
    outline: none;
    cursor: pointer;
}
.inst-select:focus { border-color: var(--red); }

/* Wachtwoord rij */
.inst-input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-family: var(--fb);
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
    transition: border-color .15s;
}
.inst-input:focus { border-color: var(--red); }
.inst-pw-wrap { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; width: 320px; }
.inst-pw-wrap .field-pw-wrap { position: relative; display: flex; align-items: center; }
.inst-pw-wrap .field-pw-wrap .inst-input { padding-right: 36px; }
.pw-toggle-sm {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 36px; background: none; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--silver);
}
.pw-toggle-sm:hover { color: var(--text); }
.pw-toggle-sm svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Opslaan knop */
.inst-save { text-align: right; margin-top: 8px; }
.inst-save button {
    background: var(--red);
    color: #fff;
    border: none;
    font-family: var(--fh);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 10px 28px;
    cursor: pointer;
    transition: background .2s;
}
.inst-save button:hover { background: var(--red-d); }

/* ── Inline-cleanup utilities ── */
.footer-note a { color: inherit; text-decoration: none; }
.btn-block { display: block; text-align: center; margin-top: 10px; }
.login-form-footer { text-align: right; margin-top: 10px; }
.field-onthoud { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.onthoud-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #8a9ab0; cursor: pointer; user-select: none; }
.onthoud-label input[type="checkbox"] { accent-color: var(--red); cursor: pointer; }
.label-opt { font-weight: 300; text-transform: none; letter-spacing: 0; }
.login-wrap-sm { max-width: 520px; }
.login-wrap-lg { max-width: 760px; }
.voorwaarden-tekst { font-size: 14px; color: #c8d4e0; line-height: 1.7; margin-bottom: 28px; }
.vw-scroll { max-height: 55vh; overflow-y: auto; margin-bottom: 24px; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
.vw-scroll::-webkit-scrollbar { width: 5px; }
.vw-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.vw-article { font-size: 13.5px; color: #b8c8db; line-height: 1.75; }
.vw-article h2 { font-family: var(--fh); font-size: 15px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 6px; }
.vw-article h2:first-child { margin-top: 0; }
.vw-article p { margin: 0 0 10px; }
.vw-article ol, .vw-article ul { margin: 0 0 10px; padding-left: 20px; }
.vw-article ol li, .vw-article ul li { margin-bottom: 5px; }
.vw-article a { color: var(--red); text-decoration: none; }
.vw-article a:hover { text-decoration: underline; }
.vw-article strong { color: #d8e4f0; font-weight: 600; }
.vw-pending { background: rgba(242,126,63,.08); border: 1px solid rgba(242,126,63,.25); border-radius: 6px; padding: 14px 16px; color: #b8c8db; }
.vw-fade { position: relative; }
.vw-fade::after { content: ''; position: absolute; bottom: 0; left: 0; right: 8px; height: 36px; background: linear-gradient(transparent, #234569); pointer-events: none; border-radius: 0 0 4px 4px; }
.vw-meta { font-size: 12px; color: #5a7a9a; margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 14px; }
.vw-meta a { color: #5a7a9a; text-decoration: underline; }
.inst-row-top { align-items: flex-start; }
.inst-row-top .inst-row-info { padding-top: 7px; }
.inst-row-groephead { border-bottom: none; padding-bottom: 4px; }
.inst-row-groephead .inst-row-label { font-weight: 600; }
.inst-row-sub { padding-left: 16px; }
.fg-grow { flex: 2; }
.fg-auto { flex: 0 0 auto; }
.inst-del-btn { background: #b91c1c; color: #fff; border: 1px solid #991b1b; border-radius: 4px; padding: 8px 16px; font-size: 13px; font-family: var(--fh); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.inst-del-btn:hover { background: #991b1b; }

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 768px) {
    /* Oranje balk weg op mobiel */
    body::before { display: none; }

    /* Header */
    header { height: auto; min-height: 48px; flex-wrap: wrap; padding: 10px 16px; gap: 8px; margin-left: 0; }
    .brand { font-size: 17px; }
    .hnav { gap: 14px; }
    .huser { display: none; }

    /* Main */
    main { padding: 14px; }
    .ptitle { font-size: 20px; }

    /* Zoekbalk: kleinere tekst zodat placeholder past */
    .sinput { font-size: 12px; }

    /* Filters: 6-kol grid — L/B op rij1, D/Zoek op rij2, kwal/enkv/cert op rij3, keur/herk/branch op rij4 */
    .filters { grid-template-columns: repeat(6, 1fr); padding: 10px 12px; }
    .filters > *:nth-child(-n+3) { grid-column: span 3; }
    .fg-span2 { grid-column: span 3; }
    .fg.kwal-enkv-row { display: contents; }
    .kwal-cell { grid-column: span 3; }
    .enkv-cell { grid-column: span 1; }
    .fg-sub { display: contents; }
    .fg-sub > * { grid-column: span 2; }
    .fa { grid-column: span 3; width: 100%; }
    .fa .btn, .fa .bto { flex: 1 1 0; justify-content: center; min-width: 0; }
    .fg-span-end { grid-column: auto; }

    /* Resultaten teller */
    .rcnt { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rcnt-knoppen { flex-wrap: wrap; width: 100%; }
    .rcnt-knoppen .btn,
    .rcnt-knoppen .bto,
    .rcnt-knoppen .ranking-toggle { flex: 1 1 0; min-width: 0; justify-content: center; }

    /* Tabel: 2-rijen mobiel layout */
    .twrap { overflow: hidden; }

    .thead, .rh {
        display: flex;
        flex-wrap: wrap;
        min-width: 0;
        padding: 0;
    }

    /* Rij 1: Aantal | Lengte | Breedte | Dikte */
    .thead > *:nth-child(-n+4),
    .rh   > *:nth-child(-n+4) {
        flex: 1 1 25%;
        min-width: 0;
        padding: 8px 10px 4px;
    }

    /* Rij 2: Kwaliteit — neemt beschikbare breedte */
    .thead > *:nth-child(5),
    .rh   > *:nth-child(5) {
        flex: 1 1 auto;
        min-width: 0;
        padding: 4px 10px 10px;
    }

    /* Rij 2: Herkomst badge */
    .thead > *:nth-child(6),
    .rh   > *:nth-child(6) {
        flex: 0 0 auto;
        padding: 4px 10px 10px;
        text-align: left;
    }

    /* Rij 2: Chevron */
    .thead > *:nth-child(7),
    .rh   > *:nth-child(7) {
        flex: 0 0 32px;
        padding: 4px 6px 10px;
        text-align: center;
    }

    /* Thead: centrering van herkomst ongedaan maken op mobile */
    .thead div:nth-child(6) { text-align: left; }

    /* Suggestie banner */
    .suggestie-opties { flex-direction: column; }
    .suggestie-optie { width: 100%; }
}

@media (max-width: 480px) {
    /* Header */
    header { padding: 10px 12px; }
    .brand { font-size: 15px; }
    .hlink { display: none; }

    /* Main */
    main { padding: 10px; }

    /* Filters: 1 kolom */
    .fg { flex: 1 1 100%; }

    /* Login */
    .card { padding: 28px 20px; }
    .login-wrap { padding: 16px; }
    .brand-name { font-size: 22px; }
}

/* =============================================================
   Mobiele verbeteringen
   ============================================================= */

.nav-hamburger  { display: none; }
.nav-sluit      { display: none; }
.filters-toggle { display: none; }

@media (max-width: 768px) {
    /* Aantal kolom compacter — kolommen 2-4 behouden 25% basis voor correcte wrap */
    .thead > *:nth-child(1),
    .rh   > *:nth-child(1) { flex: 0 0 64px; }
    /* Kwaliteit krimpt en toont ellipsis zodat herkomst+pijl altijd op dezelfde regel blijven */
    .thead > *:nth-child(5),
    .rh   > *:nth-child(5) { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }
    /* Herkomst rechts uitlijnen; pijltje volgt automatisch */
    .thead > *:nth-child(6),
    .rh   > *:nth-child(6) { margin-left: auto; }
}

@media (max-width: 480px) {
    /* Hamburger knop */
    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: rgba(255,255,255,.7);
        padding: 6px;
        flex-shrink: 0;
    }

    /* Nav: verborgen op mobiel, volledig scherm als overlay wanneer open */
    .hnav { display: none; }
    .hnav.open {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        z-index: 500;
    }
    .hnav.open .hlink {
        display: block;
        font-size: 16px;
        letter-spacing: .06em;
        color: rgba(255,255,255,.8);
        padding: 11px 36px;
        text-align: center;
    }
    .hnav.open .hlink:hover { color: #fff; }
    .hnav .himport, .hnav .hnav-divider { display: none; }

    /* Sluitknop in overlay */
    .nav-sluit {
        display: flex;
        position: absolute;
        top: 14px; right: 14px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: rgba(255,255,255,.45);
        padding: 8px;
    }
    .nav-sluit:hover { color: #fff; }
    .nav-sluit svg { width: 22px; height: 22px; }

    /* Filters toggle knop */
    .filters-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        background: var(--card);
        border: 1px solid var(--border);
        padding: 0 14px;
        height: 40px;
        font-family: var(--fh);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--textlt);
        cursor: pointer;
        margin-bottom: 8px;
    }
    .filters-toggle svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; color: var(--slt); }
    .filters-toggle.open svg { transform: rotate(180deg); }
    .filters-toggle.actief { color: var(--red); }

    .filters-wrap         { display: none; }
    .filters-wrap.open    { display: block; }

    /* Certificaattype knoppen passen in compacte kolom */
    .cert-btn { padding: 0 11px; font-size: 11px; }
    .cert-toggle { gap: 3px; }

}

/* ---- IFRAME CONTEXT ---- */
body.in-iframe { min-height: 0; }
body.in-iframe::before { display: none; }
body.in-iframe.login-body::after { display: none; }
body.in-iframe .brand { display: none; }
body.in-iframe header { justify-content: flex-end; margin-left: 0; }
body.in-iframe main { padding-top: 12px; padding-bottom: 48px; }
