/* =========================================================
 FlexHero Vakkracht-Portaal
 Designtaal 1-op-1 uit admin.css (tokens r.9–86 + de S-tier-laag
 vanaf r.8842): zelfde sidebar, topbalk, KPI-tegels, kaartkoppen,
 knoppen, badges en loginpagina. Alleen de touch-maten zijn op
 mobiel iets ruimer, omdat flexkrachten vooral op hun telefoon zitten.
========================================================= */
:root {
 --green: #8CDB38;
 --green-bright: #A3F04E;
 --green-deep: #0B2318;
 --green-darker: #05130E;
 --green-mid: #16382A;
 --green-ink: #3F7C1C;
 --green-soft: #E9F5D8;
 --green-tint: #F4FAE9;
 --green-line: #D2E9B4;

 --cream: #F7F5F0;
 --cream-2: #EFECE5;
 --rule: #E5E1D8;
 --rule-soft: #EFECE5;
 --rule-hair: #F0EDE7;
 --paper: #FFFFFF;
 --paper-2: #FBFAF7;
 --track: #E8E4DC;

 --ink: #1C1B18;
 --ink-2: #33312C;
 --muted: #6E6A62;
 --muted-2: #9C978D;

 --ok: #5EA82C; --ok-ink: #3C731A; --ok-soft: #E7F4D6;
 --red: #C8433A; --red-ink: #A93830; --red-soft: #FAE6E3;
 --amber: #B4780A; --amber-ink: #8C5A10; --amber-soft: #FAEBD1;
 --blue: #3F73C6; --blue-ink: #2F5FB8; --blue-soft: #E4EDF9;

 --f-display: 'Poppins', system-ui, sans-serif;
 --f-sans: 'Inter', system-ui, sans-serif;
 --f-mono: ui-monospace, 'SF Mono', Menlo, monospace;

 --r-xs: 6px; --r-sm: 8px; --r-md: 11px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;

 --side-w: 258px;
 --top-h: 64px;
 --bottom-nav-h: 64px;

 --shadow-1: 0 1px 2px rgba(11,35,24,.05);
 --shadow-2: 0 1px 2px rgba(11,35,24,.04), 0 6px 16px -8px rgba(11,35,24,.12);
 --shadow-3: 0 2px 4px rgba(11,35,24,.04), 0 14px 32px -12px rgba(11,35,24,.18);
 --ring: 0 0 0 3px rgba(140,219,56,.32);
 --ease: cubic-bezier(.2,.7,.3,1);
 --t-fast: .12s;
 --t-base: .2s;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
 font-family: var(--f-sans);
 font-size: 14px;
 line-height: 1.5;
 color: var(--ink);
 background: var(--cream);
 -webkit-font-smoothing: antialiased;
 -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; color: var(--green-deep); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--green); color: var(--green-deep); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
