/* Caja ajustada al espacio disponible. Solo las listas largas desplazan. */
body.mode-pos{height:100vh;height:100dvh;overflow:hidden}
.mode-pos main{height:100vh;height:100dvh;padding:14px 20px 8px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.mode-pos main>header{flex-shrink:0;padding-bottom:12px;margin-bottom:10px;gap:8px}.mode-pos h1{font-size:24px;margin-top:3px}.mode-pos .eyebrow{font-size:10px}.mode-pos main>.demo-banner{flex-shrink:0;margin-bottom:10px;padding:7px 10px}.mode-pos main>footer{flex-shrink:0;margin-top:8px;font-size:10px;line-height:1.4}
.mode-pos #pos.view.active{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.mode-pos .pos-layout{flex:1;min-height:0;height:100%;grid-template-columns:minmax(0,1fr) minmax(320px,37%);border-radius:12px}
.mode-pos .touch-sale,.mode-pos .touch-checkout{min-height:0;padding:18px;overflow:hidden}
.mode-pos .touch-sale{position:relative}.mode-pos .touch-sale>.cart-header{flex-shrink:0;padding:0 0 13px}.mode-pos .touch-sale .cart-header h2{font-size:23px;margin-top:3px}.mode-pos .cart-count{font-size:10px;padding:4px 7px}.mode-pos .search-wrap{flex-shrink:0;padding:3px 12px}.mode-pos .search-wrap input{font-size:13px;padding:9px 0}.mode-pos .scan-help{flex-shrink:0;margin:7px 0 9px;gap:6px;font-size:10px}.mode-pos #catalog-toggle{padding:5px 0}
.mode-pos .touch-sale .cart{flex:1;min-height:0;height:auto;margin:0}.mode-pos .cart-columns{flex-shrink:0;padding:9px 0;font-size:10px}.mode-pos .cart-items{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#605778 transparent}.mode-pos .cart-line{padding:15px 0}.mode-pos .line-top{font-size:15px}.mode-pos .line-top strong{font-size:18px}.mode-pos .line-bottom{margin-top:9px;font-size:11px}.mode-pos .quantity{gap:12px}.mode-pos .quantity button{padding:3px 10px;min-height:30px;font-size:17px}.mode-pos .empty{padding:35px 12px;font-size:13px}.mode-pos .empty-symbol{font-size:30px}
.mode-pos .quick-products{flex-shrink:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:13px}.mode-pos .quick-products button{padding:9px 8px;font-size:11px}.mode-pos .quick-products small{font-size:10px;margin-top:3px}.mode-pos .touch-hint{flex-shrink:0;font-size:10px;line-height:1.6;margin-top:9px}
.mode-pos #catalog-drawer{position:absolute;z-index:3;left:16px;right:16px;top:123px;bottom:15px;padding:15px;background:#23263c;border:1px solid #555071;box-shadow:0 15px 40px #080b2370;border-radius:11px;display:flex;flex-direction:column;min-height:0}.mode-pos #catalog-drawer .filters,.mode-pos #catalog-drawer .section-label{flex-shrink:0}.mode-pos #catalog-drawer .filters{margin-bottom:13px}.mode-pos #catalog-drawer .product-grid{flex:1;min-height:0;max-height:none;overflow:auto;align-content:start;grid-template-columns:repeat(3,minmax(0,1fr));overscroll-behavior:contain}.mode-pos #catalog-drawer .product-card{min-height:145px}.mode-pos #catalog-drawer .product-meta,.mode-pos #catalog-drawer .stock{font-size:10px}
.mode-pos .touch-checkout{display:flex;flex-direction:column;gap:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#605778 transparent}
.mode-pos .touch-checkout>.total-row{flex-shrink:0;margin:0 0 11px;padding:0 0 13px}.mode-pos .touch-checkout .total-row>span{font-size:10px;letter-spacing:1.2px}.mode-pos .touch-checkout .total-row strong{font-size:clamp(36px,4vw,64px);line-height:1.12;margin:6px 0 4px}.mode-pos .touch-checkout .total-row small{font-size:10px}.mode-pos .checkout-details{flex-shrink:0;margin-bottom:2px}.mode-pos .sum-row{font-size:11px;margin-bottom:8px}.mode-pos .sum-row input{padding:3px 7px;font-size:12px;width:65px}.mode-pos .payment-title{flex-shrink:0;font-size:12px;margin:5px 0 8px}.mode-pos .inline-methods{flex-shrink:0;gap:5px;margin-bottom:11px}.mode-pos .inline-methods button{padding:8px 4px;font-size:11px}.mode-pos #inline-cash{flex-shrink:1;min-height:0;display:flex;flex-direction:column}.mode-pos .received-label{flex-shrink:0;font-size:11px;margin-bottom:5px}.mode-pos .received-wrap{flex-shrink:0;padding:7px 11px;font-size:20px}.mode-pos .received-wrap input{font-size:25px}.mode-pos .touch-keypad{flex-shrink:1;min-height:0;gap:5px;margin-top:9px;grid-template-rows:repeat(4,minmax(30px,1fr)) 25px}.mode-pos .touch-keypad button{padding:5px;min-height:0;font-size:20px;line-height:1.2;border-radius:6px}.mode-pos .touch-keypad .decimal-key{padding:3px;min-height:0;font-size:10px}.mode-pos .touch-change{flex-shrink:0;margin:12px 0 10px;font-size:12px}.mode-pos .touch-change strong{font-size:27px}.mode-pos .inline-payment-note{flex-shrink:0;font-size:10px;line-height:1.5;margin:0 0 4px}.mode-pos #inline-error{flex-shrink:0;margin:2px 0 6px;min-height:0;font-size:11px;line-height:1.5}.mode-pos #inline-error:empty{display:none}.mode-pos #pay{flex-shrink:0;margin-top:auto;padding:13px;font-size:15px;border-radius:8px}.mode-pos #pay kbd{padding:3px 6px;font-size:10px}.mode-pos .footnote{flex-shrink:0;font-size:10px;margin-top:7px;line-height:1.4}.mobile-pos-tabs{display:none}
@media(min-height:900px) and (min-width:1000px){.mode-pos .touch-sale,.mode-pos .touch-checkout{padding:24px}.mode-pos .touch-keypad{grid-template-rows:repeat(4,minmax(44px,1fr)) 32px;gap:7px}.mode-pos .touch-checkout .total-row strong{font-size:68px}.mode-pos #pay{padding:19px;font-size:18px}.mode-pos .cart-line{padding:22px 0}.mode-pos .line-top{font-size:17px}.mode-pos .line-top strong{font-size:21px}.mode-pos .touch-change{margin:19px 0}.mode-pos .touch-change strong{font-size:34px}.mode-pos .inline-payment-note{font-size:11px}.mode-pos .quick-products button{padding:15px 10px;font-size:12px}}
@media(max-height:800px){.mode-pos main{padding-top:10px}.mode-pos main>.demo-banner{display:none}.mode-pos .touch-checkout .total-row small{display:none}.mode-pos .touch-checkout .total-row{padding-bottom:10px;margin-bottom:10px}.mode-pos .touch-checkout .total-row strong{font-size:45px}.mode-pos .touch-keypad{grid-template-rows:repeat(4,minmax(28px,1fr)) 23px}.mode-pos .touch-checkout{padding:16px}.mode-pos .received-wrap input{font-size:24px}.mode-pos .touch-change{margin:9px 0}.mode-pos .footnote{display:none}.mode-pos .touch-checkout .payment-title{margin-top:3px}}
@media(max-height:680px){.mode-pos main{padding:8px 14px 5px}.mode-pos main>header{padding-bottom:8px;margin-bottom:8px}.mode-pos header .eyebrow{display:none}.mode-pos h1{font-size:21px}.mode-pos .header-right button{padding:7px 10px}.mode-pos main>footer{display:none}.mode-pos .touch-sale,.mode-pos .touch-checkout{padding:13px}.mode-pos .touch-sale>.cart-header{padding-bottom:9px}.mode-pos .touch-sale .cart-header h2{font-size:21px}.mode-pos .touch-sale .cart-header .eyebrow{display:none}.mode-pos .checkout-details>.sum-row:first-child{display:none}.mode-pos .touch-checkout .total-row strong{font-size:40px}.mode-pos .touch-checkout .total-row{padding-bottom:8px;margin-bottom:7px}.mode-pos .touch-keypad{grid-template-rows:repeat(4,26px) 20px;gap:4px;margin-top:7px}.mode-pos .touch-keypad button{font-size:18px}.mode-pos .touch-keypad .decimal-key{font-size:10px}.mode-pos .inline-methods{margin-bottom:8px}.mode-pos .inline-methods button{padding:6px 4px}.mode-pos .payment-title{margin:2px 0 6px}.mode-pos .received-wrap input{font-size:22px}.mode-pos .touch-change{margin:7px 0}.mode-pos .touch-change strong{font-size:24px}.mode-pos #pay{padding:11px;font-size:14px}.mode-pos .quick-products{margin-top:9px}.mode-pos .touch-hint{display:none}}
@media(max-width:1000px) and (min-width:761px){.mode-pos .header-right #clock,.mode-pos .header-right .avatar{display:none}.mode-pos .header-right{gap:6px}.mode-pos .pos-layout{grid-template-columns:minmax(0,1fr) 315px}.mode-pos .touch-sale{padding:15px}.mode-pos .quick-products{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-pos #catalog-drawer .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-pos .cart-count{display:inline-block;margin:0 0 0 5px}}
@media(max-width:760px),(max-height:540px){
 .mode-pos main{padding:8px 10px max(8px,env(safe-area-inset-bottom));gap:0}.mode-pos main>header{padding-bottom:8px;margin-bottom:8px;flex-wrap:nowrap;align-items:center}.mode-pos header>div:first-child{min-width:0}.mode-pos header .eyebrow{display:none}.mode-pos h1{font-size:19px;margin:0;white-space:nowrap}.mode-pos .header-right{width:auto;gap:5px;justify-content:flex-end;flex-wrap:nowrap}.mode-pos .header-right #clock,.mode-pos .header-right .avatar{display:none}.mode-pos .header-right .back-home{font-size:10px;padding:5px}.mode-pos .header-right button{font-size:10px;padding:7px 9px}.mode-pos #phone-reader span,.mode-pos #fullscreen span{display:none}.mode-pos .header-right #fullscreen{display:none}.mode-pos .status{font-size:10px;white-space:nowrap}.mode-pos main>.demo-banner,.mode-pos main>footer{display:none}
 .mode-pos .mobile-pos-tabs{display:grid;flex-shrink:0;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:8px;padding:4px;background:#23253c;border:1px solid #3a3c55;border-radius:9px}.mobile-pos-tabs button{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;border-radius:6px;background:transparent;color:#c6bddd;font-size:12px}.mobile-pos-tabs button[aria-selected="true"]{background:#a798ed;color:#241a3b}.mobile-pos-tabs span{font-size:11px;font-variant-numeric:tabular-nums}
 .mode-pos .pos-layout{display:flex;flex-direction:column;min-height:0;gap:0}.mode-pos .pos-layout.pane-sale>.touch-checkout,.mode-pos .pos-layout.pane-checkout>.touch-sale{display:none}.mode-pos .touch-sale,.mode-pos .touch-checkout{width:100%;height:100%;min-height:0;flex:1;padding:16px;border:0}.mode-pos .touch-sale>.cart-header{padding-bottom:10px}.mode-pos .touch-sale .cart-header h2{font-size:22px}.mode-pos .touch-sale .cart-header .eyebrow{display:none}.mode-pos .cart-count{display:inline-block;margin-left:8px}.mode-pos .scan-help{font-size:10px;margin-bottom:7px}.mode-pos .quick-products{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-pos .quick-products button{font-size:10px;padding:8px 5px}.mode-pos .quick-products small{font-size:10px}.mode-pos .touch-hint{display:none}.mode-pos .touch-sale .cart{min-height:0;height:auto;flex:1}.mode-pos .cart-items{min-height:0;max-height:none}.mode-pos .cart-columns{font-size:10px}.mode-pos .line-top{font-size:14px}.mode-pos .line-top strong{font-size:17px}.mode-pos .quantity button{min-height:34px;min-width:34px;padding:3px 9px}.mode-pos .cart-line{padding:16px 0}.mode-pos #catalog-drawer{top:108px;left:12px;right:12px;bottom:12px}.mode-pos #catalog-drawer .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .mode-pos .touch-checkout{overflow:auto}.mode-pos .touch-checkout .total-row{padding-bottom:9px;margin-bottom:9px}.mode-pos .touch-checkout .total-row strong{font-size:48px;margin:4px 0}.mode-pos .touch-checkout .total-row small{display:none}.mode-pos .checkout-details>.sum-row:first-child{display:none}.mode-pos .checkout-details .sum-row{margin-bottom:5px}.mode-pos .inline-methods{margin-bottom:9px}.mode-pos .inline-methods button{padding:9px 5px;font-size:12px}.mode-pos .payment-title{font-size:11px;margin:2px 0 8px}.mode-pos .received-wrap{padding:7px 11px}.mode-pos .received-wrap input{font-size:26px}.mode-pos .touch-keypad{grid-template-rows:repeat(4,minmax(30px,1fr)) 24px;gap:5px}.mode-pos .touch-keypad button{font-size:21px}.mode-pos .touch-keypad .decimal-key{font-size:10px}.mode-pos .touch-change{margin:10px 0}.mode-pos .touch-change strong{font-size:28px}.mode-pos .inline-payment-note{font-size:10px;line-height:1.5}.mode-pos #pay{font-size:16px;padding:14px}.mode-pos .footnote{display:none}
}
@media(max-width:760px) and (max-height:680px){.mode-pos .touch-checkout{padding:12px}.mode-pos .touch-checkout .total-row strong{font-size:39px}.mode-pos .touch-checkout .total-row{padding-bottom:6px;margin-bottom:5px}.mode-pos .inline-methods button{padding:7px 4px;font-size:11px}.mode-pos .touch-keypad{grid-template-rows:repeat(4,26px) 20px;gap:4px}.mode-pos .received-wrap input{font-size:22px}.mode-pos .received-wrap{padding:5px 10px}.mode-pos .touch-keypad button{font-size:18px}.mode-pos .touch-change{margin:7px 0}.mode-pos .touch-change strong{font-size:24px}.mode-pos #pay{font-size:14px;padding:11px}.mode-pos .inline-payment-note{font-size:10px}.mode-pos .touch-sale{padding:12px}.mode-pos .touch-sale .cart-header h2{font-size:20px}}
@media(max-height:550px){.mode-pos .touch-keypad{display:none}.mode-pos .received-wrap input{font-size:23px}.mode-pos #inline-cash{margin-bottom:0}.mode-pos .touch-checkout .total-row strong{font-size:34px}.mode-pos .touch-change{margin:8px 0}.mode-pos .inline-payment-note{line-height:1.4}.mode-pos .touch-checkout{padding:10px 14px}.mode-pos .checkout-details{display:none}.mode-pos .touch-checkout .payment-title{margin-top:1px}.mode-pos .quick-products{margin-top:6px}.mode-pos .quick-products small{display:none}}
@media(max-width:370px){.mode-pos .header-right .back-home{display:none}.mode-pos .quick-products{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-pos #catalog-drawer .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-pos .cart-count{font-size:10px}.mode-pos .scan-help{gap:4px}.mode-pos .touch-sale .cart-header .text-button{font-size:10px}}
@media(min-width:761px) and (min-height:541px) and (max-height:850px){
 .mode-pos #inline-cash{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);grid-template-rows:auto auto minmax(0,1fr);gap:7px 12px;height:164px;flex-shrink:0;margin:0 0 10px}.mode-pos .received-label{grid-column:1;grid-row:1;margin:0;align-self:end}.mode-pos .received-wrap{grid-column:1;grid-row:2;padding:7px 9px;gap:5px;min-width:0}.mode-pos .received-wrap input{font-size:22px}.mode-pos .touch-keypad{grid-column:2;grid-row:1/4;height:164px;margin:0;grid-template-rows:repeat(4,minmax(0,1fr)) 22px;gap:4px}.mode-pos .touch-keypad button{font-size:18px;padding:3px}.mode-pos .touch-keypad .decimal-key{font-size:9px;letter-spacing:-.2px}.mode-pos .touch-change{grid-column:1;grid-row:3;flex-direction:column;align-items:flex-start;justify-content:flex-end;align-self:stretch;gap:2px;margin:0}.mode-pos .touch-change strong{font-size:25px;overflow-wrap:anywhere;max-width:100%}
}
@media(min-width:761px) and (min-height:541px) and (max-height:680px){.mode-pos #inline-cash,.mode-pos .touch-keypad{height:142px}.mode-pos .touch-checkout{padding:11px}.mode-pos .inline-methods{margin-bottom:7px}.mode-pos .touch-checkout .total-row strong{font-size:37px}.mode-pos .touch-checkout .total-row{margin-bottom:6px;padding-bottom:6px}.mode-pos .inline-payment-note{font-size:10px;line-height:1.4}.mode-pos .payment-title{font-size:11px;margin:2px 0 5px}.mode-pos .touch-change strong{font-size:22px}}
@media print{body.mode-pos,body.mode-pos main{height:auto;overflow:visible}body.mode-pos>*{display:none!important}body.mode-pos #print-area{display:block!important;height:auto;overflow:visible}}
