/* Vandaag v2 (Arthur 20/10/2026: "het startscherm mag wel terug wat innovatiever en cooler zoals voorheen").
   Bovenop ux-fase3.css; alles hangt aan .vd2 (alleen met UX_VANDAAG). De kop in inkt van het oude Start komt terug
   (messing lijn, gloed, Fraunces + de naam in messing) met de dag als tijdlijn erin; de kop blijft in beide thema's
   inkt (--chrome, --on-chrome). Kleuren alleen via de tokens (tokens.css). Beweging: kort (90-240 ms), alleen bij
   hover/druk en het optellen van de cijfers (js); met prefers-reduced-motion niets. Skeletten in de vorm van het
   blok: geen sprongen. */

/* ---- skeletten ---- */
.vd2 .vd-sk { background: var(--surface-2); }
.vd2-hero .vd-sk { background: rgba(251, 248, 234, .08); }
.vd2-sk-chip { display: inline-block; height: 28px; width: 92px; border-radius: 999px; margin-right: 6px; }
.vd2-sk-stand { height: 92px; width: 100%; border-radius: var(--r-m); }
.vd2-sk-tl { height: 236px; border-radius: var(--r-m); }
.vd2-sk-arij { height: 58px; border-radius: var(--r-m); margin-bottom: 6px; }
.vd2-sk-ploeg { height: 168px; border-radius: var(--r-l); }

/* ---- de kop: de dag nu ---- */
.vd2-hero { position: relative; overflow: hidden; isolation: isolate; margin: 0 0 16px; padding: 22px 24px 16px; border-radius: 24px;
  color: var(--on-chrome);
  background: radial-gradient(560px 300px at 92% 0%, rgba(212, 175, 55, .20), transparent 70%),
    radial-gradient(700px 380px at 0% 120%, rgba(140, 125, 84, .26), transparent 70%), var(--chrome);
  box-shadow: 0 30px 80px -44px rgba(21, 18, 14, .8); }
.vd2-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--brand-deep) 20%, var(--brand-2) 50%, var(--brand-deep) 80%, transparent); }
.vd2-hero-boven { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 20px; align-items: start; }
.vd2 .vd-kop { margin: 0; }
.vd2 .vd-dag { color: var(--brand); letter-spacing: .22em; }
.vd2 .vd-kop h1 { color: var(--on-chrome); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 6px 0 10px; line-height: 1.02; }
.vd2 .vd-kop h1 em { font-style: italic; }
.vd2-naam { font-family: var(--font); font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: var(--brand-2); }
.vd2-hero .bijgewerkt { color: var(--on-chrome-2); }
.vd2-hero .bijgewerkt svg { fill: currentColor; }
.vd2-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.vd2-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: 999px;
  border: 1px solid rgba(251, 248, 234, .22); color: var(--on-chrome-2); font-size: var(--t-m); font-weight: 600; white-space: nowrap; }
.vd2-chip b { color: var(--on-chrome); }
.vd2-chip-weer { color: var(--on-chrome); }
.vd2-weer-ic { width: 18px; height: 18px; color: var(--brand-2); }
.vd2-chip-ev { border-color: var(--brand); color: var(--brand-2); }
.vd2-terras-ja { border-color: var(--p-blad); color: var(--p-blad-licht); }
.vd2-terras-twijfel { border-color: var(--p-amber); color: var(--p-messing-tint); }
.vd2-terras-nee { border-color: var(--p-rood-zacht); color: var(--p-rood-zacht); }

