/* ServiDesk — Schoonmaak logboek
   Design-tokens & componenten afgestemd op ServiDesk-apps (Werkplaats, Sleutelbeheer, Inventaris). */
:root{
  --navy:#001059; --navy-2:#0a1d75; --yellow:#FAB713; --yellow-hover:#e5a70b; --yellow-light:#FEF3D0;
  --bg:#FCFCFD; --bg-2:#f5f6fa; --surface:#fff; --muted:#7a82a8; --text2:#3d4a7a;
  --danger:#c0392b; --danger-bg:#fcebeb; --success:#27ae60; --success-bg:#eaf3de; --info:#3b6ea8; --info-bg:#e6eef8;
  --border:rgba(0,16,89,.08); --border-s:rgba(0,16,89,.18);
  --radius:8px; --radius-lg:12px; --safe-b:env(safe-area-inset-bottom,0px);
  /* plattegrond */
  --m-clean:#f4c7c2; --m-clean-s:#c0392b; --m-skip:#cfeac0; --m-skip-s:#27ae60; --m-off:#e8f4e1; --m-off-s:#9fcf8a;
  --c-clean:#d6e3f5; --c-clean-s:#3b6ea8;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5;color:var(--navy);background:var(--bg);-webkit-text-size-adjust:100%}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
button:disabled{opacity:.5;cursor:default}
a{color:inherit}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:'Montserrat','Inter',sans-serif;color:var(--navy);font-weight:700;letter-spacing:-.01em}
h1{font-size:22px}h2{font-size:16px;margin-bottom:10px}h3{font-size:14px;margin-bottom:6px}
p{color:var(--text2)}
.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;font-weight:500}
.muted{color:var(--muted)}.small{font-size:12px}.right{text-align:right}.nowrap{white-space:nowrap}
.hidden{display:none!important}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--yellow);outline-offset:2px;border-radius:6px}
.eyebrow{display:block;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}

/* ── knoppen ── */
.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:9px 16px;border-radius:8px;
  font-size:13px;font-weight:700;border:1px solid var(--border-s);background:var(--surface);color:var(--navy);transition:background .15s,opacity .15s;white-space:nowrap;text-decoration:none}
