/* Shapovalov Portaal – stijl */
:root {
  --blauw: #6495ED;
  --blauw-licht: #EEF2FB;
  --blauw-tekst: #1E3F86;
  --link: #2F5BB7;
  --zwart: #111318;
  --tekst: #2B303A;
  --tekst-zacht: #555B66;
  --rand: #E3E6EE;
  --rand-zacht: #EDF0F5;
  --grond: #F4F6FB;
  --oranje: #F5A524;
  --rood: #B42318;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--grond); color: var(--zwart); font-family: 'Barlow', system-ui, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--zwart); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { padding: 48px; text-align: center; color: var(--tekst-zacht); }
.cond { font-family: 'Barlow Condensed', sans-serif; }

/* ---------- kop ---------- */
.top { position: relative; background: var(--blauw); padding: 0 20px; z-index: 30; }
.top-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.top-deco::before { content: ''; position: absolute; right: -40px; top: -60px; width: 150px; height: 150px; border-radius: 50%; background: var(--zwart); }
.top-deco::after { content: ''; position: absolute; right: 180px; bottom: -22px; width: 80px; height: 40px; border-radius: 80px 80px 0 0; background: var(--zwart); }
.top-in { position: relative; max-width: 1392px; margin: 0 auto; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wm { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: .08em; color: var(--zwart); }
.wm2 { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .08em; color: #0B1020; }
.user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.user-btn:hover { background: var(--blauw-licht); }
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--zwart); color: #fff; font-size: 12px; font-weight: 700; }
.av.blauw { background: var(--blauw); color: #0B1020; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 6px; border-radius: 12px; border: 1px solid var(--rand); background: #fff; box-shadow: 0 10px 28px rgba(17, 19, 24, .16); display: flex; flex-direction: column; gap: 2px; z-index: 40; }
.menu-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--rand-zacht); margin-bottom: 4px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--tekst); font-size: 14px; font-weight: 600; text-align: left; }
.menu-item:hover { background: var(--blauw-licht); color: var(--zwart); }
.menu-item.gevaar { color: var(--rood); }
.menu-item.gevaar:hover { background: #FDECEA; }

/* ---------- menu ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--rand); padding: 0 20px; }
.nav-in { max-width: 1392px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; }
.nav-item { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #3D4350; font-size: 16px; font-weight: 600; white-space: nowrap; }
.nav-item:hover { color: var(--zwart); }
.nav-item.actief { color: var(--zwart); border-bottom-color: var(--zwart); }
.teller { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--blauw-licht); color: var(--blauw-tekst); }
.nav-item.actief .teller { background: var(--zwart); color: #fff; }
.teller.nieuw { background: var(--oranje); color: #1A1205; }

/* ---------- indeling ---------- */
.layout { max-width: 1440px; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.titelrij { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.h1 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 700; line-height: 1.1; }
.zacht { font-size: 14px; color: var(--tekst-zacht); }
.uitleg { margin: 0; font-size: 14px; color: #3D4350; }
.doos { border-radius: 12px; overflow: hidden; border: 1px solid var(--rand); background: #fff; }
.leeg { margin: 0; padding: 24px 14px; text-align: center; font-size: 14px; color: var(--tekst-zacht); }

/* ---------- taakrijen ---------- */
.rij { display: flex; align-items: center; gap: 10px; padding: 2px 8px 2px 14px; border-top: 1px solid var(--rand-zacht); background: #fff; }
.rij:first-child { border-top: 0; }
.rij:hover { background: #F8FAFE; }
.rij.gekozen { background: var(--blauw-licht); box-shadow: inset 3px 0 0 var(--blauw); }
.rij-knop { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 46px; padding: 4px 0; border: 0; background: transparent; text-align: left; }
.rij-vast { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 46px; padding: 4px 0; }
.rij-titel { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--zwart); }
.rij-knop:hover .rij-titel { color: var(--link); }
.rij-meta { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 1.3; color: var(--tekst-zacht); }
.rij.klaar .rij-titel { text-decoration: line-through; color: #6B7280; }
.te-laat { color: var(--rood); font-weight: 600; }
.vrij { color: var(--blauw-tekst); font-weight: 700; }
.datum { flex: none; width: 76px; font-size: 13px; font-weight: 600; color: #3D4350; }
.datum.te-laat { color: var(--rood); }
.st-knop { flex: none; display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; }
.pil { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-todo { background: #E6E9F0; color: var(--tekst); }
.st-doing { background: var(--blauw); color: #0B1020; }
.st-blocked { background: var(--oranje); color: #1A1205; }
.st-done { background: var(--zwart); color: #fff; }
.emmer { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; border-top: 1px solid var(--rand-zacht); background: #F8FAFE; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3D4350; }
.emmer:first-child { border-top: 0; }
.emmer.te-laat { color: var(--rood); }

/* ---------- knoppen ---------- */
.knop { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 16px; border: 0; border-radius: 8px; background: var(--zwart); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.knop:hover { background: #2B303A; }
.knop:disabled { opacity: .6; cursor: default; }
.knop.groot { min-height: 48px; font-size: 16px; width: 100%; }
.knop-licht { min-height: 36px; padding: 4px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--link); font-size: 13px; font-weight: 600; white-space: nowrap; }
.knop-licht:hover { background: var(--blauw-licht); }
.knop-rood { min-height: 36px; padding: 4px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--rood); font-size: 13px; font-weight: 600; white-space: nowrap; }
.knop-rood:hover { background: #FDECEA; }
.claim { flex: none; min-height: 32px; padding: 2px 12px; border-radius: 999px; border: 2px solid var(--zwart); background: #fff; color: var(--zwart); font-size: 13px; font-weight: 700; white-space: nowrap; }
.claim:hover { background: var(--zwart); color: #fff; }
.claim-groot { flex: none; min-height: 40px; padding: 4px 16px; border-radius: 8px; border: 0; background: var(--zwart); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.claim-groot:hover { background: #2B303A; }

/* ---------- velden ---------- */
.veld { display: flex; flex-direction: column; gap: 4px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3D4350; }
.inp { min-height: 40px; width: 100%; padding: 6px 10px; border: 1px solid #C7CDD9; border-radius: 8px; background: #fff; color: var(--zwart); font-size: 14px; }
.inp.groot { min-height: 48px; font-size: 16px; border-width: 2px; border-radius: 10px; }
.invoer { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: #fff; border: 2px solid var(--blauw); }
.invoer-rij { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fout { margin: 0; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--rood); }
.hint { margin: 0; padding: 0 4px; font-size: 13px; color: var(--tekst-zacht); }

/* ---------- onderdelen + filters ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 12px; border-radius: 999px; border: 1px solid #D5DAE5; background: #fff; color: var(--tekst); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tab:hover { border-color: var(--blauw); }
.tab.actief { background: var(--zwart); border-color: var(--zwart); color: #fff; }
.tab-n { font-size: 12px; opacity: .75; }
.filters { flex: 1 1 220px; max-width: 100%; background: #fff; border-radius: 12px; border: 1px solid var(--rand); padding: 10px 14px 12px; }
.filters > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 36px; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: '▾'; font-size: 14px; color: var(--tekst-zacht); }
.filters[open] > summary::after { content: '▴'; }
.filter-groep { display: flex; flex-direction: column; margin-top: 8px; }
.filter-titel { margin: 0; padding: 4px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3D4350; }
.facet { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; color: var(--tekst); cursor: pointer; }
.facet input { width: 16px; height: 16px; margin: 0; accent-color: var(--zwart); }
.facet-n { margin-left: auto; font-size: 12px; color: var(--tekst-zacht); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 10px; border-radius: 999px; border: 0; background: var(--zwart); color: #fff; font-size: 13px; font-weight: 600; }
.schakel { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: #fff; border: 1px solid #D5DAE5; }
.schakel button { min-height: 36px; padding: 4px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--tekst); font-size: 13px; font-weight: 600; }
.schakel button.actief { background: var(--zwart); color: #fff; }

/* ---------- bord ---------- */
.bord-wrap { overflow-x: auto; }
.bord { min-width: 760px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kolom { display: flex; flex-direction: column; gap: 8px; }
.kolom-kop { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kaart { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--rand); }
.kaart.gekozen { border-color: var(--blauw); box-shadow: 0 0 0 2px var(--blauw); }
.kaart .rij-knop { min-height: 0; padding: 0; }
.kaart .rij-titel, .kaart .rij-meta { white-space: normal; }
.kaart.klaar .rij-titel { text-decoration: line-through; color: #6B7280; }
.kaart-voet { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kolom-leeg { margin: 0; padding: 10px; border: 1px dashed #C7CDD9; border-radius: 10px; text-align: center; font-size: 13px; color: var(--tekst-zacht); }

/* ---------- paneel ---------- */
.paneel { flex: 1 1 300px; max-width: 100%; background: #fff; border-radius: 12px; border: 2px solid var(--zwart); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.paneel-kop { display: flex; align-items: center; justify-content: space-between; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.seg button { min-height: 40px; padding: 4px 8px; border-radius: 8px; border: 1px solid #D5DAE5; background: #fff; color: var(--tekst); font-size: 13px; font-weight: 600; }
.seg button.actief.sb-todo { background: #E6E9F0; border-color: var(--tekst); }
.seg button.actief.sb-doing { background: var(--blauw); border-color: #0B1020; color: #0B1020; }
.seg button.actief.sb-blocked { background: var(--oranje); border-color: #1A1205; color: #1A1205; }
.seg button.actief.sb-done { background: var(--zwart); border-color: var(--zwart); color: #fff; }
.twee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.paneel-voet { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--rand-zacht); }

/* ---------- melding ---------- */
.melding { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--zwart); color: #fff; font-size: 14px; }
.melding.fout-melding { background: var(--rood); }
.melding .knop-licht { color: #C9D8F8; }
.melding .knop-licht:hover { background: rgba(255, 255, 255, .1); }

/* ---------- formulierkaarten ---------- */
.kaartvak { max-width: 560px; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--rand); background: #fff; }
.rol { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border-radius: 999px; background: var(--blauw-licht); color: var(--blauw-tekst); font-size: 12px; font-weight: 600; }
.uitgenodigd { color: #8A5300; font-weight: 600; }
.gegevens { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--blauw-licht); border: 1px solid #C9D8F8; }
.gegevens code { font-size: 16px; font-weight: 700; background: #fff; padding: 2px 8px; border-radius: 6px; }

/* ---------- inloggen ---------- */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; background: #fff; }
.login-merk { position: relative; overflow: hidden; flex: 1 1 420px; min-height: 260px; background: var(--blauw); display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login-merk .spiraal { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; }
.login-merk::before { content: ''; position: absolute; left: -90px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: var(--zwart); }
.login-merk::after { content: ''; position: absolute; right: 40px; top: 0; width: 160px; height: 80px; border-radius: 0 0 80px 80px; background: var(--zwart); }
.login-merk .wm-groot { position: relative; font-family: 'Barlow Condensed', sans-serif; font-size: 52px; font-weight: 700; letter-spacing: .08em; line-height: 1; color: var(--zwart); }
.login-merk .wm-sub { position: relative; font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 500; letter-spacing: .12em; color: #0B1020; }
.login-merk p { position: relative; margin: 0; max-width: 340px; font-size: 19px; line-height: 1.4; font-weight: 500; color: #0B1020; }
.login-vak { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.login-form h1 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 44px; font-weight: 700; line-height: 1.05; }

/* ---------- gsm ---------- */
@media (max-width: 900px) {
  .layout { padding: 12px; gap: 12px; }
  .wm2 { display: none; }
  .user-name { display: none; }
  .datum { width: 60px; font-size: 12px; }
  .paneel { position: fixed; inset: 0; z-index: 50; border-radius: 0; border: 0; overflow-y: auto; padding: 16px; }
  .login-merk { padding: 28px; min-height: 200px; flex-basis: 100%; }
  .login-merk .spiraal { width: 260px; height: 260px; right: -40px; }
  .login-merk .wm-groot { font-size: 40px; }
  .login-merk p { display: none; }
}

/* ---- Soorten: taak, deadline, meeting ---- */
.soort { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 16px; vertical-align: 2px; }
.soort-deadline { background: var(--zwart); color: #fff; }
.soort-meeting { background: var(--blauw-licht); color: var(--blauw-tekst); box-shadow: inset 0 0 0 1px #C9D6F3; }
.pil.tijd { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blauw); color: var(--blauw-tekst); font-variant-numeric: tabular-nums; }
.pil.tijd.voorbij { box-shadow: inset 0 0 0 1.5px #C7CDD9; color: var(--tekst-zacht); }
.mini { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3D4350; }
.mini .inp { width: 100%; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ---- Checklist ---- */
.checklist { display: flex; flex-direction: column; border: 1px solid var(--rand); border-radius: 10px; overflow: hidden; }
.check-rij { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; border-top: 1px solid var(--rand-zacht); background: #fff; }
.check-rij:first-child { border-top: 0; }
.check-label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 42px; font-size: 14px; cursor: pointer; }
.check-label input { flex: none; width: 18px; height: 18px; accent-color: var(--zwart); }
.check-label span { overflow-wrap: anywhere; }
.check-rij.af .check-label span { text-decoration: line-through; color: #6B7280; }
.check-weg { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #8A909C; font-size: 14px; }
.check-weg:hover { background: #FDECEA; color: var(--rood); }
.check-nieuw { display: flex; gap: 6px; }
.check-teller { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--blauw-licht); color: var(--blauw-tekst); font-size: 12px; letter-spacing: 0; text-transform: none; }
