/* new_sale4.php visual language for ERP order flow */
.sales-top.ns4-market-top,.sales-layout,.review-shell{max-width:980px;margin-inline:auto}
.ns4-order-appbar{position:sticky;top:82px;z-index:19;max-width:980px;min-height:64px;margin:0 auto 12px;padding:9px 11px;display:flex;align-items:center;gap:10px;border:1px solid #eef0f2;border-radius:16px;background:#ffffffed;backdrop-filter:blur(8px);box-shadow:0 5px 18px #17212b0d}
.ns4-order-title{min-width:0;flex:1}.ns4-order-title b,.ns4-order-title small{display:block}.ns4-order-title b{color:#0a7f3f;font-size:17px;font-weight:900}.ns4-order-title small{margin-top:3px;color:#6c757d;font-size:9px}
.ns4-order-actions{display:flex;align-items:center;gap:8px}.ns4-selected-pill{padding:7px 10px;border:1px solid #d4eddc;border-radius:999px;background:#eaf7ee;color:#0b5e1d;font-size:9px;font-weight:900;white-space:nowrap}.ns4-selected-pill #cartCount{min-width:auto;height:auto;display:inline;background:transparent;color:inherit;font-size:10px}
.ns4-back{height:39px!important;padding:0 12px!important;border:1px solid #dfe4e9!important;border-radius:11px!important;background:#fff!important;color:#374151!important;font-size:10px!important;font-weight:800!important}.ns4-next{width:auto!important;height:40px!important;margin:0!important;padding:0 16px!important;border:0!important;border-radius:11px!important;background:#0a7f3f!important;color:#fff!important;font-size:10px!important;font-weight:900!important;box-shadow:0 7px 18px #0a7f3f2b}.ns4-next:disabled{opacity:.45;box-shadow:none}
.ns4-checkout-hidden{display:none!important}
.sales-top.ns4-market-top{padding:11px 13px!important;border:1px solid #edf0f2!important;border-radius:14px!important;background:#fff!important;box-shadow:0 4px 16px #17212b09!important}.sales-top.ns4-market-top .back-button{display:none}.sales-top.ns4-market-top .market-visit-title h1{font-size:16px!important}.sales-top.ns4-market-top .market-visit-title p{font-size:8px!important}.sales-top.ns4-market-top .market-visit-title span{font-size:9px!important}
.sales-layout{display:block!important}.catalog-panel{overflow:visible!important;border:1px solid #e9ecef!important;border-radius:16px!important;background:#fff!important;box-shadow:0 4px 16px #17212b0a!important}.catalog-toolbar{padding:14px 15px!important}.catalog-toolbar h2{font-size:15px!important}.catalog-toolbar p{font-size:9px!important}.catalog-search{height:44px!important;border-radius:12px!important;background:#fff!important}.catalog-search input{font-size:16px!important}.category-strip.category-tiles{max-width:980px;margin:10px auto 8px!important;padding:2px 2px 6px!important;gap:8px!important}.category-tiles button{min-width:112px!important;min-height:86px!important;padding:8px!important;border:1px solid #edf0f2!important;border-radius:14px!important;background:#fff!important}.category-tiles button.active{border-color:#0a7f3f!important;background:#f2fbf6!important}.category-tiles button i{width:48px!important;height:48px!important;border:1px solid #edf0f2!important;border-radius:12px!important;background:#f3f4f6!important;color:#0a7f3f!important}.category-tiles button.active i{background:#eaf7ee!important;color:#0a7f3f!important}.category-tiles button span{font-size:9px!important;color:#2b2f33!important}
.sales-product-grid.ns4-list{display:block!important;padding:12px!important}.sales-product-card.ns4-row{min-height:92px;margin:0!important;padding:11px 12px!important;display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;border:1px solid #edf0f2!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;transform:none!important;transition:background .15s,border-color .15s,color .15s!important}.sales-product-card.ns4-row+.sales-product-card.ns4-row{margin-top:9px!important}.sales-product-card.ns4-row.selected4{border-color:#0a7f3f!important;background:#0a7f3f!important;color:#fff!important}.sales-product-card.ns4-row .product-photo{width:52px!important;height:52px!important;align-self:start;border-radius:12px!important;background:#f1f3f5!important}.sales-product-card.ns4-row .product-photo img{width:52px!important;height:52px!important;border-radius:12px!important}.sales-product-card.ns4-row .stock-badge{display:none!important}.sales-product-card.ns4-row .product-card-body{padding:0!important;display:grid!important;grid-template-columns:minmax(160px,1fr) auto!important;grid-template-areas:'code price' 'name price' 'mode controls'!important;column-gap:14px!important;align-items:center!important}.sales-product-card.ns4-row .code{grid-area:code;justify-self:start;margin-bottom:2px}.sales-product-card.ns4-row h3{grid-area:name;min-height:0!important;margin:2px 0 7px!important;font-size:13px!important}.sales-product-card.ns4-row .product-card-body>strong{grid-area:price;margin:0!important;color:#d08700!important;font-size:13px!important;white-space:nowrap}.sales-product-card.ns4-row.selected4 .product-card-body>strong{color:#ffd27a!important}.sales-product-card.ns4-row.selected4 .code{background:#ffffff1c!important;color:#fff!important}.sales-product-card.ns4-row .ns4-mode-switch{grid-area:mode;display:flex;align-items:center;gap:6px;color:#374151;font-size:9px;font-weight:900}.sales-product-card.ns4-row.selected4 .ns4-mode-switch{color:#fff}.ns4-mode-switch input{position:absolute;opacity:0;pointer-events:none}.ns4-mode-switch i{position:relative;width:42px;height:24px;border-radius:999px;background:#dbe1e7;transition:.15s}.ns4-mode-switch i:after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002;transition:.15s}.ns4-mode-switch input:checked+i{background:#0a7f3f}.ns4-mode-switch input:checked+i:after{transform:translateX(18px)}[dir=rtl] .ns4-mode-switch input:checked+i:after{transform:translateX(-18px)}.sales-product-card.ns4-row.selected4 .ns4-mode-switch i{background:#ffffff45}.sales-product-card.ns4-row .dual-quantity{grid-area:controls;display:block!important}.sales-product-card.ns4-row .dual-quantity>div{padding:0!important;border:0!important;background:transparent!important}.sales-product-card.ns4-row .dual-quantity small{margin-bottom:4px;min-height:0!important;color:#6c757d!important;font-size:8px!important}.sales-product-card.ns4-row.selected4 .dual-quantity small{color:#fff!important}.sales-product-card.ns4-row .stepper{height:42px!important;display:flex!important;align-items:center!important;gap:7px!important}.sales-product-card.ns4-row .stepper button{width:42px!important;height:42px!important;border:1px solid #dfe6ec!important;border-radius:50%!important;background:#fff!important;color:#17212b!important;font-size:20px!important}.sales-product-card.ns4-row .stepper button:last-child{background:#fff!important;color:#17212b!important}.sales-product-card.ns4-row .stepper b{min-width:58px;height:42px;padding:0 8px;display:grid;place-items:center;border:1px solid #dfe6ec;border-radius:12px;background:#fff;color:#17212b;font-size:14px!important}.sales-product-card.ns4-row.selected4 .stepper button,.sales-product-card.ns4-row.selected4 .stepper b{border-color:#ffffff40!important;background:#ffffff1f!important;color:#fff!important}
.review-shell.ns4-review-shell{display:block!important}.ns4-review-stats{max-width:980px;margin:12px auto;display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.ns4-review-stats>div{min-height:78px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #edf0f2;border-radius:14px;background:#fff;text-align:center}.ns4-review-stats span{color:#7b8794;font-size:8px}.ns4-review-stats b{margin-top:6px;font-size:13px}.ns4-review-stats b.danger{color:#c00}.review-lines-panel{border-radius:16px!important;box-shadow:0 4px 16px #17212b0a!important}.review-line{grid-template-columns:52px minmax(0,1fr) auto auto!important}.review-line img{width:52px!important;height:52px!important;border-radius:12px!important}.review-form-card.ns4-detail-form{position:relative!important;top:auto!important;margin-top:12px!important;padding:16px!important;border-radius:16px!important;box-shadow:0 4px 16px #17212b0a!important}.review-form-card.ns4-detail-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.review-form-card.ns4-detail-form>h2,.review-form-card.ns4-detail-form>.review-totals,.review-form-card.ns4-detail-form>.checkout-submit{grid-column:1/-1}.review-form-card.ns4-detail-form label{margin:0!important}.review-form-card.ns4-detail-form textarea{min-height:70px!important}.review-form-card.ns4-detail-form .checkout-submit{width:100%!important;margin:4px 0 0!important;background:#0a7f3f!important;border-color:#0a7f3f!important}
@media(max-width:820px){.ns4-order-appbar{top:68px}.sales-product-card.ns4-row .product-card-body{grid-template-columns:1fr auto!important}}
@media(max-width:620px){.ns4-order-appbar{top:64px;flex-wrap:wrap}.ns4-order-title b{font-size:15px}.ns4-order-actions{width:100%;justify-content:space-between}.ns4-next{flex:1}.ns4-selected-pill{flex:0 0 auto}.sales-top.ns4-market-top{margin-top:8px!important}.category-tiles button{min-width:92px!important;min-height:72px!important}.category-tiles button i{width:38px!important;height:38px!important}.sales-product-grid.ns4-list{padding:9px!important}.sales-product-card.ns4-row{grid-template-columns:52px minmax(0,1fr)!important;padding:10px!important}.sales-product-card.ns4-row .product-photo,.sales-product-card.ns4-row .product-photo img{width:46px!important;height:46px!important}.sales-product-card.ns4-row .product-card-body{grid-template-columns:1fr!important;grid-template-areas:'code' 'name' 'price' 'mode' 'controls'!important}.sales-product-card.ns4-row .product-card-body>strong{justify-self:start;margin-bottom:7px!important}.sales-product-card.ns4-row .dual-quantity{margin-top:7px}.ns4-review-stats{grid-template-columns:1fr 1fr}.review-line{grid-template-columns:46px 1fr!important}.review-line span{display:none!important}.review-line strong{grid-column:2!important;text-align:start!important}.review-form-card.ns4-detail-form{grid-template-columns:1fr}.review-form-card.ns4-detail-form>h2,.review-form-card.ns4-detail-form>.review-totals,.review-form-card.ns4-detail-form>.checkout-submit{grid-column:auto}}
