/* Leadzloop · pagina-ontwerp harmonisatie v1
   Gedeelde, lichte afwerking voor alle paginafamilies. Behoudt logo, banners,
   kleurpalet, bestaande inhoud, acties en instellingen. */
@media screen{
  /* Onderdelen van een hoofdstuk blijven één duidelijke, horizontaal navigeerbare rij. */
  html body #view .fw-cnav{min-width:0;max-width:100%}
  html body #view .fw-cnav-in{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;
    min-width:0;max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;
    overscroll-behavior-inline:contain;scrollbar-width:none;
    padding:5px!important;border-radius:16px!important;
  }
  html body #view .fw-cnav-in::-webkit-scrollbar,
  html body #view .ipz-nav-in::-webkit-scrollbar{display:none!important}
  html body #view .fw-cnav-in>a{
    flex:0 0 auto!important;grid-column:auto!important;width:auto!important;max-width:none!important;
    min-height:42px;white-space:nowrap!important;scroll-snap-align:start;
    transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
  }
  /* Inzichten: de lange tabrij blijft één rij in plaats van een losse eindtab. */
  html body #view .ipz-nav-in{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;
    min-width:0;max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;
    overscroll-behavior-inline:contain;scrollbar-width:none;scroll-snap-type:x proximity;
  }
  html body #view .ipz-nav-in>a{
    flex:0 0 auto!important;grid-column:auto!important;width:auto!important;max-width:none!important;
    white-space:nowrap!important;scroll-snap-align:start;
  }
  /* Vaste ritmes over de werkgebieden: Inkoop, Werkuitvoering, Financiën,
     Marketing, Verkoop, Inzicht en Beheer. */
  html body #view :is(#lzaf,#fwp,#ipz,#bz,#pd-ps,#pc-schouwen,#pc-installaties,#pc-werkbonnen,#pc-onderhoud){
    --lz-page-gap:16px;
  }
  html body #view :is(#lzaf,#fwp,#ipz,#bz,#pd-ps,#pc-schouwen,#pc-installaties,#pc-werkbonnen,#pc-onderhoud)
    :is(.lzh-card:not(.lzh-hero),.bz-card,.fw-oc){
    scroll-margin-top:16px;
  }
  /* Actieve bediening voelt overal hetzelfde en blijft herkenbaar klikbaar. */
  html body #view :is(.fw-cnav-in,.ipz-nav-in)>a{
    -webkit-tap-highlight-color:transparent;
  }
  html body #view :is(.fw-cnav-in,.ipz-nav-in)>a:focus-visible{
    outline:3px solid rgba(39,145,255,.68)!important;outline-offset:2px!important;
  }
  html body #view :is(.fw-cnav-in,.ipz-nav-in)>a:active{transform:translateY(1px)}
  /* Brede lijsten blijven binnen hun kaart en kunnen op touch-apparaten horizontaal schuiven. */
  html body #view :is(.lzh-card,.bz-card,.fw-oc) :is(.table-wrap,.tbl-wrap,.table-scroll,.ipz-tw,.vk-tw,.fin-tw){
    min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }
  /* Houd kaartkoppen en actierijen netjes naast elkaar; laat lange labels gecontroleerd afbreken. */
  html body #view :is(.lzh-card,.bz-card,.fw-oc) :is(.lzh-hd,.bz-hd,.fw-oh){
    min-width:0;
  }
  html body #view :is(.lzh-card,.bz-card,.fw-oc) :is(.lzh-hd,.bz-hd,.fw-oh) :is(h2,h3,.lzh-tt,.bz-tt){
    min-width:0;overflow-wrap:anywhere;
  }
}
@media (max-width:900px){
  html body #view .fw-cnav-in,html body #view .ipz-nav-in{
    scroll-padding-inline:12px;
  }
}
@media (max-width:640px){
  html body #view .fw-cnav-in,html body #view .ipz-nav-in{
    gap:6px!important;padding:4px!important;border-radius:14px!important;
  }
  html body #view .fw-cnav-in>a,html body #view .ipz-nav-in>a{
    min-height:44px;padding-inline:11px!important;font-size:13px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  html body #view :is(.fw-cnav-in,.ipz-nav-in)>a{transition:none!important}
}


