/* UX-2: Claude b3a603b portal presentation, using the approved UX-1 tokens. */
:root{
--kp-canvas:var(--kp-background);--kp-sunken:var(--kp-surface-muted);--kp-line:var(--kp-border);--kp-line-strong:var(--kp-border-control);
--kp-ink:var(--kp-text-primary);--kp-ink-2:var(--kp-text-secondary);--kp-ink-3:var(--kp-text-muted);
--kp-green-900:#123a23;--kp-green-800:var(--kp-brand-green-hover);--kp-green-700:var(--kp-brand-green);--kp-green-500:#4e8a4f;--kp-green-100:#dfeadb;--kp-green-50:var(--kp-brand-soft);
--kp-attention-ink:var(--kp-warning-text);--kp-attention-bg:var(--kp-warning-bg);--kp-positive-bg:var(--kp-success-bg);--kp-positive-ink:var(--kp-success-text);--kp-progress-ink:var(--kp-progress-text);--kp-progress:#3c6182;--kp-neutral-ink:var(--kp-neutral-text);--kp-danger:var(--kp-error);--kp-danger-ink:var(--kp-error-text);--kp-danger-bg:var(--kp-error-bg);
--kp-font-display:Charter,"Bitstream Charter","Iowan Old Style","Sitka Text",Cambria,Georgia,serif;--kp-text-xs:12.5px;--kp-text-sm:14px;--kp-text-base:16px;--kp-text-lg:18px;--kp-text-xl:22px;--kp-text-2xl:clamp(26px,2.4vw + 14px,34px);--kp-leading:1.55;
--kp-radius-sm:var(--kp-radius-control);--kp-radius-md:var(--kp-radius-card);--kp-radius-lg:var(--kp-radius-panel);--kp-control:var(--kp-control-height);--kp-control-sm:var(--kp-control-compact);--kp-shadow-1:0 1px 2px rgba(26,35,28,.05);--kp-shadow-3:0 24px 60px -20px rgba(18,58,35,.35);
}
.kp-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.kp-empty{display:grid;justify-items:start;gap:6px;padding:24px;border:1px dashed var(--kp-line-strong);border-radius:var(--kp-radius-md);color:var(--kp-ink-2);background:transparent}
.kp-empty strong{color:var(--kp-ink);font-weight:600}
.kp-skeleton{display:block;height:12px;border-radius:6px;background:var(--kp-sunken)}
/* ==========================================================================
   Mi Krin Presi — klantportaal
   Bouwt op UX-1 foundation.css. Karakter: rustig, persoonlijk, ruim.
   ========================================================================== */
:root{
  --jungle:var(--kp-green-700); --jungle-2:var(--kp-green-800); --leaf:var(--kp-green-700); --lime:var(--kp-green-500);
  --mist:var(--kp-canvas); --mist-2:var(--kp-green-50); --paper:var(--kp-surface); --ink:var(--kp-ink); --muted:var(--kp-ink-2); --line:var(--kp-line);
  --sun:var(--kp-attention); --sun-soft:var(--kp-attention-bg); --sun-ink:var(--kp-attention-ink); --red:var(--kp-danger); --red-soft:var(--kp-danger-bg);
  --radius:var(--kp-radius-md); --radius-sm:var(--kp-radius-sm);
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--kp-canvas);color:var(--kp-ink);font-family:var(--kp-font);font-size:var(--kp-text-base);line-height:var(--kp-leading);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3{margin:0;line-height:1.2;text-wrap:balance;color:var(--kp-ink)}
h1{font-family:var(--kp-font-display);font-size:var(--kp-text-2xl);font-weight:600;letter-spacing:-.01em;line-height:1.12}
h2{font-size:var(--kp-text-lg);font-weight:650}
h3{font-size:16px;font-weight:650}
p{margin:0}
a{color:var(--kp-green-700)}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--kp-focus);outline-offset:3px;box-shadow:0 0 0 2px #fff;border-radius:8px}
[hidden]{display:none!important}

.demo{background:var(--kp-attention-bg);color:var(--kp-attention-ink);font-size:var(--kp-text-sm);text-align:center;padding:8px 16px}

/* ---------- Inloggen ---------- */
.login{position:relative;min-height:100dvh;display:grid;place-items:center;padding:104px 16px 40px;background:var(--kp-canvas)}
.login-page-brand{position:absolute;top:24px;left:clamp(20px,5vw,80px);display:flex;align-items:center;gap:12px;color:var(--kp-ink);font-size:16px;font-weight:700;line-height:1.2}
.login-page-brand img{width:48px;height:48px;object-fit:contain;flex:none}
.login-page-brand small{display:block;margin-top:3px;color:var(--kp-ink-2);font-size:12px;font-weight:500;letter-spacing:.04em}
.login-shell{width:min(420px,100%);min-width:0}
.login-card{width:min(420px,100%);min-width:0;background:var(--kp-surface);border:1px solid var(--kp-line);border-radius:var(--kp-radius-lg);padding:32px 28px;box-shadow:var(--kp-shadow-1);display:grid;gap:18px}
.login-card>*{min-width:0}
.login-card .lead{overflow-wrap:anywhere}
.login-card .logo{height:56px;width:auto;justify-self:start}
.login-card h1{font-size:28px}
.login-shell .login-card h1{text-align:center}
.login-card .field+.err{margin-top:-8px}
.login-card .err:empty{display:none}
.login-code-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.login-code-actions .link-btn{min-height:44px}
.login-card p.lead{color:var(--kp-ink-2)}
.login-card .login-help{color:var(--kp-ink-2);font-size:var(--kp-text-base);font-weight:400;line-height:var(--kp-leading)}
@media(max-width:600px){.login{padding-top:112px}.login-page-brand{top:20px;left:20px}.login-page-brand img{width:44px;height:44px}}

/* ---------- Formulier ---------- */
.field{display:grid;gap:6px;font-weight:600;font-size:var(--kp-text-sm);color:var(--kp-ink)}
.field input,.field select,.field textarea{width:100%;min-height:var(--kp-control);padding:9px 12px;border:1px solid var(--kp-line-strong);border-radius:var(--kp-radius-sm);background:var(--kp-surface);font-weight:400;font-size:var(--kp-text-base);transition:border-color .15s,box-shadow .15s}
.field select{appearance:none;-webkit-appearance:none;padding-right:38px;background:var(--kp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23535C52' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--kp-green-500);box-shadow:0 0 0 3px rgba(78,138,79,.18)}
.field textarea{min-height:112px;resize:vertical;line-height:1.5}
.field .help{font-weight:400;font-size:var(--kp-text-sm);color:var(--kp-ink-2)}
.code-inputs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;min-width:0;max-width:100%}
.code-inputs input{width:100%;min-width:0;max-width:100%;text-align:center;font-size:22px;font-weight:600;min-height:52px;padding:0;border:1px solid var(--kp-line-strong);border-radius:var(--kp-radius-sm);background:var(--kp-surface);font-variant-numeric:tabular-nums}
.code-inputs input:focus{outline:none;border-color:var(--kp-green-500);box-shadow:0 0 0 3px rgba(78,138,79,.18)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px;font-weight:500}
.check input{width:20px;height:20px;margin-top:2px;accent-color:var(--kp-green-700)}
.quote-document .quote-acceptance-check{display:block;line-height:1.6;margin-top:12px}
.quote-document .quote-acceptance-check input{vertical-align:middle;margin:0 10px 0 0}
.err{color:var(--kp-danger-ink);font-weight:500;font-size:var(--kp-text-sm);min-height:1.2em}

/* ---------- Knoppen (één hiërarchie) ----------
   .btn          = primair
   .btn.ghost    = secundair
   .link-btn     = tertiair
   .btn.small    = compacte variant (zelfde vorm) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--kp-control);padding:0 18px;border-radius:var(--kp-radius-sm);border:1px solid transparent;font-weight:600;font-size:15px;line-height:1.2;cursor:pointer;text-decoration:none;background:var(--kp-green-700);color:#fff;white-space:nowrap;transition:background .15s,border-color .15s}
.btn:hover{background:var(--kp-green-800)}
.btn.ghost{background:var(--kp-surface);color:var(--kp-ink);border-color:var(--kp-line-strong)}
.btn.ghost:hover{background:var(--kp-sunken)}
.btn.small{min-height:var(--kp-control-sm);padding:0 12px;font-size:var(--kp-text-sm)}
.btn.wa{background:var(--kp-surface);color:var(--kp-ink);border-color:var(--kp-line-strong)}
.btn.wa:hover{background:var(--kp-sunken)}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.link-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:4px 0;color:var(--kp-green-700);font-weight:600;cursor:pointer;text-decoration:none}
.link-btn:hover{color:var(--kp-green-900);text-decoration:none}
.site-link{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:var(--kp-radius-sm);color:var(--kp-ink-2);font-weight:500;font-size:var(--kp-text-sm);text-decoration:none}
.site-link:hover{background:var(--kp-sunken);color:var(--kp-ink)}
.sheet .site-link{padding:14px 12px}
.terug-site{display:inline-flex;align-items:center;gap:6px;justify-self:start;color:var(--kp-ink-2);font-weight:500;font-size:var(--kp-text-sm);text-decoration:none}
.terug-site:hover{color:var(--kp-ink)}
.fine{font-size:var(--kp-text-sm);color:var(--kp-ink-2)}
.card .link-btn,.card>.btn{justify-self:start}

/* ---------- App-shell ---------- */
.app{display:grid;grid-template-columns:clamp(264px,22vw,308px) minmax(0,1fr);min-height:calc(100dvh - 0px)}
.side{align-self:start;position:sticky;top:0px;height:calc(100dvh - 0px);overflow:auto;background:var(--kp-surface);border-right:1px solid var(--kp-line);padding:20px 14px 16px;display:flex;flex-direction:column;gap:6px}
.side .brand{display:flex;align-items:center;gap:10px;padding:0 6px 14px;font-weight:700;font-size:17px;letter-spacing:-.005em;color:var(--kp-ink)}
.side .brand img{height:40px;width:auto}
.side .brand small{display:block;font-size:12px;font-weight:500;color:var(--kp-ink-2);letter-spacing:0}
.nav{display:grid;gap:2px}
.nav-group{margin:14px 12px 4px;font-size:12px;font-weight:600;color:var(--kp-ink-3);letter-spacing:.02em}
.nav button{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:8px 12px;border:0;border-radius:var(--kp-radius-sm);background:transparent;text-align:left;font-weight:500;font-size:15px;color:var(--kp-ink);cursor:pointer}
.nav button:hover{background:var(--kp-sunken)}
.nav button svg{color:var(--kp-ink-2)}
.nav button svg.kp-request-palm,svg.kp-request-palm{color:var(--kp-green-700)}
.nav button[aria-current="page"]{background:var(--kp-green-100);color:var(--kp-green-900);font-weight:600}
.nav button[aria-current="page"] svg{color:var(--kp-green-700)}
@media(min-width:901px){.side .nav button svg{color:var(--kp-green-700)}}
.dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:var(--kp-attention);box-shadow:0 0 0 2px var(--kp-surface);flex-shrink:0}
.dot[hidden]{display:none}
.nav .dot{margin-left:auto}
.side .me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px;border-radius:var(--kp-radius-sm);border:1px solid var(--kp-line);font-size:var(--kp-text-sm)}
.side .me-info{flex:1;min-width:0;overflow-wrap:anywhere;text-align:left}
.side .me-info strong{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side .me-info span{color:var(--kp-ink-2);font-size:13px}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--kp-green-100);color:var(--kp-green-900);display:grid;place-items:center;font-weight:700;flex-shrink:0}
.main{padding:28px clamp(20px,3.2vw,48px) 96px;display:grid;gap:20px;align-content:start;max-width:1080px;width:100%}
.topline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.erf-switch{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:var(--kp-control-sm);background:var(--kp-surface);border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm);padding:0 10px;font-size:var(--kp-text-sm);font-weight:500;color:var(--kp-ink-2)}
.erf-switch svg{color:var(--kp-green-700)}
.erf-switch select{appearance:none;-webkit-appearance:none;border:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23535C52' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center;font-weight:600;color:var(--kp-ink);padding:6px 22px 6px 0;cursor:pointer;max-width:240px}
.erf-switch strong{color:var(--kp-ink);font-weight:600}

/* Paginakop */
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px}
.page-head>div{display:grid;gap:6px;min-width:0}
.page-head .meta{max-width:62ch}

