.order-procurement-page{height:100%;padding:8px!important;box-sizing:border-box;overflow:hidden;font-family:'Microsoft YaHei','微软雅黑','PingFang SC',sans-serif;font-size:14px;color:#30435c}.op-shell{height:100%;min-height:300px;display:flex;flex-direction:column;border:1px solid #d2deec;border-radius:6px;background:#fff;overflow:hidden}.op-shell *{box-sizing:border-box}.op-shell [hidden]{display:none!important}.op-shell button,.op-shell input,.op-shell select,.op-shell textarea{font:inherit;color:inherit}.op-number,.op-shell input[type=date],.op-shell input[inputmode=decimal]{font-family:Arial,sans-serif!important;font-variant-numeric:tabular-nums}.op-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.op-toolbar{display:flex;align-items:center;gap:6px;min-height:51px;padding:8px;overflow-x:auto;white-space:nowrap;flex-shrink:0;border-bottom:1px solid #d5dfeb}.op-title{font-size:14px;font-weight:600;margin-right:6px}.op-spacer{flex:1;min-width:8px}.op-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}.op-button:hover{background:#eff4fc;border-color:#a8bddb}.op-button:disabled{opacity:.48;cursor:default}.op-button.op-primary{background:#3659cf;border-color:#3659cf;color:#fff}.op-shell .op-link-button{min-height:24px;padding:0;border:0;background:transparent;color:#35679c;text-align:left;justify-content:flex-start;white-space:normal}.op-link-button:hover{text-decoration:underline}.op-search{height:32px;width:220px;min-width:120px;padding:4px 8px;border:1px solid #ced9e7;border-radius:4px;background:white}.op-content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}.op-header{display:grid;grid-template-columns:repeat(6,minmax(100px,1fr));gap:8px;padding:8px;border-bottom:1px solid #d5dfeb;flex-shrink:0}.op-field{display:flex;gap:6px;align-items:center;min-width:0;margin:0;white-space:nowrap}.op-field>span:first-child{flex-shrink:0}.op-field input,.op-field textarea{width:100%;min-width:0;height:30px;padding:3px 6px;border:1px solid #ced9e7;border-radius:4px;background:#fff}.op-field input:disabled,.op-field textarea:disabled{color:#51627b;background:#f7f9fc;-webkit-text-fill-color:#51627b;opacity:1}.op-field-wide{grid-column:span 2}.op-route-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:39px;padding:6px 8px;border-bottom:1px solid #d5dfeb;flex-shrink:0;background:#fbfcfe}.op-muted{color:#7c8ca3}.op-table-scroll{flex:1;min-height:0;overflow:auto}.op-table{width:100%;min-width:1030px;border-collapse:separate;border-spacing:0;table-layout:auto}.op-table th{position:sticky;top:0;z-index:2;background:#e9eef6;color:#29466b;border-bottom:1px solid #becde0;border-right:1px solid #d3ddea;font-weight:600;text-align:left;white-space:nowrap;padding:7px 6px;height:34px}.op-table td{padding:4px 6px;height:34px;border-bottom:1px solid #d8e1ed;border-right:1px solid #e4eaf2;vertical-align:middle;line-height:1.45}.op-table tr:nth-child(even) td{background:#f9fbfe}.op-table tr:hover td{background:#f1f6ff}.op-table th:first-child,.op-table td:first-child{min-width:36px}.op-table input[type=checkbox]{width:24px!important;height:24px!important;margin:0!important;display:inline-block;vertical-align:middle;accent-color:#3659cf}.op-table th:has(input[type=checkbox]),.op-table td:has(input[type=checkbox]){text-align:center!important;vertical-align:middle!important}.op-center{text-align:center!important}.op-right{text-align:right!important;white-space:nowrap}.op-cell-input{width:100%;min-width:75px;height:28px;border:1px solid transparent;background:transparent;padding:2px 3px;border-radius:3px}.op-right .op-cell-input{text-align:right}.op-cell-input:hover,.op-cell-input:focus{background:#fff;border-color:#adc3e1;outline:none}.op-empty{height:110px!important;text-align:center!important;color:#8b99ad}.op-footer{height:50px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:0 8px;border-top:1px solid #cbd8e8;background:#f7f9fc;white-space:nowrap;overflow-x:auto}.op-feedback{flex:1;min-width:80px;color:#657d9d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.op-error{color:#a54c46!important}.op-total{margin-left:auto}.op-footer select{height:30px;border:1px solid #ced9e7;border-radius:4px;background:#fff;padding:3px 6px}.op-loading{padding:18px;border:1px solid #d5dfeb;background:#fff;border-radius:5px}.op-loading .op-button{margin-right:6px}.op-source-split{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px dashed #dce4ee;padding:4px 0;white-space:nowrap}.op-source-split:last-child{border-bottom:0}.op-sources{min-width:210px}.op-retry-pending .op-header,.op-retry-pending .op-table{pointer-events:none;opacity:.65}@media(max-width:1100px){.op-header{grid-template-columns:repeat(3,minmax(120px,1fr))}.op-toolbar .op-title{display:none}}@media(max-width:650px){.op-header{grid-template-columns:repeat(2,minmax(100px,1fr))}.op-field{flex-direction:column;align-items:stretch;gap:3px}.op-field-wide{grid-column:span 2}.op-footer{gap:8px}.op-route-strip{align-items:flex-start}.op-route-strip .op-muted{width:100%}.op-search{width:160px}}
.op-supplier-reference{display:flex;align-items:center;gap:8px;padding:6px 8px;border-bottom:1px solid #d5dfeb;flex-shrink:0;overflow-x:auto;white-space:nowrap}.op-supplier-reference input{width:190px;min-width:120px;height:30px;border:1px solid #ced9e7;border-radius:4px;padding:3px 6px}.op-supplier-reference input:disabled{background:#f7f9fc}

/* Match sales-order details: one button row, compact header, scrolling lines,
   and totals fixed at the bottom of the document. */
.op-document-shell{border:0;border-radius:0;background:transparent;gap:8px;min-width:0}
.op-document-shell>.op-toolbar{border:1px solid #e5e6eb;border-radius:8px;background:#fff;min-height:72px;padding:8px 12px;gap:4px;overflow-y:hidden;flex-wrap:nowrap}
.op-document-shell .op-button{min-height:32px;border-color:#d9d9d9;background:#fff;color:#4e5969}
.op-document-shell .op-button:hover{background:#f2f3f5;border-color:#a9adb5}
.op-document-shell .op-button.op-primary{background:#165dff;color:#fff;border-color:#165dff}
.op-document-shell .op-link-button{border:0;background:transparent;color:#35679c}
.op-document-shell>.op-document-header-card,.op-document-shell>.op-content{box-sizing:border-box;width:100%;min-width:0;border:1px solid #e5e6eb;border-radius:8px;background:#fff}
.op-document-shell>.op-document-header-card{flex:none;overflow:hidden}
.op-document-shell>.op-content{padding:8px}
.op-document-header-card>.op-document-header{border-bottom:0}
.op-document-header-card>:is(.op-route-strip,.op-supplier-reference){border-top:1px solid #e5e6eb;border-bottom:0}
.op-inquiry-order-progress[hidden]{display:none}
.op-document-shell>.op-content>.op-table-scroll{min-width:0;border:1px solid #e5e6eb}
.op-document-info{display:grid;gap:4px;min-width:258px;margin-left:8px;flex:none}
.op-document-info .op-field{display:grid;grid-template-columns:64px 180px;gap:6px;align-items:center;flex-direction:row}
.op-document-info .op-field>span{color:#666}
.op-document-info input{height:26px;border:1px solid #d9d9d9;border-radius:4px;padding:0 6px;min-width:0;width:100%}
.op-document-info input:disabled{color:#333;-webkit-text-fill-color:#333;background:#fff;opacity:1}
.op-document-header{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 10px;padding:10px 12px}
.op-document-header .op-field>span{width:70px;color:#4e5969}
.op-document-header .op-field input:disabled{background:#fff;color:#1d2129;-webkit-text-fill-color:#1d2129}
.op-document-shell .op-document-table{min-width:1450px;table-layout:fixed}
.op-document-table th:first-child{width:42px}
.op-document-table th:nth-child(3){width:110px}
.op-document-table th:nth-child(4){width:230px}
.op-document-table th:nth-child(5){width:170px}
.op-document-table th:nth-child(6){width:105px}
.op-document-table th:nth-child(7){width:110px}
.op-document-table th:nth-child(8){width:100px}
.op-document-table th:nth-child(9){width:60px}
.op-document-table th:nth-child(10){width:55px}
.op-document-table th:nth-child(11),.op-document-table th:nth-child(12){width:105px;text-align:right}
.op-document-table th:nth-child(13){width:140px}
.op-document-table th:nth-child(14){width:500px}
.op-document-table td{height:40px;overflow:hidden;text-overflow:ellipsis}
.op-document-table th{background:#f2f3f5;color:#4e5969}
.op-document-shell>.op-footer{height:50px;border:1px solid #d9dfe8;border-radius:6px;background:#fff}
.op-document-sources{max-height:95px;overflow:auto;background:#fafbfd}
.op-selected-source{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid #dce4ef;border-radius:4px;background:#fff}
.op-selected-source>.op-button:last-child{border:0;min-height:24px;padding:0 2px;font-size:12px;color:#86909c}
.op-selected-source>.op-button:last-child .op-icon{width:12px;height:12px}
@media(max-width:1100px){.op-document-header{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.op-document-header{grid-template-columns:repeat(2,minmax(0,1fr))}.op-document-header .op-field{display:flex;flex-direction:column;align-items:stretch}.op-document-shell>.op-toolbar{min-height:54px}.op-document-info{min-width:230px}.op-document-info .op-field{grid-template-columns:64px 150px}}
.tab-content:has(>.order-procurement-page.active){padding:8px!important;min-width:0;overflow:hidden}
.tab-content>.order-procurement-page{padding:0!important;min-width:0}

/* Reuse inquiry relation badges; the control only supplies keyboard/click behavior. */
.op-shell .op-relation-button{display:inline-flex;align-items:center;justify-content:center;min-height:0;padding:0;border:0;background:transparent;cursor:pointer;white-space:nowrap;font:inherit}.op-shell .op-relation-button:hover{background:transparent}.op-relation-button:focus-visible{outline:2px solid #1677c8;outline-offset:2px}

/* Suzhou quotation-derived sales order display options. */
.op-order-columns{position:relative;margin-left:auto;flex-shrink:0}.op-order-columns>summary{cursor:pointer;padding:4px 8px;min-height:30px;border:1px solid #ced9e7;border-radius:4px;background:#f8fafc;list-style-position:inside}.op-order-columns:not([open])>.op-order-column-options{display:none}.op-order-column-options{position:absolute;right:0;top:calc(100% + 4px);z-index:5;display:flex;gap:12px;padding:8px 10px;white-space:nowrap;border:1px solid #ced9e7;border-radius:4px;background:#fff}.op-order-column-options label{display:flex;align-items:center;gap:5px}.op-order-column-options input{width:16px;height:16px;accent-color:#3659cf}

/* Compact inquiry editor with immutable source allocations. */
.op-inquiry-draft-page .op-inquiry-draft-header{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 12px;padding:12px}
.op-inquiry-draft-header .op-field>span{width:70px;text-align:right}
@media(min-width:851px){.op-inquiry-draft-header .op-draft-rail-field>span:first-child{width:90px}}
.op-draft-region-status{grid-column:1/-1;color:#526274;font-size:12px}
.op-inquiry-draft-header .op-field input{height:30px;border-color:#d9d9d9;border-radius:4px}
.op-inquiry-draft-header .op-field select{box-sizing:border-box;width:100%;min-width:0;height:30px;padding:3px 6px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;color:#1d2129;font:inherit;text-overflow:ellipsis}
.op-inquiry-draft-header .op-field select:disabled{opacity:1;color:#1d2129;-webkit-text-fill-color:#1d2129;background:#fff}
.op-inquiry-draft-header .op-field :is(input,select):is([aria-label="询价来源"],[aria-label="报价模式"],[aria-label="账期"],[aria-label="付款方式"],[aria-label="收货地区"],[aria-label="申请下点"],[aria-label="申请结点"],[aria-label="申请加点"],[aria-label="轨道项目"],[aria-label="承兑免息"]){text-align:center;text-align-last:center}
.op-inquiry-draft-header .op-field select[aria-label="询价来源"]:is(.source-wangyi,.source-wangdan){background:var(--source-bg)!important;border-color:var(--source-border)!important;color:var(--source-text)!important;-webkit-text-fill-color:var(--source-text)!important}
.op-inquiry-draft-header .op-field input::placeholder{color:#687587;opacity:1}
.op-inquiry-draft-header .op-field :is(input,select):focus-visible{outline:2px solid var(--primary-color,#165dff);outline-offset:1px}
.op-draft-source-details{border-top:1px solid #e5e6eb;background:#fafbfd;font-size:13px}
.op-draft-source-details>summary{padding:7px 12px;cursor:pointer;color:#4e5969;min-height:32px}
.op-draft-source-details>summary:focus-visible{outline:2px solid #165dff;outline-offset:-2px}
.op-draft-source-details .op-document-sources{border:0;max-height:80px;padding:4px 12px}
.op-draft-source-context{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:4px 12px 10px}
.op-inquiry-draft-page .op-document-table td{height:34px}
.op-inquiry-draft-page .op-document-table th{background:#e9eef6;color:#29466b}
.op-inquiry-draft-page .op-document-table{min-width:1450px}
.op-inquiry-draft-page .op-document-shell>.op-content{padding:0;border-radius:4px}
.op-inquiry-draft-page .op-document-shell>.op-content>.op-table-scroll{border:0}
.op-inquiry-draft-page ::selection{background:#c9dcff;color:#173e75}
.op-inquiry-draft-header .op-region-search{position:relative}
.op-inquiry-draft-header .op-inquiry-company{position:relative}
.op-inquiry-draft-header .op-inquiry-company>input{padding-right:32px}
.op-inquiry-draft-header .op-inquiry-company>.op-inquiry-company-arrow{position:absolute;right:1px;bottom:1px;width:29px;height:28px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-left:1px solid #d9d9d9;background:#fff;color:#526274;cursor:pointer}
.op-inquiry-draft-header .op-inquiry-company>.op-inquiry-company-arrow:hover{background:var(--business-soft,#e5edf8);color:var(--business-accent,#315e91)}
.op-inquiry-draft-header .op-inquiry-company>.op-inquiry-company-arrow:focus-visible{outline:2px solid var(--primary-color,#165dff);outline-offset:-2px}
.op-inquiry-company-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.op-region-results{position:fixed;z-index:1500;max-height:240px;overflow:auto;background:#fff;border:1px solid var(--business-border,#cbd7e5);box-shadow:0 4px 12px #1b35501f;border-radius:4px;box-sizing:border-box}
.op-region-results[hidden]{display:none}
.op-region-results .op-region-option,.op-region-results .op-region-empty{padding:7px 10px;line-height:1.4;font-size:13px}
.op-region-results .op-region-option{cursor:pointer;color:#253c55}
.op-region-results .op-region-option:hover,.op-region-results .op-region-option[aria-selected=true]{background:var(--business-soft,#e5edf8);color:var(--business-accent,#315e91)}
.op-region-results .op-region-empty{color:#667085}
.op-inquiry-draft-page .op-table-scroll{scrollbar-color:#aebed2 #f2f5f9;scrollbar-width:thin}
@media(max-width:1300px){.op-inquiry-draft-page .op-inquiry-draft-header{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:851px) and (max-width:1300px){
 #mainWrap .tab-page .op-inquiry-draft-header.document-header-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #mainWrap .tab-page .op-inquiry-draft-header.document-header-grid .document-header-field{grid-row:auto!important;grid-column:span clamp(1,var(--header-span,1),4)!important}
}
@media(max-width:850px){
 #mainWrap .tab-page .op-inquiry-draft-header.document-header-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #mainWrap .tab-page .op-inquiry-draft-header.document-header-grid .document-header-field{grid-row:auto!important;grid-column:span clamp(1,var(--header-span,1),2)!important}
}
@media(max-width:850px){.op-inquiry-draft-page .op-inquiry-draft-header{grid-template-columns:repeat(2,minmax(0,1fr))}.op-draft-source-context{grid-template-columns:1fr}.op-inquiry-draft-page .op-document-header-card{max-height:42vh;overflow:auto}}
.op-order-columns>summary .op-icon{width:15px;height:15px;vertical-align:middle;margin-right:4px}
.op-draft-column-options{flex-wrap:wrap;width:290px;gap:10px 16px;box-shadow:0 5px 16px rgba(36,60,89,.12)}
.op-draft-column-options label{width:112px}
.op-draft-table th[data-draft-column=sequence]{padding:4px 6px}
.op-draft-header-columns{margin:0;display:flex;justify-content:center}
.op-draft-header-columns>summary{display:flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:24px;padding:0;border:0;border-radius:3px;background:transparent;color:#29466b;list-style:none}
.op-draft-header-columns>summary::-webkit-details-marker{display:none}
.op-draft-header-columns>summary:hover,.op-draft-header-columns[open]>summary{background:#d9e3f1}
.op-draft-header-columns>summary:focus-visible{outline:2px solid var(--primary-color,#165dff);outline-offset:1px}
.op-draft-header-columns>summary .op-icon{width:16px;height:16px;margin:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.op-draft-column-popup{position:fixed;right:auto;z-index:3100;box-sizing:border-box;overflow:auto;padding:12px;font:13px/1.5 Arial,"Microsoft YaHei",sans-serif;color:#29466b;background:#fff;white-space:normal;gap:8px 12px}
.op-draft-column-popup[hidden]{display:none!important}
.op-draft-column-popup label{box-sizing:border-box;flex:1 0 115px;min-width:0;width:auto;min-height:26px;gap:7px;font-weight:400;cursor:pointer}
.op-draft-column-popup input{flex:none;margin:0;cursor:pointer;accent-color:var(--primary-color,#3659cf)}
.op-draft-column-popup input:focus-visible{outline:2px solid var(--primary-color,#165dff);outline-offset:2px}
.op-shell .op-draft-table{table-layout:fixed;width:max-content;min-width:100%;font-size:13px}
.op-draft-table th{position:sticky;height:34px;padding:6px;background:#e9eef6;color:#29466b}
.op-draft-table td{height:34px;padding:3px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.op-draft-table .op-cell-input{min-width:0;height:28px;padding:2px 3px;border-radius:2px}
.op-draft-table .op-cell-input:focus-visible{outline:2px solid #165dff;outline-offset:-2px}
.op-draft-table .op-cell-input:disabled{color:#30435c;opacity:1;-webkit-text-fill-color:#30435c}
.op-draft-table .op-manual-row td{background:#fff}
.op-draft-table .op-manual-row:hover td{background:#f1f6ff}
.op-draft-table .op-row-action{min-height:22px;padding:1px 3px;border:0;background:transparent;gap:0}
.op-draft-table .op-row-action>span{display:none}
.op-draft-table .op-row-action .op-icon{width:14px;height:14px}
.op-column-resizer{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:3;touch-action:none}
.op-column-resizer:hover{background:#a8bddb}
.op-draft-table .op-source-split{gap:8px;justify-content:flex-start;font-size:12px;white-space:normal}
.op-inquiry-draft-page button:focus-visible{outline:2px solid #165dff;outline-offset:2px}
/* Mirror the visible detail columns in the fixed totals row. */
.op-inquiry-draft-page .op-document-shell>.op-draft-footer{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:0;height:auto;min-height:88px;overflow:hidden;border:1px solid #e5e6eb;border-radius:4px;background:#f2f3f5}
.op-draft-totals-scroll{flex:none;width:100%;min-height:36px;overflow:hidden;border-bottom:1px solid #e5e6eb}
.op-draft-totals-table{table-layout:fixed;border-collapse:separate;border-spacing:0;min-height:36px;min-width:100%;color:#1d2129;font-size:14px;font-weight:600;background:#f5f5f5}
.op-draft-totals-table td{height:36px;padding:7px 5px;border-right:1px solid #e5e6eb;vertical-align:middle;white-space:normal;overflow:hidden}.op-draft-totals-table [data-draft-column=sequence]{padding-left:0;padding-right:0;text-align:center;white-space:nowrap}
.op-draft-totals-table [data-draft-column=quantity],.op-draft-totals-table [data-draft-column=amount]{text-align:right}
.op-draft-unit-total{display:block;white-space:normal;overflow-wrap:anywhere;line-height:20px}
.op-inquiry-draft-page .op-document-shell>.op-feedback{flex:none;min-height:22px;padding:2px 8px;background:#fff;border-radius:3px}
.op-inquiry-draft-page .op-document-shell>.op-feedback:empty{display:none}
.op-draft-unit-list{max-height:80px;overflow:auto;scrollbar-width:thin;scrollbar-color:#aebed2 #f5f5f5}

/* Inquiry drafts reuse the inquiry toolbar's icon-over-label actions and stamp. */
.op-inquiry-draft-page .op-inquiry-draft-toolbar{margin:0;max-width:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin}
.op-inquiry-draft-toolbar>:not(.quotation-spacer){flex-shrink:0;white-space:nowrap}
.op-inquiry-draft-toolbar>.quotation-spacer{flex:1 0 0;min-width:8px}
.op-inquiry-draft-toolbar>.quotation-btn[hidden]{display:none!important}
.op-inquiry-draft-page .op-inquiry-draft-toolbar .quotation-btn{flex-direction:column;gap:3px;min-width:52px;padding:6px 8px;background:#fff;border:1px solid #d9d9d9;border-radius:4px;font:14px 'Microsoft YaHei','PingFang SC',sans-serif;color:#333}
.op-inquiry-draft-page .op-inquiry-draft-toolbar .quotation-btn:hover:not(:disabled){background:#f5f5f5;border-color:#999;color:#000}
.op-inquiry-draft-page .op-inquiry-draft-toolbar .quotation-btn:disabled{opacity:.4;cursor:not-allowed;pointer-events:none}
.op-inquiry-draft-page .op-inquiry-draft-toolbar .op-inquiry-import-price:disabled{opacity:1;pointer-events:auto}
.op-inquiry-draft-toolbar .quotation-btn .op-icon{width:18px;height:18px;stroke-width:1.5}
.op-inquiry-draft-toolbar .quotation-close-status{display:inline-flex;align-items:center;gap:0;flex:none}
.op-inquiry-draft-toolbar .op-document-info{min-width:276px;margin-left:0}
.op-inquiry-draft-toolbar .op-document-info .op-field{grid-template-columns:70px 200px;gap:6px}
.op-inquiry-draft-toolbar .op-document-info .op-field>span{text-align:right;font-size:14px}
.op-inquiry-draft-toolbar .op-document-info input{height:28px;text-align:right;font-size:14px}

/* Two-level totals follow quotation details: aligned column totals and a fixed summary band. */
.op-inquiry-draft-page .op-draft-summary{flex:none;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 20px;min-width:0;min-height:48px;padding:10px 16px;background:#f2f3f5;white-space:normal}
.op-draft-summary-count{flex:none;color:#4e5969;font-size:14px}
.op-inquiry-draft-page .op-draft-summary-totals{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 24px;min-width:0;margin-left:auto}
.op-inquiry-draft-page .op-draft-summary .quotation-total-row{display:flex;align-items:baseline;gap:8px;min-width:0;line-height:1.5;font-size:14px}
.op-draft-summary .label{flex:none;color:#4e5969}
.op-draft-summary .value{color:#1d2129;font-weight:600;overflow-wrap:anywhere}
.op-inquiry-draft-page .op-draft-summary .value.amount{color:var(--business-accent,#165dff);font-size:16px;white-space:nowrap}
.op-inquiry-draft-page .op-draft-summary .value.amount.is-incomplete{color:#86909c;font-size:14px}
@media(max-width:600px){.op-inquiry-draft-page .op-draft-summary{gap:6px 12px;padding:8px 12px}.op-inquiry-draft-page .op-draft-summary-totals{width:100%;justify-content:space-between;gap:6px 14px}.op-inquiry-draft-page .op-draft-summary .quotation-total-row{flex-wrap:wrap;gap:2px 6px}}

/* Sales-source lines are selected by their original identity, never by amount or display order. */
.op-sales-draft-picker .op-sales-draft-list>thead>tr>th:first-child{text-align:center}
.op-sales-draft-picker .op-sales-draft-list{min-width:0;table-layout:fixed}
.op-sales-draft-picker .op-sales-draft-expand{width:26px;min-height:26px;padding:3px;border-color:var(--business-border,#cbd8e8);background:#fff}
.op-sales-draft-picker .op-sales-draft-expand .op-icon{width:16px;height:16px}
.op-sales-draft-picker .op-sales-draft-selected>td{background:var(--business-soft,#edf4ff)}
.op-sales-draft-partial-count{display:block;margin-top:2px;color:#52677f;font-size:11px;line-height:16px;white-space:nowrap}
.op-sales-draft-picker .op-sales-draft-lines-row>td{padding:10px 12px;background:#f4f7fb;border-bottom:1px solid #cbd8e8}
.op-sales-draft-lines{min-width:0}
.op-sales-draft-lines-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;color:#30435c;font-size:13px;line-height:20px}
.op-sales-draft-lines-count{flex:none;color:var(--business-accent,#315e91);font-variant-numeric:tabular-nums}
.op-sales-draft-lines-scroll{width:100%;max-width:calc(100vw - 68px);overflow:auto;background:#fff;border:1px solid #cbd8e8;border-radius:4px;scrollbar-color:#9cafc8 #f3f6fb}
.op-sales-draft-picker .op-sales-draft-lines-table{min-width:0;table-layout:fixed;font-size:13px}
.op-sales-draft-picker .op-sales-draft-lines-table th{height:30px;padding:5px 7px;background:#e6edf6}
.op-sales-draft-picker .op-sales-draft-lines-table td{height:32px;padding:4px 7px;white-space:nowrap}
.op-sales-draft-picker .op-sales-draft-lines-table th:nth-child(3){min-width:0}
.op-sales-draft-lines-message{padding:10px 0;color:#52677f;line-height:1.6}
.op-sales-draft-lines-error{margin:0 0 8px;color:#a33c33;line-height:1.6;font-size:13px;white-space:normal;overflow-wrap:anywhere}
.op-sales-draft-picker .op-sales-draft-list .op-sales-draft-lines input[type=checkbox]{width:18px!important;height:18px!important}
@media(max-width:600px){.op-sales-draft-picker .op-sales-draft-lines-row>td{padding:8px}.op-sales-draft-lines-heading{max-width:calc(100vw - 60px);flex-wrap:wrap}.op-sales-draft-lines-scroll{max-width:calc(100vw - 52px)}}

/* Picker column groups own widths; cells remain compact without forcing header wraps. */
.op-sales-draft-picker .op-sales-draft-list>thead>tr>th,.op-sales-draft-picker .op-sales-draft-list>.op-sales-draft-body>tr>td,.op-sales-draft-picker .op-sales-draft-row>td,.op-sales-draft-picker .op-sales-draft-lines-table :is(th,td){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op-sales-draft-picker .op-sales-draft-list>thead>tr>th,.op-sales-draft-picker .op-sales-draft-lines-table th{text-align:center}
.op-sales-draft-picker .op-sales-draft-lines-row>td{overflow:visible}
.op-draft-seed-row .op-cell-input::placeholder{color:#86909c}

/* 报价明细同款合计及低压短线提示 */
.op-inquiry-draft-page .op-document-shell>.op-draft-footer{height:38px;min-height:38px}
.op-draft-summary{display:none!important}
.op-draft-totals-table{font-size:14px;font-weight:600;background:var(--surface-muted,#f5f5f5)}
.op-draft-totals-table td{padding:8px;border-color:var(--border-color,#e5e6eb);white-space:nowrap}
.op-draft-totals-table [data-draft-column=sequence]{text-align:center}
.op-draft-table td:is([data-draft-column=unit_price],[data-draft-column=contract_unit_price]),.op-draft-table td:is([data-draft-column=unit_price],[data-draft-column=contract_unit_price]) input,.op-draft-totals-table :is([data-draft-column=contract_amount],[data-draft-column=profit]){text-align:right}
.op-draft-table td.op-short-length,.op-draft-table input.op-short-length{color:#c62828!important;-webkit-text-fill-color:#c62828;font-weight:700!important}

/* 询价草稿数量右对齐，电压与单位居中，含编辑输入框。 */
.op-draft-table td[data-draft-column=quantity],.op-draft-table td[data-draft-column=quantity] input{text-align:right}
.op-draft-table td[data-draft-column=voltage],.op-draft-table td[data-draft-column=unit],.op-draft-table td[data-draft-column=voltage] input,.op-draft-table td[data-draft-column=unit] input{text-align:center}

.op-draft-table td[data-inquiry-price-difference],
.op-draft-table td[data-inquiry-price-difference] .op-cell-input {
  background-color: #fff1f0 !important;
}
.op-draft-table td[data-inquiry-price-difference] { cursor: help; }
.op-inquiry-price-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  max-width: min(360px, calc(100vw - 16px));
  padding: 8px 11px;
  border: 1px solid #e4b9b5;
  border-radius: 6px;
  background: #fffafa;
  color: #781b1b;
  box-shadow: 0 4px 12px rgb(51 20 20 / 16%);
  font: 13px/1.5 'Microsoft YaHei','PingFang SC',sans-serif;
  white-space: pre-line;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.op-inquiry-price-preview { box-sizing: border-box; inset: 0; margin: auto; width: min(1416px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid #cbd5e1; border-radius: 12px; color: #1e293b; background: #fff; overflow: auto; }
.op-inquiry-price-preview::backdrop { background: rgb(15 23 42 / 44%); }
.op-inquiry-price-preview h3, .op-inquiry-price-preview h4 { margin: 0; }
.op-inquiry-price-preview p { margin: 8px 0; }
.op-inquiry-price-summary { padding: 8px 10px; border-radius: 6px; background: #ecfdf5; color: #065f46; font-variant-numeric: tabular-nums; }
.op-inquiry-price-unbalanced { background: #fff7ed; color: #9a3412; }
.op-inquiry-price-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.op-inquiry-price-side h4 { padding: 0 0 6px; }
.op-inquiry-price-scroll { max-height: min(67.2vh, 600px); overflow: auto; border: 1px solid #dbe4ed; border-radius: 6px; }
.op-inquiry-price-preview table { width: 100%; min-width: 490px; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.op-inquiry-price-preview th, .op-inquiry-price-preview td { border-bottom: 1px solid #e2e8f0; padding: 6px 7px; text-align: left; white-space: nowrap; }
.op-inquiry-price-preview th { position: sticky; top: 0; z-index: 1; background: #f1f5f9; }
.op-inquiry-price-preview tr:last-child td { border-bottom: 0; }
.op-inquiry-price-preview :is(th, td):nth-child(6) { text-align: right; }
.op-inquiry-price-difference { background: #fef2f2; color: #991b1b; }
.op-inquiry-price-quantity-match { background: #dcfce7; }
.op-inquiry-price-error { color: #991b1b; }
.op-inquiry-price-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
@media (max-width: 900px) {
  .op-inquiry-price-tables { grid-template-columns: minmax(0, 1fr); }
  .op-inquiry-price-scroll { max-height: 38.4vh; }
}

.op-draft-table td[data-draft-column=profit_rate].op-low-profit-rate {
  background-color: #fef2f2;
  color: #991b1b;
  -webkit-text-fill-color: #991b1b;
  font-weight: 700;
}

.op-inquiry-draft-page .op-draft-table td.op-inquiry-detail-missing,
.op-inquiry-draft-page .op-draft-table td.op-inquiry-detail-missing .op-cell-input {
  background: #ffedd3;
  color: #60360e;
}
.op-inquiry-missing-dialog ul {
  max-height: 50vh;
  overflow-y: auto;
  margin: 0 0 16px;
  padding-inline-start: 22px;
}
.op-inquiry-missing-dialog li { margin-block: 5px; }

[data-review-controller="suzhou"] :is([data-ed-action="submit"],[data-action="submit"])[hidden] {
  display: none !important;
}
