/* Desktop POS: fixed full-height columns, independent internal scrolling. */
@media (min-width:1024px){
  html.erp-pos-document-lock,
  body.erp-pos-active,
  body.erp-pos-active #root,
  body.erp-pos-active #root>div.flex,
  body.erp-pos-active #root>div.flex>main.flex{
    height:100dvh!important;min-height:0!important;max-height:100dvh!important;
    overflow:hidden!important;
  }
  body.erp-pos-active #root>div.flex>main.flex{
    display:flex!important;flex-direction:column!important;
  }
  body.erp-pos-active #root main>.responsive-workspace{
    height:auto!important;min-height:0!important;max-height:none!important;
    flex:1 1 0%!important;overflow:hidden!important;
    padding-top:8px!important;padding-bottom:8px!important;
  }
  body.erp-pos-active .erp-ventas.pos19-root{
    display:flex!important;flex-direction:column!important;
    height:100%!important;min-height:0!important;max-height:100%!important;
    overflow:hidden!important;
  }
  body.erp-pos-active .pos19-shell{
    display:grid!important;flex:1 1 0%!important;
    width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
    grid-template-areas:"left cash" "left checkout"!important;
    grid-template-rows:var(--pos252-toolbar-h,48px) minmax(0,1fr)!important;
    align-items:stretch!important;align-content:stretch!important;
    overflow:hidden!important;
  }
  body.erp-pos-active .pos19-workspace{display:contents!important}
  body.erp-pos-active .pos19-main{
    grid-area:left!important;display:flex!important;flex-direction:column!important;
    height:100%!important;min-height:0!important;max-height:100%!important;
    align-self:stretch!important;overflow:hidden!important;gap:10px!important;
  }
  body.erp-pos-active .pos19-main>*{min-width:0!important;margin:0!important}
  body.erp-pos-active .pos19-search-card{
    order:0;grid-area:auto!important;flex:0 0 var(--pos252-toolbar-h,48px)!important;
    height:var(--pos252-toolbar-h,48px)!important;min-height:0!important;
  }
  body.erp-pos-active .pos19-cart-card{
    order:1;grid-area:auto!important;display:flex!important;flex-direction:column!important;
    flex:1 1 0%!important;width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;align-self:stretch!important;
    overflow:hidden!important;
  }
  body.erp-pos-active .pos19-cart-card>div:first-child{flex:0 0 auto!important}
  body.erp-pos-active .pos19-cart-card>div:last-child{
    height:auto!important;min-height:0!important;max-height:none!important;
    flex:1 1 0%!important;overflow:hidden!important;
  }
  body.erp-pos-active .pos19-cart-scroll-mobile,
  body.erp-pos-active .pos19-cart-scroll-desktop{
    height:auto!important;min-height:0!important;max-height:none!important;
    flex:1 1 0%!important;overflow-y:auto!important;overscroll-behavior:contain;
  }
  body.erp-pos-active .pos19-cart-scroll-desktop{overflow-x:auto!important}
  body.erp-pos-active .pos19-client-card{
    order:2;grid-area:auto!important;flex:0 0 auto!important;
    width:100%!important;height:auto!important;min-height:0!important;
    max-height:none!important;align-self:end!important;overflow:visible!important;
  }
  body.erp-pos-active .pos19-cashbar{grid-area:cash!important}
  body.erp-pos-active .pos19-checkout{
    grid-area:checkout!important;height:100%!important;min-height:0!important;
    max-height:100%!important;align-self:stretch!important;overflow:hidden!important;
  }
  body.erp-pos-active .pos19-checkout-card{
    display:flex!important;flex-direction:column!important;
    height:100%!important;min-height:0!important;max-height:100%!important;
    align-self:stretch!important;overflow:hidden!important;
  }
  body.erp-pos-active .pos19-checkout-header{flex:0 0 auto!important}
  body.erp-pos-active .pos19-checkout-body{
    display:flex!important;flex-direction:column!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    flex:1 1 0%!important;overflow-x:hidden!important;overflow-y:auto!important;
    overscroll-behavior:contain;scrollbar-gutter:stable;
  }
  body.erp-pos-active .pos19-checkout-body>:not(.pos19-checkout-actions){flex:0 0 auto!important}
  body.erp-pos-active .pos19-checkout-actions{
    position:sticky!important;bottom:0!important;z-index:30!important;
    flex:0 0 auto!important;margin-top:auto!important;
    padding:10px 0 0!important;background:#fff!important;
    box-shadow:0 -8px 18px rgba(15,23,42,.07)!important;
  }
}

/* Narrow windows retain the normal document flow and all controls. */
@media (max-width:1023px){
  body.erp-pos-active .pos19-shell{height:auto!important;max-height:none!important;overflow:visible!important}
  body.erp-pos-active .pos19-cart-card,
  body.erp-pos-active .pos19-checkout-card{height:auto!important;max-height:none!important}
}
