/* Made4Group werkruimte, in de stijl van made4solar.nl: Inter, vlak groen
   #186d40 als dragende kleur, lime #def93d voor de ene hoofdactie, crème
   #f1efe6 als paginakleur met witte kaarten, echte installatiefoto's van
   het bedrijf. Beweging kort en functioneel (120 tot 420 ms), uit bij
   prefers-reduced-motion. Zie docs/HUISSTIJL.md. */
@import url("/static/merk/fonts/fonts.css");

:root {
  --groen: #186d40; --groen-donker: #2d6650; --groen-fel: #09ce63; --groen-licht: #e7f2ec; --groen-licht-2: #d3e8db;
  --lime: #def93d; --lime-donker: #cfea2b; --lime-licht: #f6fbd3; --lime-inkt: #2e3a05;
  --nacht: #1a2f27; --inkt: #1f211c; --inkt-2: #4b4e47; --bijschrift: #6b6e66; --creme: #f1efe6; --creme-2: #e6e3d8; --wit: #ffffff; --rand: #e5e4e3; --rand-2: #cfcdc9;
  --rood: #b4232c; --rood-licht: #fbe7e8; --amber: #a86a0a; --amber-licht: #fdf1dc;
  --tekst: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r: 8px; --r-s: 6px; --r-pil: 999px;
  --schaduw: 0 1px 2px rgba(31, 33, 28, 0.05);
  --schaduw-2: 0 20px 50px -20px rgba(31, 33, 28, 0.25), 0 2px 6px rgba(31, 33, 28, 0.06);
  --vlot: cubic-bezier(0.2, 0.7, 0.2, 1);
  --kop-h: 60px;
  /* oude namen blijven werken */
  --green: var(--groen); --ink: var(--inkt); --muted: var(--bijschrift); --line: var(--rand); --surface: var(--wit); --red: var(--rood); --lime-ink: var(--lime-inkt);
  --m4g-groen: var(--groen); --m4g-lime: var(--lime); --m4g-fout: var(--rood);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--tekst); font-size: 15px; line-height: 1.55; color: var(--inkt); background: var(--creme); -webkit-font-smoothing: antialiased; }
a { color: var(--groen); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--lime); color: var(--inkt); }
:focus-visible { outline: 2px solid var(--groen); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

/* ---------- beweging ---------- */
@keyframes rijzen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vervagen { from { opacity: 0; } to { opacity: 1; } }
@keyframes wegvagen { to { opacity: 0; transform: translateY(6px); } }
@keyframes wegvagen-plat { to { opacity: 0; } }
@keyframes vullen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(9, 206, 99, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(9, 206, 99, 0); } }
@keyframes tik { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes ademen { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes inzoomen { from { transform: scale(1.06); } to { transform: scale(1); } }
#app.wissel { animation: rijzen 260ms var(--vlot) both; }
::view-transition-old(root) { animation: 110ms ease-out both wegvagen-plat; }
::view-transition-new(root) { animation: 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both rijzen; }
.kop { view-transition-name: kop; } .zijbalk { view-transition-name: zijbalk; } .onderbalk { view-transition-name: onderbalk; }

/* ---------- kop (groene band, zoals de site) ---------- */
.kop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: var(--kop-h); padding: 0 24px; background: var(--groen); color: #fff; }
.kop img { height: 32px; width: 32px; border-radius: 50%; display: block; }
.kop-merk { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.kop-merk:hover { text-decoration: none; }
.kop-sub { font-size: 0.78rem; font-weight: 500; color: #fff; background: rgba(255, 255, 255, 0.14); padding: 4px 10px; border-radius: var(--r-s); }
.kop-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 500; color: #fff; }
.kop-rechts button, .kop-rechts .knop { margin: 0; }
.kop-rechts .secundair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.kop-rechts .secundair:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.kop :focus-visible, .band :focus-visible { outline-color: var(--lime); }
.bel { position: relative; background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; width: 38px; height: 38px; border-radius: 50%; padding: 0; margin: 0; display: inline-grid; place-items: center; cursor: pointer; transition: background 150ms, border-color 150ms; }
.bel:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.badge { position: absolute; top: -5px; right: -5px; background: var(--lime); color: var(--inkt); font-size: 0.66rem; font-weight: 700; border-radius: var(--r-pil); padding: 2px 6px; line-height: 1.1; min-width: 18px; text-align: center; }
.badge.tik { animation: tik 500ms var(--vlot); }

/* ---------- raam en zijbalk ---------- */
.raam { display: flex; min-height: calc(100vh - var(--kop-h)); }
.zijbalk { width: 240px; flex: none; position: sticky; top: var(--kop-h); height: calc(100vh - var(--kop-h)); overflow-y: auto; padding: 14px 12px 18px; background: var(--wit); border-right: 1px solid var(--rand); display: flex; flex-direction: column; }
.zb-merk { display: none; }
.zijbalk .groep { padding: 18px 12px 6px; font-size: 0.78rem; font-weight: 500; color: var(--groen); }
.zijbalk .groep:first-child { padding-top: 6px; }
.zijbalk a { position: relative; display: flex; align-items: center; gap: 11px; color: var(--inkt); text-decoration: none; padding: 9px 12px; margin: 1px 0; border-radius: var(--r-s); font-weight: 500; font-size: 0.92rem; transition: background 150ms, color 150ms; }
.zijbalk a::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--groen); transform: scaleY(0); transition: transform 200ms var(--vlot); }
.zijbalk a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--bijschrift); transition: color 150ms; }
.zijbalk a:hover { background: var(--creme); text-decoration: none; }
.zijbalk a:hover svg, .zijbalk a.actief svg { color: var(--groen); }
.zijbalk a.actief { background: var(--groen-licht); color: var(--groen); }
.zijbalk a.actief::before { transform: scaleY(1); }
.zb-gebruiker { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 16px 10px 4px; border-top: 1px solid var(--rand); font-size: 0.85rem; color: var(--bijschrift); }
.zb-gebruiker b { display: block; color: var(--inkt); font-weight: 600; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 0.8rem; background: var(--groen); color: #fff; flex: none; }

/* ---------- inhoud ---------- */
.inhoud { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 110px; min-width: 0; }
h1 { font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 16px; color: var(--inkt); }
h1 .klein { font-weight: 500; letter-spacing: 0; font-size: 0.88rem; }
h2 { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; margin: 20px 0 10px; }
h3 { font-weight: 600; font-size: 1rem; margin: 14px 0 6px; }
h4 { font-size: 0.82rem; font-weight: 500; color: var(--groen); margin: 16px 0 6px; }
.kaart { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--r); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--schaduw); animation: rijzen 360ms var(--vlot) both; }
.kaart:nth-child(2) { animation-delay: 40ms; } .kaart:nth-child(3) { animation-delay: 80ms; } .kaart:nth-child(4) { animation-delay: 120ms; } .kaart:nth-child(n+5) { animation-delay: 160ms; }
.kaart.smal { max-width: 520px; margin: 24px auto; }
.kaart > h2:first-child, .kaart > h1:first-child { margin-top: 0; }
.klein:not(button):not(.knop) { font-size: 0.82rem; color: var(--bijschrift); }   /* button.klein is een kleine knop, geen grijze tekst */
.fout { color: var(--rood); min-height: 1.2em; font-size: 0.9rem; font-weight: 500; }
p { margin: 8px 0; }
.skelet { display: grid; gap: 12px; padding-top: 8px; }
.skelet i { display: block; height: 18px; border-radius: 4px; background: var(--creme-2); animation: ademen 1.2s ease-in-out infinite; }
.skelet i:nth-child(1) { width: 38%; height: 28px; }
.skelet i:nth-child(2) { height: 120px; border-radius: var(--r); animation-delay: 120ms; }
.skelet i:nth-child(3) { height: 220px; border-radius: var(--r); animation-delay: 240ms; }

