/* Huisstijl Datahuis (nieuwe site + prototypes). Wit, met paars > rood > oranje als accent. */
:root {
  --paars: #6d28d9;
  --rood: #e11d48;
  --oranje: #f97316;
  --verloop: linear-gradient(120deg, var(--paars), var(--rood) 55%, var(--oranje));
  --tekst: #1c1917;
  --tekst-zwak: #6b6460;
  --rand: #ece7e4;
  --vlak: #faf8f7;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--tekst);
       font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--paars); }
/* Breedte 2-6-2 (feedback eigenaar 30-09-2026): de inhoud is 60% van het scherm, maar nooit smaller dan
   1100px (dan zou hij op een laptop juist smaller worden) en op kleine schermen gewoon de volle breedte. */
.container { width: min(100%, max(60vw, 1100px)); margin: 0 auto; padding: 0 16px; }
header.pnav { border-bottom: 1px solid var(--rand); }
header.pnav .container { display: flex; align-items: center; justify-content: space-between;
                         gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--tekst); text-decoration: none; }
.label { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
         background: var(--vlak); border: 1px solid var(--rand); color: var(--tekst-zwak); }
.pnav-acties { display: flex; gap: 14px; align-items: center; font-size: .92rem; flex-wrap: wrap; }
main { padding: 32px 0 64px; }
h1 { font-size: 1.8rem; margin: 0 0 6px; }
.intro { color: var(--tekst-zwak); max-width: 70ch; margin: 0 0 24px; }
.kaart { border: 1px solid var(--rand); border-radius: 12px; padding: 20px; background: #fff; }
.uitgelicht { background: var(--verloop); color: #fff; border: 0; }
.tabel-scroll { overflow-x: auto; border: 1px solid var(--rand); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { background: var(--vlak); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.zwak { color: var(--tekst-zwak); font-size: .85rem; }
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.status-actief { background: #f3e8ff; color: var(--paars); }
.status-gepland { background: #ffedd5; color: #c2410c; }
.status-gepauzeerd, .status-afgewezen { background: var(--vlak); color: var(--tekst-zwak); }
.waarschuwing { color: var(--rood); font-weight: 600; }
button, .knop { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 10px 16px;
                background: var(--verloop); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.knop-rustig { background: #fff; color: var(--tekst); border: 1px solid var(--rand); }
textarea, input[type=text], input[type=email] { font: inherit; width: 100%; padding: 10px 12px;
  border: 1px solid var(--rand); border-radius: 8px; }
textarea { min-height: 120px; resize: vertical; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
.feedback { margin-top: 40px; display: grid; gap: 16px; }
.melding { padding: 10px 14px; border-radius: 8px; background: #f3e8ff; color: var(--paars); font-weight: 600; }
.fout { padding: 10px 14px; border-radius: 8px; background: #ffe4e6; color: var(--rood); font-weight: 600; }
.reactie { border-left: 3px solid var(--oranje); padding: 4px 0 4px 12px; }
.reactie p { margin: 4px 0; white-space: pre-wrap; }
.info { position: relative; display: inline-block; cursor: help; color: var(--paars); font-weight: 700;
        border: 1px solid var(--paars); border-radius: 50%; width: 1.15em; height: 1.15em; line-height: 1.05em;
        text-align: center; font-size: .75rem; margin-left: 4px; }
/* Vast t.o.v. het scherm (datahuis.js zet top/left), zodat een scrollende tabel de uitleg niet afsnijdt. */
.info .info-tekst { display: none; position: fixed; left: 0; top: 0;
        width: 260px; background: var(--tekst); color: #fff; font-weight: 400; font-size: .82rem; line-height: 1.4;
        padding: 8px 10px; border-radius: 8px; z-index: 10; text-align: left; }
.info:hover .info-tekst, .info:focus .info-tekst { display: block; }
.info-tekst em { display: block; opacity: .75; font-size: .72rem; margin-top: 4px; }

/* Categoriefilter (themafilter-macro) */
.tf { margin-bottom: 20px; padding: 16px 20px; }
.tf-kop { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
          gap: 8px; margin-bottom: 10px; font-size: .9rem; }
.tf-rij { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: start;
          padding: 8px 0; border-top: 1px solid var(--rand); }
.tf-groep { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
            color: var(--tekst-zwak); padding-top: 5px; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-chip { display: inline-flex; align-items: center; border-radius: 999px; background: var(--vlak);
           border: 1px solid var(--rand); font-size: .85rem; line-height: 1; transition: border-color .15s; }
.tf-chip a { text-decoration: none; color: var(--tekst); }
.tf-chip > a:first-child { padding: 6px 4px 6px 11px; display: inline-flex; align-items: center; gap: 6px; }
.tf-n { font-size: .72rem; font-weight: 700; color: #fff; background: var(--paars);
        border-radius: 999px; padding: 2px 7px; }
.tf-x { padding: 6px 9px 6px 3px; font-size: .72rem; color: var(--tekst-zwak) !important; opacity: 0; transition: opacity .15s; }
.tf-chip:hover { border-color: var(--paars); }
.tf-chip:hover .tf-x, .tf-x:focus { opacity: 1; }
.tf-x:hover { color: var(--rood) !important; }
.tf-chip.gekozen { background: var(--paars); border-color: var(--paars); }
.tf-chip.gekozen a, .tf-chip.gekozen .tf-x { color: #fff !important; }
.tf-chip.gekozen .tf-n { background: #fff; color: var(--paars); }
.tf-chip.uit { opacity: .5; background: #fff; border-style: dashed; }
.tf-chip.uit a:first-child { text-decoration: line-through; }
.tf-chip.uit .tf-x { opacity: 1; }
@media (hover: none) { .tf-x { opacity: 1; } }
@media (max-width: 640px) {
  .tf-rij { grid-template-columns: 1fr; gap: 6px; }
  .tf-groep { padding-top: 0; }
}

/* Zoekbare keuzelijst (datahuis.js, select[data-zoekbaar]) */
.zoekbaar { position: relative; }
.zoekbaar-veld { width: 100%; padding: 10px; border: 1px solid var(--rand); border-radius: 8px; font: inherit; background: #fff; }
.zoekbaar-veld:focus { outline: 2px solid var(--paars); outline-offset: 1px; }
.zoekbaar-lijst { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px;
                  list-style: none; background: #fff; border: 1px solid var(--rand); border-radius: 8px;
                  box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 280px; overflow-y: auto; }
.zoekbaar-lijst li { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.zoekbaar-lijst li.actief, .zoekbaar-lijst li:hover { background: var(--vlak); color: var(--paars); }
.zoekbaar-lijst li.zoekbaar-leeg { color: var(--tekst-zwak); cursor: default; background: none; }

/* Tijdlijn bij een tip (scorekaart) */
.tijdlijn { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 10px 0 0; padding: 0; font-size: .82rem; }
.tijdlijn li { position: relative; padding: 0 22px 0 0; margin: 0 0 6px; display: flex; flex-direction: column; }
.tijdlijn li:not(:last-child)::after { content: "→"; position: absolute; right: 5px; top: 8px; color: var(--tekst-zwak); }
.tijdlijn span { color: var(--tekst-zwak); font-size: .72rem; }
.tijdlijn em { font-style: normal; color: var(--tekst-zwak); font-size: .72rem; }
.tijdlijn li.datahuis strong { color: var(--paars); }
.tijdlijn li.leeg strong { color: var(--tekst-zwak); font-weight: 500; }

/* Mail-teller in het beheermenu: 'Mail (2)' */
.mail-teller { font-weight: 700; color: var(--paars, inherit); }

/* Beheerdashboard: statuslabels (altijd met symbool + woord, nooit alleen kleur) en staafgrafiek */
.st { display: inline-flex; gap: 4px; align-items: center; font-size: .78rem; font-weight: 600; padding: 2px 8px;
      border-radius: 999px; white-space: nowrap; }
.st-goed { background: #dcfce7; color: #166534; }
.st-letop { background: #fef3c7; color: #92400e; }
.st-probleem { background: #ffe4e6; color: #9f1239; }
.st-nooit { background: var(--vlak); color: var(--tekst-zwak); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.dash-getal { font-size: 1.6rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dash-sectie { margin-top: 32px; }
.dash-sectie > h2 { font-size: 1.25rem; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.staafgrafiek { width: 100%; height: auto; display: block; }
.staafgrafiek rect.staaf { fill: var(--paars); }
.staafgrafiek rect.staaf:hover, .staafgrafiek rect.staaf:focus { fill: #4c1d95; outline: none; }
.staafgrafiek .as { stroke: var(--rand); }
.staafgrafiek text { fill: var(--tekst-zwak); font-size: 11px; }
.grafiek-tip { position: fixed; pointer-events: none; background: #1f2937; color: #fff; font-size: .8rem;
               padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 50; display: none; }
.balk { height: 10px; background: var(--vlak); border-radius: 999px; overflow: hidden; }
.balk > span { display: block; height: 100%; background: var(--paars); border-radius: 999px; }

/* Sorteerbare tabellen (datahuis.js): pijltje bij de gesorteerde kolom. */
table[data-sorteer] th[data-pijl]::after { content: " " attr(data-pijl); font-size: .75em; color: var(--paars); }
