/* Plattegrond Huisvesting (Editors/Housing/HousingPlanComponent.razor) */
.hp {
    --hp-ink: #1D282C; --hp-muted: #5B686C; --hp-line: #D3D9D5; --hp-line2: #E4E8E5; --hp-surface: #FFFFFF; --hp-surface2: #F7F8F6;
    --hp-accent: #1F7A7A; --hp-hl: #F2B705; --hp-hl-soft: #FFF4CC;
    --hp-free: #3E9160; --hp-free-soft: #E3F1E8; --hp-part: #C9921A; --hp-part-soft: #FBF0D6; --hp-full: #5E6E73; --hp-full-soft: #E6EAEA;
    --hp-over: #C24F3A; --hp-over-soft: #F8E1DC; --hp-maint: #9AA3A6;
    padding: 16px; background: #F1F3F0; min-height: 100%; color: var(--hp-ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; display: grid; gap: 12px;
}
.hp-empty { padding: 40px; text-align: center; color: var(--hp-muted); }
.hp-muted { color: var(--hp-muted); font-size: 12.5px; }
.hp-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; }
.hp-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-muted); font-weight: 600; }
.hp-title { margin: 0; font-size: 26px; font-weight: 700; }
.hp-kpis { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-kpi { background: var(--hp-surface); border: 1px solid var(--hp-line2); border-radius: 8px; padding: 6px 12px; min-width: 90px; }
.hp-kpi b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.hp-kpi span { font-size: 12px; color: var(--hp-muted); }
.hp-kpi.warn b { color: var(--hp-over); }
.hp-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--hp-surface); border: 1px solid var(--hp-line2); border-radius: 10px; padding: 8px 12px; }
.hp-bar label { font-size: 13px; color: var(--hp-muted); }
.hp-date { width: 150px; }
.hp-search { width: 260px; max-width: 100%; }
.hp-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; font-size: 12px; color: var(--hp-muted); }
.hp-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hp-legend i.free { background: var(--hp-free); } .hp-legend i.part { background: var(--hp-part); } .hp-legend i.full { background: var(--hp-full); }
.hp-legend i.over { background: var(--hp-over); } .hp-legend i.maint { background: var(--hp-maint); } .hp-legend i.ud { background: var(--hp-hl); }
.hp-msg { background: #E3F1E8; border: 1px solid #B9DCC6; border-radius: 8px; padding: 8px 36px 8px 12px; position: relative; font-size: 14px; }
.hp-msg.err { background: var(--hp-over-soft); border-color: #EDB9AE; }
.hp-x { position: absolute; right: 8px; top: 4px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--hp-muted); }
.hp-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .hp-main { grid-template-columns: 1fr; } }
.hp-left { display: grid; gap: 12px; min-width: 0; }
.hp-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hp-block { display: grid; gap: 3px; text-align: left; background: var(--hp-surface); border: 1px solid var(--hp-line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.hp-block.on { outline: 3px solid var(--hp-hl); outline-offset: -1px; }
.hp-block .c { font-weight: 700; font-size: 16px; }
.hp-block .n { font-size: 12px; color: var(--hp-muted); font-variant-numeric: tabular-nums; }
.hp-block .bar { height: 6px; background: var(--hp-line2); border-radius: 3px; overflow: hidden; }
.hp-block .bar i { display: block; height: 100%; background: var(--hp-accent); }
.hp-floors { display: inline-flex; border: 1px solid var(--hp-line); border-radius: 7px; overflow: hidden; width: max-content; background: var(--hp-surface); }
.hp-floors button { border: 0; background: transparent; padding: 6px 14px; cursor: pointer; color: var(--hp-muted); font-weight: 500; }
.hp-floors button.on { background: var(--hp-accent); color: #fff; }
.hp-planwrap { overflow-x: auto; border: 2px solid var(--hp-ink); border-radius: 4px; background: var(--hp-surface2); }
.hp-plan { min-width: 760px; padding: 6px 0 8px; display: grid; gap: 2px; }
.hp-rowlbl { font-size: 12px; font-weight: 600; color: var(--hp-accent); padding: 4px 10px 0; }
.hp-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; }
.hp-row.plain { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
.hp-locs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hp-locs button { border: 1px solid var(--hp-line); background: var(--hp-surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; color: var(--hp-muted); }
.hp-locs button.on { background: var(--hp-accent); border-color: var(--hp-accent); color: #fff; }
.hp-row + .hp-rowlbl { border-top: 2px dashed var(--hp-over); margin-top: 6px; padding-top: 8px; }
.hp-units { display: grid; gap: 3px; padding: 0 6px; }
.hp-wash { border-left: 1px solid var(--hp-line); background: var(--hp-surface); padding: 6px 8px; font-size: 12px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.hp-wash span { color: var(--hp-accent); font-weight: 600; }
.hp-unit { position: relative; border: 1px solid var(--hp-line); border-radius: 4px; background: var(--hp-surface); padding: 5px 5px 4px; min-height: 60px; display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; }
.hp-unit .no { font-weight: 700; font-size: 14px; color: var(--hp-ink); }
.hp-unit .cnt { font-size: 11px; color: var(--hp-ink); font-variant-numeric: tabular-nums; }
.hp-unit .beds { display: flex; flex-wrap: wrap; gap: 2px; }
.hp-unit .beds i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; display: block; }
.hp-unit .beds i.on { background: currentColor; }
.hp-unit.free { background: var(--hp-free-soft); color: var(--hp-free); }
.hp-unit.part { background: var(--hp-part-soft); color: var(--hp-part); }
.hp-unit.full { background: var(--hp-full-soft); color: var(--hp-full); }
.hp-unit.over { background: var(--hp-over-soft); color: var(--hp-over); border-color: var(--hp-over); }
.hp-unit.maint { background: repeating-linear-gradient(135deg, var(--hp-surface2) 0 6px, var(--hp-full-soft) 6px 12px); color: var(--hp-maint); }
.hp-unit.sel { outline: 3px solid var(--hp-hl); outline-offset: 1px; z-index: 1; }
.hp-unit.hit { outline: 3px solid var(--hp-accent); outline-offset: 1px; }
.hp-unit.dim { opacity: .28; }
.hp-unit .flag { position: absolute; top: 3px; right: 5px; font-weight: 700; font-size: 11px; color: var(--hp-over); }
.hp-unit .lay { position: absolute; top: 4px; font-weight: 600; font-size: 9px; line-height: 1; color: var(--hp-muted); opacity: .8; }
.hp-unit .beds .wall { display: block; align-self: center; width: 1px; height: 10px; margin: 0 2px; background: currentColor; opacity: .55; }
.hp-layf { display: inline-flex; border: 1px solid var(--hp-line); border-radius: 7px; overflow: hidden; background: var(--hp-surface); }
.hp-layf button { border: 0; background: transparent; padding: 4px 10px; cursor: pointer; color: var(--hp-muted); font-weight: 500; font-size: 12px; }
.hp-layf button.on { background: var(--hp-accent); color: #fff; }
.hp-lay-key { display: inline-block; font-size: 10px; font-weight: 600; margin-right: 3px; color: var(--hp-muted); }
.hp-unit .lay.lay-s, .hp-lay-key.lay-s { color: #3F6FB0; opacity: 1; }
.hp-unit .lay.lay-p, .hp-lay-key.lay-p { color: #8A4FB0; opacity: 1; }
.hp-unit .udm { position: absolute; bottom: 3px; right: 4px; width: 7px; height: 7px; border-radius: 2px; background: var(--hp-hl); }
.hp-attn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .hp-attn { grid-template-columns: 1fr; } }
.hp-card { background: var(--hp-surface); border: 1px solid var(--hp-line2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.hp-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hp-card-t { font-size: 15px; font-weight: 700; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chip { border: 1px solid var(--hp-line); background: var(--hp-surface2); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.hp-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.hp-dl dt { color: var(--hp-muted); }
.hp-dl dd { margin: 0; }
.hp-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hp-res li { border: 1px solid var(--hp-line2); border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.hp-res .who { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.hp-res small { color: var(--hp-muted); font-size: 12px; }
.hp-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hp-combo { width: 100%; }
.hp-add { display: grid; gap: 6px; border-top: 1px solid var(--hp-line2); padding-top: 8px; }
.hp-btn { border: 1px solid var(--hp-line); background: var(--hp-surface2); border-radius: 7px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.hp-btn.pri { background: var(--hp-accent); border-color: var(--hp-accent); color: #fff; }
.hp-btn:disabled { opacity: .5; cursor: default; }
.hp-pill { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; background: var(--hp-full-soft); color: var(--hp-full); }
.hp-pill.free, .hp-pill.part { background: var(--hp-free-soft); color: var(--hp-free); }
.hp-pill.over { background: var(--hp-over-soft); color: var(--hp-over); }
.hp-pill.ud { background: var(--hp-hl-soft); color: #7A5C00; }
.hp-lists { gap: 10px; }
.hp-tabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border-bottom: 1px solid var(--hp-line2); padding-bottom: 6px; }
.hp-tabs > button:not(.hp-btn) { border: 0; background: transparent; border-bottom: 2px solid transparent; padding: 6px 10px; cursor: pointer; color: var(--hp-muted); font-weight: 500; }
.hp-tabs > button.on { color: var(--hp-ink); border-bottom-color: var(--hp-accent); }
.hp-tabs-sp { flex: 1; }
.hp-tablewrap { overflow-x: auto; max-height: 480px; overflow-y: auto; }
.hp-table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.hp-table th, .hp-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hp-line2); white-space: nowrap; }
.hp-table th { position: sticky; top: 0; background: var(--hp-surface); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--hp-muted); }
.hp-table .n { text-align: right; }
.hp-table tr.k-vertrek td:nth-child(2) { color: var(--hp-over); font-weight: 600; }
.hp-table tr.k-aankomst td:nth-child(2) { color: var(--hp-free); font-weight: 600; }
.hp-table tr.k-verhuizing td:nth-child(2) { color: var(--hp-accent); font-weight: 600; }
.hp-minibar { display: inline-block; width: 80px; height: 7px; border-radius: 4px; background: var(--hp-line2); vertical-align: middle; overflow: hidden; }
.hp-minibar i { display: block; height: 100%; background: var(--hp-accent); }
.hp-profile { border: 1px solid var(--hp-line2); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; }
.hp-combo-w { width: 280px; max-width: 100%; }
.hp-table tr.ar-sel td { background: var(--hp-hl-soft); }
.ar-doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ar-doors .hp-unit { min-height: 72px; }
.ar-doors .ar-name { font-weight: 700; font-size: 12.5px; color: var(--hp-ink); line-height: 1.25; }
.ar-bar { padding: 4px 10px; }
.hp-chip.ar-unused { opacity: .55; text-decoration: line-through dotted; }
.hp-chip input { margin-right: 4px; vertical-align: -1px; }

/* Nachtregister */
.hp-night-kpi, .hp-night-blocks { margin: 8px 0; }
.hp-chip.on { border-color: var(--hp-accent, #2b6cb0); font-weight: 600; }
.hp-ns { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--hp-surface2); }
.ns-1.hp-ns, .hp-chip.ns-1 { background: #e3f4e8; color: #1d6b3a; }
.ns-0.hp-ns, .hp-chip.ns-0 { background: #fff3d6; color: #8a5a00; }
.ns-2.hp-ns, .hp-chip.ns-2, .ns-3.hp-ns, .hp-chip.ns-3 { background: #e6eefb; color: #2b4f8a; }
.ns-4.hp-ns, .hp-chip.ns-4 { background: #eee; color: #666; }

/* Controles (wissel: eindcontrole, schoonmaak, oplevering) - telefoon/tablet eerst */
.hi { max-width: 860px; margin: 0 auto; padding: 8px 12px 40px; font-size: 15px; }
.hi h2 { margin: 0; font-size: 20px; }
.hi h3 { margin: 18px 0 8px; font-size: 16px; }
.hi-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; padding: 6px 0; }
.hi-top.sticky { position: sticky; top: 0; z-index: 5; background: var(--hp-surface, #fff); border-bottom: 1px solid var(--hp-line, #ddd); }
.hi-title { flex: 1 1 auto; min-width: 140px; }
.hi-lang button { border: 1px solid var(--hp-line, #ccc); background: transparent; padding: 6px 9px; border-radius: 6px; margin-left: 2px; }
.hi-lang button.on { background: var(--hp-accent, #1F7A7A); color: #fff; border-color: transparent; }
.hi-card { border: 1px solid var(--hp-line, #ddd); border-radius: 10px; padding: 12px; margin: 8px 0; background: var(--hp-surface, #fff); }
.hi-card-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.hi-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.hi-unit { font-size: 17px; }
.hi-muted { color: #777; font-size: 13px; }
.hi-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.hi-step { padding: 3px 9px; border-radius: 999px; background: #eee; color: #666; font-size: 13px; }
.hi-step.done { background: #e3f4e8; color: #1d6b3a; }
.hi-step.now { background: #fff3d6; color: #8a5a00; font-weight: 600; }
.hi-btn { border: 1px solid var(--hp-line, #ccc); background: transparent; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.hi-btn.primary { background: var(--hp-accent, #1F7A7A); color: #fff; border-color: transparent; }
.hi-btn.big { width: 100%; padding: 13px; font-size: 16px; margin-top: 6px; }
.hi-btn:disabled { opacity: .45; cursor: default; }
.hi-new { display: flex; gap: 8px; flex-wrap: wrap; }
.hi-new select { flex: 1 1 140px; padding: 8px; }
.hi-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hi-room { font-weight: 700; font-size: 16px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.hi-subroom { font-weight: 600; margin: 10px 0 4px; color: var(--hp-accent, #1F7A7A); }
.hi-q { border-top: 1px solid #f0f0f0; padding: 8px 0; }
.hi-q.good .hi-qt { color: #1d6b3a; }
.hi-q.bad .hi-qt { color: #b42318; }
.hi-qt { margin-bottom: 6px; }
.hi-ans { display: flex; gap: 6px; flex-wrap: wrap; }
.hi-ans button { flex: 1 1 80px; min-height: 42px; border: 1px solid #ccc; border-radius: 8px; background: #fafafa; font-size: 15px; }
.hi-ans button.ok.on { background: #1d6b3a; color: #fff; border-color: transparent; }
.hi-ans button.nok.on { background: #b42318; color: #fff; border-color: transparent; }
.hi-ans button.na.on, .hi-ans button.on { background: #555; color: #fff; border-color: transparent; }
.hi-ans input { flex: 1 1 auto; min-height: 40px; padding: 6px 10px; font-size: 15px; }
.hi-remark { width: 100%; margin-top: 6px; min-height: 38px; padding: 6px 10px; font-size: 15px; border: 1px solid #ccc; border-radius: 6px; }
.hi-remark.need { border-color: #b42318; background: #fff5f4; }
.hi-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 0; border-top: 1px solid #f0f0f0; }
.hi-line.bad { background: #fff5f4; }
.hi-ln { flex: 1 1 100%; }
.hi-cnt { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.hi-cnt button { width: 40px; height: 38px; border: 1px solid #ccc; border-radius: 8px; background: #fafafa; font-size: 18px; }
.hi-cnt b { min-width: 18px; text-align: center; font-size: 16px; }
.hi-charge { font-weight: 700; color: #b42318; }
.hi-total { text-align: right; margin-top: 10px; font-size: 16px; }
.hi-only { font-weight: 400; font-size: 13px; }
.hi-radio { display: block; padding: 6px 0; }
.hi-charges { margin: 8px 0 0 18px; }
.hi-problems { margin: 6px 0 0 18px; color: #8a5a00; font-size: 13px; }
.hi textarea { width: 100%; font-size: 15px; padding: 8px; }
.hi select { padding: 8px; font-size: 15px; }
.hi-msg { position: sticky; top: 0; z-index: 6; background: #e3f4e8; color: #1d6b3a; padding: 10px 12px; border-radius: 8px; margin: 6px 0; cursor: pointer; }
.hi-msg.err { background: #fff3d6; color: #8a5a00; }
.hp-unit.turn { background: repeating-linear-gradient(135deg, #fff3d6 0 6px, #fde7b0 6px 12px); color: #8a5a00; }
.hp-legend i.turn { background: #fde7b0; }
.hp-pill.turn { background: #fff3d6; color: #8a5a00; }
.hi-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.hi-photos.need { padding: 6px; border: 1px dashed #b42318; border-radius: 8px; }
.hi-thumb { position: relative; display: inline-block; }
.hi-thumb img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; cursor: pointer; }
.hi-x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: none; background: #b42318; color: #fff; font-size: 15px; line-height: 22px; padding: 0; }
.hi-cam { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid #ccc; border-radius: 8px; background: #fafafa; cursor: pointer; font-size: 15px; }
.hi-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.hi-modal img { max-width: 96vw; max-height: 86vh; border-radius: 6px; }
.hi-modal .hi-muted { color: #ddd; }

/* Weg met bed behouden (vakantie, ziek naar huis) en bednummers (Royal Berry 13-10-2026) */
.hp-unit .beds i.on.away { background: #6b8fd6; border-color: #6b8fd6; }
.hp-legend i.away { background: #6b8fd6; }
.hp-pill.away { background: #e6eefb; color: #2b4f8a; }
.hp-pill.away.over { background: var(--hp-over-soft); color: var(--hp-over); }
.hp-res li.away .who b { color: #2b4f8a; }
.hp-chip.warn { border-color: var(--hp-over); color: var(--hp-over); }
.hp-num { width: 90px; }

/* Verwachte aankomst */
.hp-unit .beds i.res { border-style: dashed; border-color: #d98a00; }
.hp-legend i.res { background: transparent; border: 1.5px dashed #d98a00; }
.hp-res li.exp .who b { color: #8a5a00; }
.hp-arr-edit { margin: 8px 0; }
.hp-arr-grid { display: grid; grid-template-columns: 140px minmax(0, 1fr) 140px minmax(0, 1fr); gap: 6px 10px; align-items: center; margin: 6px 0; }
.hp-arr-grid > label { color: var(--hp-muted, #666); font-size: 12.5px; }
@media (max-width: 900px) { .hp-arr-grid { grid-template-columns: 120px minmax(0, 1fr); } }
.hp-table tr.done td { color: #999; }
.hp-nowrap { white-space: nowrap; }
/* Actiekolom van de aankomstlijst blijft rechts in beeld als de tabel horizontaal schuift */
.hp-table .hp-stick { position: sticky; right: 0; background: var(--hp-surface); box-shadow: -6px 0 6px -6px rgba(0,0,0,.25); }
.hp-table th.hp-stick { z-index: 1; }
/* Weekbezetting */
.hp-staff th.hp-staff-loc, .hp-staff td.hp-staff-loc { border-left: 2px solid var(--hp-line); }
.hp-staff .hp-need { width: 64px; padding: 2px 4px; border: 1px solid var(--hp-line); border-radius: 4px; text-align: right; font: inherit; color: var(--hp-muted); }
.hp-staff .hp-need.set { color: var(--hp-ink); font-weight: 600; }
.hp-staff .hp-click { cursor: pointer; }
.hp-staff .hp-click:hover { text-decoration: underline; }
.hp-staff-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-staff-detail .hp-warn { color: #8a5a00; }
@media (max-width: 900px) { .hp-staff-detail { grid-template-columns: 1fr; } }
/* Weekplanning per medewerker (rooster zoals Backup_Planning) */
.hp-seg { display: inline-flex; gap: 0; }
.hp-seg .hp-btn { border-radius: 0; }
.hp-seg .hp-btn:first-child { border-radius: 6px 0 0 6px; }
.hp-seg .hp-btn:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.hp-wp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 8px 0; }
.hp-wp-card { border: 1px solid var(--hp-line); border-radius: 8px; padding: 8px 12px; background: var(--hp-surface); }
.hp-wp-card .k { color: var(--hp-muted); font-size: 12px; }
.hp-wp-card .v { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hp-wp-card .v.bad { color: var(--hp-over); }
.hp-wp-card .v.good { color: var(--hp-free); }
.hp-wp-chart { width: 100%; height: 190px; display: block; }
.hp-wp-chart .grid { stroke: var(--hp-line2); }
.hp-wp-chart .lbl { font-size: 10px; fill: var(--hp-muted); }
.hp-wp-chart .bar { fill: var(--hp-free); opacity: .85; }
.hp-wp-chart .gap { fill: var(--hp-over); opacity: .35; }
.hp-wp-chart .need { fill: none; stroke: var(--hp-ink); stroke-width: 2; }
.hp-wp-chart .now { stroke: #f5b800; stroke-width: 2; }
.hp-wp-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin: 4px 0 8px; }
.hp-wp-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.hp-wp-sw.c1 { background: var(--hp-free); }
.hp-wp-sw.c2 { background: linear-gradient(90deg, var(--hp-free) 50%, #8cc5a2 50%); }
.hp-wp-sw.c3 { background: #5b8bd6; }
.hp-wp-sw.c4 { background: repeating-linear-gradient(45deg, #c9ccc8 0 3px, transparent 3px 6px); border: 1px solid #c9ccc8; }
.hp-wp-sw.gap { background: var(--hp-over); opacity: .5; }
.hp-wp-sw.need { background: var(--hp-ink); height: 2px; vertical-align: 3px; }
.hp-wp-q { font: inherit; padding: 4px 8px; border: 1px solid var(--hp-line); border-radius: 6px; min-width: 200px; }
.hp-wp-wrap { overflow: auto; max-height: calc(100vh - 260px); min-height: 360px; border: 1px solid var(--hp-line); border-radius: 6px; }
.hp-wp { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: 12px; }
.hp-wp th, .hp-wp td { padding: 0; border-bottom: 1px solid var(--hp-line2); white-space: nowrap; background: var(--hp-surface); }
.hp-wp thead th { position: sticky; z-index: 2; font-weight: 500; font-size: 11px; color: var(--hp-muted); }
.hp-wp thead tr.r0 th { top: 0; height: 20px; }
.hp-wp thead tr.r1 th { top: 20px; height: 20px; }
.hp-wp thead tr.r2 th { top: 40px; height: 22px; color: var(--hp-ink); }
.hp-wp thead tr.r3 th { top: 62px; height: 22px; color: var(--hp-ink); }
.hp-wp thead tr.r4 th { top: 84px; height: 22px; color: var(--hp-ink); border-bottom: 2px solid var(--hp-line); }
.hp-wp .st { position: sticky; z-index: 3; text-align: left; padding: 0 6px; }
.hp-wp thead .st { z-index: 4; }
.hp-wp .n0 { left: 0; min-width: 230px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.hp-wp .n1 { left: 230px; min-width: 64px; color: var(--hp-muted); }
.hp-wp .n2 { left: 294px; min-width: 40px; color: var(--hp-muted); text-align: center; }
.hp-wp .n3 { left: 334px; min-width: 40px; color: var(--hp-muted); text-align: center; border-right: 2px solid var(--hp-line); }
.hp-wp .w { min-width: 30px; max-width: 30px; width: 30px; text-align: center; }
.hp-wp td.w { height: 22px; position: relative; cursor: pointer; }
.hp-wp td.w::after { content: ""; position: absolute; inset: 4px 2px; border-radius: 3px; }
.hp-wp td.c1::after { background: var(--hp-free); }
.hp-wp td.c2::after { background: linear-gradient(90deg, var(--hp-free) 50%, #8cc5a2 50%); }
.hp-wp td.c3::after { background: #5b8bd6; }
.hp-wp td.c4::after { background: repeating-linear-gradient(45deg, #c9ccc8 0 3px, transparent 3px 6px); border: 1px solid #c9ccc8; }
.hp-wp .now { box-shadow: inset 1px 0 0 #f5b800, inset -1px 0 0 #f5b800; }
.hp-wp thead .now { background: #fff4cc; }
.hp-wp .short { background: var(--hp-over-soft); color: var(--hp-over) !important; font-weight: 600; }
.hp-wp .okc { background: var(--hp-free-soft); color: var(--hp-free) !important; }
.hp-wp tbody tr:hover td { background: var(--hp-surface2); }
.hp-wp tr.excluded td.n0 { color: var(--hp-muted); text-decoration: line-through; }
@media (max-width: 640px) { .hp-wp .n0 { min-width: 150px; max-width: 150px; } .hp-wp .n1 { left: 150px; } .hp-wp .n2 { left: 214px; } .hp-wp .n3 { left: 254px; } }
/* Signaal niet geklokt op Planning › Weekbezetting */
.hp-noshow { background: var(--hp-over-soft); border: 1px solid var(--hp-over); border-radius: 6px; padding: 6px 10px; }
.hp-noshow b { color: var(--hp-over); }

/* Planning › Weekbezetting › Vandaag: dagstatus per werklocatie (22-10-2026) */
.hp-ds-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.hp-ds-tile { border: 1px solid var(--hp-line); border-radius: 8px; padding: 6px 12px; background: var(--hp-surface); cursor: pointer; min-width: 112px; text-align: left; font: inherit; color: inherit; }
.hp-ds-tile .k { font-size: 12px; color: var(--hp-muted); }
.hp-ds-tile .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-ds-tile.on { border-color: var(--hp-accent); box-shadow: 0 0 0 1px var(--hp-accent); }
.hp-ds { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; background: #eceae6; color: #555; }
.hp-ds.s3 { background: var(--hp-over-soft); color: var(--hp-over); }
.hp-ds.s4, .hp-ds.s5 { background: #e6eefb; color: #2b4f8a; }
.hp-ds.s6 { background: #fff3d6; color: #8a5a00; }
.hp-ds.s7 { background: var(--hp-free-soft); color: var(--hp-free); }
.hp-ds.s8 { background: #fde7e4; color: #a33a2b; }
.hp-ds.s9 { background: #fff8e1; color: #7A5C00; }
.hp-ds.s10 { background: #efe7f6; color: #6b3f8f; }
.hp-ds-tile.s8 .v, .hp-ds-tile.s3 .v { color: #a33a2b; }
.hp-ds-tile.s7 .v { color: var(--hp-free); }
.hp-ds-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hp-ds-form input[type=text] { width: 180px; }
.hp-table td.hp-ds-detail { white-space: normal; min-width: 220px; }
/* Weekbezetting: Overzicht en Vandaag vullen het scherm (zoals Per medewerker), kop blijft staan. */
.hp-tablewrap.hp-fill { max-height: calc(100vh - 260px); min-height: 360px; }
.hp-signals { background: #fff8e1; border: 1px solid #f1d98a; border-radius: 8px; padding: 6px 10px; }
.hp-signals b { color: #7A5C00; }

/* Planning › Indiensttreding (22-10-2026) */
.hp-onb-cols { display: grid; grid-template-columns: minmax(320px, 2fr) 3fr; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .hp-onb-cols { grid-template-columns: 1fr; } }
.hp-onb-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 8px 12px; }
.hp-onb-grid h4 { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--hp-muted); }
.hp-onb-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--hp-muted); }
.hp-onb-grid label.wide { grid-column: span 2; }
.hp-onb-grid input, .hp-onb-grid select { font: inherit; font-size: 13px; color: var(--hp-text, #222); padding: 5px 7px; border: 1px solid var(--hp-line); border-radius: 6px; background: var(--hp-surface); }
.hp-onb-key { display: flex; align-items: end; gap: 8px; grid-column: span 2; }
.hp-onb-later { margin: 10px 0 4px; }

/* Word-editor van de onboarding-sjablonen: vult het scherm onder de gegevens (22-10-2026) */
.wf-onb-richedit { width: 100%; height: calc(100vh - 330px); min-height: 480px; }

/* Tellers en legenda als filter (25-10-2026) */
button.hp-kpi { cursor: pointer; text-align: left; font: inherit; color: inherit; }
button.hp-kpi:hover { border-color: var(--hp-muted); }
.hp-kpi.on { border-color: #f5b800; box-shadow: 0 0 0 2px rgba(245,184,0,.35); }
.hp-legbtn { background: none; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; font: inherit; color: inherit; cursor: pointer; }
.hp-legbtn:hover { border-color: var(--hp-line2); }
.hp-legbtn.on { border-color: #f5b800; background: rgba(245,184,0,.12); color: var(--hp-text, inherit); }
.hp-filteron { border-color: #f5b800 !important; }
/* Ziek met bed vast: eigen kleur naast vakantie/weg (blauw) */
.hp-unit .beds i.on.away.sick { background: #c2410c; border-color: #c2410c; }
.hp-legend i.away.sick { background: #c2410c; }
/* Zoeken met keuzelijst (25-10-2026) */
.hp-searchwrap { position: relative; }
.hp-suggest { position: absolute; top: calc(100% + 2px); left: 0; z-index: 50; width: 320px; max-height: 360px; overflow-y: auto;
  background: var(--hp-surface, #fff); border: 1px solid var(--hp-line2, #ddd); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: 4px; }
.hp-suggest button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 6px 8px; font: inherit; color: inherit; cursor: pointer; }
.hp-suggest button:hover { background: rgba(245,184,0,.14); }
.hp-suggest button b { display: block; font-weight: 600; }
.hp-suggest button span { font-size: 12px; color: var(--hp-muted, #777); }
.hp-suggest button.unit b::before { content: "⌂ "; color: var(--hp-muted, #777); }
/* Schoonmaak via WhatsApp op de kaart van de wissel (25-10-2026) */
.hi-clean { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #ddd; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.hi-clean-form { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.hi-clean-form select, .hi-clean-form input { font: inherit; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; min-width: 180px; }
.hi-clean-form input { flex: 1 1 220px; }
.hi-pill { padding: 2px 9px; border-radius: 999px; font-size: 13px; background: #eee; color: #555; }
.hi-pill.cl-sent { background: #e7f1fb; color: #2b4f8a; } .hi-pill.cl-started { background: #fff3d6; color: #8a5a00; }
.hi-pill.cl-done { background: #e3f4e8; color: #1d6b3a; } .hi-pill.cl-problem, .hi-pill.cl-notsent { background: #fbe9e7; color: #b42318; }
.hi-pill.cl-cancelled { background: #eee; color: #888; }
.hi-reply { width: 100%; font-size: 13px; color: #444; background: #fafafa; border-radius: 6px; padding: 4px 8px; }
.hi-err { width: 100%; font-size: 13px; color: #b42318; }
