/* instellingen.css: Instellingen in het nieuwe bureau, richting R1 Kobalt (golf 6, pakket I; bouwplan webapp §3.3, §5 #12–#14, §6.1).
   Bron: de proef vidimus-redesign/webapp-proef/richting-1/instellingen-beveiliging.html (+ gedeeld/structuur.css, richting-1/stijl.css).
   Alles onder html.m.bureau (de schil van pakket S); geen nieuwe kleuren: alleen --m-* en --b-*, of inkt, wit, kobalt en rood met
   doorzichtigheid. Geen hoofdletters, mono alleen voor tijden, sleutels en codes. Beweging alleen transform en opacity.
   Afwijking van de proef (reden): onder 1180 px wordt de sectienavigatie een uitklapmenu boven de inhoud, niet pas onder 760 px;
   in de proef op 1024 werden de tabellen te smal (namen en "app op telefoon" braken per woord). */

/* ── indeling: sectienavigatie links, inhoud rechts ─────────── */
html.m.bureau .i-inst { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 48px; align-items: start; }
html.m.bureau .i-nav { position: sticky; top: 20px; min-width: 0; }
html.m.bureau .i-nav-mobiel { display: none; }
html.m.bureau .i-ico { display: inline-flex; flex: none; }
html.m.bureau .i-zoek { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 12px; background: var(--b-vlak); color: var(--b-zacht); }
html.m.bureau .i-zoek:focus-within { box-shadow: inset 0 0 0 2px var(--m-kobalt); }
html.m.bureau .i-zoek input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--b-tekst); font: 400 14.5px/1.2 var(--m-f-tekst); outline: none; }
html.m.bureau .i-zoek input::-webkit-search-cancel-button { cursor: pointer; }
html.m.bureau .i-groep { margin: 18px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--b-zacht); }
html.m.bureau .i-groepen ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
html.m.bureau .i-groepen a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px; border-radius: 10px; font-size: 14.5px; line-height: 1.25; color: var(--b-tekst); text-decoration: none; transition: background-color var(--m-d-xs) var(--m-ease); }
html.m.bureau .i-groepen a:hover { background: var(--b-vlak); }
html.m.bureau .i-groepen a[aria-current="page"] { background: var(--b-tint); color: var(--m-kobalt); font-weight: 650; }
html.m.bureau .i-groepen a[aria-current="page"]::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-radius: 1.5px; background: var(--m-kobalt); }
html.m.bureau .i-groepen a .i-ico-uit { margin-left: auto; color: var(--b-zacht); opacity: .7; }
html.m.bureau .i-groepen .i-nav-onder { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--b-lijn); }
html.m.bureau .i-groepen a.gevaar { color: var(--m-rood); }
html.m.bureau .i-geen { margin: 14px 10px 0; font-size: 13.5px; color: var(--b-zacht); }

/* ── inhoud en blokken ───────────────────────────────────── */
html.m.bureau .i-inhoud { min-width: 0; max-width: 960px; }
html.m.bureau .i-sectie { display: grid; gap: 44px; }
html.m.bureau .i-sectie[hidden] { display: none; }
html.m.bureau .i-blok { min-width: 0; }
html.m.bureau .i-blok > .b-uitleg { max-width: 76ch; }
html.m.bureau .i-blok-kop-actie, html.m.bureau .b-blok-kop .b-knop { flex: none; }
html.m.bureau .i-sub { margin: 26px 0 6px; font: 650 17px/1.25 var(--m-f-tekst); color: var(--b-tekst); }
html.m.bureau .i-regel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; font-size: 14.5px; line-height: 1.45; }
html.m.bureau .i-regel-sub { display: block; flex-basis: 100%; font-size: 13.5px; color: var(--b-zacht); }
html.m.bureau .i-noot { margin: 10px 0 0; max-width: 76ch; font-size: 13.5px; line-height: 1.5; color: var(--b-zacht); }
html.m.bureau .i-noot a, html.m.bureau .i-melding a, html.m.bureau .i-leeg a, html.m.bureau .i-regel a:not(.b-tekstknop):not(.b-knop) { color: var(--m-kobalt); text-underline-offset: 3px; }
html.m.bureau .i-klein { margin: 0; font-size: 12.5px; color: var(--b-zacht); }
html.m.bureau .i-leeg { margin: 6px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--b-vlak); font-size: 14.5px; color: var(--b-zacht); }
html.m.bureau .i-melding { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--b-tint); font-size: 14px; line-height: 1.45; color: var(--b-tekst); overflow-wrap: anywhere; }
html.m.bureau .i-melding.fout { background: rgba(163, 32, 15, .07); color: var(--m-rood); }
html.m.bureau .i-melding[hidden] { display: none; }
html.m.bureau .i-st { font-size: 13px; }
html.m.bureau .i-rij-los { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; font-size: 14.5px; border-top: 1px solid var(--b-lijn); }
html.m.bureau .i-rij-los:first-child { border-top: 0; }
html.m.bureau .i-rij-los .b-tekstknop { margin-left: auto; }