.vd2-stand { padding: 14px 16px; border-radius: var(--r-m); background: rgba(251, 248, 234, .06); border: 1px solid rgba(251, 248, 234, .12); min-height: 106px; }
.vd2-stand-l { font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-chrome-2); }
.vd2-stand-v { font: 800 clamp(2rem, 3.6vw, 2.7rem)/1.05 var(--font); letter-spacing: -.01em; color: var(--on-chrome); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.vd2-stand-c { font-size: var(--t-s); color: var(--on-chrome-2); }
.vd2-hero .vd2-delta.op { color: var(--p-blad-licht); }
.vd2-hero .vd2-delta.neer { color: var(--p-rood-zacht); }
.vd2-hero .vd2-delta.koers { color: inherit; opacity: .85; }

/* ---- de tijdlijn ---- */
.vd2-tl { margin-top: 16px; min-height: 236px; }
.vd2-tl-in { position: relative; padding-bottom: 22px; }
.vd2-grafiek { position: relative; height: 128px; margin-left: 74px; }
.vd2-grafiek svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vd2-verw-vlak { fill: rgba(212, 175, 55, .16); }
.vd2-verw-lijn { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 4; }
.vd2-echt { fill: var(--on-chrome); opacity: .78; }
.vd2-echt-nu { opacity: .4; }
.vd2-geen { position: absolute; left: 0; right: 0; top: 46px; margin: 0; text-align: center; color: var(--on-chrome-2); font-size: var(--t-s); }
.vd2-geen-rooster { position: static; margin: 10px 0 0 74px; text-align: left; }
.vd2-stippen { position: absolute; left: 0; right: 0; bottom: -10px; height: 20px; }
.vd2-res { position: absolute; transform: translateX(-50%); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: var(--brand-2); color: var(--on-brand); font-size: var(--t-xs); font-weight: 800; box-shadow: 0 0 0 2px var(--chrome); }
.vd2-res-groot { background: var(--p-oranje-zacht); }
.vd2-posten { margin-top: 18px; display: grid; gap: 6px; }
.vd2-post { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; align-items: center; }
.vd2-post-n { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-chrome-2); display: flex; gap: 4px; align-items: center; }
.vd2-post-n i { font-style: normal; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--p-amber); color: var(--on-brand); font-size: var(--t-xs); font-weight: 800; }
.vd2-baan { position: relative; height: calc(var(--banen, 1) * 26px - 4px); border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(251, 248, 234, .05) 0 1px, transparent 1px 100%); }
.vd2-band { position: absolute; top: calc(var(--baan, 0) * 26px); height: 22px; border-radius: 6px; padding: 0 8px; display: flex; align-items: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-s); font-weight: 700; min-width: 6px;
  transition: transform var(--d-1) var(--ease-out), filter var(--d-1); }
.vd2-band:hover { transform: translateY(-1px); filter: brightness(1.08); }
.vd2-band.st-in { background: var(--brand); color: var(--on-brand); }
.vd2-band.st-pauze { background: var(--p-messing-tint); color: var(--on-brand); }
.vd2-band.st-komt, .vd2-band.st-plan { background: rgba(251, 248, 234, .1); color: var(--on-chrome); box-shadow: inset 0 0 0 1.5px rgba(251, 248, 234, .45); }
.vd2-band.st-plan { background: rgba(251, 248, 234, .2); }
.vd2-band.st-klaar { background: rgba(251, 248, 234, .08); color: var(--on-chrome-2); }
.vd2-band.st-niet { background: repeating-linear-gradient(135deg, rgba(255, 142, 130, .28) 0 6px, rgba(255, 142, 130, .14) 6px 12px); color: var(--on-chrome); box-shadow: inset 0 0 0 1.5px var(--p-rood-zacht); }
.vd2-band.st-open { background: transparent; color: var(--on-chrome-2); box-shadow: inset 0 0 0 1.5px rgba(251, 248, 234, .35); border: 0; background-image: repeating-linear-gradient(90deg, rgba(251, 248, 234, .12) 0 4px, transparent 4px 8px); }
.vd2-band.vd2-jij { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.vd2-as { position: absolute; left: 74px; right: 0; bottom: 0; height: 16px; }
.vd2-as span { position: absolute; transform: translateX(-50%); font-size: var(--t-xs); color: var(--on-chrome-3); font-variant-numeric: tabular-nums; }
.vd2-nu { position: absolute; top: -6px; bottom: 16px; left: calc(74px + (100% - 74px) * var(--nu) / 100%); width: 0; border-left: 2px solid var(--p-rood-zacht); pointer-events: none; }
.vd2-nu span { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; background: var(--p-rood-zacht); color: var(--on-brand); font-size: var(--t-xs); font-weight: 800; white-space: nowrap; }
.vd2-nu::after { content: ""; position: absolute; left: -5px; bottom: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--p-rood-zacht); }
.vd2-legende { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: var(--t-xs); color: var(--on-chrome-2); }
.vd2-legende span { display: inline-flex; align-items: center; gap: 6px; }
.vd2-legende span::before { content: ""; width: 14px; height: 8px; border-radius: 3px; }
.vd2-l-verw::before { border-top: 2px dashed var(--brand); height: 0 !important; }
.vd2-l-echt::before { background: var(--on-chrome); opacity: .85; }
.vd2-l-res::before { width: 10px !important; height: 10px !important; border-radius: 50% !important; background: var(--brand-2); }
.vd2-l-in::before { background: var(--brand); }
.vd2-l-komt::before { box-shadow: inset 0 0 0 1.5px rgba(251, 248, 234, .45); }
.vd2-l-niet::before { box-shadow: inset 0 0 0 1.5px var(--p-rood-zacht); background: rgba(255, 142, 130, .2); }

