/* =====================================================================
   Comfort Home CRM v175 – designlaag
   Laatste stylesheet. Eén merkpalet (groen van logo en website), eigen
   lettertype, rustige kaarten en duidelijke knoppen. Functionele kleuren
   (gloeiheet/warm/blauw, betaald/open) blijven ongewijzigd.
   ===================================================================== */
@font-face{font-family:"Plus Jakarta Sans";src:url("/assets/fonts/plus-jakarta-sans-var.woff") format("woff");font-weight:200 800;font-style:normal;font-display:swap}

:root{
  --g:#0a3d2e;--g2:#0f5a41;--lime:#11a356;--bg:#f3f6f4;--ink:#10241c;--mut:#62756c;--line:#dfe8e2;--white:#fff;
  --ch-deep:#062e24;--ch-deep2:#0a3d2e;--ch-green:#11a356;--ch-green-d:#0c8a47;--ch-mint:#e9f6ee;--ch-mint2:#f4faf6;
  --ch-ink:#10241c;--ch-mut:#62756c;--ch-line:#dfe8e2;--ch-card:#fff;
  --ch-r:16px;--ch-r-sm:11px;
  --ch-sh:0 1px 2px rgba(6,46,36,.04),0 6px 22px rgba(6,46,36,.06);
  --ch-sh-h:0 2px 6px rgba(6,46,36,.06),0 14px 34px rgba(6,46,36,.10);
  --ch-font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

/* ---------- basis ---------- */
html body{font-family:var(--ch-font)!important;background:var(--bg)!important;color:var(--ch-ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body button,body input,body select,body textarea{font-family:inherit}
body h1,body h2,body h3{letter-spacing:-.02em}
::selection{background:#bfe8cf}
*:focus-visible{outline:3px solid rgba(17,163,86,.45);outline-offset:2px}

/* ---------- zijbalk ---------- */
body .side{background:linear-gradient(180deg,#062e24 0%,#083a2c 55%,#0a3d2e 100%)!important;padding:16px 12px 20px!important;border-right:1px solid rgba(255,255,255,.04);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
body .side::-webkit-scrollbar{width:6px}
body .side::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:6px}
body .sideLogo{display:flex!important;align-items:center;gap:11px;background:transparent!important;box-shadow:none!important;padding:6px 8px 16px!important;margin:0 0 6px!important;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0!important}
body .sideLogo img{width:48px!important;height:48px!important;object-fit:contain;background:#fff;border-radius:12px;padding:4px;box-shadow:0 4px 14px rgba(0,0,0,.22);flex:none;margin:0!important}
body .sideLogo div{color:#fff!important;font-size:15px!important;font-weight:800!important;letter-spacing:-.01em!important;line-height:1.15;text-transform:none!important;opacity:1!important;margin:0!important}
body .sideLogo div::after{content:"Klantsysteem";display:block;font-size:11.5px;font-weight:600;color:rgba(214,240,226,.62);letter-spacing:.02em;margin-top:2px}
body .side .navSec{color:rgba(214,240,226,.48)!important;font-size:10.5px!important;letter-spacing:.12em!important;margin:16px 0 6px!important;padding:0 10px!important}
body .side .nav button{display:flex!important;align-items:center;gap:11px;color:rgba(232,245,238,.86)!important;background:transparent!important;font-size:13.5px!important;font-weight:600!important;padding:8px 10px!important;margin:1px 0!important;border-radius:10px!important;box-shadow:none!important;min-height:36px;transition:background .15s,color .15s}
body .side .nav button:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
body .side .nav button.active{background:rgba(17,163,86,.18)!important;color:#fff!important;box-shadow:inset 3px 0 0 #3fd17f!important}
body .side .nav button .ch175i{width:18px;height:18px;flex:none;opacity:.85}
body .side .nav button.active .ch175i{opacity:1;color:#5fe39a}
body .side .nav button .miBadge{margin-left:auto;background:#11a356!important;color:#fff!important;border-radius:999px;font-size:11px;padding:1px 7px}

/* ---------- bovenbalk ---------- */
body .top{background:rgba(255,255,255,.88)!important;backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);box-shadow:none!important;border-bottom:1px solid var(--ch-line);height:66px;gap:10px}
body .top .search{border:1px solid var(--ch-line)!important;background:#f6f9f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362756c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center/17px no-repeat!important;padding-left:40px!important;border-radius:12px!important;height:42px;font-size:14px!important;transition:border-color .15s,box-shadow .15s,background-color .15s}
body .top .search:focus{background-color:#fff!important;border-color:#9fd8b6!important;box-shadow:0 0 0 4px rgba(17,163,86,.12)!important;outline:0}
body .top .topright{gap:8px}
body .top .topright button{height:42px;border-radius:12px!important;font-size:14px!important;font-weight:700!important;padding:0 14px!important;display:inline-flex!important;align-items:center;gap:7px}
body .top .topright kbd{font:600 11px/1 var(--ch-font);background:#eef3f0;border:1px solid var(--ch-line);border-radius:6px;padding:3px 6px;color:var(--ch-mut)}

/* ---------- knoppen ---------- */
body .primary,body button.primary{background:var(--ch-green)!important;background-image:none!important;color:#fff!important;border:0!important;box-shadow:0 1px 2px rgba(6,46,36,.12),0 6px 16px rgba(17,163,86,.22)!important;transition:background .15s,transform .12s,box-shadow .15s}
body .primary:hover{background:var(--ch-green-d)!important}
body .primary:active{transform:translateY(1px)}
body .ghost,body button.ghost{background:#fff!important;border:1px solid var(--ch-line)!important;color:var(--ch-ink)!important;transition:border-color .15s,background .15s}
body .ghost:hover{border-color:#b9dcc7!important;background:var(--ch-mint2)!important}
body button:disabled{opacity:.55;cursor:not-allowed}

/* ---------- invoervelden ---------- */
body .content input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),body .content select,body .content textarea,body dialog input:not([type=checkbox]):not([type=radio]),body dialog select,body dialog textarea{border:1px solid var(--ch-line);border-radius:var(--ch-r-sm);background:#fff;color:var(--ch-ink);transition:border-color .15s,box-shadow .15s}
body .content input:focus,body .content select:focus,body .content textarea:focus,body dialog input:focus,body dialog select:focus,body dialog textarea:focus{border-color:#9fd8b6!important;box-shadow:0 0 0 4px rgba(17,163,86,.12)!important;outline:0}

/* ---------- pagina-koppen ---------- */
body .content{padding:28px 32px 48px!important}
body .page>.title{margin-bottom:20px!important;align-items:flex-end}
body .page>.title h1{font-size:28px!important;font-weight:800!important;letter-spacing:-.03em!important;color:var(--ch-ink)!important;line-height:1.15}
body .page>.title .sub{color:var(--ch-mut)!important;font-size:14px!important;margin-top:4px}
body .ch148-eyebrow{color:var(--ch-green-d)!important;letter-spacing:.12em}

/* ---------- kaarten ---------- */
body .card{border-radius:var(--ch-r)!important;border:1px solid var(--ch-line)!important;box-shadow:var(--ch-sh)!important}
body .card h2,body .card h3{color:var(--ch-ink)}

/* Tegels 'Vandaag' */
body .act{border-radius:14px!important;border:1px solid var(--ch-line)!important;background:#fff!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s,transform .15s!important;align-items:flex-start}
body .act:hover{border-color:#b9dcc7!important;box-shadow:var(--ch-sh-h)!important;transform:translateY(-1px)}
body .act>i{width:38px!important;height:38px!important;min-width:38px;display:inline-flex!important;align-items:center;justify-content:center;border-radius:11px;background:var(--ch-mint);color:var(--ch-green-d);font-style:normal}
body .act>i .ch175i{width:20px;height:20px}
body .act.chvHot{border-color:#f3c9a4!important;background:linear-gradient(180deg,#fffaf5,#fff)!important}
body .act.chvHot>i{background:#fff0e1;color:#c25a0b}
body .act b{color:var(--ch-ink)!important;font-weight:750!important}
body .act span{color:var(--ch-mut)!important}

/* KPI-tegels (mobiele home) */
body .ch173Kpi>span .ch175i{width:18px;height:18px;color:var(--ch-green-d)}

/* Avatars in lijsten: rustige merkkleuren */
body .qsAv{font-weight:800}

/* Tabellen */
body .content table th{font-size:11.5px!important;letter-spacing:.06em;text-transform:uppercase;color:var(--ch-mut)!important;font-weight:750!important}
body .content table tr:hover td{background:var(--ch-mint2)}

/* Dialogen */
body dialog{border-radius:20px!important;border:1px solid var(--ch-line)!important;box-shadow:0 30px 80px rgba(6,46,36,.25)!important}
body dialog::backdrop{background:rgba(6,30,24,.45);backdrop-filter:blur(3px)}

/* Spraakknop rechtsonder in merkgroen */
body #chvFab,body .chvFab{background:var(--ch-green)!important;box-shadow:0 10px 26px rgba(17,163,86,.35)!important}

/* ---------- foutjes in de opmaak ---------- */
/* 'Laatste contact / volgende actie' viel in de smalle avatarkolom (één woord per regel) */
body .qsFuRow>.ch165Contact,body [class*="Row"]>.ch165Contact{grid-column:1/-1}
body .ch165Contact small{white-space:normal}

/* ---------- dashboard (desktop) ---------- */
@media(min-width:900px){
  body #dashboard>.title{margin-bottom:22px!important}
  body #dashboard>.title h1{font-size:30px!important}
}

/* ---------- mobiel ---------- */
@media(max-width:899px){
  body .content{padding:14px 14px 96px!important}
  body .page>.title h1{font-size:24px!important}
  body .ch159Hero{background:linear-gradient(135deg,#062e24 0%,#0a3d2e 55%,#0f5a41 100%)!important}
  body .bottomnav button.active,body .mnav button.active,body nav.tabbar button.active{color:var(--ch-green-d)!important}
}

/* Login */
body .loginpage{background:radial-gradient(1200px 600px at 20% -10%,#0f5a41 0%,transparent 60%),linear-gradient(160deg,#062e24,#0a3d2e)!important}
body .login{border-radius:22px!important;box-shadow:0 30px 80px rgba(0,0,0,.35)!important}

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

/* ---------- resterende blauwe onderdelen naar het merkpalet ---------- */
/* (de status 'Blauw' voor koude leads blijft bewust blauw) */
body button.soft{background:var(--ch-mint)!important;color:var(--ch-deep2)!important}
body button.soft:hover{background:#dcefe3!important}
body button.blue:not([data-sales-filter]){background:var(--ch-mint)!important;color:var(--ch-deep2)!important;border-color:#cfe6d8!important}
body .ic.call,body a.ic.call{background:var(--ch-mint)!important;color:var(--ch-green-d)!important}
body .ic.open,body button.ic.open{background:var(--ch-deep2)!important;color:#fff!important}
body .ic.open:hover{background:var(--ch-deep)!important}
body .ch165Contact button{background:var(--ch-mint2)!important;color:var(--ch-deep2)!important;border:1px solid var(--ch-line)!important}
body .ch165Contact button:hover{background:var(--ch-mint)!important}
body div.stat{border-top-color:var(--ch-green)!important}
body #ch162Add{background:var(--ch-green)!important;border-color:var(--ch-green)!important;color:#fff!important}
body #appTitle{color:var(--ch-ink)!important}
body .ch160RowMoney,body .ch163ViewLine{border-color:var(--ch-line)!important}
body .ch163Views{color:var(--ch-mut)!important}
.ch175BankNote{background:var(--ch-mint2);border:1px solid var(--ch-line);border-radius:10px;padding:10px 12px;font-size:13.5px;color:var(--ch-deep2);margin:6px 0 4px}
/* v173-dialogen in de huisstijl */
body .ch173Primary{background:var(--ch-green)!important;color:#fff!important}
body .ch173Modal small{color:var(--ch-green-d)!important}
/* mobiele home (v159/v173) in het merkpalet */
html body .ch173Home{--navy:#10241c}
html body .ch173Home .ch159Hero,html body #ch159Home .ch159Hero{background:linear-gradient(120deg,#062e24 0%,#0a3d2e 55%,#0f5a41 100%)!important}
html body .ch159Hello h2{color:var(--ch-ink)!important}
html body .ch173Kpi,html body .ch173Kpi b{color:var(--ch-ink)!important}
html body .ch160HomeQuick [data-home-new]{background:var(--ch-green)!important;color:#fff!important;border:0!important;box-shadow:0 6px 16px rgba(17,163,86,.22)!important}
html body .ch160HomeQuick [data-home-voice]{background:var(--ch-mint)!important;color:var(--ch-green-d)!important}
html body [data-bank],html body [data-preview]{color:var(--ch-deep2)!important;border-color:var(--ch-line)!important}
/* Dashboard desktop: begroeting → verkoop in beeld → vandaag → inplannen → opvolgen → de rest */
@media(min-width:900px){
  body #dashboard.page.active{display:flex!important;flex-direction:column}
  body #dashboard>*{order:10}
  body #dashboard>.title{order:0}
  body #dashboard>#ch159Home{order:1}
  body #dashboard>#actie{order:2}
  body #dashboard>#qsPlanDash{order:3}
  body #dashboard>#qsFuDash{order:4}
  body #dashboard>.card,body #dashboard>#ch159Home{margin-bottom:18px}
}
/* Zijbalk: logo groot genoeg om te lezen, zonder het hoge witte blok */
body .sideLogo{flex-direction:column;align-items:stretch!important;gap:8px!important;padding:4px 4px 14px!important}
body .sideLogo img{width:100%!important;height:auto!important;max-height:104px;object-fit:contain;padding:10px 14px 8px!important;border-radius:14px!important;box-sizing:border-box}
body .sideLogo div{font-size:0!important;text-align:center}
body .sideLogo div::after{content:"CRM · Klantsysteem";font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:rgba(214,240,226,.6);margin:0}
body .sideLogo{border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;outline:0!important}
body .ch175h{display:inline-flex;width:30px;height:30px;border-radius:9px;background:var(--ch-mint);color:var(--ch-green-d);align-items:center;justify-content:center;margin-right:10px;vertical-align:-7px}
body .ch175h .ch175i{width:17px;height:17px}

body .card h3[data-ch175]{display:flex;align-items:center;justify-content:flex-start;gap:0}
body .card h3[data-ch175]>small{margin-left:auto}

/* ---------- mobiele lijstkaarten ---------- */
/* menuknop (•••) viel over de knop 'Offerte +' */
body .ch159Swipe .leadcard .lcTop{padding-right:40px}
body .ch159Swipe>.ch159SwipeMore{z-index:3}
@media(max-width:899px){
  /* klantkaarten: binnenruimte en knoppen die niet van het scherm lopen */
  body #klanten .customerRow{padding:14px 16px!important}
  body #klanten .customerRow>div{min-width:0}
  body #klanten .customerRow .chKs,body #klanten .customerRow .chKsHost,body #klanten .customerRow>div:last-child>div{flex-wrap:wrap!important;overflow:visible!important;max-width:100%}
  body #klanten .customerRow>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
}
/* actieve keuzes (tabjes, dagkeuze) in merkgroen i.p.v. donkerblauw */
body .segs .on,body .segs button.on{background:var(--ch-deep2)!important;color:#fff!important;border-color:var(--ch-deep2)!important}
body #planning button.on{background:var(--ch-deep2)!important;color:#fff!important}

/* ---------- snelheid bij lange lijsten ----------
   De browser tekent alleen de kaarten die in beeld zijn; de rest wordt overgeslagen
   tot je erheen scrolt. Gedrag en inhoud blijven gelijk. */
body #leads .leadcard,body #offertes .aRow,body #klanten .customerRow,body #mQuotes .aRow,body #mInvoices .aRow,body .qsFuRow,body #verkoopkansen .card{content-visibility:auto;contain-intrinsic-size:auto 180px}
body #klanten .customerRow{contain-intrinsic-size:auto 120px}
body #offertes .aRow,body #mQuotes .aRow,body #mInvoices .aRow{contain-intrinsic-size:auto 76px}
