/* Shared responsive foundation for all authenticated pages. */
@media(max-width:1366px){
 body #appSidebar{position:fixed!important;inset:0 auto 0 0;z-index:60!important;width:280px;max-width:86vw;height:100dvh;max-height:100dvh;transform:translateX(-100%)!important;visibility:hidden;box-shadow:8px 0 30px #0f172a25}
 body.sidebar-open #appSidebar{transform:translateX(0)!important;visibility:visible}
 body #mobileSidebarToggle{display:inline-flex!important;min-width:44px;min-height:44px}
 body #mobileSidebarOverlay{display:block!important;z-index:55}
 body.sidebar-open{overflow:hidden!important}
 body main.flex-1{width:100%;min-width:0}
 body main>header>div{flex-wrap:wrap}
 main :is(.app-table-wrap,.overflow-x-auto){max-width:100%;min-width:0}
 main :is(input,select,textarea){max-width:100%;box-sizing:border-box}
 main :is(.grid,.flex)>*{min-width:0}

}
.pos-quick-name{display:block;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
.pos-quick-add{width:100%;min-width:0;overflow:hidden}
.pos-quick-meta,.pos-quick-promo,.pos-quick-price{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.pos-quick-card{align-items:start;min-width:0;overflow:hidden}
.pos-quick-card-actions{min-width:0}
.pos-quick-card-actions button{width:auto;min-width:44px;min-height:44px;padding:6px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1023.98px){
 main [class~="md:grid-cols-3"], main [class~="md:grid-cols-4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
 main :is(input:not([type=checkbox]):not([type=radio]),select){min-height:42px;font-size:16px}
 .pos-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .pos-quick-head{flex-wrap:wrap}
 .pos-quick-tabs{flex-wrap:wrap;min-width:0}
}
@media(max-width:600px){
 main [class~="md:grid-cols-3"],main [class~="md:grid-cols-4"]{grid-template-columns:minmax(0,1fr)}
 .pos-quick-grid{grid-template-columns:minmax(0,1fr)!important}
 main>header>div>div:last-child{flex-wrap:wrap;gap:8px}
}
@media(max-width:1279.98px){
 body.page-ventas .pos-quick-panel{position:static;max-height:none;margin-top:12px;width:auto}
 body.page-ventas .pos-quick-grid{max-height:none;overflow:visible}
}

/* A compact PC retains the established desktop POS arrangement. */
@media(max-width:1279.98px){
 body.page-ventas #ventas-app .pos-charge-panel{max-height:none!important;height:auto;overflow:visible}
 body.page-ventas #ventas-app .pos-charge-scroll{max-height:none;height:auto;overflow:visible}
 body.page-ventas #ventas-app .pos-bottom-bar{position:static!important;clear:both;margin-top:12px;height:auto;max-height:none;flex-shrink:0}
 body.page-ventas #ventas-app .pos-bottom-actions{height:auto;grid-auto-rows:minmax(48px,auto)}
 body.page-ventas #ventas-app .pos-action-btn{height:auto;max-height:none;min-height:48px;white-space:normal}
}
