/* ============================================================
   C-ERP — Stylesheet · Cooper Groep design DNA → ERP application
   Roboto · paper-light + command-center dark · teal/navy/steel
   ============================================================ */

:root {
  --bg: #F4F1EC; --bg-2: #EAE5DD; --surface: #FFFFFF;
  --line: rgba(12,48,55,.10); --line-strong: rgba(12,48,55,.18);
  --text: #0C3037; --text-2: rgba(12,48,55,.78); --text-3: rgba(12,48,55,.70); /* DESIGNSYSTEEM-14: 4,5:1, gelijk aan platform/tokens.css */
  --navy: #13284A; --steel: #3F6178; --cyan: #1AB7EA;
  --brand: #006271; --brand-soft: rgba(0,98,113,.08);
  --signal: #9D1E2D; --signal-soft: rgba(157,30,45,.08);
  --amber: #B07D2B;
  --track: rgba(12,48,55,.08); --glass: rgba(12,48,55,.04);
  --bar-base: #3F6178; --bar: color-mix(in srgb, var(--brand) 26%, var(--bar-base));
  --shadow: 0 1px 2px rgba(12,48,55,.04), 0 10px 34px rgba(12,48,55,.055);
  --shadow-lg: 0 30px 80px rgba(12,48,55,.16);
  --radius: 16px;
  --f: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gap: 18px;
  --side-w: 250px;
}
[data-theme="dark"] {
  --bg: #0A1316; --bg-2: #122027; --surface: #0F1C21;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.18);
  --text: #EAF1F0; --text-2: rgba(234,241,240,.64); --text-3: rgba(234,241,240,.40);
  --steel: #6E8CA3; --navy: #6E8CA3;
  --signal: #E0566A; --signal-soft: rgba(224,86,106,.12);
  --amber: #D6A24A;
  --track: rgba(255,255,255,.08); --glass: rgba(255,255,255,.04);
  --bar-base: #45637A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 44px rgba(0,0,0,.42);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.5);
}
[data-density="compact"] { --gap: 12px; }
[data-density="comfy"]   { --gap: 26px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--f); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 14px; line-height: 1.5; overflow: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
kbd {
  font-family: var(--f); font-size: 10px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 6px; border-radius: 6px; background: var(--glass);
  border: 1px solid var(--line); color: var(--text-3); flex-shrink: 0;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- App layout ------------------------------ */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; grid-template-rows: 100vh; height: 100vh; overflow: hidden; background: var(--bg); }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.main__scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.screen { max-width: 1480px; margin: 0 auto; padding: 26px clamp(20px, 3vw, 40px) 60px; }

/* ---------------- Sidebar --------------------------------- */
.side {
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 14px; gap: 16px; height: 100vh; overflow-y: auto;
}
.side__brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 2px; }
.side__brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.side__brand-txt b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.side__brand-txt span { font-size: 10px; font-weight: 600; letter-spacing: .28em; color: var(--brand); }