.btn:hover{background:var(--bg-2)}
.btn.primary{background:var(--yellow);border-color:var(--yellow);color:var(--navy)}
.btn.primary:hover{background:var(--yellow-hover);border-color:var(--yellow-hover)}
.btn.navy{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.navy:hover{background:var(--navy-2)}
.btn.green{background:var(--success);border-color:var(--success);color:#fff}
.btn.red{background:var(--danger);border-color:var(--danger);color:#fff}
.btn.green:hover,.btn.red:hover{opacity:.9}
.btn.ghost{border-color:transparent;background:transparent}
.btn.sm{min-height:32px;padding:6px 12px;font-size:12px}
.btn.lg{min-height:48px;font-size:15px;padding:12px 22px;border-radius:10px}
.btn.block{width:100%}
.btn .ic{width:16px;height:16px}

/* ── formulieren ── */
.field{display:flex;flex-direction:column;margin-bottom:12px}
.field>span,label.lbl{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 5px}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=time],input[type=datetime-local],input[type=tel],input[type=month],select,textarea{
  display:block;width:100%;border:1px solid var(--border-s);border-radius:8px;background:#fff;padding:9px 12px;font-size:14px;color:var(--navy);min-height:40px}
textarea{resize:vertical;min-height:80px;line-height:1.5}
input::placeholder,textarea::placeholder{color:var(--muted)}
input:focus,textarea:focus,select:focus{border-color:var(--yellow);outline:2px solid var(--yellow-light);outline-offset:0}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.row.between{justify-content:space-between}
.grow{flex:1;min-width:0}
.chk{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:500}
.chk input{width:18px;height:18px;accent-color:var(--navy)}
.err{padding:12px 14px;background:var(--danger-bg);border:1px solid rgba(192,57,43,.25);border-left:4px solid var(--danger);color:var(--danger);font-size:13px;font-weight:500;border-radius:8px;margin-bottom:14px}

/* ── segment / filters (tab-bar stijl) ── */
.filters{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;background:var(--bg-2);border-radius:10px}
.filters button{padding:7px 14px;font-size:12px;font-weight:600;border-radius:7px;color:var(--text2);min-height:34px}
.filters button:hover{color:var(--navy)}
.filters button.on{background:var(--yellow);color:var(--navy)}

/* ── login (gelijk aan Werkplaats) ── */
.login-shell{min-height:100vh;background:var(--surface)}
.login-brand{display:flex;justify-content:space-between;align-items:center;padding:16px 40px;border-bottom:1px solid var(--border)}
.login-brand img{height:40px;width:auto}
.login-brand>span{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--muted)}
.login-layout{display:grid;grid-template-columns:1.05fr 1fr;min-height:calc(100vh - 73px)}
.login-intro{background:var(--navy);padding:90px 10%;display:flex;flex-direction:column;justify-content:center;color:#fff}
.login-intro .eyebrow{color:var(--yellow);margin-bottom:20px}
.login-intro h1{font-size:clamp(2.2rem,4vw,3.4rem);color:#fff;line-height:1.1;letter-spacing:-.03em;margin:0 0 22px}
.login-intro p{color:rgba(255,255,255,.72);max-width:380px;line-height:1.65;font-size:14px}
.brand-line{width:56px;height:5px;background:var(--yellow);border-radius:3px;margin-top:32px}
.login-card{width:calc(100% - 64px);max-width:400px;margin:auto;padding:44px 20px}
.login-card h2{font-size:26px;margin:6px 0 10px}
.login-card>p{color:var(--muted);font-size:13px;margin-bottom:16px}
.login-card .filters{display:flex;margin-bottom:18px}
.login-card .filters button{flex:1;min-height:38px;font-size:13px}
.login-card .field{margin-top:12px;margin-bottom:0}
.login-card input{min-height:42px;background:var(--bg)}
.login-card .submit{margin:22px 0 12px;width:100%;justify-content:space-between;min-height:44px;font-size:14px}
.login-card small{display:block;color:var(--muted);text-align:center;font-size:11px}
.pin-dots{display:flex;justify-content:center;gap:14px;margin:6px 0 18px}
.pin-dots i{width:14px;height:14px;border-radius:50%;border:2px solid var(--navy);display:block}
.pin-dots i.f{background:var(--navy)}
.pinpad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pinpad button{height:58px;border-radius:10px;border:1px solid var(--border-s);background:var(--bg);font-size:22px;font-weight:700;color:var(--navy);font-family:'Montserrat','Inter',sans-serif}
.pinpad button:active{background:var(--yellow-light)}
.pinpad .ok{background:var(--yellow);border-color:var(--yellow);font-size:14px;font-family:'Inter',sans-serif}

/* ── topbar ── */
.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:20px;padding:0 24px;height:64px;background:var(--surface);border-bottom:1px solid var(--border)}
.topbar .brand img{height:30px;width:auto;display:block}
.topbar nav{display:flex;gap:2px;height:100%;margin-left:12px;overflow-x:auto;scrollbar-width:none}
.topbar nav::-webkit-scrollbar{display:none}
.topbar nav button{position:relative;display:flex;align-items:center;gap:7px;padding:0 13px;color:var(--text2);font-size:13px;font-weight:600;border-bottom:2px solid transparent;white-space:nowrap}
.topbar nav button .ic{width:16px;height:16px;opacity:.8}
.topbar nav button:hover{color:var(--navy)}
.topbar nav button.on{color:var(--navy);border-bottom-color:var(--yellow)}
.top-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.top-right select{min-height:34px;padding:5px 30px 5px 10px;font-size:13px;font-weight:600;width:auto;max-width:220px}
.logout{background:var(--yellow);color:var(--navy);font-size:12px;font-weight:700;padding:8px 14px;border-radius:8px}
.logout:hover{background:var(--yellow-hover)}
.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font-size:10px;font-weight:800}

/* ── werkruimte ── */
.workspace{max-width:1320px;margin:0 auto;padding:24px 28px 40px}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.page-heading>div{min-width:0}
.page-heading h1{margin:0 0 4px}
.page-heading .sub{color:var(--muted);font-size:13px}
.account{font-size:12px;color:var(--muted);border-left:3px solid var(--yellow);padding:2px 0 2px 10px;flex-shrink:0}
.account b{color:var(--navy)}
footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);color:var(--muted);font-size:11px;padding-top:16px;margin-top:40px}
footer strong{font-family:'Montserrat','Inter',sans-serif;font-size:13px;font-weight:800;color:var(--navy);letter-spacing:-.02em}
footer strong>span{color:var(--yellow)}

