.quotation-wuxi-order-page{height:100%;padding:8px!important;box-sizing:border-box;color:#30435c;font-family:'Microsoft YaHei','PingFang SC','微软雅黑',Arial,sans-serif;font-size:14px;overflow:hidden}
.qwx-shell{height:100%;min-height:380px;display:flex;flex-direction:column;border:1px solid #d2deec;border-radius:6px;background:#fff;overflow:hidden;box-sizing:border-box}
.qwx-shell *{box-sizing:border-box}.qwx-shell button,.qwx-shell input,.qwx-shell select{font:inherit;color:inherit}.qwx-shell [hidden]{display:none!important}.qwx-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.qwx-number,.qwx-shell input[inputmode=decimal],.qwx-shell input[type=date]{font-family:Arial,sans-serif!important;font-variant-numeric:tabular-nums}
.qwx-toolbar{display:flex;align-items:center;gap:8px;min-height:51px;padding:8px;flex-shrink:0;border-bottom:1px solid #d5dfeb;overflow-x:auto;white-space:nowrap}.qwx-title{font-size:14px;font-weight:600}.qwx-target{font-size:12px;padding:4px 7px;background:#edf3ff;color:#456aac;border-radius:4px;margin-right:6px}.qwx-spacer{flex:1;min-width:8px}
.qwx-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:4px 9px;cursor:pointer;border:1px solid #ced9e7;background:#f8fafc;border-radius:4px;font-weight:400;white-space:nowrap}.qwx-button:hover{background:#eff4fc;border-color:#a8bddb}.qwx-button:disabled{opacity:.48;cursor:default}.qwx-button.qwx-primary{color:white;background:#3659cf;border-color:#3659cf}.qwx-toolbar select{min-height:32px;background:white;border:1px solid #ced9e7;border-radius:4px;padding:0 7px;max-width:110px}.qwx-filter{display:flex;gap:6px;align-items:center;font-size:13px;white-space:nowrap}.qwx-filter .qwx-switch{appearance:none;width:30px;height:17px;background:#dce4ef;border-radius:15px;margin:0;position:relative;cursor:pointer;flex-shrink:0}.qwx-switch:before{content:'';position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:white;transition:transform .12s}.qwx-switch:checked{background:#3659cf}.qwx-switch:checked:before{transform:translateX(13px)}
.qwx-header{display:grid;grid-template-columns:minmax(194px,1fr) repeat(4,minmax(150px,1fr));gap:8px;padding:8px;border-bottom:1px solid #d5dfeb;flex-shrink:0;overflow-x:auto}.qwx-header label{display:flex;gap:6px;align-items:center;min-width:0;margin:0;font-weight:400;white-space:nowrap}.qwx-header label>span:first-child{flex-shrink:0;font-size:13px}.qwx-header input,.qwx-header button{width:100%;min-width:0;height:30px;border:1px solid #ced9e7;border-radius:4px;background:#fff;text-align:left;padding:4px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qwx-header .qwx-date-group input{min-width:130px;flex:1}.qwx-header button{cursor:pointer}.qwx-header button:hover{border-color:#88a6cf}.qwx-header .qwx-source{grid-column:1/-1;min-height:22px}.qwx-source>span:last-child{overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:13px}
.qwx-workspace{display:flex;flex:1;min-height:0;overflow:hidden}.qwx-editor,.qwx-preview{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0}.qwx-scroll,.qwx-preview-scroll{overflow:auto;flex:1;min-height:0}.qwx-table{width:100%;min-width:1150px;table-layout:fixed;border-collapse:separate;border-spacing:0}.qwx-table th{position:sticky;top:0;z-index:2;background:#e7edf6;color:#29466b;border-bottom:1px solid #becde0;font-weight:500;text-align:left;white-space:nowrap;font-size:14px;padding:8px 6px}.qwx-table td{padding:8px 6px;border-bottom:1px solid #d8e1ed;border-right:1px solid #e4eaf2;vertical-align:top;font-size:14px}.qwx-table td:last-child{border-right:0}.qwx-table .qwx-right{text-align:right}.qwx-center{text-align:center!important}.qwx-product-name{line-height:1.5;color:#2b4468}.qwx-product-keys{font-size:12px;color:#7b8ca3;margin-top:5px;word-break:break-word}.qwx-distribution{background:#fcfdff!important}.qwx-colors{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-bottom:4px}.qwx-color{height:27px;min-height:27px;padding:3px 7px;font-size:13px!important;background:white;border-color:#d6e0ed}.qwx-color.is-active{background:#edf3ff;border-color:#98b4de;color:#365b92}.qwx-swatch{width:11px;height:11px;border-radius:50%;border:1px solid #0002;display:inline-block;flex-shrink:0}.qwx-other{border:0;background:none;min-height:27px;font-size:12px!important;color:#6d85a7}.qwx-specific-candidates{display:grid;gap:4px;background:#eef4fc;padding:6px;border-radius:4px;margin:5px 0}.qwx-specific{justify-content:flex-start;white-space:normal;font-size:12px!important;line-height:1.45;text-align:left;background:#fff}
.qwx-allocation{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:5px 0;min-height:29px}.qwx-allocation-color{display:flex;gap:5px;align-items:center;width:104px;flex-shrink:0;font-size:13px;white-space:nowrap}.qwx-code{width:84px;flex-shrink:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#6c829e}.qwx-allocation input{width:87px;height:29px;border:1px solid #c7d7e9;border-radius:4px;background:white;padding:4px 8px;text-align:right;min-width:0}.qwx-allocation-unit{width:24px;font-size:12px;color:#7a8ba2}.qwx-remove{border:0;background:none;min-height:26px;padding:3px;color:#97a8be}.qwx-remove:hover{background:#fff1ee;color:#a85048}.qwx-row-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:4px}.qwx-text-button{border:0;background:transparent;padding:2px 0;min-height:22px;font-size:12px!important;color:#6b84aa}.qwx-text-button:hover{background:transparent;color:#3659cf}.qwx-candidates{width:100%;border-collapse:collapse;background:white;border:1px solid #d8e1ed;margin-top:5px}.qwx-candidates th,.qwx-candidates td{font-size:11px!important;position:static;white-space:normal;word-break:break-word;padding:5px 6px}.qwx-candidates th:nth-child(1){width:99px}.qwx-candidates th:nth-child(3){width:42px}.qwx-candidates th:nth-child(4){width:37px}.qwx-row-progress{text-align:center;background:#f7fbf9}.qwx-status{display:inline-block;border-radius:4px;padding:4px 7px;font-size:12px;white-space:nowrap}.qwx-status-good{background:#e4f3ed;color:#27836d}.qwx-status-pending{background:#fff1d6;color:#987338}.qwx-status-bad{background:#ffe8e4;color:#ad4c48}.qwx-row-remaining{color:#7b8ca5;font-size:12px;margin-top:7px}.qwx-invalid .qwx-row-progress{background:#fff7f4}.qwx-empty{height:100px;text-align:center!important;color:#8a99ad}.qwx-footer{height:50px;flex-shrink:0;display:flex;align-items:center;gap:18px;padding:0 10px;background:#f5f8fc;border-top:1px solid #cbd8e8;font-size:13px;white-space:nowrap}.qwx-feedback{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;color:#647d9f;white-space:nowrap}.qwx-error{color:#aa4c47!important}.qwx-muted{color:#7b8da7;font-size:13px}.qwx-preview-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border-bottom:1px solid #d8e1ed}.qwx-preview-top strong{font-size:14px;font-weight:500}.qwx-preview-table{min-width:950px;table-layout:auto}.qwx-preview-table td{vertical-align:middle}.qwx-preview-table th:first-child{width:42px}.qwx-preview-table th:nth-child(2){width:60px}.qwx-preview-table th:nth-child(3){width:115px}
.qwx-side{width:330px;flex-shrink:0;display:flex;flex-direction:column;min-height:0;border-left:1px solid #d5dfeb;background:#f9fbfe;padding:8px;gap:8px}.qwx-side-title{display:flex;justify-content:space-between;align-items:center}.qwx-side-title strong{font-size:14px;font-weight:500}.qwx-side-title .qwx-button{border:0;background:none;padding:3px}.qwx-side-search{display:flex;gap:5px}.qwx-side-search input{flex:1;min-width:0;height:31px;border:1px solid #cbd8e8;border-radius:4px;padding:4px 7px;background:white}.qwx-side p{margin:0}.qwx-master-results{overflow:auto;display:flex;flex-direction:column;gap:5px;flex:1;min-height:0}.qwx-master-results .qwx-button{flex-direction:column;align-items:flex-start;white-space:normal;text-align:left;background:white;line-height:1.5;padding:7px 8px}.qwx-master-results small{font-size:11px;color:#8495ac}.qwx-loading{padding:20px;background:white;border:1px solid #d5dfeb;border-radius:5px}.qwx-loading .qwx-button{margin-right:8px}.qwx-busy .qwx-header,.qwx-busy .qwx-editor,.qwx-busy .qwx-side{pointer-events:none;opacity:.6}
@media(max-width:1000px){.qwx-header{grid-template-columns:minmax(194px,1fr) repeat(2,minmax(160px,1fr))}.qwx-side{width:290px}.qwx-toolbar .qwx-title{display:none}.qwx-footer{gap:10px}}

/* Per-row standard scope uses a native checkbox with a visible sliding track. */
.qwx-standard-cell{text-align:center}
.qwx-standard-control{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:44px;cursor:pointer}
.qwx-standard-control .qwx-standard-switch{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.qwx-standard-track{display:block;position:relative;width:34px;height:20px;border:1px solid #64748b;border-radius:12px;background:#64748b;pointer-events:none}
.qwx-standard-track:before{content:'';position:absolute;top:2px;left:2px;width:14px;height:14px;background:#fff;border-radius:50%;transition:transform .12s ease-out}
.qwx-standard-switch:checked+.qwx-standard-track{background:#3659cf;border-color:#3659cf}
.qwx-standard-switch:checked+.qwx-standard-track:before{transform:translateX(14px)}
.qwx-standard-switch:focus-visible+.qwx-standard-track{outline:2px solid #3659cf;outline-offset:3px}
.qwx-standard-switch:disabled{cursor:default}
.qwx-standard-switch:disabled~span,.qwx-standard-switch:disabled~small{opacity:.5}
.qwx-standard-control small{font-size:12px;line-height:1.3;white-space:nowrap;color:#4d617c}
.qwx-standard-group+.qwx-standard-group{margin-top:8px}
.qwx-standard-label{display:block;margin-bottom:4px;color:#4d617c;font-size:12px;line-height:1.4}
.qwx-shell :is(button,input,select):focus-visible{outline:2px solid #3659cf;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.qwx-standard-track:before{transition:none}}

/* Color choices and allocation details remain separate semantic columns. */
.quotation-wuxi-order-page .qwx-editor .qwx-table{min-width:1360px}
.quotation-wuxi-order-page .qwx-palette{background:#fff}
.quotation-wuxi-order-page .qwx-palette>.qwx-text-button{margin-top:6px}
.quotation-wuxi-order-page .qwx-distribution .qwx-allocation{display:grid;grid-template-columns:minmax(104px,1fr) 70px 76px 22px 94px 26px;gap:5px;align-items:center}
.quotation-wuxi-order-page .qwx-allocation-color{min-width:0;width:auto;overflow:hidden}
.quotation-wuxi-order-page .qwx-allocation-color>span{overflow:hidden;text-overflow:ellipsis}
.quotation-wuxi-order-page .qwx-allocation .qwx-code{width:auto}
.quotation-wuxi-order-page .qwx-allocation input{width:100%}
.quotation-wuxi-order-page .qwx-allocation-amount{min-width:0;white-space:nowrap;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;line-height:29px;color:#26364a}
.quotation-wuxi-order-page .qwx-allocation-amount.qwx-amount-pending{color:#825913;font-size:12px}

/* Five choices per row; twisted-pair prefix bands start on separate rows. */
.quotation-wuxi-order-page .qwx-palette .qwx-colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:stretch;margin:0 0 4px}
.quotation-wuxi-order-page .qwx-palette .qwx-color{width:100%;min-width:0;box-sizing:border-box;justify-content:flex-start;gap:4px;padding:3px 4px;font-size:12px!important}
.quotation-wuxi-order-page .qwx-palette .qwx-color>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quotation-wuxi-order-page .qwx-palette .qwx-other{display:block;text-align:left;padding:3px 0;color:#4d617c}
.quotation-wuxi-order-page .qwx-distribution .qwx-allocation{grid-template-columns:minmax(0,1fr) 56px 64px 20px 94px 24px;gap:4px}
.quotation-wuxi-order-page .qwx-row-progress{overflow-wrap:anywhere}

.quotation-wuxi-order-page .qwx-editor :is(th,td):is([data-column-key=sequence],[data-column-key=standard],[data-column-key=unit],[data-column-key=status]){padding-left:4px;padding-right:4px}
.quotation-wuxi-order-page .qwx-row-progress .qwx-status{max-width:100%;box-sizing:border-box;padding:3px 4px;white-space:normal;overflow-wrap:anywhere}

/* The first allocation shares the source row's 30px line box. */
.quotation-wuxi-order-page .qwx-editor .qwx-table>tbody>tr>td:is([data-column-key=source],[data-column-key=unit],[data-column-key=quantity],[data-column-key=price],[data-column-key=amount]){line-height:30px}
.quotation-wuxi-order-page .qwx-editor .qwx-product-name{line-height:30px}
.quotation-wuxi-order-page .qwx-distribution .qwx-allocation:first-child{margin-top:0;min-height:30px}

/* Keep allocation controls beside their color when the outer column is wide. */
.quotation-wuxi-order-page .qwx-distribution .qwx-allocation{grid-template-columns:minmax(0,124px) 56px 64px 20px 94px 24px;justify-content:start}
.quotation-wuxi-order-page .qwx-distribution .qwx-row-links{justify-content:flex-start}