/* laden: lijnen in de vorm van wat komt (geen beweging bij reduced motion; de schil zet animaties dan uit) */
html.m.bureau .i-laden { display: block; height: 14px; width: 72%; margin: 14px 0; border-radius: 4px; background: var(--b-vlak); list-style: none; animation: i-puls 1.4s var(--m-ease) infinite alternate; }
html.m.bureau .i-laden.kort { width: 46%; }
@keyframes i-puls { from { opacity: 1; } to { opacity: .45; } }

/* ── formulieren ─────────────────────────────────────────── */
html.m.bureau .i-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 760px; margin-top: 8px; }
html.m.bureau .i-form .breed, html.m.bureau .i-form-voet { grid-column: 1 / -1; }
html.m.bureau .i-form-voet { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
html.m.bureau .i-form-voet .i-noot { margin: 0; }
html.m.bureau .i-form-rij { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; margin-top: 12px; }
html.m.bureau .i-form-rij .i-veld { flex: 1 1 220px; max-width: 320px; }
html.m.bureau .i-veld { display: grid; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--b-tekst); }
html.m.bureau .i-veld small { font-weight: 400; color: var(--b-zacht); margin-left: 4px; }
html.m.bureau .i-veld input, html.m.bureau .iq-dag input, html.m.bureau .i-maand select { box-sizing: border-box; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--b-rand); background: var(--m-wit); color: var(--b-tekst); font: 400 15px/1.2 var(--m-f-tekst); transition: box-shadow var(--m-d-xs) var(--m-ease); }
html.m.bureau .i-veld input:hover, html.m.bureau .i-maand select:hover { box-shadow: inset 0 0 0 1.5px rgba(11, 15, 23, .32); }
html.m.bureau .i-veld input:focus-visible, html.m.bureau .iq-dag input:focus-visible, html.m.bureau .i-maand select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--m-kobalt); }
html.m.bureau .i-veld input[readonly] { background: var(--b-vlak); box-shadow: none; }
html.m.bureau .i-veld input.b-mono { letter-spacing: .06em; }
html.m.bureau .i-bestand { position: relative; cursor: pointer; }
html.m.bureau .i-schakel, html.m.bureau .iq-schakel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
html.m.bureau .i-schakel input, html.m.bureau .iq-schakel input { width: 20px; height: 20px; margin: 0; accent-color: var(--m-kobalt); }
html.m.bureau .i-drop { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--b-rand); font-size: 14.5px; color: var(--b-zacht); cursor: pointer; transition: background-color var(--m-d-xs) var(--m-ease), box-shadow var(--m-d-xs) var(--m-ease); }
html.m.bureau .i-drop:hover, html.m.bureau .i-drop[data-over="ja"] { background: var(--b-tint); box-shadow: inset 0 0 0 1.5px var(--m-kobalt); color: var(--m-kobalt); }
html.m.bureau .i-drop:focus-within { box-shadow: inset 0 0 0 2px var(--m-kobalt); }