/* ---- doorklikken (Arthur 31/10): chips, de stand, banden, stippen, posten en de ploeg zijn links ---- */
a.vd2-klik { text-decoration: none; cursor: pointer; }
a.vd2-stand, a.vd2-band, a.vd2-av { color: inherit; }
a.vd2-stand { display: block; transition: border-color var(--d-1), background var(--d-1); }
a.vd2-stand:hover { border-color: var(--brand); background: rgba(251, 248, 234, .09); }
a.vd2-chip { transition: border-color var(--d-1), background var(--d-1); }
a.vd2-chip:hover { border-color: var(--on-chrome); background: rgba(251, 248, 234, .08); }
a.vd2-res { transition: transform var(--d-1) var(--ease-out); }
a.vd2-res:hover { transform: translateX(-50%) scale(1.15); }
a.vd2-post-n:hover, a.vd2-ploeg-n:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
a.vd2-ploeg-n:hover { color: var(--brand-ink); }
a.vd2-av { border-radius: 999px; }
a.vd2-av:hover b { color: var(--brand-ink); }
.vd2-hero a.vd2-klik:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
a.vd2-av:focus-visible { outline-offset: 3px; }

/* ---- de cijfers ---- */
.vd2-kpis { margin-bottom: 18px; }
.vd2 .vd2-kpi { position: relative; overflow: hidden; min-height: 132px; transition: border-color var(--d-1), transform var(--d-2) var(--ease-out), box-shadow var(--d-2); }
.vd2 .vd2-kpi:hover { transform: translateY(-2px); box-shadow: var(--plus-shadow-hover); }
.vd2 .vd2-kpi:active { transform: scale(.99); }
.vd2 .vd-kpi-v { font-family: var(--font); font-weight: 800; letter-spacing: -.01em; font-size: var(--t-4xl); line-height: 1.05; color: var(--text-strong); }
.vd2 .vd-kpi-v.vd-let { color: var(--err-ink); }
.vd2 .vd-kpi-l { color: var(--text-2); }
.vd2 .vd-kpi-c { color: var(--text-2); }
.vd2-kpi-rij { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; }
.vd2-kpi-rij .vd-kpi-v { margin: 0; white-space: nowrap; }
.vd2-spark { width: 120px; min-width: 56px; height: 34px; flex: 0 1 120px; }
.vd2-spark path { stroke: var(--brand-deep); stroke-width: 2; stroke-linecap: round; }
.vd2-spark circle { fill: var(--brand); stroke: var(--surface); stroke-width: 1.5; }
.vd2-ring { width: 52px; height: 52px; flex: none; }
.vd2-ring circle { fill: none; stroke-width: 6; }
.vd2-ring .vd2-ring-baan { stroke: var(--surface-3); }
.vd2-ring .vd2-ring-vol { stroke: var(--ok); stroke-linecap: round; }
.vd2-ring-boven .vd2-ring-vol { stroke: var(--err); }
.vd2-ring .vd2-ring-doel { fill: var(--text-strong); stroke: var(--surface); stroke-width: 1.5; }
.vd2-delta { font-weight: 700; white-space: nowrap; }
.vd2-delta.op { color: var(--ok-ink); }
.vd2-delta.neer { color: var(--err-ink); }
.vd2-delta.koers { color: var(--text-2); }
.vd2-bandje { position: relative; height: 8px; margin: 10px 0 6px; border-radius: 4px; background: var(--surface-3); }
.vd2-bandje i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--messing-licht); }
.vd2-bandje b { position: absolute; top: -3px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--text-strong); }

/* ---- vraagt je aandacht: strakke rijen ---- */
.vd2-teller { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: var(--on-brand); font-size: var(--t-xs); font-weight: 800; }
.vd2-a-lijst { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-card); overflow: hidden; }
.vd2-a-rij { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px 10px 14px; border-top: 1px solid var(--line);
  max-height: 120px; transition: background var(--d-1), opacity var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out), max-height var(--d-3) var(--ease-out); }