/* Gelijke infinity-lus in klantdossier: dezelfde afmeting en ankerpositie
   als Mijn overzicht op desktop, tablet en mobiel. */
@media screen{
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{
    top:16px!important;right:24px!important;bottom:auto!important;left:auto!important;
    width:260px!important;height:149px!important;opacity:1!important;background-image:url("lz-lus-blauw-cyaan-v1.svg")!important;background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important;
  }
  /* Dossierkop, contactgegevens en acties mogen de kaartbreedte benutten,
     maar blijven binnen de viewport en wringen niet door de infinity-zone. */
  html body #vkpn.vk-pn,html body #vkpn.vk-pn *{box-sizing:border-box}
  html body #vkpn.vk-pn{min-width:0;max-width:100vw;overflow-x:hidden}
  html body #vkpn .vk-pt,html body #vkpn .vk-ph{min-width:0;max-width:calc(100% - 28px)}
  html body #vkpn .vk-pt .vk-who{min-width:0;max-width:100%;align-items:flex-start}
  html body #vkpn .vk-pt .vk-who h2{min-width:0;max-width:calc(100% - 300px);overflow-wrap:anywhere}
  html body #vkpn .vk-pt .vk-tags,html body #vkpn .vk-pt .vk-pcon,
  html body #vkpn .vk-pt .vk-acts{min-width:0;max-width:100%;flex-wrap:wrap}
  html body #vkpn .vk-pt :is(p,a,button,span){overflow-wrap:anywhere}
  html body #vkpn :is(.vk-tabs,.vk-nav,.vk-subnav){min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
}
@media screen and (min-width:901px) and (max-width:1100px){
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{top:16px!important;right:18px!important;width:240px!important;height:137px!important}
  html body #vkpn .vk-pt .vk-who h2{max-width:calc(100% - 278px)}
}
@media screen and (min-width:641px) and (max-width:900px){
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{top:12px!important;right:12px!important;width:230px!important;height:131px!important}
  html body #vkpn .vk-pt .vk-who h2{max-width:calc(100% - 258px)}
}
@media screen and (max-width:640px){
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{top:6px!important;right:2px!important;width:172px!important;height:98px!important}
  html body #vkpn .vk-pt .vk-who h2{max-width:calc(100% - 190px)}
}
@media (prefers-reduced-motion:reduce){
  html body #vkpn .vk-pt::after{animation:none!important}
}



/* Eén infinity-component voor alle paginakoppen, geschaald op dezelfde manier
   als de lus op Mijn overzicht. De welkomstbanner blijft de visuele referentie. */