/* ── gegevens, mandaat, akkoorden, rollen ────────────────── */
html.m.bureau .i-kenmerk { display: grid; gap: 4px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--b-vlak); }
html.m.bureau .i-kenmerk a { color: var(--m-kobalt); font-size: 14px; overflow-wrap: anywhere; text-underline-offset: 3px; }
html.m.bureau .i-kenmerk .i-noot { margin-top: 2px; }
html.m.bureau .i-stappen { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
html.m.bureau .i-stap { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-top: 18px; border-top: 1px solid var(--b-lijn); }
html.m.bureau .i-stap b { font-size: 16px; }
html.m.bureau .i-stap p { margin: 6px 0 0; max-width: 72ch; font-size: 14.5px; line-height: 1.5; }
html.m.bureau .i-stap .b-acties { margin-top: 12px; }
html.m.bureau .i-nr { display: inline-grid; place-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--b-tint); color: var(--m-kobalt); font: 600 14px/1 var(--m-f-mono); }
html.m.bureau .i-lijst { margin: 8px 0 0; padding: 0; list-style: none; }
html.m.bureau .i-lijst > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 13px 4px; border-top: 1px solid var(--b-lijn); font-size: 14.5px; }
html.m.bureau .i-lijst > li > span:not(.m-status) { color: var(--b-zacht); font-size: 13.5px; }
html.m.bureau .i-lijst + .b-acties { margin-top: 18px; }   /* W-2: de lijst van AI-sleutels boven Beheren */
html.m.bureau .i-akk { grid-template-columns: minmax(0, 1fr) auto auto !important; }
html.m.bureau .i-akk b { display: block; }
html.m.bureau .i-akk-links { display: flex; gap: 14px; }
html.m.bureau .i-rollen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
html.m.bureau .i-rollen > div { padding: 16px 18px; border-radius: 16px; background: var(--b-vlak); }
html.m.bureau .i-rollen dt { font-weight: 650; font-size: 15px; }
html.m.bureau .i-rollen dd { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--b-zacht); }

/* ── tabellen (rijen als raster) ─────────────────────────── */
html.m.bureau .i-tabel { margin-top: 6px; }
html.m.bureau .i-tr { display: grid; align-items: center; gap: 16px; padding: 12px; font-size: 14.5px; border-top: 1px solid var(--b-lijn); }
html.m.bureau .i-tr > * { min-width: 0; }
html.m.bureau .i-tkop { padding-top: 8px; padding-bottom: 8px; border-top: 0; font-size: 12.5px; font-weight: 600; color: var(--b-zacht); }
html.m.bureau .i-tr small { margin-left: 6px; font-size: 12.5px; color: var(--b-zacht); }
html.m.bureau .i-t-2fa .i-tr { grid-template-columns: minmax(0, 1.4fr) 96px 130px minmax(0, 1fr) 150px; }
html.m.bureau .i-t-2fa .i-tr > :first-child { display: flex; align-items: center; gap: 0; }
html.m.bureau .i-naam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m.bureau .i-avatar { flex: none; display: inline-grid; place-content: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 7px; background: var(--b-tint); color: var(--m-kobalt); font: 600 10.5px/1 var(--m-f-tekst); letter-spacing: .02em; }
html.m.bureau .i-t-sleutels .i-tr { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 72px minmax(0, 1.1fr) 90px; }
html.m.bureau .i-tr-bevestig > [role="cell"] { display: block; }
html.m.bureau .i-t-sleutels .i-tr[data-bevestig="ja"] { background: rgba(163, 32, 15, .05); border-top-color: transparent; border-radius: 14px 14px 0 0; }
html.m.bureau .i-sk-naam > span { display: inline-flex; align-items: center; gap: 8px; }
html.m.bureau .i-sk-naam .i-ico { color: var(--b-zacht); }
html.m.bureau .i-tr .b-tekstknop, html.m.bureau .i-tr small { justify-self: start; }

