/* Livay v120 · se carga al final. Arreglos de Almacén (cosas que se sobreponían), fluidez y animaciones más rápidas. */
:root{--v120-nav:calc(84px + env(safe-area-inset-bottom));--v120-ease:cubic-bezier(.2,.8,.2,1);--v120-spring:cubic-bezier(.2,.9,.3,1.2)}

/* ---------- Almacén ---------- */
/* La barra «Cliente · Paquete · Guía · Clave · Monto + Registrar envío» quedaba DEBAJO del menú inferior y tapaba las tarjetas.
   Ahora se queda justo encima del menú, con fondo sólido. */
html body #view-warehouse .wh2-foot{bottom:calc(var(--v120-nav) + 6px)!important;z-index:30!important;background:#F6F6F4!important;
  border:1px solid rgba(24,42,49,.10)!important;border-radius:22px!important;box-shadow:0 -10px 30px rgba(14,26,32,.12)!important;margin-top:14px}
html body #view-warehouse .wh2-foot .wh2-steps,html body #view-warehouse .wh2-foot>div:first-child{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:none}
html body #view-warehouse .wh2-foot .wh2-steps::-webkit-scrollbar{display:none}
html body #view-warehouse .wh2-step{white-space:nowrap;flex:0 0 auto}
/* el contenido termina por encima del menú y de la barra fija */
html body main{padding-bottom:calc(var(--v120-nav) + 24px)!important}
html body.warehouse-role #view-warehouse.active{padding-bottom:12px}
/* «Tomar foto» / «Galería» no se parten en dos líneas */
html body #view-warehouse .photo-select-button,html body #view-warehouse [class*="wh2"] button{white-space:nowrap}
html body #view-warehouse .photo-select-button{font-size:13.5px;padding-left:10px!important;padding-right:10px!important;gap:6px}
@media (max-width:400px){html body #view-warehouse .wh2-photos,html body #view-warehouse .wh2-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Buscadores: la caja interna tenía su propio borde y fondo (se veía una caja dentro de otra, saliéndose del borde) */
html body .searchbox input,html body .searchbox input[type=search]{border:0!important;background:transparent!important;box-shadow:none!important;padding-left:8px!important;padding-right:4px!important;min-width:0;width:100%!important}
html body .searchbox{display:flex!important;align-items:center;overflow:hidden}
html body .searchbox:focus-within{border-color:#E0335A!important;box-shadow:0 0 0 4px rgba(224,51,90,.12)!important}

/* Encabezado sólido: el texto de abajo ya no se transparenta al desplazarse */
html body header.topbar{background:#182A31!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* «Volver al inicio» apretaba el título: en teléfonos queda solo la flecha */
@media (max-width:460px){
  html body #return-home{font-size:0!important;width:44px;height:44px;padding:0!important;display:grid;place-items:center;border-radius:14px!important}
  html body #return-home::before{content:"←";font-size:20px;line-height:1;font-weight:700}
  html body #return-home.hidden{display:none!important}
}
.stk-aprox{margin:2px 2px 10px;padding:10px 12px;border-radius:14px;background:#FFF5E5;color:#7a4a0c;font-weight:600}

/* ---------- Fluidez ---------- */
/* El menú inferior y las capas con «blur» se redibujaban en cada desplazamiento (pesado en Android): fondo sólido. */
html body .bottom-nav,html body nav.bottom-nav{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* Listas largas: el navegador no pinta lo que no se ve. */
html body .stk-row,html body .dir-card,html body #ops-ped-list>.ops-item,html body .audit-entry{content-visibility:auto;contain-intrinsic-size:auto 88px}
/* Toques instantáneos, sin retardo ni resaltado gris */
button,a,[role=button],.role-option,.nav-item,.worker-profile,label{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html{scroll-behavior:auto}

/* ---------- Animaciones más rápidas y suaves ---------- */
/* entrada a un área: recorte (clip-path) en lugar de cambiar tamaño/posición, y la mitad de tiempo */
#lv9-enter .lv9e-panel{left:0!important;top:0!important;width:100%!important;height:100%!important;border-radius:0!important;will-change:clip-path,transform;
  transition:clip-path .46s var(--v120-ease),background-color .32s .05s,transform .46s cubic-bezier(.7,0,.2,1)!important}
#lv9-enter.out .lv9e-panel{border-radius:0!important}
#lv9-enter .lv9e-art{transition:transform .45s var(--v120-spring)!important}
#lv9-enter .lv9e-art svg{transition:stroke .3s .08s!important}
#lv9-enter .lv9e-tx{transition:opacity .28s .16s,transform .4s .16s var(--v120-ease)!important}
#lv9-enter .lv9e-bar{transition:opacity .2s .2s!important}
#lv9-enter.grow .lv9e-bar::after{animation-duration:.5s!important;animation-delay:.18s!important}
/* pulsación con rebote leve en todo lo tocable */
:is(button,.role-option,.nav-item,.ops-chip,.chip,.quick-client-filter,.stk-row,.ops-item):active:not(:disabled){transform:scale(.965)!important;transition:transform .08s!important}
/* secciones: entrada corta (antes ~420 ms) */
:root{--ax-s:.7}
html body .view.active{animation-duration:.26s!important}
@media (prefers-reduced-motion:reduce){#lv9-enter{display:none}:is(button,.role-option,.nav-item):active{transform:none!important}}

/* v120 · ajustes tras revisar en pantalla */
html body nav.bottom-nav.top-nav{background:#182A31!important;z-index:60!important;isolation:isolate}
@media (max-width:460px){html body #return-home{line-height:44px!important;align-self:center}html body #return-home::before{display:block;transform:translateY(1px)}}
/* fotos de paquete y guía: una debajo de otra en teléfonos, así «Tomar foto» y «Galería» caben completos */
@media (max-width:460px){
  html body #view-warehouse .photo-grid{grid-template-columns:minmax(0,1fr)!important}
  html body #view-warehouse .photo-btn-row{grid-template-columns:1fr 1fr!important}
}
html body #view-warehouse .photo-select-button{justify-content:center}
/* barra fija de Almacén más compacta */
html body #view-warehouse .wh2-foot{padding:10px!important;gap:8px!important}
html body #view-warehouse .wh2-foot .wh2-step{padding:6px 12px!important;font-size:13px!important}
@media (max-width:460px){
  html body #view-warehouse .photo-preview{aspect-ratio:auto!important;height:150px!important;min-height:0!important}
  html body #view-warehouse .photo-preview img{height:100%;width:100%;object-fit:cover}
  html body #return-home{display:flex!important;align-items:center;justify-content:center;line-height:1!important}
  html body #return-home::before{transform:none}
}