/* BV switcher */
.bvsw__btn, .bvsw__item {
  width: 100%; display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 10px 11px; border-radius: 12px; transition: background .15s;
}
.bvsw__btn { border: 1px solid var(--line); background: var(--glass); }
.bvsw__btn:hover { background: var(--bg-2); }
.bvsw__chip {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.bvsw__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.bvsw__txt b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvsw__txt i { font-size: 10.5px; font-style: normal; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvsw__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; animation: pop .14s ease;
}
.bvsw__menu-h { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px 6px; }
.bvsw__item:hover { background: var(--bg-2); }
.bvsw__item.is-on { background: var(--brand-soft); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* nav */
.side__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.navitem {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px;
  font-size: 13.5px; font-weight: 450; color: var(--text-2); transition: color .15s; position: relative;
}
.navitem svg { color: var(--text-3); transition: color .15s; flex-shrink: 0; }
.navitem:hover { background: var(--bg-2); color: var(--text); }
.navitem:hover svg { color: var(--text-2); }
.navitem.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.navitem.is-on svg { color: var(--brand); }
[data-theme="dark"] .navitem { color: rgba(234,241,240,.74); }
[data-theme="dark"] .navitem svg { color: rgba(234,241,240,.5); }
.navitem span { flex: 1; }
.navitem__badge { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--text-3); background: var(--glass); padding: 1px 7px; border-radius: 999px; }
.navitem__live { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* AI CTA */
.ai-cta {
  margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 12px;
  border-radius: 14px; text-align: left; width: 100%;
  background: linear-gradient(135deg, var(--brand-soft), transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  transition: all .2s;
}
.ai-cta:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ai-cta__icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; color: #fff;
  background: var(--brand); display: flex; align-items: center; justify-content: center;
}
.ai-cta__txt { flex: 1; line-height: 1.25; }
.ai-cta__txt b { display: block; font-size: 12.5px; font-weight: 500; }
.ai-cta__txt span { font-size: 11px; color: var(--text-3); }

/* user */
.side__user { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-top: 1px solid var(--line); }
.side__avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
[data-theme="dark"] .side__avatar { background: var(--steel); }
.side__user-txt { flex: 1; line-height: 1.25; min-width: 0; }
.side__user-txt b { display: block; font-size: 12.5px; font-weight: 500; }
.side__user-txt span { font-size: 10.5px; color: var(--text-3); }

/* ---------------- Topbar ---------------------------------- */
.top {
  display: flex; align-items: center; gap: 18px; padding: 14px clamp(20px,3vw,40px);
  border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 0; z-index: 30; flex-shrink: 0;
}
.top__crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.top__crumb-cur { color: var(--text); }
.top__search {
  flex: 1; max-width: 540px; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-3); font-size: 13px; transition: all .15s;
}
.top__search:hover { border-color: var(--line-strong); }
.top__search span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.seg { display: flex; background: var(--glass); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg__btn { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--text-3); transition: all .15s; }
.seg__btn:hover { color: var(--text-2); }
.seg__btn.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.top__live { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--text-3); white-space: nowrap; }
.top__live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); animation: pulse 2s infinite; flex-shrink: 0; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.icon-btn:hover { background: var(--bg-2); color: var(--text); }
.icon-btn__dot { position: absolute; top: 9px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* ---------------- Screen head + buttons ------------------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 200; letter-spacing: -.025em; line-height: 1; }
.page-sub { font-size: 13.5px; color: var(--text-2); margin-top: 9px; }
.dash-head__actions { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; transition: all .18s; white-space: nowrap; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { filter: brightness(1.08); box-shadow: 0 6px 20px var(--brand-soft); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text-3); color: var(--text); }
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { filter: brightness(1.08); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--brand); transition: gap .15s; white-space: nowrap; }
.link-btn:hover { gap: 9px; }

/* ---------------- KPI strip ------------------------------- */
.kpi-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.fin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi__label { font-size: 11.5px; font-weight: 500; color: var(--text-3); letter-spacing: .02em; }
.kpi__val { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 4px; }
.kpi__num { font-size: 44px; font-weight: 200; letter-spacing: -.03em; line-height: .9; }
.kpi__unit { font-size: 16px; font-weight: 300; color: var(--text-3); }
.kpi__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 8px; }
.kpi__delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; }

/* ---------------- Cards ----------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-title { font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
/* h21: kaartkop (CardHead). Op een smal scherm slaat het label rechts om naar
   een eigen regel onder de titel en mag de tekst daarvan zelf omslaan, zodat niets
   over de kaartrand loopt en de volledige tekst leesbaar blijft. */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; min-width: 0; }
.card-head__t { min-width: 0; }
.card-head__t .card-title { overflow-wrap: anywhere; }
.card-head > :not(.card-head__t) { max-width: 100%; min-width: 0; }
@media (max-width: 600px) {
  .card-head { flex-wrap: wrap; column-gap: 12px; row-gap: 10px; }
  .card-head__t { flex: 1 1 auto; }
  .card-head > :not(.card-head__t) { flex: 0 1 auto; white-space: normal; overflow-wrap: anywhere; }
  .card-head > :not(.card-head__t) * { white-space: normal; }
}
.kick { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.legend { display: flex; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); font-weight: 500; }
.legend__sw { width: 12px; height: 8px; border-radius: 3px; display: inline-block; }
.legend__sw--dash { border-top: 1.5px dashed var(--text-3); background: transparent !important; height: 0; width: 14px; }