/* ---------- formulieren ---------- */
label { display: block; margin: 12px 0 0; font-weight: 600; font-size: 0.82rem; color: var(--inkt); }
label.vink { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 8px 0; cursor: pointer; font-size: 0.92rem; }
label.vink input { width: 18px; height: 18px; margin: 0; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--rand); border-radius: var(--r-s); font: inherit; font-weight: 400; color: var(--inkt); background: var(--wit); transition: border-color 140ms, box-shadow 140ms; }
input:hover, select:hover, textarea:hover { border-color: var(--rand-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--groen); box-shadow: 0 0 0 3px rgba(24, 109, 64, 0.15); }
input[type=checkbox], input[type=radio] { width: auto; display: inline-block; accent-color: var(--groen); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234b4e47' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
fieldset { border: 1px solid var(--rand); border-radius: var(--r-s); padding: 8px 14px 10px; margin: 12px 0; }
legend { font-size: 0.8rem; font-weight: 600; color: var(--inkt); padding: 0 6px; }
.rij { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rij3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
button, .knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 8px 0 0; padding: 11px 20px; border: 1px solid var(--groen); border-radius: var(--r); background: var(--groen); color: #fff; font: inherit; font-weight: 500; font-size: 0.92rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background 150ms, border-color 150ms, color 150ms, transform 120ms var(--vlot); }
button:hover, .knop:hover { background: var(--groen-donker); border-color: var(--groen-donker); text-decoration: none; }
button:active, .knop:active { transform: scale(0.98); }
button.lime, .knop.lime { background: var(--lime); border-color: var(--lime); color: var(--inkt); }
button.lime:hover, .knop.lime:hover { background: var(--lime-donker); border-color: var(--lime-donker); }
button.secundair, .knop.secundair { background: var(--wit); color: var(--inkt); border-color: var(--rand); }
button.secundair:hover, .knop.secundair:hover { background: var(--creme); border-color: var(--rand-2); color: var(--inkt); }
button.klein, .knop.klein { padding: 7px 12px; font-size: 0.82rem; margin: 4px 6px 0 0; }
button.gevaar { background: var(--wit); color: var(--rood); border-color: rgba(180, 35, 44, 0.4); }
button.gevaar:hover { background: var(--rood-licht); border-color: var(--rood); }
button:disabled { opacity: 0.45; cursor: default; transform: none; }
.sluit { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; padding: 0; margin: 0; border-radius: 50%; background: var(--creme); color: var(--inkt-2); font-size: 1.3rem; display: grid; place-items: center; border: 0; }
.sluit:hover { background: var(--creme-2); color: var(--inkt); }

/* ---------- tabellen en lijsten ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-size: 0.78rem; font-weight: 600; color: var(--bijschrift); padding-bottom: 8px; }
tr:last-child td { border-bottom: 0; }
tr.klik { cursor: pointer; transition: background 120ms; }
tr.klik:hover { background: var(--creme); }
tr.klik:hover td:first-child { box-shadow: inset 3px 0 0 var(--groen); }
td.r, th.r { text-align: right; white-space: nowrap; }
.lijst { list-style: none; padding: 0; margin: 0; }
.lijst li { padding: 11px 0; border-bottom: 1px solid var(--rand); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.lijst li:last-child { border-bottom: 0; }
.lijst li > div:first-child { flex: 1; min-width: 200px; }
table input, table select { margin: 0; padding: 6px 8px; }
.meer-lijst li { padding: 0; }
.meer-lijst a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; width: 100%; color: var(--inkt); font-weight: 500; }
.meer-lijst svg { width: 20px; height: 20px; stroke: var(--groen); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- status en werkstroom ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 500; color: var(--inkt-2); background: var(--creme); border-radius: var(--r-pil); padding: 3px 10px 3px 8px; white-space: nowrap; line-height: 1.4; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bijschrift); flex: none; }
.status.groen { color: var(--groen); background: var(--groen-licht); } .status.groen::before { background: var(--groen-fel); }
.status.lime { color: var(--lime-inkt); background: var(--lime-licht); } .status.lime::before { background: #b5cf1c; }
.status.nacht { color: #fff; background: var(--nacht); } .status.nacht::before { background: var(--lime); }
.status.rood { color: var(--rood); background: var(--rood-licht); } .status.rood::before { background: var(--rood); }
.status.grijs { color: var(--bijschrift); background: var(--creme-2); } .status.grijs::before { background: var(--bijschrift); }
.werkstroom { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.werkstroom a { flex: none; display: flex; flex-direction: column; gap: 3px; min-width: 118px; padding: 12px 14px; border-radius: var(--r); background: var(--wit); border: 1px solid var(--rand); text-decoration: none; color: var(--inkt); font-weight: 400; transition: border-color 150ms, transform 180ms var(--vlot), box-shadow 180ms; animation: rijzen 360ms var(--vlot) both; }
.werkstroom a:nth-child(2) { animation-delay: 40ms; } .werkstroom a:nth-child(3) { animation-delay: 80ms; } .werkstroom a:nth-child(4) { animation-delay: 120ms; } .werkstroom a:nth-child(5) { animation-delay: 160ms; }
.werkstroom a:nth-child(6) { animation-delay: 200ms; } .werkstroom a:nth-child(7) { animation-delay: 240ms; } .werkstroom a:nth-child(n+8) { animation-delay: 280ms; }
.werkstroom a:hover { border-color: var(--groen); transform: translateY(-2px); box-shadow: var(--schaduw-2); text-decoration: none; }
.werkstroom .n { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--groen); font-variant-numeric: tabular-nums; }
.werkstroom .n.nul { color: var(--bijschrift); font-weight: 500; }
.werkstroom .l { font-size: 0.8rem; color: var(--bijschrift); font-weight: 500; }
.werkstroom a.aandacht { background: var(--lime-licht); border-color: #dbe98a; } .werkstroom a.aandacht .n { color: var(--inkt); }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tegel { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color 150ms, transform 180ms var(--vlot); }
.tegel:hover { border-color: var(--groen); transform: translateY(-2px); text-decoration: none; }
.tegel .n { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--groen); line-height: 1.1; }
.tegel .l { font-size: 0.78rem; color: var(--bijschrift); }
.groet { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 20px; flex-wrap: wrap; }
.groet h1 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.groet .datum { font-size: 0.85rem; color: var(--groen); font-weight: 500; margin-bottom: 4px; }
.groet .datum::first-letter { text-transform: uppercase; }
.model-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--bijschrift); }
.model-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--groen-fel); }
.model-dot.uit::before { background: var(--rand-2); }
.twee { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }

/* ---------- tabs, balk, project ---------- */
.tabs { display: flex; gap: 22px; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--rand); margin: 14px 0 18px; scrollbar-width: none; }
.tabs a { position: relative; flex: none; padding: 10px 2px 11px; text-decoration: none; color: var(--bijschrift); font-weight: 500; font-size: 0.9rem; white-space: nowrap; transition: color 140ms; }
.tabs a:hover { color: var(--inkt); text-decoration: none; }
.tabs a.actief { color: var(--inkt); }
.tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--groen); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--vlot); }
.tabs a.actief::after { transform: scaleX(1); }
.balk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.balk input, .balk select { width: auto; margin: 0; min-width: 180px; }
.balk button, .balk .knop { margin: 0; }
.projectkop { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 4px; }
.projectkop h1 { margin: 0; }
.projectkop .adres { color: var(--inkt-2); font-size: 0.92rem; margin-top: 2px; }
.projectkop .nummer { color: var(--groen); font-weight: 700; letter-spacing: -0.02em; }
.feit { display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 14px; background: var(--wit); border: 1px solid var(--rand); border-radius: var(--r); min-width: 110px; }
.feit small { font-size: 0.7rem; color: var(--bijschrift); font-weight: 500; }
.feit b { font-size: 0.95rem; font-weight: 600; }
.tijdlijn { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rand); }
.tijdlijn li { padding: 4px 0 6px 16px; position: relative; font-size: 0.88rem; }
.tijdlijn li::before { content: ""; position: absolute; left: -7px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--groen); box-shadow: 0 0 0 3px var(--wit); }
.tijdlijn li:first-child::before { background: var(--groen-fel); }
.stappen { display: flex; gap: 0; margin: 14px 0; overflow-x: auto; padding-bottom: 4px; }
.stappen span { position: relative; flex: 1; min-width: 76px; text-align: center; font-size: 0.72rem; font-weight: 500; color: var(--bijschrift); padding: 24px 4px 0; white-space: nowrap; }
.stappen span::before { content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--wit); border: 2px solid var(--rand-2); transform: translateX(-50%); box-sizing: border-box; z-index: 1; }
.stappen span::after { content: ""; position: absolute; top: 12px; left: 50%; right: -50%; height: 2px; background: var(--rand); }
.stappen span:last-child::after { display: none; }
.stappen span.gedaan { color: var(--groen); } .stappen span.gedaan::before { background: var(--groen); border-color: var(--groen); }
.stappen span.gedaan::after { background: var(--groen); transform-origin: left; animation: vullen 480ms var(--vlot) both; }
.stappen span:nth-child(2).gedaan::after { animation-delay: 100ms; } .stappen span:nth-child(3).gedaan::after { animation-delay: 200ms; } .stappen span:nth-child(4).gedaan::after { animation-delay: 300ms; }
.stappen span:nth-child(5).gedaan::after { animation-delay: 400ms; } .stappen span:nth-child(6).gedaan::after { animation-delay: 500ms; } .stappen span:nth-child(7).gedaan::after { animation-delay: 600ms; }
.stappen span.nu { color: var(--inkt); font-weight: 600; } .stappen span.nu::before { background: var(--groen-fel); border-color: var(--groen-fel); animation: ring 1.4s ease-out 700ms 2; }
.bericht { padding: 10px 14px; border-radius: 10px 10px 10px 3px; margin: 8px 0; max-width: 80%; background: var(--creme); }
.bericht.eigen { margin-left: auto; background: var(--groen-licht); border-radius: 10px 10px 3px 10px; }
canvas.handtekening { border: 1.5px dashed var(--rand-2); border-radius: var(--r); width: 100%; height: 160px; touch-action: none; background: var(--wit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='40'%3E%3Cpath d='M10 30h280' stroke='%23cfcdc9' stroke-width='1' stroke-dasharray='4 4'/%3E%3C/svg%3E") no-repeat center 85%; margin-top: 6px; cursor: crosshair; transition: border-color 200ms; }
canvas.handtekening.getekend { border-color: var(--groen); border-style: solid; }
.akkoord { border-color: var(--groen); }
.bevestigingen { margin: 12px 0; padding: 4px 14px; background: var(--creme); border-radius: var(--r); }
.bevestigingen label { font-size: 0.92rem; }
.bewijs table td:first-child { color: var(--bijschrift); width: 120px; }
.bewijs { background: var(--groen-licht); border-radius: var(--r); padding: 10px 14px; margin: 10px 0; }
.commentaar { margin: 6px 0 14px; padding-left: 10px; border-left: 2px solid var(--rand); }
.commentaar .bericht { max-width: 100%; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.fotovak { border: 1px dashed var(--rand-2); border-radius: var(--r); padding: 8px; font-size: 0.8rem; background: var(--creme); transition: border-color 200ms, background 200ms; }
.fotovak.ok { border-style: solid; border-color: var(--groen); background: var(--groen-licht); }
.fotovak.moet { border-color: var(--amber); }
.fotovak b { display: block; margin-bottom: 4px; }
.fotovak .knop { margin: 4px 0 0; cursor: pointer; }
.miniaturen { display: flex; gap: 4px; flex-wrap: wrap; }
.miniaturen img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rand); animation: vervagen 300ms ease-out both; }
.vink-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.vink-raster legend { grid-column: 1 / -1; }
.planbord .cel.doel { min-height: 64px; transition: background 150ms, box-shadow 150ms; }
.planbord .cel.over { box-shadow: inset 0 0 0 2px var(--groen); background: var(--groen-licht); }
.item.sleep { cursor: grab; }
.item.sleept { opacity: 0.4; transform: scale(0.98); }
.losse { display: flex; gap: 8px; flex-wrap: wrap; }
.losse .item { background: var(--lime-licht); color: var(--lime-inkt); border-radius: var(--r-s); padding: 6px 10px; font-size: 0.8rem; }
.taken li { transition: opacity 240ms; }
.taken li.wacht { opacity: 0.6; }
.taken li.afgevinkt { opacity: 0.4; text-decoration: line-through; }
.taken .knoppen { white-space: nowrap; }
.taken input[type=checkbox] { width: 22px; height: 22px; }
.vink-lijst label { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rand); font-weight: 500; margin: 0; font-size: 0.95rem; }
.vink-lijst input { width: 24px; height: 24px; margin: 0; }
.week { display: grid; grid-template-columns: 150px repeat(7, 1fr); gap: 3px; font-size: 0.8rem; }
.week .cel { background: var(--wit); border: 1px solid var(--rand); min-height: 56px; padding: 5px; border-radius: var(--r-s); }
.week .cel.weekend { background: var(--creme); }
.week .cel.afwezig { background: var(--rood-licht); }
.week .kopcel { font-weight: 600; background: var(--creme-2); border-color: transparent; }
.week .item { display: block; background: var(--groen-licht); color: var(--groen); border-radius: 4px; padding: 3px 6px; margin: 3px 0; font-size: 0.72rem; text-decoration: none; font-weight: 500; }
.week .item.afspraak { background: var(--lime-licht); color: var(--lime-inkt); }
.groot-getal { font-size: 1.8rem; font-weight: 700; color: var(--groen); letter-spacing: -0.03em; }
pre { background: var(--creme); border-radius: var(--r); padding: 12px 14px; overflow: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: var(--creme); padding: 2px 6px; border-radius: 4px; }
details summary { cursor: pointer; font-weight: 600; color: var(--inkt-2); padding: 6px 0; }