.vd2-a-rij:first-child { border-top: 0; }
.vd2-a-rij:hover { background: var(--bg); }
.vd2-a-rij::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--info-ink); }
.vd2-p-vandaag::before { background: var(--warn); }
.vd2-p-achterstallig::before { background: var(--err); }
.vd2-a-rij.weg { opacity: 0; transform: translateX(24px); max-height: 0 !important; padding-top: 0; padding-bottom: 0; }
.vd2-a-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.vd2-a-ic svg.ic { width: 18px; height: 18px; fill: currentColor; }
.vd2-p-achterstallig .vd2-a-ic { background: var(--err-bg); color: var(--err-ink); }
.vd2-p-vandaag .vd2-a-ic { background: var(--warn-bg); color: var(--warn-ink); }
.vd2-a-wat { min-width: 0; display: grid; gap: 1px; color: inherit; text-decoration: none; }
.vd2-a-wat b { font-size: var(--t-ml); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd2-a-wat span { font-size: var(--t-s); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd2-a-knop { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong);
  font: 700 var(--t-m) var(--font); cursor: pointer; white-space: nowrap; transition: background var(--d-1), border-color var(--d-1), transform var(--d-1); }
.vd2-a-knop:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.vd2-a-knop:active { transform: scale(.97); }
@media (pointer: coarse) { .vd2-a-knop { min-height: 44px; } }

/* ---- ploeg nu ---- */
.vd2-raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .vd2-raster { grid-template-columns: minmax(0, 1fr); } }
.vd2-rechts { min-width: 0; }
.vd2-ploeg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-card); padding: 12px 14px; min-height: 168px; }
.vd2-ploeg-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.vd2-ploeg-kop b { color: var(--text-strong); font-size: var(--t-ml); }
.vd2-ploeg-kop > span:not(.td-pil) { color: var(--text-2); font-size: var(--t-s); }
.vd2-ploeg-posten { display: grid; gap: 10px; }
.vd2-ploeg-post { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: start; }
.vd2-ploeg-n { font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding-top: 10px; }
.vd2-avs { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.vd2-av { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.vd2-av > i { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 var(--t-s) var(--font); font-style: normal;
  background: var(--surface-3); color: var(--text-strong); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line-strong); transition: transform var(--d-1); }
.vd2-av:hover > i { transform: scale(1.06); }
.vd2-av > span { display: grid; line-height: 1.15; }
.vd2-av b { font-size: var(--t-m); color: var(--text-strong); }
.vd2-av small { font-size: var(--t-xs); color: var(--text-2); }
.vd2-av.st-in > i { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ok); }
.vd2-av.st-pauze > i { background: var(--messing-tint); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--warn); }
.vd2-av.st-komt > i { background: var(--surface); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line-strong); outline: 1.5px dashed var(--text-3); outline-offset: -5px; }
.vd2-av.st-klaar > i { opacity: .6; }
.vd2-av.st-niet > i { background: var(--err-bg); color: var(--err-ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--err); }
.vd2-av.st-niet small { color: var(--err-ink); font-weight: 700; }
.vd2-av.st-open > i { background: transparent; color: var(--text-2); box-shadow: none; outline: 1.5px dashed var(--line-4); outline-offset: -2px; }
.vd2-av-leeg { color: var(--text-3); font-size: var(--t-s); padding-top: 10px; }
.vd2-lijst .vd-rij { min-height: 56px; }

/* ---- personeel: de shift als tijdlijn ---- */
.vd2-hero-pers { padding-bottom: 18px; }
.vd2-hero-pers .vd-shift { background: none; padding: 0; margin: 16px 0 0; min-height: 0; border-radius: 0; }
.vd2-hero-pers .vd-sk-shift { background: rgba(251, 248, 234, .08); }
.vd2-tl.vd2-tl-pers { min-height: 0; margin-top: 14px; }
.vd2-tl-pers .vd2-posten { margin-top: 6px; }

/* ---- gsm ---- */
@media (max-width: 760px) {
  .vd2-hero { padding: 16px 14px 12px; border-radius: 20px; margin-left: -4px; margin-right: -4px; }
  .vd2-hero-boven { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vd2 .vd-kop { flex-wrap: nowrap; min-width: 0; }
  .vd2 .vd-kop-tekst { min-width: 0; }
  .vd2-chip { white-space: normal; }
  .vd2-kpis .vd-kpi:last-child:nth-child(4) { grid-column: 1 / 3; }
  .vd2 .vd-kop-rechts { order: 0; width: auto; }
  .vd2 .vd-kop-rechts .bijgewerkt span { display: none; }
  .vd2-stand { min-height: 96px; padding: 12px 14px; }
  .vd2-grafiek, .vd2-as { margin-left: 52px; }
  .vd2-as { left: 52px; margin-left: 0; }
  .vd2-post { grid-template-columns: 44px minmax(0, 1fr); }
  .vd2-post-n { font-size: var(--t-xs); letter-spacing: .02em; }
  .vd2-geen-rooster { margin-left: 52px; }
  .vd2-nu { left: calc(52px + (100% - 52px) * var(--nu) / 100%); }
  .vd2-grafiek { height: 104px; }
  .vd2-tl { min-height: 210px; }
  .vd2-sk-tl { height: 210px; }
  .vd2 .vd2-kpi { min-height: 118px; }
  .vd2 .vd-kpi-v { font-size: var(--t-3xl); }
  .vd2-kpis .vd-kpi:first-child { grid-column: 1 / 3; }
  .vd2-kpi-rij { flex-wrap: wrap; }
  .vd2-ring { width: 40px; height: 40px; }
  .vd2-a-rij { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .vd2-a-ic { width: 30px; height: 30px; }
  .vd2-a-knop { padding: 0 12px; }
  .vd2-ploeg-post { grid-template-columns: 1fr; gap: 4px; }
  .vd2-ploeg-n { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vd2 *, .vd2-a-rij { transition: none !important; animation: none !important; }
}