.skip-link {
 position: absolute; top: -60px; left: 16px; z-index: 300;
 background: var(--green-deep); color: var(--green);
 padding: 10px 18px; border-radius: var(--r-sm);
 font-family: var(--f-display); font-weight: 700; font-size: 13px;
 transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============ SHELL ============ */
.app {
 display: grid;
 grid-template-columns: var(--side-w) minmax(0, 1fr);
 min-height: 100dvh;
}
.content { min-width: 0; display: flex; flex-direction: column; }

/* Sidebar — admin r.512 + r.8904 */
.side {
 position: sticky; top: 0; height: 100dvh;
 display: flex; flex-direction: column;
 padding: 18px 14px 16px;
 color: var(--cream);
 background:
 radial-gradient(120% 60% at 0% 0%, rgba(140,219,56,.10), transparent 60%),
 linear-gradient(180deg, #0F3021 0%, #0B2318 46%, #081B13 100%);
 overflow-y: auto;
}
.brand {
 display: flex; align-items: center; gap: 10px;
 padding: 4px 8px 18px;
}
.brand-mark { width: 30px; height: auto; filter: drop-shadow(0 0 12px rgba(140,219,56,.35)); }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.035em; line-height: 1; color: #fff; }
.brand-word .hero, .brand-word .dot { color: var(--green); }
.brand-word .dot { text-shadow: 0 0 14px rgba(140,219,56,.55); }
.brand .badge {
 margin-left: auto;
 padding: 3px 7px;
 font-family: var(--f-display); font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
 color: #A9E86A; background: rgba(140,219,56,.13); border: 1px solid rgba(140,219,56,.20);
 border-radius: var(--r-full);
}
.group-label {
 padding: 14px 12px 7px;
 font-family: var(--f-display); font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
 color: rgba(252,247,242,.32);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
 position: relative;
 display: flex; align-items: center; gap: 11px;
 padding: 9px 12px 9px 13px;
 border-radius: var(--r-sm);
 font-size: 13.5px; font-weight: 500;
 color: rgba(255,255,255,.78);
 transition: background var(--t-fast), color var(--t-fast);
}
.nav-item svg { width: 16px; height: 16px; opacity: .62; transition: opacity var(--t-fast); }
.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item:hover svg { opacity: .9; }
.nav-item.active {
 background: linear-gradient(90deg, rgba(140,219,56,.17), rgba(140,219,56,.045) 70%, transparent);
 color: #C6F291; font-weight: 600;
}
.nav-item.active svg { opacity: 1; color: var(--green); }
.nav-item.active::before {
 content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
 width: 3px; height: 18px; border-radius: 0 3px 3px 0;
 background: var(--green); box-shadow: 0 0 12px rgba(140,219,56,.6);
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.side-help {
 display: flex; align-items: center; gap: 10px;
 padding: 10px 12px;
 border-radius: var(--r-md);
 border: 1px solid rgba(255,255,255,.08);
 background: rgba(255,255,255,.03);
 transition: background var(--t-fast), border-color var(--t-fast);
}
.side-help:hover { background: rgba(255,255,255,.06); border-color: rgba(140,219,56,.25); }
.side-help-ico {
 width: 30px; height: 30px; border-radius: 9px;
 display: inline-flex; align-items: center; justify-content: center;
 background: rgba(140,219,56,.13); color: var(--green);
}
.side-help-ico svg { width: 15px; height: 15px; }
.side-help b { display: block; font-size: 12px; font-weight: 600; color: #fff; }
.side-help span span, .side-help > span:last-child > span { display: block; font-size: 11.5px; color: rgba(252,247,242,.6); font-variant-numeric: tabular-nums; }
.side-user {
 display: flex; align-items: center; gap: 10px;
 padding: 10px 8px 10px 10px;
 border-radius: var(--r-md);
 background: rgba(255,255,255,.045);
}
.avatar {
 width: 34px; height: 34px; flex-shrink: 0;
 border-radius: 10px;
 display: inline-flex; align-items: center; justify-content: center;
 background: var(--green); color: var(--green-deep);
 font-family: var(--f-display); font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
}
.side-user-txt { min-width: 0; flex: 1; }
.side-user .name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .role { font-size: 11px; color: rgba(252,247,242,.5); }
.side-logout {
 width: 31px; height: 31px; border-radius: 9px;
 display: inline-flex; align-items: center; justify-content: center;
 color: rgba(252,247,242,.6);
 transition: background var(--t-fast), color var(--t-fast);
}
.side-logout svg { width: 16px; height: 16px; }
.side-logout:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Topbalk — admin r.671 + r.9027 */
.top {
 position: sticky; top: 0; z-index: 50;
 height: var(--top-h);
 display: flex; align-items: center; gap: 14px;
 padding: 0 26px;
 background: rgba(255,255,255,.78);
 backdrop-filter: blur(16px) saturate(1.6);
 -webkit-backdrop-filter: blur(16px) saturate(1.6);
 border-bottom: 1px solid var(--rule);
}
.top-brand { display: none; }
.top-brand img { height: 26px; width: auto; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.crumbs > span:first-child { color: var(--muted-2); font-weight: 500; }
.crumbs .sep { color: var(--muted-2); opacity: .55; }
.crumbs .here { color: var(--green-deep); font-weight: 700; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* Taalwissel — admin r.2305 + r.9747 */
.lang-switch {
 display: inline-flex; gap: 2px; padding: 2px;
 background: var(--cream-2); border: 1px solid var(--rule); border-radius: var(--r-full);
}
.lang-switch button {
 padding: 4px 11px; border-radius: var(--r-full);
 font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: .04em;
 color: var(--muted);
 transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.lang-switch button:hover { color: var(--green-deep); }
.lang-switch button.active { background: var(--paper); color: var(--green-deep); box-shadow: var(--shadow-1); }
.lang-pick {
 display: none;
 appearance: none; -webkit-appearance: none;
 padding: 6px 28px 6px 12px;
 border: 1px solid var(--rule); border-radius: var(--r-full);
 background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6A62' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center/12px no-repeat;
 font-family: var(--f-display); font-size: 12px; font-weight: 600; color: var(--green-deep);
}

/* ============ MAIN ============ */
.main {
 width: 100%; max-width: 1240px;
 padding: 30px 32px 40px;
 display: flex; flex-direction: column; gap: 18px;
}
.page-head {
 display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
 margin-bottom: 4px;
}
.page-head h1 { font-size: 31px; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.page-head .sub { margin-top: 7px; font-size: 13.5px; color: var(--muted); max-width: 62ch; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fresh {
 display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
 padding: 4px 11px 4px 9px; border-radius: var(--r-full);
 background: var(--paper); border: 1px solid var(--rule);
 font-size: 12px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums;
 cursor: help;
}
.fresh::before {
 content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
 background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft);
}
.fresh[hidden] { display: none; }
.page-foot {
 margin-top: 8px; padding-top: 18px;
 border-top: 1px solid var(--rule);
 display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
 font-size: 12.5px; color: var(--muted);
}
.page-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.page-foot a svg { width: 14px; height: 14px; }
.page-foot a:hover { color: var(--green-deep); }

/* Layout-grids */
.grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ============ BUTTONS — admin r.225 + r.9185 ============ */
.btn {
 display: inline-flex; align-items: center; justify-content: center; gap: 7px;
 padding: 10px 17px;
 border-radius: var(--r-md);
 font-family: var(--f-display); font-size: 13px; font-weight: 600; line-height: 1.2;
 white-space: nowrap;
 transition: background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-deep); color: #F4F1EC; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #123A28; box-shadow: var(--shadow-2); }
.btn-primary.green {
 background: linear-gradient(180deg, #9CE44C 0%, #7FC92C 100%);
 color: var(--green-deep);
 box-shadow: inset 0 1px 0 rgba(255,255,255,.45), var(--shadow-1);
}
.btn-primary.green:hover { background: linear-gradient(180deg, #A6EA58 0%, #86D032 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), var(--shadow-2); }
.btn-secondary {
 padding: 9px 15px;
 background: var(--paper); color: var(--ink-2);
 border: 1px solid var(--rule); box-shadow: var(--shadow-1);
 font-size: 12.5px;
}
.btn-secondary:hover { border-color: var(--muted-2); color: var(--green-deep); box-shadow: var(--shadow-2); }
.btn-ghost {
 padding: 7px 11px;
 border: 1px solid var(--rule); border-radius: var(--r-sm);
 color: var(--green-ink); font-size: 12.5px;
}
.btn-ghost:hover { background: var(--green-tint); border-color: var(--green-line); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ============ KPI — admin r.799 + r.9127 ============ */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi {
 position: relative; overflow: hidden;
 display: flex; flex-direction: column;
 min-height: 112px;
 padding: 16px 18px 15px;
 background: var(--paper);
 border: 1px solid var(--rule);
 border-radius: var(--r-lg);
 box-shadow: var(--shadow-1);
 transition: box-shadow var(--t-base), border-color var(--t-base);
}
.kpi::after {
 content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px;
 background: var(--green); border-radius: 2px 2px 0 0;
 transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease);
}
.kpi:hover { box-shadow: var(--shadow-2); border-color: var(--green-line); }
.kpi:hover::after { transform: scaleX(1); }
.kpi .label {
 min-height: 27px; padding-right: 42px;
 font-family: var(--f-display); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
 color: var(--muted);
}
.kpi .num {
 font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
 color: var(--green-deep); font-variant-numeric: tabular-nums;
}
.kpi .num.num-sm { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.kpi .unit { margin-left: 4px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted-2); }
.kpi .ico {
 position: absolute; top: 14px; right: 14px;
 width: 30px; height: 30px; border-radius: 9px;
 display: inline-flex; align-items: center; justify-content: center;
 background: var(--green-tint); border: 1px solid var(--green-line); color: var(--green-ink);
}
.kpi .ico svg { width: 15px; height: 15px; }
.kpi-sub { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.kpi-sub.ok { color: var(--ok-ink); }
.kpi-sub.warn { color: var(--amber); }
.kpi-sub.bad { color: var(--red); }
.kpi-bar { margin-top: auto; padding-top: 12px; }
.kpi-bar i { display: block; height: 3px; border-radius: 2px; background: var(--track); overflow: hidden; }
.kpi-bar span { display: block; height: 100%; border-radius: 2px; background: var(--ok); }

/* ============ CARD — admin r.779 + r.9096 ============ */
.card {
 background: var(--paper);
 border: 1px solid var(--rule);
 border-radius: var(--r-lg);
 box-shadow: var(--shadow-1);
 overflow: hidden;
 min-width: 0;
}
.card-head {
 display: flex; align-items: center; justify-content: space-between; gap: 12px;
 padding: 15px 20px;
 border-bottom: 1px solid var(--rule-hair);
 background: linear-gradient(180deg, var(--paper), var(--paper-2));
}
.card-head h3 { display: flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: -0.018em; }
.card-head h3 svg { width: 16px; height: 16px; color: var(--green-ink); }
.card-head .meta { font-size: 11.5px; color: var(--muted-2); }
.card-pad { padding: 20px 22px; }
.card-note { padding: 0 22px 18px; font-size: 12.5px; color: var(--muted); }
.card-foot {
 display: flex; align-items: center; gap: 10px;
 padding: 12px 22px;
 border-top: 1px solid var(--rule-hair);
 background: var(--paper-2);
 font-size: 12.5px; color: var(--muted);
}
.card-foot svg { width: 15px; height: 15px; color: var(--green-ink); }

/* ============ ACTIEPUNTEN — admin r.5636 ============ */
.action-card { border-left: 3px solid var(--amber); }
.action-card.bad { border-left-color: var(--red); }
.action-card.ok { border-left-color: var(--ok); }
.action-list { padding: 4px 20px; }
.action-row {
 display: flex; align-items: center; gap: 12px;
 padding: 12px 0;
 border-bottom: 1px solid var(--rule-hair);
}
.action-row:last-child { border-bottom: 0; }
.action-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--amber); box-shadow: 0 0 0 3px rgba(180,120,10,.18); }
.action-row.bad .action-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(200,67,58,.19); }
.action-row.ok .action-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(94,168,44,.18); }
.action-body { flex: 1; min-width: 0; }
.action-title { font-size: 13.5px; font-weight: 700; color: var(--amber-ink); }
.action-row.bad .action-title { color: var(--red-ink); }
.action-row.ok .action-title { color: var(--ok-ink); font-weight: 600; }
.action-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.action-row.bad .action-cta { color: var(--red-ink); border-color: rgba(200,67,58,.3); }
.action-row.bad .action-cta:hover { background: var(--red-soft); }

/* ============ UREN-BALKEN — admin r.9596 ============ */
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 26px; align-items: center; gap: 12px; }
.hbar-label {
 text-align: right;
 font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
 color: var(--muted);
}
.hbar-track { height: 30px; background: var(--track); border-radius: var(--r-xs); overflow: hidden; }
.hbar {
 height: 100%; min-width: 46px;
 display: flex; align-items: center; justify-content: flex-end;
 padding: 0 10px;
 border-radius: var(--r-xs);
 font-family: var(--f-display); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
 transform-origin: left; animation: hbarIn .6s var(--ease) backwards;
}
.hbar.ok { background: linear-gradient(90deg, #0B2318, #1E4A31); color: #F4F1EC; }
.hbar.pending { background: repeating-linear-gradient(135deg, #A3E065 0 7px, #ADE472 7px 14px); color: var(--green-deep); }
.hbar-status { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; }
.hbar-status svg { width: 13px; height: 13px; }
.hbar-status.ok { background: var(--ok-soft); color: var(--ok-ink); }
.hbar-status.pending { background: var(--amber-soft); color: var(--amber-ink); }
@keyframes hbarIn { from { transform: scaleX(.2); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .ok i { background: #0B2318; }
.legend .pending i { background: #A3E065; }

[data-icon] { display: inline-flex; }
.contract-role { font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--green-deep); }
.contract-client { margin: 3px 0 8px; font-size: 13px; color: var(--muted); }

/* ============ KEY-VALUE ============ */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 24px; }
.kv .k {
 font-family: var(--f-display); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
 color: var(--muted-2);
}
.kv .v { margin-top: 5px; font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.list-row {
 display: flex; align-items: center; justify-content: space-between; gap: 14px;
 padding: 12px 0;
 border-bottom: 1px solid var(--rule-hair);
}
.list-row:last-child { border-bottom: 0; }
.list-row .k { font-size: 12.5px; color: var(--muted); }
.list-row .v { font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: right; word-break: break-word; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-hair); }
.doc-row:last-child { border-bottom: 0; }
.doc-ico {
 width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
 display: inline-flex; align-items: center; justify-content: center;
 background: var(--cream-2); color: var(--muted);
}
.doc-ico svg { width: 16px; height: 16px; }
.doc-ico.cert { background: var(--green-tint); color: var(--green-ink); border: 1px solid var(--green-line); }
.doc-body { flex: 1; min-width: 0; }
.doc-name { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { margin-top: 3px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-meta .sep::before { content: "·"; margin-right: 8px; color: var(--muted-2); }

/* Checklist (onboarding) */
.progress { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #5EA82C, #8CDB38); transition: width .6s var(--ease); }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.progress-meta b { font-family: var(--f-display); color: var(--green-deep); font-size: 13px; }
.check-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--rule-hair); font-size: 13.5px; }
.check-row:last-child { border-bottom: 0; }
.check-ico {
 width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px;
 display: inline-flex; align-items: center; justify-content: center;
 border: 1.5px solid var(--rule); color: transparent;
}
.check-ico svg { width: 13px; height: 13px; }
.check-row.done .check-ico { background: var(--ok); border-color: var(--ok); color: #fff; }
.check-row.done .check-txt { color: var(--muted); }
.check-txt { flex: 1; font-weight: 500; }

/* ============ BADGES — admin r.9344 ============ */
.badge {
 display: inline-flex; align-items: center; gap: 5px;
 padding: 3px 9px;
 font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
 border-radius: var(--r-full); border: 1px solid transparent;
 white-space: nowrap;
}
.badge.green { background: var(--ok-soft); color: var(--ok-ink); border-color: rgba(94,168,44,.22); }
.badge.amber { background: var(--amber-soft); color: var(--amber-ink); border-color: rgba(180,120,10,.22); }
.badge.red { background: var(--red-soft); color: var(--red-ink); border-color: rgba(200,67,58,.22); }
.badge.gray { background: var(--cream-2); color: var(--muted); border-color: var(--rule); }

.chip-list { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
 display: inline-flex; align-items: center;
 padding: 5px 11px;
 border-radius: var(--r-full);
 background: var(--green-tint); border: 1px solid var(--green-line);
 font-size: 12.5px; font-weight: 600; color: var(--green-ink);
}

/* ============ TABLE — admin r.9312 ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
 padding: 11px 16px;
 text-align: left;
 font-family: var(--f-display); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
 color: var(--muted-2); background: var(--paper-2);
 border-bottom: 1px solid var(--rule);
}
.tbl tbody td { padding: 12px 16px; border-bottom: 1px solid var(--rule-hair); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t-fast); }
.tbl tbody tr:hover { background: var(--paper-2); }
.tbl tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--green); }
.tbl .num { text-align: right; }
.tbl th.num { text-align: right; }
.tbl strong { color: var(--green-deep); font-weight: 600; }
.mini-bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--track); overflow: hidden; }
.mini-bar span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #5EA82C, #8CDB38); }

/* ============ FORMS ============ */
.field { margin-bottom: 14px; }
.field label {
 display: block; margin-bottom: 6px;
 font-family: var(--f-display); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
 color: var(--muted);
}
.field input, .field select, .field textarea {
 width: 100%;
 padding: 11px 14px;
 border: 1px solid var(--rule); border-radius: var(--r-md);
 background: var(--paper-2);
 font-size: 14px; color: var(--ink);
 transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input::placeholder { color: var(--muted-2); }
.field input:hover { border-color: #D6D1C6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--paper); border-color: var(--green-ink); box-shadow: var(--ring); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.form-hint { font-size: 12.5px; color: var(--muted); }
.card-intro { margin-bottom: 12px; }
.muted { color: var(--muted-2); font-weight: 500; }

/* ============ TIJDREGISTRATIE ============ */
.section-title { margin-top: 10px; font-size: 17px; letter-spacing: -0.02em; }
.tr-weeknav { display: flex; align-items: center; gap: 4px; }
.tr-nav { width: 34px; height: 34px; padding: 0; justify-content: center; }
.tr-nav[disabled] { opacity: .35; cursor: default; }
.tr-week-label {
 min-width: 168px; text-align: center;
 font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--green-deep);
 font-variant-numeric: tabular-nums;
}
.tr-week-label span { display: block; font-family: var(--f-sans); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tr-days { display: flex; flex-direction: column; }
.tr-day {
 display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 14px; align-items: start;
 padding: 12px 20px;
 border-bottom: 1px solid var(--rule-hair);
}
.tr-day:last-child { border-bottom: 0; }
.tr-day.is-today { background: linear-gradient(90deg, var(--green-tint), rgba(244,250,233,0) 70%); box-shadow: inset 3px 0 0 var(--green); }
.tr-day-name {
 padding-top: 6px;
 font-family: var(--f-display); font-size: 13.5px; font-weight: 700; color: var(--green-deep); text-transform: capitalize;
}
.tr-day-name small { display: block; margin-top: 1px; font-family: var(--f-sans); font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; white-space: nowrap; }
.tr-day.is-off .tr-day-name { color: var(--muted-2); }
.tr-today { margin-left: 6px; vertical-align: 1px; }
.tr-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tr-none { padding-top: 7px; font-size: 13px; color: var(--muted-2); }
.tr-entry {
 display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
 width: 100%; padding: 9px 12px;
 text-align: left;
 background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md);
 transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
button.tr-entry:hover { border-color: var(--green-line); box-shadow: var(--shadow-2); }
button.tr-entry:active { transform: translateY(1px); }
.tr-entry.is-rejected { border-color: rgba(200,67,58,.38); background: #FFFBFA; }
.tr-entry.is-approved { background: var(--paper-2); }
.tr-time { font-family: var(--f-display); font-size: 14px; font-weight: 700; color: var(--green-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-hours { font-family: var(--f-display); font-size: 13.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-reason { margin: -2px 2px 2px; font-size: 12px; color: var(--red-ink); }
.tr-add {
 display: inline-flex; align-items: center; gap: 6px;
 padding: 7px 12px; margin-top: 1px;
 border: 1px dashed var(--green-line); border-radius: var(--r-sm);
 background: var(--paper);
 font-family: var(--f-display); font-size: 12.5px; font-weight: 600; color: var(--green-ink);
 white-space: nowrap;
 transition: background var(--t-fast), border-color var(--t-fast);
}
.tr-add svg { width: 14px; height: 14px; }
.tr-add:hover { background: var(--green-tint); border-color: var(--green-ink); }
.tr-sum {
 display: flex; align-items: center; justify-content: space-between; gap: 12px;
 padding: 12px 20px;
 border-top: 1px solid var(--rule-hair); background: var(--paper-2);
 font-size: 13px; color: var(--muted);
}
.tr-sum b { font-family: var(--f-display); font-size: 16px; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.tr-blocked { padding: 22px 20px; font-size: 13.5px; color: var(--ink-2); }

/* Invoerformulier: dialoog op desktop, bottom sheet op mobiel */
.sheet {
 width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
 padding: 0; border: 0; border-radius: var(--r-lg);
 background: var(--paper); color: var(--ink);
 box-shadow: 0 30px 70px -24px rgba(11,35,24,.45);
}
.sheet::backdrop { background: rgba(11,35,24,.42); }
.sheet:focus, .sheet:focus-visible { outline: none; box-shadow: 0 30px 70px -24px rgba(11,35,24,.45); }
.sheet[open] { animation: sheetIn .22s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 4px; }
.sheet-head h3 { font-size: 18px; }
.sheet-x { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.sheet-x:hover { background: var(--cream-2); color: var(--green-deep); }
.sheet-x svg { width: 18px; height: 18px; }
.sheet-body { padding: 6px 20px 2px; }
.sheet-date { margin-bottom: 14px; font-family: var(--f-display); font-size: 14px; font-weight: 600; color: var(--green-ink); }
.sheet-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--rule-hair); }
.sheet-foot .spacer { flex: 1; }
.btn-danger-ghost { color: var(--red-ink); border: 1px solid transparent; background: none; }
.btn-danger-ghost:hover { background: var(--red-soft); }
.form-grid.tr-times { grid-template-columns: 1fr 1fr; }
.tr-calc { margin: -2px 0 12px; font-size: 13px; color: var(--ink-2); }
.tr-calc b { font-family: var(--f-display); color: var(--green-deep); }
.tr-calc .hint { display: block; margin-top: 2px; font-size: 12px; color: var(--amber-ink); }
.field textarea { resize: vertical; min-height: 64px; }
.sheet .login-msg { margin: 0 0 12px; }

/* ============ PROFIEL-KOP ============ */
.prof-head { display: flex; align-items: center; gap: 16px; }
.prof-head .avatar { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.prof-head h1 { font-size: 27px; }
.prof-head .sub { margin-top: 4px; }

/* ============ EMPTY / NOTE ============ */
.empty { padding: 26px 12px; text-align: center; color: var(--muted); }
.empty-ic {
 width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px;
 display: flex; align-items: center; justify-content: center;
 background: var(--cream-2); color: var(--muted-2);
}
.empty-ic svg { width: 19px; height: 19px; }
.empty h3 { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.empty p { margin-top: 4px; font-size: 12.5px; }

/* ============ TOAST ============ */
.toast {
 position: fixed; left: 50%; bottom: 28px; z-index: 400;
 transform: translateX(-50%) translateY(20px);
 display: inline-flex; align-items: center; gap: 9px;
 max-width: calc(100vw - 32px);
 padding: 12px 18px;
 background: var(--green-deep); color: #F4F1EC;
 border-radius: var(--r-md);
 font-family: var(--f-display); font-size: 13px; font-weight: 600;
 box-shadow: 0 18px 40px -16px rgba(11,35,24,.55);
 opacity: 0; pointer-events: none;
 transition: opacity var(--t-base), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(140,219,56,.7); }
.toast.error { background: var(--red-ink); }
.toast.error::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FFD6D1; }

/* ============ BOTTOM NAV (mobiel) ============ */
.bottom-nav { display: none; }

/* ============ ENTREE-ANIMATIE ============ */
.main > * { animation: fhIn .4s var(--ease) backwards; }
.main > *:nth-child(2) { animation-delay: .04s; }
.main > *:nth-child(3) { animation-delay: .08s; }
.main > *:nth-child(4) { animation-delay: .12s; }
.main > *:nth-child(5) { animation-delay: .16s; }
@keyframes fhIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
 .grid-main, .grid-2col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
 body { font-size: 15px; }
 .app { grid-template-columns: minmax(0, 1fr); }
 .side { display: none; }
 .top { padding: 0 16px; }
 .top-brand { display: flex; align-items: center; }
 .crumbs, .lang-switch { display: none; }
 .lang-pick { display: block; }
 .main { padding: 20px 16px calc(var(--bottom-nav-h) + 28px + env(safe-area-inset-bottom)); gap: 14px; }
 .page-head h1 { font-size: 26px; }
 .page-head .actions { width: 100%; }
 .page-head .actions .btn { flex: 1; padding-top: 12px; padding-bottom: 12px; }
 .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
 .kpi { min-height: 104px; padding: 14px 14px 13px; }
 .kpi .num { font-size: 25px; }
 .kpi .num.num-sm { font-size: 16px; }
 .kpi .ico { top: 12px; right: 12px; width: 28px; height: 28px; }
 .card-head { padding: 14px 16px; }
 .card-pad { padding: 16px; }
 .action-list { padding: 2px 16px; }
 .card-note { padding: 0 16px 16px; }
 .card-foot { padding: 12px 16px; }
 .form-grid { grid-template-columns: 1fr; }
 .field input { padding: 13px 14px; font-size: 16px; }
 .btn { min-height: 44px; }
 .btn-sm { min-height: 36px; }
 .hbar-row { grid-template-columns: 58px minmax(0, 1fr) 24px; gap: 9px; }
 .bottom-nav {
 display: flex;
 position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
 height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
 padding-bottom: env(safe-area-inset-bottom);
 background: rgba(255,255,255,.92);
 backdrop-filter: blur(16px) saturate(1.6);
 -webkit-backdrop-filter: blur(16px) saturate(1.6);
 border-top: 1px solid var(--rule);
 }
 .bottom-nav a {
 flex: 1; position: relative;
 display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
 font-family: var(--f-display); font-size: 10.5px; font-weight: 600;
 color: var(--muted-2);
 transition: color var(--t-fast);
 }
 .bottom-nav .ic svg { width: 21px; height: 21px; }
 .bottom-nav a.active { color: var(--green-deep); }
 .bottom-nav a.active .ic { color: var(--green-ink); }
 .bottom-nav a.active::before {
 content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px;
 border-radius: 0 0 3px 3px; background: var(--green);
 }
 .toast { bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); }
 /* Tabel → kaarten */
 .tbl thead { display: none; }
 .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
 .tbl tbody tr { padding: 10px 16px; border-bottom: 1px solid var(--rule-hair); }
 .tbl tbody tr:hover td:first-child { box-shadow: none; }
 .tbl tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; border: 0; }
 .tbl tbody td::before {
 content: attr(data-lbl);
 font-family: var(--f-display); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
 color: var(--muted-2);
 }
 .tbl .num { text-align: right; }
 .tbl .mini-bar { display: none; }
 /* Urentabel: week als titel, status rechtsboven */
 .tbl-weeks tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 16px; }
 .tbl-weeks tbody td { grid-column: 1 / -1; }
 .tbl-weeks tbody td:first-child { grid-column: 1; grid-row: 1; padding-bottom: 6px; font-size: 14px; }
 .tbl-weeks tbody td:last-child { grid-column: 2; grid-row: 1; padding-bottom: 6px; }
 .tbl-weeks tbody td:first-child::before, .tbl-weeks tbody td:last-child::before { content: none; }
}
@media (max-width: 900px) {
 .tr-card .card-head { flex-wrap: wrap; }
 .tr-weeknav { width: 100%; justify-content: space-between; }
 .tr-day { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 16px; }
 .tr-day-name { grid-column: 1; grid-row: 1; padding-top: 4px; }
 .tr-day-name small { display: inline; margin-left: 6px; }
 .tr-day .tr-add { grid-column: 2; grid-row: 1; }
 .tr-entries { grid-column: 1 / -1; grid-row: 2; }
 .tr-none { display: none; }
 .tr-entry { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 10px 12px; }
 .tr-entry .tr-time { grid-column: 1; grid-row: 1; }
 .tr-entry .tr-hours { grid-column: 2; grid-row: 1; text-align: right; }
 .tr-entry .tr-meta { grid-column: 1; grid-row: 2; }
 .tr-entry .badge { grid-column: 2; grid-row: 2; justify-self: end; }
 .tr-sum { padding: 12px 16px; }
 .sheet {
  width: 100vw; max-width: 100vw; max-height: 92dvh;
  margin: auto 0 0; border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
 }
 .sheet[open] { animation: sheetUp .26s var(--ease); }
 .sheet-foot .btn { flex: 1; }
 .sheet-foot .spacer { display: none; }
 .field textarea, .field select { font-size: 16px; }
 .tr-times input { font-size: 16px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (max-width: 380px) {
 .kpis { grid-template-columns: 1fr; }
}

/* ============ LOGIN — admin r.9941 e.v. ============ */
.login-wrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--cream); }
.login-aside {
 position: relative; overflow: hidden;
 display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
 padding: 44px 52px 36px;
 color: var(--cream);
 background:
 radial-gradient(60% 50% at 0% 100%, rgba(140,219,56,.16), transparent 70%),
 radial-gradient(50% 40% at 100% 0%, rgba(140,219,56,.08), transparent 70%),
 linear-gradient(158deg, #0E2C1E 0%, #0B2318 44%, #061710 100%);
}
.login-aside::before {
 content: ""; position: absolute; inset: 0; pointer-events: none;
 background-image:
 linear-gradient(rgba(252,247,242,.045) 1px, transparent 1px),
 linear-gradient(90deg, rgba(252,247,242,.045) 1px, transparent 1px);
 background-size: 62px 62px;
 -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 85%);
 mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 85%);
}
.login-aside::after {
 content: ""; position: absolute; right: -4%; bottom: 6%; width: 42%; max-width: 420px; aspect-ratio: 339 / 265;
 background: var(--green); opacity: .06; pointer-events: none;
 -webkit-mask: url("../../img/flexhero-icon.svg") center / contain no-repeat;
 mask: url("../../img/flexhero-icon.svg") center / contain no-repeat;
}
.login-aside > * { position: relative; z-index: 1; }
.login-aside-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login-mark { display: flex; align-items: center; gap: 14px; }
.login-mark-ico { width: 38px; height: auto; filter: drop-shadow(0 0 14px rgba(140,219,56,.35)); }
.login-mark-rule { width: 1px; height: 22px; background: rgba(252,247,242,.18); }
.login-mark-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(252,247,242,.62); }
.login-aside .lang-switch { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.login-aside .lang-switch button { color: rgba(252,247,242,.62); }
.login-aside .lang-switch button:hover { color: #fff; }
.login-aside .lang-switch button.active { background: var(--green); color: var(--green-deep); box-shadow: none; }
.login-aside h1 {
 font-size: clamp(34px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -0.045em;
 color: #fff; max-width: 13ch; text-wrap: balance;
}
.login-aside h1 em { font-style: italic; font-weight: 600; color: var(--green); }
.login-aside-lead { margin-top: 18px; max-width: 46ch; font-size: 15px; line-height: 1.65; color: rgba(252,247,242,.72); }
.login-perks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.login-perks li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: rgba(252,247,242,.88); }
.login-perks li span:first-child {
 width: 22px; height: 22px; border-radius: 7px;
 display: inline-flex; align-items: center; justify-content: center;
 background: rgba(140,219,56,.14); color: var(--green);
}
.login-perks svg { width: 12px; height: 12px; }
.login-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.login-chips span {
 padding: 6px 12px; border-radius: var(--r-full);
 font-family: var(--f-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
 color: rgba(163,240,78,.92); border: 1px solid rgba(140,219,56,.22); background: rgba(140,219,56,.06);
}
.login-foot-note { padding-top: 18px; border-top: 1px solid rgba(252,247,242,.08); font-family: var(--f-mono); font-size: 11px; color: rgba(252,247,242,.4); }
.login-main {
 display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
 padding: 40px 32px;
 background: radial-gradient(60% 40% at 70% 0%, rgba(140,219,56,.10), transparent 70%), var(--cream);
}
.login-head img { width: 168px; height: auto; }
.login-card {
 width: 100%; max-width: 452px;
 padding: 36px 40px 32px;
 background: var(--paper);
 border: 1px solid var(--rule);
 border-radius: var(--r-xl);
 box-shadow: 0 26px 60px -30px rgba(11,35,24,.30);
}
.login-card .crumb {
 display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
 font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
 color: var(--green-ink);
}
.login-card .crumb::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--green); }
.login-card h1 { font-size: 33px; letter-spacing: -0.04em; line-height: 1.05; }
.login-card h1 em { font-style: normal; }
.login-card .lead { margin: 10px 0 24px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.login-card .btn-login {
 width: 100%; min-height: 50px; margin-top: 4px;
 background: linear-gradient(180deg, #16402D 0%, #0B2318 100%); color: #fff;
 border-radius: var(--r-md); font-size: 14px;
 box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px -12px rgba(11,35,24,.55);
}
.login-card .btn-login:hover { background: linear-gradient(180deg, #1B4A35 0%, #0E2A1D 100%); }
.login-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.5; }
.login-msg.err { background: var(--red-soft); color: var(--red-ink); border: 1px solid rgba(200,67,58,.2); }
.login-msg.ok { background: var(--ok-soft); color: var(--ok-ink); border: 1px solid rgba(94,168,44,.25); }
.login-info {
 display: flex; gap: 12px; align-items: flex-start;
 margin-top: 20px; padding: 14px;
 border-radius: var(--r-md);
 background: var(--green-tint); border: 1px solid var(--green-line);
}
.login-info-ico {
 width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
 display: inline-flex; align-items: center; justify-content: center;
 background: var(--green-deep); color: var(--green);
}
.login-info-ico svg { width: 15px; height: 15px; }
.login-info > div > b { display: block; font-family: var(--f-display); font-size: 13px; color: var(--green-deep); }
.login-info > div > span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.login-noaccess { margin-top: 18px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted-2); }
.login-noaccess a { color: var(--green-ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
 .login-wrap { grid-template-columns: minmax(0, 1fr); }
 .login-aside { display: none; }
 .login-main { justify-content: flex-start; padding: 32px 16px; }
 .login-card { padding: 28px 22px 24px; }
 .login-card h1 { font-size: 28px; }
}

/* ============ MOTION / PRINT ============ */
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
 .side, .top, .bottom-nav, .page-foot, .btn { display: none !important; }
 .app { display: block; }
 .main { padding: 0; max-width: none; }
 body { background: #fff; }
 .card, .kpi { box-shadow: none; break-inside: avoid; }
}

/* ── Berichten, meldingen, installeren, contact (13 nov 2026) ─────────── */
.lead-sm { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.muted { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.push-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.push-err { color: var(--red); font-size: 13px; margin: 8px 0 0; }
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.msg.unread { border-color: var(--green-line); background: var(--green-tint); }
.msg.pinned { border-left: 4px solid var(--green); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 6px; }
.msg-head h3 { margin: 0; font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.msg-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.msg-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.msg-body a { color: var(--green-ink); font-weight: 600; }
.msg-compact .msg { padding: 12px 14px; }
.msg-compact .msg-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.install-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 18px; border-radius: 14px; background: var(--green-deep); color: #fff; }
.install-banner[hidden] { display: none; }
.install-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.install-ico svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.install-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.45; }
.install-txt b { font-family: var(--f-display); font-size: 15px; }
.install-txt span { opacity: .85; }
.install-actions { display: flex; gap: 8px; }
.install-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.contact-actions .btn svg { width: 18px; height: 18px; }
.side-wa { margin-top: 8px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 0; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--track); position: relative; flex: none; transition: background var(--t-fast); cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform var(--t-fast); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: var(--ink); font-size: 11px; font-weight: 700; margin-left: auto; }

/* ── Urendeadline (maandag 12:00) ─────────────────────────────────────── */
.tr-deadline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--green-tint); border: 1px solid var(--green-line); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.tr-deadline.is-soon { background: #FFF6E5; border-color: #F2D49B; color: #7A4B00; font-weight: 600; }
.tr-deadline.is-closed { background: var(--paper-2); border-color: var(--rule); color: var(--ink-2); }
.tr-entry.is-locked { opacity: .75; cursor: default; }
