/* v8 adapts the cart, member forms and order workspace to the viewport. */
html{width:100%;height:100%;-webkit-text-size-adjust:100%}body{width:100%;height:100dvh;min-width:280px}body>div,#view-store,#view-admin,#view-admin main{min-width:0;min-height:0}.shop-panel{max-width:100%;overflow-x:hidden}.shop-form input[type=checkbox],.shop-form input[type=radio],input[type=checkbox]{width:18px;min-width:18px;min-height:18px;margin-right:5px;vertical-align:middle}.shop-form input[type=file]{max-width:100%;font-size:14px}.shop-grid>div,.fx-grid>div,.shop-row>div{min-width:0}.shop-panel input,.shop-panel select,.shop-panel textarea{max-width:100%}.at-input{width:100%;padding:11px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:15px}.at-member-picker{margin-top:0}.at-member-results{display:flex;gap:6px;flex-wrap:wrap;max-height:180px;overflow:auto;margin-top:10px}.at-member-option{border:1px solid #d7e2ed;border-radius:8px;padding:8px 10px;font-weight:700;background:#f8fafc;text-align:left;min-height:40px}.at-member-option small{display:block;color:#64748b;font-size:11px;font-weight:400}.at-config-list h3,.fx-bar h3{font-weight:800;font-size:17px}.at-config-list{margin-bottom:16px}.fx-import{max-width:100%;overscroll-behavior-x:contain}.shop-product-body h3,.oms-order,.fx-panel{overflow-wrap:anywhere}.shop-toolbar input[type=search]{flex:1;min-width:120px!important}.shop-products{width:100%;min-width:0}
@media(min-width:1400px){.shop-products{grid-template-columns:repeat(4,minmax(0,1fr))}.shop-panel{width:min(1040px,92vw)}}
@media(max-width:1000px){#view-admin>aside{width:190px}#view-admin>main{padding:12px}.shop-panel{width:95vw}.shop-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){#view-admin{flex-direction:column}#view-admin>aside{width:100%;max-height:130px;flex:none;overflow:auto}#view-admin>aside nav{display:flex;flex-wrap:wrap;gap:2px;padding:6px}#view-admin>aside nav>div:not(:has(button)){display:none}#view-admin>aside nav>div:has(button){display:contents}#view-admin .admin-nav-link{width:auto!important;white-space:nowrap;font-size:12px;padding:8px 10px;min-height:36px;border-radius:6px}#view-admin #oms-sidebar{display:none}#view-admin>main{flex:1;min-height:0;padding:10px}#view-store>div:first-child{flex-wrap:wrap;gap:6px}.shop-toolbar{padding:10px;gap:6px}.shop-toolbar .shop-btn{flex:1 1 auto}.shop-row{align-items:flex-start}.shop-row img{width:52px;height:52px}.oms-order-list{min-width:0}.oms-order-head{grid-template-columns:22px repeat(2,minmax(0,1fr));padding:10px;gap:8px}.oms-order-head>input:first-child{grid-column:1;grid-row:1/3}.oms-order-head>div:nth-child(2){grid-column:2/4}.oms-order-head>div:last-child{grid-column:1/4}.oms-order-head>div{min-width:0}.oms-order-head .oms-inline-controls{gap:7px}.oms-order-head .oms-inline-controls button{min-height:34px}.oms-lines tbody{display:block}.oms-lines tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #e2e8f0;padding:6px}.oms-lines td{display:block;width:auto!important;min-width:0;padding:7px;border-bottom:0}.oms-lines td:first-child{grid-column:1/3}.oms-lines .oms-check{min-width:0}.oms-notes{grid-template-columns:1fr}.oms-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.oms-top .oms-actions{width:100%}.oms-actions button{flex:1 1 auto}.oms-page{flex-wrap:wrap}.member-scope{flex-wrap:wrap}.at-member-results{max-height:160px}}
@media(max-width:520px){.shop-modal{padding:0;align-items:stretch}.shop-panel{width:100%;max-height:100dvh;min-height:0;border-radius:0;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.shop-head{top:-12px;padding-top:max(8px,env(safe-area-inset-top));gap:8px}.shop-head h2{font-size:17px;overflow-wrap:anywhere}.shop-grid,.fx-grid,.member-form-layout{grid-template-columns:1fr!important}.shop-form input,.shop-form select,.shop-form textarea,.at-input{font-size:16px}.shop-form input[type=checkbox]{font-size:16px}.shop-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shop-product-body{padding:9px}.shop-product-body h3{font-size:13px}.shop-price{font-size:19px}.shop-row{flex-wrap:wrap}.shop-qty{margin-left:0;max-width:100%}.shop-qty input{font-size:16px}.shop-footer{bottom:-12px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.shop-actions>.shop-btn{flex:1 1 auto}.fx-social-button{width:100%}.oms-title{font-size:18px}.oms-filter-grid{grid-template-columns:1fr}.oms-filter{padding:8px}.oms-actions button{font-size:12px;min-height:38px}.at-member-option{flex:1 1 45%}.at-member-picker .fx-bar select{width:100%}.member-money-card{flex-wrap:wrap}.fx-panel{padding:12px}}
@media print{.at-member-picker,[data-at],#at-settings-nav,#at-backup-nav,#at-import-nav{display:none!important}}
