/* Mobile sizing and booking controls; browser pinch zoom remains available. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.stock-mode-tabs,.mobile-stock-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.mobile-stock-actions{grid-column:1/-1;margin:0}
.stock-mode-tabs a,.mobile-stock-actions a{display:flex;align-items:center;justify-content:center;min-height:58px;border-radius:12px;padding:14px;background:#fff;border:1px solid #d4e1db;font-weight:700;text-decoration:none;color:#235942}
.stock-mode-tabs a.selected,.mobile-stock-actions a:first-child{background:#235942;color:white}
.stock-product-picker,.stock-booking-form{max-width:720px;margin:0 auto}
.stock-product-option{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:16px 4px;min-height:68px;background:transparent;border:0;border-bottom:1px solid #e4eae6;text-align:left;color:inherit}
.stock-product-option strong,.stock-product-option small,.stock-location-option strong,.stock-location-option small{display:block;overflow-wrap:anywhere}
.stock-product-option small,.stock-location-option small{color:#64776b;font-size:13px;margin-top:4px}
.stock-quantity-control{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:10px;margin:8px 0 24px}
.stock-quantity-control input{text-align:center;font-size:22px;min-height:56px;margin:0}
.stock-quantity-control button{border:1px solid #cfdbd3;border-radius:10px;background:#edf4ef;font-size:25px}
.stock-location-picker{border:0;padding:0;margin:0 0 20px;min-width:0}
.stock-location-picker legend{font-weight:700;margin-bottom:10px}
.stock-location-option{display:flex;gap:14px;align-items:center;border:1px solid #dbe4de;border-radius:10px;padding:14px;margin:8px 0;cursor:pointer}
.stock-location-option.selected{border:2px solid #286653;background:#f1f7f2;padding:13px}
.stock-location-option input{width:22px;height:22px;flex:none;margin:0}
.stock-confirm{width:100%;min-height:56px;margin-top:20px;font-size:17px}
.stock-success{padding:16px;border:1px solid #b6d8c3;background:#eaf7ee;border-radius:12px;margin-bottom:16px;color:#1b6040}
.stock-booking-form details summary{cursor:pointer;min-height:44px;padding:12px 0}
.stock-booking-form details textarea{width:100%}
@media(max-width:800px){
 html,body,.app-shell{min-width:0;width:100%;max-width:100%}
 body{font-size:16px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;min-height:48px;min-width:0;max-width:100%;width:100%}
 input[type=checkbox],input[type=radio]{width:22px!important;height:22px;min-width:22px;min-height:22px;flex:none}
 button,.btn{min-height:46px;white-space:normal}
 .content{margin-left:0!important;width:100%!important;max-width:100%;padding:86px 14px calc(94px + env(safe-area-inset-bottom))!important;min-width:0}
 .page-head{flex-direction:column;align-items:stretch;gap:14px}
 .page-head h1{font-size:28px;overflow-wrap:anywhere}
 .page-head>*,.page-actions,.filter-bar,.form-card,.panel,.grow{min-width:0;max-width:100%}
 .page-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;width:100%}
 .page-actions>.btn{flex:1 1 135px}
 .form-grid,.dashboard-grid,.batch-layout,.detail-grid,.vehicle-layout,.quick-grid{grid-template-columns:minmax(0,1fr)!important}
 .form-grid>.span-2,.form-grid>.full{grid-column:auto!important}
 .form-card,.panel{padding:18px 14px}
 .form-actions{display:flex;flex-direction:row!important;flex-wrap:wrap;gap:10px}
 .form-actions>.btn{flex:1 1 120px;height:auto}
 .filter-bar{flex-wrap:wrap}
 .filter-bar>*{min-width:0;max-width:100%}
 .modal-bg{padding:10px;align-items:center}
 .modal,.modal.large,.modal.small{width:100%!important;max-width:100%!important;min-width:0;max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain;padding:18px 14px}
 .modal-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}
 .modal-actions>.btn{flex:1 1 120px}
 .modal-head{gap:10px}.modal-head h2{font-size:21px;min-width:0;overflow-wrap:anywhere}
 .product-row{gap:10px;padding:14px 10px;min-width:0}.product-row .grow{min-width:0}.product-row strong,.product-row small{overflow-wrap:anywhere}
 .product-thumb{width:48px;height:48px;flex:0 0 48px}.product-row .qty{min-width:55px;max-width:85px}
 .table-wrap,.table-wrapper,.table-card,.table-responsive{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 img,video,canvas{max-width:100%}
 .login-shell,.login-card,.login-form-wrap{min-width:0;max-width:100%}
 .login-form-wrap{padding:24px 18px}
 .stock-quantity-control input{font-size:22px!important}
 .stock-mode-tabs{gap:8px}.stock-mode-tabs a,.mobile-stock-actions a{font-size:16px;padding:12px 8px}
}
.product-extra{margin:18px 0}.product-extra>summary{cursor:pointer;font-weight:700;padding:14px 0;min-height:48px}.product-extra[open]>summary{margin-bottom:12px}