/* ── een bevestiging ter plaatse (V3): de vraag, het gevolg, de rode knop ── */
html.m.bureau .i-bevestig { display: grid; gap: 8px; margin-top: 10px; padding: 16px 20px 18px; border-radius: 14px; background: rgba(163, 32, 15, .05); font-size: 14px; line-height: 1.5; color: var(--b-tekst); animation: i-in var(--m-d-m) var(--m-ease); }
html.m.bureau .i-t-sleutels .i-bevestig { border-radius: 0 0 14px 14px; margin-top: 0; }
html.m.bureau .i-bevestig p { margin: 0; max-width: 72ch; }
html.m.bureau .i-bevestig b { color: var(--m-rood); }
html.m.bureau .i-bevestig .b-acties { margin-top: 6px; }
html.m.bureau .i-bevestig[hidden] { display: none; }
@keyframes i-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── tweestaps, herstelcodes ─────────────────────────────── */
html.m.bureau .i-paneel { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; padding: 18px; border-radius: 16px; background: var(--b-vlak); }
html.m.bureau .i-paneel-smal { grid-template-columns: minmax(0, 1fr); }
html.m.bureau .i-paneel p { margin: 0 0 12px; max-width: 64ch; font-size: 14px; line-height: 1.5; }
html.m.bureau .i-paneel .i-veld { max-width: 260px; margin-bottom: 12px; }
html.m.bureau .i-qr { width: 168px; height: 168px; border-radius: 12px; background: var(--m-wit); box-shadow: inset 0 0 0 1px var(--b-lijn); }
html.m.bureau .i-herstel { padding-top: 14px; border-top: 1px solid var(--b-lijn); color: var(--b-zacht); }
html.m.bureau .i-herstel-zin { min-width: 0; color: var(--b-tekst); }
html.m.bureau .i-herstel-punt { display: inline-flex; vertical-align: middle; }
html.m.bureau .i-herstel .b-tekstknop { margin-left: auto; }
html.m.bureau .i-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px; margin: 4px 0 14px; padding: 16px 20px; list-style: none; border-radius: 12px; background: var(--m-wit); box-shadow: inset 0 0 0 1px var(--b-lijn); font-size: 16px; letter-spacing: .04em; }
html.m.bureau .i-bevestig-codes { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-top: 14px; }
html.m.bureau .i-bevestig-codes .i-veld { flex: 1 1 260px; max-width: 420px; margin: 0; }
html.m.bureau .i-bevestig-codes .i-melding { flex-basis: 100%; }

/* ── aangemeld ───────────────────────────────────────────── */
html.m.bureau .i-sessies { margin: 4px 0 0; padding: 0; list-style: none; }
html.m.bureau .i-sessies li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--b-lijn); font-size: 14.5px; }
html.m.bureau .i-sessies small { display: block; font-size: 13px; color: var(--b-zacht); }
html.m.bureau .i-sessie-ico { color: var(--b-zacht); }
html.m.bureau .i-sessies + .i-rij-los { border-top: 1px solid var(--b-lijn); }
html.m.bureau .i-sessies li.i-li-bevestig { display: block; padding: 0 0 12px; border-top: 0; }
html.m.bureau .i-dit-toestel { display: grid; justify-items: start; gap: 8px; }

/* ── vertrouwelijke stromen ──────────────────────────────── */
html.m.bureau .i-laagb { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; background: var(--b-vlak); font-size: 14.5px; }
html.m.bureau .i-laagb > .i-ico { color: var(--m-kobalt); padding-top: 1px; }
html.m.bureau .i-laagb p { margin: 0 0 4px; }