/* ---------------- Dashboard grid -------------------------- */
.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap); align-items: start; }
.dash-grid--equal { align-items: stretch; }
.dash-grid--equal > .dash-col { display: flex; }
.dash-grid--equal > .dash-col > .card { flex: 1; }
.dash-col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
@media (max-width: 1080px) { .dash-grid { grid-template-columns: 1fr; } .kpi-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Aanpasbaar dashboard (widgetbord) ------- */
.dash-custombar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-custombar__l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); min-width: 0; }
.dash-custombar__l svg { color: var(--text-3); flex-shrink: 0; }
.dash-custombar.is-edit { padding: 11px 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb,var(--brand) 22%,transparent); border-radius: 12px; }
.dash-custombar.is-edit .dash-custombar__l { color: var(--text-2); }
.dash-custombar.is-edit .dash-custombar__l svg { color: var(--brand); }
.dash-custombar__r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dash-cbtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); transition: all .14s; white-space: nowrap; }
.dash-cbtn:hover { color: var(--text); border-color: var(--line-strong); }
.dash-cbtn svg { color: var(--text-3); }
.dash-cbtn:hover svg { color: var(--text-2); }
.dash-cbtn.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.dash-cbtn.is-on svg { color: #fff; }

.dash-tray { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 14px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; }
.dash-tray__l { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.dash-tray__l svg { color: var(--text-3); }
.dash-tray__empty { font-size: 12.5px; color: var(--text-3); }
.dash-tray__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb,var(--brand) 26%,transparent); transition: filter .14s; }
.dash-tray__chip:hover { filter: brightness(1.06); }
.dash-tray__chip svg { color: var(--brand); }

.dw { position: relative; }
.dw.is-edit { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg-2); padding: 8px; cursor: grab; transition: border-color .14s, box-shadow .14s; }
.dw.is-edit:hover { border-color: var(--brand); }
.dw.is-edit:active { cursor: grabbing; }
.dw.is-drag { opacity: .45; box-shadow: 0 0 0 2px var(--brand); }
.dw__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 9px; }
.dw__grip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw__grip svg { color: var(--text-3); flex-shrink: 0; }
.dw__acts { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.dw__acts button { display: flex; padding: 6px; border-radius: 7px; color: var(--text-3); }
.dw__acts button:hover { color: var(--text); background: var(--surface); }
.dw__hide:hover { color: var(--neg) !important; background: color-mix(in srgb,var(--neg) 12%,transparent) !important; }
.dw__body { pointer-events: none; border-radius: 12px; overflow: hidden; }
.dw-empty { display: flex; align-items: center; justify-content: center; min-height: 130px; border: 2px dashed var(--line-strong); border-radius: 14px; color: var(--text-3); font-size: 12.5px; }
.dash-grid.is-edit .dash-col { gap: 12px; min-height: 90px; }

/* Portfolio rows */
.pf-list { display: flex; flex-direction: column; }
.pf-row { display: grid; grid-template-columns: 1.7fr 1.1fr 1fr .7fr auto; gap: 16px; align-items: center; padding: 13px 8px; border-top: 1px solid var(--line); text-align: left; transition: background .15s; border-radius: 8px; }
.pf-row:first-child { border-top: none; }
.pf-row:hover { background: var(--bg-2); }
.pf-row__id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pf-row__id b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row__id span { font-size: 11px; color: var(--text-3); }
.pf-row__prog-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; }
.pf-row__prog-top span { font-weight: 600; }
.pf-row__prog-top i { font-style: normal; color: var(--text-3); font-size: 11px; }
.pf-row__budget b { font-size: 12.5px; font-weight: 600; }
.pf-row__budget b i { font-style: normal; font-weight: 400; color: var(--text-3); }
.pf-row__budget span { display: block; font-size: 11px; margin-top: 2px; }
.pf-row__margin { font-size: 16px; font-weight: 500; text-align: right; }
.pf-row__margin i { display: block; font-style: normal; font-size: 10px; color: var(--text-3); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }

