/* UrenApp Werkgeversportaal v2 — employe.urenapp.eu
   Volwaardige SaaS-omgeving: donkere sidebar, lichte content, groen accent.
   Eén stylesheet voor de app (index.html) en de koppelpagina (join.html). */

:root {
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --line: #E8E5DE;
  --line2: #D8D4CB;
  --text: #1D1B16;
  --text2: #55524A;
  --muted: #8B867B;

  --green: #3E7B5C;
  --green-d: #2F6249;
  --green-bg: #E5F0E9;
  --red: #C4573F;
  --red-d: #A8462F;
  --red-bg: #F8E6E0;
  --blue: #4E77A8;
  --blue-d: #3D6089;
  --blue-bg: #E5EDF6;
  --amber: #B08035;
  --amber-bg: #F5ECDA;

  --side-bg: #16140F;
  --side-line: #2A2720;
  --side-text: #A8A296;
  --side-text2: #6E6A5F;

  --shadow: 0 1px 2px rgba(20,18,12,.05);
  --shadow-md: 0 1px 3px rgba(20,18,12,.05), 0 10px 30px -16px rgba(20,18,12,.18);
  --shadow-lg: 0 24px 60px -24px rgba(20,18,12,.35);
  --r: 12px;
  --r-sm: 8px;
  --sidew: 248px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green-bg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: 1.32rem; font-weight: 750; }
h2 { font-size: 1.05rem; font-weight: 750; }
h3 { font-size: .95rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

svg.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- Generieke layout ---------- */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.narrow { max-width: 480px; margin: 0 auto; width: 100%; }
.spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0,1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.card.tight { padding: 13px 15px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h2, .card-h h3 { letter-spacing: -.015em; }
.callout { border: 1px solid var(--green); border-left-width: 3px; background: var(--green-bg); padding: 11px 14px; border-radius: var(--r-sm); font-size: 13.5px; }
.callout.warn { border-color: var(--red); background: var(--red-bg); }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; border-radius: var(--r-sm); padding: 9px 16px; border: 1px solid transparent; cursor: pointer; font-size: 13.5px; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-pri { background: var(--green); color: #fff; }
.btn-pri:hover { background: var(--green-d); }
.btn-sec { background: var(--surface); border-color: var(--line2); color: var(--text); }
.btn-sec:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--line); color: var(--text); }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red-d); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn.block { width: 100%; }
/* Aliassen zodat join.js (v1-klassen) blijft werken */
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-d); }
.btn-soft { background: var(--bg); border-color: var(--line2); color: var(--text); }
.btn-soft:hover { border-color: var(--muted); }

.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--surface); color: var(--text2); cursor: pointer; transition: border-color .12s, color .12s; flex: 0 0 auto; }
.iconbtn:hover { border-color: var(--muted); color: var(--text); }

/* ---------- Formulieren ---------- */
label.lbl { display: block; font-size: 12px; font-weight: 650; color: var(--text2); margin-bottom: 6px; }
.input, input[type=text], input[type=email], input[type=password], input[type=date], select.input {
  width: 100%; border: 1px solid var(--line2); background: var(--surface); border-radius: var(--r-sm); padding: 9px 12px; font-size: 14px; transition: border-color .12s, box-shadow .12s;
}
input:focus, select.input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(62,123,92,.13); }
input.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; letter-spacing: .35em; text-align: center; padding: 10px; }
.field { display: flex; flex-direction: column; }
.field + .field { margin-top: 12px; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--green); }
select.input, .selectw select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238B867B' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.pwwrap { position: relative; }
.pwwrap input { padding-right: 78px; }
.pwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg); color: var(--text2); font-size: 11.5px; font-weight: 650; padding: 5px 9px; border-radius: 6px; cursor: pointer; }

