/* Alternatieve bordweergaven + werkruimte-overzicht. Alle klassen met v- prefix. */

/* ---------- Basis ---------- */
.v-wrap { margin: 12px; padding: 14px 16px 18px; background: var(--surface); color: var(--ink); border-radius: var(--r-panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); min-width: 0; }
.v-wrap.v-fill { height: calc(100% - 24px); min-height: 420px; display: flex; flex-direction: column; }
.v-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; }
.v-heading { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.v-heading .ic { color: var(--ink-3); flex-shrink: 0; }
.v-spacer { flex: 1; }
.v-ctl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.v-select { width: auto; min-height: 32px; padding: 4px 8px; font-size: 13.5px; }
.v-btngroup { display: inline-flex; align-items: center; gap: 4px; }
.v-hint { margin: 10px 2px 0; }
.v-none { color: var(--ink-3); }
.v-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.v-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.v-clip { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; min-width: 0; }
.v-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.v-strip { display: flex; gap: 3px; flex-wrap: wrap; }
.v-strip > span { display: block; width: 22px; height: 4px; border-radius: 2px; }
.v-wrap .badge { font-variant-numeric: tabular-nums; }

/* ---------- Tabel ---------- */
.v-table-wrap { max-width: 100%; }
.v-table .tbl td { white-space: nowrap; }
.v-table .tbl td.v-title { white-space: normal; min-width: 220px; }
.v-title-text { font-weight: 600; }
.v-num { width: 56px; font-variant-numeric: tabular-nums; }
.v-numcol { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.v-numcol .v-sort { flex-direction: row-reverse; }
.v-sort { border: 0; background: none; padding: 2px 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border-radius: 4px; }
.v-sort:hover, .v-sort.on { color: var(--ink); }
.v-group-row th { position: static; background: var(--surface-2); color: var(--ink); font-size: 13.5px; padding: 8px 12px; border-top: 1px solid var(--line); }
.v-group-name { display: inline-flex; align-items: center; gap: 8px; }
.v-table .tbl tr.clickable:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.v-table .tbl tr.clickable:focus-visible td { background: var(--signal-soft); }
.v-lbls { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.v-lbls .lbl { max-width: 120px; }
.v-more { font-size: 12px; color: var(--ink-3); margin-left: 4px; align-self: center; }
.v-due { display: inline-block; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 13px; }
.v-prog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.v-prog-bar { width: 48px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.v-prog-bar > span { display: block; height: 100%; background: var(--signal); }
.v-prog.complete { color: var(--mint); font-weight: 600; }
.v-prog.complete .v-prog-bar > span { background: var(--mint); }
.v-check { color: var(--mint); display: inline-flex; }
.v-opt, .v-board { display: inline-flex; align-items: center; gap: 6px; }
.v-inline-select { max-width: 190px; padding: 3px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 13.5px; cursor: pointer; }
.v-inline-select:hover { border-color: var(--line); background: var(--surface); }
.v-inline-select:focus-visible { outline: 2px solid var(--signal); outline-offset: 0; }

/* ---------- Kalender ---------- */
.v-cal-title { min-width: 210px; }
.v-cal-scroll { overflow-x: auto; }
.v-cal-grid { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.v-cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.v-cal-head > div { padding: 7px 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.v-wd-short { display: none; }
.v-cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.v-cal-day { min-height: 116px; padding: 4px 5px 6px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: background .12s; }
.v-cal-day:nth-child(7n + 1) { border-left: 0; }
.v-cal-day:nth-child(-n + 7) { border-top: 0; }
.v-cal-day.weekend { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.v-cal-day.out { background: var(--surface-2); }
.v-cal-day.out .v-cal-num { color: var(--ink-3); font-weight: 500; }
.v-cal-day.drop { background: var(--signal-soft); outline: 2px dashed var(--signal); outline-offset: -3px; }
.v-cal-dayhead { display: flex; align-items: center; gap: 4px; min-height: 26px; }
.v-cal-wd { display: none; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.v-cal-num { font-size: 13px; font-weight: 700; padding: 1px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.v-cal-day.today .v-cal-num { background: var(--signal); color: var(--signal-ink); }
.v-cal-add { margin-left: auto; opacity: 0; color: var(--ink-2); }
.v-cal-day:hover .v-cal-add, .v-cal-add:focus-visible { opacity: 1; }
@media (hover: none) { .v-cal-add { opacity: .7; } }
.v-cal-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v-chip { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; text-align: left; border: 0; border-left: 3px solid transparent; border-radius: 6px; padding: 3px 6px; background: var(--surface-2); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.3; cursor: pointer; box-shadow: var(--card-shadow); }
.v-chip:hover { background: var(--surface-3); }
.v-chip[draggable="true"] { cursor: grab; }
.v-chip.dragging { opacity: .45; }
.v-chip-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-chip-text .ic { vertical-align: -2px; margin-right: 3px; }
.v-chip-time { color: var(--ink-3); font-weight: 700; margin-right: 5px; font-variant-numeric: tabular-nums; }
.v-chip.is-overdue { background: var(--red-soft); border-left-color: var(--red); }
.v-chip.is-soon { background: var(--amber-soft); border-left-color: var(--amber); }
.v-chip.is-done { background: var(--mint-soft); border-left-color: var(--mint); color: var(--ink-2); }
.v-chip.is-done .ic { color: var(--mint); }
.v-chip.by-start { background: transparent; box-shadow: inset 0 0 0 1px var(--line); border-left-style: dashed; border-left-color: var(--ink-3); }
.v-cal-more { border: 0; background: none; color: var(--ink-2); font-size: 12px; font-weight: 600; text-align: left; padding: 2px 6px; border-radius: 4px; cursor: pointer; }
.v-cal-more:hover { color: var(--ink); text-decoration: underline; }
.v-cal-popchips { display: flex; flex-direction: column; gap: 4px; }
.v-cal-week .v-cal-day { min-height: 360px; }
.v-cal-week .v-chip-text { white-space: normal; }

/* ---------- Tijdlijn ---------- */
.v-tl-layout { display: flex; gap: 12px; flex: 1; min-height: 0; }
.v-tl-main { flex: 1; min-width: 0; display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.v-tl-scroll { flex: 1; overflow: auto; min-height: 260px; overscroll-behavior: contain; }
.v-tl-canvas { position: relative; }
.v-tl-head { position: sticky; top: 0; z-index: 6; display: flex; height: 50px; background: var(--surface); border-bottom: 1px solid var(--line); }
.v-tl-corner { position: sticky; left: 0; z-index: 7; flex: none; display: flex; align-items: flex-end; padding: 0 10px 7px; background: var(--surface); border-right: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.v-tl-scale { position: relative; flex: none; }
.v-tl-tier { position: absolute; left: 0; right: 0; height: 25px; }
.v-tl-tier.top { top: 0; border-bottom: 1px solid var(--line); }
.v-tl-tier.bottom { top: 25px; }
.v-tl-cell { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 5px; border-left: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.v-tl-tier.top .v-tl-cell { color: var(--ink-2); font-weight: 700; overflow: visible; }
.v-tl-tier.top .v-tl-cell > span { position: sticky; left: 218px; }
.v-tl-tier.bottom .v-tl-cell { justify-content: center; padding: 0 2px; }
.v-tl-cell.weekend { color: color-mix(in srgb, var(--ink-3) 70%, transparent); }
.v-tl-cell.today { color: var(--red); }
.v-tl-body { position: relative; }
.v-tl-grid { position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 0; }
.v-tl-gl { position: absolute; top: 0; bottom: 0; border-left: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.v-tl-gl.weekend { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.v-tl-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--red); z-index: 2; }
.v-tl-today > span { position: absolute; top: 2px; left: 4px; font-size: 10.5px; font-weight: 700; color: var(--red); background: var(--surface); padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.v-tl-grouprow { display: flex; height: 32px; position: relative; z-index: 3; background: color-mix(in srgb, var(--surface-2) 80%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v-tl-grouplabel { position: sticky; left: 0; z-index: 4; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 10px; background: var(--surface-2); border-right: 1px solid var(--line); font-size: 13.5px; font-weight: 700; min-width: 0; }
.v-tl-grouplabel .v-clip { max-width: 140px; }
.v-tl-row { display: flex; height: 36px; position: relative; z-index: 1; }
.v-tl-row:hover .v-tl-label { background: var(--surface-2); }
.v-tl-label { position: sticky; left: 0; z-index: 4; flex: none; display: flex; align-items: center; padding: 0 6px 0 10px; background: var(--surface); border-right: 1px solid var(--line); min-width: 0; }
.v-tl-name { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; border: 0; background: none; padding: 4px 2px; text-align: left; font-size: 13px; color: var(--ink); cursor: pointer; border-radius: 4px; }
.v-tl-name:hover .v-clip { text-decoration: underline; }
.v-tl-name .v-clip { max-width: none; flex: 1; }
.v-tl-numtag { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.v-tl-track { position: relative; flex: none; }
.v-tl-bar { position: absolute; top: 6px; height: 24px; display: flex; align-items: center; border-radius: 6px; background: color-mix(in srgb, var(--bar, var(--signal)) 24%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bar, var(--signal)) 70%, var(--surface)); border-left: 4px solid var(--bar, var(--signal)); color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none; -webkit-user-select: none; overflow: hidden; z-index: 2; transition: box-shadow .12s; }
.v-tl-bar:hover { box-shadow: var(--card-shadow), 0 0 0 1px var(--bar, var(--signal)); }
.v-tl-bar:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.v-tl-bar.editable { cursor: grab; touch-action: none; }
.v-tl-bar.dragging { cursor: grabbing; box-shadow: var(--pop-shadow); z-index: 5; transition: none; }
.v-tl-bar.is-overdue { box-shadow: inset -4px 0 0 var(--red); }
.v-tl-bar.is-done { opacity: .62; }
.v-tl-bar-text { flex: 1; min-width: 0; padding: 0 8px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.v-tl-h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 1; }
.v-tl-h-start { left: -4px; }
.v-tl-h-end { right: 0; }
.v-tl-h:hover, .v-tl-bar.dragging .v-tl-h { background: color-mix(in srgb, var(--bar, var(--signal)) 45%, transparent); }
.v-tl-out { position: absolute; top: 0; line-height: 36px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; pointer-events: none; z-index: 1; }
.v-tl-tip { position: absolute; top: -16px; z-index: 8; padding: 1px 6px; border-radius: 4px; background: var(--ink); color: var(--surface); font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.v-tl-aside { flex: 0 0 250px; align-self: flex-start; max-height: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.v-tl-aside summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; padding: 4px 2px; border-radius: 4px; list-style: none; }
.v-tl-aside summary::-webkit-details-marker { display: none; }
.v-tl-aside summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; margin: 0 2px; }
.v-tl-aside[open] summary::before { transform: rotate(45deg); }
.v-tl-aside p { margin: 8px 2px 2px; }
.v-tl-undated { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.v-tl-uitem { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; border: 0; border-radius: 6px; padding: 6px 8px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.v-tl-uitem:hover { background: var(--surface-3); }
.v-tl-uitem .v-clip { max-width: 100%; }
.v-tl-uitem .small { font-weight: 500; }

/* ---------- Dashboard ---------- */
.v-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-bottom: 14px; }
.v-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.v-tile-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--signal-soft); color: var(--signal); flex-shrink: 0; }
.v-tile-val { font-family: var(--font-display); font-size: 26px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.v-tile-label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.v-dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.v-dash-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 12px; background: var(--surface); min-width: 0; }
.v-dash-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.v-dash-card h3 { font-size: 15px; }
.v-dash-empty { padding: 24px 0; text-align: center; }
.v-chart-scroll { overflow-x: auto; }
.v-svg { display: block; font-family: var(--font-ui); max-width: none; }
.v-svg-h { max-width: 100%; height: auto; }
.v-svg .v-val { fill: var(--ink); font-size: 12px; font-weight: 700; }
.v-svg .v-cat { fill: var(--ink-2); font-size: 11.5px; }
.v-svg .v-axis { stroke: var(--line); stroke-width: 1; }
.v-svg .v-bar { fill: var(--signal); }
.v-svg .v-track { fill: var(--surface-2); }
.v-dl { display: flex; flex-direction: column; gap: 14px; }
.v-stack { display: block; border-radius: 6px; overflow: hidden; }
.v-stack rect { stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.v-seg-overdue, .v-sw-overdue { fill: var(--red); background: var(--red); }
.v-seg-soon, .v-sw-soon { fill: var(--amber); background: var(--amber); }
.v-seg-later, .v-sw-later { fill: var(--signal); background: var(--signal); }
.v-seg-done, .v-sw-done { fill: var(--mint); background: var(--mint); }
.v-seg-none, .v-sw-none { fill: var(--ink-3); background: var(--ink-3); }
.v-seg-empty { fill: var(--surface-2); }
.v-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v-legend li { display: grid; grid-template-columns: 12px 1fr auto 44px; align-items: center; gap: 10px; font-size: 13.5px; }
.v-legend strong { font-variant-numeric: tabular-nums; }
.v-legend .small { text-align: right; font-variant-numeric: tabular-nums; }
.v-sw { width: 12px; height: 12px; border-radius: 3px; }

/* ---------- Kaart ---------- */
.v-map-box { position: relative; flex: 1; min-height: 380px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; isolation: isolate; }
.v-map { position: absolute; inset: 0; background: var(--surface-2); }
.v-map-empty { position: absolute; z-index: 1000; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100% - 32px)); background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--pop-shadow); pointer-events: auto; }
.v-map-empty .empty { padding: 24px 18px; }
.v-mapwrap .leaflet-popup-content-wrapper, .v-mapwrap .leaflet-popup-tip { background: var(--surface); color: var(--ink); box-shadow: var(--pop-shadow); }
.v-mapwrap .leaflet-popup-content { margin: 12px 14px; font-family: var(--font-ui); }
.v-mapwrap .leaflet-container a.leaflet-popup-close-button { color: var(--ink-3); }
.v-mapwrap .leaflet-control-attribution { font-size: 11px; }
.v-map-pop { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.v-map-pop-title { border: 0; background: none; padding: 0; text-align: left; font: inherit; font-family: var(--font-display); font-size: 15px; font-weight: 650; color: var(--signal); cursor: pointer; border-radius: 3px; }
.v-map-pop-title:hover { text-decoration: underline; }
.v-map-pop-loc { display: flex; gap: 5px; align-items: flex-start; color: var(--ink-2); }
.v-map-pop-loc .ic { margin-top: 2px; flex-shrink: 0; }
.v-map-pop-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-3); font-size: 12.5px; }
.v-map-pop-meta .due { padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* ---------- Werkruimte ---------- */
.v-ws-page { max-width: 1320px; }
.v-ws-page .page-head .btn { align-self: flex-end; }
.v-ws-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 14px; }
.v-ws-boards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.v-ws-flabel { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-right: 4px; }
.v-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.v-fchip:hover { border-color: var(--ink-3); color: var(--ink); }
.v-fchip.on { background: var(--signal-soft); border-color: var(--signal); color: var(--signal); }
.v-fchip-n { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.v-fchip.on .v-fchip-n { color: inherit; }
.v-ws-mine { font-weight: 600; font-size: 14px; }
.v-ws-loading { display: grid; place-items: center; padding: 60px 0; }
.v-ws-surface .v-wrap { margin: 0; box-shadow: none; border: 1px solid var(--line); }

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
  .v-tl-layout { flex-direction: column; }
  .v-tl-aside { flex: none; align-self: stretch; max-height: none; }
  .v-tl-main { min-height: 320px; }
}
@media (max-width: 640px) {
  .v-wrap { margin: 8px; padding: 12px 10px 14px; }
  .v-wrap.v-fill { height: calc(100% - 16px); }
  .v-heading { font-size: 16px; }
  .v-toolbar .v-spacer { display: none; }
  .v-cal-title { min-width: 0; flex-basis: 100%; }
  .v-cal-month { min-width: 620px; }
  .v-wd-long { display: none; }
  .v-wd-short { display: inline; }
  .v-cal-week .v-cal-head { display: none; }
  .v-cal-week .v-cal-cells { grid-template-columns: 1fr; }
  .v-cal-week .v-cal-day { min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .v-cal-week .v-cal-day:first-child { border-top: 0; }
  .v-cal-week .v-cal-wd { display: inline; }
  .v-cal-week .v-cal-add { opacity: 1; }
  .v-tl-tier.top .v-tl-cell > span { left: 168px; }
  .v-legend li { grid-template-columns: 12px 1fr auto 40px; }
  .v-ws-filters { flex-direction: column; align-items: flex-start; }
}
