:root{--bg:#ffffff;--card:#ffffff;--ink:#0f1730;--muted:#62718e;--line:#dfe7f3;--blue:#1967ff;--blue2:#0f57dc;--green:#20a84a;--green2:#138336;--purple:#8a49e8;--purple2:#b052ff;--orange:#ff7a21;--orange2:#ff5a00;--safe:env(safe-area-inset-bottom,0px);--header-h:unset;--dock-h:78px}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;min-height:100%;overflow:hidden;background:#fff;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-text-size-adjust:100%;overscroll-behavior:none}body{background:#fff}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;-webkit-tap-highlight-color:transparent}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:16px;padding:13px 15px;font-size:16px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#b7cbef;box-shadow:0 0 0 4px rgba(25,103,255,.08)}label{display:block;font-weight:900;margin:12px 0 6px}.app{width:100%;height:100dvh;min-height:100dvh;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:10px;padding:10px;background:#fff;overflow:hidden}.top,.cashbar,.board,.cart,.cats{background:#fff;border:1px solid #e4ebf7;box-shadow:0 8px 24px rgba(20,40,80,.06)}.top{display:grid;grid-template-columns:54px 54px minmax(0,1fr) 54px auto;align-items:center;gap:10px;border-radius:22px;padding:8px}.menu,.mode,.fullbtn,.icon{height:54px;min-width:54px;border-radius:18px;background:#fff;border:1px solid #e7eef8;box-shadow:0 4px 14px rgba(20,40,80,.06);color:#14203f;font-weight:900}.mode{padding:0 14px;font-size:13px;color:var(--blue)}.fullbtn{font-size:22px}.logo{width:54px;height:54px;border-radius:18px;object-fit:cover;border:1px solid #e1eaf6;background:#fff}.brand{min-width:0}.brand h1{margin:0;font-size:26px;line-height:1;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand p{margin:4px 0 0;color:#46607f;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cashbar{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;min-height:56px;border-radius:22px;padding:10px 14px;background:#fff7f1;border-color:#ffd2bc}.cashbar.open{background:#effdf3;border-color:#b6ebc1}.cashbar b{display:block;font-size:18px;color:#9a340b}.cashbar.open b{color:#0d7f2f}.cashbar small{display:block;color:#60708c;font-weight:800}.cashbar i{width:14px;height:14px;border-radius:999px;background:var(--orange)}.cashbar.open i{background:var(--green)}.cats{display:flex;align-items:center;gap:10px;min-height:74px;padding:8px;border-radius:22px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.cats::-webkit-scrollbar{display:none}.cat{flex:0 0 auto;min-width:160px;height:56px;border-radius:18px;padding:0 16px;display:flex;align-items:center;gap:10px;justify-content:center;font-weight:950;font-size:18px;color:#fff;white-space:nowrap;background:linear-gradient(135deg,#ff7b45,#ff9e53);box-shadow:0 10px 20px rgba(255,122,33,.18)}.cat:nth-child(3){background:linear-gradient(135deg,#ff536c,#ff7e84)}.cat:nth-child(4){background:linear-gradient(135deg,#8750e8,#b572ff)}.cat:nth-child(5){background:linear-gradient(135deg,#2a7fff,#58b3ff)}.cat span{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.22);flex:0 0 auto}.cat b{font-size:inherit;line-height:1}.cat.active{outline:3px solid rgba(25,103,255,.18);transform:none}.layout{min-height:0;height:100%;display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:10px;align-items:stretch}.board,.cart{min-height:0;height:100%;border-radius:24px}.board{display:flex;flex-direction:column;overflow:hidden;padding:12px}.tools{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:10px;flex:0 0 auto}.products{flex:1 1 auto;min-height:0;overflow:auto;align-content:start;display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:10px;padding:2px;scrollbar-width:thin}.product{position:relative;height:150px;border-radius:22px;padding:10px;border:1px solid #e2eaf6;background:#fff;box-shadow:0 6px 16px rgba(20,40,80,.05);text-align:left;transition:transform .08s ease}.product:active{transform:scale(.98)}.product em{position:absolute;top:8px;right:8px;font-style:normal;background:#eef5ff;color:var(--blue);border-radius:12px;padding:4px 8px;font-weight:900;font-size:12px}.product span{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:#f1f6fd;font-size:32px;margin-bottom:8px}.product b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px;line-height:1.06;font-size:16px}.product strong{display:block;margin-top:4px;font-size:22px;color:var(--orange2)}.product small{display:block;margin-top:2px;font-size:11px;color:var(--muted);font-weight:800}.cart{display:flex;flex-direction:column;overflow:hidden;padding:12px}.cart h2{margin:0 0 4px;font-size:18px;line-height:1.1}#cartQty{margin:0 0 8px;font-size:12px;color:var(--muted);font-weight:800}.cart-items{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:0;padding-right:2px}.cart-row{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 82px 62px;gap:6px;align-items:center;padding:8px 0;border-bottom:1px solid #edf2f8;touch-action:pan-y;background:#fff}.cart-row span{font-size:24px}.cart-row b{display:block;font-size:13px;line-height:1.05}.cart-row small{display:block;font-size:11px;color:var(--muted);font-weight:700}.cart-row strong{font-size:14px;text-align:right;white-space:nowrap}.qty{display:grid;grid-template-columns:24px 1fr 24px;align-items:center;text-align:center;gap:4px;background:#f4f8fd;border-radius:12px;padding:2px}.qty button{height:26px;border-radius:10px;background:#fff;font-weight:950;color:#12244f}.qty b{font-size:13px}#cartPanel .totals{flex:0 0 auto;margin-top:10px;padding-top:10px;border-top:1px solid #e7eef8;background:#fff}#cartPanel .totals>div:first-child{display:none}.totals div{display:flex;justify-content:space-between;align-items:center;margin:4px 0}.totals .grand{font-size:24px;font-weight:950}#cartPanel .paygrid{display:none;flex:0 0 auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e7eef8}#cartPanel.has-items .paygrid{display:grid}.paygrid button,.primary,.pay-methods button{min-height:52px;border-radius:16px;color:#fff;font-weight:950;font-size:14px;padding:8px 10px}.cashbtn{background:linear-gradient(135deg,#25b24c,#148134)}.cardbtn{background:linear-gradient(135deg,#8a49e8,#b052ff)}.transferbtn{background:linear-gradient(135deg,#2a7fff,#194fda)}.pointbtn{background:linear-gradient(135deg,#00a1ff,#0055da)}.creditbtn{background:linear-gradient(135deg,#ff8a3c,#ff5920)}.primary{background:linear-gradient(135deg,#1967ff,#0d57dc)}.floatCart{display:none;position:fixed;left:10px;right:10px;bottom:calc(var(--dock-h) + 10px + var(--safe));height:60px;border-radius:20px;padding:0 16px;background:linear-gradient(135deg,#6d8099,#455a78);color:#fff;align-items:center;justify-content:space-between;box-shadow:0 14px 30px rgba(20,40,80,.18);z-index:90}.floatCart span{min-width:0}.floatCart b{display:block;font-size:16px;line-height:1.05}.floatCart small{display:block;font-size:11px;opacity:.92}.floatCart strong{font-size:22px;white-space:nowrap}.dock{position:fixed;left:10px;right:10px;bottom:calc(8px + var(--safe));height:var(--dock-h);display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:8px;border-radius:24px;background:rgba(255,255,255,.96);border:1px solid #e3ebf7;box-shadow:0 12px 28px rgba(20,40,80,.10);z-index:80}.dock button{border-radius:18px;background:#fff;color:#102144;font-weight:900;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #edf2f8}.dock span{font-size:22px}.dock small{font-size:10px;color:var(--muted)}.modal{position:fixed;inset:0;display:grid;place-items:center;background:rgba(10,20,44,.35);padding:14px;z-index:1000}.modal.hidden{display:none}.modal-card{width:min(760px,96vw);max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border-radius:24px;padding:20px;box-shadow:0 26px 70px rgba(0,0,0,.25)}.modal-card h2{margin:0 0 8px;font-size:30px;letter-spacing:-.03em}.modal-card .muted{color:var(--muted);font-weight:700}.modal .cart-items{max-height:42vh;overflow:auto;margin-bottom:10px}.modal .paygrid,.pay-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pay-title{margin:12px 0 8px;font-size:15px;color:#213659}.modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.modal-actions button{min-height:50px;border-radius:16px;padding:0 16px;background:#eef5ff;font-weight:950;color:#102144}.pay-total{font-size:46px;font-weight:950;color:#0e1b3d}.quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.quick button{height:46px;border-radius:14px;background:#eaffef;color:#0b7d2e;font-weight:950}.change{font-size:24px;font-weight:950;margin-top:8px}.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.kpis div{background:#f4f8fd;border:1px solid #e4edf8;border-radius:16px;padding:12px}.kpis small{display:block;color:var(--muted);font-weight:800}.kpis b{font-size:22px}.list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.list-row{min-height:68px;border-radius:18px;background:#f7fbff;border:1px solid #e1eaf6;display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center;padding:10px;text-align:left}.list-row span{font-size:30px}.list-row b{font-size:17px}.list-row em,.list-row small{font-style:normal;color:var(--muted);font-weight:800}.grid-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid-menu button{min-height:66px;border-radius:18px;background:#f2f7ff;font-weight:950;color:#102144}.empty{padding:24px 12px;text-align:center;color:var(--muted);font-weight:800}.note{background:#fff9e8;border:1px solid #ffe2a3;border-radius:16px;padding:12px;color:#6d4b00;font-weight:800}.toast,.flash{position:fixed;left:50%;transform:translateX(-50%);z-index:2000;background:#0d1b3d;color:#fff;padding:12px 16px;border-radius:16px;bottom:calc(var(--dock-h) + 20px + var(--safe));opacity:0;pointer-events:none;transition:.18s;font-weight:900}.toast.show,.flash.show{opacity:1}.flash{top:10px;bottom:auto;background:#20a84a}.print-area{display:none}.app-rights{position:fixed;right:10px;bottom:2px;font-size:11px;color:#90a0bc;z-index:30}.quick-pay-bar,#quickPayBar{display:none!important}.swipe-row.swipe-add{background:linear-gradient(90deg,rgba(36,179,79,.12),#fff)}.swipe-row.swipe-delete{background:linear-gradient(270deg,rgba(255,89,74,.14),#fff)}.swipe-row.swipe-done{animation:swipedone .22s ease}@keyframes swipedone{0%{transform:scale(.99)}100%{transform:none}}@media (max-width:1180px){.layout{grid-template-columns:minmax(0,1fr) 340px}.products{grid-template-columns:repeat(auto-fill,minmax(126px,1fr))}.product{height:142px}}@media (max-width:980px){html,body{overflow:hidden}.app{padding:8px 8px calc(var(--dock-h) + 82px + var(--safe));gap:8px}.top{grid-template-columns:46px 46px minmax(0,1fr) 46px 72px;gap:8px;border-radius:18px;padding:6px}.menu,.logo,.fullbtn{width:46px;height:46px;min-width:46px;border-radius:15px}.mode{height:46px;padding:0 10px;font-size:11px;border-radius:15px}.brand h1{font-size:19px}.brand p{font-size:11px}.cashbar{min-height:50px;padding:8px 12px;border-radius:18px}.cashbar b{font-size:16px}.cats{min-height:58px;padding:6px;border-radius:18px;gap:8px}.cat{min-width:120px;height:44px;border-radius:15px;font-size:13px;padding:0 12px}.cat span{width:30px;height:30px;border-radius:10px}.layout{display:block}.board{border-radius:20px;padding:10px}.cart{display:none!important}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product{height:122px;border-radius:18px;padding:8px}.product span{width:42px;height:42px;border-radius:14px;font-size:26px;margin-bottom:6px}.product b{min-height:30px;font-size:14px}.product strong{font-size:20px}.product small{font-size:10px}.product em{padding:3px 7px;font-size:11px}.dock{display:grid}.floatCart{display:flex}.modal{padding:6px;align-items:end}.modal-card{width:100%;max-height:calc(100dvh - 12px);border-radius:22px 22px 16px 16px;padding:16px;padding-bottom:calc(16px + var(--safe))}.modal-card h2{font-size:24px}.modal .cart-items{max-height:40vh}.pay-total{font-size:36px}.kpis,.grid-menu{grid-template-columns:1fr 1fr}.app-rights{font-size:9px}}@media (max-width:430px){.app{padding:7px 7px calc(var(--dock-h) + 78px + var(--safe))}.top{grid-template-columns:42px 42px minmax(0,1fr) 42px 64px}.menu,.logo,.fullbtn{width:42px;height:42px;min-width:42px}.mode{height:42px;padding:0 8px;font-size:10px}.brand h1{font-size:17px}.brand p{font-size:10px}.cashbar{min-height:46px}.cats{min-height:54px}.cat{min-width:108px;height:40px;font-size:12px;gap:7px}.cat span{width:28px;height:28px}.tools input{padding:11px 12px;font-size:15px}.products{gap:6px}.product{height:110px}.product span{width:38px;height:38px;font-size:24px}.product b{font-size:13px;min-height:28px}.product strong{font-size:18px}.floatCart{left:7px;right:7px;height:56px;border-radius:18px;padding:0 12px}.floatCart b{font-size:14px}.floatCart strong{font-size:18px}.dock{left:7px;right:7px;height:74px;gap:6px;padding:6px}.dock span{font-size:20px}.dock small{font-size:9px}.modal .paygrid,.pay-methods{grid-template-columns:1fr 1fr}.quick{grid-template-columns:repeat(2,1fr)}}@media (max-width:360px){.cat{min-width:98px;font-size:11px}.product{height:102px}.product b{font-size:12px}.product strong{font-size:17px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}@media print{body{background:#fff!important}.app,.dock,.floatCart,.modal,.toast,.flash,.app-rights{display:none!important}.print-area{display:block!important}}.app-rights{left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:2px!important;text-align:center!important;width:max-content!important;max-width:94vw!important;pointer-events:none!important}.pro-banner{display:grid;gap:8px;padding:14px;border-radius:18px;margin:8px 0 14px;background:linear-gradient(135deg,#fff7ed,#eef5ff);border:1px solid #e6eef9}.pro-banner b{font-size:18px}.pro-banner small{color:var(--muted);font-weight:800;line-height:1.35}.pro-banner button{min-height:48px;border-radius:15px;background:linear-gradient(135deg,#1967ff,#8a49e8);color:#fff;font-weight:950}.paygrid button,.pay-methods button,.quick button,.pro-banner button{pointer-events:auto!important;touch-action:manipulation!important;user-select:none!important}#cartPanel .paygrid{position:relative!important;z-index:20!important;pointer-events:auto!important}#cartPanel .paygrid button{position:relative!important;z-index:21!important}.modal-card{position:relative!important;z-index:1001!important}.swipe-row{--swipe-x:0px;overflow:hidden;border-radius:14px;padding-left:6px!important;padding-right:6px!important;transition:transform .16s ease,background .16s ease,box-shadow .16s ease,opacity .16s ease,max-height .2s ease,margin .2s ease,padding .2s ease}.swipe-row::before,.swipe-row::after{position:absolute;top:50%;transform:translateY(-50%);opacity:0;z-index:0;font-weight:950;font-size:13px;border-radius:999px;padding:7px 10px;color:#fff;pointer-events:none;transition:opacity .12s ease,transform .12s ease}.swipe-row::before{content:'➕ 1 pieza';left:10px;background:linear-gradient(135deg,#21a84b,#0e7e30)}.swipe-row::after{content:'🗑️ Borrar';right:10px;background:linear-gradient(135deg,#ff4b5f,#d71935)}.swipe-row>*{position:relative;z-index:1}.swipe-row.swiping{transform:translateX(calc(var(--swipe-x) * .22));box-shadow:0 10px 22px rgba(20,40,80,.10)}.swipe-row.swipe-add{background:linear-gradient(90deg,rgba(32,168,74,.20),#fff 58%)!important}.swipe-row.swipe-delete{background:linear-gradient(270deg,rgba(255,64,90,.22),#fff 58%)!important}.swipe-row.swipe-add::before,.swipe-row.swipe-confirm-add::before{opacity:1;transform:translateY(-50%) scale(1.02)}.swipe-row.swipe-delete::after,.swipe-row.swipe-confirm-delete::after{opacity:1;transform:translateY(-50%) scale(1.02)}.swipe-row.swipe-confirm-add{animation:swipeAddPulse .2s ease;background:linear-gradient(90deg,rgba(32,168,74,.32),#fff 64%)!important}.swipe-row.swipe-confirm-delete{animation:swipeDeletePulse .2s ease;background:linear-gradient(270deg,rgba(255,64,90,.36),#fff 64%)!important}@keyframes swipeAddPulse{0%{transform:scale(.99)}100%{transform:scale(1)}}@keyframes swipeDeletePulse{0%{transform:scale(.99)}100%{transform:scale(1)}}@media(max-width:980px){.app{padding-bottom:calc(76px + var(--safe))!important}.floatCart{bottom:calc(8px + var(--safe))!important;z-index:120!important}.app-rights{bottom:1px!important;font-size:8px!important;opacity:.55!important;z-index:30!important}.modal-card{max-height:calc(100dvh - 10px)!important}.modal .cart-items{max-height:36dvh!important;min-height:0!important}}@media(min-width:981px){.floatCart{display:none!important}.app{padding-bottom:12px!important}}.product small{display:none!important}.product b{min-height:34px!important}@media(max-width:980px){.product{height:112px!important}.product b{min-height:30px!important}.product strong{margin-top:3px!important}}@media(max-width:430px){.product{height:104px!important}.product span{width:36px!important;height:36px!important;font-size:23px!important;margin-bottom:4px!important}.product b{font-size:13px!important;min-height:28px!important}.product strong{font-size:18px!important}}@media(max-width:360px){.product{height:98px!important}.product b{font-size:12px!important;min-height:26px!important}.product strong{font-size:17px!important}}.app-rights{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:94vw!important;text-align:center!important;pointer-events:none!important}.side-menu-shell{display:grid;grid-template-columns:172px minmax(0,1fr);gap:14px;min-height:min(560px,calc(100dvh - 150px))}.side-menu-nav{display:flex;flex-direction:column;gap:8px;padding:8px;border-radius:20px;background:#f6f9fe;border:1px solid #e4ebf7;overflow:auto}.side-menu-nav button{min-height:50px;display:flex;align-items:center;gap:9px;justify-content:flex-start;border-radius:16px;padding:0 12px;background:#fff;color:#14203f;border:1px solid #e7eef8;font-weight:950;text-align:left}.side-menu-nav button span{font-size:20px;line-height:1;flex:0 0 auto}.side-menu-nav button b{font-size:13px;line-height:1.1;white-space:normal}.side-menu-nav button.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,#1967ff,#8a49e8);box-shadow:0 10px 22px rgba(25,103,255,.18)}.side-menu-nav button.user-only{justify-content:center;min-height:52px;font-size:22px}.side-menu-nav button.user-only b{display:none}.side-module{min-width:0;min-height:0;overflow:auto;border-radius:22px;padding:16px;background:#fff;border:1px solid #e4ebf7}.side-module h3{margin:0 0 8px;font-size:24px;letter-spacing:-.02em}.side-module p{margin:0 0 12px;color:var(--muted);font-weight:700;line-height:1.4}.side-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.side-action-grid button,.schedule-actions button{min-height:54px;border-radius:16px;padding:10px 12px;background:#f2f7ff;color:#102144;font-weight:950}.side-action-grid button.primary,.schedule-actions button.primary{background:linear-gradient(135deg,#1967ff,#0d57dc);color:#fff}.schedule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}.schedule-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.schedule-pill{display:inline-flex;align-items:center;gap:6px;background:#eef5ff;color:#184c9c;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px}.swipe-row{--swipe-x:0px;overflow:hidden!important;border-radius:16px!important;transition:transform .16s ease,background .16s ease,box-shadow .16s ease,opacity .18s ease,max-height .2s ease,margin .2s ease,padding .2s ease!important}.swipe-row::before,.swipe-row::after{position:absolute;top:50%;transform:translateY(-50%) scale(.94);opacity:0;z-index:0;font-weight:950;font-size:13px;border-radius:999px;padding:8px 11px;color:#fff;pointer-events:none;transition:opacity .12s ease,transform .12s ease;box-shadow:0 8px 18px rgba(20,40,80,.16)}.swipe-row::before{content:'➕ Agregar 1 pieza';left:10px;background:linear-gradient(135deg,#20a84a,#0c7d2c)}.swipe-row::after{content:'🗑️ Borrar';right:10px;background:linear-gradient(135deg,#ff405a,#c7142b)}.swipe-row>*{position:relative;z-index:1}.swipe-row.swiping{transform:translateX(calc(var(--swipe-x) * .48))!important;box-shadow:0 12px 26px rgba(20,40,80,.14)!important}.swipe-row.swipe-add{background:linear-gradient(90deg,rgba(32,168,74,.24),#fff 66%)!important}.swipe-row.swipe-delete{background:linear-gradient(270deg,rgba(255,64,90,.28),#fff 66%)!important}.swipe-row.swipe-add::before,.swipe-row.swipe-confirm-add::before{opacity:1;transform:translateY(-50%) scale(1)}.swipe-row.swipe-delete::after,.swipe-row.swipe-confirm-delete::after{opacity:1;transform:translateY(-50%) scale(1)}.swipe-row.swipe-confirm-add{animation:swipeAddV82 .26s ease;background:linear-gradient(90deg,rgba(32,168,74,.38),#fff 72%)!important}.swipe-row.swipe-confirm-delete{animation:swipeDelV82 .26s ease;background:linear-gradient(270deg,rgba(255,64,90,.42),#fff 72%)!important}@keyframes swipeAddV82{0%{transform:translateX(18px) scale(.99)}100%{transform:translateX(0) scale(1)}}@keyframes swipeDelV82{0%{transform:translateX(-18px) scale(.99)}100%{transform:translateX(0) scale(1)}}@media(max-width:980px){.side-menu-shell{grid-template-columns:1fr;gap:10px;min-height:0;max-height:calc(100dvh - 92px)}.side-menu-nav{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:7px;border-radius:18px;scrollbar-width:none}.side-menu-nav::-webkit-scrollbar{display:none}.side-menu-nav button{flex:0 0 auto;min-height:44px;padding:0 11px;border-radius:14px}.side-menu-nav button b{font-size:12px;white-space:nowrap}.side-menu-nav button.user-only{width:48px;min-width:48px;padding:0}.side-module{max-height:calc(100dvh - 188px);padding:14px;border-radius:18px}.side-module h3{font-size:22px}.side-action-grid,.schedule-grid,.schedule-actions{grid-template-columns:1fr}.floatCart{bottom:calc(8px + var(--safe))!important}.app-rights{bottom:1px!important;text-align:center!important}}@media(max-width:430px){.side-module{max-height:calc(100dvh - 176px)}.side-menu-nav button:not(.user-only){min-width:112px}}@media (min-width:981px){html,body{overflow:hidden!important}.app{height:100vh!important;height:100dvh!important;grid-template-rows:auto auto auto minmax(0,1fr)!important}.cats{flex-wrap:wrap!important;overflow-x:hidden!important;overflow-y:auto!important;align-content:flex-start!important;min-height:64px!important;max-height:126px!important;scrollbar-width:thin!important}.cats::-webkit-scrollbar{display:block!important;height:8px!important;width:8px!important}.cat{min-width:auto!important;flex:1 1 132px!important;max-width:190px!important;height:48px!important;font-size:14px!important;border-radius:16px!important;padding:0 10px!important}.cat span{width:30px!important;height:30px!important;border-radius:11px!important}.layout{min-height:0!important}.board,.cart{min-height:0!important}.products{grid-template-columns:repeat(auto-fill,minmax(126px,1fr))!important}.product{height:132px!important}.product span{width:44px!important;height:44px!important;font-size:26px!important;margin-bottom:6px!important}.product b{font-size:14px!important;min-height:30px!important}.product strong{font-size:19px!important}}@media (min-width:1181px){.layout{grid-template-columns:minmax(0,1fr) 390px!important}.products{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))!important}}@media (min-width:981px){.app{grid-template-rows:auto auto auto minmax(0,1fr)!important;overflow:hidden!important}.cats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;gap:8px!important;height:auto!important;min-height:0!important;max-height:150px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:8px!important}.cat{width:100%!important;min-width:0!important;max-width:none!important;height:46px!important;flex:none!important;font-size:13px!important;padding:0 8px!important}.cat b{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;min-width:0!important}.layout{min-height:0!important;height:100%!important}.board,.cart{min-height:0!important;height:100%!important}}@media (min-width:981px) and (max-height:760px){.top{padding:6px!important;border-radius:18px!important}.menu,.logo,.fullbtn,.mode{height:46px!important;min-width:46px!important;width:46px!important;border-radius:15px!important}.brand h1{font-size:20px!important}.brand p{font-size:12px!important}.cashbar{min-height:48px!important;padding:7px 12px!important}.cats{max-height:104px!important;grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important}.cat{height:40px!important;font-size:12px!important}.cat span{width:26px!important;height:26px!important}.products{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important}.product{height:118px!important}.product span{width:38px!important;height:38px!important;font-size:23px!important}.product b{font-size:13px!important;min-height:28px!important}.product strong{font-size:18px!important}}.top{overflow:hidden!important;align-content:start!important}.mode{width:auto!important;min-width:108px!important;max-width:180px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;justify-self:end!important;padding-left:12px!important;padding-right:12px!important}.mode-notice{grid-column:1/-1!important;width:100%!important;min-width:0!important;margin:2px 0 0!important;padding:8px 10px!important;border-radius:16px!important;border:1px solid #dbe7fb!important;background:linear-gradient(135deg,#eef5ff,#ffffff)!important;color:#172446!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-align:center!important;box-shadow:none!important;position:static!important;transform:none!important;z-index:auto!important;max-width:100%!important;overflow:hidden!important}.mode-notice b{font-size:13px!important;font-weight:950!important;white-space:nowrap!important;color:#10234a!important}.mode-notice span{font-size:12px!important;font-weight:800!important;color:#516280!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.mode-notice button{min-height:32px!important;border-radius:12px!important;padding:0 12px!important;background:linear-gradient(135deg,#1967ff,#8a49e8)!important;color:#fff!important;font-weight:950!important;flex:0 0 auto!important}.mode-notice.collapsed{max-height:none!important;opacity:1!important}.mode-notice::before{content:attr(data-mini);font-size:10px;font-weight:950;color:#1967ff;background:#eaf2ff;border-radius:999px;padding:4px 7px;flex:0 0 auto}@media (min-width:981px) and (max-height:760px){.mode{width:auto!important;min-width:108px!important;max-width:170px!important;height:46px!important}.mode-notice{padding:7px 10px!important;border-radius:14px!important}.mode-notice span{font-size:11px!important}}@media (max-width:980px){.mode{width:auto!important;min-width:64px!important;max-width:86px!important;padding-left:8px!important;padding-right:8px!important}.mode-notice{padding:7px 8px!important;gap:6px!important;border-radius:14px!important}.mode-notice span{display:none!important}.mode-notice b{font-size:12px!important}.mode-notice button{min-height:30px!important;padding:0 10px!important;font-size:12px!important}}@media (max-width:430px){.mode{min-width:58px!important;max-width:70px!important;font-size:10px!important}.mode-notice{padding:6px!important}.mode-notice::before{display:none!important}}


.cash-chip{display:inline-flex;align-items:center;justify-content:center;width:26px;height:22px;border-radius:999px;background:#f2f6ff;border:1px solid #dfe8f6;font-size:13px;line-height:1;vertical-align:middle;cursor:pointer;box-shadow:0 3px 9px rgba(20,40,80,.06)}
.cash-chip.open{background:#effdf3;border-color:#b6ebc1}.cash-chip.closed{background:#fff7f1;border-color:#ffd2bc}.cashbar.cashbar-collapsed{display:none!important}.num-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0}.num-pad button{min-height:48px;border-radius:16px;background:#f2f7ff;color:#102144;border:1px solid #e1eaf6;font-size:22px;font-weight:950;box-shadow:0 5px 12px rgba(20,40,80,.05)}.num-pad button:active{transform:scale(.98);background:#e7f0ff}.num-pad .wide{grid-column:span 2;font-size:15px}.checkout .num-pad{max-width:360px}.modal-card input#received,.modal-card input#initialCash{font-size:24px;font-weight:950;text-align:right;letter-spacing:.02em}
@media (min-width:981px) and (max-height:760px){.cashbar.cashbar-collapsed{display:none!important}.num-pad{gap:6px;margin-top:8px}.num-pad button{min-height:40px;border-radius:13px;font-size:20px}.num-pad .wide{font-size:13px}.modal-card{padding:16px!important}.modal-card h2{font-size:26px!important}.pay-total{font-size:40px!important}.change{font-size:22px!important}}
:root{--tap:clamp(42px,5.6vw,56px)}
html,body{width:100%;max-width:100%;height:100%;overflow:hidden!important}
.app{height:var(--appH,100dvh)!important;min-height:var(--appH,100dvh)!important;max-height:var(--appH,100dvh)!important;width:100%!important;max-width:100%!important;background:#fff!important}
.cashbar.cashbar-collapsed{display:none!important}
.top,.layout,.board,.cart,.cats,.products{min-width:0!important}
.menu,.mode,.fullbtn,.icon,.cat,.product,.qty button,.paygrid button,.modal-actions button,.install-mega{touch-action:manipulation}
.product,.cat,.paygrid button,.modal-actions button,.num-pad button{-webkit-user-select:none;user-select:none}
#search{font-size:16px!important}
@media (min-width:981px){.app{grid-template-rows:auto auto minmax(0,auto) minmax(0,1fr)!important;gap:clamp(6px,.85vw,10px)!important;padding:clamp(7px,.9vw,12px)!important}.layout{grid-template-columns:minmax(0,1fr) clamp(300px,32vw,390px)!important;gap:clamp(7px,.9vw,12px)!important}.cart{display:flex!important}.floatCart{display:none!important}.products{grid-template-columns:repeat(auto-fill,minmax(clamp(118px,12.2vw,150px),1fr))!important;gap:clamp(7px,.8vw,11px)!important}.product{height:clamp(118px,16.5vh,154px)!important}.cats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(clamp(108px,12vw,156px),1fr))!important;max-height:clamp(82px,17vh,150px)!important;min-height:0!important;overflow:auto!important}.cat{height:clamp(40px,6.8vh,52px)!important;font-size:clamp(12px,1.35vw,15px)!important;min-width:0!important;max-width:none!important;width:100%!important}.cat span{width:clamp(26px,3.2vw,34px)!important;height:clamp(26px,3.2vw,34px)!important}.brand h1{font-size:clamp(19px,2.4vw,28px)!important}.brand p{font-size:clamp(11px,1.25vw,14px)!important}}
@media (min-width:981px) and (max-height:740px){.app{gap:6px!important;padding:6px!important}.top{padding:5px!important;border-radius:16px!important}.menu,.logo,.fullbtn,.mode{height:42px!important;min-width:42px!important;border-radius:14px!important}.brand h1{font-size:19px!important}.brand p{font-size:11px!important}.cats{max-height:88px!important;padding:6px!important;gap:6px!important}.cat{height:36px!important;font-size:11.5px!important;border-radius:13px!important}.cat span{width:24px!important;height:24px!important;border-radius:9px!important}.board,.cart{border-radius:18px!important;padding:8px!important}.tools{margin-bottom:6px!important}.products{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))!important;gap:6px!important}.product{height:106px!important;border-radius:16px!important;padding:7px!important}.product span{width:32px!important;height:32px!important;font-size:20px!important;margin-bottom:4px!important}.product b{font-size:12px!important;min-height:25px!important}.product strong{font-size:16px!important}.cart-row{grid-template-columns:28px minmax(0,1fr) 72px 54px!important;padding:6px 0!important}.paygrid button{min-height:42px!important;font-size:12px!important}.totals .grand{font-size:20px!important}}
@media (max-width:980px){html,body{overflow:hidden!important}.app{grid-template-rows:auto minmax(0,auto) minmax(0,1fr)!important;gap:8px!important;padding:8px!important}.top{grid-template-columns:46px 46px minmax(0,1fr) 46px minmax(62px,auto)!important;gap:7px!important;border-radius:18px!important;padding:6px!important}.menu,.logo,.fullbtn,.mode{height:46px!important;min-width:46px!important;border-radius:15px!important}.mode{min-width:62px!important;max-width:92px!important;font-size:11px!important;padding:0 7px!important}.brand h1{font-size:clamp(18px,4vw,24px)!important}.brand p{font-size:clamp(11px,2.6vw,13px)!important}.cashbar{min-height:46px!important;border-radius:16px!important;padding:8px 10px!important}.cashbar b{font-size:15px!important}.cashbar small{font-size:11px!important}.cashbar.cashbar-collapsed{display:none!important}.cats{min-height:52px!important;max-height:58px!important;padding:6px!important;border-radius:18px!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important}.cat{height:42px!important;min-width:128px!important;font-size:13px!important;border-radius:14px!important;padding:0 10px!important}.cat span{width:28px!important;height:28px!important;border-radius:10px!important}.layout{display:grid!important;grid-template-columns:1fr!important;height:100%!important;min-height:0!important}.board{height:100%!important;border-radius:18px!important;padding:8px!important}.tools{margin-bottom:7px!important}.cart{display:none!important}.products{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;gap:7px!important;padding-bottom:86px!important}.product{height:124px!important;border-radius:17px!important;padding:8px!important}.product span{width:38px!important;height:38px!important;font-size:23px!important;margin-bottom:5px!important}.product b{font-size:13px!important;min-height:28px!important}.product strong{font-size:17px!important}.floatCart{left:8px!important;right:8px!important;bottom:calc(8px + var(--safe))!important;height:58px!important;border-radius:18px!important}.cart-has-items .floatCart{display:flex!important}.app-rights{display:none!important}.modal{padding:9px!important;align-items:end!important}.modal-card{width:100%!important;max-height:calc(var(--appH,100dvh) - 18px)!important;border-radius:22px!important;padding:16px!important}.modal-card h2{font-size:clamp(24px,6vw,30px)!important}.modal .paygrid,.pay-methods{grid-template-columns:repeat(2,minmax(0,1fr))!important}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.side-menu-shell{max-height:calc(var(--appH,100dvh) - 82px)!important}.side-module{max-height:calc(var(--appH,100dvh) - 172px)!important}.num-pad button{min-height:48px!important}}
@media (min-width:700px) and (max-width:980px) and (orientation:landscape){.app{grid-template-rows:auto minmax(0,auto) minmax(0,1fr)!important}.top{grid-template-columns:46px 46px minmax(0,1fr) 46px minmax(70px,auto)!important}.layout{grid-template-columns:minmax(0,1fr) clamp(260px,34vw,330px)!important}.cart{display:flex!important;border-radius:18px!important;padding:8px!important}.floatCart{display:none!important}.products{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))!important;padding-bottom:0!important}.product{height:112px!important}.cat{min-width:118px!important}}
@media (max-width:560px){.app{padding:6px!important;gap:6px!important}.top{grid-template-columns:44px minmax(0,1fr) 42px minmax(54px,auto)!important}.logo{display:none!important}.menu,.fullbtn,.mode{height:42px!important;min-width:42px!important;border-radius:14px!important}.mode{min-width:54px!important;max-width:68px!important;font-size:10px!important}.brand h1{font-size:17px!important}.brand p{font-size:11px!important}.cats{min-height:48px!important;max-height:52px!important;padding:5px!important}.cat{height:38px!important;min-width:112px!important;font-size:12px!important;padding:0 8px!important}.cat span{width:25px!important;height:25px!important}.board{padding:6px!important;border-radius:16px!important}.products{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))!important;gap:6px!important;padding-bottom:78px!important}.product{height:112px!important;border-radius:15px!important;padding:7px!important}.product em{font-size:10px!important;padding:3px 6px!important}.product span{width:32px!important;height:32px!important;font-size:20px!important}.product b{font-size:12px!important;min-height:26px!important}.product strong{font-size:15px!important}.floatCart{height:54px!important}.floatCart b{font-size:14px!important}.floatCart strong{font-size:19px!important}.modal-card{padding:14px!important;border-radius:20px!important}.quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}.modal-actions{display:grid!important;grid-template-columns:1fr!important}.modal-actions button{width:100%!important}.grid-menu{grid-template-columns:1fr!important}.list-row{grid-template-columns:44px 1fr!important}.list-row em{display:none!important}.side-action-grid,.schedule-grid,.schedule-actions{grid-template-columns:1fr!important}}
@media (max-width:380px){.fullbtn{display:none!important}.top{grid-template-columns:42px minmax(0,1fr) minmax(52px,auto)!important}.products{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))!important}.product{height:106px!important}.product span{width:29px!important;height:29px!important;font-size:18px!important}.product b{font-size:11.5px!important}.product strong{font-size:14px!important}.cat{min-width:102px!important}.modal .paygrid,.pay-methods,.kpis{grid-template-columns:1fr!important}}
@media (max-height:560px){.modal-card{max-height:calc(var(--appH,100dvh) - 12px)!important}.modal-card h2{font-size:22px!important;margin-bottom:4px!important}.pay-total{font-size:34px!important}.num-pad{gap:5px!important}.num-pad button{min-height:36px!important;border-radius:12px!important}.quick button{height:38px!important}.modal-actions button{min-height:42px!important}.products{padding-bottom:68px!important}}
@media (display-mode:standalone){body{background:#fff!important}.app{padding-top:max(6px,env(safe-area-inset-top,0px))!important}}


/* v107: cobro en efectivo táctil compacto, local Windows + Chrome */
.modal-card-checkout-cash{width:min(940px,calc(100vw - 18px))!important;max-height:calc(var(--appH,100dvh) - 18px)!important;overflow:hidden!important;padding:clamp(10px,1.35vw,16px)!important;border-radius:clamp(18px,2.2vw,24px)!important}.checkout-cash{display:grid!important;grid-template-columns:minmax(220px,.82fr) minmax(310px,1.18fr)!important;gap:clamp(6px,1vh,10px) clamp(10px,1.6vw,16px)!important;align-items:start!important}.checkout-cash>h2,.checkout-cash>.muted,.checkout-cash>.pay-total,.checkout-cash>.pay-title,.checkout-cash>.pay-methods,.checkout-cash>.modal-actions{grid-column:1!important}.checkout-cash>#cashBox{grid-column:2!important;grid-row:1 / span 6!important;min-width:0!important}.checkout-cash h2{font-size:clamp(20px,4.2vh,30px)!important;margin:0!important;line-height:1!important}.checkout-cash .muted{margin:0!important;font-size:12px!important}.checkout-cash .pay-total{font-size:clamp(30px,6.4vh,46px)!important;line-height:.96!important;margin:0!important}.checkout-cash .pay-title{margin:0!important;font-size:13px!important}.checkout-cash .pay-methods{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:0!important}.checkout-cash .pay-methods button{min-height:clamp(38px,6.2vh,50px)!important;border-radius:14px!important;font-size:clamp(11px,1.45vw,14px)!important;padding:6px 8px!important}.checkout-cash .modal-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0!important}.checkout-cash .modal-actions button{min-height:clamp(40px,6.2vh,50px)!important;border-radius:14px!important;padding:0 10px!important}.cash-pay-box{display:grid!important;grid-template-rows:auto auto auto auto!important;gap:clamp(5px,.9vh,8px)!important;min-width:0!important}.cash-pay-box label{margin:0!important}.cash-pay-box label span{display:block;font-size:12px!important;margin-bottom:4px!important;color:#213659}.cash-pay-box input#received,.cash-open-box input#initialCash{height:clamp(40px,6.6vh,52px)!important;border-radius:14px!important;padding:7px 12px!important;font-size:clamp(20px,3.8vh,27px)!important;line-height:1!important}.cash-pay-box .quick,.cash-open-box .quick{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin:0!important}.cash-pay-box .quick button,.cash-open-box .quick button{height:clamp(34px,5.8vh,44px)!important;border-radius:12px!important;font-size:clamp(11px,1.8vw,14px)!important;padding:0 6px!important}.cash-pay-box .num-pad,.cash-open-box .num-pad{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin:0!important;max-width:none!important;width:100%!important}.cash-pay-box .num-pad button,.cash-open-box .num-pad button{min-height:clamp(34px,6.1vh,50px)!important;border-radius:12px!important;font-size:clamp(17px,3vh,22px)!important;padding:0!important}.cash-pay-box .num-pad .wide,.cash-open-box .num-pad .wide{grid-column:span 1!important;font-size:clamp(10px,1.5vw,12px)!important}.cash-pay-box .change{font-size:clamp(18px,3.3vh,24px)!important;margin:0!important;line-height:1.1!important}.modal-card-cash-open{width:min(720px,calc(100vw - 18px))!important;max-height:calc(var(--appH,100dvh) - 18px)!important;overflow:hidden!important;padding:clamp(12px,1.5vw,18px)!important}.cash-open-modal{display:grid!important;grid-template-columns:minmax(220px,.9fr) minmax(300px,1.1fr)!important;gap:10px 14px!important;align-items:start!important}.cash-open-modal>h2,.cash-open-modal>p,.cash-open-modal>.note,.cash-open-modal>.modal-actions{grid-column:1!important}.cash-open-modal>.cash-open-box{grid-column:2!important;grid-row:1 / span 4!important}.cash-open-modal h2{margin:0!important;font-size:clamp(21px,4vh,30px)!important}.cash-open-modal p{margin:0!important}.cash-open-modal .note{margin:0!important;padding:10px!important}.cash-open-modal .modal-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0!important}.modal-open .modal-card-checkout-cash input,.modal-open .modal-card-cash-open input{touch-action:manipulation}@page{size:80mm auto;margin:0}@media print{html,body{width:80mm!important;margin:0!important;padding:0!important}.print-area{width:80mm!important}.print-area .ticket{width:72mm!important;margin:0 auto!important;padding:3mm 2mm!important;font-family:Arial,sans-serif!important;font-size:11px!important;color:#000!important}.print-area .ticket h3{font-size:16px!important;margin:4px 0!important}.print-area .ticket table{width:100%!important;border-collapse:collapse!important}.print-area .ticket td:last-child{text-align:right!important;white-space:nowrap!important}}
@media (max-width:760px){.modal-card-checkout-cash{overflow:hidden!important}.checkout-cash{display:flex!important;flex-direction:column!important;gap:6px!important}.checkout-cash #cashBox{grid-column:auto!important;grid-row:auto!important;width:100%!important}.checkout-cash h2{font-size:22px!important}.checkout-cash .muted{display:none!important}.checkout-cash .pay-total{font-size:34px!important}.checkout-cash .pay-title{display:none!important}.checkout-cash .pay-methods{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important}.checkout-cash .pay-methods button{min-height:38px!important;font-size:11px!important;border-radius:12px!important}.checkout-cash .modal-actions{width:100%!important;grid-template-columns:1fr 1fr!important}.cash-pay-box .quick{grid-template-columns:repeat(4,minmax(0,1fr))!important}.cash-pay-box .num-pad{grid-template-columns:repeat(4,minmax(0,1fr))!important}.cash-pay-box .num-pad button{min-height:38px!important}.cash-open-modal{display:flex!important;flex-direction:column!important;gap:8px!important}.cash-open-modal .modal-actions{width:100%!important;grid-template-columns:1fr 1fr!important}.cash-open-box .num-pad{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (max-height:600px){.modal-card-checkout-cash{padding:8px!important}.checkout-cash{gap:5px 10px!important}.checkout-cash h2{font-size:20px!important}.checkout-cash .muted,.checkout-cash .pay-title{display:none!important}.checkout-cash .pay-total{font-size:30px!important}.checkout-cash .pay-methods button{min-height:34px!important;font-size:11px!important}.cash-pay-box{gap:5px!important}.cash-pay-box label span{display:none!important}.cash-pay-box input#received{height:38px!important;font-size:21px!important}.cash-pay-box .quick button{height:32px!important}.cash-pay-box .num-pad button{min-height:32px!important;border-radius:10px!important;font-size:18px!important}.cash-pay-box .change{font-size:18px!important}.checkout-cash .modal-actions button{min-height:36px!important}.modal-card-cash-open{padding:10px!important}.cash-open-modal h2{font-size:20px!important}.cash-open-modal p,.cash-open-modal .note{display:none!important}.cash-open-box input#initialCash{height:40px!important}.cash-open-box .num-pad button{min-height:34px!important}.cash-open-modal .modal-actions button{min-height:38px!important}}
@media (max-width:380px){.checkout-cash .pay-methods button{font-size:10px!important;padding:4px!important}.cash-pay-box .quick button{font-size:10px!important}.cash-pay-box .num-pad button{font-size:17px!important}.cash-pay-box input#received{font-size:20px!important}.checkout-cash .modal-actions button{font-size:13px!important}}


/* v107 touch POS refinements */
.clear-cart-btn{display:none;width:100%;min-height:42px;border-radius:14px;background:#fff4f4;color:#b42318;border:1px solid #ffd2cf;font-weight:950;margin-top:8px}.cart.has-items .clear-cart-btn,#cartPanel.has-items .clear-cart-btn{display:block}.selected-pay{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;border:1px solid #dfe9f8;background:#f7fbff;font-weight:950;color:#12244f}.selected-pay span{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border-radius:14px;padding:0 12px;background:#fff;border:1px solid #e3ecf8;box-shadow:0 6px 16px rgba(20,40,80,.05)}.selected-pay small{color:var(--muted);font-weight:850}.confirm-sale-green{background:linear-gradient(135deg,#22b856,#0c8738)!important;color:#fff!important;box-shadow:0 0 0 0 rgba(34,184,86,.42),0 14px 28px rgba(13,135,56,.22)!important;animation:confirmGreenPulse 1.05s ease-in-out infinite!important}@keyframes confirmGreenPulse{0%,100%{transform:translateZ(0) scale(1);box-shadow:0 0 0 0 rgba(34,184,86,.42),0 14px 28px rgba(13,135,56,.22)}50%{transform:translateZ(0) scale(1.025);box-shadow:0 0 0 9px rgba(34,184,86,0),0 18px 36px rgba(13,135,56,.28)}}.checkout-one-method .pay-methods{display:none!important}.checkout-one-method .checkout-actions{display:grid!important;grid-template-columns:.9fr .9fr 1.3fr!important;gap:8px!important;width:100%}.checkout-one-method .checkout-actions button{width:100%}.checkout-cash.checkout-one-method>.selected-pay{grid-column:1!important}.checkout-cash.checkout-one-method>.modal-actions{grid-column:1!important}@media (max-width:760px){.checkout-one-method .checkout-actions{grid-template-columns:1fr!important}.selected-pay{grid-template-columns:1fr}.selected-pay span{width:100%}.clear-cart-btn{min-height:40px}}@media (max-height:600px){.selected-pay{padding:7px 10px}.selected-pay span{min-height:32px}.selected-pay small{display:none}.checkout-one-method .checkout-actions button{min-height:36px!important}.clear-cart-btn{min-height:36px;margin-top:5px}}


/* v107: cierre de turno y modo local Windows */
.close-menu-btn{background:linear-gradient(135deg,#111827,#374151)!important;color:#fff!important;border-color:#111827!important}.close-system-modal .kpis{margin:10px 0}.close-check{display:flex!important;align-items:center;gap:12px!important;margin:10px 0!important;padding:14px!important;border:1px solid #dfe7f3!important;border-radius:16px!important;background:#f8fbff!important;font-weight:950!important}.close-check input{width:24px!important;height:24px!important;accent-color:#16a34a}.close-confirm-btn{background:linear-gradient(135deg,#16a34a,#15803d)!important;color:#fff!important;animation:confirmGreenPulse 1.05s ease-in-out infinite!important}.close-fallback{display:none;margin-top:12px;padding:12px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-weight:850}.close-fallback.on{display:block}.closed-screen{text-align:center;display:grid;gap:16px;place-items:center;padding:22px}.closed-screen h2{font-size:clamp(28px,5vw,44px);margin:0}.closed-screen p{font-size:18px;color:#526174}.closed-big{width:100%;border-radius:24px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;padding:22px;font-size:clamp(20px,4vw,34px);font-weight:950}.note.danger{background:#fff1f2!important;border-color:#fecdd3!important;color:#9f1239!important}@media (max-height:700px){.modal-card-checkout-cash{max-height:calc(var(--appH,100dvh) - 8px)!important}.checkout-cash .selected-pay{padding:6px 8px!important}.checkout-cash .selected-pay span{min-height:30px!important}.cash-pay-box .change{font-size:clamp(16px,3vh,22px)!important}.cash-pay-box .num-pad button{min-height:clamp(31px,5.6vh,44px)!important}.checkout-one-method .checkout-actions button{min-height:clamp(34px,5.4vh,46px)!important}}@media (max-width:760px){.close-system-modal .modal-actions{grid-template-columns:1fr!important}.close-system-modal .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.closed-screen{padding:10px}.closed-big{padding:16px}}


/* v107: pedido táctil, scroll real y alta rápida con emojis */
.cart{min-height:0!important;overflow:hidden!important}
.cart-items{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-y!important;max-height:none!important}
.cart-row{flex:0 0 auto!important;min-height:54px;touch-action:pan-y pinch-zoom!important;contain:layout paint}
#cartPanel .clear-cart-btn{flex:0 0 auto!important;display:none;position:relative;z-index:4;touch-action:manipulation!important;user-select:none;-webkit-user-select:none;cursor:pointer}
#cartPanel.has-items .clear-cart-btn,.cart.has-items .clear-cart-btn{display:block!important}
#cartPanel .totals,#cartPanel .paygrid{flex:0 0 auto!important}
.modal .cart-items{overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.modal .cart-row{flex:0 0 auto!important}
.danger-btn{background:linear-gradient(135deg,#ef4444,#b91c1c)!important;color:#fff!important;min-height:52px;border-radius:16px;font-weight:950;padding:0 18px}.clear-cart-confirm .modal-actions{display:grid!important;grid-template-columns:1fr 1.15fr!important}.emoji-suggest{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:8px;margin:8px 0 12px;padding:10px;border:1px solid #e5edf7;border-radius:18px;background:#f8fbff}.emoji-suggest button{min-height:42px;border-radius:14px;background:#fff;border:1px solid #e3ebf7;font-size:23px;box-shadow:0 3px 10px rgba(20,40,80,.05);touch-action:manipulation}.emoji-suggest button:active{transform:scale(.96)}.product,.cat,.cart-row{content-visibility:auto;contain-intrinsic-size:120px 120px}@media (min-width:981px){#cartPanel .cart-items{padding-right:5px}#cartPanel .cart-items::-webkit-scrollbar{width:10px}#cartPanel .cart-items::-webkit-scrollbar-thumb{background:#cbd6e8;border-radius:999px}#cartPanel .cart-items::-webkit-scrollbar-track{background:#f4f7fb;border-radius:999px}}@media (max-height:720px) and (min-width:981px){.cart-row{min-height:48px!important}.cart-row span{font-size:21px!important}.cart-row b{font-size:12px!important}.cart-row small{font-size:10px!important}#cartPanel .paygrid{gap:6px!important;margin-top:8px!important;padding-top:8px!important}#cartPanel .paygrid button{min-height:38px!important}.totals .grand{font-size:19px!important}.clear-cart-btn{min-height:34px!important;margin-top:5px!important}}