.bars-foot { display: flex; gap: 28px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.bars-foot b { font-size: 19px; font-weight: 300; letter-spacing: -.01em; }
.bars-foot span { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ---------------- Intelligence ---------------------------- */
.intel-card { background: linear-gradient(170deg, var(--brand-soft), transparent 60%), var(--surface); }
.intel-list { display: flex; flex-direction: column; gap: 12px; }
.insight { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: border-color .2s; }
.insight:hover { border-color: var(--line-strong); }
.insight__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.insight__icon { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.insight__label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.insight__title { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 5px; }
.insight__body { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.insight__action { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; margin-top: 10px; transition: gap .15s; }
.insight__action:hover { gap: 8px; }
.intel-inline { display: flex; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 11px; background: var(--brand-soft); }
.intel-inline p { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.intel-inline b { color: var(--text); font-weight: 600; }

/* ---------------- Health / alerts ------------------------- */
.health-wrap { display: flex; align-items: center; gap: 22px; }
.health-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.health-legend div { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.health-legend span { color: var(--text-2); flex: 1; }
.health-legend b { font-weight: 600; font-size: 14px; }
.alert-box { display: flex; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 11px; background: var(--signal-soft); border: 1px solid color-mix(in srgb, var(--signal) 18%, transparent); }
.alert-box b { display: block; font-size: 12.5px; font-weight: 600; }
.alert-box span { font-size: 11.5px; color: var(--text-2); line-height: 1.4; }

/* ---------------- Live feed ------------------------------- */
.live-head { padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.live-stats { display: flex; gap: 18px; margin-top: 10px; }
.live-stats span { font-size: 12px; color: var(--text-3); }
.live-stats b { font-size: 22px; font-weight: 300; color: var(--text); letter-spacing: -.02em; margin-right: 2px; }
.live-feed { padding: 8px 20px 16px; display: flex; flex-direction: column; }
.live-row { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.live-row:first-child { border-top: none; }
.live-row__t { font-size: 11px; font-weight: 600; color: var(--text-3); width: 34px; flex-shrink: 0; padding-top: 1px; font-variant-numeric: tabular-nums; }
.live-row__dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.live-row__body b { display: block; font-size: 12px; font-weight: 600; }
.live-row__body span { font-size: 12px; color: var(--text-2); line-height: 1.4; }

/* ---------------- Projects -------------------------------- */
.proj-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: 20px; }
.proj-summary div { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; }
.proj-summary span { font-size: 11.5px; color: var(--text-3); }
.proj-summary b { display: block; font-size: 24px; font-weight: 300; letter-spacing: -.02em; margin-top: 4px; }
.proj-bvbanner { display: flex; align-items: center; gap: 10px; padding: 11px 15px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.proj-bvbanner__dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.proj-bvbanner__txt { font-size: 13px; color: var(--text-2); }
.proj-bvbanner__txt b { color: var(--text); font-weight: 600; }
.proj-bvbanner__x { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 500; color: var(--text-2); transition: all .15s; }
.proj-bvbanner__x:hover { border-color: var(--line-strong); color: var(--text); }
.proj-filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text-2); background: var(--surface); transition: all .15s; }
.chip-btn:hover { border-color: var(--line-strong); }
.chip-btn.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-btn em { font-style: normal; font-size: 10.5px; color: var(--text-3); } /* h92: was opacity .6 (2,78:1), nu 5,43:1 */
.chip-btn.is-on em { color: inherit; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.proj-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .2s; display: flex; flex-direction: column; }
.proj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.proj-card__body { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.proj-card__top { display: flex; justify-content: space-between; align-items: center; }
.proj-card__bv { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.proj-card__id { font-size: 11px; color: var(--text-3); font-weight: 500; }
.proj-card__name { font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.proj-card__meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.proj-card__prog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; font-size: 12px; }
.proj-card__prog-top span { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.proj-card__prog-top b { font-weight: 600; }
.proj-card__foot { display: flex; justify-content: space-between; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.proj-card__foot span { font-size: 10.5px; color: var(--text-3); }
.proj-card__foot b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.dotmini { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

/* placeholder */
.ph { position: relative; overflow: hidden; background: var(--bg-2); display: flex; align-items: center; justify-content: center; }
.ph__stripes { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--glass) 0 10px, transparent 10px 20px); }
.ph__label { position: relative; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--text-3); font-family: 'Roboto Mono', monospace; }

/* ---------------- Project detail -------------------------- */
.back-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 18px; transition: gap .15s; }
.back-btn:hover { gap: 11px; color: var(--text); }
.pd-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--gap); }
.pd-hero__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(0deg, rgba(8,24,28,.82), rgba(8,24,28,.15) 60%, transparent); color: #fff; }
.pd-hero__tags { display: flex; gap: 8px; margin-bottom: 12px; }
.pd-hero__tags .ph__label, .pd-hero__overlay span { color: #fff; }
.pd-hero__title { font-size: clamp(26px, 3.6vw, 42px); font-weight: 200; letter-spacing: -.025em; line-height: 1; }
.pd-hero__meta { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.pd-hero__meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.82); }
.pd-hero__overlay .pd-hero__tags span { color: inherit; }
.alert-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 13px; background: var(--signal-soft); border: 1px solid color-mix(in srgb, var(--signal) 20%, transparent); margin-bottom: var(--gap); }
.alert-banner div { flex: 1; font-size: 13px; color: var(--text-2); }
.alert-banner b { color: var(--signal); font-weight: 700; margin-right: 6px; }
.pd-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.pd-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 15px; box-shadow: var(--shadow); }
.pd-kpi span { font-size: 11px; color: var(--text-3); }
.pd-kpi b { display: block; font-size: 23px; font-weight: 300; letter-spacing: -.02em; margin: 7px 0 3px; }
.pd-kpi i { font-size: 11px; font-style: normal; color: var(--text-3); }
.pd-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gap); align-items: stretch; }
@media (max-width: 1080px) { .pd-grid { grid-template-columns: 1fr; } .pd-kpis, .proj-summary, .fin-kpis { grid-template-columns: repeat(2,1fr); } }

.phases { display: flex; justify-content: space-between; gap: 6px; position: relative; }
.phases::before { content: ''; position: absolute; top: 13px; left: 4%; right: 4%; height: 2px; background: var(--track); }
.phase { display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; z-index: 1; flex: 1; }
.phase__dot { width: 27px; height: 27px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); color: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.phase__label { font-size: 11px; color: var(--text-3); font-weight: 500; text-align: center; }
.phase.is-done .phase__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.phase.is-done .phase__label { color: var(--text-2); }
.phase.is-now .phase__dot { background: var(--surface); border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.phase.is-now .phase__label { color: var(--text); font-weight: 600; }

.bud-rows, .cap-list, .margin-list { display: flex; flex-direction: column; gap: 13px; }
.bud-row, .cap-row, .margin-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: center; }
.bud-row__l, .cap-row__l { font-size: 12.5px; color: var(--text-2); }
.bud-row__bar, .cap-row__bar { position: relative; height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; }
.bud-row__fill, .cap-row__fill { height: 100%; border-radius: 8px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.cap-row__cap { position: absolute; right: 6px; top: -1px; font-size: 8px; color: var(--text-3); }
.bud-row__v { font-size: 12px; font-weight: 600; text-align: right; white-space: nowrap; }
.bud-row__v i { font-style: normal; font-weight: 400; color: var(--text-3); }
.cap-row__v, .margin-row__v { font-size: 13px; font-weight: 600; text-align: right; }

.team-list, .doc-list, .agenda { display: flex; flex-direction: column; }
.team-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); }
.team-row:first-child { border-top: none; }
.team-av { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.team-row b { display: block; font-size: 13px; font-weight: 500; }
.team-row span { font-size: 11.5px; color: var(--text-3); }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-align: left; width: 100%; transition: padding .15s; }
.doc-row:first-child { border-top: none; }
.doc-row:hover { padding-left: 4px; }
.doc-row span { flex: 1; font-size: 12.5px; font-weight: 450; }
.doc-row i { font-style: normal; font-size: 10.5px; color: var(--text-3); }

