/* Statistiek: feestelijke teller op het overzicht en het scherm #/statistiek (web/statistiek.js). */

/* ------------------------------------------------------------ feestelijke teller (klein blokje onder de titel) */
.feest { margin: 1.1rem 0 0; animation: in .4s ease both; }
.feest-kaart {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-grid; grid-template-columns: auto auto auto; align-items: end; gap: 0.35rem 1.6rem;
  padding: 0.75rem 1rem 0.7rem; border-radius: var(--rond-klein); border: 1px solid #ecd2b8;
  background: radial-gradient(120% 160% at 100% 0%, #fbe3cb 0%, transparent 60%), var(--papier);
  box-shadow: var(--schaduw-klein); color: var(--inkt); text-decoration: none; max-width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.feest-kaart:hover { border-color: var(--merk); box-shadow: var(--schaduw); }
.feest-nieuw { border-color: var(--groen); box-shadow: 0 0 0 3px color-mix(in srgb, var(--groen) 25%, transparent), var(--schaduw-klein); }
.feest-snippers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.feest-kaart .feest-snippers { opacity: .4; }
.feest-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.feest-blok { display: flex; flex-direction: column; min-width: 0; }
.feest-label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--inkt-2); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.feest-stip { width: 8px; height: 8px; border-radius: 50%; }
.feest-vink { display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; background: var(--groen); color: #fff; }
.feest-vink .icoon { width: 0.65rem; height: 0.65rem; stroke-width: 3; }
.feest-getal { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feest-akkoord .feest-getal { color: var(--groen); }
.feest-pijl { color: var(--inkt-3); align-self: center; }
.feest-kaart:hover .feest-pijl { color: var(--merk); }
.feest-balk { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: color-mix(in srgb, #34568f 16%, var(--vlak)); overflow: hidden; margin-top: 0.2rem; }
.feest-balk > span { display: block; height: 100%; border-radius: 99px; background: var(--groen); }
.feest-sub { grid-column: 1 / -1; color: var(--inkt-2); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feest-sub strong { color: var(--groen); }

/* ------------------------------------------------------------ scherm */
.st-kop { padding: 2.2rem 0 1rem; }
.st-filters { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.st-wie { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.4rem 0.35rem 0.9rem; border: 1.5px solid var(--lijn-2); border-radius: 999px; background: var(--papier); color: var(--inkt-2); }
.st-wie select { border: 0; background: transparent; font-weight: 600; color: var(--inkt); padding: 0.2rem; cursor: pointer; }
.st-wie select:focus { outline: none; }

.st-held { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 2rem; padding: 1.6rem 1.8rem;
  background: radial-gradient(120% 140% at 100% 0%, #fbe3cb 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #e7efdc 0%, transparent 60%), var(--papier); }
.st-held .feest-snippers { z-index: -1; }
.st-held-blok { display: flex; flex-direction: column; min-width: 0; }
.st-held-getal { font-size: clamp(2.4rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-groen { color: var(--groen); }
.st-held-balk { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: color-mix(in srgb, #34568f 16%, var(--vlak)); overflow: hidden; }
.st-held-balk > span { display: block; height: 100%; border-radius: 99px; }
.st-label { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--inkt-2); }
.st-sleutel { width: 10px; height: 10px; border-radius: 3px; }

.st-tegels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin: 1rem 0; }
.st-tegel { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.st-tegel-getal { white-space: nowrap; font-size: clamp(1.25rem, 4.6vw, 1.65rem); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.25; }

.st-kaart { padding: 1.2rem 1.35rem 1.3rem; margin-bottom: 1rem; min-width: 0; }
.st-kaart-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.st-kaart-kop h3 { font-size: 1.4rem; }
.st-kaart-kop p { margin: 0.2rem 0 0; }
.st-twee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.st-twee > .st-kaart { margin-bottom: 1rem; }
@media (max-width: 960px) { .st-twee { grid-template-columns: minmax(0, 1fr); } .st-held { grid-template-columns: minmax(0, 1fr); } }

.st-legenda { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--inkt-2); font-weight: 600; }
.st-legenda span { display: inline-flex; align-items: center; gap: 0.4rem; }
.st-legenda i, .st-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* svg-grafieken */
.st-svg { width: 100%; min-height: 120px; }
.st-svg svg { display: block; overflow: visible; }
.st-grid { stroke: var(--lijn); stroke-width: 1; }
.st-as { fill: var(--inkt-3); font-size: 11.5px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.st-eind { fill: var(--inkt); font-size: 12.5px; font-weight: 700; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.st-kruislijn { stroke: var(--inkt-3); stroke-width: 1; }
.st-svg circle[data-tip] { cursor: default; }

/* horizontale balken */
.st-balken { display: grid; gap: 0.45rem; }
.st-balk-rij { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; align-items: center; gap: 0.8rem; padding: 0.15rem 0; border-radius: 6px; }
.st-balk-rij:hover { background: var(--bg); }
.st-balk-naam { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-balk-baan { display: block; height: 18px; }
.st-balk { display: block; height: 100%; background: var(--merk); border-radius: 0 4px 4px 0; }
.st-balk-waarde { font-variant-numeric: tabular-nums; font-size: 0.9rem; white-space: nowrap; text-align: right; }

/* opbouw: 100%-stapel met spleten van 2px */
.st-opbouw { display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center; gap: 0.8rem; margin: 0.55rem 0; }
.st-stapel { display: flex; gap: 2px; height: 24px; }
.st-stapel > span { display: grid; place-items: center; min-width: 3px; }
.st-stapel > span:last-child { border-radius: 0 4px 4px 0; }
.st-stapel em { font-style: normal; font-size: 0.78rem; font-weight: 700; color: #fff; }

/* kolommen */
.st-kolommen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; align-items: end; }
.st-kolom { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.st-kolom-baan { height: 140px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.st-kolom-baan > span { width: min(24px, 100%); background: var(--merk); border-radius: 4px 4px 0 0; }
.st-kolom-waarde { font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; min-height: 1.3em; }
.st-kolom-naam { font-size: 0.78rem; color: var(--inkt-3); white-space: nowrap; border-top: 1px solid var(--lijn); width: 100%; text-align: center; padding-top: 0.3rem; }

/* tabellen */
.st-tabel-wrap { overflow-x: auto; }
.st-tabel { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.st-tabel th { text-align: left; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--inkt-3); font-weight: 600; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
.st-tabel td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
.st-tabel tr:last-child td { border-bottom: 0; }
.st-tabel .getal { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-cel-balk { display: inline-block; width: 5rem; height: 10px; margin-right: 0.6rem; vertical-align: -1px; }
.st-cel-balk > span { display: block; height: 100%; border-radius: 0 4px 4px 0; }

/* lijsten */
.st-lijst { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
.st-lijst a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.55rem 0.75rem; border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--inkt); }
.st-lijst a:hover { background: var(--vlak); }
.st-lijst-naam { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font-weight: 600; }
.st-lijst-naam > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-lijst-rechts { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-bellen { color: var(--rood); font-weight: 600; }
.st-bellen .icoon { width: 1em; height: 1em; vertical-align: -0.12em; }
.st-vink { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--groen); color: #fff; margin-right: 0.45rem; vertical-align: -0.15em; }
.st-vink .icoon { width: 0.7rem; height: 0.7rem; stroke-width: 3; }

/* snelheid */
.st-snel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.4rem; }
.st-snel > div { display: flex; flex-direction: column; gap: 0.1rem; }
.st-snel-getal { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* raster dag × dagdeel */
.st-raster { display: grid; grid-template-columns: 4.8rem repeat(7, 1fr); gap: 3px; }
.st-as-html { font-size: 0.78rem; color: var(--inkt-3); text-align: center; align-self: center; }
.st-raster-rij { text-align: left; }
.st-cel { height: 2.1rem; border-radius: 5px; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; color: var(--inkt); font-variant-numeric: tabular-nums; }

/* tooltip */
.st-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 260px; display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.55rem 0.75rem; border-radius: 10px; background: var(--inkt); color: #fff; font-size: 0.84rem; box-shadow: var(--schaduw-klein); }
.st-tip span { display: flex; align-items: center; gap: 0.4rem; color: #eee5da; }
.st-tip strong { color: #fff; }

/* zes tegels: op een breed scherm naast elkaar, anders 3 × 2 (of 2 × 3 op een telefoon) */
@media (min-width: 1280px) { .st-tegels, .st-snel { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) { .st-tegels, .st-snel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-balk-rij { grid-template-columns: minmax(5rem, 7rem) 1fr auto; } }
