/* Shared by the order drawer and inventory list. Teleported above the order. */
.order-stock-mask,.order-stock-confirm-mask{position:fixed;inset:0;display:flex;background:rgba(25,39,49,.38);z-index:3400;font:14px/1.6 "Microsoft YaHei",sans-serif;color:#344b59}
.order-stock-mask{justify-content:flex-end}
.order-stock-drawer{width:min(800px,100vw);height:100%;display:flex;flex-direction:column;background:#fff;box-shadow:-6px 0 24px #0002}
.order-stock-drawer>header,.order-stock-confirm>header{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-bottom:1px solid #e2eaf0;gap:16px;flex:none}
.order-stock-drawer h3,.order-stock-confirm h3{margin:0;font-size:16px;font-weight:500}
.order-stock-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
.order-stock-drawer button,.order-stock-confirm button{border:1px solid #d5e0e8;background:#fff;color:#657d8a;border-radius:3px;padding:6px 15px;cursor:pointer;font:inherit}
.order-stock-drawer button.primary,.order-stock-confirm button.primary{background:#1890ff;border-color:#1890ff;color:#fff}
.order-stock-drawer button:disabled,.order-stock-confirm button:disabled{opacity:.55;cursor:not-allowed}
.order-stock-actions button:last-child,.order-stock-confirm>header button{border:0;font-size:22px;line-height:1;padding:4px 6px}
.order-stock-drawer>main{padding:20px;overflow:auto;min-height:0;flex:1}
.order-stock-drawer h4{font-size:14px;border-left:3px solid #1890ff;padding-left:10px;margin:0 0 20px;font-weight:500}
.order-stock-info{display:grid;grid-template-columns:76px minmax(0,1fr) 76px minmax(0,1fr);gap:18px 12px;margin:0 0 28px;align-items:start}
.order-stock-info dt{color:#718796;text-align:left}
.order-stock-info dd{margin:0;min-width:0;overflow-wrap:anywhere;text-align:left}
.order-stock-note{grid-column:2/-1;white-space:pre-wrap}
.order-stock-unpaid{color:#ff4d4f;border:1px solid #ffa7a8;border-radius:3px;padding:2px 10px}
.order-stock-products{overflow:auto}
.order-stock-drawer .order-stock-products table{border-collapse:collapse;width:100%;min-width:0;table-layout:fixed;font-size:13px}
.order-stock-products th,.order-stock-products td{padding:14px 10px;text-align:left;border-bottom:1px solid #e8edf1;overflow-wrap:anywhere}
.order-stock-products th{background:#f5f9fc;font-weight:500}
.order-stock-products th:first-child{width:25%}
.order-stock-products th:nth-child(2){width:23%}
.order-stock-products small{display:block;color:#778894}
.order-stock-error{padding:10px 12px;color:#e54838;background:#fff1ed;border:1px solid #ffd0c6;border-radius:3px;overflow-wrap:anywhere}
.order-stock-confirm-mask{align-items:center;justify-content:center;z-index:3410;padding:20px;box-sizing:border-box}
.order-stock-confirm{width:420px;max-width:100%;max-height:90vh;background:white;border-radius:4px;box-shadow:0 8px 28px #0003;display:flex;flex-direction:column}
.order-stock-confirm>main{padding:24px;overflow:auto;min-height:0}
.order-stock-confirm main p{margin:0 0 12px}
.order-stock-confirm>footer{display:flex;justify-content:flex-end;gap:10px;padding:0 20px 20px;flex:none}
.crm-order-ledger-actions.crm-order-inventory-create-actions button.primary{color:#fff;border-color:#168cf2;background:#168cf2}
.outbound-editor .inventory-document-type-row{display:flex;align-items:center;gap:12px;min-height:32px;margin:0 0 12px}
.outbound-editor .inventory-document-type-row>span{flex:0 0 72px;color:#405b68;font-size:12px}
.outbound-editor .inventory-document-type-row>span::before{content:"*";color:#ff5b5b;margin-right:4px}
.outbound-editor .inventory-document-type-row>div{display:flex;align-items:center;gap:20px}
.outbound-editor .inventory-document-type-row label{display:inline-flex;align-items:center;gap:6px;width:auto;margin:0;min-height:32px;white-space:nowrap}
.outbound-editor .inventory-document-type-row input{width:auto;margin:0}
.inbound-editor .inventory-inbound-type-row{display:flex;align-items:center;gap:12px;min-height:32px;margin:0 0 12px}
.inbound-editor .inventory-inbound-type-row>span{flex:0 0 72px;color:#405b68;font-size:12px}
.inbound-editor .inventory-inbound-type-row>span::before{content:"*";color:#ff5b5b;margin-right:4px}
.inbound-editor .inventory-inbound-type-row>div{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
.inbound-editor .inventory-inbound-type-row label{display:inline-flex;align-items:center;gap:6px;width:auto;margin:0;min-height:32px}
.inbound-editor .inventory-inbound-type-row input{width:auto;margin:0}
.inventory-warehouse-feedback{margin:0 0 12px 84px;font-size:12px;color:#718796}
.inventory-warehouse-feedback[role=alert]{color:#e54838}
@media(max-width:600px){.order-stock-info{grid-template-columns:76px minmax(0,1fr)}.order-stock-products table{min-width:560px}.order-stock-drawer>main{padding:16px}.order-stock-drawer>header{padding:12px 16px}}
