/* Strakkere schil (oktober 2026): zijbalk met groepjes en lijn-iconen, lichte bovenbalk met zoekveld,
   en Siv rechtsonder. Dit bestand wordt als laatste geladen en past alleen de schil en de afwerking aan;
   de inhoud van de pagina's blijft zoals die was. Kleuren: donkerblauw + groenblauw, verder niets. */
:root {
  --straal: 10px;
  --zij: 248px;
  --blauw-diep: #17303f;
  --schaduw: 0 1px 2px rgba(23, 48, 63, .06), 0 6px 20px -6px rgba(23, 48, 63, .10);
}

/* ---------- schil ---------- */
.schil { display: grid; grid-template-columns: var(--zij) minmax(0, 1fr); min-height: 100vh; }
.werkvlak { min-width: 0; display: flex; flex-direction: column; }
.zijbalk {
  background: var(--blauw); color: #d9e4eb; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 0 .65rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.zijbalk .merk {
  background: #fff; color: var(--blauw); margin: 0 -.65rem .35rem; padding: 1rem 1.2rem 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
}
.zijbalk .merk b { font-size: 1.65rem; letter-spacing: 0; }
.zijbalk .merk b::after { content: ""; display: block; width: 2.2rem; height: 3px; background: var(--koper); margin: .3rem 0 .35rem; }
.zijbalk .merk span { color: var(--zacht); opacity: 1; font-size: .66rem; font-weight: 600; }
.hoofdmenu { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 1px; margin: 0; }
.menu-kopje { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #8fa7b6; padding: .75rem .7rem .22rem; }
.hoofdmenu a {
  display: flex; align-items: center; gap: .65rem; padding: .36rem .7rem; border-radius: 7px;
  color: #d9e4eb; font-size: .92rem; font-weight: 500; text-decoration: none;
}
.hoofdmenu a .i { opacity: .85; }
.hoofdmenu a span { min-width: 0; }
.hoofdmenu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.hoofdmenu a.actief { background: var(--koper); color: #fff; font-weight: 600; }
.hoofdmenu a.actief .i { opacity: 1; }
.hoofdmenu a .teller { margin-left: auto; background: #fff; color: #075e59; font-weight: 700; }
.zijvoet { margin-top: auto; padding: 1.2rem .7rem 0; font-size: .74rem; line-height: 1.4; color: #8fa7b6; }

.bovenbalk { background: #fff; color: var(--inkt); border-bottom: 1px solid var(--lijn); position: sticky; top: 0; z-index: 20; }
.bovenbalk .binnen { max-width: none; margin: 0; padding: .6rem 2rem; gap: .75rem; }
.bovenbalk .merk { display: none; color: var(--blauw); }
.topzoek {
  flex: 1 1 auto; max-width: 520px; display: flex; align-items: center; gap: .5rem; margin-right: auto;
  background: var(--grond); border: 1px solid var(--lijn); border-radius: 8px; padding: 0 .75rem; color: var(--zacht);
}
.topzoek input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: .55rem 0; color: var(--inkt); font-size: .95rem; }
.topzoek:focus-within { border-color: #8fb2c8; background: #fff; box-shadow: 0 0 0 3px rgba(143, 178, 200, .25); }
.kop-melden { gap: .4rem; min-height: 38px; padding: .4rem .85rem; font-size: .9rem; border-radius: 8px; }
.zoek-knop { display: none; color: var(--blauw); padding: .5rem; border-radius: 8px; line-height: 0; }
.zoek-knop .i { width: 22px; height: 22px; }
.zoek-knop:hover, .zoek-knop:focus-visible { background: var(--grond); }
.gebruiker-knop {
  display: flex; align-items: center; gap: .6rem; background: none; border: 0; border-radius: 8px; padding: .25rem .5rem .25rem .25rem;
  color: var(--inkt); cursor: pointer; text-align: left;
}
.gebruiker-knop:hover, .gebruiker-knop:focus-visible { background: var(--grond); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--blauw); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .02em;
}
.gebruiker-knop .wie { display: flex; flex-direction: column; line-height: 1.2; }
.gebruiker-knop .wie b { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.gebruiker-knop .wie small { font-size: .74rem; color: var(--zacht); white-space: nowrap; }

.werkvlak main { max-width: 1240px; width: 100%; margin: 0; padding: 1.6rem 2rem 6rem; }

/* ---------- afwerking van de bouwstenen ---------- */
h1 { font-size: 1.75rem; }
.kop { align-items: center; margin-bottom: 1.1rem; }
.kaart { border-radius: var(--straal); box-shadow: var(--schaduw); }
.knop { border-radius: 8px; }
.uitleg { border-left: 0; border-radius: 8px; background: var(--blauw-licht); padding: .7rem .95rem; font-size: .93rem; }
.postvak-balk { top: 4.3rem; }
/* Op de pc staat het zoekveld al in de bovenbalk; op de telefoon blijft de zoekbalk op de startpagina staan. */
@media (min-width: 861px) { .start-zoek { display: none; } }

/* ---------- telefoon: geen zijbalk, wel de balk onderin ---------- */
@media (max-width: 860px) {
  .schil { display: block; }
  .zijbalk { display: none; }
  .bovenbalk { padding-top: env(safe-area-inset-top); }
  .bovenbalk .binnen { padding: .5rem .9rem; gap: .35rem; }
  .bovenbalk .merk { display: flex; margin-right: auto; }
  .bovenbalk .merk b { font-size: 1.25rem; }
  .bovenbalk .merk span { display: none; }
  .topzoek { display: none; }
  .zoek-knop { display: inline-flex; margin-left: 0; }
  .zoek-knop + .gebruiker-knop { margin-left: 0; }
  .gebruiker-knop { padding: .15rem; }
  .gebruiker-knop .wie { display: none; }
  .werkvlak main { padding: 1rem .9rem 6.5rem; }
  h1 { font-size: 1.4rem; }
  .onderbalk .ico { line-height: 0; padding: .1rem 0 .15rem; }
  .onderbalk .ico .i { width: 22px; height: 22px; }
  .onderbalk label.melden .ico { padding: .2rem .8rem; }
  .postvak-balk { top: 3.6rem; }
}
/* Meer-pagina op de telefoon: dezelfde iconen als de zijbalk */
.meer-menu .ico { display: inline-grid; place-items: center; color: var(--blauw); }
.meer-menu .ico .i { width: 20px; height: 20px; }

/* ---------- Siv: knop rechtsonder met wolkje ---------- */
.siv-knop {
  position: fixed; right: 1.25rem; bottom: 1.1rem; z-index: 26; display: flex; align-items: center; gap: .55rem;
  background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.siv-knop img {
  width: 58px; height: 58px; border-radius: 50%; background: #fff; object-fit: cover; object-position: 50% 12%;
  border: 2px solid #fff; box-shadow: 0 2px 4px rgba(23, 48, 63, .14), 0 10px 26px -6px rgba(23, 48, 63, .32); transition: transform .18s ease;
}
.siv-knop:hover img, .siv-knop:focus-visible img { transform: translateY(-2px) scale(1.04); }
.siv-knop:focus-visible { outline: 0; }
.siv-knop:focus-visible img { outline: 3px solid #8fb2c8; outline-offset: 2px; }
.siv-wolkje {
  position: relative; background: #fff; color: var(--blauw); font-weight: 600; font-size: .9rem; line-height: 1.25;
  padding: .55rem .85rem; border-radius: 14px 14px 4px 14px; border: 1px solid var(--lijn);
  box-shadow: 0 6px 20px -6px rgba(23, 48, 63, .22); white-space: nowrap;
}
.siv-knop.open .siv-wolkje { display: none; }
body:has([data-chat]) .siv-knop, body:has([data-chat]) .siv-paneel { display: none; }

/* ---------- Siv: de pop-up ---------- */
.siv-paneel {
  position: fixed; right: 1.25rem; bottom: 5.4rem; z-index: 27; width: min(400px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 7.5rem));
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--lijn); box-shadow: 0 2px 6px rgba(23, 48, 63, .08), 0 24px 60px -12px rgba(23, 48, 63, .35);
  animation: siv-op .2s cubic-bezier(.2, .8, .3, 1);
}
.siv-paneel.kort { height: auto; }
@keyframes siv-op { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .siv-paneel { animation: none; } .siv-knop img { transition: none; } }
.siv-kop { display: flex; align-items: center; gap: .65rem; padding: .7rem .7rem .7rem .9rem; background: var(--blauw); color: #fff; flex: none; }
.siv-kop img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: cover; object-position: 50% 12%; flex: none; }
.siv-naam { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; min-width: 0; }
.siv-naam b { font-family: Archivo, "Arial Narrow", system-ui, sans-serif; font-stretch: 88%; font-size: 1.1rem; }
.siv-naam small { font-size: .76rem; color: #b9cbd6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.siv-ikoon {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .4rem; border-radius: 8px; border: 0;
  background: none; color: #dfe9ef; cursor: pointer; text-decoration: none; font-size: .8rem; font-weight: 600;
}
.siv-ikoon:hover, .siv-ikoon:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.siv-ikoon.tekst { padding: 0 .6rem; white-space: nowrap; flex: none; }
.siv-lijf { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: .9rem .9rem .7rem; background: var(--grond); }
.siv-lijf > .chat-draad { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .1rem .15rem .6rem; scrollbar-width: thin; }
.siv-lijf > .chat-invoer { position: static; margin-top: .4rem; box-shadow: none; border-radius: 12px; flex: none; }
.siv-lijf .chat-ballon { font-size: .94rem; padding: .6rem .8rem; }
.siv-lijf .chat-bericht.ik .chat-ballon { max-width: 88%; }
.siv-voet { flex: none; background: #fff; border-top: 1px solid var(--lijn); padding: .45rem .6rem; }
.siv-idee {
  width: 100%; display: flex; align-items: center; gap: .55rem; background: none; border: 0; border-radius: 8px; padding: .55rem .5rem;
  color: var(--blauw); font-weight: 600; font-size: .9rem; cursor: pointer; text-align: left; min-height: 44px;
}
.siv-idee:hover, .siv-idee:focus-visible { background: var(--blauw-licht); }
.siv-idee .i { color: var(--koper); width: 20px; height: 20px; }

/* ---------- Siv: begroeting en gesprek ---------- */
.siv-welkom { display: flex; gap: 1.4rem; align-items: flex-end; padding: .4rem 0 .2rem; }
.siv-welkom img { width: 127px; height: auto; flex: none; filter: drop-shadow(0 10px 12px rgba(23, 48, 63, .18)); }
.siv-welkom-tekst { min-width: 0; padding-bottom: .4rem; }
.siv-welkom-tekst p { margin: 0 0 .5rem; }
.siv-groet { font-family: Archivo, "Arial Narrow", system-ui, sans-serif; font-stretch: 84%; font-weight: 800; font-size: 1.6rem; line-height: 1.15; color: var(--blauw); }
.siv-welkom .chat-leeg { margin-top: .8rem; }
/* Op de eigen pagina staat de begroeting in een kaart; in de pop-up is het vak zelf al de kaart. */
.chat .siv-welkom { background: #fff; border: 1px solid var(--lijn); border-radius: var(--straal); box-shadow: var(--schaduw); padding: 1.3rem 1.5rem 1.1rem; }
.siv-welkom.klein { gap: .9rem; align-items: flex-start; }
.siv-welkom.klein img { width: 76px; }
.siv-welkom.klein .siv-groet { font-size: 1.25rem; }
.siv-welkom.klein .siv-welkom-tekst { font-size: .93rem; padding-bottom: 0; }
.siv-welkom.klein .chat-voorbeeld { font-size: .88rem; padding: .5rem .7rem; }
.siv-uit { display: flex; gap: 1.1rem; align-items: center; }
.siv-uit img { width: 85px; height: auto; flex: none; }
.siv-uit p { margin: 0; }
.chat-bericht.assistent { flex-direction: row; align-items: flex-start; gap: .6rem; }
.chat-kop { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--lijn); object-fit: cover; object-position: 50% 12%; flex: none; margin-top: .15rem; }
.chat-lijf { min-width: 0; flex: 1 1 auto; }
.siv-lijf .chat-kop { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .siv-knop { right: .7rem; bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .siv-knop img { width: 52px; height: 52px; }
  .siv-wolkje { display: none; }
  .siv-knop.open { display: none; }
  .siv-paneel {
    right: 0; left: 0; bottom: 0; width: auto; height: min(86vh, 700px); border-radius: 18px 18px 0 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .siv-paneel.kort { height: auto; }
  .siv-welkom { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .siv-welkom img { width: 96px; }
  .siv-welkom.klein { flex-direction: row; }
  .siv-groet { font-size: 1.35rem; }
}
@media print { .zijbalk, .siv-knop, .siv-paneel { display: none !important; } .schil { display: block; } }

/* ---------- afwerking van de pagina's (ronde 2, oktober 2026) ---------- */
.hoofdmenu a .i { width: 18px; height: 18px; }
.topzoek .i, .kop-melden .i { width: 17px; height: 17px; }

/* Links: een dunne, rustige streep; pas vol als je hem aanwijst */
a { text-decoration-thickness: 1px; text-underline-offset: .17em; text-decoration-color: rgba(31, 58, 77, .3); }
a:hover { text-decoration-color: currentColor; }

/* Knoppen: één hoekradius en één hoogte, iconen lopen mee met de tekst */
.knop { border-radius: 8px; min-height: 40px; padding: .5rem .95rem; font-size: .93rem; }
.knop.klein { border-radius: 7px; min-height: 32px; padding: .25rem .65rem; font-size: .85rem; }
.knop.groot { min-height: 48px; }
.knop .i { width: 1.05em; height: 1.05em; }
a.knop.licht, button.knop.licht { border-color: #c5d1d9; }
.knop:focus-visible, .filters button:focus-visible { outline: 3px solid #8fb2c8; outline-offset: 2px; }
/* De knoppen "op de hoogte" horen bij elk punt, maar hoeven niet om aandacht te vragen */
.doorgeef-knoppen { gap: .1rem .25rem; margin-top: .35rem; }
.doorgeef-knoppen button.knop.licht { background: transparent; border-color: transparent; color: #075e59 !important; padding: .2rem .5rem; min-height: 32px; }
.doorgeef-knoppen button.knop.licht:hover { background: var(--koper-licht); }

/* Labels en filters: rechthoekiger, minder snoepjes */
.label { border-radius: 6px; padding: .12rem .45rem; font-size: .71rem; }
.filters { gap: .3rem; }
.filters button { border-radius: 8px; padding: .38rem .8rem; font-weight: 500; color: var(--inkt); }
.filters button:hover { border-color: #9fb3c0; }
.filters button.aan { font-weight: 600; }
.zoek, .veld input, .veld select, .veld textarea { border-radius: 8px; }

/* Kaarten, lijsten en tabellen */
.kaart { padding: 1.15rem 1.3rem; }
.kaart h2 { font-size: 1.22rem; }
.kaart h2 .i, .kaart h3 .i, .vs-blok h3 .i, .profiel-blok h3 .i, .map-kop .i, .vastgezet-ico .i { color: var(--koper); }
.tabel th { font-size: .72rem; letter-spacing: .07em; padding-bottom: .55rem; }
.tabel tbody tr:hover td { background: #f7fafb; }
.bestand-ico { color: #5d7483; line-height: 0; }
.gelukt .i { color: var(--groen); }
.klein .i, .koppeling .i { opacity: .8; }
.stip { display: inline-block; width: .62rem; height: .62rem; border-radius: 50%; margin-right: .4rem; background: #c3ced6; vertical-align: .04em; }
.stip.aan { background: var(--groen); }
.stip.af { background: var(--rood); }

/* Siv praat alleen op de startpagina uit zichzelf; elders pas als je hem aanwijst, zodat het wolkje niets afdekt */
.siv-wolkje { display: none; }
.siv-knop.praat .siv-wolkje, .siv-knop:hover .siv-wolkje, .siv-knop:focus-visible .siv-wolkje { display: block; }
.siv-knop.open .siv-wolkje { display: none; }
@media (max-width: 860px) {
  .siv-knop.praat .siv-wolkje, .siv-knop:hover .siv-wolkje, .siv-knop:focus-visible .siv-wolkje { display: none; }
  .knop { min-height: 44px; }
  .knop.klein { min-height: 36px; }
}