/* ---------- paneel en toast ---------- */
.paneel { position: fixed; inset: 0; background: rgba(26, 47, 39, 0.5); z-index: 30; display: flex; align-items: flex-start; justify-content: center; padding: 40px 14px; overflow: auto; animation: vervagen 160ms ease-out; }
.paneel-inhoud { background: var(--wit); border-radius: 10px; padding: 26px 28px; width: 100%; max-width: 680px; position: relative; box-shadow: 0 30px 80px -20px rgba(26, 47, 39, 0.5); animation: rijzen 240ms var(--vlot); }
.paneel.dicht, .paneel.dicht .paneel-inhoud { animation: wegvagen 160ms ease-in forwards; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--nacht); color: #fff; padding: 11px 18px; border-radius: var(--r); z-index: 40; font-size: 0.9rem; font-weight: 500; box-shadow: var(--schaduw-2); animation: toast-in 240ms var(--vlot); max-width: calc(100% - 32px); }
.toast.fout { background: var(--rood); }
.toast.weg { animation: toast-uit 200ms ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-uit { to { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- inloggen: foto met groene tekstband, formulier op crème ---------- */
.raam:has(#login:not([hidden])) .zijbalk { display: none; }
.raam:has(#login:not([hidden])) .inhoud { max-width: none; padding: 0; }
.inlog { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - var(--kop-h)); }
.inlog-links { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background: var(--nacht); }
.inlog-links .foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; animation: inzoomen 1.8s var(--vlot) both; }
.inlog-tekst { position: relative; z-index: 1; background: var(--groen); padding: 40px 56px 44px; }
.inlog-tekst > * { animation: rijzen 420ms var(--vlot) both; }
.inlog-tekst > :nth-child(2) { animation-delay: 80ms; } .inlog-tekst > :nth-child(3) { animation-delay: 160ms; } .inlog-tekst > :nth-child(4) { animation-delay: 240ms; }
.inlog-tekst h1 { color: #fff; font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; max-width: 16ch; }
.inlog-tekst p { font-size: 1rem; color: rgba(255, 255, 255, 0.85); max-width: 46ch; margin: 0; line-height: 1.6; }
.inlog-tekst .label, .label { color: var(--lime); font-weight: 500; font-size: 0.9rem; margin: 0 0 10px; }
.inlog-punten { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.92); }
.inlog-punten li { display: flex; gap: 10px; align-items: center; }
.inlog-punten li::before { content: ""; width: 18px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23def93d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.inlog-rechts { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--creme); }
.inlog-vorm { width: 100%; max-width: 420px; background: var(--wit); border: 1px solid var(--rand); border-radius: 10px; padding: 34px 34px 28px; box-shadow: var(--schaduw-2); animation: rijzen 420ms var(--vlot) 120ms both; }
.inlog-vorm h1 { font-size: 1.6rem; margin-bottom: 4px; }
.inlog-vorm .uitleg { color: var(--bijschrift); margin: 0 0 14px; }
.inlog-vorm input { padding: 12px 14px; font-size: 1rem; }
.inlog-vorm button[type=submit] { width: 100%; padding: 13px; font-size: 1rem; margin-top: 22px; }
.inlog-vorm .klein { margin-top: 20px; }
.merk-wit { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; font-size: 1.1rem; }
.merk-wit img { height: 36px; width: 36px; border-radius: 50%; }

/* ---------- onderbalk (mobiel) ---------- */
.onderbalk { display: none; }
@media (max-width: 900px) {
  :root { --kop-h: 56px; }
  .zijbalk { display: none; }
  .kop { padding: 0 16px; }
  .inhoud { padding: 16px 14px 96px; }
  .rij, .rij3, .twee { grid-template-columns: 1fr; }
  .kop-sub { display: none; }
  .inlog { grid-template-columns: 1fr; }
  .kop-rechts > span { display: none; }
  .inlog-links { min-height: 0; display: block; }
  .inlog-links .foto { position: static; height: 190px; object-position: center 62%; animation: none; }
  .inlog-tekst { padding: 26px 22px 28px; }
  .inlog-punten { display: none; }
  .inlog-rechts { padding: 24px 16px 60px; }
  .inlog-vorm { padding: 26px 22px 22px; }
  .onderbalk { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--wit); border-top: 1px solid var(--rand); padding: 4px 6px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .onderbalk a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; font-size: 0.7rem; font-weight: 500; color: var(--bijschrift); text-decoration: none; transition: color 150ms; }
  .onderbalk a::before { content: ""; position: absolute; top: -5px; left: 22%; right: 22%; height: 2px; background: var(--groen); transform: scaleX(0); transition: transform 200ms var(--vlot); }
  .onderbalk a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .onderbalk a.actief { color: var(--groen); }
  .onderbalk a.actief::before { transform: scaleX(1); }
  .week { grid-template-columns: 96px repeat(7, 1fr); font-size: 0.8rem; }
  table { font-size: 0.84rem; }
  th, td { padding: 8px 6px; }
  .toast { bottom: 84px; }
  .werkstroom a { min-width: 104px; }
  .paneel { padding: 16px 10px; align-items: flex-end; }
  .paneel-inhoud { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; } }
@media print { .kop, .zijbalk, .onderbalk, button { display: none !important; } .inhoud { padding: 0; } .kaart { box-shadow: none; animation: none; } }

/* ---------- mobiele ronde (27-10): aanraakdoelen, gestapelde lijsten, veldstartscherm ---------- */
/* Aanraakdoelen 44 px op aanraakschermen (Apple HIG, Material); met de muis blijft het compact. */
@media (pointer: coarse) {
  button, .knop, select, input:not([type=checkbox]):not([type=radio]), .tabs a, .meer-lijst a { min-height: 44px; }
  button.klein, .knop.klein { min-height: 40px; padding: 8px 14px; font-size: 0.86rem; }
  .taken .knoppen button { min-width: 44px; }
  input[type=checkbox], input[type=radio] { width: 24px; height: 24px; }
  .lijst li { padding: 13px 0; }
  tr.klik td { padding-top: 12px; padding-bottom: 12px; }
  .onderbalk a { font-size: 0.7rem; min-height: 48px; }
}
/* Veegaanwijzing: tabs en werkstroom lopen aan de rechterkant zacht uit als er meer is. */
@media (max-width: 900px) {
  .tabs, .werkstroom, .stappen { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-right: 36px; scroll-snap-type: x proximity; }
  .tabs a, .werkstroom a { scroll-snap-align: start; }
  .week { font-size: 0.8rem; }
  .week .item { font-size: 0.78rem; }
  .feit small { font-size: 0.74rem; }
}
/* Weekoverzicht en planbord: op een smal scherm zijwaarts schuifbaar met de eerste kolom vast, in plaats van acht kolommen in 390 px. */
@media (max-width: 700px) {
  .week { display: grid; grid-template-columns: 118px repeat(7, 132px); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .week .cel { scroll-snap-align: start; }
  .week .cel:nth-child(8n + 1) { position: sticky; left: 0; z-index: 2; box-shadow: 2px 0 0 var(--creme); }
  .week .cel.kopcel:nth-child(8n + 1) { background: var(--creme-2); }
  /* Gestapelde tabellen: elke rij een kaart, elke cel met zijn kolomkop ervoor (data-l uit stapelTabellen). */
  table.stapel, table.stapel tbody { display: block; }
  table.stapel tr.kopregel { display: none; }
  table.stapel tr { display: grid; grid-template-columns: 1fr; gap: 2px 12px; padding: 12px 2px; border-bottom: 1px solid var(--rand); }
  table.stapel tr:last-child { border-bottom: 0; }
  table.stapel td { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 2px 0; border: 0; align-items: baseline; }
  table.stapel td::before { content: attr(data-l); font-size: 0.76rem; font-weight: 600; color: var(--bijschrift); text-transform: none; }
  table.stapel td:empty { display: none; }
  table.stapel td.r { text-align: left; white-space: normal; }
  table.stapel td:first-child { font-weight: 600; }
  table.stapel tr.klik:hover td:first-child { box-shadow: none; }
  table.stapel tr.klik { border-left: 3px solid transparent; padding-left: 10px; }
  table.stapel tr.klik:active { border-left-color: var(--groen); background: var(--creme); }
  table.stapel input, table.stapel select { width: 100%; }
}
/* Veldstartscherm: werkdag als lijst met tijdvak, adres en twee knoppen. */
.snel { margin-bottom: 18px; }
.dagkop { margin: 14px 0 4px; font-size: 1rem; }
.dagkop:first-child { margin-top: 0; }
.werkdag li { align-items: center; }
.werkkaart { display: flex; gap: 14px; flex: 1; min-width: 220px; color: var(--inkt); text-decoration: none; }
.werkkaart:hover { text-decoration: none; }
.werkkaart .tijdvak { flex: none; width: 52px; font-weight: 700; color: var(--groen); font-variant-numeric: tabular-nums; line-height: 1.3; }
.werkkaart .werkinhoud { line-height: 1.4; }
.werkdag .knoppen { display: flex; gap: 6px; }
details.meer { margin: 8px 0 14px; }
details.meer summary { cursor: pointer; color: var(--bijschrift); font-weight: 500; font-size: 0.9rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
details.meer summary::before { content: "›"; display: inline-block; transition: transform 160ms var(--vlot); font-size: 1.1rem; }
details.meer[open] summary::before { transform: rotate(90deg); }
details.meer summary::-webkit-details-marker { display: none; }

/* ---------- beheer en formulieren netjes uitgelijnd (27-10) ---------- */
/* Velden in een rij staan onderaan gelijk, ook als een label twee regels heeft. */
.rij:has(> label), .rij3:has(> label) { align-items: end; }   /* alleen formulierrijen; kaartrijen blijven bovenaan uitgelijnd */
.rij > label:not(.vink), .rij3 > label:not(.vink) { display: flex; flex-direction: column; justify-content: flex-end; margin-top: 12px; }
.rij > label > input, .rij > label > select, .rij3 > label > input, .rij3 > label > select { margin-top: 5px; }
form > button, form > .knop { margin-top: 16px; }
input[type=file] { padding: 8px 10px; background: var(--creme); border-style: dashed; }
/* Modules als compact raster in plaats van een lange kolom vinkjes. */
.vink-raster.compact { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 0 8px; }
.vink-raster.compact label.vink { margin: 3px 0; font-size: 0.86rem; }
fieldset.vink-raster { border: 1px solid var(--rand); border-radius: var(--r-s); padding: 8px 14px 10px; margin: 12px 0 0; }
fieldset.vink-raster legend { font-weight: 600; font-size: 0.82rem; padding: 0 6px; }
table.gebruikers td:nth-child(3) { width: 46%; }
table.gebruikers td { vertical-align: middle; }
table.gebruikers form button { margin-top: 6px; }
.kaart > h3:first-child, .kaart > form > h3:first-child { margin-top: 0; }
/* Intake op locatie: postcode en plaats naast elkaar binnen één label. */
label > .rij { gap: 8px; }
label > .rij > input { margin-top: 5px; }
.kaart > form + form > h3:first-child, .kaart > form + form h3:first-of-type { margin-top: 22px; }

/* ---------- hoofdindeling (27-10): hoofdmenu's met tabs, persoon onderin de zijbalk ---------- */
.hoofdtabs { margin: 0 0 18px; }
.hoofdtabs a { font-size: 0.92rem; }
.hoofdtabs + h1 { margin-top: 0; }
a.zb-gebruiker { text-decoration: none; color: inherit; }
a.zb-gebruiker:hover { background: var(--creme); text-decoration: none; }
#kop-naam a { color: #fff; text-decoration: none; font-weight: 500; }
#kop-naam a:hover { text-decoration: underline; }
.meer-lijst h3 svg, .kaart h3 svg { width: 18px; height: 18px; stroke: var(--groen); fill: none; stroke-width: 1.7; vertical-align: -3px; margin-right: 6px; }
/* Taken: tekst en naamchip zijn aanklikbaar (op naam zetten, prioriteit, tekst). */
.actie-tekst { cursor: pointer; border-bottom: 1px dotted var(--rand-2); }
.actie-tekst:hover, .actie-tekst:focus-visible { color: var(--groen); border-bottom-color: var(--groen); }
.status.wie { cursor: pointer; margin-left: 4px; }
.status.wie:hover { border: 1px solid var(--groen); padding: 2px 9px 2px 7px; }

/* ---------- beweging (27-10, Jasper: "ik mis motion"): kort, functioneel, in de huisstijl ---------- */
@keyframes pop { 0% { transform: scale(0.92); opacity: 0; } 60% { transform: scale(1.03); } 100% { transform: scale(1); opacity: 1; } }
@keyframes opschuiven { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes glans { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* Kaarten en rijen komen getrapt binnen (alleen de eerste tien, daarna direct). */
#app > .kaart, #app .rij > .kaart, #app .twee > *, #app .twee .kaart { animation: rijzen 360ms var(--vlot) both; }
#app > .kaart:nth-child(2), #app .rij > .kaart:nth-child(2), #app .twee > :nth-child(2) { animation-delay: 60ms; }
#app > .kaart:nth-child(3), #app .rij > .kaart:nth-child(3) { animation-delay: 120ms; }
#app > .kaart:nth-child(4) { animation-delay: 180ms; } #app > .kaart:nth-child(5) { animation-delay: 240ms; } #app > .kaart:nth-child(n+6) { animation-delay: 300ms; }
.kaart tr, .lijst > li, .werkstroom a { animation: opschuiven 280ms var(--vlot) both; }
.kaart tr:nth-child(1), .lijst > li:nth-child(1) { animation-delay: 40ms; } .kaart tr:nth-child(2), .lijst > li:nth-child(2) { animation-delay: 70ms; }
.kaart tr:nth-child(3), .lijst > li:nth-child(3) { animation-delay: 100ms; } .kaart tr:nth-child(4), .lijst > li:nth-child(4) { animation-delay: 130ms; }
.kaart tr:nth-child(5), .lijst > li:nth-child(5) { animation-delay: 160ms; } .kaart tr:nth-child(6), .lijst > li:nth-child(6) { animation-delay: 190ms; }
.kaart tr:nth-child(7), .lijst > li:nth-child(7) { animation-delay: 220ms; } .kaart tr:nth-child(8), .lijst > li:nth-child(8) { animation-delay: 250ms; }
.kaart tr:nth-child(9), .lijst > li:nth-child(9) { animation-delay: 280ms; } .kaart tr:nth-child(n+10), .lijst > li:nth-child(n+10) { animation-delay: 300ms; }
/* Alles wat je kunt aanklikken reageert: rijen schuiven een tikje op, kaarten en knoppen komen iets omhoog. */
tr.klik td { transition: background 140ms, transform 180ms var(--vlot); }
tr.klik:hover td:first-child { transform: translateX(3px); }
tr.klik:active td { background: var(--groen-licht); }
.werkkaart, .meer-lijst a, .zijbalk a, .hoofdtabs a, .status.wie, .actie-tekst, .feit { transition: transform 180ms var(--vlot), background 140ms, color 140ms, border-color 140ms, box-shadow 180ms; }
.werkkaart:hover, .meer-lijst a:hover { transform: translateX(4px); }
.zijbalk a:hover svg, .onderbalk a:hover svg { transform: translateY(-1px) scale(1.06); }
.zijbalk a svg, .onderbalk a svg { transition: transform 180ms var(--vlot); }
.onderbalk a.actief svg { animation: tik 360ms var(--vlot); }
button:not(:disabled):hover, .knop:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(31, 33, 28, 0.35); }
button, .knop { transition: transform 140ms var(--vlot), box-shadow 180ms, background 140ms, border-color 140ms, color 140ms; }
.status { transition: transform 140ms var(--vlot), background 140ms; }
.status.wie:hover, .feit:hover { transform: translateY(-1px); }
/* Statuschips en toasts komen met een kleine pop; het paneel veert open. */
.status.groen, .status.lime, .status.rood { animation: pop 260ms var(--vlot) both; }
.toast { animation: pop 240ms var(--vlot) both; }
.paneel-inhoud { animation: pop 260ms var(--vlot) both; }
/* Invoervelden: focusring groeit in plaats van springt. */
input, select, textarea { transition: border-color 140ms, box-shadow 180ms var(--vlot); }
/* Uitklapdelen vouwen zacht open. */
details.meer[open] > :not(summary) { animation: rijzen 240ms var(--vlot) both; }
/* Laadplaatshouder: zachte glans in plaats van knipperen. */
.skelet i { background: linear-gradient(90deg, var(--creme-2) 25%, var(--creme) 50%, var(--creme-2) 75%); background-size: 200% 100%; animation: glans 1.2s linear infinite; }
/* Tellers en het belletje bestonden al (telOp, badge.tik). Alles uit bij prefers-reduced-motion (regel hieronder bestaat al). */

/* ---------- planning ronde 2 (2-11): beschikbaarheid, uren, bedrijfsagenda en bussen op het bord ---------- */
.week .cel.kan { background: var(--groen-licht); border-color: var(--groen-licht-2); }
.week .cel.niet-opgegeven { background: repeating-linear-gradient(135deg, var(--wit) 0 6px, var(--creme) 6px 12px); }
.week .cel { position: relative; }
.uren-badge { position: absolute; top: 3px; right: 5px; font-size: 0.68rem; font-weight: 600; color: var(--bijschrift); background: var(--wit); border: 1px solid var(--rand); border-radius: 999px; padding: 0 5px; line-height: 1.5; }
.week .item.bedrijf { background: var(--creme-2); color: var(--inkt-2); }
.week .item.bus { background: #e9eef8; color: #2b4a7a; }
tr.weekkop td { background: var(--creme); font-weight: 600; color: var(--groen); padding: 6px 10px; font-size: 0.82rem; }
tr.vandaag td { box-shadow: inset 3px 0 0 var(--lime); }

/* ---------- rondleiding (2-11, zoals bij Schouwenaars): welkom, ballon, doel, "Zo werkt het" ---------- */
.welkom-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(26, 47, 39, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: vervagen 240ms var(--vlot) both; }
.welkom-kaart { background: var(--wit); border-radius: 12px; border-top: 4px solid var(--groen); padding: 26px 26px 22px; width: min(540px, 100%); max-height: 92dvh; overflow: auto; box-shadow: var(--schaduw-2); animation: pop 300ms var(--vlot) both; }
.welkom-kaart .eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--groen); margin-bottom: 8px; }
.welkom-kaart h2 { margin: 0 0 8px; font-size: 1.5rem; }
.welkom-kaart p { color: var(--inkt-2); margin: 0 0 10px; }
.welkom-kaart ul { margin: 8px 0 18px; padding-left: 18px; color: var(--inkt-2); }
.welkom-kaart li { margin: 4px 0; }
.welkom-acties { display: flex; gap: 10px; flex-wrap: wrap; }
.welkom-acties button { margin: 0; flex: 1 1 160px; }
.keten { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.keten span { font-size: 0.78rem; font-weight: 600; color: var(--groen); background: var(--groen-licht); border-radius: 999px; padding: 3px 10px; }
.tour-ballon { position: fixed; z-index: 90; width: min(360px, calc(100vw - 24px)); background: var(--nacht); color: #fff; border-radius: 10px; padding: 16px 18px 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6); animation: pop 240ms var(--vlot) both; }
.tour-ballon b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.tour-ballon p { margin: 0 0 12px; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; line-height: 1.5; }
.tour-acties { display: flex; align-items: center; gap: 6px; }
.tour-acties .teller { flex: 1; font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.tour-acties button { margin: 0; }
.tour-acties button.secundair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.tour-acties button.secundair:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tour-doel { position: relative; z-index: 85; outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(26, 47, 39, 0.35); }
.hulp-paneel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 70; background: var(--wit); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.4); padding: 22px 24px; overflow: auto; transform: translateX(100%); transition: transform 260ms var(--vlot); }
.hulp-paneel.open { transform: none; }
.hulp-achter { position: fixed; inset: 0; z-index: 69; background: rgba(26, 47, 39, 0.3); }
.hulp-stappen { padding-left: 20px; }
.hulp-stappen li { margin: 10px 0; }
.hulp-stappen li b { display: block; }
.hulp-stappen li span { color: var(--inkt-2); font-size: 0.92rem; }
.kop .hulp { width: 36px; height: 36px; padding: 0; margin: 0 4px 0 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); border-color: transparent; color: #fff; font-weight: 700; font-size: 1rem; }
.kop .hulp:hover { background: rgba(255, 255, 255, 0.22); }
@media (max-width: 900px) { .tour-ballon { left: 12px !important; right: 12px; width: auto; bottom: 96px; top: auto !important; transform: none !important; } .welkom-kaart { padding: 22px 18px; } }

/* Werkstroom in de route van aanvraag tot order: de stappen daarna als één gedempte knop. */
.werkstroom a.verder { opacity: .6; border-style: dashed; }
.feiten { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0 0 10px; }

/* ---------- uitstraling (2-11, referentie van Jasper: licht, ruim, cijfertegels): in de kleuren van Made4Group ---------- */
:root {
  --creme: #f2f5f3; --creme-2: #e3e9e5; --rand: #e4eae6; --rand-2: #c9d3cd;
  --r: 16px; --r-s: 10px;
  --schaduw: 0 1px 2px rgba(26, 47, 39, 0.04), 0 10px 30px -22px rgba(26, 47, 39, 0.18);
  --schaduw-2: 0 24px 60px -28px rgba(26, 47, 39, 0.3), 0 2px 8px rgba(26, 47, 39, 0.06);
  --kop-h: 64px;
}
body { background: var(--creme); }
/* kop: wit, licht, met zoekbalk; het groen zit in merk, actief menu en cijfers */
.kop { background: var(--wit); color: var(--inkt); border-bottom: 1px solid var(--rand); gap: 18px; }
.kop-merk { color: var(--groen); font-size: 1.1rem; }
.kop-sub { color: var(--groen); background: var(--groen-licht); }
.kop-rechts { color: var(--inkt); gap: 10px; }
.kop-rechts .secundair { background: var(--wit); color: var(--inkt); border-color: var(--rand); }
.kop-rechts .secundair:hover { background: var(--creme); border-color: var(--rand-2); color: var(--inkt); }
.bel, .hulp, .kop .hulp { border: 1px solid var(--rand); color: var(--inkt-2); background: var(--wit); }
.bel:hover, .hulp:hover, .kop .hulp:hover { background: var(--creme); border-color: var(--rand-2); color: var(--inkt); }
#kop-naam a { color: var(--inkt); }
.kop :focus-visible { outline-color: var(--groen); }
.kop-zoek { margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(380px, 38vw); background: var(--creme); border: 1px solid transparent; border-radius: var(--r-pil); padding: 0 14px; transition: border-color 150ms, background 150ms; }
.kop-zoek:focus-within { background: var(--wit); border-color: var(--groen); box-shadow: 0 0 0 3px rgba(24, 109, 64, 0.12); }
.kop-zoek svg { width: 16px; height: 16px; stroke: var(--bijschrift); fill: none; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.kop-zoek input { margin: 0; padding: 9px 0; border: 0; background: transparent; box-shadow: none; font-size: 0.9rem; }
.kop-zoek input:focus { box-shadow: none; }
.kop-zoek + .kop-rechts { margin-left: 0; }
/* zijbalk: pil voor het actieve onderdeel */
.zijbalk { padding: 18px 14px 18px; border-right: 1px solid var(--rand); }
.zijbalk .groep { color: var(--bijschrift); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; padding: 20px 14px 8px; }
.zijbalk a { padding: 10px 14px; margin: 2px 0; border-radius: var(--r-s); font-weight: 500; }
.zijbalk a::before { display: none; }
.zijbalk a.actief { background: var(--groen); color: #fff; box-shadow: 0 8px 20px -12px rgba(24, 109, 64, 0.7); }
.zijbalk a.actief svg, .zijbalk a:hover svg { color: inherit; }
.zijbalk a.actief svg { color: #fff; }
.zijbalk a:hover:not(.actief) { background: var(--creme); }
a.zb-gebruiker:hover { background: var(--creme); border-radius: var(--r-s); }
/* kaarten, tabellen, formulieren */
.inhoud { max-width: 1240px; padding: 26px 32px 110px; }
.kaart { border-radius: var(--r); padding: 22px 24px; border-color: var(--rand); }
h2 { font-size: 1.1rem; }
table { font-size: 0.9rem; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bijschrift); padding: 6px 10px 10px; }
td { padding: 12px 10px; }
tr.klik:hover { background: #f5f8f6; }
tr.klik:hover td:first-child { box-shadow: none; }
td:first-child b { font-weight: 600; }
.status { padding: 4px 11px 4px 9px; font-weight: 500; }
input, select, textarea { border-radius: var(--r-s); background: #fafcfb; }
input:focus, select:focus, textarea:focus { background: var(--wit); }
button, .knop { border-radius: var(--r-s); font-weight: 600; }
button.klein, .knop.klein { border-radius: 9px; }
.feit { border-radius: 12px; background: var(--wit); }
.feiten .feit { background: var(--creme); border-color: transparent; }
/* hoofdtabs als pilgroep */
.hoofdtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--creme-2); border-radius: var(--r-pil); border-bottom: 0; margin: 0 0 20px; max-width: 100%; }
.hoofdtabs a { padding: 7px 16px; border-radius: var(--r-pil); font-size: 0.88rem; color: var(--inkt-2); transition: background 150ms, color 150ms, box-shadow 150ms; }
.hoofdtabs a::after { display: none; }
.hoofdtabs a.actief { background: var(--wit); color: var(--inkt); box-shadow: 0 1px 3px rgba(26, 47, 39, 0.12); }
.hoofdtabs a:hover:not(.actief) { color: var(--inkt); }
/* cijfertegels (werkstroom) */
.werkstroom { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; overflow: visible; padding: 2px 0 12px; }
.werkstroom a { min-width: 0; padding: 18px 18px 16px; border-radius: var(--r); gap: 6px; }
.werkstroom .n { font-size: 2rem; }
.werkstroom .l { font-size: 0.78rem; font-weight: 500; color: var(--inkt-2); }
.werkstroom a.aandacht { background: var(--groen); border-color: var(--groen); color: #fff; }
.werkstroom a.aandacht .n { color: #fff; } .werkstroom a.aandacht .l { color: rgba(255, 255, 255, 0.85); }
.werkstroom a.verder { opacity: 1; border-style: dashed; background: transparent; }
.werkstroom a.verder .n { color: var(--bijschrift); }
.werkstroom + .twee { margin-top: 6px; }
/* initialen bij klanten en contactpersonen */
.initialen { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 0.74rem; background: var(--groen-licht); color: var(--groen); flex: none; }
.initialen.zakelijk { background: var(--nacht); color: var(--lime); border-radius: 10px; }
.naamcel { display: flex; align-items: center; gap: 10px; }
.naamcel > div { min-width: 0; }
/* paneel en toast ronder */
.paneel-inhoud { border-radius: var(--r); }
.toast { border-radius: var(--r-s); }
.tegel { border-radius: var(--r); }
@media (max-width: 900px) {
  .kop-zoek { display: none; }
  .werkstroom { display: flex; overflow-x: auto; }
  .werkstroom a { min-width: 124px; }
  .hoofdtabs { display: flex; overflow-x: auto; border-radius: 14px; }
  .onderbalk a.actief { color: var(--groen); }
}
.kaart tr:has(th) { animation: none; }   /* kopregel komt niet getrapt binnen: altijd direct leesbaar */
.vraagvak h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vraagvak .antwoord { background: var(--creme); border-radius: var(--r-s); padding: 12px 16px; margin-top: 10px; animation: rijzen 260ms var(--vlot) both; }
.groet .knop svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stappen-tabs { margin: 4px 0 16px; }
td.knoppen { white-space: nowrap; }
td.knoppen .knop, td.knoppen button { margin: 2px 6px 2px 0; }
@media (max-width: 700px) { td.knoppen { white-space: normal; } }
/* sorteren en filteren (3-11) */
th.sorteerbaar { cursor: pointer; user-select: none; }
th.sorteerbaar:hover { color: var(--inkt); }
th.sort-op::after { content: " \2191"; color: var(--groen); } th.sort-af::after { content: " \2193"; color: var(--groen); }
.filters { gap: 6px; align-items: center; margin: -4px 0 12px; }
.filters button { margin: 0; }
/* locatie (3-11): luchtfoto en route */
.luchtfoto { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 12px; display: block; background: var(--creme-2); }
.plek .balk { margin-top: 10px; }
/* tekenen aan tafel (3-11) */
.paneel.tekenen .paneel-inhoud { max-width: 980px; }
.tekenvenster canvas.handtekening { height: 220px; }
.akkoordwegen .rij > div { padding: 14px 16px; background: var(--creme); border-radius: var(--r-s); }
/* intern of bij klant (3-11) */
body.bij-klant .intern { display: none !important; }
.modus { border: 1px solid var(--rand); background: var(--wit); color: var(--inkt-2); border-radius: var(--r-pil); padding: 0 14px; height: 38px; margin: 0; font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.modus.bij { background: var(--lime); border-color: var(--lime); color: var(--inkt); }
body.bij-klant .kop { box-shadow: inset 0 -3px 0 var(--lime); }
/* foto's in het intakeformulier (3-11) */
label.fotovak input[type=file] { margin-top: 4px; font-weight: 400; font-size: 0.8rem; }
/* standtabs klanten (3-11) */
.standtabs { margin-bottom: 8px; }
.standtabs a .klein { margin-left: 4px; }

/* ---------- mobiele ronde (3-11): kopbalk past, niets loopt uit beeld, invoer dichtgeklapt ---------- */
@media (min-width: 701px) { .alleen-mobiel { display: none !important; } }
@media (max-width: 900px) {
  .kop { gap: 8px; padding: 0 12px; }
  .kop-merk { font-size: 1rem; gap: 8px; min-width: 0; white-space: nowrap; }
  .kop-merk img { width: 28px; height: 28px; }
  .kop-rechts { gap: 6px; flex-shrink: 0; margin-left: auto; }
  .modus { padding: 0 10px; height: 34px; font-size: 0.78rem; }
  .bel { width: 34px; height: 34px; }
  .kop .hulp { width: 32px; height: 32px; margin: 0; }
  .raam, .inhoud { overflow-x: clip; min-width: 0; }
  .hoofdtabs { scrollbar-width: none; } .hoofdtabs::-webkit-scrollbar { display: none; } .hoofdtabs a { flex-shrink: 0; white-space: nowrap; }
  .schuif { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .schuif table { min-width: 100%; }
  .sorteerhint { display: none; }
  .stappen span { min-width: 66px; font-size: 0.68rem; }
}
@media (max-width: 700px) {
  .kop #uit { display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50%; }   /* alleen het icoon (Jasper 4-11) */
  .kop #uit svg { display: block; width: 17px; height: 17px; }
  .kop #uit .uit-tekst { display: none; }
  .alleen-mobiel { width: 100%; margin: 6px 0 0; }
  .groet { flex-direction: column; align-items: stretch; gap: 12px; }
  .groet .balk { width: 100%; margin: 0; }
  .groet .balk .knop { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; margin: 0; }
  .groet .balk .knop.klein { flex-basis: 100%; }
  .kaart { padding: 18px 16px; }
  /* Gestapelde cel als blok met het label absoluut links: een cel met <br> en spans blijft zo één geheel (als grid viel elk stuk in een eigen kolom). */
  table.stapel td { display: block; position: relative; padding: 3px 0 3px 6.5em; min-height: 1.5em; }
  table.stapel td::before { position: absolute; left: 0; top: 3px; width: 6em; line-height: 1.5; }
  table.stapel td:first-child { padding-left: 0; font-size: 0.95rem; }
  table.stapel td:first-child::before { display: none; }
  table.stapel td.knoppen, table.stapel td:not([data-l]) { padding-left: 0; }
  table.stapel td.knoppen::before, table.stapel td:not([data-l])::before { display: none; }
  table.stapel td.knoppen { padding-top: 8px; }
  .paneel { padding: 0; align-items: flex-end; }
  .paneel-inhoud { border-radius: var(--r) var(--r) 0 0; max-height: 94vh; overflow: auto; padding: 20px 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .tekenvenster canvas.handtekening { height: 180px; }
  .rij3 label button, .rij label button { width: 100%; }
  .balk input, .balk select { min-width: 0; flex: 1 1 140px; }
}

/* ---------- volledig logo met ondertitel (4-11, Jasper): inlogkaart, voet van klantportaal en websiteformulier ---------- */
.logo-vol { display: block; width: 150px; height: auto; }
.inlog-vorm .logo-vol { width: 136px; margin: 0 0 18px; }
.voet { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 16px 36px; text-align: center; color: var(--bijschrift); font-size: 0.85rem; }
.voet .logo-vol { width: 128px; opacity: 0.95; }
.voet p { margin: 0; }
@media (max-width: 700px) { .voet { padding-bottom: 28px; } }

/* ---------- inloggen op de telefoon (4-11, Jasper): formulier bovenaan, geen foto en geen tekstblok ---------- */
@media (max-width: 900px) {
  .inlog-links { display: none; }
  .inlog-rechts { padding: 18px 14px 40px; align-items: flex-start; background: linear-gradient(180deg, rgba(24, 109, 64, 0.35), rgba(26, 47, 39, 0.7)), url("/static/merk/foto-dak.jpg") center 60% / cover no-repeat; }
  .inlog { min-height: calc(100vh - var(--kop-h)); }
  .inlog-vorm { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
  .inlog-vorm { padding: 24px 20px 20px; }
}

/* ---------- app-weergave op de telefoon (4-11, Jasper: aanvraag, intake en klanten als app-schermen) ---------- */
#uit svg { display: none; }
.appkaarten { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.appkaarten li { background: var(--wit); border: 1px solid var(--rand); border-radius: 14px; padding: 14px 14px 12px; box-shadow: var(--schaduw); animation: rijzen 300ms var(--vlot) both; }
.appkaarten li.klik { cursor: pointer; }
.appkaarten li.klik:active { background: var(--creme); }
.appkaarten li.leeg { color: var(--bijschrift); text-align: center; padding: 22px 14px; }
.ak-kop { display: flex; align-items: center; gap: 10px; }
.ak-naam { flex: 1; min-width: 0; line-height: 1.3; }
.ak-naam b { font-size: 1.02rem; }
.ak-rechts { flex: none; font-variant-numeric: tabular-nums; color: var(--groen); font-size: 0.9rem; text-align: right; }
.ak-regel { margin-top: 6px; line-height: 1.45; overflow-wrap: anywhere; }
.ak-regel:first-of-type { margin-top: 10px; }
.ak-acties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.ak-acties .knop, .ak-acties button { margin: 0; }
.ak-acties > :first-child { flex: 1 1 100%; text-align: center; justify-content: center; min-height: 44px; font-size: 0.95rem; }
.ak-acties [data-afhaken] { margin-left: auto; background: none; border: 0; color: var(--bijschrift); text-decoration: underline; padding: 6px 4px; min-height: 0; box-shadow: none; }
.ak-titel { font-size: 1.05rem; margin: 18px 0 10px; }
.appkaarten .status { vertical-align: middle; }
.filters-mobiel { margin: 0 0 12px; }
.filters-mobiel .filters { margin-top: 8px; }
@media (min-width: 701px) { .verberg-mobiel { display: inline; } }
@media (max-width: 700px) {
  .verberg-mobiel { display: none !important; }
  /* invoerkaart als één rij; het formulier opent als onderschuif (inklapVormen) */
  .kaart.inklap.dicht { padding: 0; overflow: hidden; }
  .kaart.inklap.dicht > form { display: none; }
  .kaart.inklap.dicht > :not(form):not(.sheet-rij) { padding: 0 16px; }
  .kaart.inklap.dicht > h2 { padding-top: 14px; margin-bottom: 8px; }
  .kaart.inklap.dicht > .feiten { margin-bottom: 4px; }
  .sheet-rij { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 14px 16px; min-height: 50px; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--inkt); font-weight: 600; font-size: 1rem; text-align: left; }
  .sheet-rij::before { content: "+"; color: var(--groen); font-weight: 700; font-size: 1.25rem; line-height: 1; }
  .sheet-rij.wijzig::before { content: "\270E"; font-size: 1.05rem; }
  .sheet-rij::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--groen); border-bottom: 2px solid var(--groen); transform: rotate(-45deg); flex: none; }
  .sheet-rij:active { background: var(--creme); }
  .kaart.inklap.dicht > h2 + .feiten + .sheet-rij, .kaart.inklap.dicht > .feiten + .sheet-rij { border-top: 1px solid var(--rand); }
  #paneel-body form.in-sheet > h2, #paneel-body form.in-sheet > h3 { display: none; }
  #paneel-body form.in-sheet button[type=submit], #paneel-body form.in-sheet > button:not(.secundair):not([type=button]) { width: 100%; min-height: 46px; font-size: 1rem; margin-top: 6px; }
  .projectkop .balk { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .projectkop .balk .knop, .projectkop .balk button { width: 100%; margin: 0; justify-content: center; text-align: center; }
  .projectkop h1 { font-size: 1.3rem; }
}

/* ---------- app-overzicht en lichte rijen (4-11, naar Jaspers voorbeeld; kleuren van Made4Group) ---------- */
.hero { display: block; background: linear-gradient(135deg, var(--groen) 0%, #1f8a52 100%); color: #fff; border-radius: 18px; padding: 18px 18px 16px; margin: 0 0 14px; box-shadow: 0 16px 30px -18px rgba(24, 109, 64, 0.8); cursor: pointer; animation: rijzen 320ms var(--vlot) both; }
.hero-label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85; margin-bottom: 6px; }
.hero-groot { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.hero-groot small { display: block; font-size: 1.05rem; font-weight: 600; margin-top: 4px; letter-spacing: 0; }
.hero-sub { display: block; font-size: 0.88rem; opacity: 0.92; margin-top: 8px; line-height: 1.45; }
.hero-acties { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hero .knop { margin: 0; }
.hero .knop.hero-licht { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.snel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; }
.snel a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; background: var(--wit); border: 1px solid var(--rand); border-radius: 14px; color: var(--inkt); font-size: 0.76rem; font-weight: 500; text-decoration: none; box-shadow: var(--schaduw); }
.snel a svg { width: 22px; height: 22px; stroke: var(--groen); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.snel a:active { background: var(--creme); }
.snel i.tel { position: absolute; top: 6px; right: 8px; font-style: normal; background: var(--lime); color: var(--inkt); font-size: 0.66rem; font-weight: 700; border-radius: var(--r-pil); padding: 2px 6px; line-height: 1.1; }
.tfa-hint { margin: 0 0 8px; }
.appkaarten li.rij { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.appkaarten li.rij .ak-naam .klein { margin-top: 2px; }
.appkaarten li.rij .ak-rechts .status { font-size: 0.7rem; }
.appkaarten li.rij .onder { margin-top: 5px; }
.appkaarten li.rij .onder .status { font-size: 0.72rem; }
.appkaarten li.rij .pijl { width: 8px; height: 8px; border-right: 2px solid var(--rand-2); border-bottom: 2px solid var(--rand-2); transform: rotate(-45deg); flex: none; margin-left: 2px; }
.vg { display: flex; gap: 4px; margin-top: 2px; }
.vg i { flex: 1; height: 4px; border-radius: 2px; background: var(--rand); }
.vg i.aan { background: var(--groen); }
.vg i.nu { background: var(--groen-fel, var(--groen)); }
.vg-kaart { padding: 14px 16px; }
.vg-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; font-size: 0.7rem; color: var(--bijschrift); }
.vg-labels span { text-align: center; }
.vg-labels span:first-child { text-align: left; }
.vg-labels span:last-child { text-align: right; }
.vg-labels span.nu { color: var(--inkt); font-weight: 600; }
.profiel { display: flex; align-items: center; gap: 14px; background: var(--wit); border: 1px solid var(--rand); border-radius: 16px; padding: 16px; margin: 0 0 14px; box-shadow: var(--schaduw); }
.profiel > div { flex: 1; min-width: 0; }
.profiel .knop { margin: 0; }
.initialen.groot { width: 52px; height: 52px; font-size: 1rem; }
.meer-lijst a::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--rand-2); border-bottom: 2px solid var(--rand-2); transform: rotate(-45deg); flex: none; }
.uit-meer { width: 100%; margin: 6px 0 24px; }
@media (max-width: 700px) {
  .groet h1 { font-size: 1.5rem; }
  .groet { margin-bottom: 12px; }
  /* segmentknop op volle breedte: de standtabs van Klanten en de vier stappen */
  .hoofdtabs.standtabs, .hoofdtabs.stappen-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 4px; scroll-snap-type: none; }
  .hoofdtabs.standtabs a, .hoofdtabs.stappen-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 7px 2px; min-height: 44px; font-size: 0.78rem; line-height: 1.15; text-align: center; white-space: normal; }
  .hoofdtabs.standtabs a .klein { font-size: 0.7rem; }
}

/* ---------- op het beginscherm (4-11): hint boven de onderbalk ---------- */
.installhint { position: fixed; left: 10px; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 26; display: flex; align-items: center; gap: 10px; background: var(--nacht); color: #fff; border-radius: 14px; padding: 10px 8px 10px 12px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.55); animation: rijzen 300ms var(--vlot) both; }
.installhint img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.installhint > div { flex: 1; min-width: 0; line-height: 1.3; font-size: 0.88rem; }
.installhint .klein { display: block; color: rgba(255, 255, 255, 0.72); }
.installhint button { margin: 0; }
.installhint #install-hoe { background: var(--lime); color: var(--inkt); border: 0; white-space: nowrap; }
.installhint .weg { background: transparent; color: #fff; border: 0; font-size: 1.3rem; line-height: 1; padding: 4px 6px; min-height: 0; box-shadow: none; }
.hulp-stappen svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }

/* ---------- meldingen (4-11): aantikken = gelezen ---------- */
.lijst.meldingen li.melding { cursor: pointer; }
.lijst.meldingen li.melding > div { flex: 1; }
.lijst.meldingen li.ongelezen { font-weight: 500; }
.lijst.meldingen li.ongelezen > div { position: relative; padding-left: 16px; }
.lijst.meldingen li.ongelezen > div::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--groen-fel, var(--groen)); }
.lijst.meldingen li.melding:hover { background: var(--creme); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }

/* ---------- rapporten (4-11): opbrengst per maand, tekeningen ---------- */
.opbrengst { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 96px; margin: 8px 0 4px; }
.opbrengst div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.opbrengst i { display: block; width: 100%; max-width: 22px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--groen); }
.opbrengst span { font-size: 0.62rem; color: var(--bijschrift); }
.tekeningen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.tekeningen a { display: block; color: var(--inkt); text-decoration: none; }
.tekeningen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rand); border-radius: var(--r-s); background: var(--wit); }
.tekeningen span { display: block; margin-top: 4px; line-height: 1.3; }
.rapporten .lijst li > div:first-child { flex: 1; min-width: 0; }

/* ---------- zijbalk inklappen en brede tabellen (4-11) ---------- */
.schuif { overflow-x: auto; max-width: 100%; }
td { overflow-wrap: anywhere; }
td.r, td.knoppen { overflow-wrap: normal; }
.zb-knop { align-self: flex-end; width: 28px; height: 28px; min-height: 0; border-radius: 50%; border: 1px solid var(--rand); background: var(--wit); color: var(--inkt-2); padding: 0; margin: -8px -4px 4px 0; display: grid; place-items: center; box-shadow: none; }
.zb-knop:hover { background: var(--creme); color: var(--inkt); }
.zb-knop svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--vlot); }
.zb-knop + .groep { padding-top: 6px; }
.zijbalk { transition: width 200ms var(--vlot), padding 200ms var(--vlot); }
body.zb-dicht .zijbalk { width: 68px; padding-left: 10px; padding-right: 10px; }
body.zb-dicht .zijbalk .groep { height: 1px; padding: 0; margin: 10px 8px; background: var(--rand); font-size: 0; overflow: hidden; }
body.zb-dicht .zb-knop + .groep { margin-top: 4px; }
body.zb-dicht .zijbalk a { justify-content: center; padding-left: 0; padding-right: 0; }
body.zb-dicht .zijbalk a > span, body.zb-dicht .zb-gebruiker > div { display: none; }
body.zb-dicht .zb-knop { align-self: center; margin-right: 0; }
body.zb-dicht .zb-knop svg { transform: rotate(180deg); }
body.zb-dicht .zb-gebruiker { justify-content: center; padding-left: 0; padding-right: 0; }
body.zb-dicht .inhoud { max-width: 1480px; }
@media (max-width: 900px) { .zb-knop { display: none; } }

/* ---------- leren uit meerwerk (10-11) ---------- */
.uit-meerwerk { background: var(--lime-licht, #f6fbe0); border: 1px solid var(--rand); border-radius: var(--r-s); padding: 12px 16px; margin: 14px 0; }
.uit-meerwerk h3 { margin-top: 0; }
.uit-meerwerk .lijst li > div:first-child { flex: 1; min-width: 200px; }