/* ── inzage-logboek ──────────────────────────────────────── */
html.m.bureau .i-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 8px 0 4px; }
html.m.bureau .i-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html.m.bureau .i-chip { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--b-vlak); color: var(--b-tekst); font: 500 14px/1 var(--m-f-tekst); cursor: pointer; transition: background-color var(--m-d-xs) var(--m-ease), color var(--m-d-xs) var(--m-ease); }
html.m.bureau .i-chip:hover { background: var(--b-tint); }
html.m.bureau .i-chip[aria-pressed="true"] { background: var(--m-inkt); color: var(--m-wit); }
html.m.bureau .i-maand select { width: auto; min-width: 190px; height: 38px; padding-right: 30px; }
html.m.bureau .i-t-log .i-tr { grid-template-columns: 64px 180px minmax(0, 1fr) 150px; }
html.m.bureau .i-t-log.kort .i-tr { grid-template-columns: 96px 160px minmax(0, 1fr) 140px; }
html.m.bureau .i-t-log button.i-tr { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; background: transparent; color: var(--b-tekst); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; transition: background-color var(--m-d-xs) var(--m-ease); }
html.m.bureau .i-t-log button.i-tr:hover { background: var(--b-vlak); }
html.m.bureau .i-t-log button.i-tr[aria-expanded="true"] { background: var(--b-tint); box-shadow: inset 3px 0 0 var(--m-kobalt); }
html.m.bureau .i-log-wie, html.m.bureau .i-log-waar { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.m.bureau .i-log-waar { color: var(--b-zacht); }
html.m.bureau .i-log-wat { display: flex; align-items: baseline; gap: 10px; }
html.m.bureau .i-log-wat > span:last-child { min-width: 0; overflow-wrap: anywhere; }
html.m.bureau .i-log-st { flex: none; width: 7px; height: 7px; border-radius: 1.5px; background: var(--m-kobalt); transform: translateY(-1px); }
html.m.bureau .i-log-st[data-soort="gedownload"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--m-kobalt); }
html.m.bureau .i-log-st[data-soort="server"] { background: transparent; outline: 1.5px dotted rgba(11, 15, 23, .45); outline-offset: -1.5px; }
html.m.bureau .i-dag { margin: 18px 0 2px; padding: 0 12px; font: 600 13px/1.3 var(--m-f-tekst); color: var(--b-zacht); }
html.m.bureau .i-dag:first-of-type { margin-top: 6px; }
html.m.bureau .i-log-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; padding: 14px 16px 18px 76px; background: var(--b-tint); animation: i-in var(--m-d-m) var(--m-ease); }
html.m.bureau .i-log-detail dl { display: grid; gap: 8px; margin: 0; }
html.m.bureau .i-log-detail dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 14px; }
html.m.bureau .i-log-detail dt { color: var(--b-zacht); }
html.m.bureau .i-log-detail dd { margin: 0; overflow-wrap: anywhere; }
html.m.bureau .i-log-detail a { color: var(--m-kobalt); }
html.m.bureau .i-tech summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--b-zacht); }
html.m.bureau .i-tech p { margin: 8px 0 0; font-size: 13px; overflow-wrap: anywhere; }
html.m.bureau .i-tech-los { margin-top: 18px; }
html.m.bureau .i-tech-los .b-acties { margin-top: 10px; }
html.m.bureau .i-log-n { flex: none; font: 600 12.5px/1 var(--m-f-mono); color: var(--b-zacht); }

/* ── insturen-QR (dezelfde ids als golf 5, insturen-qr.js) ── */
html.m.bureau .iq-rij { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: end; margin-top: 10px; }
html.m.bureau .iq-dag { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
html.m.bureau .iq-dag input { width: 7rem; }
html.m.bureau .iq-qr { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--b-lijn); }
html.m.bureau .iq-qr[hidden] { display: none; }
html.m.bureau .iq-qr img { width: 168px; height: 168px; border-radius: 12px; background: var(--m-wit); box-shadow: inset 0 0 0 1px var(--b-lijn); }
html.m.bureau .iq-qr-wat { display: grid; gap: 8px; min-width: 0; }
html.m.bureau .iq-url { margin: 0; font-size: 13px; overflow-wrap: anywhere; color: var(--b-zacht); }

/* ── account verwijderen ─────────────────────────────────── */
html.m.bureau .i-gevaar-blok .b-blok-kop h2 { color: var(--m-rood); }
html.m.bureau .i-gevaar-blok .i-form-rij .b-knop { flex: none; }

