/* ===== Werkora: beheer, telefoon-app en klantpagina's ===== */
:root { --brand: #F97316; --brand-dark: #C2410C; --brand-tint: #FFEDD5; --ground: #F6F4F1; --side: #1F1B18; --side-2: #2A2420;
  --ink: #1F1B18; --muted: #6B625B; --line: #E7E2DC; --ok: #15803D; --ok-tint: #DCFCE7; --warn: #B45309; --warn-tint: #FEF3C7; --danger: #B91C1C; --danger-tint: #FEE2E2;
  --info: #1D4ED8; --info-tint: #DBEAFE; --display: 'Outfit', system-ui, sans-serif; }
body { background: var(--ground); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }
.btn { border-radius: 10px; min-height: 42px; padding: 0 16px; }
.btn svg { width: 18px; height: 18px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card { border-radius: 16px; }
.field input, .field select, .field textarea { border-radius: 10px; min-height: 44px; border-color: #D9D2CA; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.pill { border-radius: 6px; padding: 3px 8px; font-size: 12px; }
.pill.st-nieuw, .pill.st-concept { background: #EEEAE5; color: var(--muted); }
.pill.st-verstuurd, .pill.st-open, .pill.st-gepland { background: var(--info-tint); color: var(--info); }
.pill.st-akkoord, .pill.st-betaald, .pill.st-klaar { background: var(--ok-tint); color: var(--ok); }
.pill.st-afgewezen, .pill.st-late { background: var(--danger-tint); color: var(--danger); }
.pill.st-offerte, .pill.st-gefactureerd { background: var(--brand-tint); color: var(--brand-dark); }
.pill.st-warn { background: var(--warn-tint); color: var(--warn); }
.dlg { border-radius: 16px; }
.dlg.wide { width: min(760px, calc(100vw - 24px)); }
.dlg .inner { padding: 20px; }
.sub { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .f2, .f3 { grid-template-columns: 1fr; } }
.num, td.num { font-variant-numeric: tabular-nums; }
.empty-box { text-align: center; color: var(--muted); padding: 34px 16px; border: 1.5px dashed #D9D2CA; border-radius: 14px; background: rgba(255,255,255,.5); }
.empty-box b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- beheer: zijbalk ---------- */
.wk { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.wk-side { background: var(--side); color: #E9E3DD; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.wk-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.wk-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: #fff; }
.wk-brand .mark-img { background: transparent; }
.wk-brand b { font-family: var(--display); font-size: 17px; line-height: 1.1; display: block; color: #fff; }
.wk-brand small { color: #A8A099; font-size: 12px; }
.wk-sec { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A817A; padding: 14px 10px 6px; }
.wk-nav { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #CFC7C0; font-weight: 600; font-size: 15px; text-align: left; width: 100%; }
.wk-nav svg { width: 19px; height: 19px; opacity: .85; }
.wk-nav:hover { background: var(--side-2); color: #fff; }
.wk-nav[aria-current="page"] { background: rgba(249,115,22,.16); color: #FDBA74; }
.wk-nav .count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.wk-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid #3A332E; display: grid; gap: 6px; font-size: 13px; color: #A8A099; }
.wk-foot a, .wk-foot button { color: #E9E3DD; background: none; border: 0; padding: 0; text-align: left; font-weight: 600; text-decoration: none; }
.wk-main { min-width: 0; padding: 26px 30px 70px; }
.wk-mnav { display: none; }
.page-head h1 { font-size: 28px; }
.page-head .sub { width: 100%; margin-top: -10px; }
@media (max-width: 900px) {
  .wk { grid-template-columns: 1fr; }
  .wk-side { display: none; }
  .wk-mnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; background: var(--side); position: sticky; top: 0; z-index: 6; }
  .wk-mnav .wk-nav { width: auto; flex: none; white-space: nowrap; }
  .wk-main { padding: 18px 14px 60px; }
}

/* ---------- overzicht ---------- */
.kpi4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi small { color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi b { display: block; font-family: var(--display); font-size: 26px; margin-top: 2px; }
.kpi.alert b { color: var(--danger); }
@media (max-width: 900px) { .kpi4 { grid-template-columns: 1fr 1fr; } }
.pipe { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.pcol { background: #EFEBE6; border-radius: 14px; padding: 10px; min-height: 160px; }
.pcol h3 { font-size: 14px; display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-family: var(--body); font-weight: 800; }
.pcol h3 span { background: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; color: var(--muted); }
.pcard { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.pcard:hover { border-color: #D3CBC2; border-left-color: var(--brand); }
.pcard b { display: block; font-size: 14px; }
.pcard small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pcard .amt { font-weight: 800; font-size: 13px; margin-top: 6px; color: var(--ink); }
.pcol.c1 .pcard { border-left-color: #A8A29E; } .pcol.c2 .pcard { border-left-color: #3B82F6; } .pcol.c3 .pcard { border-left-color: var(--brand); } .pcol.c4 .pcard { border-left-color: #8B5CF6; } .pcol.c5 .pcard { border-left-color: #16A34A; }
.alerts { display: grid; gap: 8px; margin-bottom: 18px; }
.alert-row { display: flex; align-items: center; gap: 10px; background: var(--warn-tint); color: #78350F; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.alert-row svg { width: 18px; height: 18px; flex: none; }
.alert-row .btn { margin-left: auto; }

/* ---------- tabellen ---------- */
.table-wrap { border-radius: 14px; }
th { background: #FAF8F5; }
tr.click:hover td { background: #FFF8F1; cursor: pointer; }
td .sub { margin-top: 2px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chipf { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--muted); }
.chipf[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { min-height: 40px; padding: 0 12px; border: 1px solid #D9D2CA; border-radius: 10px; background: #fff; min-width: 240px; }

/* ---------- aanvragen ---------- */
.req { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.req.is-new { border-left: 4px solid var(--brand); }
.req h3 { font-size: 17px; font-family: var(--body); font-weight: 800; }
.req p { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.5; }
.req .acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.linkbox { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 16px; flex-wrap: wrap; }
.linkbox code { font-size: 13px; background: var(--ground); border-radius: 6px; padding: 6px 8px; flex: 1; min-width: 200px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .req { grid-template-columns: 1fr; } .req .acts { flex-direction: row; flex-wrap: wrap; } }

/* ---------- offerte / factuur editor ---------- */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.doc-card + .doc-card { margin-top: 14px; }
.doc-card h2 { font-size: 17px; margin-bottom: 12px; }
.lines { width: 100%; border-collapse: separate; border-spacing: 0; }
.lines th { background: none; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.lines td { padding: 6px; border-bottom: 1px solid #F1EDE8; vertical-align: middle; }
.lines input, .lines select { width: 100%; min-height: 38px; border: 1px solid transparent; border-radius: 8px; padding: 0 8px; background: transparent; }
.lines input:hover, .lines select:hover { border-color: var(--line); }
.lines input:focus, .lines select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-tint); }
.lines .c-desc { width: auto; } .lines .c-qty { width: 76px; } .lines .c-unit { width: 74px; } .lines .c-price { width: 104px; } .lines .c-vat { width: 74px; } .lines .c-amt { width: 104px; text-align: right; font-weight: 700; white-space: nowrap; } .lines .c-x { width: 36px; }
.lines td.c-amt { padding-right: 10px; }
.lines input.r { text-align: right; }
.lines tr.head td { background: #FBF8F4; }
.lines tr.head input { font-weight: 800; color: var(--brand-dark); }
.lines .x { width: 32px; height: 32px; border: 0; background: none; color: #A8A099; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.lines .x:hover { background: var(--danger-tint); color: var(--danger); }
.lines .x svg { width: 16px; height: 16px; }
.drag { cursor: grab; color: #C5BDB5; width: 20px; }
.line-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tot { display: grid; gap: 6px; font-size: 15px; }
.tot div { display: flex; justify-content: space-between; }
.tot .big { font-family: var(--display); font-size: 24px; font-weight: 700; border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 4px; }
.side-acts { display: grid; gap: 8px; }
.side-acts .btn { justify-content: flex-start; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 40px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--brand); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; margin-bottom: 8px; }
.back svg { width: 18px; height: 18px; }
.statusbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

/* boorcalculator */
.calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-res { background: var(--brand-tint); border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px; }
.calc-res b { font-family: var(--display); font-size: 22px; color: var(--brand-dark); }
.calc-res small { display: block; color: #7C2D12; }
.dia { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dia button { min-width: 64px; min-height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 800; }
.dia button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- planning ---------- */
.plan-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .plan-wrap { grid-template-columns: 1fr; } }
.plan { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.plan table { table-layout: fixed; min-width: 900px; }
.plan th, .plan td { border-right: 1px solid #F1EDE8; padding: 8px; }
.plan th:first-child, .plan td:first-child { width: 150px; position: sticky; left: 0; background: #fff; z-index: 2; }
.plan th.today { color: var(--brand-dark); background: #FFF7ED; }
.plan td.today { background: #FFFBF6; }
.plan td.drop { background: var(--brand-tint); outline: 2px dashed var(--brand); outline-offset: -3px; }
.plan .who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.plan .dot { width: 10px; height: 10px; border-radius: 5px; flex: none; }
.plan .who small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.pchip { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--brand); border-radius: 8px; background: #FFF4EA; padding: 6px 8px; margin-bottom: 6px; font-size: 13px; cursor: grab; }
.pchip b { display: block; font-size: 13px; line-height: 1.2; }
.pchip small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.pchip.dragging { opacity: .4; }
.pchip.done { opacity: .6; }
.padd { width: 100%; min-height: 30px; border: 1px dashed #DDD5CC; border-radius: 8px; background: transparent; color: #B5ADA5; display: flex; align-items: center; justify-content: center; opacity: 0; }
.plan td:hover .padd, .padd:focus { opacity: 1; }
.padd svg { width: 16px; height: 16px; }
.todo { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.todo h3 { font-size: 15px; margin-bottom: 8px; font-family: var(--body); font-weight: 800; }
.todo .pchip { background: #fff; border: 1px solid var(--line); border-left: 4px solid #A8A29E; }
.weeknav { display: flex; align-items: center; gap: 6px; }
.weeknav b { min-width: 170px; text-align: center; }

/* ---------- voorraad ---------- */
.stock td input { width: 64px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; text-align: right; }
.stock td.low input:first-child { border-color: #FCA5A5; background: #FEF2F2; color: var(--danger); font-weight: 800; }
.stock .pair { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- inloggen ---------- */
.wk-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(800px 500px at 100% 0%, rgba(249,115,22,.22), transparent 60%), var(--side); }
.wk-login form { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.wk-login .kh-logo { color: var(--ink); margin-bottom: 18px; }
.wk-login h1 { font-size: 26px; margin-bottom: 4px; }
.wk-login p.sub { margin: 0 0 18px; }

/* ---------- telefoon-app ---------- */
.ph { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: 92px; }
.ph-head { background: var(--side); color: #fff; padding: calc(env(safe-area-inset-top) + 16px) 18px 18px; border-radius: 0 0 22px 22px; }
.ph-head .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ph-head small { color: #B8AEA5; font-weight: 600; font-size: 13px; }
.ph-head h1 { font-size: 24px; color: #fff; }
.ph-head .ava { width: 40px; height: 40px; border-radius: 20px; border: 0; color: #fff; font-weight: 800; background: var(--brand); }
.ph-main { padding: 16px; display: grid; gap: 12px; }
.daysw { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; }
.daysw button { flex: none; width: 50px; height: 58px; border-radius: 12px; border: 0; background: var(--side-2); color: #CFC7C0; font-weight: 700; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.daysw button b { font-size: 18px; color: #fff; }
.daysw button[aria-current="date"] { background: var(--brand); color: #fff; }
.run { display: flex; align-items: center; gap: 12px; background: var(--brand); color: #fff; border-radius: 16px; padding: 14px 16px; border: 0; width: 100%; text-align: left; }
.run .pulse { width: 12px; height: 12px; border-radius: 6px; background: #fff; animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .3; } }
.run b { display: block; font-size: 15px; }
.run .t { margin-left: auto; font-family: var(--display); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.jcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; width: 100%; text-align: left; }
.jcard .tm { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--brand-dark); }
.jcard h3 { font-size: 18px; font-family: var(--body); font-weight: 800; }
.jcard .ln { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.jcard .ln svg { width: 16px; height: 16px; flex: none; }
.jcard.done { opacity: .7; }
.ph-tabs { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px); z-index: 10; }
.ph-tabs button { height: 56px; border: 0; background: none; color: #9A918A; font-weight: 700; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.ph-tabs button[aria-current="page"] { color: var(--brand-dark); }
.ph-sec { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.ph-sec h2 { font-size: 16px; font-family: var(--body); font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.timerbox { text-align: center; padding: 18px 16px; }
.timerbox .big { font-family: var(--display); font-size: 52px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; }
.timerbox .sub { margin: 4px 0 14px; }
.bigbtn { width: 100%; min-height: 60px; border: 0; border-radius: 14px; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; }
.bigbtn svg { width: 22px; height: 22px; }
.bigbtn.go { background: var(--ok); color: #fff; }
.bigbtn.stop { background: var(--danger); color: #fff; }
.bigbtn.main { background: var(--brand); color: #fff; }
.bigbtn.out { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a, .quick button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.quick svg { width: 18px; height: 18px; }
.scope { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.scope li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.scope li.h { font-weight: 800; color: var(--brand-dark); border: 0; padding-top: 6px; }
.mat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F1EDE8; }
.mat:last-child { border-bottom: 0; }
.mat small { display: block; color: var(--muted); font-size: 12px; }
.mat small.low { color: var(--danger); font-weight: 700; }
.step { display: flex; align-items: center; gap: 6px; }
.step button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 20px; font-weight: 700; }
.step input { width: 58px; height: 40px; text-align: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; }
.mat.used { background: #FFF7ED; margin: 0 -8px; padding: 8px; border-radius: 10px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.photos .add { aspect-ratio: 1; border: 1.5px dashed #D3CBC2; border-radius: 10px; background: #FAF8F5; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 13px; }
.sigpad { width: 100%; height: 180px; border: 1.5px dashed #CFC7BE; border-radius: 12px; background: #fff; touch-action: none; display: block; }
.ph textarea { width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ph-back { color: #fff; background: none; border: 0; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; padding: 0; margin-bottom: 10px; }
.ph-back svg { width: 18px; height: 18px; }
.done-badge { display: flex; align-items: center; gap: 8px; background: var(--ok-tint); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-weight: 800; }
.busbar { display: flex; gap: 6px; overflow-x: auto; }
.busbar button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.busbar button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- klantpagina's: aanvraag en document ---------- */
.pub { min-height: 100vh; background: var(--ground); }
.pub-head { background: var(--brand); color: #fff; padding: 26px 18px 70px; }
.pub-head .in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.pub-head img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.pub-head h1 { font-size: 24px; color: #fff; }
.pub-head small { opacity: .9; }
.pub-body { max-width: 760px; margin: -50px auto 0; padding: 0 14px 50px; }
.pub-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 14px 40px -24px rgba(31,27,24,.45); }
.pub-card + .pub-card { margin-top: 14px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kinds button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }
.kinds button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.thanks { text-align: center; padding: 30px 10px; }
.thanks .ok { width: 64px; height: 64px; border-radius: 32px; background: var(--ok-tint); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.thanks .ok svg { width: 32px; height: 32px; }
.pub-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.pub-foot a { color: var(--muted); }
.dv-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dv-top .k { font-size: 12px; font-weight: 800; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.dv-meta { display: grid; grid-template-columns: auto auto; gap: 2px 14px; font-size: 14px; }
.dv-meta span { color: var(--muted); }
.dv-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.dv-lines th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; padding: 8px 6px; border-bottom: 2px solid var(--ink); background: none; }
.dv-lines td { padding: 9px 6px; border-bottom: 1px solid #F1EDE8; }
.dv-lines tr.h td { font-weight: 800; color: var(--brand-dark); padding-top: 14px; }
.dv-lines .r { text-align: right; white-space: nowrap; }
.dv-tot { margin: 14px 0 0 auto; max-width: 300px; }
.accept { border: 2px solid var(--brand); }
.accept h2 { font-size: 20px; margin-bottom: 6px; }
.state { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.state.ok { background: var(--ok-tint); color: var(--ok); }
.state.bad { background: var(--danger-tint); color: var(--danger); }
.state svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 560px) { .dv-lines .hide-s { display: none; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.udot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; flex: none; }
.show-s { display: none; } @media (max-width: 560px) { .show-s { display: block; } }
.sig-img { max-width: 220px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-top: 4px; }
.wk { background: linear-gradient(90deg, var(--side) 0 236px, var(--ground) 236px); }
@media (max-width: 900px) { .wk { background: var(--ground); } }
.field .grow select, .field .grow { width: 100%; min-width: 0; }
.grid-2 > *, .stack > *, .doc-grid > * { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.doc-card > textarea { width: 100%; min-height: 90px; border: 1px solid #D9D2CA; border-radius: 10px; padding: 10px 12px; resize: vertical; }
.side-acts .btn { text-align: left; }
.lines textarea { width: 100%; min-height: 38px; border: 1px solid transparent; border-radius: 8px; padding: 8px; background: transparent; resize: none; overflow: hidden; line-height: 1.35; display: block; }
.lines textarea:hover { border-color: var(--line); }
.lines textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-tint); }
.wo { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
@media (max-width: 700px) { .wo { grid-template-columns: 1fr; } }
.todo-strip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.todo-strip h3 { font-size: 14px; font-family: var(--body); font-weight: 800; margin-right: 6px; }
.todo-strip .pchip { width: auto; max-width: 280px; margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid #A8A29E; }
.plan table { min-width: 1000px; }
.plan th.we, .plan td.we { width: 84px; background: #FBFAF8; }
.pchip b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pchip small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub .accept { margin-top: 0; }
.check input { flex: none; }
