/* Mobile presentation only: no payment, stock or permissions logic. */
.panel-mobile-summary{display:none}
.panel-mobile-summary[hidden]{display:none!important}
.panel-mobile-table-scroll{max-width:100%;min-width:0;overflow:auto;overscroll-behavior:auto}
@media screen and (max-width:900px){
 body.ui-v2{--panel-bar-height:64px}
 body.ui-v2 .app-shell-v2{min-width:0}
 body.ui-v2 .content,body.ui-v2.specialist-workspace .content{min-width:0;box-sizing:border-box;padding-top:calc(var(--panel-bar-height) + env(safe-area-inset-top,0px) + 16px)!important}
 body.ui-v2 .v2-appbar,body.ui-v2.specialist-workspace .v2-appbar{position:fixed!important;inset:0 0 auto 0;width:100%;height:calc(var(--panel-bar-height) + env(safe-area-inset-top,0px));box-sizing:border-box;margin:0!important;padding:env(safe-area-inset-top,0px) 14px 0!important;gap:10px;z-index:1000;background:#fffdfb}
 body.ui-v2 .v2-menu-button{flex:0 0 44px;width:44px;height:44px}
 body.ui-v2 .v2-appbar-copy{min-width:0;line-height:1.35}
 body.ui-v2 .v2-appbar-copy strong{font-size:13px}
 body.ui-v2 .sidebar{max-width:calc(100vw - 52px);overscroll-behavior-y:contain;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 body.ui-v2 .content :is(.stats-grid,.kpi-grid,.dashboard-stack,.dashboard-split,.two-col,.two-col-wide,.panel-card){min-width:0;max-width:100%;box-sizing:border-box}
 body.ui-v2 .stat-card,body.ui-v2 .kpi-card{min-width:0;overflow-wrap:break-word}
 body.ui-v2 .content :is(input,select,textarea){max-width:100%;box-sizing:border-box}
 body.ui-v2 .content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
 body.ui-v2 .content :is(.table-wrap,.catalog-table-wrap,.inv-table-scroll){min-width:0;max-width:100%;overscroll-behavior:auto;-webkit-overflow-scrolling:touch}
 body.ui-v2 .content :is(.inline-actions,.panel-header){flex-wrap:wrap}
 body.ui-v2 .content .form-grid{min-width:0}
}
@media screen and (max-width:700px){
 body.ui-v2[data-panel-page="dashboard.php"] :is(.stats-grid,.kpi-grid,.dashboard-admin-kpis,.dashboard-kpi-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 body.ui-v2[data-panel-page="dashboard.php"] :is(.stat-card,.kpi-card){padding:14px 12px;min-height:112px;border-radius:14px}
 body.ui-v2[data-panel-page="dashboard.php"] :is(.stat-card,.kpi-card) strong{font-size:clamp(19px,5.3vw,25px);line-height:1.2;letter-spacing:-.5px}
 body.ui-v2[data-panel-page="dashboard.php"] :is(.stat-card,.kpi-card) span{letter-spacing:.3px;line-height:1.4}
 body.ui-v2[data-panel-page="dashboard.php"] :is(.two-col,.two-col-wide,.dashboard-split){grid-template-columns:minmax(0,1fr)!important}
 body.ui-v2 .inventory-workspace{width:100%;min-width:0}
 body.ui-v2 .inv-panel{overflow:visible}
 body.ui-v2 .inv-tabs{border-radius:20px 20px 0 0;overscroll-behavior:auto}
 body.ui-v2 .inv-table-scroll{overflow:visible}
 body.ui-v2 .inv-isolated{white-space:normal}
 body.ui-v2 .inv-metrics{grid-template-columns:1fr;gap:8px}
 body.ui-v2 .inv-metrics a{display:grid;grid-template-columns:1fr auto;padding:14px 16px}
 body.ui-v2 .inv-metrics strong{grid-column:2;grid-row:1/3;align-self:center}
 body.ui-v2 .inv-filters label{min-width:0;flex:1 1 100%}
 body.ui-v2 .inv-dialog-body{overscroll-behavior:auto;-webkit-overflow-scrolling:touch}
 body.ui-v2 .inv-dialog-footer{padding-bottom:calc(15px + env(safe-area-inset-bottom,0px))}
 body.ui-v2 .catalog-shell{padding:0;min-width:0;gap:14px}
 body.ui-v2 :is(.catalog-card,.catalog-hero){padding:16px;min-width:0;border-radius:18px}
 body.ui-v2 .catalog-hero h1{font-size:25px}
 body.ui-v2 .catalog-tabs{flex-wrap:nowrap;overflow-x:auto;min-width:0;overscroll-behavior:auto}
 body.ui-v2 .catalog-tabs a{flex-shrink:0;font-size:13px;padding:11px 12px}
 body.ui-v2 .catalog-results-summary{font-size:13px;flex-wrap:wrap}
 body.ui-v2 .catalog-card .catalog-filters{padding:12px;grid-template-columns:minmax(0,1fr)}
 body.ui-v2 .catalog-filters label{min-width:0;grid-column:auto!important}
 body.ui-v2 .catalog-table-wrap:has(>.panel-mobile-list){overflow:visible}
 body.ui-v2 .panel-mobile-table-scroll{overflow:visible}
 /* One compact line per record. Details/actions expand on demand, without cloning forms. */
 body.ui-v2 .panel-mobile-list{display:block;min-width:0!important;width:100%;table-layout:auto}
 body.ui-v2 .panel-mobile-list>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.ui-v2 .panel-mobile-list>tbody{display:block;padding:0}
 body.ui-v2 .panel-mobile-list>tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e8ddd2;border-radius:14px;background:#fff;overflow:hidden;padding:5px}
 body.ui-v2 .panel-mobile-list>tbody>tr>td{display:block;min-width:0!important;max-width:none!important;width:auto!important;padding:10px;border:0;white-space:normal;overflow-wrap:anywhere;background:transparent}
 body.ui-v2 .panel-mobile-list>tbody>tr>td::before{content:attr(data-mobile-label);display:block;margin-bottom:5px;color:#84705f;font-size:10px;font-weight:700;letter-spacing:.35px;text-transform:uppercase}
 body.ui-v2 .panel-mobile-list>tbody>tr>td:first-child,body.ui-v2 .panel-mobile-list>tbody>tr>td:last-child,body.ui-v2 .panel-mobile-list td.panel-mobile-wide{grid-column:1/-1}
 body.ui-v2 .panel-mobile-list td[colspan]{grid-column:1/-1}
 body.ui-v2 .panel-mobile-list td[colspan]::before{content:none}
 body.ui-v2 .panel-mobile-list td:last-child{border-top:1px solid #eee5db}
 body.ui-v2 .panel-mobile-list :is(.channel-form,.reserve-inline-form){min-width:0;flex-wrap:wrap}
 body.ui-v2 .panel-mobile-list :is(button,.btn,.btn-catalog){min-height:44px}
 body.ui-v2 .panel-mobile-list>tbody>tr.panel-mobile-record{display:none}
 body.ui-v2 .panel-mobile-list>tbody>tr.panel-mobile-expanded{display:grid;margin:0 0 8px;border-radius:0 0 12px 12px;background:#fcf8f3}
 body.ui-v2 .panel-mobile-list>tbody>tr.panel-mobile-summary{display:block;margin:0;padding:0;border:0;border-bottom:1px solid #eadfd4;border-radius:0;background:#fff}
 body.ui-v2 .panel-mobile-list>tbody>tr.panel-mobile-summary>td{padding:0;border:0}
 body.ui-v2 .panel-mobile-record-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:54px;padding:10px 12px;border:0;border-radius:0;background:transparent;color:#39291d;text-align:left;font:inherit;cursor:pointer}
 body.ui-v2 .panel-mobile-record-toggle:hover,body.ui-v2 .panel-mobile-record-toggle[aria-expanded=true]{background:#fff5e8}
 body.ui-v2 .panel-mobile-record-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700}
 body.ui-v2 .panel-mobile-record-value{flex:none;font-size:12px;white-space:nowrap;color:#765130;font-variant-numeric:tabular-nums}
 body.ui-v2 .panel-mobile-record-arrow{flex:none;font-size:18px;color:#a65516}
 body.ui-v2 .panel-mobile-record-toggle[aria-expanded=true] .panel-mobile-record-arrow{transform:rotate(180deg)}
 body.ui-v2 .gc-page,body.ui-v2 .gc-card{min-width:0;max-width:100%;box-sizing:border-box}
 body.ui-v2 .gc-hero-main{min-width:0}
 body.ui-v2 .gc-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%}
 body.ui-v2 .gc-tab{flex-shrink:0;white-space:nowrap}
 body.ui-v2 .gc-card{padding:12px;border-radius:16px}
 body.ui-v2 .gc-search{display:grid;grid-template-columns:minmax(0,1fr)}
 body.ui-v2 .gc-search input{min-width:0;width:100%}
 body.ui-v2 .gc-bulkbar{align-items:stretch;flex-direction:column}
 body.ui-v2 .gc-form-grid{grid-template-columns:minmax(0,1fr)}
 body.ui-v2 .gc-modal{max-height:calc(100dvh - 24px);padding:16px}
 body.ui-v2 .gc-modal-head{flex-wrap:wrap}
 body.ui-v2 .gc-form-grid label{min-width:0}
 body.ui-v2 .gc-form-grid :is(input,textarea){min-width:0;width:100%}
 body.ui-v2[data-panel-page="packs_recepcion.php"] .pack-toolbar{display:flex;flex-direction:column;align-items:stretch}
 body.ui-v2[data-panel-page="packs_recepcion.php"] .pack-toolbar>*{min-width:0;width:100%;box-sizing:border-box}
 body.ui-v2[data-panel-page="packs_recepcion.php"] .pack-detail-grid,body.ui-v2[data-panel-page="packs_recepcion.php"] .pack-editor-grid{grid-template-columns:minmax(0,1fr)}
 body.ui-v2[data-panel-page="packs_recepcion.php"] .pack-editor-grid>.full{grid-column:1}
 body.ui-v2[data-panel-page="packs_recepcion.php"] .pack-field{min-width:0;overflow-wrap:anywhere}
 body.ui-v2[data-panel-page="packs_recepcion.php"] .pack-table{overflow:visible}
 body.ui-v2 .catalog-edit-dialog{height:100dvh}
 body.ui-v2 .catalog-media-dialog{grid-template-rows:auto auto minmax(0,1fr) auto;height:96dvh}
 body.ui-v2 .catalog-media-tools{grid-template-columns:minmax(0,1fr)}
 body.ui-v2 .catalog-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0}
 body.ui-v2 .catalog-media-head,body.ui-v2 .catalog-media-foot{padding:12px;flex-wrap:wrap}
}
@media screen and (max-width:359px){body.ui-v2[data-panel-page="dashboard.php"] :is(.stats-grid,.kpi-grid){grid-template-columns:minmax(0,1fr)!important}}
