.wuxi-product-chain-correction-page {
  height:100%; padding:8px!important; box-sizing:border-box; overflow:hidden;
  font:14px 'Microsoft YaHei','PingFang SC',Arial,sans-serif; color:#30435c;
}
.wpcc-shell { display:flex; flex-direction:column; height:100%; border:1px solid #ccd9e8; border-radius:6px; background:#fff; overflow:hidden; }
.wpcc-shell * { box-sizing:border-box; }
.wpcc-shell [hidden] { display:none!important; }
.wpcc-shell button,.wpcc-shell input,.wpcc-shell select { font:inherit; color:inherit; }
.wpcc-shell input { caret-color:#2856b8; }
.wpcc-shell ::selection { background:#d6e3ff; color:#243d67; }
.wpcc-shell button:focus-visible,.wpcc-shell input:focus-visible,.wpcc-shell summary:focus-visible { outline:2px solid #2856b8; outline-offset:2px; }
.wpcc-icon { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.wpcc-button { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:32px; padding:5px 10px; border:1px solid #c5d3e3; border-radius:4px; background:#fff; cursor:pointer; white-space:nowrap; }
.wpcc-button:hover { background:#edf3fc; border-color:#91aaca; }
.wpcc-button:active { background:#e2ebf9; }
.wpcc-button:disabled { opacity:.5; cursor:default; }
.wpcc-primary { background:#2856b8!important; color:#fff!important; border-color:#2856b8!important; }
.wpcc-primary:hover:not(:disabled) { background:#204899!important; }
.wpcc-number { font-family:Arial,sans-serif!important; font-variant-numeric:tabular-nums; }
.wpcc-right { text-align:right!important; }
.wpcc-center { text-align:center!important; }
.wpcc-muted { font-size:12px; color:#52657b; }
.wpcc-error { color:#a33630!important; }
.wpcc-toolbar { display:flex; align-items:center; gap:8px; flex-shrink:0; padding:10px 16px; min-height:54px; border-bottom:1px solid #d4dfec; white-space:nowrap; }
.wpcc-toolbar>strong { font-size:15px; font-weight:600; }
.wpcc-source { color:#52657b; }
.wpcc-badge { padding:3px 7px; border-radius:3px; background:#edf3ff; color:#3e5c89; font-size:12px; }
.wpcc-spacer { flex:1; min-width:8px; }
.wpcc-modes { display:flex; margin-left:8px; }
.wpcc-modes .wpcc-button { border-radius:0; }
.wpcc-modes .wpcc-button:first-child { border-radius:4px 0 0 4px; }
.wpcc-modes .wpcc-button:last-child { border-radius:0 4px 4px 0; margin-left:-1px; }
.wpcc-modes [aria-pressed=true] { position:relative; border-color:#5275c7; background:#e9f0fd; color:#244d9f; }
.wpcc-workspace { position:relative; display:flex; flex:1; min-height:0; overflow:hidden; }
.wpcc-grid { display:flex; flex-direction:column; flex:1; min-width:0; overflow:auto; }
.wpcc-table { width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; min-width:800px; }
.wpcc-table th { position:sticky; top:0; z-index:2; background:#e7edf6; color:#29466b; font-weight:500; text-align:left; padding:8px 6px; border-bottom:1px solid #becde0; }
.wpcc-table td { border-bottom:1px solid #d8e1ed; border-right:1px solid #e4eaf2; padding:7px 6px; vertical-align:middle; }
.wpcc-table th:first-child { width:42px; }
.wpcc-table th:nth-child(2) { width:55px; }
.wpcc-table th:nth-child(4),.wpcc-table th:nth-child(5) { width:100px; }
.wpcc-table td:last-child { border-right:0; }
.wpcc-shell input[type=checkbox] { width:18px; height:18px; margin:0; accent-color:#2856b8; cursor:pointer; flex-shrink:0; }
.wpcc-shell input[type=checkbox]:disabled { cursor:default; }
.wpcc-table input[type=checkbox] { display:block; margin:0 auto; }
.wpcc-product { line-height:1.5; overflow-wrap:anywhere; }
.wpcc-table small { display:block; margin-top:3px; }
.wpcc-table td:last-child>.wpcc-button { margin-top:5px; min-height:27px; font-size:12px; }
.wpcc-footer { display:grid; grid-template-columns:auto minmax(0,1fr) auto; flex-shrink:0; min-height:58px; gap:16px; align-items:center; padding:10px 16px; border-top:1px solid #ccd9e8; background:#f5f8fc; }
.wpcc-footer>span:first-child { white-space:nowrap; font-size:12px; color:#3f536c; }
.wpcc-feedback { flex:1; min-width:0; overflow-wrap:anywhere; font-size:12px; line-height:1.5; color:#52657b; }
.wpcc-unavailable { display:flex; flex-direction:column; gap:3px; flex-shrink:0; padding:8px 12px; border-bottom:1px solid #ecd3b8; background:#fff8eb; color:#805021; line-height:1.5; overflow-wrap:anywhere; }
.wpcc-unavailable span:last-child { font-size:12px; }
.wpcc-loading { padding:20px; background:#fff; }
.wpcc-busy .wpcc-workspace { pointer-events:none; }
/* The task has one source navigator and one allocation editor. */
.wpcc-mode-note,.wpcc-split-note { flex-shrink:0; padding:8px 12px; border-bottom:1px solid #d4dfec; background:#f6f8fc; color:#52657b; font-size:12px; line-height:1.6; }
.wpcc-split-note details { display:inline; }
.wpcc-split-note summary { display:inline-block; cursor:pointer; color:#2856b8; margin-left:8px; }
.wpcc-source-nav { display:flex; flex-direction:column; width:288px; min-width:240px; flex-shrink:0; min-height:0; border-right:1px solid #d4dfec; background:#f6f8fc; }
.wpcc-source-header { display:flex; justify-content:space-between; align-items:baseline; gap:8px; padding:14px 12px 8px; }
.wpcc-source-header strong { font-size:14px; font-weight:600; }
.wpcc-source-header small,.wpcc-source-header>span { color:#52657b; font-size:12px; }
.wpcc-source-search { width:calc(100% - 24px); min-height:34px; flex-shrink:0; margin:0 12px 12px; padding:6px 9px; border:1px solid #b8c9de; border-radius:4px; background:#fff; }
.wpcc-source-search::placeholder { color:#62738b; }
.wpcc-source-select-all { display:flex; align-items:center; gap:8px; padding:0 16px 12px; color:#52657b; font-size:12px; }
.wpcc-source-list { flex:1; min-height:0; overflow:auto; padding:0 8px 12px; scrollbar-width:thin; scrollbar-color:#a4b7ce #eef3fa; }
.wpcc-source-item { display:grid; grid-template-columns:24px minmax(0,1fr); gap:6px; align-items:start; padding:10px 8px; border:1px solid transparent; border-bottom-color:#dae3ef; border-radius:3px; }
.wpcc-source-item>input { margin-top:3px!important; }
.wpcc-source-item:hover { background:#edf2f9; }
.wpcc-source-item.is-active { border-color:#8da8d4; background:#e8f0fc; }
.wpcc-source-focus { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; gap:4px 8px; min-width:0; width:100%; padding:0; border:0; background:none; cursor:pointer; text-align:left; line-height:1.45; }
.wpcc-source-product { grid-column:1/-1; display:flex; flex-direction:column; gap:3px; }
.wpcc-source-code { color:#52657b; font-size:12px; }
.wpcc-source-focus .wpcc-product { font-size:13px; line-height:1.5; }
.wpcc-source-focus .wpcc-muted { font-size:12px; }
.wpcc-source-quantity { color:#52657b; font-size:12px; }
.wpcc-source-status { text-align:right; color:#52657b; font-size:12px; }
.wpcc-source-status.is-complete { color:#267343; }
.wpcc-source-status.is-error { color:#a33630; }
.wpcc-source-item.is-blocked { background:transparent; }
.wpcc-source-item.is-blocked.is-active { background:#eef2f7; border-color:#aab9cc; }
.wpcc-source-item.is-blocked .wpcc-source-focus { color:#52657b; }
.wpcc-blocked-sources { margin-top:12px; flex-shrink:0; min-height:0; max-height:50%; overflow:auto; scrollbar-width:thin; scrollbar-color:#a4b7ce #eef3fa; }
.wpcc-blocked-sources>.wpcc-source-list { overflow:visible; }
.wpcc-blocked-sources>summary { position:sticky; top:0; z-index:1; background:#f6f8fc; padding:9px 8px; color:#52657b; font-size:12px; cursor:pointer; }
.wpcc-source-empty { padding:16px 8px; color:#52657b; font-size:12px; line-height:1.6; }
.wpcc-allocation-pane { background:#fff; }
.wpcc-allocation-header { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px 24px; padding:18px 20px; border-bottom:1px solid #dbe4f0; flex-shrink:0; }
.wpcc-allocation-header .wpcc-product { font-size:15px; font-weight:600; color:#243d5c; }
.wpcc-allocation-header small { display:block; margin-top:4px; font-size:12px; color:#52657b; }
.wpcc-allocation-meta { display:flex; flex-wrap:wrap; gap:6px 24px; margin-left:0; color:#52657b; font-size:12px; line-height:1.6; }
.wpcc-allocation-meta strong { display:block; font-size:15px; font-weight:500; color:#30435c; }
.wpcc-allocation-body { flex:1; min-height:0; overflow:auto; padding:0 20px 18px; }
.wpcc-allocation-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:13px; }
.wpcc-allocation-table th { position:sticky; top:0; z-index:2; padding:9px 10px; text-align:left; font-weight:500; color:#3e5878; background:#eef3fa; border-bottom:1px solid #bdcde1; }
.wpcc-allocation-table th:nth-child(2) { width:160px; text-align:right; }
.wpcc-allocation-table th:nth-child(3) { width:64px; }
.wpcc-allocation-table th:nth-child(4) { width:82px; }
.wpcc-allocation-table td { padding:12px 10px; vertical-align:middle; border-bottom:1px solid #e0e7f0; }
.wpcc-allocation-table td:nth-child(2) { text-align:right; }
.wpcc-allocation-table td:nth-child(3) { color:#52657b; }
.wpcc-allocation-table small { display:block; margin-top:2px; }
.wpcc-retained-row { background:#f8fafd; }
.wpcc-retained-label { display:inline-block; margin-top:4px; color:#52657b; font-size:12px; }
.wpcc-quantity { width:132px; max-width:100%; height:34px; min-width:0; padding:5px 9px; border:1px solid #aebfd4; border-radius:4px; background:#fff; text-align:right; }
.wpcc-quantity[aria-invalid=true] { border-color:#b64c43; background:#fff8f7; }
.wpcc-quantity:disabled { background:#f0f3f7; color:#52657b; }
.wpcc-target-row .wpcc-button { padding:4px 7px; min-height:30px; font-size:12px; }
.wpcc-allocation-footer { display:flex; flex-direction:column; gap:8px; margin-top:auto; padding:14px 20px; background:#fff; border-top:1px solid #dbe4f0; flex-shrink:0; }
.wpcc-allocation-footer>.wpcc-button { align-self:flex-start; }
.wpcc-balance-bar { display:flex; flex-wrap:wrap; align-items:baseline; gap:10px 32px; padding-top:0; border-top:0; color:#52657b; font-size:12px; line-height:1.6; }
.wpcc-balance-bar>div,.wpcc-balance-item { display:flex; align-items:baseline; gap:10px; }
.wpcc-balance-bar strong { color:#30435c; font-size:16px; font-weight:600; }
.wpcc-balance-bar.is-complete .wpcc-balance-item:last-child strong { color:#267343; }
.wpcc-balance-bar.is-error .wpcc-balance-item:last-child strong { color:#a33630; }
.wpcc-split-summary { color:#52657b; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.wpcc-editor-blocked { padding:24px; line-height:1.7; font-size:13px; }
.wpcc-editor-blocked>strong { display:block; margin-bottom:10px; }
.wpcc-blocked-message { margin:0 0 10px; }
.wpcc-editor-empty { padding:24px; color:#52657b; }
.wpcc-split-reason,.wpcc-allocation-empty { margin:0; padding:20px 24px; color:#52657b; line-height:1.7; font-size:13px; }
/* Search opens temporarily instead of shrinking the editor into a third column. */
.wpcc-side { width:340px; flex-shrink:0; display:flex; flex-direction:column; gap:12px; padding:14px; border-left:1px solid #c5d3e3; background:#f8fafd; }
.wpcc-split-workspace>.wpcc-side { position:absolute; top:0; right:0; bottom:0; z-index:5; width:min(380px,calc(100% - 40px)); box-shadow:-6px 3px 18px #20395820; }
.wpcc-side-title,.wpcc-search { display:flex; align-items:center; gap:8px; }
.wpcc-side-title strong { flex:1; font-size:14px; font-weight:600; }
.wpcc-side-title .wpcc-button { border:0; background:none; }
.wpcc-search input { height:34px; min-width:0; flex:1; padding:5px 8px; border:1px solid #aebfd4; border-radius:4px; }
.wpcc-results { display:flex; flex-direction:column; gap:8px; min-height:0; overflow:auto; }
.wpcc-candidate { display:flex; flex-direction:column; text-align:left; gap:5px; padding:10px; border:1px solid #c5d3e3; border-radius:4px; background:#fff; cursor:pointer; line-height:1.5; }
.wpcc-candidate:hover { background:#eaf1fc; border-color:#8da8d4; }
.wpcc-candidate small { color:#52657b; }
.wpcc-candidate:disabled { color:#63748b; opacity:.6; }
/* Group identity appears once; allocation values get their own aligned rows. */
.wpcc-plan-top,.wpcc-plan-controls { display:flex; align-items:center; gap:10px; flex-shrink:0; padding:12px; border-bottom:1px solid #d5e0ee; }
.wpcc-plan-top strong { flex:1; font-size:14px; }
.wpcc-preview-note { flex-shrink:0; padding:9px 16px; border-bottom:1px solid #d5e0ee; background:#f6f8fc; color:#52657b; font-size:12px; line-height:1.6; }
.wpcc-plan-controls { position:sticky; bottom:0; z-index:3; background:#fff; border-top:1px solid #d5e0ee; border-bottom:0; margin-top:auto; }
.wpcc-plan-controls>.wpcc-muted { line-height:1.6; white-space:normal; }
.wpcc-plan-table { min-width:660px; }
.wpcc-plan-table th:nth-child(2) { width:95px; }
.wpcc-plan-table th:nth-child(3) { width:190px; }
.wpcc-plan-table th:nth-child(4) { width:85px; }
.wpcc-plan-table th:nth-child(5),.wpcc-plan-table th:nth-child(6) { width:auto; }
.wpcc-plan-table th:nth-child(7) { width:90px; }
.wpcc-flat-plan { min-width:660px; table-layout:fixed; }
.wpcc-flat-plan th:first-child { width:auto; }
.wpcc-flat-plan th:nth-child(2) { width:130px; }
.wpcc-flat-plan th:nth-child(3) { width:140px; text-align:right; }
.wpcc-flat-plan th:nth-child(4) { width:72px; }
.wpcc-flat-plan th:nth-child(5) { width:160px; text-align:right; }
.wpcc-flat-plan th { padding:10px 16px; }
.wpcc-flat-plan td { padding:12px 16px; border-right:0; }
.wpcc-flat-plan .wpcc-plan-allocation { display:table-row; }
.wpcc-flat-plan .wpcc-plan-allocation td:nth-child(3),.wpcc-flat-plan .wpcc-plan-allocation td:nth-child(5) { text-align:right; white-space:nowrap; }
.wpcc-flat-plan .wpcc-plan-allocation td:nth-child(2),.wpcc-flat-plan .wpcc-plan-allocation td:nth-child(4) { color:#52657b; }
.wpcc-plan-group td { padding:14px 16px!important; background:#f0f4fa; border-top:1px solid #bdcde1; border-bottom:1px solid #d4dfec; }
.wpcc-plan-group-line { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; line-height:1.6; }
.wpcc-plan-group-line input { margin:0!important; }
.wpcc-plan-group-line strong { font-size:14px; }
.wpcc-plan-group-meta { margin-left:auto; color:#52657b; font-size:12px; }
.wpcc-plan-total td { background:#fafbfd; color:#3f536c; font-size:12px; border-bottom:1px solid #bdcde1; }
.wpcc-plan-total strong { font-size:14px; color:#243d5c; }
.wpcc-flat-plan .wpcc-allocation-total { padding:0; text-align:right; font-weight:600; }
.wpcc-shell .wpcc-flat-plan th>.wpcc-plan-select-all { display:flex; align-items:center; justify-content:flex-start; gap:8px; margin:0; text-align:left; }
.wpcc-flat-plan .wpcc-plan-select-all input[type=checkbox] { display:inline-block; margin:0; vertical-align:middle; }
/* A common editing canvas keeps whole replacement and quantity split familiar. */
.wpcc-progress { white-space:nowrap; color:#3f536c; font-size:12px; line-height:1.6; }
.wpcc-footer-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.wpcc-footer-actions>.wpcc-primary { min-width:138px; }
.wpcc-mode-note { padding:8px 16px; }
.wpcc-source-pager { display:flex; justify-content:flex-end; gap:6px; }
.wpcc-source-pager .wpcc-button { min-height:30px; padding:4px 8px; font-size:12px; }
.wpcc-allocation-heading { min-width:0; }
.wpcc-allocation-meta>div { white-space:nowrap; }
.wpcc-allocation-actions { display:flex; gap:8px; align-items:center; padding-top:12px; }
.wpcc-whole-editor { padding:0 20px 18px; overflow:auto; flex:1; min-height:0; }
.wpcc-replacement-table { width:100%; min-width:570px; border-collapse:collapse; table-layout:fixed; font-size:13px; }
.wpcc-replacement-table th { position:sticky; top:0; z-index:2; padding:10px; text-align:left; font-weight:500; color:#3e5878; background:#eef3fa; border-bottom:1px solid #bdcde1; }
.wpcc-replacement-table td { padding:16px 10px; vertical-align:middle; border-bottom:1px solid #dce5ef; line-height:1.6; overflow-wrap:anywhere; }
.wpcc-replacement-table th:first-child { width:70px; }
.wpcc-replacement-table th:nth-child(3) { width:112px; }
.wpcc-replacement-table th:nth-child(4) { width:100px; text-align:right; }
.wpcc-replacement-table th:nth-child(5) { width:52px; }
.wpcc-replacement-table th:nth-child(6) { width:126px; }
.wpcc-replacement-table td:nth-child(4) { text-align:right; white-space:nowrap; }
.wpcc-replacement-table td:nth-child(3),.wpcc-replacement-table td:nth-child(5) { color:#52657b; }
.wpcc-replacement-original { background:#f8fafd; }
.wpcc-replacement-role { color:#52657b; white-space:nowrap; font-size:12px; }
.wpcc-replacement-target .wpcc-replacement-role { color:#2856b8; }
.wpcc-replacement-table .wpcc-button { font-size:12px; padding:5px 8px; }
.wpcc-replacement-empty { color:#52657b; line-height:1.6; }
.wpcc-replacement-note { color:#52657b; font-size:12px; line-height:1.7; margin:14px 0 0; max-width:70ch; }
.wpcc-replacement-actions { display:flex; align-items:center; }
@media(max-width:1250px) {
  .wpcc-source-nav { width:270px; min-width:240px; }
  .wpcc-allocation-header { grid-template-columns:minmax(0,1fr) auto; padding:16px; }
  .wpcc-source-pager { grid-column:1/-1; justify-self:end; }
  .wpcc-whole-editor { padding:0 16px 14px; }
  .wpcc-replacement-table { min-width:530px; }
  .wpcc-replacement-table th:first-child { width:60px; }
  .wpcc-replacement-table th:nth-child(3) { width:92px; }
  .wpcc-replacement-table th:nth-child(4) { width:74px; }
  .wpcc-replacement-table th:nth-child(5) { width:44px; }
  .wpcc-replacement-table th:nth-child(6) { width:116px; }
  .wpcc-allocation-body { padding:0 16px 14px; }
  .wpcc-allocation-footer { padding:14px 16px; }
  .wpcc-toolbar { gap:6px; }
  .wpcc-modes { margin-left:2px; }
  .wpcc-allocation-table th:nth-child(2) { width:130px; }
  .wpcc-allocation-table th:nth-child(3) { width:52px; }
  .wpcc-allocation-table th:nth-child(4) { width:74px; }
}
@media(max-width:950px) {
  .wpcc-toolbar { flex-wrap:wrap; white-space:normal; }
  .wpcc-toolbar .wpcc-spacer { display:none; }
  .wpcc-toolbar>strong { flex-basis:100%; }
  .wpcc-source-nav { width:230px; min-width:210px; }
  .wpcc-allocation-header .wpcc-product { font-size:14px; }
  .wpcc-allocation-meta { margin-left:0; width:auto; }
  .wpcc-allocation-header { gap:10px 16px; }
  .wpcc-flat-plan { min-width:600px; }
  .wpcc-flat-plan th:nth-child(2) { width:110px; }
  .wpcc-flat-plan th:nth-child(3) { width:100px; }
  .wpcc-flat-plan th:nth-child(4) { width:52px; }
  .wpcc-flat-plan th:nth-child(5) { width:126px; }
  .wpcc-plan-controls { flex-wrap:wrap; }
  .wpcc-plan-controls>.wpcc-muted { flex-basis:100%; }
}
@media(max-width:760px) {
  .wpcc-split-workspace { flex-direction:column; overflow:auto; }
  .wpcc-source-nav { width:100%; min-height:155px; max-height:220px; flex:0 0 auto; border-right:0; border-bottom:1px solid #d4dfec; }
  .wpcc-source-header { padding-top:10px; }
  .wpcc-source-search { margin-bottom:6px; }
  .wpcc-allocation-pane { flex:1 0 360px; overflow:visible; }
  .wpcc-allocation-header { grid-template-columns:minmax(0,1fr); padding:14px 12px; }
  .wpcc-source-pager { grid-column:1; justify-self:start; }
  .wpcc-whole-editor { overflow:auto; max-width:100%; padding:0 12px 14px; }
  .wpcc-allocation-heading,.wpcc-allocation-meta { grid-column:1; }
  .wpcc-allocation-body { overflow:auto; max-width:100%; min-height:240px; flex:0 0 auto; }
  .wpcc-allocation-table { min-width:420px; }
  .wpcc-toolbar { gap:6px; padding:10px 12px; }
  .wpcc-toolbar .wpcc-button { padding:4px 7px; min-height:30px; font-size:12px; }
  .wpcc-allocation-table th:nth-child(2) { width:100px; }
  .wpcc-allocation-table th:nth-child(3) { width:45px; }
  .wpcc-allocation-table th:nth-child(4) { width:60px; }
  .wpcc-allocation-table td,.wpcc-allocation-table th { padding-left:6px; padding-right:6px; }
  .wpcc-allocation-table .wpcc-button { padding:4px; }
  .wpcc-allocation-table .wpcc-button .wpcc-icon { display:none; }
  .wpcc-quantity { width:88px; }
  .wpcc-balance-bar { gap:8px 18px; }
  .wpcc-balance-bar>div { flex-direction:column; gap:0; }
  .wpcc-footer { grid-template-columns:minmax(0,1fr) auto; gap:6px 8px; padding:9px 12px; }
  .wpcc-progress { grid-column:1; grid-row:1; white-space:normal; }
  .wpcc-footer-actions { grid-column:2; grid-row:1; }
  .wpcc-footer .wpcc-feedback { grid-column:1/-1; grid-row:2; }
  .wpcc-footer-actions>.wpcc-primary { min-width:0; }
  .wpcc-side { position:absolute; right:0; top:0; bottom:0; z-index:5; width:min(340px,100%); box-shadow:-6px 3px 18px #20395820; }
  .wpcc-split-workspace>.wpcc-side { position:fixed; top:90px; right:8px; bottom:12px; width:min(380px,calc(100vw - 16px)); }
}
@media(prefers-reduced-motion:no-preference) {
  .wpcc-button,.wpcc-source-item,.wpcc-candidate { transition:background-color .15s ease-out,border-color .15s ease-out; }
}