/* ── melding onderaan (toast) ────────────────────────────── */
html.m.bureau .i-toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; max-width: min(560px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 14px; background: var(--m-inkt); color: var(--m-wit); font: 500 14.5px/1.45 var(--m-f-tekst); display: flex; align-items: baseline; gap: 16px; pointer-events: none; box-shadow: 0 18px 40px -20px rgba(11, 15, 23, .7); transform: translate(-50%, 8px); opacity: 0; transition: transform var(--m-d-m) var(--m-ease), opacity var(--m-d-m) var(--m-ease); }
html.m.bureau .i-toast[data-zicht="ja"] { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
html.m.bureau .i-toast-x { flex: none; min-height: 32px; padding: 0 2px; border: 0; background: transparent; color: var(--m-wit); font: 600 14px/1 var(--m-f-tekst); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.m.bureau .i-toast-x[hidden] { display: none; }

/* ── tussenmaat (1024): de sectienavigatie als uitklapmenu boven de inhoud ── */
@media (max-width: 1180px) {
  html.m.bureau .i-inst { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  html.m.bureau .i-nav { position: static; }
  html.m.bureau .i-nav-mobiel { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 520px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--b-vlak); color: var(--b-tekst); font: 500 14.5px/1.3 var(--m-f-tekst); text-align: left; cursor: pointer; }
  html.m.bureau .i-nav-mobiel[aria-expanded="true"] .i-ico { transform: rotate(180deg); }
  html.m.bureau .i-nav-paneel { max-width: 520px; margin-top: 8px; padding: 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--b-lijn); }
  html.m.bureau .i-nav-paneel[data-open="nee"] { display: none; }
  html.m.bureau .i-inhoud { max-width: none; }
}

/* ── telefoon (390): tabellen worden kaarten van twee regels ── */
@media (max-width: 760px) {
  html.m.bureau .i-form { grid-template-columns: minmax(0, 1fr); }
  html.m.bureau .i-rollen { grid-template-columns: minmax(0, 1fr); }
  html.m.bureau .i-tkop { display: none; }
  html.m.bureau .i-tr { gap: 4px 12px; padding: 12px 4px; }
  html.m.bureau .i-t-2fa .i-tr { grid-template-columns: minmax(0, 1fr) auto; }
  html.m.bureau .i-t-2fa .i-tr > :nth-child(2) { display: none; }
  html.m.bureau .i-t-2fa .i-tr > :nth-child(4) { grid-column: 1; font-size: 13px; color: var(--b-zacht); }
  html.m.bureau .i-t-2fa .i-tr > :nth-child(5):empty { display: none; }
  html.m.bureau .i-t-sleutels .i-tr { grid-template-columns: minmax(0, 1fr) auto; }
  html.m.bureau .i-t-sleutels .i-tr > :nth-child(3) { display: none; }
  /* naam en Intrekken op de eerste regel, sleutel en laatst gebruikt eronder over de hele breedte */
  html.m.bureau .i-t-sleutels .i-tr > :nth-child(5) { grid-column: 2; grid-row: 1; }
  html.m.bureau .i-t-sleutels .i-tr > :nth-child(2), html.m.bureau .i-t-sleutels .i-tr > :nth-child(4) { grid-column: 1 / -1; font-size: 13px; }
  html.m.bureau .i-t-sleutels .i-tr > :nth-child(4) { color: var(--b-zacht); }
  html.m.bureau .i-t-log .i-tr, html.m.bureau .i-t-log.kort .i-tr { grid-template-columns: minmax(0, 1fr) auto; }
  html.m.bureau .i-t-log .i-tr > :nth-child(2) { justify-self: end; text-align: right; }
  html.m.bureau .i-t-log .i-tr > :nth-child(3) { grid-column: 1 / -1; font-size: 13.5px; }
  html.m.bureau .i-t-log .i-tr > :nth-child(4) { display: none; }
  html.m.bureau .i-log-detail { grid-template-columns: minmax(0, 1fr); padding-left: 16px; }
  html.m.bureau .i-log-detail dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  html.m.bureau .i-akk { grid-template-columns: minmax(0, 1fr) auto !important; }
  html.m.bureau .i-akk-links { grid-column: 1 / -1; }
  html.m.bureau .i-paneel, html.m.bureau .iq-qr { grid-template-columns: minmax(0, 1fr); }
  html.m.bureau .i-lijst > li { grid-template-columns: minmax(0, 1fr); }
  html.m.bureau .i-codes { grid-template-columns: minmax(0, 1fr); }
  html.m.bureau .i-maand select { min-width: 0; }
  html.m.bureau .i-filters { align-items: stretch; }
  html.m.bureau .i-toast { bottom: 16px; }
  /* aanraakdoel van 44 px voor de tekstknoppen in rijen en lijsten (Intrekken, Herinnering sturen, Ontkoppelen) */
  html.m.bureau .i-tr .b-tekstknop, html.m.bureau .i-sessies .b-tekstknop, html.m.bureau .i-herstel .b-tekstknop, html.m.bureau .i-rij-los .b-tekstknop { display: inline-flex; align-items: center; min-height: 44px; }
  html.m.bureau .i-nav-mobiel, html.m.bureau .i-nav-paneel { max-width: none; }
  /* sneltoetsen zijn op de telefoon verborgen (§3.5): de schakelaar ook */
  html.m.bureau .i-alleen-computer { display: none; }
}