@media screen{
  #view#view#view#view#view#view :is(.lzh-hero:not(.lzhs-on),.u2-head,.wrap>.ph.lzs-ph,.lzst>.lzst-hero,#bz .bz-hero,.vk-hero,.fw-hero,.pd-hero,.mjw-hero,.ipz-hero,.mk-hero)::before{
    content:""!important;display:block!important;position:absolute!important;z-index:0!important;pointer-events:none!important;
    top:50%!important;right:24px!important;left:auto!important;bottom:auto!important;
    width:clamp(120px,32vw,393px)!important;height:clamp(62px,17vw,198px)!important;
    transform:translateY(-50%)!important;opacity:1!important;
    background-image:url("lz-lus-blauw-cyaan-v1.svg")!important;background-repeat:no-repeat!important;
    background-position:center!important;background-size:contain!important;
  }
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{
    top:50%!important;right:24px!important;left:auto!important;bottom:auto!important;
    width:clamp(120px,32vw,393px)!important;height:clamp(62px,17vw,198px)!important;
    transform:translateY(-50%)!important;opacity:1!important;
    background-image:url("lz-lus-blauw-cyaan-v1.svg")!important;background-repeat:no-repeat!important;
    background-position:center!important;background-size:contain!important;
  }
  /* Oude kopbalken tonen de lus als achtergrondlaag; houd die op dezelfde maat. */
  #view#view#view#view#view#view .u2-head{
    background-image:url("lz-lus-blauw-cyaan-v1.svg"),linear-gradient(115deg,#071d4e 0%,#083573 64%,#065da2 100%)!important;
    background-size:auto clamp(62px,17vw,198px),cover!important;
    background-position:right 24px center,center!important;background-repeat:no-repeat!important;
  }
}
@media screen and (min-width:641px) and (max-width:900px){
  #view#view#view#view#view#view :is(.lzh-hero:not(.lzhs-on),.u2-head,.wrap>.ph.lzs-ph,.lzst>.lzst-hero,#bz .bz-hero,.vk-hero,.fw-hero,.pd-hero,.mjw-hero,.ipz-hero,.mk-hero)::before{right:12px!important}
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{right:12px!important}
  #view#view#view#view#view#view .u2-head{background-position:right 12px center,center!important}
}
@media screen and (max-width:640px){
  #view#view#view#view#view#view :is(.lzh-hero:not(.lzhs-on),.u2-head,.wrap>.ph.lzs-ph,.lzst>.lzst-hero,#bz .bz-hero,.vk-hero,.fw-hero,.pd-hero,.mjw-hero,.ipz-hero,.mk-hero)::before{right:10px!important}
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{right:10px!important}
  #view#view#view#view#view#view .u2-head{background-position:right 10px center,center!important}
}

/* Inzicht & prestaties: geef de welkomstkop genoeg breedte en groepeer filters
   en periode-uitleg rechts, met ruimte vrij voor de infinity-bannerillustratie. */
@media screen and (min-width:1101px){
  html body #view #ipz>.ipz-hero{
    grid-template-columns:minmax(300px,1fr) minmax(320px,370px)!important;
    grid-template-rows:auto auto auto!important;
    column-gap:24px!important;row-gap:10px!important;
    padding-right:315px!important;min-height:250px!important;
    align-content:center!important;
  }
  html body #view #ipz>.ipz-hero>.lzh-kick{grid-column:1!important;grid-row:1!important;align-self:end}
  html body #view #ipz>.ipz-hero>h1{grid-column:1!important;grid-row:2!important;max-width:none!important;line-height:1.06!important}
  html body #view #ipz>.ipz-hero>p{grid-column:1!important;grid-row:3!important;max-width:100%!important}
  html body #view #ipz>.ipz-hero>.lzh-seg{grid-column:2!important;grid-row:1!important;align-self:end;width:100%!important}
  html body #view #ipz>.ipz-hero>.ipz-mood{grid-column:2!important;grid-row:2!important;align-self:center;width:100%!important}
  html body #view #ipz>.ipz-hero>.ipz-score{grid-column:2!important;grid-row:3!important;align-self:start;width:100%!important}
}

@media screen and (min-width:1101px){
  html body #view#view#view#view#view#view #ipz>.lzh-hero.lzh-hero.ipz-hero.ipz-hs{
    padding:28px 315px 28px 32px!important;
  }
}


/* Mobiel herstel: houd klantnamen heel en geef Mail en dossier dezelfde
   grotere lusmaten als de goedgekeurde banner op Mijn overzicht. */
@media screen{
  #view#view#view#view#view#view :is(.lzh-hero:not(.lzhs-on),.u2-head,.wrap>.ph.lzs-ph,.lzst>.lzst-hero,#bz .bz-hero,.vk-hero,.fw-hero,.pd-hero,.mjw-hero,.ipz-hero,.mk-hero)::before{
    width:393px!important;height:198px!important;
  }
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{
    width:393px!important;height:198px!important;
  }
  html body #vkpn .vk-pt .vk-who{
    display:flex!important;align-items:flex-start!important;gap:12px!important;
    width:100%!important;max-width:none!important;min-width:0!important;padding-right:0!important;
  }
  html body #vkpn .vk-pt .vk-who h2{
    flex:1 1 auto!important;width:auto!important;max-width:none!important;min-width:0!important;
    white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;
  }
  html body #vkpn .vk-pt .vk-tags,html body #vkpn .vk-pt .vk-pcon,
  html body #vkpn .vk-pt .vk-acts{min-width:0!important;max-width:100%!important}
}
@media screen and (min-width:641px) and (max-width:900px){
  #view#view#view#view#view#view :is(.lzh-hero:not(.lzhs-on),.u2-head,.wrap>.ph.lzs-ph,.lzst>.lzst-hero,#bz .bz-hero,.vk-hero,.fw-hero,.pd-hero,.mjw-hero,.ipz-hero,.mk-hero)::before{width:230px!important;height:131px!important}
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{width:230px!important;height:131px!important}
  #view#view#view#view#view#view .u2-head{background-size:auto 131px,cover!important}
}