/* ---------- Kaarten & lijsten ---------- */
.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.card{background:var(--kp-surface);border:1px solid var(--kp-line);border-radius:var(--kp-radius-md);padding:22px;display:grid;gap:12px;align-content:start;min-width:0}
.card.flat{border-color:var(--kp-line)}
.card .label,.label{font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--kp-ink-2)}
.big{font-size:var(--kp-text-xl);font-weight:650;line-height:1.2;color:var(--kp-ink)}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.row.spread{justify-content:space-between}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}

/* Status: tekst in zacht vlak, géén dot (dot = notificatie) */
.pill{display:inline-flex;align-items:center;min-height:24px;font-size:var(--kp-text-xs);font-weight:600;line-height:1.3;border-radius:999px;padding:2px 9px;background:var(--kp-positive-bg);color:var(--kp-positive-ink);white-space:nowrap}
.pill.sun{background:var(--kp-attention-bg);color:var(--kp-attention-ink)}
.pill.blue{background:var(--kp-progress-bg);color:var(--kp-progress-ink)}
.pill.grey{background:var(--kp-neutral-bg);color:var(--kp-neutral-ink)}
.pill.red{background:var(--kp-danger-bg);color:var(--kp-danger-ink)}
.pill.outline{background:transparent;color:var(--kp-ink-2);box-shadow:inset 0 0 0 1px var(--kp-line-strong)}

.notice{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--kp-radius-md);background:var(--kp-attention-bg);color:var(--kp-attention-ink);border:0}
.notice h3{color:inherit;font-size:15px}
.notice .ic{flex-shrink:0;color:inherit;margin-top:1px}
.notice.storm{background:var(--kp-progress-bg);color:var(--kp-progress-ink)}
.notice.storm .ic{color:var(--kp-progress)}
.notice .link-btn{color:inherit}
.weather-home-notice{position:relative;padding-right:58px}
.weather-home-notice,.weather-home-notice h3,.weather-home-notice p{color:var(--kp-ink)}
.weather-home-content{display:grid;gap:10px;min-width:0}
.weather-home-content .link-btn{justify-self:start;color:var(--kp-green-700)}
.weather-home-dismiss{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--kp-radius-sm);background:transparent;color:var(--kp-ink-2);font:inherit;font-size:28px;line-height:1;cursor:pointer}
.weather-home-dismiss:hover{background:rgba(0,0,0,.08)}
.weather-home-dismiss:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.weather-detail-heading{display:flex;align-items:center;gap:10px}
.weather-detail-heading>span{display:inline-flex;flex:none;color:var(--kp-progress)}
.weather-detail-action{margin-top:0}
.weather-detail-disclaimer{font-style:italic}
.list{display:grid}
.list>*{padding:14px 0;border-top:1px solid var(--kp-line)}
.list>*:first-child{border-top:0;padding-top:0}
.list>*:last-child{padding-bottom:0}
.item-title{font-weight:600}
.meta{font-size:var(--kp-text-sm);color:var(--kp-ink-2)}
.inc{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.inc li{display:grid;grid-template-columns:22px 1fr;gap:8px}
.inc svg{color:var(--kp-green-700);margin-top:3px}
.price{font-variant-numeric:tabular-nums}

/* Objectrij: icoon (wat) · titel + meta · status (waar) · dot (nieuw) · actie */
.obj-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;min-width:0}
.obj-row .obj-copy{display:grid;gap:2px;min-width:0}
.obj-row .obj-copy .item-title{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.obj-row .obj-end{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.quote-list .obj-end{min-width:0;max-width:100%;flex-wrap:wrap;gap:8px}
.quote-list .obj-end .btn{min-width:0;flex:0 1 auto}
.obj-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--kp-radius-sm);background:var(--kp-green-50);color:var(--kp-green-700);flex-shrink:0}
button.obj-row{width:100%;border:0;background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer;border-radius:var(--kp-radius-sm);margin:0;padding-inline:8px;margin-inline:-8px;width:calc(100% + 16px)}
button.obj-row:hover{background:var(--kp-sunken)}
.obj-chevron{color:var(--kp-ink-3)}

/* ---------- Home ---------- */
.home-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-summary-card{position:relative;display:grid;grid-auto-rows:max-content;align-content:start;gap:4px;min-width:0;padding:16px;background:var(--kp-surface);border:1px solid var(--kp-line);border-radius:var(--kp-radius-md);text-align:left;color:var(--kp-ink);cursor:pointer;white-space:normal;overflow-wrap:break-word;transition:border-color .15s,background .15s}
.home-summary-card:hover{border-color:var(--kp-line-strong);background:#FDFCF9}
.home-summary-label{display:flex;align-items:center;gap:8px;font-size:var(--kp-text-sm);font-weight:500;color:var(--kp-ink-2);line-height:1.3}
.home-summary-label svg{flex-shrink:0;color:var(--kp-green-700)}
.home-summary-label .dot{margin-left:auto}
.home-summary-value{font-size:26px;font-weight:650;line-height:1.15;color:var(--kp-ink);margin-top:6px;font-variant-numeric:tabular-nums}
.home-summary-note{font-size:var(--kp-text-sm);color:var(--kp-ink-2);line-height:1.4}
.home-summary-card.is-quiet .home-summary-value{color:var(--kp-ink-3)}
.home-attention{gap:4px;padding:18px 20px}
.home-attention h2{font-size:var(--kp-text-lg);margin-bottom:6px}
.home-attention>p.meta>.kp-icon{color:var(--kp-green-700)}
html[data-theme="dark"] .home-attention>p.meta>.kp-icon{color:var(--kp-green-500)}
.home-attention-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 8px;margin:0 -8px;border:0;border-radius:var(--kp-radius-sm);background:transparent;color:var(--kp-ink);font:inherit;text-align:left;cursor:pointer;min-width:0;width:calc(100% + 16px);white-space:normal;overflow-wrap:break-word}
.home-attention-item:hover{background:var(--kp-sunken)}
.home-attention-item .att-copy{display:grid;gap:1px;min-width:0}
.home-attention-item .att-copy strong{font-weight:600;display:flex;align-items:center;gap:8px}
.home-attention-item .att-copy span{font-size:var(--kp-text-sm);color:var(--kp-ink-2)}
.home-attention-item>svg{color:var(--kp-ink-3)}
.home-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start}
.home-stack{display:grid;gap:16px;min-width:0}
.home-detail .big{font-size:20px}
.home-visit-date{display:flex;align-items:center;gap:9px;margin-top:9px;min-width:0}
.home-detail .home-card-head .big{margin-top:9px}
.home-visit-date .kp-icon{flex:none;color:var(--kp-green-700)}
html[data-theme="dark"] body[data-ux-surface="portal"] .home-visit-date .kp-icon{color:var(--kp-green-500)}
.planning-portal-item .home-visit-date{margin-top:0}
.contact-card{display:flex;flex-wrap:wrap;align-items:center;gap:14px 16px;padding:18px 20px;border-radius:var(--kp-radius-md);background:var(--kp-green-50);border:1px solid var(--kp-green-100)}
.contact-card img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#fff}
.contact-card .contact-copy{flex:1;min-width:200px;display:grid;gap:2px}

