@media screen and (max-width:1023px){
 body.admin-responsive main{padding:12px}
 body.admin-responsive .catalog .table-wrap,body.admin-responsive .catalog .mobile-table-scroll{min-height:0;border:0;overflow:visible}
 body.admin-responsive .catalog table{display:block;width:100%;min-width:0!important}
 body.admin-responsive .catalog thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 body.admin-responsive #productRows{display:grid;gap:10px;padding:10px;background:#f3f7fb}
 body.admin-responsive #productRows>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 10px;background:white;border:1px solid #cbd9e5;border-radius:12px;padding:12px}
 body.admin-responsive #productRows>tr>td{display:block;width:auto!important;inline-size:auto!important;min-width:0!important;max-width:none!important;padding:7px 0;text-align:left;white-space:normal;border:0;overflow-wrap:break-word}
 body.admin-responsive #productRows>tr>td:first-child,body.admin-responsive #productRows>tr>td:nth-child(3),body.admin-responsive #productRows>tr>td:last-child{grid-column:1/-1}
 body.admin-responsive #productRows>tr>td:before{display:block;font-size:11px;font-weight:700;color:#5a6e83;margin-bottom:3px;content:attr(data-label)}
 body.admin-responsive #productRows>tr>td:first-child:before,body.admin-responsive #productRows>tr>td:last-child:before{display:none}
 body.admin-responsive #productRows .product-name{font-size:15px;line-height:1.35}
 body.admin-responsive #productRows .actions{display:flex;gap:8px;flex-wrap:wrap}
 body.admin-responsive #productRows .actions button{min-height:48px;padding:8px 12px;border:1px solid #c9d7e4;border-radius:8px}
}

@media screen and (max-width:1023px){
 body.admin-responsive #productRows>tr>td::before{position:static!important;inset:auto!important;width:auto!important;height:auto!important;background:none!important;white-space:normal;word-break:normal;overflow-wrap:normal}
 body.admin-responsive #productRows>tr>td>*{max-width:100%;word-break:normal;overflow-wrap:break-word}
 body.admin-responsive #productRows .num,body.admin-responsive #productRows .cost-toggle,body.admin-responsive #productRows .pill{white-space:nowrap!important;word-break:normal;overflow-wrap:normal}
 body.admin-responsive #productRows .cost-toggle{justify-content:flex-start;min-width:100px;font-size:14px}
 body.admin-responsive #productRows .cost-mask{display:inline;white-space:nowrap;letter-spacing:1px}
 body.admin-responsive #productRows .muted{font-size:13px;line-height:1.4}
 body.admin-responsive #productRows .product-name{font-size:17px}
 body.admin-responsive #productRows .stock-cell{background:none;text-align:left}
 body.admin-responsive #productRows .actions{width:auto!important;justify-content:flex-start}
}
.price-row [data-save-status]{grid-column:1/-1;white-space:normal;color:#234d70;min-height:18px}
.price-row:has([data-save-price]:disabled){opacity:.8}

/* One vertical scroll: table never traps wheel/touch; tools stay reachable. */
@media screen {
 html:has(body.inventory-page),body.inventory-page{overflow-x:clip}
 .inventory-page .catalog{overflow:visible}
 .inventory-page .catalog>.tools{position:sticky;top:0;z-index:30;background:#fff;border-radius:14px 14px 0 0}
 .inventory-page .catalog>.table-wrap{overflow:visible;overscroll-behavior-y:auto;min-height:0;position:static}
 .inventory-page .catalog table{min-width:0;table-layout:fixed}
 .inventory-page .catalog thead th{position:sticky;top:var(--inventory-tools-height,80px);z-index:20}
 .inventory-page .catalog td{overflow-wrap:anywhere}
 .inventory-page .catalog .empty{position:static;min-height:180px}
 .inventory-page .inventory-pages{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;background:#fff;border-bottom:1px solid #cbd9e5}
 .inventory-page .inventory-pages label{display:flex;align-items:center;gap:6px;margin-left:auto}
 .inventory-page .inventory-pages select{width:auto;min-height:40px}
 .inventory-page .inventory-pages button{min-height:44px}
 .inventory-page .inventory-pages button:disabled{opacity:.45;cursor:default}
 .inventory-page .catalog .actions{white-space:normal}
}
@media screen and (max-width:850px){
 .inventory-page .catalog>.tools{padding:10px;gap:6px}
 .inventory-page .tools .search{min-height:48px}
 .inventory-page .inventory-pages{padding:10px;font-size:13px}
 .inventory-page #pageSummary{flex-basis:100%}
 .inventory-page .inventory-pages{display:grid;grid-template-columns:1fr auto 1fr}
 .inventory-page .inventory-pages #pageSummary,.inventory-page .inventory-pages label{grid-column:1/-1}
 .inventory-page .inventory-pages button{min-height:48px}
 .inventory-page .inventory-pages label{margin-left:0;margin-right:auto}
}
@media print{.inventory-pages{display:none!important}}