/* ── panels & stats ── */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;margin-bottom:16px;min-width:0}
.card.flat{background:var(--bg-2);border-style:dashed;border-color:var(--border-s)}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.card-head h2{margin:0}
.grid{display:grid;gap:14px}
.g2{grid-template-columns:repeat(2,1fr)} .g3{grid-template-columns:repeat(3,1fr)} .g4{grid-template-columns:repeat(4,1fr)}
.stats{display:grid;gap:14px;margin-bottom:18px}
.kpi{padding:16px 20px;background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--yellow);border-radius:var(--radius-lg)}
.kpi:nth-child(2){border-left-color:var(--navy)} .kpi:nth-child(3){border-left-color:var(--info)} .kpi:nth-child(4){border-left-color:var(--muted)}
.kpi .l{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.kpi .v{font-family:'Montserrat','Inter',sans-serif;font-size:26px;font-weight:800;color:var(--navy);line-height:1.15;margin-top:4px}
.kpi .s{font-size:12px;color:var(--muted)}
.kpi.save{border-left-color:var(--success)!important}.kpi.save .v{color:var(--success)}
.kpi.warn{border-left-color:var(--danger)!important}.kpi.warn .v{color:var(--danger)}
.kpi .row input{min-height:36px}

/* tweekoloms indeling op breed scherm */
.cols{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:16px;align-items:start}
.cols>div{min-width:0}
.sticky{position:sticky;top:80px}

/* ── datum ── */
.datebar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.datebar .d{font-family:'Montserrat','Inter',sans-serif;font-weight:700;font-size:16px;min-width:190px;text-align:center}
.datebar input[type=date]{width:auto;min-height:36px;padding:5px 10px}
.weekstrip{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;margin-bottom:16px;scrollbar-width:thin}
.weekstrip button{flex:none;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:6px 8px;min-width:54px;text-align:center}
.weekstrip button b{display:block;font-size:15px;font-family:'Montserrat','Inter',sans-serif}
.weekstrip button small{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:600;letter-spacing:.04em}
.weekstrip button.on{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy)}
.weekstrip button.today b{color:var(--info)}
.weekstrip .dot{display:block;height:4px;border-radius:2px;margin-top:4px;background:transparent}
.weekstrip .dot.ch{background:var(--yellow)} .weekstrip .dot.off{background:var(--border-s)}

