/* Phone and tablet portrait: one working column, one menu row. */
@media screen and (max-width:1023px){
 .mobile-pos{min-width:0;padding-left:0;padding-bottom:86px}
 .mobile-pos .m-header,.mobile-pos .m-header:has(.m-header-logout){display:grid;grid-template-columns:minmax(0,1fr) 38px 38px auto;align-items:center;gap:6px;margin:6px 8px 0;padding:9px 10px;min-height:62px;border-radius:16px}
 .mobile-pos .m-header .m-brand{grid-column:1;min-width:0;gap:7px}
 .mobile-pos .m-header .m-brand img{width:32px;height:32px;flex:none}
 .mobile-pos .m-header .m-brand b{font-size:13px;white-space:nowrap}
 .mobile-pos .m-header .m-brand small{font-size:8px}
 .mobile-pos .m-header .m-brand>span{min-width:0;overflow:hidden}
 .mobile-pos .m-header .m-brand small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mobile-pos .m-header .m-dashboard-back{grid-column:2;width:38px;min-height:40px;padding:6px;border-radius:11px}
 .mobile-pos .m-header .m-dashboard-back span,.mobile-pos .m-header .m-header-logout span{display:none}
 .mobile-pos .m-header .m-header-logout{grid-column:3;width:38px;min-height:40px;padding:7px;border-radius:11px}
 .mobile-pos .m-header .m-install{grid-column:4;width:auto;min-width:100px;min-height:40px!important;padding:7px 9px!important;font-size:12px!important;white-space:nowrap;border-radius:12px;gap:5px}
 .mobile-pos .m-header .m-install span{display:inline}
 .mobile-pos .m-header:has(.m-install[hidden]){grid-template-columns:minmax(0,1fr) 38px 38px}
 .mobile-pos.m-login-page .m-header{grid-template-columns:minmax(0,1fr) 38px auto}
 .mobile-pos.m-login-page .m-header .m-install{grid-column:3}
 .mobile-pos .m-context{margin:8px 8px 0;padding:10px;border-radius:15px;max-width:none}
 .mobile-pos .m-context>div:first-child{display:grid;grid-template-columns:minmax(102px,.8fr) minmax(0,1.5fr);gap:8px;max-width:none;align-items:end}
 .mobile-pos .m-context label{font-size:10px}
 .mobile-pos .m-context select{min-width:0;min-height:44px;font-size:14px;border-radius:11px}
 .mobile-pos .m-context-button{min-width:0;min-height:54px;padding:8px 10px;font-size:14px;border-radius:12px}
 .mobile-pos .m-context-button span{min-width:0;overflow-wrap:anywhere}
 .mobile-pos .m-context-button small{font-size:10px}
 .mobile-pos .m-main,.mobile-pos.m-tab-products .m-main{display:block;min-width:0;max-width:none;margin:0;padding:12px 10px 22px}
 .mobile-pos .m-content{width:100%;min-width:0;max-width:none}
 .mobile-pos .m-tablet-cart{display:none!important}
 .mobile-pos .m-search{display:grid;grid-template-areas:"field field" "search camera";grid-template-columns:1fr 1fr;gap:8px;border:1px solid #e1eaf5;border-radius:16px;padding:10px;background:#fff}
 .mobile-pos .m-search-field{grid-area:field;min-width:0;min-height:48px;gap:7px;border-radius:12px}
 .mobile-pos .m-search input{min-width:0;min-height:46px;padding:9px 4px;font-size:16px}
 .mobile-pos .m-search-submit{grid-area:search}
 .mobile-pos .m-search .m-open-camera{grid-area:camera}
 .mobile-pos .m-search-submit,.mobile-pos .m-search .m-open-camera{width:auto;min-width:0;min-height:46px!important;padding:9px 7px!important;font-size:13px!important;border-radius:12px}
 .mobile-pos .m-pc-scan-guide{display:block;margin:7px 3px 12px;color:#56728b;font-size:11px;line-height:1.6}
 .mobile-pos .m-products{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .mobile-pos .m-catalog-title{gap:8px;margin:8px 0;padding:10px;border-radius:12px;background:#fff}
 .mobile-pos .m-catalog-title>b{font-size:13px;white-space:nowrap}
 .mobile-pos .m-catalog-title>small{font-size:10px;white-space:nowrap}
 .mobile-pos .m-catalog-title>select{min-width:0;width:104px;min-height:36px;font-size:12px}
 .mobile-pos .m-product{display:grid;grid-template-columns:50px minmax(0,1fr) 42px;gap:9px;padding:11px;border-radius:15px}
 .mobile-pos .m-product>img,.mobile-pos .m-product-placeholder{width:50px;height:56px;object-fit:contain;border-radius:8px}
 .mobile-pos .m-product>div{min-width:0}
 .mobile-pos .m-product h3{margin:3px 0 5px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
 .mobile-pos .m-product .m-sku{font-size:12px}
 .mobile-pos .m-product-barcode{font-size:10px;line-height:1.5;overflow-wrap:anywhere}
 .mobile-pos .m-product>button{width:42px;min-width:42px;min-height:44px;border-radius:12px}
 .mobile-pos .m-price{margin:8px 0 3px;font-size:22px;line-height:1.3}
 .mobile-pos .m-price small,.mobile-pos .m-stock,.mobile-pos .m-product details{font-size:11px;line-height:1.6}
 .mobile-pos .m-native-promotion{margin:7px 0;border-radius:10px}
 .mobile-pos .m-native-promotion summary{padding:8px}
 .mobile-pos .m-native-promotion summary b{font-size:12px}
 .mobile-pos .m-native-promotion summary small,.mobile-pos .m-native-promotion summary em{font-size:10px}
 .mobile-pos .m-nav,.mobile-pos .m-nav.is-manager{position:fixed;left:0;right:0;bottom:0;top:auto;display:flex;flex-flow:row nowrap;align-items:stretch;gap:2px;width:100%;max-width:none;min-height:70px;margin:0;padding:5px 6px calc(5px + env(safe-area-inset-bottom));border:0;border-top:1px solid #dce7f3;border-radius:18px 18px 0 0;background:#fff;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;box-sizing:border-box;z-index:60}
 .mobile-pos .m-nav:before{display:none}
 .mobile-pos .m-nav button,.mobile-pos .m-nav.is-manager button,.mobile-pos .m-nav .bill-trash-entry{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 68px;gap:4px;min-width:68px;width:68px;min-height:58px;margin:0;padding:6px 3px;border-radius:12px;font-size:10px;line-height:1.35;text-align:center;text-decoration:none;white-space:normal;box-sizing:border-box}
 .mobile-pos .m-nav .bill-trash-entry{color:#56718b;border:0;background:transparent}
 .mobile-pos .m-nav .m-desktop-only{display:none}
 .mobile-pos .m-nav svg{flex:none;width:21px;height:21px;padding:0;border:0;border-radius:0;background:transparent}
 .mobile-pos .m-nav button.active:after{height:3px;width:22px;top:auto;bottom:2px;left:calc(50% - 11px)}
 .mobile-pos .m-basket-bar{position:fixed;display:flex;left:10px;right:10px;bottom:calc(83px + env(safe-area-inset-bottom));width:calc(100% - 20px);max-width:none;min-height:58px;margin:0;padding:10px 13px;z-index:55;box-sizing:border-box;border-radius:14px;box-shadow:0 5px 20px #006bc72b}
 .mobile-pos .m-basket-bar span{font-size:13px;min-width:0}
 .mobile-pos .m-basket-bar small{font-size:10px}
 .mobile-pos .m-basket-bar b{font-size:19px;white-space:nowrap}
 .mobile-pos.m-tab-products:has(.m-basket-bar) .m-main{padding-bottom:94px}
 .mobile-pos .m-sales-alert{bottom:calc(84px + env(safe-area-inset-bottom));right:10px;left:10px;width:auto;max-width:none;padding:9px;gap:7px;font-size:12px;box-sizing:border-box}
 .mobile-pos.m-tab-products:has(.m-basket-bar) .m-sales-alert{bottom:calc(151px + env(safe-area-inset-bottom))}
 .mobile-pos .m-sales-alert span{flex:1;font-size:12px}
 .mobile-pos .m-sales-alert small{font-size:10px}
 .mobile-pos .m-sales-alert button{min-width:38px;min-height:40px;padding:7px;font-size:11px}
 .mobile-pos .m-toast{bottom:calc(150px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}
 .mobile-pos .m-cart-line{padding:12px;border-radius:14px}
 .mobile-pos .m-cart-line h3{font-size:15px;line-height:1.5}
 .mobile-pos .m-stepper input{font-size:16px}
 .mobile-pos .m-section-title h2{font-size:20px}
 .mobile-pos .m-customer input,.mobile-pos .m-manual input,.mobile-pos .m-employee-login input{font-size:16px}
 .mobile-pos .m-login{margin:14px 10px;padding:20px;max-width:520px}
}
@media screen and (max-width:767px){.mobile-pos .m-pc-scan-ready{display:none}}
@media screen and (min-width:768px) and (max-width:1023px){.mobile-pos .m-main{max-width:760px;margin:0 auto}.mobile-pos .m-products{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-pos .m-nav button,.mobile-pos .m-nav.is-manager button{flex:1 0 74px}.mobile-pos .m-header,.mobile-pos .m-context{max-width:980px;margin-left:auto;margin-right:auto}}
