/* Inventate · diseño Bento (menú de iconos + Balance en bloques) — solo dentro de .im-app */
html body.bento .im-app{--bn-peach:#ffbd7d;--bn-orange-a:#ffd9ae;--bn-orange-b:#f2a25f;--bn-ink:#3a1b0c}
/* ---------- Menú: riel de iconos ---------- */
html body.bento .im-app{grid-template-columns:96px minmax(0,1fr)!important}
html body.bento .im-app .im-sidebar{height:calc(100dvh - 32px)!important;max-height:calc(100dvh - 32px)!important;width:96px!important;max-width:96px;padding:18px 16px!important;gap:10px!important;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start!important;align-content:flex-start!important;border-radius:48px!important;overflow:hidden!important;transition:width .28s cubic-bezier(.2,.8,.2,1),max-width .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s;z-index:30;position:sticky}
html body.bento .im-app .im-sidebar:is(:hover,:focus-within){width:260px!important;max-width:260px;box-shadow:0 30px 80px #0007}
html body.bento .im-app .im-sidebar>.im-kicker,html body.bento .im-app .im-sidebar>.im-role{display:none!important}
html body.bento .im-app .im-sidebar>.im-brand{display:flex!important;align-items:center;gap:14px;padding:0!important;min-height:64px;flex-wrap:nowrap}
html body.bento .im-app .im-sidebar>.im-brand .im-logo{width:64px;height:64px;min-width:64px;border-radius:50%;object-fit:cover}
html body.bento .im-app .im-sidebar>.im-brand strong{font-size:17px!important;white-space:normal!important;opacity:0;transition:opacity .2s;max-width:150px}
html body.bento .im-app .im-sidebar:is(:hover,:focus-within)>.im-brand strong{opacity:1}
html body.bento .im-app .im-sidebar>nav{display:flex!important;flex-direction:column;gap:8px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0!important;margin:6px 0 0;flex:1 1 auto;min-height:0;scrollbar-width:none}
html body.bento .im-app .im-sidebar>nav::-webkit-scrollbar{display:none}
html body.bento .im-app .im-sidebar .im-nav{width:100%!important;min-height:64px;height:64px;padding:0 0 0 21px!important;border-radius:32px!important;gap:16px!important;font-size:0;white-space:nowrap;justify-content:flex-start;text-align:left;overflow:hidden;color:var(--glass-ink,#fff3e4)}
html body.bento .im-app .im-sidebar .im-nav .ii,html body.bento .im-app .im-sidebar .im-nav svg{flex:0 0 22px;width:22px;height:22px}
html body.bento .im-app .im-sidebar:is(:hover,:focus-within) .im-nav{font-size:16px;font-weight:700}
html body.bento .im-app .im-sidebar .im-nav:not([aria-current=page]){background:#ffffff14!important;border:1px solid #ffffff1f!important}
html body.bento .im-app .im-sidebar .im-nav[aria-current=page]{background:linear-gradient(180deg,var(--bn-orange-a),var(--bn-orange-b))!important;color:var(--bn-ink)!important;border:1px solid #fff9!important;box-shadow:inset 0 2px 1px #fffa,0 10px 26px #f08a3a66!important}
/* ---------- Balance en bloques ---------- */
html body.bento .im-bento{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin:8px 0 20px}
html body.bento .im-bento>.im-stat{border-radius:44px!important;padding:26px 30px!important;display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0}
html body.bento .im-bento>.im-stat>span{font-size:15px;font-weight:600;opacity:.8}
html body.bento .im-bento>.im-stat>strong{font-size:clamp(26px,2.6vw,40px);font-weight:800;letter-spacing:-.045em;line-height:1.05;overflow-wrap:anywhere}
html body.bento .im-bento>.im-stat>small{font-size:14px;opacity:.75}
html body.bento .im-hero{grid-column:1/8;grid-row:1/3;padding:34px 40px!important;background:linear-gradient(150deg,#ffc48ce6,#f0823ae6)!important;border:1.5px solid #ffffff80!important;box-shadow:inset 0 3px 2px #ffffffa6,0 30px 70px #f0823a59!important;color:#2a1208!important}
html body.bento .im-hero>span{font-size:17px!important;font-weight:700!important;opacity:.85!important;color:#3a1b0c!important}
html body.bento .im-hero>strong{font-size:clamp(40px,5.4vw,84px)!important;letter-spacing:-.06em!important;color:#2a1208!important;margin:6px 0 10px}
html body.bento .im-hero>small{font-size:16px!important;font-weight:700;opacity:.9!important;color:#3a1b0c!important}
html body.bento .im-mini{grid-column:8/13}
html body.bento .im-week{grid-column:1/8;min-height:300px;justify-content:flex-start!important}
html body.bento .im-week>strong{font-size:clamp(22px,2vw,30px)!important}
html body.bento .im-bars{display:flex;align-items:flex-end;gap:clamp(8px,1.4vw,18px);height:190px;margin-top:14px}
html body.bento .im-bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:8px;min-width:0}
html body.bento .im-bar i{display:block;border-radius:16px 16px 6px 6px;background:linear-gradient(180deg,#9bb8f2e6,#3f6fd099);box-shadow:inset 0 2px 1px #ffffff80}
html body.bento .im-bar.is-today i{background:linear-gradient(180deg,#ffd9ae,#f08a3a)}
html body.bento .im-bar span{text-align:center;font-size:13px;font-weight:700;opacity:.75}
html body.bento .im-quick{grid-column:8/13;display:grid;grid-template-columns:1fr 1fr;gap:16px}
html body.bento .im-qbtn{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:14px;min-height:132px;padding:22px 24px!important;border-radius:40px!important;font-size:21px!important;font-weight:800!important;text-align:left;color:var(--glass-ink,#fff3e4)!important;background:linear-gradient(150deg,#ffffff24,#ffffff08)!important;border:1.5px solid #ffffff38!important;box-shadow:inset 0 2px 1px #ffffff66,0 20px 50px #0004!important;cursor:pointer;transition:transform .2s,box-shadow .2s}
html body.bento .im-qbtn:hover{transform:translateY(-3px)}
html body.bento .im-qbtn svg{width:36px;height:36px;color:var(--bn-peach)}
/* ---------- Tableta ---------- */
@media(max-width:1100px){
 html body.bento .im-hero{grid-column:1/13;grid-row:auto}
 html body.bento .im-mini{grid-column:span 6}
 html body.bento .im-week,html body.bento .im-quick{grid-column:1/13}
}
/* ---------- Teléfono: barra inferior ---------- */
@media(max-width:760px){
 html body.bento .im-app{grid-template-columns:minmax(0,1fr)!important;padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}
 html body.bento .im-app .im-sidebar{position:fixed!important;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));top:auto!important;width:auto!important;max-width:none!important;height:72px!important;min-height:0!important;max-height:72px!important;padding:8px!important;border-radius:36px!important;flex-direction:row!important;align-items:center;overflow:hidden!important;background:linear-gradient(150deg,rgba(40,24,18,.62),rgba(20,12,10,.55))!important;backdrop-filter:blur(18px) saturate(180%);-webkit-backdrop-filter:blur(18px) saturate(180%)}
 html body.bento .im-app .im-sidebar:is(:hover,:focus-within){width:auto!important;max-width:none!important}
 html body.bento .im-app .im-sidebar>.im-brand{display:none!important}
 html body.bento .im-app .im-sidebar>nav{flex-direction:row!important;overflow-x:auto!important;margin:0!important;gap:6px!important;width:100%;scrollbar-width:none;scroll-snap-type:x proximity;align-items:center;height:56px}
 html body.bento .im-app .im-sidebar>nav::-webkit-scrollbar{display:none}
 html body.bento .im-app .im-sidebar .im-nav,html body.bento .im-app .im-sidebar:is(:hover,:focus-within) .im-nav{flex:0 0 60px!important;width:60px!important;min-height:56px;height:56px;padding:0!important;justify-content:center;font-size:0!important;scroll-snap-align:center;border-radius:28px!important}
 html body.bento .im-bento{gap:12px}
 html body.bento .im-bento>.im-stat{border-radius:34px!important;padding:20px 22px!important}
 html body.bento .im-hero{padding:24px 26px!important}
 html body.bento .im-hero>strong{font-size:clamp(34px,11vw,56px)!important}
 html body.bento .im-mini{grid-column:span 6}
 html body.bento .im-mini>strong{font-size:clamp(20px,6vw,28px)!important}
 html body.bento .im-quick{order:3;gap:12px}
 html body.bento .im-week{order:4;min-height:240px}
 html body.bento .im-bars{height:130px}
 html body.bento .im-qbtn{min-height:112px;border-radius:32px!important;padding:18px 20px!important;font-size:19px!important}
}
@media(prefers-reduced-motion:reduce){html body.bento .im-app .im-sidebar,html body.bento .im-qbtn{transition:none}}
/* menú desplegado: fondo legible */
html body.bento .im-app .im-sidebar:is(:hover,:focus-within){background:linear-gradient(150deg,rgba(40,24,18,.94),rgba(20,12,10,.92))!important}
/* temas claros (mercado, crema…) */
html body.bento[data-glass-tone=light] .im-app .im-sidebar:is(:hover,:focus-within){background:linear-gradient(150deg,#fffffff2,#fff7e0f0)!important}
html body.bento[data-glass-tone=light] .im-app .im-sidebar .im-nav:not([aria-current=page]){color:#2a1a12!important;background:#0000000d!important;border-color:#00000026!important}
html body.bento[data-glass-tone=light] .im-qbtn{color:#2a1a12!important}
html body.bento[data-glass-tone=light] .im-qbtn svg{color:#d9601a}
html body.bento[data-glass-tone=light] .im-bento>.im-stat:not(.im-hero){color:#2a1a12}
html body.bento.tema-mercado .im-app .im-sidebar .im-nav:not([aria-current=page]){color:#2a1a12!important}
@media(max-width:760px){html body.bento[data-glass-tone=light] .im-app .im-sidebar{background:linear-gradient(150deg,#fffffff0,#fff7e0e6)!important}}

/* =====================================================================
   RENDIMIENTO — menos trabajo para el navegador (sobre todo en celulares)
   ===================================================================== */
/* El fondo no se anima: animar el degradado repinta toda la pantalla sin parar */
html body.bento,html body.bento .im-app .im-nav,html body.bento .im-app .im-button{animation:none!important}
/* Desenfoque solo donde hay algo detrás (menú y diálogos); las tarjetas usan relleno translúcido */
html body.bento .im-app :is(.im-stat,.im-panel,.im-product,.im-notice,.im-qbtn,.im-ledger-row,.im-trow,.im-inv-row,.im-credit-preview,.im-pf-card,.im-chip,.im-tab,.im-tabs,.im-button,.pill){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* Listas largas: el navegador solo pinta lo que se ve */
html body.bento .im-app :is(.im-ledger-row,.im-trow,.im-inv-row,.im-pf-row){content-visibility:auto;contain-intrinsic-size:auto 84px}
html body.bento .im-app :is(.im-stat,.im-panel,.im-qbtn){contain:layout paint}
@media(max-width:760px){html body.bento::before{animation:none!important}}

/* =====================================================================
   ESTILO BENTO — botones, pestañas, chips, campos, tarjetas y diálogos
   ===================================================================== */
html body.bento{--bn-line:#ffffff47;--bn-fill:#ffffff1a;--bn-fill2:#ffffff0d;--bn-hi:#ffffff73}
html body.bento[data-glass-tone=light]{--bn-line:#00000033;--bn-fill:#0000000d;--bn-fill2:#00000008;--bn-hi:#ffffffcc}
/* Botones */
html body.bento .im-app .im-button{min-height:52px;padding:0 28px!important;border-radius:999px!important;font-size:16px!important;font-weight:800!important;letter-spacing:-.01em;border:1.5px solid var(--bn-hi)!important;color:var(--bn-ink)!important;background:linear-gradient(180deg,var(--bn-orange-a),var(--bn-orange-b))!important;box-shadow:inset 0 2px 1px #ffffffb3,0 12px 30px #f08a3a59!important;transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s,filter .18s}
html body.bento .im-app .im-button:hover{transform:translateY(-2px);filter:brightness(1.04)}
html body.bento .im-app .im-button:active{transform:scale(.97)}
html body.bento .im-app .im-button.secondary{color:var(--glass-ink,#fff3e4)!important;background:linear-gradient(150deg,var(--bn-fill),var(--bn-fill2))!important;border:1.5px solid var(--bn-line)!important;box-shadow:inset 0 2px 1px var(--bn-hi),0 10px 26px #0003!important}
html body.bento .im-app .im-button.danger{color:#fff!important;background:linear-gradient(180deg,#e8604f,#b32a1c)!important;border-color:#ffffff59!important;box-shadow:inset 0 2px 1px #ffffff59,0 12px 28px #b32a1c59!important}
html body.bento .im-app .im-button.im-small{min-height:40px;padding:0 18px!important;font-size:14px!important}
html body.bento .im-app .im-button:disabled{opacity:.55;transform:none;filter:none}
html body.bento .im-app :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--bn-peach);outline-offset:3px}
/* Pestañas y chips */
html body.bento .im-app .im-tabs{display:flex;gap:8px;padding:6px;border-radius:999px;background:var(--bn-fill2);border:1px solid var(--bn-line);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
html body.bento .im-app .im-tabs::-webkit-scrollbar{display:none}
html body.bento .im-app :is(.im-tab,.im-chip,.im-method){flex:0 0 auto;min-height:44px;padding:0 22px!important;border-radius:999px!important;font-size:15px!important;font-weight:700!important;color:var(--glass-ink,#fff3e4)!important;background:var(--bn-fill)!important;border:1.5px solid var(--bn-line)!important;box-shadow:inset 0 2px 1px var(--bn-hi)!important;transition:transform .18s,background .18s}
html body.bento .im-app .im-tabs .im-tab:not([aria-pressed=true]){background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html body.bento .im-app :is(.im-tab[aria-pressed=true],.im-chip.is-on,.im-method.is-on){color:var(--bn-ink)!important;background:linear-gradient(180deg,var(--bn-orange-a),var(--bn-orange-b))!important;border-color:var(--bn-hi)!important;box-shadow:inset 0 2px 1px #ffffffb3,0 8px 22px #f08a3a59!important}
html body.bento .im-app :is(.im-chip,.im-method):active{transform:scale(.97)}
/* Campos */
html body.bento .im-app :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select,textarea){min-height:52px;border-radius:24px!important;padding:0 20px!important;font-size:16px!important;background:var(--bn-fill2)!important;border:1.5px solid var(--bn-line)!important;box-shadow:inset 0 2px 6px #0003!important;color:var(--glass-ink,#fff3e4)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body.bento .im-app textarea{padding:14px 20px!important;border-radius:28px!important;min-height:110px}
html body.bento .im-app :is(input,select,textarea)::placeholder{color:var(--glass-ink,#fff3e4);opacity:.5}
html body.bento .im-app label{font-weight:700}
/* Tarjetas y paneles */
html body.bento .im-app .im-panel{border-radius:40px!important;padding:26px 28px!important}
html body.bento .im-app .im-stat{border-radius:36px!important}
html body.bento .im-app .im-product{border-radius:34px!important;transition:transform .2s}
html body.bento .im-app .im-product:hover{transform:translateY(-3px)}
html body.bento .im-app .im-statrow{gap:14px}
/* Filas de listas */
html body.bento .im-app :is(.im-ledger-row,.im-trow){border-radius:28px!important;background:linear-gradient(150deg,var(--bn-fill),var(--bn-fill2))!important;border:1px solid var(--bn-line)!important;margin:0 0 10px!important}
html body.bento .im-app .im-thead{background:transparent!important;border-color:transparent!important;font-weight:700;opacity:.8}
html body.bento .im-app .im-ledger{display:flex;flex-direction:column}
html body.bento .im-app .im-more-btn{align-self:center;margin:12px auto 4px}
html body.bento .im-app .im-notice{border-radius:30px!important}
html body.bento .im-app .im-badge{border-radius:999px}
/* Títulos de página */
html body.bento .im-app .im-page-heading h1{font-weight:800;letter-spacing:-.045em;font-size:clamp(34px,4.4vw,60px);line-height:1.02}
html body.bento .im-app .im-page-heading p{font-size:clamp(15px,1.5vw,18px);opacity:.85}
/* Diálogos */
html body.bento .im-dialog{border-radius:44px!important;padding:8px;background:linear-gradient(150deg,#2a1912f2,#150e0cf0)!important;border:1.5px solid #ffffff3d!important;box-shadow:inset 0 2px 1px #ffffff40,0 40px 100px #000a!important;color:#fff3e4}
html body.bento[data-glass-tone=light] .im-dialog{background:linear-gradient(150deg,#fffffff5,#fff7e0f2)!important;color:#2a1a12;border-color:#0000002e!important}
html body.bento .im-dialog::backdrop{background:#0008}
html body.bento .im-dialog :is(input,select,textarea){color:inherit}
/* Opciones segmentadas (ej. ITBIS) */
html body.bento .im-app .im-seg{border-radius:999px}
/* Móvil: botones a lo ancho y toques cómodos */
@media(max-width:760px){
 html body.bento .im-app .im-actions .im-button{flex:1 1 140px}
 html body.bento .im-app .im-panel{padding:20px 18px!important;border-radius:34px!important}
 html body.bento .im-app :is(.im-ledger-row,.im-trow){border-radius:24px!important}
}

/* Ajustes finos */
html body.bento .im-app .im-topbar .im-button{min-height:42px;padding:0 20px!important;font-size:14px!important}
@media(max-width:760px){
 html body.bento .im-app .im-sidebar{background:linear-gradient(150deg,rgba(44,26,19,.94),rgba(24,14,11,.92))!important}
 html body.bento[data-glass-tone=light] .im-app .im-sidebar{background:linear-gradient(150deg,#fffffff5,#fff7e0f0)!important}
 html body.bento .im-app .im-button{padding:0 18px!important;font-size:15px!important;min-height:48px}
 html body.bento .im-app .im-topbar .im-button{min-height:40px;padding:0 16px!important;font-size:13px!important}
}
html body.bento .im-app .im-tabs{flex-wrap:nowrap!important}
html body.bento .im-app .im-tabs{display:flex!important;grid-template-columns:none!important;overflow-x:auto!important;width:100%}
html body.bento .im-app .im-tabs>.im-tab{flex:0 0 auto!important;white-space:nowrap}
/* ---- Ajustes v2: iconos centrados, mosaico 2x2, botones centrados ---- */
@media(max-width:760px){
 html body.bento .im-app .im-sidebar .im-nav,html body.bento .im-app .im-sidebar:is(:hover,:focus-within) .im-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;padding:0!important;text-indent:0;line-height:0}
 html body.bento .im-app .im-sidebar .im-nav>svg,html body.bento .im-app .im-sidebar .im-nav>.ii{margin:0!important;flex:0 0 22px}
}
html body.bento .im-app :is(.im-button,.im-chip,.im-small,.im-qbtn,.im-more-btn,.im-seg-b,.im-method,button.primary,.im-theme):not(.im-pick-card){display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px}
html body.bento .im-app :is(.im-button,.im-chip,.im-seg-b,.im-method):not(.im-pick-card){text-align:center!important}
html body.bento .im-app .im-picker .im-picker-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;max-height:none!important;overflow:visible!important}
@media(min-width:761px){html body.bento .im-app .im-picker .im-picker-list{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important}}
html body.bento .im-app .im-picker-list>:is(p,.im-more-btn,.im-empty){grid-column:1/-1}
html body.bento .im-app .im-pick-card{display:flex!important;flex-direction:column;height:auto!important;min-height:0!important;padding:0!important;border-radius:20px!important;overflow:hidden;text-align:left}
html body.bento .im-app .im-pick-card-img{width:100%;aspect-ratio:4/3;object-fit:cover}
html body.bento .im-app .im-pick-info{display:flex;flex-direction:column;gap:3px;padding:10px 12px 12px;min-width:0}
html body.bento .im-app .im-pick-info strong{font-size:14px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body.bento .im-app .im-pick-price{font-weight:800;font-size:15px}
html body.bento .im-app .im-pick-card{contain:layout paint style}
html body.bento .im-app .im-picker .im-picker-list:not(.zz):not(.zy){align-items:stretch!important;align-content:start!important;grid-auto-rows:auto!important}
html body.bento .im-app .im-pick-info strong{min-height:2.5em}
html body.bento .im-app .im-pick-info{flex:1 1 auto;justify-content:flex-start}
html body.bento .im-app .im-pick-info small{align-self:flex-start;margin-top:auto}
/* ---- v3: correcciones móvil (iPhone) ---- */
html body.bento .im-app{overflow-x:clip!important;overflow-y:visible!important}
html,body.bento{overflow-x:clip}
html body.bento .im-app .im-picker .im-picker-list:not(.zz):not(.zy){max-height:none!important;overflow:visible!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
@media(min-width:761px){html body.bento .im-app .im-picker .im-picker-list:not(.zz):not(.zy){grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important}}
html body.bento .im-app .im-inline-form form.im-sale-pos>.im-sale-side{max-height:none!important;overflow:visible!important}
@media(max-width:900px){html body.bento .im-app .im-inline-form form.im-sale-pos>.im-sale-side{position:static!important}}
@media(max-width:760px){
 html body button.im-sale-bar:not(.zz):not(.zy):not(.zx){bottom:calc(96px + env(safe-area-inset-bottom))!important;left:16px;right:16px;z-index:60}
 html body.bento .im-app .im-toolbar{align-items:start!important}
 html body.bento .im-app .im-actions{align-items:stretch!important}
 html body.bento .im-app .im-actions>.im-button{min-height:56px;font-size:15px!important;line-height:1.2;white-space:normal}
 html body.bento .im-app .im-stats>:last-child:nth-child(odd){grid-column:1/-1}
}
html body.bento .im-app input[type=date]{-webkit-appearance:none;appearance:none;display:block;height:52px!important;min-height:52px!important;line-height:52px;box-sizing:border-box;width:100%;text-align:left}
html body.bento .im-app input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0;min-height:0;line-height:52px}
html body.bento .im-app input[type=date]::-webkit-calendar-picker-indicator{margin:0}
html body.bento .im-app .im-sale-pos .im-picker{overflow:visible!important;max-height:none!important}
@media(max-width:900px){html body.bento .im-app .im-inline-form .im-dialog-content{max-height:none!important;overflow:visible!important}html body.bento .im-app .im-inline-form{contain:none!important}}
/* La barra inferior debe ser fija: .im-app no puede ser contenedor con scroll (iOS Safari) */
html body.bento .im-app{overflow:visible!important;overflow-x:clip!important}
@media(max-width:760px){
 html body.bento .im-app .im-sidebar{position:fixed!important;inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px)) 12px!important;z-index:50;transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0)}
 html body button.im-sale-bar:not(.zz):not(.zy):not(.zx){position:fixed!important}
}
/* Plan B (iPhone): si position:fixed falla, la barra se queda pegada abajo con sticky */
@media(max-width:760px){
 html body.bento .im-app{display:grid!important;grid-template-rows:auto auto}
 html body.bento .im-app .im-sidebar.bn-dock-sticky{position:sticky!important;inset:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;order:99;grid-row:2;margin:0 12px 12px;width:auto!important;left:auto!important;right:auto!important;transform:none!important}
 html body.bento .im-app>main{grid-row:1}
}

/* Barra inferior fuera de .im-app (iPhone): contenedor neutro */
html body.bento .im-dock-host{display:block!important;position:static!important;padding:0!important;margin:0!important;min-height:0!important;height:0!important;width:auto!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;grid-template-rows:none!important;transform:none!important;filter:none!important}
html body.bento .im-dock-host::before,html body.bento .im-dock-host::after{display:none!important}
@media(max-width:760px){
 html body.bento button.im-sale-bar{bottom:calc(96px + env(safe-area-inset-bottom))!important;z-index:40!important}
 html body.bento .im-dock-host .im-sidebar{position:fixed!important;z-index:50!important}
}

/* ---------- Cotizaciones ---------- */
html body.bento .im-app .im-q-pick .im-picker .im-picker-list:not(.zz):not(.zy){max-height:min(46vh,330px)!important;overflow-y:auto!important;overscroll-behavior:contain;padding:2px}
html body.bento .im-app .im-q-pick .im-picker{margin:0}
html body.bento .im-app .im-q-summary{margin:2px 2px 0;font-weight:700;font-size:14px;opacity:.9}
html body.bento .im-app .im-q-cart{display:grid;gap:10px}
html body.bento .im-app .im-q-line{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:8px;align-items:center;padding:10px;border-radius:18px;background:var(--bn-fill,rgba(255,255,255,.06));border:1.5px solid var(--bn-line,rgba(255,255,255,.14))}
html body.bento .im-app .im-q-line.has-img{grid-template-columns:44px minmax(0,1fr) 36px}
html body.bento .im-app .im-q-thumb{width:44px;height:44px;border-radius:12px;object-fit:cover}
html body.bento .im-app .im-q-name{display:block;min-width:0}
html body.bento .im-app .im-q-name input{width:100%;min-height:44px;font-weight:700;padding:0 14px!important}
html body.bento .im-app .im-q-ctl{grid-column:1/-1;display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
html body.bento .im-app button.im-q-x{width:36px;height:36px;min-height:36px!important;padding:0!important;border-radius:50%!important;font-size:20px;line-height:1}
html body.bento .im-app .im-q-step{display:flex;align-items:center;gap:3px;flex:0 0 auto}
html body.bento .im-app .im-q-step input{width:46px!important;min-height:36px!important;height:36px!important;text-align:center;padding:0 2px!important;font-size:15px!important}
html body.bento .im-app button.im-q-sb{width:34px;height:34px;min-height:34px!important;padding:0!important;border-radius:50%!important;font-size:18px;line-height:1}
html body.bento .im-app .im-q-price{flex:1 1 70px;min-width:70px;width:auto!important;min-height:36px!important;height:36px!important;padding:0 8px!important;font-size:15px!important;text-align:right}
html body.bento .im-app .im-q-lt{flex:0 0 auto;margin-left:auto;white-space:nowrap;font-size:14px}
html body.bento .im-app .im-q-totals{display:grid;gap:8px;padding:16px}
html body.bento .im-app .im-q-trow{display:flex;justify-content:space-between;gap:12px;font-size:15px}
html body.bento .im-app .im-q-trow.is-total{font-size:19px;padding-top:8px;border-top:1.5px solid var(--bn-line,rgba(255,255,255,.18))}
html body.bento .im-app .im-q-st{display:block;width:fit-content;margin:4px 0 0 auto;padding:3px 10px;border-radius:999px;font-weight:700;font-size:12px;background:#ffffff1f}
html body.bento .im-app .im-q-st-sent{background:#f5a52433;color:#ffd08a}
html body.bento .im-app .im-q-st-accepted{background:#2fb26a33;color:#8ff0b8}
html body.bento .im-app .im-q-st-rejected{background:#e5484d33;color:#ffb0b3}
html body.bento .im-app .im-q-st-expired{background:#8a8f9833;color:#c9cdd4}
html body.bento .im-app :is(.im-q-step input,.im-q-price){-moz-appearance:textfield;appearance:textfield}
html body.bento .im-app :is(.im-q-step input,.im-q-price)::-webkit-inner-spin-button,html body.bento .im-app :is(.im-q-step input,.im-q-price)::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html body.bento .im-app .im-q-price{font-size:14px!important;padding:0 6px!important}
/* Las cajas pequeñas de la cotización ganan al relleno grande que llevan todos los campos */
html body.bento .im-app .im-q-cart .im-q-step :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range])){width:46px!important;min-height:36px!important;height:36px!important;padding:0 2px!important;text-align:center;font-size:15px!important;border-radius:18px!important}
html body.bento .im-app .im-q-cart .im-q-ctl :is(input.im-q-price:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range])){min-height:36px!important;height:36px!important;padding:0 10px!important;text-align:right;font-size:15px!important;border-radius:18px!important}
html body.bento .im-app .im-q-cart .im-q-name :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range])){min-height:44px!important;padding:0 14px!important;border-radius:22px!important}
