.odv2-area-panel>.odv1-section-nav.odv-consistency-six{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.odv2-area-panel>.odv1-section-nav.odv-consistency-six .odv1-section-button{min-width:0}
.odv2-area-panel>.odv1-section-nav.odv-consistency-six .odv1-section-button b{line-height:1.22}

/* Estado de selección jerárquica global: nivel 1 (área). */
.odv2-area-panel .odv1-section-button.active,
[data-nav-level="1"].active{
  border-color:var(--valen-active-1-border)!important;
  background:linear-gradient(145deg,var(--valen-active-1-bg-from) 0%,var(--valen-active-1-bg-to) 100%)!important;
  box-shadow:0 9px 24px rgba(11,143,105,.10),inset 0 3px 0 var(--valen-active-accent)!important;
}
.odv2-area-panel .odv1-section-button.active b,
[data-nav-level="1"].active b{color:var(--valen-active-1-text)!important}
.odv2-area-panel .odv1-section-button.active small,
[data-nav-level="1"].active small{color:var(--valen-active-1-text-soft)!important;font-weight:650!important}
.odv2-area-panel .odv1-section-button.active .odv1-section-icon,
[data-nav-level="1"].active .odv1-section-icon{background:var(--valen-active-1-icon-bg)!important;color:var(--valen-active-1-icon-fg)!important}

/* Nivel 2: subcategoría (tarjeta o botón con ícono, misma familia visual, menor peso). */
.odv-sales-subarea.active,
.odv-customer-subarea.active,
.oiiv1-subarea.active,
.oiiv1-choice-grid button.active,
.ofhv1-subarea.active,
[data-nav-level="2"].active{
  border-color:var(--valen-active-2-border)!important;
  background:var(--valen-active-2-bg)!important;
  box-shadow:0 9px 24px rgba(11,143,105,.10),inset 0 3px 0 var(--valen-active-accent)!important;
}
.odv-sales-subarea.active b,
.odv-customer-subarea.active b,
.oiiv1-subarea.active b,
.oiiv1-choice-grid button.active b,
.ofhv1-subarea.active b,
[data-nav-level="2"].active b{color:var(--valen-active-2-text)!important}
.odv-sales-subarea.active small,
.odv-customer-subarea.active small,
.oiiv1-subarea.active small,
.oiiv1-choice-grid button.active small,
.ofhv1-subarea.active small,
[data-nav-level="2"].active small{color:var(--valen-active-2-text-soft)!important;font-weight:650!important}
.odv-sales-subarea.active i,
.odv-customer-subarea.active i,
.oiiv1-subarea.active i,
.oiiv1-choice-grid button.active i,
.ofhv1-subarea.active>i,
[data-nav-level="2"].active i{background:var(--valen-active-2-icon-bg)!important;color:var(--valen-active-2-icon-fg)!important}

/* Nivel 3: filtros, categorías, períodos — chip compacto, relleno sólido. */
.oiiv1-categories button.active,
.oiiv1-stock-filters button.active,
.oshv1-seg button.active,
.oshv1-ranges button.active,
[data-nav-level="3"].active{
  background:var(--valen-active-3-bg)!important;
  border-color:var(--valen-active-3-border)!important;
  color:var(--valen-active-3-text)!important;
  box-shadow:0 4px 12px rgba(11,143,105,.16)!important;
  font-weight:800!important;
}
.oiiv1-categories button.active b{background:rgba(255,255,255,.18)!important;border-color:rgba(255,255,255,.28)!important;color:#fff!important}

/* El estado activo siempre debe ser reconocible también con teclado. */
.odv-sales-subarea:focus-visible,
.odv-customer-subarea:focus-visible,
.oiiv1-subarea:focus-visible,
.oiiv1-choice-grid button:focus-visible,
.ofhv1-subarea:focus-visible,
.oiiv1-categories button:focus-visible,
.oiiv1-stock-filters button:focus-visible,
.oshv1-seg button:focus-visible,
.oshv1-ranges button:focus-visible,
[data-nav-level]:focus-visible{outline:2px solid var(--valen-active-focus-ring);outline-offset:3px}

@media(max-width:1500px){.odv2-area-panel>.odv1-section-nav.odv-consistency-six{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:950px){.odv2-area-panel>.odv1-section-nav.odv-consistency-six{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.odv2-area-panel>.odv1-section-nav.odv-consistency-six{grid-template-columns:1fr!important}}
