/* Livay v424 · Barra inferior ÚNICA para todas las áreas (app principal: Ventas, Notas, Stock, Almacén… y Pagos parciales).
   Se carga al final y manda sobre los estilos anteriores de la barra:
   - Píldora oscura flotante, centrada, máx. 560 px, esquinas 26 px.
   - Cada botón ocupa el mismo ancho; ícono de 22 px arriba y nombre de 10 px abajo (hasta 2 líneas si no cabe).
   - El botón activo es una píldora amaranto que cubre ícono y nombre, en blanco. Sin puntos ni indicadores extra. */
html body nav.bottom-nav.bottom-nav.bottom-nav,html body nav.bottom.bottom.bottom{
  position:fixed!important;top:auto!important;left:12px!important;right:12px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
  width:auto!important;max-width:560px!important;height:66px!important;min-height:0!important;margin:0 auto!important;padding:6px!important;
  align-items:stretch!important;justify-content:space-between!important;gap:4px!important;
  background:#182A31!important;border:0!important;border-radius:26px!important;box-shadow:0 14px 34px rgba(14,26,32,.28)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transform:none!important;z-index:60!important;overflow:visible!important}
html body nav.bottom-nav.bottom-nav.bottom-nav::before,html body nav.bottom-nav.bottom-nav.bottom-nav::after,html body nav.bottom.bottom.bottom::before,html body nav.bottom.bottom.bottom::after{content:none!important;display:none!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .lv9-ind{display:none!important}

/* botones */
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item,html body nav.bottom.bottom.bottom .nav.nav{
  flex:1 1 0!important;min-width:0!important;max-width:none!important;width:auto!important;height:54px!important;min-height:0!important;margin:0!important;padding:0 3px!important;
  flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
  border:0!important;border-radius:18px!important;background:transparent!important;box-shadow:none!important;outline-offset:2px;
  color:rgba(239,239,237,.58)!important;transform:none!important;overflow:hidden!important;position:relative!important;cursor:pointer;
  transition:background-color .25s cubic-bezier(.2,.8,.2,1),color .25s,box-shadow .25s!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item:hover,html body nav.bottom.bottom.bottom .nav.nav:hover{color:rgba(239,239,237,.9)!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item::before,html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item::after,html body nav.bottom.bottom.bottom .nav.nav::before,html body nav.bottom.bottom.bottom .nav.nav::after{content:none!important;display:none!important}

/* ícono */
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item .nav.nav-ico,html body nav.bottom.bottom.bottom .nav.nav>b{
  width:24px!important;height:24px!important;min-height:0!important;margin:0!important;padding:0!important;flex:none!important;display:flex!important;align-items:center!important;justify-content:center!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:inherit!important;transform:none!important;font-size:20px!important;line-height:1!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item .nav.nav-ico::before,html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item .nav.nav-ico::after,html body nav.bottom.bottom.bottom .nav.nav>b::before,html body nav.bottom.bottom.bottom .nav.nav>b::after{content:none!important;display:none!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item svg,html body nav.bottom.bottom.bottom .nav.nav svg{width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;color:inherit!important}

/* nombre */
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item small,html body nav.bottom.bottom.bottom .nav.nav>span{
  display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;max-width:100%!important;margin:0!important;padding:0!important;
  font:700 10px/1.08 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;letter-spacing:0!important;text-align:center!important;white-space:normal!important;
  color:inherit!important;background:none!important;opacity:1!important;text-transform:none!important}

/* activo: píldora amaranto */
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item.active,html body nav.bottom.bottom.bottom .nav.nav.active{
  background:#E0335A!important;color:#FFFFFF!important;box-shadow:0 6px 16px rgba(224,51,90,.35),inset 0 1px 0 rgba(255,255,255,.18)!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item.active small,html body nav.bottom.bottom.bottom .nav.nav.active>span{color:#FFFFFF!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item:active,html body nav.bottom.bottom.bottom .nav.nav:active{transform:scale(.96)!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item:focus-visible,html body nav.bottom.bottom.bottom .nav.nav:focus-visible{outline:2px solid #FFFFFF!important}

/* espacio para que el contenido no quede debajo de la barra */
html body.lvm-on main,html body.lvm-on .view{scroll-padding-bottom:96px}
@media (prefers-reduced-motion:reduce){html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item,html body nav.bottom.bottom.bottom .nav.nav{transition:none!important}}

/* v436 · cuando un área tiene MUCHAS secciones (Ventas tiene 12) ya no se aprietan hasta cortar los nombres:
   cada botón tiene su ancho y la barra se desliza de lado con el dedo; se abre mostrando la sección en la que estás. */
html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas{
  justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;scroll-behavior:smooth;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:2px!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 26px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 26px),transparent 100%)}
html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas::-webkit-scrollbar{display:none}
html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas.lvbi-ini{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent 100%);mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent 100%)}
html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas.lvbi-fin{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16px);mask-image:linear-gradient(90deg,transparent 0,#000 16px)}
html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas > .nav-item.nav-item{flex:0 0 74px!important;width:74px!important;scroll-snap-align:center}
html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas > .nav-item.nav-item small{font-size:10.5px!important;line-height:1.1!important}
@media (min-width:900px){html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas{max-width:min(980px,calc(100vw - 24px))!important}}

/* v495 · sin desenfoque en los bordes de la barra (antes se difuminaban las secciones de los costados) */
html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas,html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas.lvbi-ini,html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas.lvbi-fin{-webkit-mask-image:none!important;mask-image:none!important}

/* v501 · secciones parejas: todos los íconos a la misma altura y nombres en una sola línea.
   - El ícono queda fijo arriba y el nombre debajo, aunque algún nombre ocupe 2 líneas (antes «Paquetes y guías» subía su ícono).
   - Con espacio suficiente (laptop) la barra es un poco más ancha y los nombres caben en una línea.
   - Con muchas secciones la barra se ajusta a sus botones y queda centrada (antes sobraba un hueco a la derecha). */
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item{justify-content:flex-start!important;padding:5px 2px 0!important;gap:3px!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item small{line-height:1.05!important}
@media (min-width:640px){
  html body nav.bottom-nav.bottom-nav.bottom-nav{max-width:640px!important}
  html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item{justify-content:center!important;padding:0 4px!important}
  html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item small{display:block!important;white-space:nowrap!important;text-overflow:ellipsis!important}
}
html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas{width:-moz-fit-content!important;width:fit-content!important;max-width:calc(100vw - 24px)!important}
@media (min-width:900px){html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas{max-width:min(980px,calc(100vw - 24px))!important}
  html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas{max-width:calc(100vw - 24px)!important}
  html body nav.bottom-nav.bottom-nav.bottom-nav.lvbi-muchas > .nav-item.nav-item{flex:0 0 auto!important;width:auto!important;min-width:78px!important;padding:0 10px!important}}
/* v501 · mismo tamaño de ícono en todas (las de tipo «b» medían 23 px y quedaban desalineadas) */
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item .nav-ico{width:24px!important;height:24px!important;flex:none!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item .nav-ico svg{width:22px!important;height:22px!important;transform:none!important}
html body nav.bottom-nav.bottom-nav.bottom-nav .nav-item.nav-item .nav-ico{transform:none!important;background:transparent!important;box-shadow:none!important}
