.order-modal{width:min(820px,100%);max-height:calc(100vh - 36px);overflow:auto}
.order-modal .section-title h3{font-size:14px;margin:0}
.order-modal .cart-qty{width:72px;border:1px solid var(--line);border-radius:6px;padding:7px}
.order-modal #order-product{min-height:112px}
#order-commerce{display:block;width:100%;height:210px;min-height:210px;overflow-y:auto;white-space:normal}
.order-modal #order-commerce[hidden]{display:none!important}
.order-client-results{max-height:250px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 8px 20px rgba(25,45,65,.12)}
.order-client-option{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;padding:9px 12px;background:#fff;color:var(--ink);text-align:left;border-bottom:1px solid #edf0f3}
.order-client-option:hover,.order-client-option[aria-selected="true"]{background:#f0f5f8}
.order-client-option span{font-size:13px;font-weight:600}
.order-client-option small{font-size:11px;color:var(--muted)}
.order-client-empty{padding:14px;color:var(--muted);font-size:12px}
.order-product-search-field{position:relative;z-index:8}
.order-product-suggestions[hidden]{display:none!important}
.order-product-suggestions{position:absolute;z-index:12;top:100%;left:0;right:0;max-height:270px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 8px 20px rgba(25,45,65,.16)}
.order-product-suggestions-count{position:sticky;top:0;padding:8px 11px;background:#f7f9fb;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.order-product-suggestion{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;padding:8px 11px;border-bottom:1px solid #edf0f3;background:#fff;color:var(--ink);text-align:left}
.order-product-suggestion:hover,.order-product-suggestion:focus{background:#f0f5f8;outline:none}
.order-product-suggestion span{font-size:12px;font-weight:600}
.order-product-suggestion small{font-size:10px;color:var(--muted)}
.order-product-suggestions-empty{padding:14px;color:var(--muted);font-size:12px}
.order-modal .form-field:has(#order-status){display:none!important}
.order-stage-select{min-width:150px;max-width:190px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font-size:12px}
.order-product-catalog{grid-column:1/-1;min-width:0}
.order-catalog-heading{display:flex;justify-content:space-between;align-items:center;margin:2px 0 10px;font-size:13px}
.order-catalog-heading span{font-size:11px;color:var(--muted)}
.order-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:400px;overflow:auto;padding:2px 4px 2px 0}
.order-result-card{display:grid;grid-template-columns:82px minmax(0,1fr);gap:11px;align-items:start;padding:11px;border:1px solid var(--line);border-radius:9px;background:#fff}
.order-result-card>img,.order-result-placeholder{width:82px;height:82px;object-fit:contain;border-radius:7px;background:#f4f5f2}
.order-result-placeholder{display:grid;place-items:center;color:var(--muted);font-size:10px;text-align:center}
.order-result-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.order-result-info h4{margin:0;font-size:13px;line-height:1.3}
.order-result-info p{margin:0;color:var(--muted);font-size:11px}
.order-result-info>strong{font-size:14px;color:var(--navy)}
.product-stock-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:6px;background:#eef3ef;color:#415c49;font-size:11px;font-weight:600}
.product-stock-badge.negative{background:#fff0ed;color:#a13d31}
.order-result-actions{display:grid;grid-template-columns:auto 66px auto 66px 1fr;gap:6px;align-items:center;width:100%;margin-top:4px}
.order-result-actions label{font-size:11px;color:var(--muted)}
.order-result-actions input{width:66px;min-width:0;padding:7px;border:1px solid var(--line);border-radius:6px}
.order-result-actions button{padding:8px 9px;font-size:11px;white-space:nowrap}
.order-catalog-empty{grid-column:1/-1;padding:16px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:12px}
@media(max-width:620px){.order-product-grid{grid-template-columns:1fr;max-height:340px}.order-result-card{grid-template-columns:68px minmax(0,1fr)}.order-result-card>img,.order-result-placeholder{width:68px;height:68px}}
.inventory-history{margin-top:18px}.stock-negative{color:var(--red);font-weight:700}
.inventory-photo-cell{width:64px}.inventory-thumb{display:block;width:46px;height:46px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#fff;padding:2px}.inventory-no-photo{font-size:10px;color:var(--muted);white-space:nowrap}
.price-list-photo-cell{width:64px}.price-list-thumb{display:block;width:46px;height:46px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#fff;padding:2px}
.brand{justify-content:center}.brand-logo{display:block;width:min(100%,205px);height:auto;max-height:138px;object-fit:contain}.brand-logo{border-radius:8px}
@media(max-width:620px){.brand{justify-content:flex-start;padding-bottom:8px}.brand-logo{width:142px;max-height:90px}}
.order-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.quote-button{padding:10px 15px;border-radius:7px;font-size:13px;background:#e8f3ec;color:#216644;border:1px solid #c8e2d2}.quote-button:hover{background:#dceee3}.quote-pill{background:#e8f3ec;color:#216644}
:root{--navy:#303534;--blue:#59615e;--ink:#303534;--muted:#727875;--line:#d9dbd6;--bg:#f3f3ef;--green:#5b7461;--orange:#a5814b}
.nav-item:hover,.nav-item.active{background:#484f4d;color:#fff}.secondary{background:#e9ebe7;color:#3c4340}.secondary:hover{background:#dfe2dd}.pill{background:#e9ece8;color:#525a56}.brand-logo{width:138px;height:138px;max-height:none;object-fit:contain;border-radius:50%;background:transparent}
@media(max-width:620px){.brand-logo{width:90px;height:90px;max-height:none}}