/* ---------- Chips / status ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; border: 1px solid var(--line2); color: var(--text2); background: var(--surface); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--green-bg); border-color: transparent; color: var(--green-d); }
.chip.warn { background: var(--amber-bg); border-color: transparent; color: var(--amber); }
.chip.err { background: var(--red-bg); border-color: transparent; color: var(--red-d); }
.chip.soft { background: var(--bg); border-color: transparent; color: var(--text2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; border: 1px solid var(--line2); color: var(--text2); background: var(--surface); white-space: nowrap; }
.pill.ok { background: var(--green-bg); border-color: transparent; color: var(--green-d); }
.pill.warn { background: var(--amber-bg); border-color: transparent; color: var(--amber); }
.pill.soft { background: var(--bg); border-color: transparent; color: var(--text2); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tt { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.tt i { width: 8px; height: 8px; border-radius: 2.5px; background: var(--line2); flex: 0 0 auto; }
.tt-worked i { background: var(--green); }
.tt-sick i { background: var(--red); }
.tt-vac i { background: var(--blue); }
.tt-off i { background: var(--amber); }

.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green-bg); color: var(--green-d); font-weight: 750; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; letter-spacing: .01em; }
.avatar.warn { background: var(--amber-bg); color: var(--amber); }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.dk { background: #2C2922; color: #DCD7CB; }

/* ---------- App-shell ---------- */
#app { min-height: 100vh; }
body.with-side #app { margin-left: var(--sidew); display: flex; flex-direction: column; min-height: 100vh; }

