/* 12Guide Project Resource Planning - stijlen (IFS Cloud-achtige look) */
:root {
  --acc: #5b2ea6;
  --nav: #1e1b45;
  --nav-t: #ffffff;
  /* Look & Feel: onderstaande tinten worden afgeleid van de accentkleur (in te stellen door de beheerder) */
  --acc-d: color-mix(in srgb, var(--acc) 82%, #000);
  --acc-dk: color-mix(in srgb, var(--acc) 62%, #000);
  --acc-1: color-mix(in srgb, var(--acc) 3%, #fff);
  --acc-2: color-mix(in srgb, var(--acc) 6%, #fff);
  --acc-3: color-mix(in srgb, var(--acc) 9%, #fff);
  --acc-4: color-mix(in srgb, var(--acc) 15%, #fff);
  --acc-5: color-mix(in srgb, var(--acc) 40%, #fff);
  --nav-t2: color-mix(in srgb, var(--nav-t) 75%, var(--nav));
  --font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-h: var(--font);
  --bg: #f3f3f7;
  --surface: #fff;
  --text: #1d1d27;
  --muted: #595868;
  --border: #dddce5;
  --line: #e7e6ee;
  --head: #f1f0f6;
  --sel: color-mix(in srgb, var(--acc) 13%, #fff);
  --now: #fffaea;
  --short-bg: #fde4cf; --short-t: #7a3300;
  --over-bg: #e2ecfb; --over-t: #0d4a8c;
  --dirty: #d06a00;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-family: var(--font); color: var(--text); font-size: 14px; }
a { color: var(--acc-d); }
a:hover { color: var(--acc-dk); }
button { font: inherit; }
.loading { padding: 48px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.sp { flex: 1; }
.acc { color: var(--acc); }

/* ---------- Frame ---------- */
.app { min-height: 100vh; }
.top { height: 48px; background: var(--nav); color: var(--nav-t); display: flex; align-items: center; gap: 12px; padding: 0 12px 0 8px; position: sticky; top: 0; z-index: 40; }
.top .brand { font-weight: 700; color: var(--nav-t); text-decoration: none; letter-spacing: .2px; }
.top .app-n { color: var(--nav-t2); font-weight: 500; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.ib:hover { background: rgba(255, 255, 255, .12); }
.ib.dark:hover { background: var(--acc-3); }
.ib:disabled { opacity: .35; cursor: default; }
.ubtn { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.ubtn:hover { background: rgba(255, 255, 255, .12); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--nav-t) 22%, var(--nav)); color: var(--nav-t); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.umenu { position: absolute; right: 12px; top: 52px; min-width: 240px; padding: 6px 0; z-index: 50; color: var(--text); }
.umenu .um-h { padding: 8px 14px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.umenu .um-h span { font-size: 12px; color: var(--muted); }
.umenu button { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: transparent; padding: 9px 14px; cursor: pointer; text-align: left; }
.umenu button:hover { background: var(--acc-3); }
.nav-back { position: fixed; inset: 48px 0 0 0; background: rgba(20, 18, 50, .25); z-index: 30; }
.nav { position: fixed; top: 48px; bottom: 0; left: 0; width: 280px; background: #fff; border-right: 1px solid var(--border); z-index: 35; transform: translateX(-100%); transition: transform .18s; padding: 8px 0; visibility: hidden; }
.nav.open { transform: none; visibility: visible; box-shadow: 4px 0 24px rgba(30, 27, 69, .15); }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 14px 18px 6px; font-weight: 600; }
.nav-i { display: flex; gap: 12px; align-items: center; padding: 10px 18px; color: var(--text); text-decoration: none; }
.nav-i:hover { background: var(--acc-3); color: var(--text); }
.nav-i.on { background: var(--sel); font-weight: 600; box-shadow: inset 3px 0 0 var(--acc); }
.crumb { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumb b { color: var(--text); font-weight: 600; }
.crumb .sep { margin: 0 6px; }
.wrap { padding: 16px 24px 48px; display: flex; flex-direction: column; gap: 12px; max-width: 100%; }

/* ---------- Basis-componenten ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.page-h, .hdr { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; }
h1 { margin: 0; font-size: 22px; font-weight: 600; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
h3 { margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.fields { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.fld { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.fld > span:first-child { font-size: 12px; color: var(--muted); }
.fld b { font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.warn { background: var(--short-bg); color: var(--short-t); }
.chip.ok { background: #e4f1ea; color: #1f5c40; }
.chip.off { background: #ecebf1; color: #3d3c4a; }
.save-st { font-size: 13px; font-weight: 600; }
.save-st.saved { color: #1f5c40; }
.save-st.pending, .save-st.saving { color: var(--muted); }
.save-st.error { color: #a1260d; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kpi { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi.alert .v { color: #8a3a00; }
.cmd { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--acc-3); }
.btn:disabled { color: #9a99a6; cursor: default; background: transparent; }
.btn.pri { background: var(--acc); color: #fff; }
.btn.pri:hover { background: var(--acc-d); }
.btn.pri:disabled { background: var(--acc-5); color: #fff; }
.btn.out { border-color: #c9c7d6; background: #fff; }
.btn.danger { color: #a1260d; border-color: #e7b9ad; background: #fff; }
.btn.danger:hover { background: #fdeee9; }
.btn.sm { height: 28px; padding: 0 8px; font-size: 13px; }
.btn.wide { width: 100%; justify-content: center; height: 40px; }
.btn .badge { background: #fff; color: var(--acc); border-radius: 9px; padding: 0 6px; font-size: 12px; font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.sepv { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.seg { display: inline-flex; border: 1px solid #c9c7d6; border-radius: 4px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 0 12px; height: 32px; cursor: pointer; color: var(--text); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.tag { font-size: 12px; border-radius: 3px; padding: 2px 8px; font-weight: 600; }
.tag.edit { background: var(--sel); color: var(--acc-dk); }
.tag.ro { background: #ecebf1; color: #3d3c4a; }
.inp { height: 34px; border: 1px solid #c9c7d6; border-radius: 3px; padding: 0 10px; font: inherit; background: #fff; color: var(--text); width: 100%; }
.inp:focus { outline: 2px solid var(--acc); outline-offset: -1px; border-color: var(--acc); }
select.inp { padding-right: 4px; }
.fl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #3d3c4a; font-weight: 500; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.form-err { background: #fdeee9; color: #8a1f0a; padding: 8px 12px; border-radius: 4px; font-size: 13px; }
.note { background: var(--acc-2); border: 1px solid var(--acc-4); border-radius: 4px; padding: 10px 12px; font-size: 13px; color: #3d3c4a; margin-bottom: 10px; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.search { display: flex; align-items: center; gap: 6px; flex: 1 1 280px; max-width: 460px; color: var(--muted); }
.lnk { color: var(--acc-d); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.lnk:hover { text-decoration: underline; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: #2f7d5b; }
.dot.mod { background: var(--dirty); }
.dot.new { background: #2a6fd1; }
.dot.err { background: #b3261e; }
kbd { font-family: inherit; font-size: 11px; border: 1px solid #c9c7d6; border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; background: #fff; }

/* ---------- Tabellen ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; background: var(--head); font-weight: 600; color: #3d3c4a; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th[aria-sort] { padding: 0; }
.th-b { width: 100%; text-align: inherit; border: 0; background: transparent; padding: 8px 10px; font-weight: 600; color: inherit; cursor: pointer; }
.th-b:hover { background: #e7e4f1; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl.small td { padding: 5px 10px; }
.tbl th.num, .tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.dim td { opacity: .5; }
.tbl tbody tr:hover td { background: var(--acc-1); }
.tbl tr.click { cursor: pointer; }
.tbl tr.on td { background: var(--sel); }
.st-chip { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #ecebf1; }
.st-chip.gestart { background: #e2ecfb; color: #0d4a8c; }
.st-chip.gepland { background: var(--acc-2); color: var(--acc-dk); }
.st-chip.afgerond { background: #e4f1ea; color: #1f5c40; }
.st-chip.geannuleerd { background: #f6e3e3; color: #8a1f1f; }

/* ---------- Splitscherm (beheer) ---------- */
.split { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.split > .grow { flex: 999 1 560px; min-width: 0; }
.list-pane { flex: 1 1 260px; max-width: 320px; padding: 6px 0; }
.lp-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 8px; }
.lp-i { display: flex; flex-direction: column; gap: 2px; width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 14px; cursor: pointer; border-top: 1px solid var(--line); }
.lp-i:hover { background: var(--acc-1); }
.lp-i.on { background: var(--sel); box-shadow: inset 3px 0 0 var(--acc); }
.lp-t { font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lp-s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-pane { flex: 999 1 560px; min-width: 0; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.form-pane.narrow { flex: 1 1 320px; max-width: 420px; }
.fp-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px 14px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 16px; }
.test-res { border-radius: 4px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.test-res.ok { background: #e4f1ea; }
.test-res.bad { background: #fdeee9; }
.test-res .step { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.stats { padding: 16px 20px; }
.stats .kpis { margin-top: 8px; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: linear-gradient(180deg, var(--nav) 0 240px, var(--bg) 240px); }
.login { width: 100%; max-width: 380px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 40px rgba(30, 27, 69, .18); }
.login h1 { font-size: 20px; }
.login-brand { display: flex; gap: 12px; align-items: center; }
.login-brand div { display: flex; flex-direction: column; }
.login-brand span { color: var(--muted); font-size: 13px; }
.brand-mark { width: 40px; height: 40px; border-radius: 6px; background: var(--acc); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.login-foot { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Modal en toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20, 18, 50, .35); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--nav); color: #fff; border-radius: 4px; padding: 10px 16px; display: flex; gap: 16px; align-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 80; max-width: calc(100vw - 32px); }
.toast.err { background: #8a1f0a; }
.toast button { border: 0; background: transparent; color: #d9cdfa; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- Planning: snel vullen ---------- */
.fillbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; background: var(--acc-2); border: 1px solid var(--acc-4); border-radius: 4px; }
.fillbar .t { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.fillbar .tg { color: var(--muted); }
.fillbar label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #3d3c4a; }
.numinp { width: 64px; height: 30px; border: 1px solid #c9c7d6; border-radius: 3px; padding: 0 8px; font: inherit; text-align: right; background: #fff; }
.numinp:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
.selinfo { font-size: 13px; color: #3d3c4a; font-variant-numeric: tabular-nums; }
.tips { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 2px; }

/* ---------- Planning: secties en raster ---------- */
.sheet { background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.sec + .sec { border-top: 6px solid var(--bg); }
.sec-h { display: flex; align-items: center; gap: 12px; padding: 8px 12px; flex-wrap: wrap; }
.sec-t { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font-size: 16px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 4px; color: var(--text); }
.sec-t:hover { background: var(--acc-3); }
.sec-t svg { transition: transform .15s; }
.sec-t.closed svg { transform: rotate(-90deg); }
.sec.focus .sec-t { color: var(--acc); }
.src { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.legend > span { display: inline-flex; align-items: center; gap: 5px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.sw.dot { border-radius: 50%; width: 9px; height: 9px; }
.sw.short { background: var(--short-bg); }
.sw.over { background: var(--over-bg); }
.sw.tri { width: 0; height: 0; border-top: 8px solid var(--dirty); border-right: 8px solid transparent; border-radius: 0; }
.over-t { color: #8a3a00; }
.addrow { padding: 6px 8px; }

.sec-vp { overflow: auto; position: relative; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.sec-vp:focus-within { box-shadow: inset 0 0 0 1px var(--acc-5); }
.sec-vp.drag { user-select: none; cursor: cell; }
.canvas { position: relative; }
.ghead { position: sticky; top: 0; z-index: 6; }
.gfoot { position: sticky; bottom: 0; z-index: 6; }
.r { display: grid; }
.pad { min-width: 0; }
.c { height: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; display: flex; align-items: center; justify-content: flex-end; padding: 0 7px; font-variant-numeric: tabular-nums; font-size: 13px; background: #fff; overflow: hidden; white-space: nowrap; }
.s1, .s2, .s3 { position: sticky; z-index: 3; justify-content: flex-start; }
.s1 { left: 0; }
.s2 { left: var(--w1, 200px); }
.s3 { left: calc(var(--w1, 200px) + var(--w2, 220px)); box-shadow: 4px 0 6px -4px rgba(30, 27, 69, .18); }
.st { position: sticky; right: 0; z-index: 3; box-shadow: -4px 0 6px -4px rgba(30, 27, 69, .18); }
.hc { background: var(--head); font-size: 12px; font-weight: 600; color: #3d3c4a; text-overflow: ellipsis; }
.mh { background: var(--head); justify-content: flex-start; font-size: 12px; color: #3d3c4a; font-weight: 600; text-transform: capitalize; height: 24px; text-overflow: ellipsis; }
.hw { background: var(--head); flex-direction: column; justify-content: center; align-items: center; height: 38px; padding: 0; }
.hw .wk { font-weight: 700; font-size: 13px; line-height: 1.1; }
.hw .wd { font-size: 11px; color: var(--muted); line-height: 1.1; }
.hw.now { background: #fff1c7; box-shadow: inset 0 3px 0 #c58a00; }
.c.now { background: var(--now); }
.pc { cursor: cell; }
.pc:hover { background: var(--acc-2); }
.pc.sel, .pc.sel.now { background: var(--sel); }
.pc.act { background: #fff; }
.pc.fill { background: var(--acc-2); }
.pc.off { background: repeating-linear-gradient(135deg, #f4f3f7 0 4px, #fbfafd 4px 8px); cursor: not-allowed; }
.pc.noact { background: #fde3e1; color: #b3261e; font-weight: 700; box-shadow: inset 0 0 0 1px #e8a39d; }
.pc.dirty::before { content: ''; position: absolute; top: 0; left: 0; border-top: 7px solid var(--dirty); border-right: 7px solid transparent; z-index: 1; }
.fh { position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; background: var(--acc); border: 1px solid #fff; z-index: 4; cursor: crosshair; }
.tot { background: #f8f8fb; font-weight: 600; }
.foot .c { background: var(--head); font-weight: 600; border-bottom: 0; border-top: 1px solid var(--border); }
.foot .c.now { background: #f7ecc8; }
.lbl { padding: 0; }
.lbl.ro { padding: 0 8px; gap: 6px; text-overflow: ellipsis; }
.lbl-t { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; }
.dd { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; height: 100%; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 8px; text-align: left; min-width: 0; }
.dd > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.dd:hover { background: var(--acc-3); }
.dd-c { color: var(--muted); font-size: 11px; }
.ph { color: #6b6a78; font-style: italic; }
.st3 { gap: 2px; padding: 0 4px; justify-content: space-between; }
.st3 .dot { margin-left: 4px; }
.del { width: 26px; height: 26px; border: 0; background: transparent; border-radius: 3px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .4; font-size: 12px; }
.r:hover .del, .del:focus { opacity: 1; }
.del:hover { background: var(--short-bg); color: #8a3a00; }
.rc { color: #3d3c4a; }
.rc.over { color: #8a3a00; font-weight: 700; }
.lock { color: #6b6a78; display: inline-flex; }
.cv.short { background: var(--short-bg); color: var(--short-t); font-weight: 600; }
.cv.over { background: var(--over-bg); color: var(--over-t); }
.cv.ok { color: #3d3c4a; }
.cv.short.now { background: #fbd5b4; }
.empty-row { position: sticky; left: 0; width: min(100%, 600px); padding: 16px; color: var(--muted); }
.clip { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; resize: none; overflow: hidden; }
.editor { position: absolute; z-index: 8; width: 46px; height: 30px; border: 2px solid var(--acc); text-align: right; padding: 0 5px; font: inherit; font-size: 13px; background: #fff; outline: none; box-shadow: 0 2px 8px rgba(30, 27, 69, .25); }

/* ---------- Keuzelijst (LOV) ---------- */
.lov { position: fixed; z-index: 60; background: #fff; border: 1px solid #c9c7d6; border-radius: 4px; box-shadow: 0 8px 24px rgba(30, 27, 69, .18); display: flex; flex-direction: column; max-height: 340px; }
.lov-h { padding: 8px; border-bottom: 1px solid var(--line); }
.lov-l { overflow-y: auto; padding: 4px 0; }
.opt { display: flex; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: transparent; padding: 7px 12px; cursor: pointer; text-align: left; color: var(--text); }
.opt:hover, .opt:focus { background: var(--acc-3); outline: none; }
.opt.on { background: var(--sel); font-weight: 600; }
.opt .o-s { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lov-e { padding: 8px 12px; color: var(--muted); font-size: 13px; }
.lov-f { border-top: 1px solid var(--line); padding: 6px 12px; font-size: 11px; color: var(--muted); }

@media (max-width: 720px) {
  .wrap { padding: 12px 16px 40px; }
  .crumb { padding: 8px 16px; }
  .top .app-n, .ubtn .uname { display: none; }
  .list-pane { max-width: none; }
}
.wr .c { height: 38px; }
/* Alle regels tonen (geen scrollbalk per onderdeel) */
.sec-vp.full { overflow-y: hidden; }
.sec-vp.full .ghead, .sec-vp.full .gfoot { position: static; }
.tgl { width: 28px; height: 16px; border-radius: 8px; background: #c9c7d6; position: relative; display: inline-block; transition: background .15s; }
.tgl::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.tgl.on { background: var(--acc); }
.tgl.on::after { left: 14px; }
/* Lege regel onderaan */
.r.blank .c { background: #fcfcfe; }
.r.blank .c.now { background: #fffcf2; }
.r.blank .pc.sel { background: var(--sel); }
.r.blank .pc.act { background: #fff; }
.dot.none { visibility: hidden; }
/* Hoogte van een onderdeel aanpassen (greep onder het raster) */
.resize-h { height: 10px; cursor: ns-resize; display: flex; align-items: center; justify-content: center; background: var(--head); border-top: 1px solid var(--border); outline: none; }
.resize-h span { width: 40px; height: 3px; border-radius: 2px; background: #b4b2c4; }
.resize-h:hover, .resize-h:focus-visible { background: var(--acc-4); }
.resize-h:hover span, .resize-h:focus-visible span { background: var(--acc); }
body.resizing { cursor: ns-resize; user-select: none; }
body.resizing * { cursor: ns-resize !important; }
.umenu .um-v { border-top: 1px solid var(--line); padding: 8px 14px 4px; font-size: 12px; color: var(--muted); }
.login-brand .brand-mark { color: #fff; font-size: 15px; }
/* SSO, rollen en rechten */
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.chip.ifs { background: #e2ecfb; color: #0d4a8c; }
.role-chip { display: inline-block; font-size: 12px; background: var(--sel); color: var(--acc-dk); border-radius: 3px; padding: 1px 7px; margin: 1px 4px 1px 0; white-space: nowrap; }
.role-list { display: flex; flex-direction: column; gap: 6px; }
.role-opt { align-items: flex-start; }
.role-opt > span { display: flex; flex-direction: column; }
.role-opt input { margin-top: 3px; }
fieldset:disabled .inp, fieldset:disabled select { background: #f7f7fa; color: #3d3c4a; }
.form-pane fieldset { display: flex; flex-direction: column; gap: 10px; }
.copy-row { display: flex; gap: 6px; align-items: center; }
.perm-tbl td { vertical-align: middle; }
.perm-tbl tr.grp td { background: var(--head); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #3d3c4a; }
.perm-seg button { min-width: 82px; }
.perm-seg button:disabled { cursor: default; }
.perm-seg button.lv-none[aria-pressed="true"] { background: #6b6a78; }
.perm-seg button.lv-read[aria-pressed="true"] { background: #0d5c8c; }
.perm-seg button[aria-pressed="true"]:disabled { opacity: .85; }
.um-h span + span { margin-top: 2px; }
/* Taalkeuze */
.login-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lang-pick select { height: 30px; border: 1px solid #c9c7d6; border-radius: 3px; background: #fff; font: inherit; font-size: 13px; padding: 0 6px; color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.umenu .um-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.umenu .um-lang .seg button { width: auto; padding: 0 10px; height: 28px; display: inline-flex; }
.umenu .um-lang .seg button[aria-pressed="true"] { background: var(--acc); color: #fff; }
/* Keuzeknoppen in een formulier over de volle breedte */
.form-pane .seg { display: flex; flex-wrap: nowrap; width: 100%; }
.form-pane .seg button { flex: 1 1 0; white-space: normal; line-height: 1.2; min-height: 34px; padding: 4px 8px; }

/* Voorbeelddata van een projection (connectiescherm) */
.sample-btn { align-self: flex-start; margin-top: 2px; }
.sample { margin-top: 12px; border: 1px solid var(--acc-4); border-radius: 4px; padding: 10px 12px; background: var(--acc-1); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sample-h { display: flex; align-items: center; gap: 8px; }
.sample code { word-break: break-all; }
.sample-json { margin: 0; max-height: 420px; overflow: auto; background: #1f1d2b; color: #e8e6f2; padding: 10px; border-radius: 4px; font-size: 12px; line-height: 1.45; white-space: pre; }
.hint.map-ok { color: #1f5c40; }
.hint.map-todo { color: #8a5a00; }

/* Kolomkoppen Resource / Resource Group: sorteren, filteren, breedte */
.hcx { gap: 2px; padding-right: 8px; overflow: visible; }
.hcx .hs { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcx .hs:hover { color: var(--acc); }
.hcx .hs.si-b { flex: 0 0 auto; }
.hcx .si { font-size: 9px; color: var(--acc); white-space: nowrap; }
.hcx .si sub { font-size: 8px; vertical-align: baseline; margin-left: 1px; }
.hcx .hf { flex: 0 0 auto; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 3px; background: none; color: #6f6d85; cursor: pointer; opacity: .9; }
.hcx:hover .hf, .hcx .hf.on, .hcx .hf:focus-visible { opacity: 1; }
.hcx .hf:hover { background: var(--acc-4); color: var(--acc); }
.hcx .hf.on { color: var(--acc); background: var(--acc-4); }
.hf-in { flex: 1 1 auto; min-width: 0; height: 24px; border: 1px solid var(--acc-5); border-radius: 3px; padding: 0 6px; font: inherit; font-weight: 400; font-size: 12px; background: #fff; color: var(--ink, #1e1b45); }
.hf-in:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
.cg { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 5; }
.cg::after { content: ''; position: absolute; top: 25%; bottom: 25%; left: 3px; width: 1px; background: transparent; }
.hcx:hover .cg::after, .cg:hover::after { background: #b4b2c4; }
.cg:hover::after { background: var(--acc); width: 2px; }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none; }

/* Totaal per planningsregel aanpasbaar */
.tot-b { border-width: 0 1px 1px 0; border-style: solid; border-color: var(--line); font: inherit; font-weight: 600; cursor: text; justify-content: flex-end; padding: 0 8px; color: inherit; }
.tot-b:hover { background: var(--acc-3); box-shadow: inset 0 0 0 1px var(--acc-5); }
.tot-ed { padding: 2px; }
.tot-in { width: 100%; height: 100%; border: 2px solid var(--acc); border-radius: 2px; text-align: right; font: inherit; font-weight: 600; padding: 0 6px; background: #fff; }
.tot-in:focus { outline: none; }

/* Synchronisatiestatus: klikbare chips en regels die niet gesynchroniseerd konden worden */
.sync-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip-b { border: 0; font: inherit; font-size: 12px; cursor: pointer; }
.chip-b:hover { filter: brightness(.96); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.chip-b.on { box-shadow: inset 0 0 0 2px currentColor; }
.chip.bad { background: #fbe4e2; color: #8a1f1f; }
.only-f { margin-left: 8px; }
.r.sync-err .st3 { box-shadow: inset 3px 0 0 #b3261e; }
.r.sync-err .s1 { color: #8a1f1f; }
.fl .hint { overflow-wrap: anywhere; }

/* IFS-projectstatussen */
.st-chip.initialized { background: #ecebf1; color: #3d3c4a; }
.st-chip.approved { background: var(--acc-2); color: var(--acc-dk); }
.st-chip.started { background: #e2ecfb; color: #0d4a8c; }
.st-chip.completed { background: #e4f1ea; color: #1f5c40; }
.st-chip.closed { background: #e0e0e6; color: #4a4958; }
.st-chip.cancelled { background: #f6e3e3; color: #8a1f1f; }

/* Allocaties */
.alloc-ed { border: 0; background: none; color: var(--acc); cursor: pointer; padding: 3px; border-radius: 3px; display: inline-flex; }
.alloc-ed:hover { background: var(--acc-4); }
.alloc-dlg { max-width: 520px; }
.alloc-dlg .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv { display: flex; gap: 10px; font-size: 13px; }
.kv span { width: 120px; color: #6b6a7b; flex: none; }

/* ---------- Resources-overzicht ---------- */
.res-f { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 10px 16px; align-items: end; padding: 12px 14px; }
.res-f .fl { min-width: 0; }
.res-f .win { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.res-f .win .inp { width: auto; }
@media (max-width: 900px) { .res-f { grid-template-columns: 1fr; } }
.res-f.res-w { display: flex; }
.ms { position: relative; }
.ms-box { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 34px; border: 1px solid #c9c7d6; border-radius: 3px; background: #fff; padding: 3px 26px 3px 4px; cursor: text; position: relative; }
.ms.open .ms-box, .ms-box:focus-within { outline: 2px solid var(--acc); outline-offset: -1px; }
.ms-in { flex: 1 1 80px; min-width: 60px; border: 0; outline: none; font: inherit; padding: 3px 4px; background: transparent; }
.ms-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--sel); color: var(--text); border-radius: 3px; padding: 1px 2px 1px 7px; font-size: 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-chip button, .ms-clr { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px; }
.ms-chip button:hover, .ms-clr:hover { color: var(--text); }
.ms-clr { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.ms-l { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 2px); background: #fff; border: 1px solid #c9c7d6; border-radius: 4px; box-shadow: 0 8px 24px rgba(30, 27, 69, .18); max-height: 320px; overflow-y: auto; padding: 4px 0; }
.ms-l .opt { justify-content: flex-start; }
.ms-l .opt .o-s { margin-left: auto; }
.ms-l .opt.hi { background: var(--acc-3); }
.ms-ck { width: 14px; color: var(--acc); font-weight: 700; }
.res-info { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; color: var(--muted); padding: 0 4px 8px; }
.res-info .warn-t { color: #8a4b00; }
.prog { display: inline-flex; align-items: center; gap: 8px; }
.prog .bar { width: 120px; height: 6px; background: #e7e4f0; border-radius: 3px; overflow: hidden; }
.prog .bar i { display: block; height: 100%; background: var(--acc); }
.sw.off { width: 14px; height: 10px; background: repeating-linear-gradient(135deg, #e4e2ec 0 3px, #fbfafd 3px 6px); border: 1px solid #ddd; }
.r.av-row > .c { background: var(--acc-2); font-weight: 600; }
.r.av-row > .c.over { background: var(--short-bg); color: #8a3a00; font-weight: 700; }
.r.av-row.unknown > .c { color: var(--muted); font-weight: 400; }
.r.av-row > .c.now:not(.over) { background: #fbf3d9; }
/* filter met meerdere waarden in een kolomkop */
.hcx .hf-n { flex: 0 0 auto; font-size: 10px; font-weight: 700; color: #fff; background: var(--acc); border-radius: 8px; padding: 0 5px; line-height: 15px; }
.mf-pop { z-index: 65; max-height: 380px; }
.mf-a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.lnk-b { border: 0; background: none; color: var(--acc); cursor: pointer; padding: 0; font: inherit; }
.lnk-b:disabled { color: var(--muted); cursor: default; }
.mf-o { justify-content: flex-start; align-items: center; gap: 8px; font-weight: 400; }
.mf-o.on { font-weight: 600; }
.mf-o .mf-l { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-o input { margin: 0; accent-color: var(--acc); }
/* Capaciteit per project: projectkop en aanvraagregels */
.r.pj-row > .c { background: var(--acc-4); font-weight: 600; }
.r.rq-row > .c { background: var(--acc-2); }
.r.rq-row.none > .c.s1 { color: var(--muted); font-style: italic; }
.r.rq-row > .c.over, .r.pj-row > .c.over { background: var(--short-bg); color: #8a3a00; font-weight: 700; }
.r.rq-row > .c.surp { background: var(--over-bg); color: var(--over-t); font-weight: 700; }
.r.op-row > .c { color: var(--muted); }
.r.op-row > .c.s1 { font-style: italic; padding-left: 22px; }
.r.op-row > .c.over, .r.op-row > .c.pos { color: #8a3a00; font-weight: 700; }
.r.op-row > .c.surp, .r.op-row > .c.neg { color: var(--over-t); font-weight: 700; }
/* Workload: regel beschikbaar (capaciteit − toegewezen) */
.r.fr-row > .c { background: var(--acc-1); color: #2f6b3f; }
.r.fr-row > .c.s2 { color: var(--text); font-style: italic; }
.r.fr-row > .c.over, .r.fr-row > .c.neg { background: var(--short-bg); color: #8a3a00; font-weight: 700; }
/* nieuwe toekenning onder een aanvraag: persoon kiezen */
.r.pk-row > .c { background: #fffdf3; }
.pk-c { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 12px; overflow: visible; }
.pk-arrow { color: var(--muted); }
.pk-in { flex: 1 1 auto; min-width: 0; height: 24px; border: 1px solid var(--acc); border-radius: 3px; padding: 0 6px; font: inherit; font-size: 13px; outline: none; background: #fff; }
.pk-in.bad { border-color: #c0392b; }
.pk-err { color: #c0392b; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Project Setup */
.ps-set { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 12px 16px; }
.ps-set > b { align-self: center; margin-right: 8px; }
.ps-set .fl .inp { min-width: 120px; }
.ps-set .hint { flex: 1 1 100%; }
.tbl th.ck, .tbl td.ck { width: 32px; text-align: center; }
.tbl tr.on td { background: var(--acc-2); }
/* Look & Feel */
.lf-sec { padding: 14px 18px 18px; }
.lf-sec h2 { margin: 0 0 12px; font-size: 16px; }
.lf-sec h3 { margin: 18px 0 8px; font-size: 14px; display: flex; gap: 12px; align-items: baseline; }
.lf-pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.lf-pal { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; text-align: left; color: var(--text); }
.lf-pal:hover { border-color: var(--acc-5); }
.lf-pal.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-4); font-weight: 600; }
.lf-sw { display: flex; width: 100%; height: 28px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.lf-sw i { flex: 1; }
.lf-sw i:first-child { flex: 1.4; }
.lf-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; }
.lf-cin { display: flex; align-items: center; gap: 8px; }
.lf-cin input[type=color] { width: 44px; height: 32px; padding: 0 2px; border: 1px solid #c9c7d6; border-radius: 4px; background: #fff; cursor: pointer; }
.lf-cin code { font-size: 12px; color: var(--muted); }
.lf-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.lf-font { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; color: var(--text); text-align: left; }
.lf-font b { font-size: 15px; }
.lf-font span { font-size: 13px; color: var(--muted); }
.lf-font:hover { border-color: var(--acc-5); }
.lf-font.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-4); }
.lf-prev { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--bg); }
.lf-bar { background: var(--nav); color: var(--nav-t); padding: 10px 14px; display: flex; gap: 12px; align-items: center; }
.lf-bar span { color: var(--nav-t2); }
.lf-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; }

/* koppen in het (optionele) lettertype voor koppen */
h1, h2, h3, .sec-t, .page-h h1, .login-brand b { font-family: var(--font-h, var(--font)); }
.lf-ft { margin-bottom: 12px; }
.lf-ft td { vertical-align: middle; }
.lf-up { margin-top: 8px; }
.lf-up label.btn { cursor: pointer; }
.lf-upl { margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--acc-1); }
.lf-upr { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(160px, 1.2fr) 150px 120px; gap: 8px 12px; align-items: end; }
.lf-fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 8px; }
.lf-h { margin: 0 12px 0 0; font-size: 18px; flex: 1 1 100%; }
@media (max-width: 800px) { .lf-upr { grid-template-columns: 1fr 1fr; } }

/* Budget & Forecasting */
.bf-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 12px; }
.bf-meta > div { display: flex; flex-direction: column; gap: 2px; }
.bf-sec { padding: 14px 18px; }
.bf-sec h2 { font-size: 16px; margin: 0 0 8px; }
.bf-sec .empty { padding: 18px 0; }
.page-h > .tag { margin-left: auto; }

/* Look & Feel: eigen stijlen */
.lf-style { position: relative; padding: 0; }
.lf-st-b { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; width: 100%; padding: 10px; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.lf-st-n { font-weight: 600; font-size: 15px; }
.lf-st-x { position: absolute; top: 4px; right: 4px; opacity: .6; background: rgba(255,255,255,.85); }
.lf-st-x:hover { opacity: 1; }
.lf-st-add { align-items: center; justify-content: center; flex-direction: row; color: var(--acc); border-style: dashed; min-height: 92px; }
.lf-st-new { cursor: default; gap: 6px; }
.lf-st-new .fl { width: 100%; }
.lf-st-a { display: flex; gap: 6px; justify-content: flex-end; width: 100%; }

.lf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 16px 28px; align-items: start; }
.lf-split .lf-side { border-left: 1px solid var(--line); padding-left: 24px; }
.lf-split .lf-side h2 { margin-top: 0; }
.lf-stl { grid-template-columns: 1fr; }
.lf-stl .lf-st-add { min-height: 48px; }
@media (max-width: 1000px) { .lf-split { grid-template-columns: 1fr; } .lf-split .lf-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } }
