/* Order center and procurement share the same WHD and cancellation row palette. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) {
  --pc-whd-surface:#f1faf3;
  --pc-whd-hover:#e1f4e6;
  --pc-whd-selected:#d8f0df;
  --pc-whd-selected-hover:#cbead4;
  --pc-whd-text:#178236;
  --pc-whd-badge:#e4f5e9;
  --pc-whd-border:#b9e1c4;
 }
 html[data-erp-mode="dark"] body.erp-system-ui :is(#procurement #procurement-app,#orders) {
  --pc-whd-surface:#1e2d24;
  --pc-whd-hover:#25382b;
  --pc-whd-selected:#2a4232;
  --pc-whd-selected-hover:#304c38;
  --pc-whd-text:#9be4ae;
  --pc-whd-badge:#264631;
  --pc-whd-border:#3c704c;
 }
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-whd:not(.pc-row-cancelled),
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-whd:not(.pc-row-cancelled)>td {
  background:var(--pc-whd-surface)!important;
 }
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-whd:not(.pc-row-cancelled):is(:hover,:focus-within),
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-whd:not(.pc-row-cancelled):is(:hover,:focus-within)>td {
  background:var(--pc-whd-hover)!important;
 }
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-whd:not(.pc-row-cancelled).is-selected,
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-whd:not(.pc-row-cancelled).is-selected>td {
  background:var(--pc-whd-selected)!important;
 }
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-whd:not(.pc-row-cancelled).is-selected:is(:hover,:focus-within),
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-whd:not(.pc-row-cancelled).is-selected:is(:hover,:focus-within)>td {
  background:var(--pc-whd-selected-hover)!important;
 }
 html body.erp-system-ui #procurement #procurement-app .pc-order-badges {
  display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:4px;min-width:0;
 }
 html body.erp-system-ui #procurement #procurement-app .pc-order-status-whd {
  gap:4px;color:var(--pc-whd-text)!important;-webkit-text-fill-color:currentColor!important;
  background:var(--pc-whd-badge)!important;border:1px solid var(--pc-whd-border)!important;
 }
 html body.erp-system-ui #procurement #procurement-app .pc-order-status-whd>svg {
  display:block;flex:0 0 13px;width:13px;height:13px;
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
 }
}

/* 4.3.6: ERP selectors, shared link colors and procurement cost/weight. */
#procurement #procurement-app,.pc-dialog{--pc-accent:var(--theme-accent,#16a2b5);--pc-soft:var(--theme-accent-soft,#e5f6f8);--pc-link:#1677ff;font:400 12px/1.6 -apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif;color:#6d7b8d}
#procurement #procurement-app *,.pc-dialog *{box-sizing:border-box}
#procurement #procurement-app .pc-shell{margin:14px;padding:14px;background:#fff;border:1px solid #e6ecf3;border-radius:10px}
#procurement #procurement-app input,#procurement #procurement-app select,.pc-dialog input,.pc-dialog select,.pc-dialog textarea{font:inherit;border:1px solid #dbe3ec;border-radius:5px;background:#fff;padding:6px 9px;min-width:0;color:inherit}
#procurement #procurement-app input:focus-visible,#procurement #procurement-app select:focus-visible,.pc-dialog input:focus-visible,.pc-dialog textarea:focus-visible{outline:1px solid var(--pc-accent);outline-offset:1px}
#procurement #procurement-app input[type=checkbox]{accent-color:var(--pc-accent);width:14px;height:14px;min-height:0;margin:0;vertical-align:middle}
#procurement #procurement-app button,.pc-dialog button{font:inherit;font-weight:400;padding:5px 12px;min-height:30px;border:1px solid #dbe3ec;border-radius:5px;cursor:pointer;background:#fff;color:inherit;white-space:nowrap}
#procurement #procurement-app button:hover,.pc-dialog button:hover{color:var(--pc-accent);border-color:var(--pc-accent)}
#procurement #procurement-app button:focus-visible,.pc-dialog button:focus-visible{outline:2px solid var(--pc-accent);outline-offset:2px}
#procurement #procurement-app button:disabled,.pc-dialog button:disabled{opacity:.45;cursor:default}
#procurement #procurement-app .pc-primary,.pc-dialog .pc-primary{color:#fff;background:var(--pc-accent);border-color:var(--pc-accent)}
#procurement #procurement-app [data-pc-filters]{display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #e0e7ef;border-radius:8px;padding:14px}
#procurement #procurement-app .pc-filter-row{display:grid;gap:12px 18px;align-items:center;min-width:0}
#procurement #procurement-app .pc-filter-main{grid-template-columns:1.15fr repeat(3,minmax(0,1fr))}
#procurement #procurement-app .pc-filter-status{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#procurement #procurement-app .pc-filter-detail{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto auto}
#procurement #procurement-app .pc-field,#procurement #procurement-app .pc-date-filter{display:flex;align-items:center;gap:8px;min-width:0;margin:0;font-weight:400;color:var(--erp-text-2,#475467);font-size:12px}
#procurement #procurement-app .pc-field>span,#procurement #procurement-app .pc-date-filter>span{flex:none;white-space:nowrap}
body.erp-system-ui #procurement #procurement-app .pc-field input,body.erp-system-ui #procurement #procurement-app select,body.erp-system-ui .pc-dialog input,body.erp-system-ui .pc-dialog textarea{font-weight:400!important;color:#6d7b8d!important;font-size:12px!important}
body.erp-system-ui #procurement #procurement-app .pc-field input,body.erp-system-ui #procurement #procurement-app .pc-field select{width:100%!important;min-width:0!important;height:32px!important;min-height:32px!important;flex:1;padding:5px 8px!important;box-shadow:none!important;border-radius:5px!important;border:1px solid #dbe3ec!important}
body.erp-system-ui #procurement #procurement-app input::placeholder,body.erp-system-ui .pc-dialog input::placeholder{color:#a1acba!important;font-weight:400!important}
#procurement #procurement-app .pc-filter-actions{display:flex;align-items:center;gap:8px}
#procurement #procurement-app .pc-filter-actions button{min-height:32px}
#procurement #procurement-app .pc-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 0}
#procurement #procurement-app .pc-toolbar span{color:#8796a8;margin-left:4px}
#procurement #procurement-app [data-pc-message]{color:#b16634;margin:0 0 10px;line-height:1.5}
#procurement #procurement-app [data-pc-message]:empty{display:none}
#procurement #procurement-app .pc-table-wrap{border:1px solid #e0e7ef;border-radius:7px;overflow:auto;background:#fff}
#procurement #procurement-app table{border-collapse:separate;border-spacing:0;width:100%;min-width:1396px;table-layout:fixed;color:#65758a;font-weight:400;margin:0}
#procurement #procurement-app .pc-col-check{width:36px}#procurement #procurement-app .pc-col-shop{width:100px}#procurement #procurement-app .pc-col-product{width:330px}#procurement #procurement-app .pc-col-no{width:150px}#procurement #procurement-app .pc-col-platform{width:100px}#procurement #procurement-app .pc-col-date{width:155px}#procurement #procurement-app .pc-col-link{width:100px}#procurement #procurement-app .pc-col-cost{width:150px}#procurement #procurement-app .pc-col-actions{width:125px}
body.erp-system-ui #procurement #procurement-app table th,body.erp-system-ui #procurement #procurement-app table td{padding:10px!important;border:0!important;border-right:1px solid #e7edf4!important;border-bottom:1px solid #e7edf4!important;vertical-align:middle!important;overflow-wrap:anywhere;font-size:12px!important;font-weight:400!important;text-align:center!important}
body.erp-system-ui #procurement #procurement-app table thead th{background:#f9fbfd!important;color:#7c8a9b!important;height:35px;padding-top:7px!important;padding-bottom:7px!important}
body.erp-system-ui #procurement #procurement-app table th.pc-head-shop,body.erp-system-ui #procurement #procurement-app table th.pc-head-product,body.erp-system-ui #procurement #procurement-app table td.pc-shop,body.erp-system-ui #procurement #procurement-app table td.pc-product-cell{text-align:left!important}
body.erp-system-ui #procurement #procurement-app table tbody tr:nth-child(odd)>td{background:#fff!important}
body.erp-system-ui #procurement #procurement-app table tbody tr:nth-child(even)>td{background:#f8fbff!important}
body.erp-system-ui #procurement #procurement-app table tbody tr:hover>td{background:var(--pc-soft)!important}
body.erp-system-ui #procurement #procurement-app table tr>th:last-child,body.erp-system-ui #procurement #procurement-app table tr>td:last-child{border-right:0!important}
body.erp-system-ui #procurement #procurement-app table tbody tr:last-child>td{border-bottom:0!important}
#procurement #procurement-app .pc-head-actions,#procurement #procurement-app .pc-actions-cell{position:sticky;right:0;z-index:1;box-shadow:-3px 0 7px #42648408}
#procurement #procurement-app td small{display:block;color:#9aa7b7;font-size:11px;margin-top:4px}
#procurement #procurement-app .pc-shop{color:#79889a}
#procurement #procurement-app .pc-product{display:flex;align-items:center;gap:12px;margin:3px 0;min-height:116px}
#procurement #procurement-app .pc-product+.pc-product{border-top:1px solid #e8edf3;padding-top:12px;margin-top:12px}
#procurement #procurement-app .pc-product-image{width:70px;flex:none;text-align:center}
#procurement #procurement-app .pc-product img,#procurement #procurement-app .pc-img-empty{width:70px;height:70px;object-fit:contain;border-radius:5px;background:#f5f8fb;display:block}
#procurement #procurement-app .pc-img-empty{display:grid;place-items:center;color:#b2becc;font-size:10px}
#procurement #procurement-app .pc-product-lines{flex:1;line-height:1.8;min-width:0;color:#8b98a8;font-size:11px}
#procurement #procurement-app .pc-product-lines>div{overflow-wrap:anywhere}
#procurement #procurement-app .pc-product-price{color:var(--erp-order-price,#f59e0b);font:400 16px/1.5 Arial,"Microsoft YaHei",sans-serif;margin-bottom:4px}
#procurement #procurement-app .pc-product-price>span{font-size:14px}
#procurement #procurement-app .pc-product-name{display:flex;align-items:baseline;min-width:0}
#procurement #procurement-app .pc-product-name>span:first-child{flex:none}
#procurement #procurement-app .pc-product-name>a,#procurement #procurement-app .pc-product-name>span:last-child{flex:1;min-width:0;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;line-height:1.65}
body.erp-system-ui #procurement #procurement-app .pc-copy-value{display:inline;border:0!important;background:transparent!important;box-shadow:none!important;font:inherit!important;font-weight:400!important;color:var(--pc-link)!important;min-height:0!important;padding:0!important;max-width:100%;text-align:inherit;white-space:normal;overflow-wrap:anywhere}
#procurement #procurement-app .pc-copy-value:hover{text-decoration:underline}
#procurement #procurement-app a{color:var(--theme-accent-deep,#148fa2);font-weight:400;text-decoration:none}
#procurement #procurement-app a:hover{text-decoration:underline}
#procurement #procurement-app .pc-product-name a{color:var(--pc-link)}
#procurement #procurement-app .pc-platform{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:400;line-height:1.7;overflow-wrap:anywhere}
.pc-platform-orange{color:#b97835;background:#fff2e2}.pc-platform-rose{color:#b86f80;background:#fff0f4}.pc-platform-amber{color:#a88936;background:#fff7df}.pc-platform-red{color:#bf7070;background:#fff0ed}.pc-platform-blue{color:#648abb;background:#edf4ff}.pc-platform-purple{color:#9277b6;background:#f5efff}.pc-platform-teal{color:#60998f;background:#edf8f5}
#procurement #procurement-app .pc-row-actions{display:flex;flex-direction:column;align-items:center;gap:8px}
#procurement #procurement-app .pc-row-actions button{width:92px;min-height:28px;padding:3px 8px;font-size:12px}
#procurement #procurement-app .pc-edit-button{color:var(--pc-accent);border-color:var(--pc-accent);background:var(--pc-soft)}

/* Both purchase actions keep one ERP size, with a consistent local SVG. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-row-actions>button.pc-row-action:not([hidden]) {
  box-sizing:border-box!important;display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:center!important;gap:5px!important;flex:0 0 auto!important;
  width:104px!important;min-width:104px!important;max-width:100%!important;height:34px!important;min-height:34px!important;max-height:34px!important;
  margin:0!important;padding:0 8px!important;border:1px solid var(--ui-border)!important;border-radius:6px!important;
  background:var(--ui-surface)!important;color:var(--ui-accent)!important;
  font-family:inherit!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;
  white-space:nowrap!important;text-align:center!important;box-shadow:none!important;transform:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-row-actions>button.pc-row-action:hover:not(:disabled) {background:var(--ui-accent-soft)!important;border-color:var(--ui-accent)!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-row-actions>button.pc-row-action.pc-edit-button {background:var(--ui-accent)!important;border-color:var(--ui-accent)!important;color:#fff!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-row-actions>button.pc-row-action.pc-edit-button:hover:not(:disabled) {background:var(--ui-accent-hover)!important;border-color:var(--ui-accent-hover)!important;color:#fff!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-row-actions>button.pc-row-action>svg.erp-status-icon {
  display:block!important;flex:0 0 15px!important;width:15px!important;min-width:15px!important;height:15px!important;margin:0!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;color:inherit!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-row-actions>button.pc-row-action:disabled {opacity:.5!important;cursor:not-allowed!important}
}
#procurement #procurement-app .pc-date-value{font-variant-numeric:tabular-nums;font-size:11px}
#procurement #procurement-app .pc-muted{color:#a1adbb}.pc-good{color:#5f9f92!important}.pc-error{color:#c74950}
body.erp-system-ui #procurement #procurement-app table td.pc-empty{text-align:center!important;padding:60px!important;color:#9aa8b9}
#procurement #procurement-app .pc-shell>footer,.pc-dialog footer{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 0 0}
#procurement #procurement-app .pc-shell>footer>span:first-child{margin-right:auto;color:#93a1b2}
.pc-dialog{width:min(760px,95vw);max-height:90vh;padding:22px;border:1px solid #dce4eb;border-radius:10px;background:#fff}
.pc-dialog::backdrop{background:#18304870}.pc-dialog header{display:flex;align-items:center;justify-content:space-between;font-size:16px;margin-bottom:18px;color:#637488}
.pc-dialog header b{font-weight:500;overflow-wrap:anywhere}.pc-dialog header button{border:0;font-size:22px;padding:0 8px}
.pc-dialog .pc-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.pc-dialog .pc-edit-grid label,.pc-dialog .pc-readonly-field{display:flex;flex-direction:column;gap:7px;font-weight:400}.pc-dialog .pc-tracking-grid{grid-template-columns:1fr}
.pc-dialog .pc-span{grid-column:1/-1}.pc-dialog textarea{width:100%;min-height:90px;resize:vertical}.pc-dialog footer{justify-content:flex-end}
.pc-dialog .pc-help{font-size:12px;color:#8190a2}.pc-dialog [data-pc-modal-message]{color:#b16634;white-space:pre-wrap}
.pc-dialog .pc-log-list{max-height:60vh;overflow:auto}.pc-dialog .pc-log-list article{border-bottom:1px solid #e4ebf1;padding:12px 0}.pc-dialog .pc-log-list span{float:right;color:#8393a5;font-size:11px}
.pc-dialog [data-pc-import-results]{max-height:230px;overflow:auto}
@media(max-width:1280px){#procurement #procurement-app .pc-filter-status{grid-template-columns:repeat(3,minmax(0,1fr))}#procurement #procurement-app .pc-filter-detail{grid-template-columns:repeat(3,minmax(0,1fr))}#procurement #procurement-app .pc-date-filter{grid-column:span 2}}
@media(max-width:850px){#procurement #procurement-app .pc-filter-main,#procurement #procurement-app .pc-filter-status,#procurement #procurement-app .pc-filter-detail{grid-template-columns:repeat(2,minmax(0,1fr))}#procurement #procurement-app .pc-shell{margin:8px;padding:10px}#procurement #procurement-app [data-pc-filters]{padding:10px}#procurement #procurement-app .pc-filter-actions{justify-content:flex-end}.pc-dialog .pc-edit-grid{grid-template-columns:1fr}}

.pc-dialog .pc-readonly-field output{display:block;min-height:33px;padding:6px 9px;border:1px solid #e3e9f0;border-radius:5px;background:#f7f9fc;color:#8b98a8;font-weight:400}

/* All values use the same ERP product-link blue, including text-fill overrides. */
body.erp-system-ui #procurement #procurement-app .pc-copy-value,
body.erp-system-ui #procurement #procurement-app .pc-product-name>a,
body.erp-system-ui #procurement #procurement-app .pc-product-name>span:last-child,
body.erp-system-ui #procurement #procurement-app .pc-purchase-link,
body.erp-system-ui .pc-dialog input[name=sourceUrl]{color:var(--pc-link)!important;-webkit-text-fill-color:var(--pc-link)!important}
#procurement #procurement-app .pc-cost-lines{display:inline-flex;flex-direction:column;gap:5px;text-align:left;font-variant-numeric:tabular-nums}
#procurement #procurement-app .pc-cost-lines>div{display:flex;align-items:baseline;gap:2px}
#procurement #procurement-app .pc-cost-lines>div>span:first-child{color:#93a1b2;min-width:48px}
/* Sizing only: button, menu, arrow and selected-state styling come from ERP. */
body.erp-system-ui #procurement #procurement-app .pc-field>.erp-select-host{flex:1!important;width:0!important;min-width:0!important;height:32px!important}
body.erp-system-ui #procurement #procurement-app .erp-select-host>select{opacity:0!important;pointer-events:none!important;margin:0!important}

body.erp-system-ui #procurement #procurement-app .pc-photo-button{display:block;width:70px;height:70px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;cursor:zoom-in;border-radius:5px}
#procurement #procurement-app .pc-date-range,#procurement #procurement-app .pc-date-range input{cursor:pointer}

body.erp-system-ui #procurement #procurement-app .pc-product-price,body.erp-system-ui #procurement #procurement-app .pc-product-price>span{color:var(--erp-order-price,#f59e0b)!important;-webkit-text-fill-color:currentColor!important}

.pc-dialog input[data-pc-replace-value]{font-variant-numeric:tabular-nums}

/* 4.7.8: aligned procurement filters, without the three ageing fields. */
@layer erpComponents {
 html body.erp-system-ui #procurement #procurement-app .pc-weight-edit{padding:0!important;min-height:24px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ui-accent-hover)!important;box-shadow:none!important;text-decoration:underline;text-underline-offset:3px}
 html body.erp-system-ui #procurement #procurement-app [data-pc-filters]{padding:16px!important}
 html body.erp-system-ui #procurement #procurement-app .pc-filter-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px 20px!important;align-items:center!important;min-width:0!important}
 html body.erp-system-ui #procurement #procurement-app .pc-filter-grid .pc-date-filter{grid-column:span 2}
 html body.erp-system-ui #procurement #procurement-app .pc-filter-grid .pc-filter-actions{justify-content:flex-end;gap:8px}
 @media(min-width:641px){
  html body.erp-system-ui #procurement #procurement-app .pc-filter-grid .pc-field>span:not(.erp-select-host),
  html body.erp-system-ui #procurement #procurement-app .pc-filter-grid .pc-date-filter>span{flex:0 0 66px!important;white-space:nowrap!important;text-align:left!important}
 }
 @media(max-width:1100px){html body.erp-system-ui #procurement #procurement-app .pc-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pc-filter-grid .pc-filter-actions{grid-column:1/-1}}
 @media(max-width:640px){html body.erp-system-ui #procurement #procurement-app .pc-filter-grid{gap:12px!important}html body.erp-system-ui #procurement #procurement-app .pc-filter-grid .pc-date-filter{grid-column:1/-1}}
 @media(max-width:380px){html body.erp-system-ui #procurement #procurement-app .pc-filter-grid{grid-template-columns:minmax(0,1fr)!important}}
}

/* Keep the complete offer ID in the copy payload while truncating its display. */
body.erp-system-ui #procurement #procurement-app .pc-offer-line{display:flex!important;align-items:baseline!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important}
body.erp-system-ui #procurement #procurement-app .pc-offer-line>span{flex:none!important}
body.erp-system-ui #procurement #procurement-app .pc-offer-line>.pc-copy-value{display:block!important;flex:1!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important}

/* 6.1：采购管理保留取消订单用于追溯，但明确标红且禁止继续采购编辑。 */
#procurement #procurement-app .pc-order-status{display:inline-flex;align-items:center;width:max-content;padding:2px 7px;border-radius:5px;font-size:11px;line-height:1.5;font-weight:500}
#procurement #procurement-app .pc-order-status-cancelled{color:#d14343;background:#fff0f1;border:1px solid #ffd4d8}

/* 6.1.8: Cancellation is a row state, independent of the refusal badge.
   Paint cells too, so stripes and the sticky action column cannot cover it. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) {
  --pc-cancel-surface:#fff5f5;
  --pc-cancel-hover:#ffeded;
  --pc-cancel-selected:#ffe6e6;
  --pc-cancel-selected-hover:#ffdfdf;
  --pc-cancel-text:#b64750;
  --pc-cancel-badge:#ffe8eb;
  --pc-cancel-border:#f2cdd2;
 }
 html[data-erp-mode="dark"] body.erp-system-ui :is(#procurement #procurement-app,#orders) {
  --pc-cancel-surface:#2d2224;
  --pc-cancel-hover:#37282b;
  --pc-cancel-selected:#422d31;
  --pc-cancel-selected-hover:#4b3237;
  --pc-cancel-text:#f4a2aa;
  --pc-cancel-badge:#492f35;
  --pc-cancel-border:#6b414a;
 }
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-cancelled,
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-cancelled>td {
  background:var(--pc-cancel-surface)!important;
 }
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-cancelled:is(:hover,:focus-within),
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-cancelled:is(:hover,:focus-within)>td {
  background:var(--pc-cancel-hover)!important;
 }
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-cancelled.is-selected,
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-cancelled.is-selected>td {
  background:var(--pc-cancel-selected)!important;
 }
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-cancelled.is-selected:is(:hover,:focus-within),
 html body.erp-system-ui :is(#procurement #procurement-app,#orders) table>tbody>tr.pc-row-cancelled.is-selected:is(:hover,:focus-within)>td {
  background:var(--pc-cancel-selected-hover)!important;
 }
 html body.erp-system-ui #procurement #procurement-app .pc-row-cancelled .pc-order-status-cancelled {
  color:var(--pc-cancel-text)!important;
  -webkit-text-fill-color:currentColor!important;
  background:var(--pc-cancel-badge)!important;
  border-color:var(--pc-cancel-border)!important;
 }
}


/* Procurement owns its rail: old grid/stacked toolbar rules never size these rows. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app form.pc-single-line-v66 {
  box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(136px,240px) 88px 106px 106px 284px max-content max-content!important;
  grid-auto-flow:row!important;align-items:center!important;justify-content:stretch!important;gap:6px!important;position:relative!important;
  width:100%!important;min-width:0!important;max-width:100%!important;min-height:56px!important;margin:0 0 12px!important;padding:10px!important;
  border:1px solid var(--ui-border-soft,#edf1f6)!important;border-radius:8px!important;background:var(--ui-surface,#fff)!important;box-shadow:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>[hidden] {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>:is(.pc-field,.pc-date-filter) {box-sizing:border-box!important;display:block!important;position:static!important;flex:none!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;gap:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>.pc-field[hidden] {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>* {grid-column:auto!important;grid-row:auto!important;order:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>.pc-field>span:not(:has(select,button)),
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>.pc-date-filter>span {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .erp-clear-field {box-sizing:border-box!important;display:block!important;flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important;max-height:36px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .pc-keyword input.erp-list-search {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important;padding:0 22px 0 8px!important;font-size:12px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .erp-input-clear {position:absolute!important;right:2px!important;top:50%!important;transform:translateY(-50%)!important;width:22px!important;min-width:22px!important;height:24px!important;min-height:24px!important;margin:0!important;padding:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .erp-select-host {box-sizing:border-box!important;display:block!important;position:relative!important;flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .erp-select-button {box-sizing:border-box!important;position:absolute!important;inset:0!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0 20px 0 8px!important;font-size:12px!important;gap:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .erp-select-label {flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;line-height:1.4!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>:is(.pc-filter-actions,.pc-toolbar) {display:flex!important;position:static!important;align-items:center!important;justify-content:flex-start!important;flex:none!important;flex-wrap:nowrap!important;width:auto!important;min-width:0!important;max-width:100%!important;gap:6px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>:is(.pc-filter-actions,.pc-toolbar)>button {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;gap:4px!important;height:36px!important;min-height:36px!important;width:auto!important;min-width:50px!important;margin:0!important;padding:0 6px!important;font-size:12px!important;line-height:1.4!important;white-space:nowrap!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 [data-pc-selected] {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .pc-date-range {box-sizing:border-box!important;display:flex!important;align-items:center!important;flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0 4px!important;gap:2px!important;overflow:hidden!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .pc-date-range input {box-sizing:border-box!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;height:34px!important;min-height:34px!important;padding:0 2px!important;font:400 12px/1.4 Arial,"Microsoft YaHei",sans-serif!important;text-align:center!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66 .pc-date-range button {box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 22px!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0!important}
 @media(max-width:1360px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app form.pc-single-line-v66 {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>.pc-keyword {flex:1 1 220px!important;min-width:180px!important;max-width:320px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>.pc-field:not(.pc-keyword) {flex:0 0 106px!important;width:106px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>.pc-date-filter {flex:0 0 284px!important;width:284px!important}
 }
 @media(max-width:600px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-single-line-v66>.pc-keyword {flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%!important}
 }
}