.side { display: none; position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidew); background: var(--side-bg); color: var(--side-text); flex-direction: column; z-index: 40; padding: 0; }
body.with-side .side { display: flex; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 800; letter-spacing: -.02em; font-size: 15px; text-decoration: none; }
.side-brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.side-brand .mark svg.ic { width: 17px; height: 17px; }
.side-brand small { display: block; font-size: 10px; font-weight: 600; color: var(--side-text2); letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }
.side-org { margin: 4px 14px 10px; }
.side-org .sorg { width: 100%; background: #211E17; border: 1px solid var(--side-line); color: #E8E4DA; border-radius: 9px; padding: 9px 30px 9px 11px; font-size: 13px; font-weight: 650; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236E6A5F' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.side-org .sorg-static { background: #211E17; border: 1px solid var(--side-line); border-radius: 9px; padding: 9px 11px; }
.side-org .sorg-static .n { color: #E8E4DA; font-size: 13px; font-weight: 650; }
.side-org .sorg-static .s { color: var(--side-text2); font-size: 11px; margin-top: 1px; }
.snav { padding: 2px 10px; display: flex; flex-direction: column; gap: 2px; }
.snav .sec { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--side-text2); padding: 12px 10px 5px; }
.snav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--side-text); transition: background .12s, color .12s; position: relative; }
.snav a:hover { background: #211E17; color: #E8E4DA; }
.snav a.active { background: #26231B; color: #fff; }
.snav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.snav a svg.ic { width: 16px; height: 16px; opacity: .85; }
.side-foot { margin-top: auto; padding: 12px 14px 14px; border-top: 1px solid var(--side-line); display: flex; flex-direction: column; gap: 10px; }
.side-foot .slang { width: 100%; background: transparent; border: 1px solid var(--side-line); color: var(--side-text); border-radius: 8px; padding: 6px 26px 6px 10px; font-size: 12px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236E6A5F' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.side-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.side-user .t { min-width: 0; flex: 1; }
.side-user .n { color: #E8E4DA; font-size: 12.5px; font-weight: 650; line-height: 1.25; }
.side-user .e { color: var(--side-text2); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .out { color: var(--side-text2); border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 7px; }
.side-user .out:hover { color: #fff; background: #211E17; }
.sclose { display: none; border: 0; background: transparent; color: var(--side-text); cursor: pointer; padding: 6px; border-radius: 7px; }
.side-scrim { display: none; position: fixed; inset: 0; background: rgba(15,13,9,.5); z-index: 39; }

/* Pagina-header binnen content */
.phead { position: sticky; top: 0; z-index: 25; background: rgba(246,245,242,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.phead .in { display: flex; align-items: center; gap: 12px; padding: 13px 28px; min-height: 60px; flex-wrap: wrap; }
.phead h1 { font-size: 1.13rem; }
.phead .crumb { font-size: 12px; color: var(--muted); font-weight: 600; }
.content { padding: 24px 28px 70px; width: 100%; max-width: 1240px; }
.menubtn { display: none; border: 1px solid var(--line2); background: var(--surface); border-radius: 8px; width: 34px; height: 34px; align-items: center; justify-content: center; cursor: pointer; color: var(--text2); flex: 0 0 auto; }

@media (max-width: 1020px) {
  body.with-side #app { margin-left: 0; }
  body.with-side .side { transform: translateX(-104%); transition: transform .2s ease; width: min(290px, 85vw); box-shadow: var(--shadow-lg); }
  body.side-open .side { transform: none; }
  body.side-open .side-scrim { display: block; }
  .menubtn, body.side-open .sclose { display: inline-flex; }
  .sclose { display: inline-flex; position: absolute; top: 14px; right: 10px; }
  .phead .in, .content { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { body.with-side .side { transition: none; } }

/* ---------- Segmented / toolbar ---------- */
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); padding: 2px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 5px 12px; font-weight: 600; font-size: 12.5px; cursor: pointer; color: var(--muted); border-radius: 6px; transition: color .12s, background .12s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--text); color: var(--surface); }
.seg button svg.ic { width: 14px; height: 14px; }
.navbtn { border: 1px solid var(--line2); background: var(--surface); border-radius: var(--r-sm); width: 30px; height: 30px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--text2); }
.navbtn:hover { border-color: var(--muted); color: var(--text); }
.period-label { font-weight: 700; font-size: 13.5px; min-width: 175px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .k { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); font-weight: 650; }
.kpi .k .icw { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bg); color: var(--text2); }
.kpi .k .icw svg.ic { width: 14px; height: 14px; }
.kpi .v { font-size: 1.62rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 7px; line-height: 1.05; }
.kpi .v small { font-size: .74rem; color: var(--muted); font-weight: 650; margin-left: 3px; }
.kpi .delta { margin-top: 4px; font-size: 11.5px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .delta .ar { font-size: 9px; vertical-align: 1px; }
.kpi .delta.up { color: var(--green-d); }
.kpi .delta.down { color: var(--red-d); }
.kpi.a-total .icw { background: #EBE9E3; color: var(--text); }
.kpi.a-worked .icw { background: var(--green-bg); color: var(--green-d); }
.kpi.a-sick .icw { background: var(--red-bg); color: var(--red-d); }
.kpi.a-vacation .icw { background: var(--blue-bg); color: var(--blue-d); }
.kpi.a-km .icw, .kpi.a-linked .icw { background: #EBE9E3; color: var(--text2); }

/* ---------- Dashboard ---------- */
.dashgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dashgrid { grid-template-columns: minmax(0,1fr); } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.chartwrap { width: 100%; }
.chartwrap svg { width: 100%; height: auto; display: block; }
.bartip { font-size: 11px; }

.dlist { display: flex; flex-direction: column; }
.dlist .drow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dlist .drow:last-child { border-bottom: 0; }
.dlist .drow .t { flex: 1; min-width: 0; }
.dlist .drow .n { font-weight: 650; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlist .drow .s { font-size: 11.5px; color: var(--muted); }
.dlist .drow .v { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); }

.donutwrap { display: flex; align-items: center; gap: 18px; }
.donutwrap svg { flex: 0 0 auto; }
.donutlegend { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.donutlegend .dl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.donutlegend .dl .v { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Onboarding / empty state */
.obcard { text-align: center; padding: 44px 24px; }
.obcard .obi { width: 52px; height: 52px; border-radius: 14px; background: var(--green-bg); color: var(--green-d); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.obcard .obi svg.ic { width: 24px; height: 24px; }
.obsteps { display: flex; gap: 12px; justify-content: center; margin: 20px auto 22px; max-width: 640px; flex-wrap: wrap; }
.obstep { flex: 1; min-width: 150px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; font-size: 12.5px; color: var(--text2); }
.obstep b { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--surface); font-size: 11px; margin: 0 auto 8px; }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.card .tablewrap { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0 -20px -18px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: #FAF9F6; white-space: nowrap; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #FAF9F6; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td.desc { color: var(--text2); max-width: 320px; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 6px; }
.tname { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; white-space: nowrap; }

/* Weekrooster */
.wgrid th, .wgrid td { text-align: center; }
.wgrid th:first-child, .wgrid td:first-child { text-align: left; }
.wgrid th:not(:first-child) { min-width: 52px; }
.wgrid .dnum { color: var(--line2); font-weight: 700; }
.wgrid th.today { color: var(--green-d); box-shadow: inset 0 -2px 0 var(--green); }
.wgrid td.today { background: rgba(62,123,92,.05); }
.wgrid td.gc { font-variant-numeric: tabular-nums; font-weight: 700; }
.wgrid td.gc-worked { background: #EDF4EF; color: var(--green-d); }
.wgrid td.gc-sick { background: var(--red-bg); color: var(--red-d); }
.wgrid td.gc-vac { background: var(--blue-bg); color: var(--blue-d); }
.wgrid td.gc-off { background: var(--amber-bg); color: var(--amber); }
.wgrid tfoot td { border-top: 1px solid var(--line2); border-bottom: 0; background: #FAF9F6; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--text2); }

/* ---------- Taal-dropdown ---------- */
.lmenu { position: relative; display: inline-block; }
.lmenu-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 650; cursor: pointer; color: var(--text2); transition: border-color .12s, color .12s; }
.lmenu-btn:hover { border-color: var(--muted); color: var(--text); }
.lmenu-btn svg.ic { width: 13px; height: 13px; }
.lmenu-btn > svg.ic:last-child { width: 11px; height: 11px; transition: transform .15s; }
.lmenu.open .lmenu-btn > svg.ic:last-child { transform: rotate(180deg); }
.lmenu-pop { position: absolute; right: 0; top: calc(100% + 7px); min-width: 165px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 5px; display: none; z-index: 110; }
.lmenu.open .lmenu-pop { display: block; animation: lmIn .16s cubic-bezier(.2,.8,.2,1); }
@keyframes lmIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.lmenu-pop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 8px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text2); text-align: left; }
.lmenu-pop button:hover { background: var(--bg); color: var(--text); }
.lmenu-pop button.on { color: var(--green-d); font-weight: 700; }
.lmenu-pop button svg.ic { width: 13px; height: 13px; stroke: var(--green-d); }
.lmenu.dark { width: 100%; }
.lmenu.dark .lmenu-btn { width: 100%; background: transparent; border-color: var(--side-line); color: var(--side-text); border-radius: 8px; }
.lmenu.dark .lmenu-btn span { flex: 1; text-align: left; }
.lmenu.dark .lmenu-btn:hover { color: #E8E4DA; border-color: #3A362C; }
.lmenu.dark .lmenu-pop { left: 0; right: auto; top: auto; bottom: calc(100% + 7px); background: #211E17; border-color: var(--side-line); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); }
.lmenu.dark .lmenu-pop button { color: var(--side-text); }
.lmenu.dark .lmenu-pop button:hover { background: #2A2720; color: #fff; }
.lmenu.dark .lmenu-pop button.on { color: #8FBF9F; }
.lmenu.dark .lmenu-pop button svg.ic { stroke: #8FBF9F; }
@media (prefers-reduced-motion: reduce) { .lmenu.open .lmenu-pop { animation: none; } }

/* ---------- Modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15,13,9,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 80; }
.modal { background: var(--surface); border-radius: 14px; padding: 20px 22px; max-width: 500px; width: 100%; box-shadow: var(--shadow-lg); }
.modal h2 { margin-bottom: 4px; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.linkbox input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 12.5px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-lg); z-index: 90; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: min(90vw, 480px); }
.toast.show { opacity: 1; }
.toast.err { background: var(--red-d); }

/* ---------- Leeg / laden ---------- */
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line2); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, #EDEBE5 25%, #F3F1EC 37%, #EDEBE5 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 7px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .spinner, .skel { animation: none; } }

/* ---------- Auth (login/registreren) ---------- */
body.authpage { background: #F4EEE3; background-image: radial-gradient(rgba(26,24,21,.07) 1.2px, transparent 1.3px); background-size: 26px 26px; }
body.authpage #app { display: grid; grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { background: var(--side-bg); background-image: radial-gradient(rgba(255,253,248,.065) 1.2px, transparent 1.3px); background-size: 26px 26px; color: var(--side-text); padding: 44px 48px; display: flex; flex-direction: column; }
.auth-brand .side-brand { padding: 0; margin-bottom: auto; }
.auth-brand h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.15rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.22; max-width: 400px; text-wrap: balance; }
.hl-a { display: inline-block; background: rgba(62,123,92,.4); color: #CBE3D3; border-radius: 11px; padding: .01em .16em .05em; transform: rotate(-1.4deg); }
.wt-a { display: flex; gap: 6px; margin-top: 30px; }
.wt-a .d { width: 42px; border-radius: 9px; background: #211E17; border: 1px solid var(--side-line); padding: 6px 0 7px; text-align: center; opacity: 0; animation: wtIn .5s cubic-bezier(.2,.8,.2,1) forwards; }
.wt-a .d span { display: block; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--side-text2); }
.wt-a .d b { display: block; font-size: 14px; font-weight: 800; margin-top: 1px; color: #E8E4DA; font-variant-numeric: tabular-nums; }
.wt-a .d.g b { color: #8FBF9F; }
.wt-a .d.z b { color: #E0937F; }
.wt-a .d.v b { color: #8FB2D9; }
.wt-a .d.e b { color: #4A463D; }
.wt-a .d:nth-child(1){animation-delay:.3s}.wt-a .d:nth-child(2){animation-delay:.45s}.wt-a .d:nth-child(3){animation-delay:.6s}.wt-a .d:nth-child(4){animation-delay:.75s}.wt-a .d:nth-child(5){animation-delay:.9s}.wt-a .d:nth-child(6){animation-delay:1.05s}.wt-a .d:nth-child(7){animation-delay:1.2s}
@keyframes wtIn { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wt-a .d { animation: none; opacity: 1; } }
.auth-brand .vals { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; margin-bottom: auto; }
.auth-brand .val { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--side-text); max-width: 360px; }
.auth-brand .val .vi { width: 22px; height: 22px; border-radius: 7px; background: rgba(62,123,92,.25); color: #7FB694; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; }
.auth-brand .val .vi svg.ic { width: 13px; height: 13px; }
.auth-brand .foot { font-size: 11.5px; color: var(--side-text2); }
.auth-body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-size: 1.55rem; font-weight: 900; letter-spacing: -.03em; }
.auth-card .card { padding: 26px; border-radius: 16px; box-shadow: 0 2px 4px rgba(20,18,12,.05), 0 28px 60px -30px rgba(20,18,12,.3); }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: -6px; }
.auth-lang { position: absolute; top: 18px; right: 22px; }
.auth-lang select { border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 5px 26px 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238B867B' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
@media (max-width: 860px) {
  body.authpage #app { grid-template-columns: minmax(0,1fr); }
  .auth-brand { display: none; }
}

/* ---------- Topbar (join-pagina en orgs-overzicht) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; font-size: 15px; text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.brand .mark svg.ic { width: 15px; height: 15px; }
.brand small { font-weight: 600; color: var(--muted); font-size: .74rem; letter-spacing: 0; }
.topbar select { border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 5px 27px 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238B867B' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; max-width: 200px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }

/* ---------- Join-pagina (v1-klassen) ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line2); }
.steps span.on { background: var(--green); }
.emp-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--r-sm); cursor: pointer; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.emp-opt.sel { border-color: var(--green); box-shadow: 0 0 0 3px rgba(62,123,92,.12); }
.emp-opt.dis { opacity: .55; cursor: not-allowed; }
.emp-opt input { margin-top: 3px; accent-color: var(--green); }
.emp-opt + .emp-opt { margin-top: 8px; }
.footer { margin-top: 40px; font-size: 12px; color: var(--muted); text-align: center; }