/* Mailkop: houd titel en bediening in de linker kolom, vrij van de lus. */
@media screen{
  #view#view#view#view#view#view .lzh-hero.vk-hero:has(.lzh-btns){
    grid-template-columns:minmax(0,1fr) clamp(172px,32vw,393px)!important;
    column-gap:clamp(12px,2vw,24px)!important;row-gap:8px!important;
  }
  #view#view#view#view#view#view .lzh-hero.vk-hero:has(.lzh-btns)>.lzh-kick,
  #view#view#view#view#view#view .lzh-hero.vk-hero:has(.lzh-btns)>h1,
  #view#view#view#view#view#view .lzh-hero.vk-hero:has(.lzh-btns)>p{
    grid-column:1!important;min-width:0!important;max-width:100%!important;
  }
  #view#view#view#view#view#view .lzh-hero.vk-hero:has(.lzh-btns)>.lzh-btns{
    grid-column:1!important;grid-row:4!important;display:flex!important;flex-wrap:wrap!important;
    justify-content:flex-start!important;align-items:center!important;gap:8px!important;
    min-width:0!important;max-width:100%!important;width:auto!important;
  }
  #view#view#view#view#view#view .lzh-hero.vk-hero:has(.lzh-btns)>.lzh-btns :is(a,button){
    min-width:0!important;max-width:100%!important;white-space:normal!important;
  }
}

@media screen and (max-width:640px){
  #view#view#view#view#view#view :is(.lzh-hero:not(.lzhs-on),.u2-head,.wrap>.ph.lzs-ph,.lzst>.lzst-hero,#bz .bz-hero,.vk-hero,.fw-hero,.pd-hero,.mjw-hero,.ipz-hero,.mk-hero)::before{width:172px!important;height:98px!important}
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{width:172px!important;height:98px!important}
  #view#view#view#view#view#view .u2-head{background-size:auto 98px,cover!important}
  html body #vkpn .vk-pt .vk-who h2{max-width:none!important}
}

/* Beheer: verwijder alleen de tweede infinity-lus uit de binnentitelkaart.
   De hoofdbanner (.bz-hero) behoudt de vaste Leadzloop-lus. */
@media screen{
  #view#view#view#view#view#view#view .wrap>.ph.lzs-ph{
    background-image:linear-gradient(115deg,#071d4e 0%,#083573 64%,#065da2 100%)!important;
    background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
  }
  #view#view#view#view#view#view#view .wrap>.ph.lzs-ph::before{
    content:none!important;display:none!important;background-image:none!important;
  }
}


/* Leadzloop fix: gebruik alleen de achtergrondlus uit lz-banner-fotolus-v6.css; voorkom een tweede lus op dezelfde paginakop. */
@media screen{
  #view#view#view#view#view#view :is(.lzh-hero:not(.lzhs-on),.u2-head,.wrap>.ph.lzs-ph,.lzst>.lzst-hero,#bz .bz-hero,.vk-hero,.fw-hero,.pd-hero,.mjw-hero,.ipz-hero,.mk-hero)::before{content:none!important;display:none!important;background-image:none!important}
  html:not(#lz0):not(#lz1):not(#lz2) body #vkpn.vk-pn>.vk-pt.vk-pt::before{content:none!important;display:none!important;background-image:none!important}
}
