/* ══════════════════════════════════════════════════════════════════
   VUL TEMPO — kar-/medewerker-/normtijdregistratie.
   Mobile-first, bouwt op de bestaande .card/.chip/.btn-sm-componenten
   uit componenten.css i.p.v. een eigen designtaal te verzinnen.
   ══════════════════════════════════════════════════════════════════ */

.vt-status-groep-titel { font-size:0.78rem; font-weight:700; color:#6b7280; text-transform:uppercase; letter-spacing:0.05em; margin:1rem 0 0.4rem; }
.vt-status-groep-titel:first-child { margin-top:0; }

.vt-kar-card { display:flex; flex-direction:column; gap:0.35rem; }
.vt-kar-nieuw { opacity:0.85; }
.vt-kar-actief { border-left:4px solid #a83545; }
.vt-kar-afgerond { border-left:4px solid #d1d5db; }

.vt-kar-head { display:flex; align-items:baseline; justify-content:space-between; gap:0.5rem; }
.vt-kar-kartype { font-weight:700; font-size:1rem; }
.vt-kar-colli { font-size:0.85rem; color:#6b7280; white-space:nowrap; }

.vt-kar-medewerkers { font-size:0.88rem; color:#4b5563; }
.vt-geen-medewerkers { font-size:0.85rem; color:#9ca3af; font-style:italic; }
.vt-medewerker-link { background:none; border:none; padding:0; margin:0; font:inherit; color:#a83545; font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.vt-medewerker-row { display:flex; align-items:center; gap:0.6rem; padding:0.5rem 0.1rem; border-bottom:1px solid #f3f4f6; }
.vt-medewerker-row:last-child { border-bottom:none; }
.vt-medewerker-row input[type="checkbox"] { width:18px; height:18px; flex-shrink:0; }
.vt-medewerker-row-naam { flex:1; text-align:left; color:#2a1418; text-decoration:none; font-weight:600; }

.vt-timer { font-size:1.6rem; font-weight:800; font-variant-numeric:tabular-nums; color:#a83545; text-align:center; padding:0.2rem 0; }

.vt-verschil { font-size:1.05rem; font-weight:700; }
.vt-verschil-sneller { color:#16a34a; }
.vt-verschil-langzamer { color:#dc2626; }
.vt-verschil-binnen { color:#6b7280; }
.vt-detail-regel { font-size:0.78rem; color:#9ca3af; }

.vt-kar-acties { display:flex; gap:0.5rem; flex-wrap:wrap; margin-top:0.3rem; }
.vt-btn-danger { background:#fef2f2; color:#ef4444; }
.vt-btn-stop { background:#ef4444; color:white; flex:1; font-size:1rem; padding:0.6rem; }

.chip-row { display:flex; flex-wrap:wrap; gap:0.4rem; margin-bottom:0.6rem; }
.chip:disabled { opacity:0.4; cursor:not-allowed; }
.vt-chip-uitdienst { opacity:0.6; }

/* ── Overzicht alle medewerkers ── */
.vt-overzicht-rij { display:flex; align-items:center; justify-content:space-between; gap:0.75rem; padding:0.6rem 0.1rem; border-bottom:1px solid #f3f4f6; cursor:pointer; }
.vt-overzicht-rij:last-child { border-bottom:none; }
.vt-overzicht-rij:active { background:#faf4ec; }
.vt-overzicht-naam { font-weight:600; color:#2a1418; }

/* ── Profielmodal (analyse) ── */
.vt-profiel-modal { max-width:560px; }
.vt-totalen-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0.6rem; margin-top:0.6rem; }
.vt-stat { background:#faf4ec; border-radius:10px; padding:0.6rem 0.4rem; text-align:center; }
.vt-stat-val { font-size:1.05rem; font-weight:800; color:#2a1418; }
.vt-stat-lbl { font-size:0.68rem; color:#6b7280; text-transform:uppercase; letter-spacing:0.04em; margin-top:0.15rem; }

.vt-grafiek-svg { width:100%; height:170px; display:block; }
.vt-grafiek-nullijn { stroke:#d1d5db; stroke-width:1; stroke-dasharray:4 3; }
.vt-grafiek-lijn { fill:none; stroke:#a83545; stroke-width:2; }
.vt-grafiek-legenda { display:flex; gap:1rem; justify-content:center; font-size:0.72rem; color:#6b7280; margin-top:0.3rem; }
.vt-legenda-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:0.3rem; vertical-align:middle; }

.vt-tabel { width:100%; border-collapse:collapse; font-size:0.85rem; }
.vt-tabel th { text-align:left; font-size:0.68rem; text-transform:uppercase; letter-spacing:0.04em; color:#6b7280; padding-bottom:0.3rem; border-bottom:1px solid #f3f4f6; }
.vt-tabel td { padding:0.45rem 0; border-bottom:1px solid #f3f4f6; }
.vt-tabel th.num, .vt-tabel td.num { text-align:right; }
.vt-tabel tbody tr { cursor:pointer; }
.vt-tabel tbody tr:active { background:#faf4ec; }

.vt-kartype-detail-regel { margin-bottom:0.5rem; }

@media (max-width:380px){
  .vt-totalen-grid { grid-template-columns:repeat(2,1fr); }
}

/* Wachtrij: volgende kar staat klaar terwijl de medewerker nog bezig is */
.vt-wachtrij { font-size:0.82rem; font-weight:600; color:#8a5a00; background:#fff6e0; border-radius:8px; padding:0.35rem 0.6rem; margin:0.3rem 0; }
.vt-kar-card .btn-gold[disabled] { opacity:0.45; cursor:not-allowed; }
/* Gestopt (wacht op afronden/hervatten): bevroren tijd */
.vt-timer-gestopt { color:#6b7280; }

/* Totaaloverzicht per karrencategorie */
.vt-cat { background:#faf4ec; border-radius:10px; padding:0.6rem 0.75rem; margin-bottom:0.6rem; }
.vt-cat-kop { font-weight:800; color:#2a1418; }
.vt-cat-gem { display:flex; justify-content:space-between; gap:0.5rem; font-size:0.85rem; font-weight:700; padding:0.25rem 0 0.4rem; border-bottom:1px solid #ecdfd0; }
.vt-cat-regel { display:flex; justify-content:space-between; gap:0.5rem; font-size:0.82rem; padding:0.3rem 0; border-bottom:1px solid #f1e8dc; }
.vt-cat-regel:last-child { border-bottom:none; }
.vt-stat-val.vt-verschil-sneller, .vt-cat-regel .vt-verschil-sneller, .vt-cat-gem .vt-verschil-sneller { color:#16a34a; }
.vt-stat-val.vt-verschil-langzamer, .vt-cat-regel .vt-verschil-langzamer, .vt-cat-gem .vt-verschil-langzamer { color:#dc2626; }

/* Medewerkerspagina: uitklapbare kaarten */
.vt-mw-kaart { padding:0; margin-bottom:0.5rem; overflow:hidden; }
.vt-mw-kop { display:flex; align-items:center; gap:0.6rem; width:100%; min-height:48px; padding:0.6rem 0.8rem; background:none; border:0; text-align:left; font:inherit; color:inherit; cursor:pointer; }
.vt-mw-naam { flex:1; font-weight:800; color:#2a1418; }
.vt-mw-rechts { display:flex; flex-direction:column; align-items:flex-end; line-height:1.2; }
.vt-mw-stat { font-weight:700; font-size:0.85rem; }
.vt-mw-pijl { color:#6b7280; transition:transform .15s; }
.vt-mw-kop[aria-expanded="true"] .vt-mw-pijl { transform:rotate(180deg); }
.vt-mw-kaart:has(.vt-mw-kop[aria-expanded="true"]) { border-left:3px solid #a83545; }
.vt-mw-detail { padding:0.2rem 0.8rem 0.8rem; border-top:1px solid #f3f4f6; }
.vt-mw-detail[hidden] { display:none; }
.vt-mw-rechts .vt-verschil-sneller { color:#16a34a; }
.vt-mw-rechts .vt-verschil-langzamer { color:#dc2626; }

/* Prestatiegrafiek (norm = 100%) */
.vt-prest-bars { position:relative; margin-bottom:0.4rem; }
.vt-prest-as { position:relative; height:1.1rem; margin-left:30%; margin-right:5.5rem; }
.vt-prest-normlbl { position:absolute; transform:translateX(-50%); font-size:0.68rem; font-weight:800; color:#a83545; white-space:nowrap; }
.vt-prest-rij { display:flex; align-items:center; gap:0.5rem; min-height:34px; }
.vt-prest-naam { flex:0 0 28%; font-size:0.85rem; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vt-prest-track { position:relative; flex:1; height:16px; background:#f3ece2; border-radius:8px; overflow:visible; }
.vt-prest-balk { display:block; height:100%; border-radius:8px; }
.vt-prest-balk.boven { background:#16a34a; }
.vt-prest-balk.onder { background:#dc2626; }
.vt-prest-balk.weinig { opacity:0.55; background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.55) 0 4px,transparent 4px 8px); }
.vt-prest-norm { position:absolute; top:-3px; bottom:-3px; width:0; border-left:2px dashed #2a1418; }
.vt-prest-waarde { flex:0 0 5.2rem; font-size:0.82rem; font-weight:800; text-align:right; line-height:1.15; }
.vt-prest-waarde.boven { color:#15803d; }
.vt-prest-waarde.onder { color:#b91c1c; }
.vt-prest-waarde .vt-detail-regel { display:block; font-weight:500; }
.vt-prest-legenda { display:flex; flex-wrap:wrap; gap:0.35rem; margin-bottom:0.4rem; }
.vt-prest-chip { display:inline-flex; align-items:center; gap:0.35rem; min-height:44px; padding:0 0.65rem; border:1px solid #e5d9c9; border-radius:18px; background:#fff; font:inherit; font-size:0.8rem; cursor:pointer; opacity:0.5; }
.vt-prest-chip.on { opacity:1; border-color:#a83545; }
.vt-prest-chipmark { flex:0 0 16px; }
.vt-prest-marker:not(.hol) { stroke:#fff; paint-order:stroke; }
.vt-prest-asline { stroke:#9ca3af; stroke-width:1; }
.vt-prest-astitel { font-size:11px; font-weight:700; fill:#6b7280; }
.vt-prest-lijnstuk { fill:none; }
.vt-prest-punt:focus { outline:none; stroke:#2a1418; stroke-width:2; }
.vt-prest-svg { width:100%; max-width:480px; height:auto; display:block; margin:0 auto; touch-action:manipulation; }
.vt-prest-grid { stroke:#e5e7eb; stroke-width:1; }
.vt-prest-aslbl { font-size:11px; fill:#4b5563; }
.vt-prest-normlijn { stroke:#2a1418; stroke-width:2; stroke-dasharray:6 4; }
.vt-prest-normtxt { font-size:11px; font-weight:800; fill:#2a1418; }
.vt-prest-punt { cursor:pointer; }
.vt-prest-readout { min-height:2.4em; font-size:0.85rem; font-weight:600; padding:0.3rem 0; }
@media (max-width:420px){ .vt-prest-naam { flex-basis:26%; } .vt-prest-as { margin-left:26%; margin-right:5.2rem; } }
.vt-prest-balk.afgekapt { border-top-right-radius:0; border-bottom-right-radius:0; }
.vt-prest-normtxt { paint-order:stroke; stroke:#faf4ec; stroke-width:3px; stroke-linejoin:round; }

/* Normtijd vóór/tijdens het werken en in de afrondpopup */
.vt-normtijd { font-size:0.9rem; margin:0.3rem 0; padding:0.35rem 0.6rem; background:#faf4ec; border-radius:8px; }
.vt-afrond { text-align:left; margin-top:0.4rem; }
.vt-afrond-rij { display:flex; justify-content:space-between; align-items:baseline; gap:0.5rem; padding:0.35rem 0; border-bottom:1px solid #f3f4f6; font-size:1rem; }
.vt-afrond-rij strong { font-size:1.25rem; font-variant-numeric:tabular-nums; }
.vt-afrond-verschil { margin-top:0.6rem; padding:0.55rem; border-radius:10px; text-align:center; font-size:1.2rem; font-weight:800; background:#f3f4f6; }
.vt-afrond-verschil.vt-verschil-sneller { background:#dcfce7; color:#15803d; }
.vt-afrond-verschil.vt-verschil-langzamer { background:#fee2e2; color:#b91c1c; }
.vt-afrond-verschil.vt-verschil-binnen { background:#e0e7ff; color:#3730a3; }