/* ---------------- Gantt ----------------------------------- */
.gantt { width: 100%; }
.gantt__axis { display: flex; margin-bottom: 8px; }
.gantt__axis-spacer { width: 230px; flex-shrink: 0; }
.gantt__weeks { flex: 1; display: flex; justify-content: space-between; }
.gantt__wk { font-size: 10px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.gantt__wk.is-now { color: var(--brand); }
.gantt__body { position: relative; }
.gantt__nowline { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--brand); opacity: .5; z-index: 2; }
.gantt__nowline::before { content: 'nu'; position: absolute; top: -2px; left: 3px; font-size: 8px; font-weight: 700; color: var(--brand); text-transform: uppercase; }
.gantt__row { display: flex; align-items: center; gap: 0; padding: 7px 0; border-top: 1px solid var(--line); }
.gantt__row:first-child { border-top: none; }
.gantt__label { width: 230px; flex-shrink: 0; display: flex; align-items: center; gap: 9px; padding-right: 14px; }
.gantt__label b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.gantt__label i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.gantt__track { flex: 1; position: relative; height: 28px; }
.gbar { position: absolute; top: 2px; height: 24px; border-radius: 6px; display: flex; align-items: center; padding: 0 9px; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; border: 1px solid transparent; }
.gbar span { overflow: hidden; text-overflow: ellipsis; }
.gbar--now { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.gbar__pulse { width: 5px; height: 5px; border-radius: 50%; background: #fff; margin-left: 6px; animation: pulse 1.6s infinite; flex-shrink: 0; }
.gantt--compact .gantt__track { height: 26px; }

.cap-row__bar { height: 9px; }
.margin-row { grid-template-columns: 1.4fr 1fr auto; }
.margin-row__name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.margin-row__track { position: relative; height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; }
.margin-row__target { position: absolute; left: 48%; top: -2px; bottom: -2px; width: 1.5px; background: var(--text-3); z-index: 1; }
.margin-row__fill { height: 100%; border-radius: 8px; }

/* agenda */
.agenda-row { display: flex; gap: 12px; padding: 4px 0; }
.agenda-row__t { font-size: 11.5px; font-weight: 600; color: var(--text-2); width: 38px; flex-shrink: 0; padding-top: 1px; font-variant-numeric: tabular-nums; }
.agenda-row__line { display: flex; flex-direction: column; align-items: center; }
.agenda-row__dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand); margin-top: 3px; }
.agenda-row__line::after { content: ''; flex: 1; width: 2px; background: var(--line); margin-top: 2px; }
.agenda-row:last-child .agenda-row__line::after { display: none; }
.agenda-row__body { padding-bottom: 16px; }
.agenda-row__body b { display: block; font-size: 13px; font-weight: 500; }
.agenda-row__body span { font-size: 11.5px; color: var(--text-3); }