/* ── statusbalk ── */
.status{display:flex;align-items:center;gap:14px;border-radius:var(--radius-lg);padding:14px 18px;margin-bottom:16px;font-weight:600;flex-wrap:wrap}
.status .big{font-family:'Montserrat','Inter',sans-serif;font-size:19px;font-weight:800;line-height:1.2}
.status .small{font-weight:500}
.status.std{background:var(--navy);color:#fff}.status.std .small{color:rgba(255,255,255,.75)}
.status.dev{background:var(--yellow);color:var(--navy)}
.status.none{background:var(--bg-2);color:var(--text2);border:1px dashed var(--border-s)}
.status.ok{background:var(--success);color:#fff}
.status>.ic{width:28px;height:28px;flex:none}

/* ── plattegrond ── */
.floortabs{margin-bottom:10px}
.mapbox{position:relative}
.mapwrap{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:auto;-webkit-overflow-scrolling:touch}
.mapwrap svg{display:block;width:100%;height:auto;touch-action:manipulation}
.maptools{position:absolute;top:8px;right:8px;display:flex;gap:4px;z-index:2}
.maptools button{width:34px;height:34px;border-radius:8px;border:1px solid var(--border-s);background:#fff;font-weight:800;color:var(--navy);font-size:17px;display:grid;place-items:center}
.maptools button .ic{width:16px;height:16px}
.room{cursor:pointer;stroke-width:2;transition:fill .15s}
.room:hover{filter:brightness(.96)}
.room-label{pointer-events:none;font-family:'Inter',sans-serif;font-weight:800;text-anchor:middle;dominant-baseline:middle;fill:var(--navy);paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.room-name{pointer-events:none;font-family:'Inter',sans-serif;font-weight:500;text-anchor:middle;dominant-baseline:middle;fill:var(--text2);paint-order:stroke;stroke:#fff;stroke-width:3px}
.m-clean{fill:var(--m-clean);stroke:var(--m-clean-s)}
.m-extra{fill:var(--m-clean);stroke:var(--m-clean-s);stroke-dasharray:9 5;stroke-width:3}
.m-skip{fill:var(--m-skip);stroke:var(--m-skip-s)}
.m-off{fill:var(--m-off);stroke:var(--m-off-s)}
.c-clean{fill:var(--c-clean);stroke:var(--c-clean-s)} .c-skip{fill:#eef0f5;stroke:#c3c9d8} .c-done{fill:var(--m-skip);stroke:var(--m-skip-s)}
.c-changed{stroke:var(--yellow)!important;stroke-width:5!important}
.e-room{fill:var(--c-clean);stroke:var(--c-clean-s)} .room.sel{fill:var(--yellow-light);stroke:var(--navy)!important;stroke-width:4!important}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--text2);margin:10px 2px 0}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:18px;height:13px;border-radius:4px;border:2px solid;display:inline-block}
.draw-pt{fill:var(--yellow);stroke:var(--navy);stroke-width:2}
.draw-line{fill:rgba(250,183,19,.25);stroke:var(--navy);stroke-width:2;stroke-dasharray:6 4}
.gridpat line{stroke:#eef1f7}
/* volledig scherm */
.mapfull{position:fixed;inset:0;z-index:150;background:var(--bg);display:flex;flex-direction:column}
.mapfull .fhead{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--border);background:#fff;flex-wrap:wrap}
.mapfull .fbody{flex:1;overflow:auto;padding:12px}
.mapfull .mapwrap{max-height:none}

/* ── lijsten ── */
.list{display:flex;flex-direction:column}
.li{display:flex;align-items:center;gap:12px;padding:10px 2px;border-bottom:1px solid var(--border)}
.li:last-child{border-bottom:0}
.li .code{font-family:'Montserrat','Inter',sans-serif;font-weight:700;min-width:40px;font-size:12px}
.li .nm{flex:1;min-width:0;font-weight:600;font-size:13px}
.li .nm small{display:block;color:var(--muted);font-size:11px;font-weight:500}
.tag{display:inline-block;font-size:11px;font-weight:600;padding:2px 10px;border-radius:6px;background:var(--bg-2);color:var(--text2);white-space:nowrap}
.tag.red{background:var(--danger-bg);color:var(--danger)} .tag.green{background:var(--success-bg);color:#1e6b3c}
.tag.yellow{background:var(--yellow-light);color:#854f0b} .tag.blue{background:var(--info-bg);color:var(--info)} .tag.navy{background:var(--navy);color:#fff}
.switch{position:relative;display:inline-block;width:46px;height:28px;flex:none;vertical-align:middle}
.switch input{opacity:0;width:0;height:0}
.switch span{position:absolute;inset:0;background:var(--success);border-radius:999px;cursor:pointer;transition:.2s}
.switch span:before{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch input:checked+span{background:var(--danger)}
.switch input:checked+span:before{transform:translateX(18px)}
.switch.off span{background:var(--m-off-s)}
.switch.plain span{background:#c9cede}.switch.plain input:checked+span{background:var(--navy)}
.check{width:42px;height:42px;border-radius:10px;border:2px solid var(--border-s);background:#fff;display:grid;place-items:center;flex:none;color:#fff}
.check.on{background:var(--success);border-color:var(--success)}
.check .ic{width:20px;height:20px}
.group-h{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:14px 2px 2px}
.group-h:first-child{margin-top:0}
table.tbl{width:100%;border-collapse:collapse;font-size:13px}
.tbl th{text-align:left;font-size:10px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.06em;padding:8px;border-bottom:1px solid var(--border-s)}
.tbl td{padding:9px 8px;border-bottom:1px solid var(--border);vertical-align:middle}
.tablewrap{overflow-x:auto}
.days7{display:flex;gap:4px;flex-wrap:wrap}
.days7 label{width:32px;height:32px;border-radius:7px;border:1px solid var(--border-s);display:grid;place-items:center;font-size:11px;font-weight:700;color:var(--muted);cursor:pointer;user-select:none;background:#fff}
.days7 input{display:none}
.days7 label:has(input:checked){background:var(--navy);border-color:var(--navy);color:#fff}
.taskrow{display:grid;grid-template-columns:1fr 90px auto auto;gap:8px;align-items:center;padding:8px 0;border-top:1px dashed var(--border-s)}
@media (max-width:700px){.taskrow{grid-template-columns:1fr 80px}.taskrow .days7,.taskrow .acts{grid-column:1/-1}}

/* ── klok ── */
.clock{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.clock .timer{font-family:'Montserrat','Inter',sans-serif;font-size:30px;font-weight:800;line-height:1.1}

/* ── logboek ── */
.chat{display:flex;flex-direction:column;gap:10px;padding:4px 0 10px}
.msg{max-width:min(82%,620px);background:#fff;border:1px solid var(--border);border-radius:12px 12px 12px 4px;padding:9px 12px;align-self:flex-start}
.msg.mine{align-self:flex-end;background:var(--info-bg);border-color:rgba(59,110,168,.2);border-radius:12px 12px 4px 12px}
.msg.cl:not(.mine){background:#fffaf0;border-color:#f4dd96}
.msg .h{font-size:11px;color:var(--muted);display:flex;gap:10px;justify-content:space-between;margin-bottom:3px}
.msg .h b{color:var(--navy)}
.msg img{display:block;max-width:100%;max-height:300px;border-radius:8px;margin-top:6px;cursor:zoom-in}
.msg .body{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--navy)}
.composer{position:sticky;bottom:0;background:var(--bg);padding:10px 0 calc(6px + var(--safe-b))}
.composer .box{background:#fff;border:1px solid var(--border-s);border-radius:12px;padding:8px}
.composer textarea{border:0;min-height:52px;padding:6px}
.composer textarea:focus{outline:none}
.preview{position:relative;display:inline-block;margin:4px}
.preview img{height:70px;border-radius:8px}
.preview button{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff}

/* ── dialoog / sheet ── */
.overlay{position:fixed;inset:0;background:rgba(0,16,89,.55);z-index:200;display:flex;align-items:center;justify-content:center;padding:16px}
.modal{background:#fff;border-radius:var(--radius-lg);width:100%;max-width:500px;max-height:90vh;overflow:auto;padding:26px;box-shadow:0 25px 70px rgba(0,16,89,.28)}
.modal h2{font-size:18px;margin:0 0 6px;padding-right:40px}
.modal .x{float:right;width:32px;height:32px;border-radius:8px;background:var(--bg-2);font-size:18px;color:var(--navy);margin:-6px -6px 0 0}
.modal .acts{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:22px}
.lightbox{position:fixed;inset:0;background:rgba(0,10,40,.92);z-index:300;display:grid;place-items:center;cursor:zoom-out}
.lightbox img{max-width:96vw;max-height:94vh}
#toast{position:fixed;left:50%;bottom:calc(24px + var(--safe-b));transform:translateX(-50%) translateY(20px);max-width:calc(100% - 32px);width:max-content;background:var(--navy);color:#fff;
  padding:12px 20px;border-left:4px solid var(--yellow);border-radius:10px;box-shadow:0 12px 40px rgba(0,16,89,.25);font-size:13px;font-weight:500;z-index:400;opacity:0;pointer-events:none;transition:.2s}
#toast.on{opacity:1;transform:translateX(-50%)}
#toast.bad{border-left-color:var(--danger)}
.empty{text-align:center;color:var(--muted);padding:28px 10px;font-size:13px}
.tasks-ul{margin:8px 0 0;padding:0;list-style:none}
.tasks-ul li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}
.notice{background:var(--yellow-light);border-left:4px solid var(--yellow);border-radius:8px;padding:12px 14px;font-size:13px;color:var(--navy)}

/* ── responsief ── */
@media (min-width:1101px){.only-narrow{display:none}}
@media (max-width:1100px){
  .only-wide{display:none}
  .cols{grid-template-columns:1fr}
  .sticky{position:static}
}
@media (max-width:960px){
  .topbar{height:auto;flex-wrap:wrap;padding:10px 16px 0;gap:10px}
  .topbar nav{order:3;width:100%;margin:0 -16px;padding:0 8px;height:46px;width:calc(100% + 32px)}
  .topbar .brand{padding-bottom:10px}
  .top-right{padding-bottom:10px}
  .account{display:none}
  .g4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:700px){
  .workspace{padding:16px 14px 30px}
  .page-heading{flex-direction:column;gap:6px;margin-bottom:14px}
  .page-heading h1{font-size:20px}
  .g3{grid-template-columns:1fr 1fr}
  .g3 .kpi:last-child{grid-column:1/-1}
  .g2{grid-template-columns:1fr}
  .kpi{padding:12px 14px}.kpi .v{font-size:21px}
  .topbar .brand img{height:24px}
  .top-right select{max-width:150px}
  .topbar nav button{padding:0 10px;font-size:12px}
  .card{padding:16px}
  .login-layout{grid-template-columns:1fr}
  .login-intro{padding:34px 24px}
  .login-intro h1{font-size:1.8rem;margin:10px 0 12px}
  .brand-line{display:none}
  .login-card{width:100%;padding:28px 22px 40px}
  .login-brand{padding:14px 20px}
  .login-brand img{height:32px}
  .overlay{align-items:flex-end;padding:0}
  .modal{border-radius:16px 16px 0 0;max-height:88vh;padding:22px 20px calc(22px + var(--safe-b))}
  .modal .acts .btn{flex:1}
  .datebar .d{min-width:0;flex:1;font-size:15px}
  .datebar input[type=date]{display:none}
  footer{flex-direction:column;gap:4px}
}

/* ══ v4: schoonmaker — eenvoudig, met tegels ══ */
.is-cleaner .workspace{max-width:760px}
.is-cleaner footer{margin-top:28px}
.c-hello{margin:4px 0 14px}
.c-hello h1{font-size:24px}
.c-hello .sub,.c-title .sub{color:var(--muted);font-size:13px}
.c-status{border-radius:14px;padding:16px 18px;margin-bottom:12px}
.c-status .big{font-family:'Montserrat','Inter',sans-serif;font-size:20px;font-weight:800;line-height:1.2}
.c-status .small{margin-top:2px;font-weight:500}
.c-status .chg{margin-top:8px;font-size:14px;line-height:1.4}
.c-status.std{background:var(--navy);color:#fff}.c-status.std .small{color:rgba(255,255,255,.75)}
.c-status.dev{background:var(--yellow);color:var(--navy)}
.c-status.none{background:var(--bg-2);color:var(--text2);border:1px dashed var(--border-s)}
.c-note{margin-bottom:12px;white-space:pre-wrap;font-weight:600}
.c-clock{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:68px;padding:14px 20px;border-radius:14px;margin-bottom:14px;color:#fff;font-weight:800;font-size:19px;font-family:'Montserrat','Inter',sans-serif}
.c-clock .small{font-family:'Inter',sans-serif;font-weight:500;font-size:13px;opacity:.85}
.c-clock .js-timer{font-variant-numeric:tabular-nums}
.c-clock.in{background:var(--success)} .c-clock.out{background:var(--danger)}
.c-clock:active{transform:scale(.99)}
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:560px){.tiles{grid-template-columns:repeat(3,1fr)}}
.tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:128px;padding:16px;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:14px;color:var(--navy);box-shadow:0 1px 2px rgba(0,16,89,.04)}
.tile:active{background:var(--yellow-light)}
.tile .ic{width:30px;height:30px;padding:6px;box-sizing:content-box;background:var(--yellow-light);border-radius:10px;margin-bottom:8px}
.tile b{font-family:'Montserrat','Inter',sans-serif;font-size:16px}
.tile small{color:var(--muted);font-size:12px;line-height:1.35}
.tile .badge{vertical-align:middle}
.bar,.progress{display:block;width:100%;height:6px;border-radius:3px;background:var(--bg-2);overflow:hidden;margin-top:auto}
.bar i,.progress i{display:block;height:100%;background:var(--success);border-radius:3px}
.progress{height:8px;margin:0 0 14px}
.backbtn{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:8px 14px 8px 8px;margin:-4px 0 6px -4px;border-radius:10px;font-weight:700;font-size:15px;color:var(--navy)}
.backbtn .ic{width:22px;height:22px}
.backbtn:active{background:var(--bg-2)}
.c-title{margin-bottom:14px}
.c-title h1{font-size:22px}
.c-list{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.c-row{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 12px;min-height:64px;width:100%}
.c-row.done{background:#f6fbf3}
.c-row.done b{text-decoration:line-through;text-decoration-color:rgba(0,16,89,.35)}
.c-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left;color:var(--navy)}
button.c-row.c-main{flex-direction:row;align-items:center}
.c-main b{font-size:15px}
.c-main small{color:var(--muted);font-size:12px;line-height:1.4}
.check{width:52px;height:52px;border-radius:12px}
.alarm{border-left:4px solid var(--danger)}
.code-val{flex:1;font-family:'Montserrat','Inter',monospace;font-size:32px;font-weight:800;letter-spacing:.18em;font-variant-numeric:tabular-nums}
.eyebtn{width:52px;height:52px;border-radius:12px;border:1px solid var(--border-s);display:grid;place-items:center;flex:none;color:var(--navy);background:#fff}
.eyebtn .ic{width:24px;height:24px}
.eyebtn[aria-pressed=true]{background:var(--yellow-light)}
.pre{white-space:pre-wrap;font-size:14px;line-height:1.6;color:var(--navy)}
.c-row .btn{min-height:44px}

/* ══ v4: manager — compacte samenvatting ══ */
.summary{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--navy);border-radius:var(--radius-lg);padding:14px 18px;margin-bottom:16px}
.summary.dev{border-left-color:var(--yellow)} .summary.none{border-left-color:var(--border-s)}
.sum-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.pill{display:inline-block;font-weight:800;font-size:13px;padding:4px 12px;border-radius:999px;background:var(--navy);color:#fff}
.summary.dev .pill{background:var(--yellow);color:var(--navy)} .summary.none .pill{background:var(--bg-2);color:var(--text2)}
.linkbtn{margin-left:auto;font-size:12px;font-weight:700;color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.sum-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sum-nums>div{display:flex;flex-direction:column}
.sum-nums span{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.sum-nums b{font-family:'Montserrat','Inter',sans-serif;font-size:22px;font-weight:800;line-height:1.2}
.sum-nums small{font-size:12px;color:var(--muted)}
.sum-nums .save b{color:var(--success)} .sum-nums .warn b{color:var(--danger)}
@media (max-width:700px){.sum-nums b{font-size:17px}.page-heading .datebar{width:100%}}

@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
