/* Leadzloop · kleurenflow r19 (6 nov 2026), laadt na lzkleur.css. Terugdraaien: de regel met lzkleur2.css uit index.html halen.
   1. Telefoon: elke pijplijn (facturen, uitvoering, schouw, ...) toont alle stappen naast elkaar om te vegen, met het oranje → groene randje.
   2. Fase-knoppen in de kleur van hun stap.
   3. Stappenflow bovenaan Betalingen, Uitgaven & bonnetjes en Btw (.lzf). */

/* 1. telefoon: alle stappen zichtbaar, vegen van stap naar stap */
@media (max-width:640px){
  html .lzh .lzh-pb.fw-pb.vb{display:flex!important;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;margin:10px -2px 0;padding:2px 2px 12px;scrollbar-width:none}
  html .lzh .lzh-pb.fw-pb.vb::-webkit-scrollbar{display:none}
  html .lzh .lzh-pb.fw-pb.vb>.lzh-pc{display:flex!important;flex-direction:column;gap:12px;flex:0 0 84%;min-width:0;scroll-snap-align:start}
  html .lzh .lzh-pb.fw-pb.vb>.lzh-pc .lzh-pct{display:none}
}

/* 2. fase-knoppen: gekleurd randje onder, gekozen knop helemaal in de stapkleur */
html .lzh .fw-phases button[data-lzkc]{border-bottom:4px solid var(--fc)}
html .lzh .fw-phases button[data-lzkc][aria-selected="true"]{background:var(--fc)!important;border-color:var(--fc)!important;box-shadow:0 3px 10px -4px var(--fc)!important;color:#fff}

/* 3. stappenflow (Betalingen, Uitgaven, Btw) */
html .lzh .fw-flowc .lzh-pb.lzf{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));grid-auto-flow:row;gap:12px;overflow:visible;margin:12px 0 0;padding:0}
html .lzh .fw-flowc .lzh-pb.lzf>.lzh-pc{display:flex!important;flex-direction:column;gap:10px;min-width:0;position:relative}
html .lzh .fw-flowc .lzh-pb.lzf>.lzh-pc:not(:last-child)::after{content:"";position:absolute;right:-11px;top:30px;z-index:2;width:10px;height:14px;background:var(--pc,#94A3B8);clip-path:polygon(0 0,100% 50%,0 100%)}
html .lzh .lzf-k{box-sizing:border-box;display:grid!important;gap:4px;align-content:start;width:100%;min-height:104px;margin:0;font:inherit;text-align:left;cursor:default;appearance:none;-webkit-appearance:none;padding:14px 14px 12px 18px!important}
html .lzh a.lzf-k,html .lzh button.lzf-k{cursor:pointer}
html .lzh .lzf-k>b{font-size:clamp(22px,2.4vw,28px);font-weight:800;line-height:1.1;color:var(--pc,var(--hz-tx));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html .lzh .lzf-k>small{font-size:12.5px;line-height:1.3;color:var(--hz-t2)}
html .lzh .lzf-k>em{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font-style:normal;font-size:12.5px;font-weight:700;color:var(--hz-ac)}
html .lzh .lzf-k>em .lzh-i{width:13px;height:13px}
html[data-theme="dark"] .lzh .lzf-k>b{color:color-mix(in srgb,var(--pc,#fff) 70%,#fff)}
@media (max-width:640px){
  html .lzh .fw-flowc .lzh-pb.lzf{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  html .lzh .fw-flowc .lzh-pb.lzf>.lzh-pc{flex:none!important}
  html .lzh .fw-flowc .lzh-pb.lzf>.lzh-pc::after{display:none}
  html .lzh .fw-flowc .lzh-vh{height:auto;min-height:64px;padding:10px 10px 10px 12px}
  html .lzh .lzf-k{min-height:92px;padding:12px 10px 10px 14px!important}
  html .lzh .lzf-k>b{font-size:21px}
}

/* 4. Mijn overzicht (7 nov): ook kleur als de cijfers op 0 staan, zoals bij Leads & verkoop.
   Elke cijfertegel met een fasekleur (--fc) krijgt bovenaan een lijn in die kleur en een vulbalkje met een getinte achtergrond.
   Geldt voor Mijn werk, Leads & verkoop, Inkoop & voorraad en Werkuitvoering. Terugdraaien: dit blok weghalen. */
html #lzh .lzh-s[style*="--fc"]::before{height:4px!important;background:linear-gradient(90deg,var(--fc),color-mix(in srgb,var(--fc) 45%,#fff))!important;opacity:1!important}
html #lzh .lzh-s[style*="--fc"] .lzp-sb{background:color-mix(in srgb,var(--fc) 20%,transparent)}
html #lzh #lzh-mwn .lzh-s{padding-bottom:18px}

/* 5. Beheer & instellingen (7 nov): tabbalk van donkeroranje via lichtoranje naar lichtgroen en dan steeds donkerder groen.
   Alleen de balk van Bedrijf & instellingen (.lzc-bi); "Alle categorieën" blijft navy. Terugdraaien: dit blok weghalen. */
html .lzc-bi .fw-cnav-in a:nth-child(2){--tc:#C2410C!important}
html .lzc-bi .fw-cnav-in a:nth-child(3){--tc:#EA580C!important}
html .lzc-bi .fw-cnav-in a:nth-child(4){--tc:#F97316!important}
html .lzc-bi .fw-cnav-in a:nth-child(5){--tc:#FB923C!important}
html .lzc-bi .fw-cnav-in a:nth-child(6){--tc:#4ADE80!important}
html .lzc-bi .fw-cnav-in a:nth-child(7){--tc:#22C55E!important}
html .lzc-bi .fw-cnav-in a:nth-child(8){--tc:#16A34A!important}
html .lzc-bi .fw-cnav-in a:nth-child(9){--tc:#15803D!important}
html .lzc-bi .fw-cnav-in a:nth-child(10){--tc:#166534!important}
html .lzc-bi .fw-cnav-in a:nth-child(n+11){--tc:#14532D!important}

/* 6. Afspraakvenster (7 nov): soortknoppen (Adviesgesprek, Schouw, Installatie, Onderhoud / service) donkerblauw, zoals de navy koppen.
   De gekozen soort houdt het vinkje en krijgt een ring. Terugdraaien: dit blok weghalen. */
html .apk .apk-t span{background:linear-gradient(135deg,#123A9C 0%,#0A1F5C 100%);border-color:transparent;color:#fff}
html .apk .apk-t:hover span{background:linear-gradient(135deg,#1A47B8 0%,#0E2A78 100%)}
html .apk .apk-t input:checked+span{background:linear-gradient(135deg,#123A9C 0%,#0A1F5C 100%);box-shadow:0 0 0 2px var(--hz-bg,#fff),0 0 0 4px #0A1F5C}
html .apk .apk-t input:focus-visible+span{outline-color:#0A1F5C}