/* ---------------- Finance --------------------------------- */
.deb-table, .deb-head, .deb-row { width: 100%; }
.deb-head, .deb-row { display: grid; grid-template-columns: 2fr 1fr .6fr 1fr; gap: 12px; align-items: center; }
.deb-head { padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.deb-head span { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.deb-row { padding: 12px 0; border-top: 1px solid var(--line); }
.deb-row:first-of-type { border-top: none; }
.deb-row__name { font-size: 13px; font-weight: 450; }
.deb-row__amt { font-size: 13px; font-weight: 600; text-align: right; }
.deb-row__days { font-size: 12px; text-align: center; font-weight: 500; }

/* ---------------- Empty state ----------------------------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; gap: 14px; min-height: 50vh; }
.empty__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--brand); box-shadow: var(--shadow); }
.empty h2 { font-size: 26px; font-weight: 300; letter-spacing: -.02em; }
.empty p { font-size: 14px; color: var(--text-2); max-width: 420px; line-height: 1.55; }
.empty__chips { display: flex; gap: 8px; margin-top: 6px; }

/* ---------------- Command palette ------------------------- */
.cmd__overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8,24,28,.42); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; animation: fade .14s; }
[data-theme="dark"] .cmd__overlay { background: rgba(0,0,0,.6); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cmd { width: min(620px, 92vw); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .16s ease; }
.cmd__bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmd__spark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmd__input { flex: 1; border: none; outline: none; background: none; font-size: 15px; color: var(--text); font-family: inherit; }
.cmd__input::placeholder { color: var(--text-3); }
.cmd__list { padding: 8px; }
.cmd__list-h { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px; }
.cmd__item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; text-align: left; font-size: 13.5px; color: var(--text-2); transition: all .12s; }
.cmd__item:hover { background: var(--bg-2); color: var(--text); }
.cmd__item.is-active { background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--brand) 32%,transparent); }
.cmd__item > span:not(.cmd__tag) { flex: 1; min-width: 0; }
.cmd__tag { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.cmd__tag--action { color: var(--amber-tekst); background: color-mix(in srgb,var(--amber) 14%,transparent); }
.cmd__tag--nav { color: var(--steel); background: color-mix(in srgb,var(--steel) 14%,transparent); }
.cmd__tag--ask { color: var(--brand); background: var(--brand-soft); }
.cmd__tag--record { color: var(--pos-tekst); background: color-mix(in srgb,var(--pos) 13%,transparent); }
.cmd__sub { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd__answer { padding: 20px; }
.cmd__answer-h { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.cmd__answer p { font-size: 14.5px; line-height: 1.6; color: var(--text); min-height: 70px; }
.cmd__caret { display: inline-block; width: 2px; height: 15px; background: var(--brand); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cmd__answer-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ============================================================
   PROJECTWERKBLAD (workspace)
   ============================================================ */
.pw-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--gap); }
.pw-hero__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px; background: linear-gradient(0deg, rgba(8,24,28,.86), rgba(8,24,28,.18) 55%, transparent); color: #fff; }
.pw-hero__main { min-width: 0; }
.pw-hero__title { font-size: clamp(26px, 3.6vw, 42px); font-weight: 200; letter-spacing: -.025em; line-height: 1; }
.pw-hero .pd-hero__tags { margin-bottom: 12px; }
.pw-hero .pd-hero__tags .ph__label { color: #fff; }
.pw-hero .pd-hero__meta span { color: rgba(255,255,255,.82); }
.pw-hero__status { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 13px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); flex-shrink: 0; }
.pw-hero__status b { display: block; font-size: 14px; font-weight: 500; }
.pw-hero__status span { font-size: 11px; color: rgba(255,255,255,.7); }

.pw-tabs { display: flex; gap: 4px; margin: 4px 0 var(--gap); border-bottom: 1px solid var(--line); overflow-x: auto; }
.pw-tab { position: relative; padding: 12px 16px; font-size: 13.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pw-tab:hover { color: var(--text-2); }
.pw-tab.is-on { color: var(--brand); border-bottom-color: var(--brand); }
.pw-tab__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); display: inline-block; margin-left: 6px; vertical-align: 2px; }

.pw-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pw-meta-grid span { font-size: 11px; color: var(--text-3); }
.pw-meta-grid b { display: block; font-size: 13.5px; font-weight: 500; margin-top: 2px; }

/* prognose marker on overzicht bars */
.bud-row__bar { position: relative; }
.bud-row__fc { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text-2); border-radius: 2px; }