/* ---------- Foto's ---------- */
.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shot{position:relative;border:0;padding:0;border-radius:var(--kp-radius-sm);overflow:hidden;cursor:zoom-in;background:var(--kp-sunken);aspect-ratio:4/3}
.shot img{width:100%;height:100%;object-fit:cover}
.shot span{position:absolute;left:8px;top:8px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:6px;background:rgba(255,255,255,.92);color:var(--kp-ink)}
.shot.voor span{background:rgba(26,35,28,.78);color:#fff}
.gone{border:1px dashed var(--kp-line-strong);border-radius:var(--kp-radius-sm);padding:18px;color:var(--kp-ink-2);font-size:var(--kp-text-sm);text-align:center}
.timeline{display:grid;gap:16px}
.beurt-notitie{margin-top:8px;padding:12px 14px;background:var(--kp-sunken);border-radius:var(--kp-radius-sm);color:var(--kp-ink);overflow-wrap:anywhere}
.beurt-notitie strong{display:block;margin-bottom:4px;font-size:13px;font-weight:600;color:var(--kp-ink-2)}
.beurt-notitie p{margin:0;line-height:1.6;white-space:pre-line}
.beurt{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:24px}
@media (max-width:760px){.beurt{grid-template-columns:1fr}}

/* ---------- Offerteregels ---------- */
.lines{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.lines td{padding:10px 0;border-top:1px solid var(--kp-line)}
.lines td:last-child{text-align:right;white-space:nowrap}
.lines tr.total td{font-weight:700;border-top:2px solid var(--kp-ink)}

/* ---------- Keuzechips ---------- */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:40px;border:1px solid var(--kp-line-strong);background:var(--kp-surface);border-radius:var(--kp-radius-sm);padding:8px 14px;font-weight:500;cursor:pointer}
.chip:hover{background:var(--kp-sunken)}
.chip[aria-pressed="true"]{background:var(--kp-green-50);border-color:var(--kp-green-700);color:var(--kp-green-900);box-shadow:inset 0 0 0 1px var(--kp-green-700);font-weight:600}

/* ---------- Schakelaar ---------- */
.switch{display:flex;align-items:center;justify-content:space-between;gap:16px}
.toggle{position:relative;width:48px;height:28px;flex-shrink:0;border:0;border-radius:999px;background:var(--kp-line-strong);cursor:pointer;transition:background .2s}
.toggle::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.toggle[aria-checked="true"]{background:var(--kp-green-700)}
.toggle[aria-checked="true"]::after{transform:translateX(20px)}

/* ---------- Upload ---------- */
.uploads{display:flex;flex-wrap:wrap;gap:8px}
.uploads img{width:80px;height:80px;object-fit:cover;border-radius:var(--kp-radius-sm)}
.request-photo-preview{position:relative;width:80px;height:80px}
.request-photo-preview button{position:absolute;top:0;right:0;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:0 var(--kp-radius-sm) 0 var(--kp-radius-sm);background:rgba(0,0,0,.72);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.request-photo-preview button:focus-visible{outline:2px solid var(--kp-focus);outline-offset:2px}
.request-photo-preview button:disabled{cursor:default;opacity:.6}
.request-photo-confirm{flex-basis:100%;min-height:44px;align-items:center;margin:2px 0 4px}
.upload-btn{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:var(--kp-control);border:1px dashed var(--kp-line-strong);border-radius:var(--kp-radius-sm);padding:0 16px;cursor:pointer;font-weight:600;color:var(--kp-ink);background:var(--kp-surface);justify-self:start}
.upload-btn:hover{background:var(--kp-sunken)}
.upload-btn input{position:absolute;width:1px;height:1px;opacity:0}
.customer-photo-heading{margin:0 0 12px;line-height:1.5}
.customer-photo-add{max-width:100%;min-height:44px;text-align:left;white-space:normal}
.customer-photo-add:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.customer-photo-add[hidden]{display:none}
.customer-photo-selection{display:grid;gap:14px;margin:16px 0}
.customer-photo-selection[hidden]{display:none}
.customer-photo-selection .fine{margin:0;line-height:1.5}
.customer-photo-recovery [data-photo-state]{display:block;margin:12px 0 0;line-height:1.5}

/* ---------- Klachten / meldingen ---------- */
.klacht-item{border-top:1px solid var(--kp-line);padding:18px 0}
.klacht-item:first-child{border-top:0;padding-top:0}
.klacht-item:last-child{padding-bottom:0}
.klacht-item summary{cursor:pointer;list-style:none;display:grid;gap:6px}
.klacht-item summary::-webkit-details-marker{display:none}
.klacht-item summary::after{content:"Details tonen";color:var(--kp-green-700);font-size:13px;font-weight:600}
.klacht-item[open] summary::after{content:"Details verbergen"}
.klacht-inhoud{display:grid;gap:16px;margin-top:16px}
.klacht-vak{display:grid;gap:10px;padding:16px;border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm);background:#FCFBF8}
.klacht-vak h3{font-size:15px}
.klacht-tekst{white-space:pre-wrap;overflow-wrap:anywhere}
.klacht-fotogrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}
.klacht-fotogrid .shot{width:100%;max-width:160px}
.klacht-fotogrid .shot span{max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.klacht-events{list-style:none;margin:0;padding:0;display:grid;gap:0;position:relative}
.klacht-events li{position:relative;padding:0 0 14px 22px}
.klacht-events li::before{content:"";position:absolute;left:4px;top:7px;width:8px;height:8px;border-radius:50%;background:var(--kp-surface);box-shadow:inset 0 0 0 2px var(--kp-line-strong)}
.klacht-events li::after{content:"";position:absolute;left:7.5px;top:18px;bottom:2px;width:1px;background:var(--kp-line)}
.klacht-events li:last-child{padding-bottom:0}
.klacht-events li:last-child::after{display:none}
.klacht-events time{display:block;font-size:13px;color:var(--kp-ink-2)}
.klacht-events p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px}

/* ---------- Overlay / lightbox / toast ---------- */
.overlay{position:fixed;inset:0;z-index:50;background:rgba(18,26,20,.66);display:grid;place-items:center;padding:16px}
.lightbox{width:min(900px,100%);display:grid;gap:12px}
.lightbox img{width:100%;border-radius:var(--kp-radius-md);max-height:75dvh;object-fit:contain;background:#111813}
.lightbox .row{justify-content:center}
.lightbox .seg{display:inline-flex;background:#fff;border-radius:var(--kp-radius-sm);padding:4px;max-width:100%;overflow-x:auto}
.lightbox .seg button{border:0;background:transparent;border-radius:8px;padding:8px 16px;font-weight:600;cursor:pointer}
.lightbox .seg button[aria-pressed="true"]{background:var(--kp-green-700);color:#fff}
.close{position:fixed;top:16px;right:16px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;cursor:pointer;display:grid;place-items:center}
.toast{position:fixed;left:50%;bottom:32px;transform:translateX(-50%);z-index:60;background:var(--kp-ink);color:#fff;padding:12px 18px;border-radius:var(--kp-radius-sm);font-weight:500;box-shadow:var(--kp-shadow-2);max-width:calc(100% - 32px)}
.toast.wacht{width:min(380px,calc(100% - 32px));background:var(--kp-green-800);animation:wachtIn .35s ease;text-align:left;padding:12px 14px 8px}
.wacht-tekst{min-height:20px}.wacht-tekst span{display:block;animation:tekstIn .45s ease both}
@keyframes tekstIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.wacht .gazon{display:block;width:100%;height:30px;margin-top:6px;overflow:visible}
@keyframes wachtIn{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* ---------- Laden ---------- */
.loading{min-height:calc(100dvh - 0px);display:grid;grid-template-columns:264px minmax(0,1fr)}
.loading .sk-side{background:var(--kp-surface);border-right:1px solid var(--kp-line);padding:28px 20px;display:grid;gap:14px;align-content:start}
.loading .sk-main{padding:36px clamp(20px,3.2vw,48px);display:grid;gap:16px;align-content:start;max-width:1080px}
.loading .sk-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.loading .sk-tile{height:104px;border-radius:var(--kp-radius-md);background:var(--kp-surface);border:1px solid var(--kp-line);padding:16px;display:grid;gap:10px;align-content:start}
.spin{width:18px;height:18px;border-radius:50%;border:2px solid rgba(31,92,56,.2);border-top-color:var(--kp-green-700);animation:spin .8s linear infinite;display:inline-block;vertical-align:-3px;margin-right:10px}
.btn .spin{border-color:rgba(255,255,255,.4);border-top-color:#fff;margin-right:0}
@keyframes spin{to{transform:rotate(360deg)}}
.shot img[data-ref]:not([src]){opacity:0}
.shot.leeg{display:grid;place-items:center;color:var(--kp-ink-2);font-size:13px;cursor:default;background:var(--kp-sunken)}
.rolinfo{display:flex;gap:10px;align-items:flex-start;font-size:var(--kp-text-sm);color:var(--kp-progress-ink);background:var(--kp-progress-bg);border-radius:var(--kp-radius-sm);padding:10px 14px}
.rolinfo svg{margin-top:1px}

/* ---------- Voorwaarden ---------- */
.av{gap:0}
.av .art+.art{margin-top:28px;padding-top:24px;border-top:1px solid var(--kp-line)}
.av .art h2{font-size:20px;display:grid;gap:2px}
.av .art h2 .num{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--kp-ink-2)}
.av .clauses{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:10px}
.av .clauses>li{display:grid;grid-template-columns:2.8em 1fr;gap:6px;border-radius:var(--kp-radius-sm)}
.av .clauses>li.gemarkeerd{background:var(--kp-attention-bg);margin:-6px;padding:6px}
.av .cl{color:var(--kp-ink-2);font-weight:600;font-size:14px;font-variant-numeric:tabular-nums;padding-top:2px}
.av .clauses ul{margin:6px 0 0;padding-left:1.1em;display:grid;gap:3px}

/* ---------- Factuur ---------- */
.invoice-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:flex-start}
/* One invoice hierarchy on screen and paper; amounts come from the existing DTO. */
.invoice-document{gap:20px;color:var(--kp-ink);overflow-wrap:anywhere}
.invoice-document :is(h1,h2,h3,h4,p,dl,dd){margin:0}
.invoice-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--kp-line)}
.invoice-brand{display:flex;align-items:center;gap:12px;min-width:0}.invoice-brand img{width:48px;height:48px;object-fit:contain;flex:none}
.invoice-document .invoice-eyebrow{font-size:12px;color:var(--kp-ink-2);margin-bottom:4px}.invoice-header h1{font-size:24px;line-height:1.2}.invoice-document .pill{flex:none;align-self:flex-start}
.invoice-document .pill{background:var(--kp-positive-bg);color:var(--kp-positive-ink)}.invoice-document .pill.blue{background:var(--kp-progress-bg);color:var(--kp-progress-ink)}.invoice-document .pill.grey{background:var(--kp-neutral-bg);color:var(--kp-neutral-ink)}.invoice-document .pill.red{background:var(--kp-danger-bg);color:var(--kp-danger-ink)}
.invoice-title{font-size:20px;line-height:1.35}.invoice-document h3{font:600 15px var(--kp-font);margin-bottom:10px}.invoice-document h4{font:600 14px var(--kp-font);margin-bottom:6px}
.invoice-parties,.invoice-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.invoice-parties section{min-width:0}.invoice-parties p{font-size:14px;line-height:1.5}.invoice-parties p+p{margin-top:4px;color:var(--kp-ink-2)}
.invoice-metadata{padding:16px;background:var(--kp-sunken);border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm)}.invoice-metadata dt{font-size:12px;color:var(--kp-ink-2);margin-bottom:4px}.invoice-metadata dd{font-size:14px;font-weight:600}
.invoice-document table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}.invoice-document :is(th,td){padding:10px 8px;border-bottom:1px solid var(--kp-line);vertical-align:top;text-align:left}.invoice-document th{font-weight:500;color:var(--kp-ink-2);font-size:12px}.invoice-document th:first-child,.invoice-document td:first-child{padding-left:0}.invoice-document th:last-child,.invoice-document td:last-child{text-align:right;padding-right:0;font-variant-numeric:tabular-nums}.invoice-lines th:first-child{width:46%}.invoice-lines th:nth-child(2){width:12%}.invoice-lines td:last-child{font-weight:600}
.invoice-muted{color:var(--kp-ink-2);font-size:13px;line-height:1.5}.invoice-lines>.invoice-muted{margin-bottom:8px}
.invoice-totals{width:min(100%,360px);justify-self:end;display:grid;gap:10px}.invoice-totals>div{display:flex;justify-content:space-between;gap:16px}.invoice-totals dt{color:var(--kp-ink-2);font-size:14px}.invoice-totals dd{font-variant-numeric:tabular-nums;text-align:right;font-weight:600}.invoice-totals .invoice-total{border-top:1px solid var(--kp-line-strong);padding-top:12px;font-size:24px}.invoice-total dt{font-size:18px;color:var(--kp-ink);font-weight:600}
.invoice-payment-status{padding:16px;border:1px solid var(--kp-line-strong);background:var(--kp-sunken);border-radius:var(--kp-radius-sm)}.invoice-balance{display:flex;justify-content:space-between;gap:8px 16px;align-items:baseline;flex-wrap:wrap}.invoice-balance strong{font-size:18px;font-variant-numeric:tabular-nums;text-align:right;margin-left:auto;max-width:100%;overflow-wrap:normal}.invoice-payment-status>p{font-size:13px;color:var(--kp-ink-2);margin-top:6px}
.invoice-payment p{font-size:14px;line-height:1.5}.invoice-bank{white-space:pre-line;padding:12px;border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm);margin:8px 0!important}.invoice-instruction{margin-top:12px;padding-top:12px;border-top:1px solid var(--kp-line)}.invoice-instruction p{white-space:pre-line}
.invoice-payment-info{padding:14px 16px;border:1px solid var(--kp-line-strong);border-radius:var(--kp-radius-sm);background:var(--kp-green-50);color:var(--kp-ink);break-inside:avoid}
.invoice-payment-info h3{margin:0 0 6px;color:var(--kp-green-800)}
.invoice-payment-info p{margin:4px 0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.invoice-payment-info .invoice-bank{padding:0;border:0;background:transparent;margin:4px 0!important}
.invoice-payment-info .invoice-instruction{padding:0;border:0;white-space:pre-line}
@media screen and (max-width:600px){
 .invoice-document{padding:18px;gap:18px}.invoice-header{gap:10px;flex-wrap:wrap}.invoice-header h1{font-size:21px}.invoice-title{font-size:18px}.invoice-parties{grid-template-columns:1fr}.invoice-metadata{gap:12px;padding:12px}.invoice-metadata dd{font-size:13px}.invoice-metadata>div:nth-child(n+3){grid-column:1/-1}
 .invoice-lines thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.invoice-lines tbody tr{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 0;border-bottom:1px solid var(--kp-line)}.invoice-lines td{display:block;border:0;padding:0;font-size:13px}.invoice-lines td:first-child{grid-column:1/-1;font-size:14px}.invoice-lines td:nth-child(n+2){display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;white-space:nowrap;overflow-wrap:normal}.invoice-lines td:nth-child(n+2)::before{white-space:nowrap;overflow-wrap:normal;text-align:left}.invoice-lines td:nth-child(2)::before{content:'Aantal';display:block}.invoice-lines td:nth-child(3)::before{content:'Eenheidsprijs';display:block}.invoice-lines td:nth-child(4)::before{content:'Bedrag';display:block}.invoice-lines td::before{font-size:11px;font-weight:400;color:var(--kp-ink-2);margin-bottom:3px}.invoice-balance strong{font-size:18px}.invoice-receipts table{font-size:12px;table-layout:auto}.invoice-receipts :is(th,td){padding-left:4px;padding-right:4px}.invoice-receipts :is(th,td):first-child{padding-left:0}.invoice-receipts :is(th,td):last-child{padding-right:0}.invoice-receipts th,.invoice-receipts td:first-child,.invoice-receipts td:last-child{white-space:nowrap;overflow-wrap:normal}
 .invoice-payment-status{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.invoice-payment-status h3{grid-column:1;grid-row:1;margin:0}.invoice-payment-status>.invoice-balance{grid-column:1/-1;margin:0;display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:8px;align-items:baseline}.invoice-payment-status .invoice-balance>span{overflow-wrap:normal;word-break:normal;hyphens:none;font-size:clamp(13px,4vw,14px)}.invoice-payment-status .invoice-balance strong{margin:0;font-size:clamp(15px,4.7vw,18px);white-space:nowrap;text-align:right}.invoice-payment-status>p{grid-column:2;grid-row:1;align-self:start;margin:0;padding:2px 6px;border:1px solid var(--kp-line);border-radius:4px;background:var(--kp-positive-bg);color:var(--kp-positive-ink);font-size:11px;line-height:1.3;white-space:nowrap}.invoice-payment-status>p::first-letter{text-transform:uppercase}.invoice-document:has(.invoice-header .pill.blue) .invoice-payment-status>p{background:var(--kp-progress-bg);color:var(--kp-progress-ink)}.invoice-document:has(.invoice-header .pill.grey) .invoice-payment-status>p{background:var(--kp-neutral-bg);color:var(--kp-neutral-ink)}.invoice-document:has(.invoice-header .pill.red) .invoice-payment-status>p{background:var(--kp-danger-bg);color:var(--kp-danger-ink)}
}
@media screen and (max-width:360px){
 .invoice-receipts thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.invoice-receipts tbody tr{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:4px 12px;padding:10px 0;border-bottom:1px solid var(--kp-line)}.invoice-receipts tbody td{display:block;border:0;padding:0}.invoice-receipts tbody td:first-child{grid-column:1;grid-row:1;white-space:nowrap}.invoice-receipts tbody td:last-child{grid-column:2;grid-row:1;white-space:nowrap;text-align:right}.invoice-receipts tbody td:nth-child(2){grid-column:1/-1;grid-row:2;white-space:normal;overflow-wrap:normal;color:var(--kp-ink-2)}
}
@media print{
 @page{size:A4;margin:10mm}
 html:has(.invoice-document),body:has(.invoice-document){height:auto!important;min-height:0!important;background:#fff!important;color:#17231b!important;color-scheme:light}
 body:has(.invoice-print) :is(.side,.tabbar,.topline,.no-print,.rolinfo,.demo,.mobile-top,.toast){display:none!important}
 body:has(.invoice-print),body:has(.invoice-print) .app,body:has(.invoice-print) .main{display:block!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important}
 .invoice-document{--kp-surface:#fff;--kp-sunken:#f5f5f2;--kp-ink:#17231b;--kp-ink-2:#48544a;--kp-line:#ccc;--kp-line-strong:#aaa;--kp-positive-bg:#e7f0e8;--kp-positive-ink:#205c36;--kp-progress-bg:#e8edf2;--kp-progress-ink:#345b7c;--kp-neutral-bg:#eee;--kp-neutral-ink:#48544a;--kp-danger-bg:#faeee9;--kp-danger-ink:#97392c;display:block!important;padding:0!important;margin:0!important;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:10pt;color:var(--kp-ink)!important;background:#fff!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 /* Print status colors outrank shared pills and never inherit screen theme aliases. */
 body[data-ux-surface="portal"] .invoice-document .pill{background:#e7f0e8;color:#205c36}
 body[data-ux-surface="portal"] .invoice-document .pill.blue{background:#e8edf2;color:#345b7c}
 body[data-ux-surface="portal"] .invoice-document .pill.grey{background:#eeeeee;color:#48544a}
 body[data-ux-surface="portal"] .invoice-document .pill.red{background:#faeee9;color:#97392c}
 .invoice-document>*+*{margin-top:4mm}.invoice-document h1{font-size:18pt}.invoice-document h2{font-size:14pt}.invoice-document h3{font-size:10pt;margin-bottom:2mm}.invoice-document :is(p,dd,dt,th,td){font-size:9pt}.invoice-document :is(th,td){padding-top:1mm;padding-bottom:1mm}.invoice-document .invoice-brand img{width:10mm;height:10mm}.invoice-document .invoice-parties,.invoice-document .invoice-metadata{gap:3mm}.invoice-document .invoice-totals{margin-left:auto}.invoice-document .invoice-total dd,.invoice-document .invoice-balance strong{font-size:14pt}.invoice-document .invoice-payment-status,.invoice-document .invoice-metadata{padding:2mm}.invoice-document .invoice-bank{padding:2mm}.invoice-document .invoice-instruction{margin-top:2mm;padding-top:2mm}
 .invoice-document{line-height:1.3}.invoice-document :is(p,dt,dd,th,td){line-height:1.3}.invoice-document>*+*{margin-top:1.5mm}.invoice-document .invoice-header{padding-bottom:2mm}.invoice-document .invoice-parties p+p{margin-top:1mm}.invoice-document .invoice-metadata :is(dt,dd){font-size:9pt}.invoice-document .invoice-totals{gap:1.5mm}.invoice-document .invoice-total{padding-top:2mm}.invoice-document .invoice-bank{margin:2mm 0!important}
.invoice-header,.invoice-parties,.invoice-metadata,.invoice-totals,.invoice-payment-info,.invoice-document tr{break-inside:avoid}.invoice-document h3{break-after:avoid}.invoice-document tr{page-break-inside:avoid}.invoice-document h3{page-break-after:avoid}.invoice-document thead{display:table-header-group}.invoice-document p{orphans:3;widows:3}
}

/* ---------- Aanvragen (accordeon) ---------- */
.request-conversation{display:block;min-width:0;padding:0;border:0;background:transparent}
.request-conversation summary{cursor:pointer;overflow-wrap:anywhere}
.request-conversation summary.request-header{display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:14px;min-width:0;padding:12px 8px;margin:0 -8px;list-style:none;border:0;border-radius:var(--kp-radius-sm);background:transparent;color:var(--kp-ink)}
.request-header::-webkit-details-marker{display:none}
.request-header::marker{content:""}
.request-conversation summary.request-header:hover{background:var(--kp-sunken)}
.request-header-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:var(--kp-radius-sm);background:var(--kp-green-50);color:var(--kp-green-700)}
.request-header-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px;min-width:0}
.request-header-text{display:grid;gap:2px;min-width:0}
.request-header-text>strong{font-weight:600;color:var(--kp-ink);display:flex;align-items:center;gap:8px}
.request-description{color:var(--kp-ink);white-space:pre-line}
.request-header-copy .meta{color:var(--kp-ink-2)}
.request-header-status{display:flex;align-items:center;min-width:0}
.request-header-chevron{display:block;width:20px;height:20px;flex-shrink:0;color:var(--kp-ink-3);transition:transform .2s}
.request-conversation[open] .request-header-chevron{transform:rotate(180deg)}
.request-activity{display:inline-flex;align-items:center;gap:6px;grid-column:1/-1;min-width:0;color:var(--kp-attention-ink);font-size:13px;font-weight:600}
.request-messages{display:grid;gap:14px;margin:6px 0 10px 54px;padding:16px;border-radius:var(--kp-radius-sm);background:#FCFBF8;border:1px solid var(--kp-line);min-width:0;overflow-wrap:anywhere}
.request-messages h3{font-size:14px;color:var(--kp-ink-2);font-weight:600}
.request-messages form{display:grid;gap:10px;min-width:0}
.request-messages form .btn{justify-self:start}
.new-request{padding:0;scroll-margin-top:16px}
.toast.request-prefill-toast{width:max-content}
.new-request>summary{list-style:none;display:flex;align-items:center;gap:14px;padding:18px 22px;cursor:pointer}
.new-request>summary::-webkit-details-marker{display:none}
.new-request>summary .request-header-chevron{margin-left:auto}
.new-request[open]>summary .request-header-chevron{transform:rotate(180deg)}
.new-request>form{display:grid;gap:16px;padding:0 22px 22px;border-top:1px solid var(--kp-line);padding-top:18px}

/* F8 controls */
#f-nieuw-erf select,#f-familie select{min-height:var(--kp-control);max-width:100%}
#f-erffoto input[type="file"]{min-height:var(--kp-control);max-width:100%}
[data-family-resend],[data-weg]{min-height:var(--kp-control-sm)}

/* ---------- Mobiel ---------- */
.tabbar{display:none}
.mobile-top{display:none;align-items:center;gap:10px;font-weight:700;font-size:16px}
.mobile-top img{height:34px;width:auto}
.sheet{position:fixed;inset:auto 0 0 0;z-index:40;display:flex;flex-direction:column;min-height:0;background:var(--kp-surface);border-radius:var(--kp-radius-lg) var(--kp-radius-lg) 0 0;padding:10px 12px calc(16px + env(safe-area-inset-bottom,0px));box-shadow:var(--kp-shadow-3)}
.sheet::before{content:"";display:block;width:40px;height:4px;border-radius:4px;background:var(--kp-line-strong);margin:0 auto 10px}
.sheet .nav{flex:1 1 auto;min-height:0;max-height:min(360px,48dvh);overflow-y:auto}.sheet .nav button{min-height:48px;padding:12px}

@media (max-width:1100px){.home-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.home-columns{grid-template-columns:1fr}}
@media (max-width:900px){
  .new-request{scroll-margin-top:76px}
  .app{grid-template-columns:1fr}
  .side{display:none}
  .loading{grid-template-columns:1fr}.loading .sk-side{display:none}.loading .sk-tiles{grid-template-columns:repeat(2,1fr)}
  .main{padding:16px 16px 112px;gap:16px}
  .topline{position:sticky;top:0px;z-index:20;margin:-16px -16px 0;padding:10px 16px;background:rgba(246,244,238,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--kp-line);flex-wrap:nowrap}
  .mobile-top{display:flex!important;flex-shrink:0}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--kp-line);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}
  .tabbar button{display:grid;justify-items:center;gap:3px;border:0;background:transparent;font-size:11.5px;font-weight:500;color:var(--kp-ink-2);padding:6px 2px;min-height:52px;cursor:pointer;position:relative;border-radius:var(--kp-radius-sm)}
  .tabbar button svg{color:var(--kp-ink-2)}
  .tabbar button[aria-current="page"]{color:var(--kp-green-900);font-weight:600}
  .tabbar button[aria-current="page"] svg{color:var(--kp-green-700)}
  .tabbar button[aria-current="page"]::before{content:"";position:absolute;top:-7px;left:30%;right:30%;height:3px;border-radius:0 0 3px 3px;background:var(--kp-green-700)}
  .tabbar .dot{position:absolute;top:5px;right:calc(50% - 16px)}
  .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:560px){
  html,body,#root{width:100%;max-width:100%;overflow-x:clip}
  .app,.main{width:100%;max-width:100%;min-width:0}
  .main{padding:14px 14px calc(104px + env(safe-area-inset-bottom,0px));gap:14px}
  .topline{margin:-14px -14px 0;padding:8px 14px;gap:10px}
  .mobile-top span{display:none}
  .erf-switch{min-width:0;flex:1;justify-content:flex-start}
  .erf-switch>span:not(.kp-sr){display:none}
  .erf-switch select{min-width:0;max-width:100%;width:100%;font-size:16px}
  .card{padding:16px}
  h1{font-size:27px;overflow-wrap:break-word}
  h2{font-size:17px}
  .home-summary{gap:10px}
  .home-summary-card{padding:13px}
  .home-summary-value{font-size:22px;margin-top:2px}
  .home-attention{padding:14px 16px}
  .row{min-width:0;gap:8px}
  .grid{grid-template-columns:minmax(0,1fr)}
  .btn{max-width:100%;white-space:normal;text-align:center}
  .field input,.field select,.field textarea{min-width:0;font-size:16px}
  .obj-row{grid-template-columns:auto minmax(0,1fr);gap:12px}
  .obj-row .obj-end{grid-column:2;justify-content:flex-start}
  .request-header-copy{grid-template-columns:minmax(0,1fr)}
  .request-messages{margin-left:0}
  .beurt{grid-template-columns:minmax(0,1fr);gap:14px}
  .lines td:first-child{white-space:normal;overflow-wrap:anywhere}
  .code-inputs{gap:6px}
  .code-inputs input{min-width:0;min-height:50px;font-size:20px}
  .sheet{max-height:min(82dvh,720px);overflow:hidden}
  .close{top:calc(10px + env(safe-area-inset-top,0px));right:10px}
  .new-request>summary{padding:16px}
  .new-request>form{padding:16px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
h1:focus{box-shadow:none}
body[data-ux-surface="portal"] .portal-property-page-head h1[tabindex="-1"]:focus{outline:none;box-shadow:none}
.card>.pill,.home-detail>.pill{justify-self:start}
@media (max-width:560px){.request-conversation summary.request-header{padding:10px 8px;gap:12px}.list>.request-conversation{padding:6px 0}}

/* Integration constraints: contrast/focus from UX-1; request actions share the proven height. */
body[data-ux-surface="portal"] h1{font-family:var(--kp-font-display);font-size:var(--kp-text-2xl)}
body[data-ux-surface="portal"] h2{font-size:var(--kp-text-lg)}
body[data-ux-surface="portal"] h3{font-size:16px}
body[data-ux-surface="portal"] :is(.btn.ghost,.btn.wa){color:var(--kp-ink);border-color:var(--kp-line-strong)}
body[data-ux-surface="portal"] .pill.outline{background:transparent;color:var(--kp-ink-2);box-shadow:inset 0 0 0 1px var(--kp-line-strong)}
.request-header-text strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:break-word}
.erf-switch strong,.me-info,.obj-copy,.contact-copy{overflow-wrap:anywhere;min-width:0}
@media(max-width:560px){
body[data-ux-surface="portal"] h1{font-size:27px}
body[data-ux-surface="portal"] h2{font-size:17px}
.request-messages form{gap:14px}
body[data-ux-surface="portal"] .request-messages .btn{display:flex;width:100%;height:50px;min-height:50px;max-height:50px;flex:none;align-self:start;justify-self:stretch;aspect-ratio:auto;padding:0 16px;border-radius:12px}
.erf-switch{min-height:44px}.nav button,.chip,.link-btn{min-height:44px}
}

body[data-ux-surface="portal"] .card.request-conversation{border:0;background:transparent;border-radius:0}

/* Existing product form markup: retain compact checkboxes and Claude empty-state spacing. */
.list>.kp-empty{padding:24px}
.field input:is([type="checkbox"],[type="radio"]){width:20px;height:20px;min-height:20px;max-height:20px;padding:0;flex:0 0 20px;accent-color:var(--kp-green-700)}
#f-familie label.row{min-height:44px}
#f-familie input[name="fa-erf"]{-webkit-appearance:none;appearance:none;width:20px;height:20px;min-width:20px;margin:0;border:1px solid var(--kp-line-strong);border-radius:5px;background:var(--kp-surface);cursor:pointer}
#f-familie input[name="fa-erf"]:checked{border-color:var(--kp-green-700);background:var(--kp-green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m4 10 4 4 8-8' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px 16px no-repeat}
.quote-acceptance-check input[type="checkbox"]{-webkit-appearance:none;appearance:none;width:20px;height:20px;min-width:20px;border:1px solid var(--kp-line-strong);border-radius:5px;background:var(--kp-surface);cursor:pointer}
.quote-acceptance-check input[type="checkbox"]:checked{border-color:var(--kp-green-700);background:var(--kp-green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m4 10 4 4 8-8' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px 16px no-repeat}
body[data-ux-surface="portal"] .login-card h1{font-size:28px}

/* F9: page authorized history; mobile Home uses the existing attention summary. */
.list-pager{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:16px 0}
.list-pager .btn{width:auto;min-height:44px}
.list-pager [aria-current=page]{background:var(--kp-green-700);color:white}
.pager-position{display:none}
@media screen and (max-width:900px){
 .home-summary-card:not([data-ga=planning]),.home-summary-card[data-ga=planning].is-quiet,.home-next-detail{display:none}
 .home-summary{grid-template-columns:minmax(0,1fr)}
 .home-summary:not(:has(.home-summary-card[data-ga=planning]:not(.is-quiet))){display:none}
 .list-pager .pager-number{display:none}
 .list-pager .pager-position{display:inline;font-variant-numeric:tabular-nums}
 .list-pager .btn{padding:8px 10px}
 .list-pager{gap:6px}
}
/* Immutable planning messages: preserve customer text and wrap long tokens. */
.planning-portal-item{min-width:0}
.planning-portal-item .planning-change{white-space:pre-wrap;overflow-wrap:anywhere}

.document-footer{display:none}
/* Shared document rhythm: screen sections breathe; print retains compact, readable A4. */
.quote-document{display:grid;gap:20px;overflow-wrap:anywhere}
.quote-document .invoice-brand h1{font-size:24px}
.quote-document .card{display:grid;gap:20px}
.quote-document .page-head{margin:0}
.quote-parties{display:grid;gap:8px}
.quote-document .lines .total{font-size:20px;font-weight:700}
.invoice-received{margin-bottom:10px}
@media print{
 @page{size:A4;margin:12mm}
 .document-footer{display:block;margin:1mm 0 0!important;padding-top:.5mm;border-top:.5pt solid #205c36;font-size:8pt!important;line-height:1.1;color:#48544a!important;background:#fff}

 .invoice-document{line-height:1.4}
 .invoice-document :is(p,dt,dd,th,td){font-size:10pt;line-height:1.4}
 .invoice-document>*+*{margin-top:2mm}
 .invoice-document :is(th,td){padding-top:1.2mm;padding-bottom:1.2mm}
 .invoice-document .invoice-header{padding-bottom:3mm}
 .invoice-document .invoice-payment-status,.invoice-document .invoice-metadata{padding:3mm}
 .invoice-document h3{font-size:10pt!important;line-height:1.3;margin-bottom:1.5mm}
 .invoice-document .invoice-payment-status{padding:2.5mm;display:grid;grid-template-columns:1fr 1fr;gap:1mm 8mm}
 .invoice-payment-status h3{grid-column:1/-1}
 .invoice-payment-status .invoice-balance{display:block}
 .invoice-payment-status .invoice-balance strong{display:block;text-align:left;margin:1mm 0 0;font-size:12pt}
 .invoice-payment-status>p{display:none} /* Same status remains explicit in the document header. */
 .invoice-received{margin-bottom:2mm}
 .invoice-receipts{break-inside:avoid;page-break-inside:avoid}
 .invoice-receipts :is(th,td){padding-top:1mm;padding-bottom:1mm}
 .invoice-receipts h3{margin-bottom:1mm}
 .invoice-document h3,.quote-document h3{break-after:avoid;page-break-after:avoid}
 .quote-document{--kp-ink:#17231b;--kp-ink-2:#48544a;--kp-line:#ccc;--kp-line-strong:#aaa;display:block;color:#17231b;background:#fff;font-size:10pt;line-height:1.45}
 html:has(.quote-document),body:has(.quote-document){height:auto!important;min-height:0!important;background:#fff!important;color:#17231b!important;color-scheme:light}
 body:has(.quote-document) :is(.side,.tabbar,.topline,.no-print,.rolinfo,.demo,.mobile-top,.toast){display:none!important}
 body:has(.quote-document) :is(.app,.main){display:block!important;width:auto!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important}
 .quote-document>*+*{margin-top:4mm}
 .quote-document .card{display:block;border:0;padding:0;background:#fff;color:#17231b;box-shadow:none}
 .quote-document .card>*+*{margin-top:4mm}
 .quote-document :is(h1,h2,h3,h4){color:#17231b!important}
 .quote-document .page-head h1{font-size:16pt;color:#17231b}
 .quote-document .invoice-metadata{padding:3mm;gap:3mm;background:#f5f5f2;border-color:#ccc}
 .quote-document .invoice-metadata :is(dt,dd){color:#17231b}
 .quote-document .invoice-title{font-size:14pt}
 .quote-document :is(p,td,dt,dd){font-size:10pt;color:#17231b;line-height:1.45}
 .quote-document :is(.invoice-header,.commercial-summary,tr){break-inside:avoid;page-break-inside:avoid}
 .quote-document .lines td{padding:2mm 0}
 .quote-document .lines .total{font-size:14pt;font-weight:700}
 .quote-document :is(.row,.check,.help,#quote-terms){display:none!important}
 .quote-document .pill{background:#e7f0e8;color:#205c36}
}

.customer-orientation{min-width:0}
.customer-orientation-result{border-top:1px solid var(--kp-line);padding-top:var(--kp-space-16);margin-top:var(--kp-space-16);min-width:0}
.customer-orientation-result dl{display:grid;gap:var(--kp-space-12);margin:var(--kp-space-16) 0}
.customer-orientation-result dt{font-weight:600}.customer-orientation-result dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:break-word;min-width:0}
.customer-orientation-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,130px));gap:var(--kp-space-8)}
.customer-orientation-photo{display:block;min-width:44px;min-height:44px;padding:0;border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm);overflow:hidden;background:var(--kp-surface);cursor:pointer}
.customer-orientation-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.customer-orientation-photo:focus-visible{outline:2px solid var(--kp-focus);outline-offset:3px}
.customer-orientation-followup{margin-top:var(--kp-space-16);min-width:0}.customer-orientation-followup [role=status]:empty{display:none}
@media(max-width:600px){.customer-orientation-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-orientation-followup .btn{max-width:100%;min-height:44px;white-space:normal}}

.customer-request-section{min-width:0;margin-top:var(--kp-space-24)}
.customer-request-section>h2{font-size:var(--kp-text-lg);margin:0 0 var(--kp-space-12);font-weight:600}
.customer-request-list{display:grid;gap:var(--kp-space-16);min-width:0}
.customer-request-empty{justify-items:center;text-align:center;padding:20px}
body[data-ux-surface="portal"] .card.customer-request-card{padding:0;border:1px solid var(--kp-line);border-radius:var(--kp-radius-md);background:var(--kp-surface);min-width:0}
body[data-ux-surface="portal"] .customer-website-card{display:grid;gap:var(--kp-space-16);padding:var(--kp-space-16)!important;overflow-wrap:anywhere}
.customer-website-card .request-header{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--kp-space-12);min-width:0}
.customer-website-card .request-header-copy{min-width:0}
.customer-website-card .request-header>strong{flex:none;color:var(--kp-green-700)}
.customer-website-card .customer-request-work h3,.customer-website-card p{margin:0}
@media(max-width:600px){.customer-website-card .request-header{flex-wrap:wrap}}
.customer-request-card summary.request-header{grid-template-columns:minmax(0,1fr) auto;padding:var(--kp-space-16);margin:0;gap:var(--kp-space-12)}
.customer-request-card .request-header-copy{grid-template-columns:minmax(0,1fr);gap:var(--kp-space-8) var(--kp-space-12)}
.customer-request-card .request-header-text strong{display:block;-webkit-line-clamp:unset;overflow:visible;word-break:normal;overflow-wrap:break-word}
.customer-request-card .request-followup-summary{grid-column:1/-1}
.customer-request-card .request-view{min-height:44px;flex:none;white-space:nowrap}
.customer-request-card .request-messages{margin:0 var(--kp-space-16) var(--kp-space-16);padding:var(--kp-space-16);background:var(--kp-surface-muted)}
.customer-request-card .request-unread-marker{display:inline-flex;align-items:center;margin-inline-start:var(--kp-space-8);vertical-align:middle}
.customer-request-card .customer-orientation-result dl{gap:var(--kp-space-24)}
.customer-request-card .customer-orientation-result dd{margin-top:var(--kp-space-8)}
.customer-request-card .customer-orientation-photos{margin-top:var(--kp-space-24)}
.customer-request-card .customer-orientation-followup{display:grid;gap:var(--kp-space-12);justify-items:start;margin-top:var(--kp-space-24)}
.customer-request-card .customer-orientation-followup>p{margin:0}
@media(max-width:600px){.customer-request-card summary.request-header{align-items:start}.customer-request-card .request-header-copy{grid-template-columns:minmax(0,1fr)}.customer-request-card .request-view{padding-inline:12px}.customer-request-card .request-messages{margin-inline:var(--kp-space-12);padding:var(--kp-space-12)}}

.customer-request-card .customer-orientation-result :is(h3,dt){color:var(--kp-ink)}
.customer-request-card .customer-orientation-result dd{color:var(--kp-ink-2)}

/* Customer request dossier: scoped consumers only. */
body[data-ux-surface="portal"] .customer-request-section>h2{font-family:var(--kp-font-display);font-size:var(--kp-text-xl);font-weight:600;color:var(--kp-ink)}
.customer-request-card .customer-request-content{margin:0;padding:var(--kp-space-16);border:0;border-top:1px solid var(--kp-line);border-radius:0;background:transparent}
.customer-request-card .request-description{margin:0;padding:0;border:0;border-radius:0;background:transparent}
.customer-request-card .customer-orientation-result{margin-top:0;padding-top:0;border-top:0}
.customer-request-card .request-history{min-width:0;margin-top:var(--kp-space-16)}
.customer-request-card .request-timeline{list-style:none;margin:var(--kp-space-16) 0 0;padding:0;min-width:0}
.customer-request-card .request-timeline>li{position:relative;margin:0;padding:0 0 var(--kp-space-24) var(--kp-space-24);border-left:1px solid var(--kp-line)}
.customer-request-card .request-timeline>li:last-child{padding-bottom:0}
.customer-request-card .request-timeline>li::before{content:"";position:absolute;left:-4px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--kp-ink-3)}
.customer-request-card .request-timeline strong{font-size:var(--kp-text-sm);font-weight:600;color:var(--kp-ink)}
.customer-request-card .request-timeline p{margin:var(--kp-space-8) 0;white-space:pre-wrap;overflow-wrap:break-word}
.customer-request-card .request-timeline time{display:block;color:var(--kp-ink-3);font-size:var(--kp-text-xs)}
.customer-request-card .request-reply-actions{display:flex;gap:var(--kp-space-8);flex-wrap:wrap}
body[data-ux-surface="portal"] .customer-request-card .request-reply-actions .btn{display:inline-flex;width:auto;min-height:44px;height:auto;max-height:none;flex:none;padding:8px 16px;align-self:auto;justify-self:auto}
.customer-request-pager .customer-request-page{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--kp-ink-2);font:inherit;cursor:pointer}
.customer-request-pager [aria-current=page]{background:transparent;color:var(--kp-ink);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.customer-request-pager .customer-request-page:disabled{opacity:.45;cursor:default}
@media(max-width:600px){.customer-request-card .customer-request-content{margin:0;padding:var(--kp-space-12)}}

.customer-request-content{display:grid;gap:var(--kp-space-16);min-width:0;overflow-wrap:break-word}
.customer-request-content h3{font-size:var(--kp-text-sm);font-weight:600;color:var(--kp-ink)}
.customer-request-content form{display:grid;gap:var(--kp-space-12);min-width:0}

/* Full customer sweep: explicit portal/component consumers only. */
body[data-ux-surface="portal"] .customer-support-card{background:var(--kp-surface);border-color:var(--kp-line)}
body[data-ux-surface="portal"] .customer-support-card{padding:14px 18px}
body[data-ux-surface="portal"] .customer-support-card>img{width:50px;height:50px}
html:not([data-theme="dark"]) body[data-ux-surface="portal"] .customer-support-card .btn.wa{color:var(--kp-green-700)}
body[data-ux-surface="portal"] .customer-support-card .wa .kp-icon{color:var(--kp-green-700)}
html[data-theme="dark"] body[data-ux-surface="portal"] .customer-support-card .wa .kp-icon{color:var(--kp-green-500)}
body[data-ux-surface="portal"] .customer-support-card a[href^="mailto:"] .kp-icon{color:var(--kp-green-700)}
html[data-theme="dark"] body[data-ux-surface="portal"] .customer-support-card a[href^="mailto:"] .kp-icon{color:var(--kp-green-500)}
@media(max-width:600px){body[data-ux-surface="portal"] .customer-support-card{display:grid;grid-template-columns:50px minmax(0,1fr);gap:9px 16px;align-items:start}body[data-ux-surface="portal"] .customer-support-card>img{grid-row:1 / span 2}body[data-ux-surface="portal"] .customer-support-card .contact-copy{grid-column:2;grid-row:1;min-width:0}body[data-ux-surface="portal"] .customer-support-card>.row{grid-column:2;grid-row:2;justify-self:start;min-width:0}}
body[data-ux-surface="portal"] .customer-reference-photo-form{display:grid;gap:var(--kp-space-16)}
body[data-ux-surface="portal"] .customer-reference-photo-form .btn{justify-self:start}
.customer-request-card .customer-request-work{display:grid;gap:var(--kp-space-8);min-width:0}
.customer-request-card .customer-request-divider{margin:var(--kp-space-8) 0 var(--kp-space-24);border:0;border-top:1px solid var(--kp-line)}
.customer-request-card .customer-orientation-date{margin-top:var(--kp-space-8)}
.customer-request-card .customer-orientation-note{margin-top:var(--kp-space-16);padding:var(--kp-space-16);border-radius:var(--kp-radius-sm);background:var(--kp-canvas);min-width:0}
.customer-request-card .customer-orientation-note h4{font-size:var(--kp-text-sm);font-weight:600;color:var(--kp-ink);margin-bottom:var(--kp-space-8)}
.customer-request-card .customer-orientation-note p{color:var(--kp-ink-2);white-space:pre-wrap;overflow-wrap:break-word}
.customer-request-card .customer-request-history-disclosure{padding-top:var(--kp-space-16);border-top:1px solid var(--kp-line)}
.customer-request-card .customer-request-content > .request-history{padding-top:var(--kp-space-16);border-top:1px solid var(--kp-line)}
.customer-request-card .customer-request-history-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--kp-space-12);min-height:44px;font-weight:600;cursor:pointer;list-style:none}
.customer-request-card .customer-request-history-disclosure>summary::-webkit-details-marker{display:none}
.customer-request-card .customer-request-history-disclosure>summary:focus-visible{outline:2px solid var(--kp-focus);outline-offset:3px;border-radius:var(--kp-radius-sm)}
body[data-ux-surface="portal"] .card.beurt.customer-request-card{display:block}
.customer-request-card.customer-website-card{display:block;padding:0!important}
.customer-request-card summary.request-header{display:flex;align-items:flex-start}
.customer-request-card .request-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kp-space-12);padding:var(--kp-space-16);min-width:0}
.customer-request-card .request-header-text{min-width:0}
.customer-request-card .customer-complete-title,.customer-request-card .customer-request-work h3{font-size:var(--kp-text-lg)}
.customer-request-card .customer-request-status{font-size:var(--kp-text-sm);font-weight:600;color:var(--kp-ink-2);white-space:nowrap}
.customer-request-card .customer-request-status.is-complete{color:var(--kp-green-700)}
.customer-complete-icon{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:4px;border-radius:50%;background:var(--kp-green-700);color:#fff;font:700 14px/1 Arial,sans-serif;vertical-align:middle}
.customer-request-card .customer-request-content{border-top:1px solid var(--kp-line)}
.customer-request-card .customer-request-messages{border-top:1px solid var(--kp-line);padding-top:var(--kp-space-16);display:grid;gap:var(--kp-space-12)}
.customer-request-card .customer-request-messages>.request-history{margin:0;padding:0;border:0}
.customer-request-card .customer-request-messages>.request-history .request-timeline{margin-top:0}
.customer-dossier-gallery{display:grid;gap:var(--kp-space-8);min-width:0}
.customer-gallery-groups{display:flex;gap:4px;align-items:center;min-height:48px;padding:4px;border-radius:16px;background:var(--kp-canvas)}
.customer-gallery-groups button{flex:1;min-height:40px;border:0;border-radius:12px;background:transparent;color:var(--kp-ink-2);padding:8px 12px;font:inherit;cursor:pointer}
.customer-gallery-groups button[aria-pressed="true"]{background:var(--kp-surface-muted);color:var(--kp-ink);font-weight:600}
.customer-gallery-groups strong{font-size:var(--kp-text-sm);color:var(--kp-ink-2)}
.customer-gallery-panel{display:grid;gap:var(--kp-space-8);min-width:0}
.customer-gallery-panel[hidden]{display:none}
.customer-gallery-stage{position:relative;min-width:0}
.customer-gallery-main{display:block;width:100%;padding:0;border:0;border-radius:var(--kp-radius-sm);overflow:hidden;background:var(--kp-surface-muted);cursor:zoom-in}
.customer-gallery-main img{display:block;width:100%;aspect-ratio:16/10;object-fit:contain}
.customer-gallery-arrow{min-height:44px;border:1px solid var(--kp-line-strong);border-radius:999px;background:transparent;color:var(--kp-ink);padding:6px 14px;font:inherit;white-space:nowrap;cursor:pointer}
.customer-gallery-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--kp-space-8);color:var(--kp-ink-2);font-size:var(--kp-text-sm)}
.customer-gallery-controls>.customer-gallery-arrow:first-child{justify-self:start}
.customer-gallery-controls>.customer-gallery-arrow:last-child{justify-self:end}
.customer-gallery-center{display:grid;justify-items:center;gap:2px}
.customer-gallery-dots{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px}
.customer-gallery-dots button{width:24px;height:24px;border:0;background:transparent;cursor:pointer}
.customer-gallery-dots button::before{content:"";display:block;width:7px;height:7px;margin:auto;border-radius:50%;background:var(--kp-line-strong)}
.customer-gallery-dots button[aria-current="true"]::before{background:var(--kp-green-700);width:9px;height:9px}
.customer-gallery-thumbs{display:flex;gap:var(--kp-space-8);overflow-x:auto;padding:3px 3px var(--kp-space-8)}
.customer-gallery-thumbs button{flex:0 0 76px;width:76px;height:60px;padding:0;border:2px solid transparent;border-radius:var(--kp-radius-sm);overflow:hidden;background:var(--kp-surface-muted);cursor:pointer}
.customer-gallery-thumbs button[aria-current="true"]{border-color:var(--kp-green-700)}
.customer-gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.customer-dossier-gallery :is(button):focus-visible{outline:2px solid var(--kp-focus);outline-offset:2px}
@media(max-width:600px){.customer-gallery-main img{aspect-ratio:4/3}.customer-gallery-thumbs{display:none}.customer-gallery-controls{grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);gap:4px}.customer-gallery-arrow{padding:6px;font-size:var(--kp-text-sm)}.customer-gallery-controls>.customer-gallery-arrow{width:100%;box-sizing:border-box;text-align:center}.customer-gallery-dots{flex-wrap:nowrap;gap:2px}.customer-gallery-dots button{width:12px;flex:none}.customer-gallery-dots button[data-gallery-mobile-hidden]{display:none}.customer-gallery-dots button[aria-current="true"]::before{width:7px;height:7px;background:var(--kp-line-strong)}.customer-gallery-dots button[data-gallery-mobile-current]::before{width:9px;height:9px;background:var(--kp-green-700)}.customer-request-card .request-header{flex-wrap:wrap}.customer-request-card .customer-request-status{white-space:normal}.customer-request-card .customer-complete-title,.customer-request-card .customer-request-work h3{font-size:var(--kp-text-base)}}
body[data-ux-surface="portal"] .customer-current-access{display:grid;gap:var(--kp-space-4);min-width:0}
body[data-ux-surface="portal"] .customer-current-access strong{overflow-wrap:break-word}
body[data-ux-surface="portal"] .customer-document-date{font-size:var(--kp-text-sm);margin-top:var(--kp-space-8)}
@media screen{body[data-ux-surface="portal"] :is(.quote-document,.invoice-document) .invoice-metadata{padding:0;border:0;background:transparent}}

@media screen and (max-width:900px){body[data-ux-surface="portal"] .home-next-detail{display:grid}}

/* Customer-only disclosure and preview; upload/review grids are separate consumers. */
body[data-ux-surface="portal"] .customer-photo-group{display:grid;gap:var(--kp-space-12);min-width:0}
body[data-ux-surface="portal"] .customer-photo-group [hidden]{display:none!important}
body[data-ux-surface="portal"] .customer-photo-disclosure{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;width:100%;text-align:left;border:0;padding:4px 0;background:transparent;color:var(--kp-ink);font:600 15px var(--kp-font);cursor:pointer}
body[data-ux-surface="portal"] .customer-photo-disclosure:focus-visible{outline:2px solid var(--kp-focus);outline-offset:3px}
body[data-ux-surface="portal"] .customer-photo-disclosure[aria-expanded="true"] svg{transform:rotate(180deg)}
body[data-ux-surface="portal"] .customer-visit-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,140px));gap:8px;min-width:0}
body[data-ux-surface="portal"] .customer-visit-photo-grid .shot{width:100%;min-height:44px}
body[data-ux-surface="portal"] .customer-home-photo-preview{grid-template-columns:repeat(2,minmax(0,140px))}
body[data-ux-surface="portal"] .customer-request-section-helper{margin:4px 0 12px}
body[data-ux-surface="portal"] [data-history-expand][aria-expanded="true"] svg{transform:rotate(180deg)}
@media(max-width:600px){body[data-ux-surface="portal"] .customer-visit-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body[data-ux-surface="portal"] .access-history-header:has([data-history-expand]){grid-template-columns:minmax(0,1fr) 44px 44px}
body[data-ux-surface="portal"] .customer-quote-lines .lines tr:first-child:not(.total) td{border-top:0}
body[data-ux-surface="portal"] :is(.access-account-identity,.customer-current-access){min-width:0}
body[data-ux-surface="portal"] .access-account-email{overflow-wrap:anywhere}

/* Intake help is scoped to the request composer; other portal controls are unchanged. */
#f-aanvraag .customer-intake-label{position:relative;display:block;width:fit-content;max-width:calc(100% - 40px);min-width:0}
#f-aanvraag .customer-intake-label label{display:block;min-width:0}
#f-aanvraag .customer-intake-label:has(#a-info:not([hidden])){padding-top:16px}
#f-aanvraag #a-info{position:absolute;top:0;right:-40px}
#f-aanvraag .customer-intake-info{flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--kp-ink);font:inherit;cursor:pointer;display:grid;place-items:center}
#f-aanvraag .customer-intake-info[hidden],#f-aanvraag .customer-intake-help[hidden]{display:none}
#f-aanvraag .customer-intake-info:focus-visible{outline:2px solid var(--kp-green-500);outline-offset:2px}
#f-aanvraag .customer-intake-help{padding:var(--kp-space-12);border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm,8px);color:var(--kp-ink);font-size:.9rem;font-weight:400}
#f-aanvraag .customer-intake-help p{margin:0 0 var(--kp-space-8)}
#f-aanvraag .customer-intake-help p:last-child{margin:0}
#f-aanvraag .customer-intake-help ul{margin:0 0 var(--kp-space-8);padding-left:20px}
#f-aanvraag .customer-intake-choice{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%}
#f-aanvraag .customer-intake-choice .chip{min-width:0;min-height:44px}
#f-aanvraag .customer-intake-work{border:0;padding:0;margin:0;display:grid;gap:var(--kp-space-16)}
#f-aanvraag .customer-intake-work legend{margin-bottom:var(--kp-space-16)}
#f-aanvraag .customer-intake-choice-info{position:relative}
#f-aanvraag .customer-intake-choice-info .chip{padding-right:34px}
#f-aanvraag #a-yard-info{position:absolute;top:0;right:1px}
#f-aanvraag .customer-intake-info-circle{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--kp-green-500);color:#fff;font-size:12px;font-weight:700}
.customer-intake-info-dialog{width:min(100%,480px);max-height:80dvh;overflow:auto;min-width:0;background:var(--kp-surface);color:var(--kp-ink);padding:var(--kp-space-16);border:1px solid var(--kp-line);border-radius:var(--kp-radius-lg)}
.customer-intake-info-dialog h2{font-size:1rem;margin:0;min-width:0}
.customer-intake-info-dialog .btn{min-width:44px;min-height:44px;flex:none}
@media(max-width:600px){.customer-intake-info-overlay{align-items:end;padding:0}.customer-intake-info-dialog{width:100%;max-height:85dvh;border-radius:var(--kp-radius-lg) var(--kp-radius-lg) 0 0;padding-bottom:calc(var(--kp-space-16) + env(safe-area-inset-bottom,0px))}}

/* Internal text actions stay distinct from legal and document links. */
body[data-ux-surface="portal"] .kp-text-action{color:var(--kp-green-700);text-decoration:none;border:0;background:transparent}
body[data-ux-surface="portal"] .kp-text-action:hover{color:var(--kp-green-900);text-decoration:none}
body[data-ux-surface="portal"] .kp-text-action:focus-visible{outline:2px solid var(--kp-focus);outline-offset:3px;text-decoration:none}
.planning-portal-item .planning-change-context{display:block;max-width:100%;margin-top:10px;color:var(--kp-attention-ink);font-size:var(--kp-text-sm);font-weight:600;overflow-wrap:anywhere}
.planning-portal-item .notice{margin-top:10px}
.planning-portal-item .beurt-notitie{margin-top:10px}
.latest-visit-card .beurt-notitie{padding-left:0}
.family-row{display:grid;grid-template-columns:34px minmax(0,1fr) minmax(110px,max-content) minmax(150px,max-content);align-items:center;gap:12px;min-width:0}
.family-identity{min-width:0}
.family-identity .item-title,.family-identity .meta{overflow-wrap:anywhere}
.family-status{min-width:0}
.family-status .pill{max-width:100%;white-space:normal}
.family-actions{display:flex;justify-content:flex-end;gap:8px;min-width:0}
.family-confirm{width:min(420px,calc(100vw - 32px));max-width:none;border:1px solid var(--kp-line);border-radius:var(--kp-radius-lg);padding:24px;background:var(--kp-surface);color:var(--kp-ink);box-shadow:var(--kp-shadow-3)}
.family-confirm::backdrop{background:rgba(10,20,12,.58)}
.family-confirm h2{margin-bottom:14px}
.family-confirm p{margin-bottom:22px}
.family-confirm .row{justify-content:flex-end}
.family-confirm .family-revoke{background:var(--kp-danger);color:#fff}
.family-confirm .family-revoke:hover{filter:brightness(.92)}
@media(max-width:760px){.family-row{grid-template-columns:34px minmax(0,1fr);align-items:start}.family-status,.family-actions{grid-column:2;justify-content:flex-start}.family-actions .btn{min-height:44px}}
.quote-document .commercial-summary{margin-top:28px}
.quote-document .commercial-summary h3{margin:0 0 16px}
.quote-document .commercial-summary dl{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:4px 14px;margin:0}
.quote-document .commercial-summary dt{color:var(--kp-ink-2)}
.quote-document .commercial-summary dd{margin:0 0 12px!important}
.side .nav-group{margin-top:18px;margin-bottom:6px}
.side .nav button{gap:12px}
@media(max-width:600px){.quote-document .commercial-summary dl{grid-template-columns:1fr;gap:2px}.quote-document .commercial-summary dd{margin-bottom:12px!important}}

.portal-property-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.portal-property-card>div{min-width:0}.portal-property-photo img{display:block;width:100%;max-height:220px;object-fit:contain;object-position:left center;border-radius:var(--kp-radius-sm)}.portal-property-photo img[hidden]{display:none}.portal-property-details .row{flex-wrap:wrap}@media(max-width:900px){.portal-property-card{grid-template-columns:minmax(0,1fr);gap:20px}.portal-property-photo img{max-height:190px}}

/* Customer overview actions share one compact position and interaction. */
.link-btn:disabled{color:var(--kp-ink-2);opacity:.6;cursor:default;text-decoration:none}
body[data-ux-surface="portal"] .home-card-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;min-width:0}
body[data-ux-surface="portal"] .home-card-head>div{min-width:0}
body[data-ux-surface="portal"] .home-card-action{margin-left:auto;justify-self:end;flex:0 0 auto;min-height:44px;max-width:100%;font-size:var(--kp-text-sm)}
/* The empty next-visit card keeps its planning link without making the whole card taller. */
body[data-ux-surface="portal"] .home-next-detail:has(> .kp-empty){position:relative}
body[data-ux-surface="portal"] .home-next-detail:has(> .kp-empty) .home-card-action{position:absolute;top:12px;right:22px;margin:0}
@media(max-width:600px){body[data-ux-surface="portal"] .home-next-detail:has(> .kp-empty) .home-card-action{right:16px;top:6px}}
body[data-ux-surface="portal"] .portal-property-page-head{padding-inline:22px}
body[data-ux-surface="portal"] .portal-property-card{gap:24px}
body[data-ux-surface="portal"] .portal-property-card{grid-template-areas:"heading heading" "photo details";gap:10px 24px}
body[data-ux-surface="portal"] .portal-property-heading{grid-area:heading}
body[data-ux-surface="portal"] .portal-property-photo{grid-area:photo}
body[data-ux-surface="portal"] .portal-property-details{grid-area:details;align-content:space-between;gap:14px}
body[data-ux-surface="portal"] .portal-property-field{display:grid;align-content:start;gap:9px;min-width:0}
body[data-ux-surface="portal"] .portal-property-name-read,body[data-ux-surface="portal"] .portal-property-name-edit{display:flex;align-items:center;gap:12px;min-width:0}
body[data-ux-surface="portal"] .portal-property-name-read{justify-content:space-between}
body[data-ux-surface="portal"] .portal-property-name-edit input{flex:1;min-width:0;background:#171b18;color:#fff;-webkit-text-fill-color:#fff}
@media(max-width:560px){body[data-ux-surface="portal"] .portal-property-name-edit{flex-wrap:wrap}body[data-ux-surface="portal"] .portal-property-name-edit input{flex:1 1 100%}body[data-ux-surface="portal"] .portal-property-name-edit button{flex:1 1 calc(50% - 6px)}}
body[data-ux-surface="portal"] :is(.portal-property-name-read,.portal-property-name-edit)[hidden]{display:none}
body[data-ux-surface="portal"] .portal-property-name-read .item-title{min-width:0;overflow-wrap:anywhere}
body[data-ux-surface="portal"] .portal-property-name-read .link-btn{flex:none}
body[data-ux-surface="portal"] .portal-property-photo,body[data-ux-surface="portal"] .portal-property-details{display:grid;align-content:start;gap:12px;min-width:0}
body[data-ux-surface="portal"] .portal-property-details{align-content:space-between;gap:14px}
body[data-ux-surface="portal"] .portal-property-visual{position:relative;display:grid;place-items:center;overflow:hidden;width:100%;min-height:170px;aspect-ratio:4/3;border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm);background:var(--kp-sunken)}
body[data-ux-surface="portal"] .portal-property-visual img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center}
body[data-ux-surface="portal"] .portal-property-placeholder{display:grid;justify-items:center;align-content:center;gap:8px;padding:18px;text-align:center;color:var(--kp-ink-2);font-size:var(--kp-text-sm)}
body[data-ux-surface="portal"] .portal-property-placeholder svg{color:var(--kp-green-700)}
body[data-ux-surface="portal"] .portal-property-photo-marker{position:absolute;z-index:1;top:10px;left:10px;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm);background:var(--kp-surface);color:var(--kp-green-700);pointer-events:none}
body[data-ux-surface="portal"] .portal-property-photo-marker[hidden]{display:none}
body[data-ux-surface="portal"] .portal-property-placeholder small{font-size:var(--kp-text-xs)}
body[data-ux-surface="portal"] .portal-property-photo-trigger{position:relative;display:grid;align-content:start;grid-template-rows:auto auto;gap:10px;cursor:pointer;min-width:0}
body[data-ux-surface="portal"] .portal-property-photo-trigger input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
body[data-ux-surface="portal"] .portal-property-photo-trigger:focus-within .portal-property-visual{outline:2px solid var(--kp-focus);outline-offset:3px}
body[data-ux-surface="portal"] .portal-property-photo-affordance{color:var(--kp-green-700);font-size:var(--kp-text-sm);font-weight:600}
body[data-ux-surface="portal"] .portal-property-photo-trigger:hover .portal-property-photo-affordance{color:var(--kp-green-900)}
body[data-ux-surface="portal"] .customer-reference-photo-form{gap:8px}
body[data-ux-surface="portal"] .portal-property-address{display:grid;gap:4px;min-width:0}
body[data-ux-surface="portal"] .portal-property-field.portal-property-address{gap:9px}
body[data-ux-surface="portal"] .portal-property-address-label{display:flex;align-items:center;gap:6px;min-height:20px;height:20px}
body[data-ux-surface="portal"] .portal-address-info{position:relative;line-height:1}
body[data-ux-surface="portal"] .portal-address-info summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;color:var(--kp-green-700);cursor:pointer;border-radius:var(--kp-radius-sm)}
body[data-ux-surface="portal"] .portal-address-info summary::-webkit-details-marker{display:none}
body[data-ux-surface="portal"] .portal-address-info summary:focus-visible{outline:2px solid var(--kp-focus);outline-offset:2px}
body[data-ux-surface="portal"] .portal-address-info p{position:absolute;z-index:2;right:0;top:100%;width:min(300px,calc(100vw - 72px));padding:12px;border:1px solid var(--kp-line);border-radius:var(--kp-radius-sm);background:var(--kp-surface);box-shadow:var(--kp-shadow-3);font-size:var(--kp-text-sm);line-height:1.45;color:var(--kp-ink-2)}
@media(max-width:900px){body[data-ux-surface="portal"] .portal-property-card{gap:20px}}
@media(max-width:900px){body[data-ux-surface="portal"] .portal-property-card{grid-template-areas:"heading" "photo" "details";gap:12px}body[data-ux-surface="portal"] .portal-property-details{align-content:start;gap:18px}}
.family-avatar{background:var(--kp-green-100);color:var(--kp-green-900)}
@media(max-width:600px){body[data-ux-surface="portal"] .home-card-head{align-items:flex-start}body[data-ux-surface="portal"] .home-card-action{flex:0 1 auto;text-align:right}body[data-ux-surface="portal"] .portal-property-page-head{padding-inline:22px}body[data-ux-surface="portal"] .portal-property-address{position:relative}body[data-ux-surface="portal"] .portal-address-info{position:static}body[data-ux-surface="portal"] .portal-address-info p{left:0;right:auto;top:44px;width:100%}}
body[data-ux-surface="portal"] .sheet :is(.nav button,.portal-mobile-identity){display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;column-gap:12px;padding-inline:12px}
body[data-ux-surface="portal"] .sheet :is(.nav button,.portal-mobile-identity)>:first-child{grid-column:1;justify-self:center}
body[data-ux-surface="portal"] .sheet :is(.nav button,.portal-mobile-identity)>:nth-child(2){grid-column:2;min-width:0}
html:has(body[data-ux-surface="portal"]>.overlay>.sheet){overflow-y:hidden}
body[data-ux-surface="portal"] .sheet .nav{max-height:none;grid-auto-rows:44px;align-content:start}
body[data-ux-surface="portal"] .sheet .nav button{min-height:44px;padding-block:8px}
body[data-ux-surface="portal"] .sheet .portal-mobile-account{padding-top:4px}
body[data-ux-surface="portal"] .sheet .portal-mobile-account .theme-choice{gap:3px;padding-block:4px;margin:0 0 2px}
body[data-ux-surface="portal"]>[data-portal-meer]{z-index:29}
body[data-ux-surface="portal"]>[data-portal-meer] .sheet{top:auto;bottom:var(--portal-tabbar-height,calc(65px + env(safe-area-inset-bottom,0px)));left:0;right:0;max-height:calc(100dvh - var(--portal-tabbar-height,calc(65px + env(safe-area-inset-bottom,0px))) - env(safe-area-inset-top,0px) - 8px);border-radius:var(--kp-radius-lg) var(--kp-radius-lg) 0 0;padding:8px 12px 0;overflow:hidden}
body[data-ux-surface="portal"]>[data-portal-meer] .sheet::before{display:none}
body[data-ux-surface="portal"]>[data-portal-meer] .sheet .nav{flex:1 1 auto;overflow-y:auto;min-height:0}
body[data-ux-surface="portal"]>[data-portal-meer] .portal-mobile-account{flex:0 0 auto;border-top:1px solid var(--kp-line);overflow:visible;max-height:none;padding-bottom:4px}
body[data-ux-surface="portal"]>[data-portal-meer] .portal-logout{width:100%;border-top:0;margin-top:0}
body[data-ux-surface="portal"] :is(.home-detail,.latest-visit-card){container-type:inline-size}
@container (min-width:256px){body[data-ux-surface="portal"] .home-card-head{flex-wrap:nowrap;column-gap:8px}body[data-ux-surface="portal"] .home-card-action{align-items:flex-start;padding-top:0;white-space:nowrap}}
@container (max-width:255px){body[data-ux-surface="portal"] :is(.home-detail,.latest-visit-card)>.home-card-head{display:contents}body[data-ux-surface="portal"] :is(.home-detail,.latest-visit-card)>.home-card-head>.home-card-action{order:99;justify-self:end;margin-left:0}}

/* Compact document screens; original document markup remains the print source. */
.invoice-document .document-screen-only{display:none}
@media screen{
 .invoice-document .document-print-only,
 .invoice-document[data-document-screen="invoice"]>:not(.document-screen-only){display:none!important}
 .invoice-document .document-screen-only{display:grid}
 .document-invoice-screen{gap:24px;min-width:0}
 .invoice-document .document-screen-header{gap:22px;min-width:0}
 .document-screen-identity{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0}
 .document-screen-identity>div{min-width:0}
 .document-screen-identity h1{font-size:24px;line-height:1.25;margin:0}
 .document-screen-identity .pill{flex:none;max-width:45%;white-space:normal;text-align:center}
 .document-screen-sender p,.document-screen-customer p{font-size:14px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
 .document-screen-sender p+p,.document-screen-customer p+p{margin-top:4px}
 .document-screen-sender p:not(:first-child){color:var(--kp-ink-2)}
 .document-screen-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
 .document-screen-metadata dt{font-size:12px;color:var(--kp-ink-2);margin-bottom:4px}
 .document-screen-metadata dd{font-size:14px;font-weight:600;line-height:1.5}
 .document-screen-work{display:grid;gap:12px;min-width:0}
 .invoice-document .document-screen-work :is(h2,h3){font:600 15px var(--kp-font);margin:0}
 .document-screen-work p{line-height:1.6;overflow-wrap:anywhere}
 .customer-quote-lines>.document-screen-work{margin-bottom:20px}
 .document-screen-totals{display:grid;gap:12px;width:min(100%,420px);margin-left:auto!important;min-width:0}
 .document-screen-totals>div{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:baseline;gap:12px}
 .document-screen-totals dt{font-size:14px;color:var(--kp-ink-2);overflow-wrap:normal}
 .document-screen-totals dd{font-size:15px;text-align:right;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
 .document-screen-totals .document-amount-primary{border-top:1px solid var(--kp-line-strong);padding-top:14px}
 .document-screen-totals .document-amount-primary dt{font-size:16px;font-weight:600;color:var(--kp-ink)}
 .document-screen-totals .document-amount-primary dd{font-size:24px;color:var(--kp-green-800)}
 .invoice-document .document-balance-time{font-size:12px;line-height:1.5;text-align:left;color:var(--kp-ink-2)}
 .document-paid{font-size:14px;line-height:1.5;color:var(--kp-green-800)}
}
@media screen and (max-width:600px){
 .document-invoice-screen{gap:20px}
 .invoice-document .document-screen-header{gap:20px}
 .document-screen-identity{flex-wrap:wrap}
 .document-screen-identity h1{font-size:21px}
 .document-screen-metadata{grid-template-columns:minmax(0,1fr);gap:12px}
 .document-screen-totals{width:100%}
 .document-screen-totals .document-amount-primary dd{font-size:clamp(18px,5.5vw,24px)}
 .document-screen-totals dt{font-size:13px}
}
@media screen{
 .invoice-document .document-invoice-references,
 .invoice-payment-info .document-invoice-references{margin-top:12px;font-size:12px;line-height:1.5;font-style:italic;text-align:left;color:var(--kp-ink-2)}
 .invoice-document .document-screen-total-label{display:inline}
}


/* Customer quotes: presentation only; all amounts and decisions retain their DTO contract. */
.quote-document{max-width:860px;width:100%;justify-self:center;gap:0;padding:28px;overflow-wrap:anywhere}
.quote-document .quote-heading{display:grid;gap:14px;padding-bottom:24px}
.quote-heading-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.quote-document .quote-heading h1{font:700 clamp(24px,3vw,32px)/1.18 var(--kp-font);letter-spacing:-.025em;max-width:28ch}
.quote-reference{color:var(--kp-ink-2);font-size:13px;line-height:1.5}
.quote-property{display:grid;gap:4px;font-size:15px;line-height:1.5}
.quote-dates{display:flex;gap:20px 40px;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--kp-line)}
.quote-dates dt{font-size:12px;color:var(--kp-ink-2);margin-bottom:4px}.quote-dates dd{font-size:14px;font-weight:500}
.quote-approved{display:flex;align-items:flex-start;gap:10px;padding:16px;background:var(--kp-positive-bg);border-radius:12px;color:var(--kp-positive-ink)}
.quote-document .quote-approved h2{font:700 15px/1.4 var(--kp-font);margin:0 0 4px}.quote-approved p{font-size:14px;line-height:1.5}.quote-approved .meta{margin-top:6px}
.quote-document .quote-section{padding:24px 0;border-top:1px solid var(--kp-line);display:grid;gap:14px;min-width:0}
.quote-document .quote-section>h2,.quote-document .quote-sender>h2{font:700 16px/1.4 var(--kp-font);margin:0}
.quote-lines{list-style:none;padding:0;margin:0;display:grid}.quote-line{padding:16px 0;min-width:0;border-bottom:1px solid var(--kp-line)}.quote-line:first-child{padding-top:0}.quote-line:last-child{border-bottom:0;padding-bottom:0}
.quote-line-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;align-items:baseline}
.quote-document .quote-line h3{font:600 15px/1.5 var(--kp-font);margin:0;white-space:pre-line}.quote-line-main>strong{font-size:15px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.quote-description{white-space:pre-line;color:var(--kp-ink-2);font-size:14px;line-height:1.65;max-width:65ch}.quote-line .quote-description{margin-top:8px}.quote-description summary{white-space:normal;cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--kp-positive-ink);font-weight:500}.quote-description summary::after{content:'+';margin-left:10px}.quote-description[open] summary::after{content:'−'}.quote-description p{margin:4px 0 0}
.quote-totals{width:min(100%,400px);justify-self:end;display:grid;gap:12px;font-variant-numeric:tabular-nums}.quote-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px 24px}.quote-totals dt{color:var(--kp-ink-2);font-size:14px}.quote-totals dd{text-align:right;font-size:15px}.quote-totals .quote-grand-total{border-top:1px solid var(--kp-line-strong);padding-top:18px;margin-top:4px;flex-wrap:wrap}.quote-grand-total dt{font-size:16px;font-weight:600;color:var(--kp-ink)}.quote-grand-total dd{font-size:clamp(25px,4vw,32px);font-weight:700;letter-spacing:-.025em;margin-left:auto}
.quote-payment p,.quote-actions p{font-size:14px;line-height:1.6;max-width:65ch}.quote-document .commercial-summary dl{display:grid;gap:14px}.commercial-summary dl>div{display:grid;gap:4px}.quote-document .commercial-summary dt{font-size:12px;color:var(--kp-ink-2)}.quote-document .commercial-summary dd{font-size:14px;line-height:1.6;max-width:65ch}
.quote-terms .link-btn{justify-self:start;min-height:44px}.quote-actions:empty{display:none}.quote-document .quote-actions .row{flex-wrap:wrap}.quote-document #quote-print{justify-self:start;margin-top:20px;min-height:44px}.quote-sender{border-top:1px solid var(--kp-line);padding-top:20px}
.quote-list-item{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0;min-width:0}.quote-list-item+.quote-list-item{border-top:1px solid var(--kp-line)}.quote-list-item:first-child{padding-top:0}.quote-list-item:last-child{padding-bottom:0}.quote-list-copy{display:grid;gap:7px;min-width:0}.quote-list .quote-list-copy h2{font:600 18px/1.4 var(--kp-font);margin:0}.quote-list-copy .pill{justify-self:start}.quote-list-end{display:grid;gap:12px;justify-items:end;flex:none}.quote-list-amount{font-size:20px;font-variant-numeric:tabular-nums;white-space:nowrap}.quote-list-end .btn{min-height:44px}
@media(max-width:560px){.quote-document{padding:20px;min-width:0}.quote-document .quote-section{padding:20px 0}.quote-line-main{gap:10px 14px}.quote-document .quote-line h3,.quote-line-main>strong{font-size:14px}.quote-list-item{align-items:flex-start;flex-wrap:wrap;gap:14px}.quote-list-end{width:100%;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.quote-list-amount{font-size:20px}.quote-approved{padding:12px}.quote-dates{gap:14px 26px}}
@media(max-width:350px){.quote-line-main{grid-template-columns:minmax(0,1fr)}.quote-line-main>strong{justify-self:end}.quote-totals>div{flex-wrap:wrap}.quote-totals dd{margin-left:auto}}
@media print{.quote-document .quote-section{display:block;padding:3mm 0}.quote-document .quote-heading{display:block;padding-bottom:3mm}.quote-document .quote-heading>*+*{margin-top:2mm}.quote-document .quote-heading h1{font-size:18pt}.quote-dates{display:flex;gap:12mm}.quote-document .quote-section>h2{font-size:11pt;margin-bottom:3mm}.quote-line{break-inside:avoid;padding:3mm 0}.quote-line-main{display:flex;justify-content:space-between}.quote-description{max-width:none;white-space:pre-line}.quote-description summary{display:none}.quote-description:not([open])>p{display:block!important}.quote-totals{margin-left:auto}.quote-totals .quote-grand-total dd{font-size:17pt}.quote-sender,.quote-actions{display:none}.quote-document:has(.quote-approved) .quote-approved{break-inside:avoid}.quote-document .quote-lines{display:block}}

.quote-document .pill.sun{background:var(--kp-attention-bg);color:var(--kp-attention-ink)}
.quote-document .quote-actions:not(:has(*)){display:none}

.quote-print-description{display:none}
@media print{.quote-document details.quote-description{display:none}.quote-document .quote-print-description{display:block!important}}

/* Keep each stored quote line as one equally styled work block and one price. */
.quote-document .quote-line-main{display:block}
.quote-document .quote-work-lead{margin:0;font-weight:400}
.quote-document .quote-line-price{margin:12px 0 0;text-align:right;font-size:14px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
