/* Last stylesheet intentionally: desktop reference rules must not override phones. */
#checkout-mobile-products{display:none}
@media(max-width:760px){
 html,body{min-width:0;scroll-padding-top:64px}
 body.native-module-layout #panel-view{display:block;height:auto;min-height:100dvh;overflow:visible}
 body.native-module-layout #panel-view>.workspace{width:100%;height:auto;min-height:100dvh;min-width:0;display:block}
 body.native-module-layout .workspace>header{position:sticky;top:0;z-index:30;min-height:56px;height:56px;padding:6px 10px;gap:8px}
 body.native-module-layout .workspace>.content{height:auto;min-height:calc(100dvh - 56px);display:block;overflow:visible;padding:14px 12px 24px;max-width:100%}
 body.native-module-layout .content>section:not(#checkout-view):not([hidden]),body.native-module-layout #products-view:not([hidden]){height:auto;max-height:none;overflow:visible;flex:none;min-height:0!important;padding:12px}
 body.native-module-layout .native-module-header{height:auto!important;min-height:0;margin:0 0 14px;gap:10px;align-items:center}
 body.native-module-layout .native-module-header h1{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
 body.native-module-layout .native-module-tabs{height:auto;min-height:44px;max-height:none;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;scrollbar-width:none;scroll-snap-type:x proximity;margin-bottom:12px;touch-action:pan-x}
 .native-module-tabs::-webkit-scrollbar{display:none}
 body.native-module-layout .native-module-tabs>.nav-item{font-size:13px;min-height:44px;padding:10px 14px;scroll-snap-align:start}
 body.native-module-layout .content input:not([type=checkbox]):not([type=radio]),body.native-module-layout .content select,body.native-module-layout .content textarea{font-size:16px;min-height:44px;max-width:100%;min-width:0}
 body.native-module-layout .content button{min-height:44px;font-size:13px;white-space:normal;line-height:1.3}
 body.native-module-layout .content .form-grid,body.native-module-layout .content .financial-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
 body.native-module-layout .content .form-grid>*,body.native-module-layout .content .financial-form>*{min-width:0;max-width:100%}
 body.native-module-layout #catalog-view #catalog-form{display:grid;grid-template-columns:1fr;padding-top:8px;gap:16px}
 body.native-module-layout #catalog-form>*{grid-column:auto!important;grid-row:auto!important;width:100%;margin:0}
 body.native-module-layout #catalog-form>.wide{grid-column:1/-1!important}
 body.native-module-layout .native-supplier-context,body.native-module-layout .native-customer-workspace,body.native-module-layout .native-cash-workspace,body.native-module-layout .native-support-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 body.native-module-layout #cash-view{padding:12px!important}
 body.native-module-layout #suppliers-view #purchase-lines{min-height:72px;max-height:330px;overflow:auto}
 body.native-module-layout .native-customer-list,body.native-module-layout #customers-view #customer-list{height:auto;min-height:0;max-height:420px;overflow:auto}
 body.native-module-layout .content .toolbar,body.native-module-layout .content .date-toolbar{flex-wrap:wrap;gap:8px}
 body.native-module-layout .content .search-field{max-width:100%;min-width:0;flex:1 1 180px}
 body.native-module-layout .content .table-scroll{max-width:100%;overscroll-behavior-x:contain}
 body.native-module-layout .content .row-actions{flex-wrap:wrap;gap:8px}
 body.native-module-layout .native-settings-section>summary{min-height:52px;padding:14px;font-size:15px;line-height:1.4}
 body.native-module-layout .native-settings-body{padding:12px}
 body.native-module-layout .appearance-layout{grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
 body.native-module-layout .appearance-layout>*{min-width:0;max-width:100%}
 body.native-module-layout #appearance-fields{width:100%;padding:8px;min-width:0}
 body.native-module-layout #appearance-sliders,body.native-module-layout #appearance-sliders>div{min-width:0;max-width:100%}
 #summary-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
 #summary-cards>.summary-card{height:auto;min-height:128px;padding:12px;border-radius:13px;display:flex;flex-direction:column}
 #summary-cards .summary-card>p{height:auto;min-height:32px;max-width:calc(100% - 32px);margin:0 0 10px;font-size:11px;line-height:1.4}
 #summary-cards .summary-card>strong{font-size:22px;line-height:1.3;overflow-wrap:anywhere}
 #summary-cards .summary-card>small{font-size:11px;line-height:1.4;margin-top:6px}
 #summary-cards .dashboard-symbol{right:10px;top:12px;width:26px;height:26px;border-radius:7px}
 .native-dashboard-symbol::before{width:18px;height:18px;mask-size:18px}
 .native-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-right:0;gap:10px}
 .native-chart{padding:14px;margin:14px 0;min-height:0}.native-chart h2{font-size:16px}.native-chart-columns{gap:4px}.native-chart-bar>span{max-width:100%}
 body.native-module-layout.checkout-mode #checkout-view{display:flex;flex-direction:column;height:auto;min-height:0;gap:12px}
 body.native-module-layout #checkout-view>.checkout-main{display:flex;flex-direction:column;gap:12px;width:100%;min-height:0}
 body.native-module-layout #checkout-view .checkout-left{min-height:0;gap:8px;width:100%}
 body.native-module-layout #checkout-view .checkout-basket-panel{min-height:0;padding:10px;overflow:hidden}
 body.native-module-layout #checkout-view .checkout-basket-panel .checkout-quantity-line{min-height:0;padding-bottom:8px}
 body.native-module-layout #checkout-view .checkout-basket-tabs{width:calc(100% - 52px);max-width:calc(100% - 52px);flex:1 1 calc(100% - 52px)}
 body.native-module-layout #checkout-view .checkout-basket-tabs button{min-width:0;min-height:40px;padding:7px 3px;font-size:11px}
 body.native-module-layout #checkout-view #native-calculator-open{width:44px;min-width:44px;min-height:40px;margin-left:0;flex:0 0 44px;align-self:center;padding:8px}
 body.native-module-layout #checkout-view #checkout-basket{min-height:80px;max-height:300px;overflow:auto;flex:none}
 body.native-module-layout #checkout-view #checkout-basket .empty{padding:20px 8px}
 body.native-module-layout #checkout-view #checkout-basket th{font-size:11px;padding:8px 5px;white-space:normal}
 body.native-module-layout #checkout-view #checkout-basket td{padding:9px 5px;font-size:13px;white-space:normal}
 body.native-module-layout #checkout-view #checkout-basket td:first-child{min-width:85px;max-width:140px}
 body.native-module-layout #checkout-view #checkout-basket td strong{font-size:13px}
 body.native-module-layout #checkout-view .checkout-right{height:auto;min-height:0;display:flex;flex-direction:column;padding:0;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
 body.native-module-layout #checkout-mobile-products{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:46px;padding:12px;background:var(--surface);color:var(--ink);border-radius:0;font-size:13px}
 #checkout-mobile-products::after{content:'⌄';font-size:18px}
 #checkout-mobile-products[aria-expanded=true]::after{content:'⌃'}
 body.native-module-layout #checkout-view .checkout-right:not(.mobile-favorites-open)>:not(#checkout-mobile-products){display:none!important}
 body.native-module-layout #checkout-view .checkout-categories{grid-template-rows:38px;grid-auto-columns:125px;flex:none;max-width:100%;padding:8px;scrollbar-width:none;touch-action:pan-x}
 body.native-module-layout #checkout-view .checkout-categories button{font-size:12px;min-height:38px;padding:6px}
 body.native-module-layout #checkout-view .checkout-tiles{grid-template-columns:repeat(3,minmax(0,1fr));min-height:0;max-height:320px;padding:8px;gap:8px}
 body.native-module-layout #checkout-view .checkout-tiles:has(>.empty){display:block}
 body.native-module-layout #checkout-view .checkout-tiles>.empty{padding:18px 8px;min-height:0;font-size:12px}
 body.native-module-layout #checkout-view .checkout-product-tile{min-height:115px;padding:6px}
 body.native-module-layout #checkout-view .checkout-product-picture{height:42px}
 body.native-module-layout #checkout-view .checkout-product-name{font-size:12px;line-height:1.3}
 body.native-module-layout #checkout-view .checkout-bottom{margin:0;padding:10px}
 body.native-module-layout #checkout-view .checkout-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.native-module-layout #checkout-view .checkout-money{height:auto;min-height:76px;padding:9px;justify-content:center}
 body.native-module-layout #checkout-view .checkout-money p,body.native-module-layout #checkout-view .checkout-money label{font-size:11px;line-height:1.4;margin:0 0 5px}
 body.native-module-layout #checkout-view .checkout-money strong{font-size:23px;line-height:1.3;overflow-wrap:anywhere}
 body.native-module-layout #checkout-view .checkout-total-card{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;min-height:58px}
 body.native-module-layout #checkout-view .checkout-total-card p{margin:0}
 body.native-module-layout #checkout-view .checkout-cash-card input{height:36px;min-height:36px;font-size:22px}
 body.native-module-layout #checkout-view .checkout-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
 body.native-module-layout #checkout-view .checkout-actions .checkout-action{grid-column:span 3;width:auto;min-width:0;min-height:46px;font-size:13px;padding:9px 6px;white-space:normal}
 body.native-module-layout #checkout-view .checkout-actions :is(.pay-cash,.pay-card,.pay-credit){grid-column:span 2}
 body.native-module-layout .native-module-header>#customer-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.native-module-layout .native-module-header>#customer-cards article{padding:10px;min-height:72px}
 body.native-module-layout dialog{width:calc(100% - 24px);max-width:560px;max-height:calc(100dvh - 32px);padding:16px;overflow:auto;overscroll-behavior:contain}
 body.native-module-layout dialog .form-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 body.native-module-layout dialog button{min-height:44px}
 body.native-module-layout dialog input,body.native-module-layout dialog select{font-size:16px;min-height:44px}
}
@media(max-width:480px){body.native-module-layout .content .form-grid,body.native-module-layout .content .financial-form{grid-template-columns:minmax(0,1fr)}body.native-module-layout #purchase-line-form>*{grid-column:auto;grid-row:auto}}