/* mini meerwerk */
.mw-mini { display: flex; flex-direction: column; }
.mw-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mw-mini__row:first-child { border-top: none; }
.mw-mini__row b { font-size: 12.5px; font-weight: 600; }
.mw-mini__row span { display: block; font-size: 11.5px; color: var(--text-2); line-height: 1.4; }
.mw-mini__amt { white-space: nowrap; }

/* mini log */
.log-mini { display: flex; flex-direction: column; }
.log-mini__row { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.log-mini__row:first-child { border-top: none; }
.log-mini__date { width: 64px; flex-shrink: 0; }
.log-mini__date b { display: block; font-size: 12.5px; font-weight: 600; }
.log-mini__date span { font-size: 10.5px; color: var(--text-3); }
.log-mini__row p { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }

/* mini milestones */
.ms-mini { display: flex; flex-direction: column; }
.ms-mini__row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.ms-mini__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.ms-mini__label { flex: 1; font-size: 12.5px; color: var(--text-2); }
.ms-mini__date { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ms-mini__row.ms-done .ms-mini__dot { background: var(--brand); border-color: var(--brand); }
.ms-mini__row.ms-done .ms-mini__label { color: var(--text); }
.ms-mini__row.ms-now .ms-mini__dot { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ms-mini__row.ms-now .ms-mini__label { color: var(--text); font-weight: 600; }

/* financieel 3 kpis */
.fin3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* begrotingstabel */
.bgt { width: 100%; }
.bgt__head, .bgt__row { display: grid; grid-template-columns: 1.5fr 88px 88px 88px 84px 1.4fr; gap: 12px; align-items: center; }
.bgt__head { padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.bgt__head span { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); text-align: right; }
.bgt__head span:first-child, .bgt__barcol { text-align: left; }
.bgt__row { padding: 9px 0; border-top: 1px solid var(--line); }
.bgt__row:first-of-type { border-top: none; }
.bgt__post { font-size: 12.5px; color: var(--text-2); }
.bgt__num { font-size: 12.5px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.bgt__bar { position: relative; height: 16px; }
.bgt__bar-budget { position: absolute; top: 5px; left: 0; height: 6px; border-radius: 4px; background: var(--track); }
.bgt__bar-spent { position: absolute; top: 5px; left: 0; height: 6px; border-radius: 4px; }
.bgt__bar-fc { position: absolute; top: 1px; bottom: 1px; width: 2px; background: var(--text-2); border-radius: 2px; }
.bgt__total { border-top: 2px solid var(--line-strong); margin-top: 2px; }
.bgt__total .bgt__post, .bgt__total .bgt__num { font-weight: 700; color: var(--text); font-size: 13px; }
@media (max-width: 920px) { .bgt__head, .bgt__row { grid-template-columns: 1.4fr 70px 70px 70px 64px; } .bgt__barcol, .bgt__bar { display: none; } }

/* meerwerk list */
.mw-list { display: flex; flex-direction: column; }
.mw-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mw-row:first-child { border-top: none; }
.mw-row__main b { font-size: 13px; font-weight: 600; margin-right: 8px; }
.mw-row__main span { font-size: 12.5px; color: var(--text-2); }
.mw-row__amt { font-size: 13px; font-weight: 600; white-space: nowrap; }
.mw-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mw-foot span { font-size: 12.5px; color: var(--text-2); }
.mw-foot b { font-size: 14px; font-weight: 700; }

/* termijnen */
.tm-list { display: flex; flex-direction: column; }
.tm-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.tm-row:first-child { border-top: none; }
.tm-row__nr { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.tm-row__main { flex: 1; min-width: 0; }
.tm-row__main b { display: block; font-size: 12.5px; font-weight: 500; }
.tm-row__main span { font-size: 11px; color: var(--text-3); }
.tm-row__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tm-row__right b { font-size: 13px; font-weight: 600; }
.tm-summary { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.tm-summary span { font-size: 10.5px; color: var(--text-3); display: block; }
.tm-summary b { font-size: 15px; font-weight: 300; letter-spacing: -.01em; margin-top: 3px; display: block; }

/* milestone track (planning) */
.ms-track { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ms-node { flex: 1; min-width: 110px; display: flex; flex-direction: column; gap: 9px; padding-top: 22px; position: relative; }
.ms-node::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--track); }
.ms-node:first-child::before { left: 50%; }
.ms-node:last-child::before { right: 50%; }
.ms-node__dot { position: absolute; top: 1px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: #fff; }
.ms-node__label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.ms-node__date { font-size: 10.5px; color: var(--text-3); }
.ms-node.ms-done .ms-node__dot { background: var(--brand); border-color: var(--brand); }
.ms-node.ms-done::before { background: var(--brand); }
.ms-node.ms-done .ms-node__label { color: var(--text); }
.ms-node.ms-now .ms-node__dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ms-node.ms-now .ms-node__label { color: var(--text); font-weight: 600; }

/* tasks */
.task-list { display: flex; flex-direction: column; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.task-row:first-child { border-top: none; }
.task-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.task-check.is-done { background: var(--brand); border-color: var(--brand); }
.task-txt { flex: 1; font-size: 13px; }
.task-txt.is-done { color: var(--text-3); text-decoration: line-through; }
.task-who { font-size: 11.5px; color: var(--text-3); }

/* dagrapporten */
.dr-list { display: flex; flex-direction: column; gap: 12px; }
.dr-card { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.dr-card__date { width: 60px; flex-shrink: 0; text-align: center; padding-top: 2px; }
.dr-card__date b { display: block; font-size: 15px; font-weight: 600; line-height: 1.1; }
.dr-card__date span { font-size: 11px; color: var(--text-3); text-transform: uppercase; }
.dr-card__body { flex: 1; }
.dr-card__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.dr-card__meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.dr-card__body p { font-size: 13.5px; color: var(--text); line-height: 1.55; }
.dr-card__by { display: block; margin-top: 8px; font-size: 11.5px; color: var(--text-3); font-style: italic; }

/* team grid */
.tm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tm-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.tm-card__av { width: 38px; height: 38px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tm-card b { font-size: 14px; font-weight: 500; }
.tm-card__role { font-size: 12px; color: var(--text-2); }
.tm-card__tel { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* onderaannemers */
.sub-list { display: flex; flex-direction: column; }
.sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sub-row:first-child { border-top: none; }
.sub-row__main b { display: block; font-size: 13px; font-weight: 500; }
.sub-row__main span { font-size: 11.5px; color: var(--text-3); }

/* documenten categorieën */
.doc-cats { display: flex; flex-direction: column; gap: 22px; }
.doc-cat__head { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc-cat__head em { font-style: normal; font-size: 10.5px; color: var(--text-3); background: var(--glass); padding: 1px 7px; border-radius: 999px; }
.doc-row2 { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 8px; text-align: left; width: 100%; transition: background .12s; }
.doc-row2:hover { background: var(--bg-2); }
.doc-row2__name { flex: 1; font-size: 13px; font-weight: 450; }
.doc-row2__v { font-size: 11px; color: var(--text-3); font-family: 'Roboto Mono', monospace; }
.doc-row2__date { font-size: 11.5px; color: var(--text-3); width: 80px; text-align: right; }

/* foto's */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.photo-tile { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.photo-tile__cap { display: block; padding: 11px 14px; font-size: 12px; color: var(--text-2); font-weight: 500; }
@media (max-width: 1080px) { .fin3, .tm-grid, .pw-meta-grid { grid-template-columns: 1fr 1fr; } }
