/* RIDO v0.48.6 — klantnavigatie zichtbaarheid + RIDO Menu desktop-zijbalk.
   Doel: dezelfde desktop-informatiearchitectuur als RIDO Order, met expliciet WCAG-waardig contrast.
   Deze laag wordt NA v0.48.4 geladen en corrigeert uitsluitend navigatie/presentatie. */

html body.rido-portal-body.rido-ui-v0486{
  --rido-nav-ink:#17384b;
  --rido-nav-muted:#536c7b;
  --rido-nav-active:#073f59;
  --rido-nav-active-hover:#06364d;
  --rido-nav-soft:#edf6fa;
  --rido-nav-line:#d7e3e9;
}

/* Algemene portaalnavigatie: tekst nooit flets of transparant. */
html body.rido-portal-body.rido-ui-v0486 .portal-app-nav a{
  color:#102f42!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0486 .portal-app-nav a.active,
html body.rido-portal-body.rido-ui-v0486 .portal-app-nav a.is-active{
  color:#075f83!important;
  background:#eaf6fa!important;
}
html body.rido-portal-body.rido-ui-v0486 .portal-app-nav a :where(span,strong,b,small){color:inherit!important;opacity:1!important}

/* RIDO Menu: desktop opnieuw dezelfde links/rechts-opbouw als RIDO Order. */
@media(min-width:861px){
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-shell{
    display:grid!important;
    grid-template-columns:210px minmax(0,1fr)!important;
    gap:20px!important;
    align-items:start!important;
    margin-top:18px!important;
  }
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-main{
    min-width:0!important;
    display:grid!important;
    gap:18px!important;
    margin-top:0!important;
  }
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav{
    position:sticky!important;
    top:88px!important;
    z-index:22!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    align-content:start!important;
    gap:6px!important;
    overflow:visible!important;
    padding:10px!important;
    background:#fff!important;
    border:1px solid var(--rido-nav-line)!important;
    border-radius:18px!important;
    box-shadow:0 10px 30px rgba(15,52,72,.06)!important;
  }
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav .menu-nav-brand{
    display:grid!important;
    gap:1px!important;
    padding:8px 10px 12px!important;
    margin-bottom:2px!important;
    border-bottom:1px solid #e7eef2!important;
  }
}

html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav .menu-nav-brand span{
  color:#5f7887!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav .menu-nav-brand strong{
  color:#0b2f43!important;
  opacity:1!important;
}

/* Expliciete kleuren op ELK nav-item en alle kinderen: geen oude modulekleur kan dit nog overschrijven. */
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:8px 10px!important;
  border:0!important;
  border-radius:11px!important;
  background:transparent!important;
  color:var(--rido-nav-ink)!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-decoration:none!important;
  opacity:1!important;
  box-shadow:none!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a span{
  min-width:0!important;
  color:inherit!important;
  opacity:1!important;
  white-space:normal!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a b{
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  border-radius:8px!important;
  background:var(--rido-nav-soft)!important;
  color:#2f718d!important;
  font-size:10px!important;
  font-weight:900!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a:not(.active):hover,
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a:not(.active):focus-visible{
  background:#f1f8fb!important;
  color:#073f59!important;
  outline:2px solid #9fd6ea!important;
  outline-offset:1px!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a.active{
  background:var(--rido-nav-active)!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(7,63,89,.18)!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a.active:hover,
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a.active:focus-visible{
  background:var(--rido-nav-active-hover)!important;
  color:#fff!important;
  outline:2px solid #8fc5d8!important;
  outline-offset:1px!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a.active :where(span,strong,small,em),
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a.active b{
  color:#fff!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a.active b{
  background:rgba(255,255,255,.16)!important;
}

/* De inhoud rechts mag door de zijbalk nooit worden samengedrukt of afgesneden. */
html body.rido-portal-body.rido-ui-v0486 .menu-customer-main :where(.card,.menu-summary-grid article){min-width:0!important}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-main :where(h1,h2,h3,h4,strong){overflow-wrap:normal!important;word-break:normal!important}
html body.rido-portal-body.rido-ui-v0486 .menu-customer-main p{color:#4c6575!important;opacity:1!important}

/* Setup-/statuskaarten: expliciete zichtbaarheid, inclusief completed state. */
html body.rido-portal-body.rido-ui-v0486 .menu-setup-list a{
  color:#17384a!important;
  background:#fbfdfe!important;
}
html body.rido-portal-body.rido-ui-v0486 .menu-setup-list a :where(strong,span){color:#17384a!important;opacity:1!important}
html body.rido-portal-body.rido-ui-v0486 .menu-setup-list a small{color:#587180!important;opacity:1!important}
html body.rido-portal-body.rido-ui-v0486 .menu-setup-list a em{color:#526d7d!important;opacity:1!important}
html body.rido-portal-body.rido-ui-v0486 .menu-setup-list a.is-complete{background:#f7fcf9!important;border-color:#b9ded0!important}
html body.rido-portal-body.rido-ui-v0486 .menu-setup-list a.is-complete em{color:#11663f!important}

/* Tablet/mobiel: horizontaal blijft bewust, maar met dezelfde leesbaarheid. */
@media(max-width:860px){
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-shell{display:block!important;margin-top:14px!important}
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav{
    position:sticky!important;
    top:62px!important;
    z-index:55!important;
    display:flex!important;
    gap:6px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    margin-bottom:14px!important;
    padding:8px!important;
    border-radius:14px!important;
    background:#fff!important;
    border:1px solid var(--rido-nav-line)!important;
    box-shadow:0 8px 24px rgba(7,52,77,.05)!important;
  }
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav .menu-nav-brand{display:none!important}
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a{
    flex:0 0 auto!important;
    display:flex!important;
    grid-template-columns:none!important;
    min-height:38px!important;
    padding:6px 9px!important;
    white-space:nowrap!important;
  }
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a span{white-space:nowrap!important}
  html body.rido-portal-body.rido-ui-v0486 .menu-customer-nav>a b{width:22px!important;height:22px!important}
}
