/* Phone layout only; retain desktop and tablet workspaces. */
@media(max-width:767px),(hover:none) and (max-width:1024px) and (max-height:500px){
 body.order-menu.staff-mode{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;width:100%;min-width:0;-webkit-text-size-adjust:100%}
 .order-menu.staff-mode>header{flex:none;width:100%;padding:6px 10px;box-sizing:border-box}
 .order-menu.staff-mode>main{flex:1;min-height:0;min-width:0;width:100%;max-width:none;margin:0;padding:10px 10px calc(85px + env(safe-area-inset-bottom));box-sizing:border-box;display:block;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .order-menu.staff-mode .intro,.order-menu.staff-mode .workspace,.order-menu.staff-mode .catalog,.order-menu.staff-mode #products{display:block;min-width:0;min-height:0;height:auto;max-height:none;width:100%;overflow:visible;box-sizing:border-box}
 .order-menu.staff-mode .brands{display:none}
 .order-menu.staff-mode .order-type{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:none;margin:0 0 10px;padding:4px;background:#e4e7ed;border-radius:14px;gap:3px;box-sizing:border-box}
 .order-menu.staff-mode .order-type button{min-width:0;min-height:44px;border:0;box-shadow:none;padding:8px 4px;font-size:13px;border-radius:11px;background:transparent}
 .order-menu.staff-mode .order-type button span{display:none}
 .order-menu.staff-mode .order-type button.selected{background:white;color:#17263c;box-shadow:0 2px 6px #17263c16}
 .order-menu.staff-mode .intro .staff-customer-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:9px 10px;margin:0 0 8px;background:white;border:1px solid #e1e5ed;border-radius:15px;gap:7px 10px;box-sizing:border-box}
 .order-menu.staff-mode .intro .staff-customer-strip label{font-size:11px;line-height:1.4;min-width:0;color:#69758a}
 .order-menu.staff-mode .intro .staff-customer-strip label:last-child{grid-column:1/-1}
 .order-menu.staff-mode input,.order-menu.staff-mode textarea,.order-menu.staff-mode select{font-size:16px!important;min-width:0;box-sizing:border-box}
 .order-menu.staff-mode .intro .staff-customer-strip input{min-height:40px;padding:8px;border:0;border-radius:8px;background:#f3f5f8}
 .order-menu.staff-mode .address-hint,.order-menu.staff-mode .staff-customer-strip small{font-size:10px;line-height:1.4}
 .order-menu.staff-mode .phone-banner{padding:4px 6px;margin:0 0 8px;background:transparent;border:0;font-size:11px}
 .order-menu.staff-mode .phone-banner>p{font-size:10px;margin:3px 0}
 .order-menu.staff-mode .workspace{margin-top:10px}
 .order-menu.staff-mode #search{min-height:44px;padding:10px 12px;border-radius:12px;background:#e6e9ef;margin-bottom:6px}
 .order-menu.staff-mode #cats{position:sticky;top:0;display:flex;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;gap:6px;margin:0 0 10px;padding:8px 0;background:#f2f2f7;z-index:4;box-sizing:border-box}
 .order-menu.staff-mode #cats button{flex:none;min-height:42px;padding:8px 12px;font-size:13px;border-radius:22px}
 .order-menu.staff-mode .products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .order-menu.staff-mode .product{min-width:0;min-height:63px;padding:8px 5px;border:1px solid #dfe4ed;border-radius:13px;box-shadow:none}
 .order-menu.staff-mode .product h3{font-size:13px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}
 .order-menu.staff-mode .section-title{font-size:19px;margin:4px 0 12px}
 .order-menu.staff-mode.has-mobile-order .staff-order-dock:not([hidden]){display:flex;position:fixed;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:calc(9px + env(safe-area-inset-bottom));z-index:8;align-items:center;gap:12px;min-height:54px;padding:13px 16px;background:#17263c;color:white;border:0;border-radius:18px;box-shadow:0 6px 24px #17263c38;font-size:14px}
 .staff-order-dock strong{margin-left:auto}.staff-order-dock b{padding:3px 8px;margin-left:5px;border-radius:20px;background:#ffffff22}
 .order-menu.staff-mode .mobile-order-sheet .basket-grid-head{display:none}
 .order-menu.staff-mode .mobile-order-sheet .basket-grid-row{grid-template-columns:50px minmax(55px,1fr) 66px 28px;gap:7px;padding:13px 0}
 .mobile-order-sheet .basket-description{grid-column:1/4;grid-row:1;min-width:0}.mobile-order-sheet .basket-grid-row>[data-delete]{grid-column:4;grid-row:1/3;align-self:start}
 .order-menu.staff-mode #product-dialog{width:100%;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);inset:auto 0 0;margin:0;border-radius:24px 24px 0 0}
 .order-menu.staff-mode #product-dialog #product-form{max-height:calc(100dvh - env(safe-area-inset-top) - 12px)}
 .order-menu.staff-mode .product-dialog-footer{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
 .order-menu.staff-mode .mobile-order-sheet{max-height:calc(100dvh - env(safe-area-inset-top) - 12px)}
}
