@layer erpComponents {
html body.erp-system-ui .wh-page{padding:0!important;background:transparent!important}
html body.erp-system-ui .wh-shell{margin:14px;min-width:0;color:var(--ui-text);font:400 12px/1.6 "Microsoft YaHei",sans-serif}
html body.erp-system-ui .wh-heading{display:flex;align-items:center;gap:11px;margin:0 0 14px}
html body.erp-system-ui .wh-heading h2{font-size:19px!important;line-height:1.5!important;font-weight:600!important;margin:0!important;color:var(--ui-text)!important}
html body.erp-system-ui .wh-heading-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:var(--ui-accent-soft);color:var(--ui-accent)}
.wh-heading-icon svg,.wh-dialog .erp-v5-heading-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html body.erp-system-ui .wh-card{padding:16px;background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:12px;box-shadow:0 2px 10px #243f6605;min-width:0}
html body.erp-system-ui #warehouse-scan,
html body.erp-system-ui #warehouse-scan .wh-shell,
html body.erp-system-ui #warehouse-scan .wh-card{width:100%!important;max-width:none!important}
html body.erp-system-ui #warehouse-scan .wh-shell{margin:0!important}
html body.erp-system-ui :is(.wh-page,.wh-dialog) *{box-sizing:border-box}
html body.erp-system-ui :is(.wh-page,.wh-dialog) [hidden]{display:none!important}
html body.erp-system-ui :is(.wh-page,.wh-dialog) :is(input,select,textarea){font:400 12px/1.5 "Microsoft YaHei",sans-serif!important;color:var(--ui-field-text)!important;min-width:0;max-width:100%;height:36px;padding:0 10px!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius)!important;background:var(--ui-field-surface)!important;box-shadow:none!important}
html body.erp-system-ui :is(.wh-page,.wh-dialog) input::placeholder{color:var(--ui-placeholder)!important}
html body.erp-system-ui :is(.wh-page,.wh-dialog) :is(input,select,textarea):focus{outline:none!important;border-color:var(--ui-accent)!important;box-shadow:var(--ui-focus-ring)!important}
html body.erp-system-ui .wh-page input[type=checkbox]{width:15px!important;height:15px!important;padding:0!important;min-height:0!important;accent-color:var(--ui-accent);vertical-align:middle}
html body.erp-system-ui :is(.wh-page,.wh-dialog) button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:0 12px;border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius)!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;font:400 12px/1.5 "Microsoft YaHei",sans-serif!important;cursor:pointer;white-space:nowrap;box-shadow:none!important;transition:border-color .15s,background .15s,color .15s}
html body.erp-system-ui :is(.wh-page,.wh-dialog) button:hover{border-color:var(--ui-accent)!important;color:var(--ui-accent)!important}
html body.erp-system-ui :is(.wh-page,.wh-dialog) button:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px}
html body.erp-system-ui :is(.wh-page,.wh-dialog) button:disabled{opacity:.45!important;cursor:not-allowed!important}
html body.erp-system-ui :is(.wh-page,.wh-dialog) button.wh-primary{background:var(--ui-accent)!important;border-color:var(--ui-accent)!important;color:#fff!important}
html body.erp-system-ui :is(.wh-page,.wh-dialog) button.wh-primary:hover{background:var(--ui-accent-hover)!important;border-color:var(--ui-accent-hover)!important}
html body.erp-system-ui .wh-scan-tabs{display:flex;justify-content:center;gap:24px;border-bottom:1px solid var(--ui-border-soft);margin:0 auto 14px;max-width:1080px}
html body.erp-system-ui .wh-scan-tabs button{border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;padding:10px 5px!important;min-height:41px!important}
html body.erp-system-ui .wh-scan-tabs button.active{color:var(--ui-accent)!important;border-bottom-color:var(--ui-accent)!important}
html body.erp-system-ui .wh-scan-search{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:0 auto 14px;padding:17px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);max-width:1080px}
html body.erp-system-ui .wh-scan-search label{display:flex;flex:0 1 440px;min-width:0;max-width:100%;gap:9px;align-items:center;color:var(--ui-label)}
html body.erp-system-ui .wh-scan-search [data-wh-code-label]{flex:0 0 auto;white-space:nowrap}
html body.erp-system-ui .wh-scan-search input{width:100%!important}
html body.erp-system-ui .wh-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:13px 16px;margin:0;padding:0 0 16px;border-bottom:1px solid var(--ui-border-soft)}
html body.erp-system-ui .wh-filters>label{display:flex;flex:1 1 170px;max-width:280px;min-width:0;flex-direction:column;gap:6px;color:var(--ui-label)}
html body.erp-system-ui .wh-filters>label>:is(input,select){width:100%!important}
html body.erp-system-ui .wh-filter-actions{display:flex;gap:8px;margin-left:auto}
html body.erp-system-ui .wh-range-field{display:flex;flex:1.7 1 290px;max-width:375px;min-width:0;flex-direction:column;gap:6px;color:var(--ui-label)}
html body.erp-system-ui .wh-date-range{display:flex;align-items:center;gap:6px;padding:0 7px;height:36px;border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius);background:var(--ui-field-surface)}
html body.erp-system-ui .wh-date-range input{width:0!important;flex:1;min-width:0;padding:0 3px!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:center;cursor:pointer}
html body.erp-system-ui .wh-date-range button{flex:0 0 23px;min-width:23px!important;min-height:26px!important;padding:0!important;border:0!important;background:transparent!important}
html body.erp-system-ui .wh-date-range svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
html body.erp-system-ui .wh-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:13px 0}
html body.erp-system-ui .wh-toolbar>[data-wh-refresh]{margin-left:auto}
html body.erp-system-ui .wh-record-count{color:var(--ui-label);font-size:13px!important}
html body.erp-system-ui .wh-record-count strong{font-size:22px!important;font-weight:600!important;color:var(--ui-accent)!important;margin:0 4px;font-variant-numeric:tabular-nums}
html body.erp-system-ui .wh-table-wrap{width:100%;overflow:auto;border:1px solid var(--ui-border);border-radius:9px}
html body.erp-system-ui .wh-table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;margin:0!important;border:0!important;min-width:1150px!important}
html body.erp-system-ui .wh-table :is(th,td){border:0!important;border-bottom:1px solid var(--ui-border-soft)!important;padding:12px 10px!important;vertical-align:middle!important;text-align:left!important;font:400 12px/1.6 "Microsoft YaHei",sans-serif!important;overflow-wrap:anywhere;color:var(--ui-text)!important}
html body.erp-system-ui .wh-table th{background:#f6f8fc!important;font-weight:500!important;color:var(--ui-table-heading)!important;white-space:nowrap}
html body.erp-system-ui .wh-table td{background:#fff!important}
html body.erp-system-ui .wh-table tbody>tr:hover>td{background:color-mix(in srgb,var(--ui-accent) 3%,white)!important}
html body.erp-system-ui .wh-table tr:last-child td{border-bottom:0!important}
html body.erp-system-ui #warehouse-scan .wh-card{container:warehouse-scan / inline-size}
html body.erp-system-ui #warehouse-scan .wh-table-scan{min-width:0!important;max-width:100%!important}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(1){width:2.6%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(2){width:8.1%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(3){width:10.5%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(4){width:max(144px,8.9%)}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(5){width:5.1%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(6){width:5%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(7){width:16%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(8){width:3.3%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(9),
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(10){width:7.5%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(11){width:5.3%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(12){width:11.3%}
html body.erp-system-ui #warehouse-scan .wh-table-scan th:nth-child(13){width:8.9%}
html body.erp-system-ui #warehouse-scan .wh-table-scan :is(th,td){padding:10px 7px!important;min-width:0;overflow:hidden}
html body.erp-system-ui #warehouse-scan .wh-table-scan :is(th,.wh-date){white-space:normal!important;overflow-wrap:normal!important}
html body.erp-system-ui #warehouse-scan .wh-table-scan :is(th,td):first-child{padding-left:4px!important;padding-right:4px!important;text-align:center!important}
html body.erp-system-ui #warehouse-scan .wh-table-scan :is(.wh-copy,.wh-text-button){display:inline-block!important;max-width:100%;min-width:0!important;vertical-align:middle;text-overflow:ellipsis}
html body.erp-system-ui #warehouse-scan .wh-table-scan .wh-product-lines .wh-copy{max-width:calc(100% - 44px)}
html body.erp-system-ui #warehouse-scan .wh-table-scan .wh-row-actions{flex-wrap:wrap;gap:6px}
html body.erp-system-ui #warehouse-scan .wh-table-scan .wh-row-actions button{min-width:0!important;max-width:100%;padding:0 7px!important;white-space:normal!important;overflow-wrap:anywhere}
html body.erp-system-ui #warehouse-scan .wh-table-scan :is(.wh-photo,.wh-no-photo){width:min(58px,100%)!important;height:auto!important;min-height:0!important;aspect-ratio:1}
html body.erp-system-ui #warehouse-scan .wh-scan-product{display:flex;align-items:center;min-width:0;max-width:100%;min-height:64px}
html body.erp-system-ui #warehouse-scan .wh-scan-product>.wh-product-lines{width:100%}
html body.erp-system-ui #warehouse-scan .wh-scan-product>:is(.wh-photo,.wh-no-photo){box-sizing:border-box!important;flex:0 1 58px}
html body.erp-system-ui #warehouse-scan .wh-delivery-cell{min-width:0}
html body.erp-system-ui #warehouse-scan .delivery-service-card{display:flex;flex-direction:column;gap:5px;min-width:0;padding:8px;border-radius:7px;background:color-mix(in srgb,var(--ui-accent-soft) 42%,var(--ui-surface))}
html body.erp-system-ui #warehouse-scan .delivery-service-label{display:flex;align-items:center;gap:5px;color:var(--ui-label);font-size:10px;line-height:1.4;white-space:nowrap}
html body.erp-system-ui #warehouse-scan .delivery-service-label svg{flex:0 0 auto;color:var(--ui-accent)}
html body.erp-system-ui #warehouse-scan .delivery-service-name{min-width:0;color:var(--ui-text);font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.erp-system-ui #warehouse-scan .wh-pagination label{flex:none;white-space:nowrap}
html body.erp-system-ui .wh-table-records{min-width:1558px!important}html body.erp-system-ui .wh-table-records th:nth-child(1){width:155px}html body.erp-system-ui .wh-table-records th:nth-child(3),html body.erp-system-ui .wh-table-records th:nth-child(10){width:90px}
html body.erp-system-ui #warehouse-records .wh-table-records th:nth-child(4){width:68px!important}
html body.erp-system-ui #warehouse-records .wh-record-photos :is(.wh-photo,.wh-no-photo){box-sizing:border-box!important;width:42px!important;height:42px!important;min-height:42px!important;margin:4px auto!important}
html body.erp-system-ui #warehouse-records .wh-record-photos .wh-photo{padding:2px!important}
html body.erp-system-ui #warehouse-records .wh-record-product{display:flex;align-items:center;min-width:0;height:42px;margin:4px 0}
html body.erp-system-ui #warehouse-records .wh-record-product .wh-copy{display:block!important;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.erp-system-ui #warehouse-records .wh-record-photos .wh-no-photo{font-size:9px!important;text-align:center!important}
html body.erp-system-ui .wh-table-inventory th:nth-child(1){width:11%}html body.erp-system-ui .wh-table-inventory th:nth-child(2){width:6%}html body.erp-system-ui .wh-table-inventory th:nth-child(3){width:28%}html body.erp-system-ui .wh-table-inventory th:nth-child(4),html body.erp-system-ui .wh-table-inventory th:nth-child(5),html body.erp-system-ui .wh-table-inventory th:nth-child(6),html body.erp-system-ui .wh-table-inventory th:nth-child(7){width:9%}html body.erp-system-ui .wh-table-inventory th:nth-child(8){width:10%}html body.erp-system-ui .wh-table-inventory th:last-child{width:9%}
html body.erp-system-ui .wh-inventory-cost{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
html body.erp-system-ui .wh-inventory-cost small,html body.erp-system-ui .wh-cost-help{font-size:11px!important;line-height:1.5}
html body.erp-system-ui .wh-table .wh-shop{color:#1677ff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.erp-system-ui .wh-table .wh-date{font-size:11.5px!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
html body.erp-system-ui .wh-page .wh-copy,html body.erp-system-ui .wh-page .wh-text-button{display:inline!important;min-height:0!important;border:0!important;background:transparent!important;color:#1677ff!important;padding:0!important;line-height:1.6!important;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle}
html body.erp-system-ui .wh-page .wh-weight-button,html body.erp-system-ui .wh-page .wh-weight-value{display:inline-flex!important;align-items:center!important;min-height:0!important;border:0!important;background:transparent!important;color:#1677ff!important;padding:0!important;line-height:1.6!important;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;font-variant-numeric:tabular-nums}
html body.erp-system-ui .wh-page .wh-weight-button{cursor:pointer!important}
html body.erp-system-ui .wh-page .wh-weight-button:hover{color:var(--ui-accent-hover)!important;text-decoration:underline}
html body.erp-system-ui .wh-page :is(.wh-weight-button,.wh-weight-value).is-empty{color:#c97f24!important}
html body.erp-system-ui .wh-page .wh-photo{display:flex;width:58px!important;height:58px!important;min-height:58px!important;padding:2px!important;background:#fff!important;border-radius:7px!important;cursor:zoom-in;overflow:hidden}
html body.erp-system-ui .wh-photo img{width:100%;height:100%;object-fit:contain}
html body.erp-system-ui .wh-no-photo{display:grid;place-items:center;width:58px;height:58px;border:1px dashed var(--ui-border);border-radius:7px;font-size:10px;color:#98a4b4}
/* Procurement model notes belong to the current order and stay fully readable. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#warehouse-scan #warehouse-scan-table,dialog.wh-receipt-dialog) .wh-source-remark {
  box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  margin:8px 0 0!important;padding:7px 9px!important;border:1px solid color-mix(in srgb,var(--ui-accent) 20%,var(--ui-border))!important;
  border-radius:8px!important;background:var(--ui-accent-soft)!important;color:var(--ui-text)!important;
  text-align:left!important;white-space:normal!important;overflow:visible!important;
 }
 html body.erp-system-ui :is(#warehouse-scan #warehouse-scan-table,dialog.wh-receipt-dialog) .wh-source-remark>span {
  display:block!important;margin:0 0 3px!important;color:var(--ui-accent-hover)!important;font-size:11px!important;font-weight:400!important;line-height:1.5!important;
 }
 html body.erp-system-ui :is(#warehouse-scan #warehouse-scan-table,dialog.wh-receipt-dialog) .wh-source-remark>strong {
  display:block!important;min-width:0!important;max-width:100%!important;margin:0!important;color:var(--ui-text)!important;
  font-size:13px!important;font-weight:600!important;line-height:1.65!important;white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;word-break:break-word!important;overflow:visible!important;text-overflow:clip!important;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table > :is(thead,tbody) > tr > :is(th,td):is(:nth-child(n+2):nth-child(-n+4),:nth-child(n+8):nth-child(-n+13)) {
  text-align:center!important;vertical-align:middle!important;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table :is(.wh-delivery-cell,.pp-package-value) {
  text-align:center!important;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table :is(.delivery-service-label,.wh-row-actions) {
  justify-content:center!important;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table .wh-scan-purchase-summary {
  display:flex;flex-direction:column;align-items:center;gap:3px;
 }
 /* Match the two scan-note widths and let long values wrap in their own column. */
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table .wh-scan-note {
  display:grid!important;grid-template-columns:max-content minmax(0,1fr);
  align-items:stretch;width:min(128px,100%)!important;min-width:0!important;min-height:26px;
  margin:5px 0 0!important;padding:0!important;overflow:hidden!important;border-radius:6px!important;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table td>[data-wh-source-remark] {
  margin:4px auto 0!important;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table .wh-source-remark>span {
  display:flex!important;align-items:center;justify-content:center;padding:3px 6px;margin:0!important;
  border-inline-end:1px solid color-mix(in srgb,var(--ui-accent) 24%,var(--ui-border));
  line-height:1.4!important;font-weight:600!important;white-space:nowrap;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table .wh-scan-note .order-note-card-head {
  justify-content:center;gap:3px;padding:3px 5px;font-size:11px;white-space:nowrap;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table .wh-scan-note .order-note-card-head .erp-status-icon {
  flex-basis:11px;width:11px;height:11px;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table .wh-scan-note>:is(strong,.order-note-card-text) {
  align-self:center;text-align:center!important;padding:3px 6px;font-size:12px!important;font-weight:700!important;
  line-height:1.4!important;word-break:normal!important;overflow-wrap:anywhere;white-space:pre-wrap;
 }
 html body.erp-system-ui #warehouse-scan #warehouse-scan-table tbody>tr>:is(.wh-scan-photos,.wh-scan-product-cell) {
  vertical-align:top!important;
 }
 @container warehouse-scan (min-width:761px) {
  html body.erp-system-ui #warehouse-scan .wh-scan-photos>.wh-scan-product {justify-content:center;}
 }
}
html body.erp-system-ui .wh-product-lines{min-width:0;max-width:100%}
html body.erp-system-ui .wh-product-lines>div{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.7}
html body.erp-system-ui .wh-product-lines .wh-copy{max-width:calc(100% - 44px)}
html body.erp-system-ui .wh-product-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#718098;font-size:11.5px!important}
html body.erp-system-ui .wh-row-actions{display:flex;align-items:center;gap:7px}
html body.erp-system-ui .wh-row-actions button{min-height:30px!important;padding:0 9px!important}
html body.erp-system-ui .wh-ship-button{min-height:30px!important;padding:0 9px!important;border:1px solid var(--ui-accent)!important;border-radius:6px!important;background:var(--ui-surface)!important;color:var(--ui-accent)!important;cursor:pointer!important}
html body.erp-system-ui .wh-ship-button:hover{background:var(--ui-accent-soft)!important}
html body.erp-system-ui .wh-ship-pending{display:inline-flex;align-items:center;min-height:30px;padding:0 4px;color:var(--ui-label);font-size:11px;white-space:nowrap}
html body.erp-system-ui .wh-badge{display:inline-flex;align-items:center;white-space:nowrap;padding:2px 7px;border-radius:5px;background:#f1f4f8;color:#718098;font-size:11px!important;line-height:1.6}
html body.erp-system-ui .wh-badge.wh-good{background:#ecf8ef;color:#329258}html body.erp-system-ui .wh-badge.wh-warn{background:#fff3e5;color:#c97f24}html body.erp-system-ui .wh-badge.wh-info{background:var(--ui-accent-soft);color:var(--ui-accent)}
html body.erp-system-ui .wh-stock-pick-label{margin-top:3px;color:#329258;font-size:10px;line-height:1.4;white-space:nowrap}
html body.erp-system-ui .wh-parcel-warning{margin-top:5px;color:var(--ui-danger);font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
html body.erp-system-ui .wh-parcel-warning small{display:block;font-size:10px;color:var(--ui-label)}
html body.erp-system-ui .wh-muted{color:#91a0b4!important}html body.erp-system-ui .wh-error{color:var(--ui-danger)!important}html body.erp-system-ui .wh-good-text{color:#329258!important}
html body.erp-system-ui .wh-table .wh-number{font-size:14px!important;font-variant-numeric:tabular-nums}
html body.erp-system-ui .wh-table .wh-empty{height:145px;text-align:center!important;color:#91a0b4!important}
html body.erp-system-ui .wh-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-top:15px;flex-wrap:wrap}
html body.erp-system-ui .wh-pagination>[data-wh-total]{margin-right:auto;color:#91a0b4}
html body.erp-system-ui .wh-pagination label{display:flex;align-items:center;gap:8px;white-space:nowrap;flex:none}
html body.erp-system-ui .wh-pagination select{width:70px!important}
html body.erp-system-ui .wh-page [data-wh-message]{margin:0 0 10px;color:#7b8ba1}
html body.erp-system-ui .wh-dialog{width:min(700px,94vw)!important;max-height:88dvh!important;padding:0!important;background:#fff!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-dialog-radius)!important;color:var(--ui-text)!important;box-shadow:var(--ui-dialog-shadow)!important;overflow:auto}
html body.erp-system-ui .wh-dialog::backdrop{background:var(--ui-overlay)}
html body.erp-system-ui .wh-dialog .erp-v5-close{margin-left:auto;width:32px!important;min-width:32px;min-height:32px!important;padding:0!important;font-size:20px!important}
html body.erp-system-ui .wh-dialog form{padding:20px 22px;margin:0}
html body.erp-system-ui .wh-dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 18px}
html body.erp-system-ui .wh-dialog-grid>label,.wh-readonly{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--ui-label);font-size:12px}
html body.erp-system-ui .wh-readonly b{display:flex;align-items:center;height:36px;font-weight:400;color:#718098}
html body.erp-system-ui .wh-span{grid-column:1/-1}
html body.erp-system-ui .wh-dialog .erp-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:21px;padding:0}
html body.erp-system-ui .wh-modal-message{margin:0 22px 15px;font-size:12px}
html body.erp-system-ui .wh-modal-message:empty{display:none}
html body.erp-system-ui .wh-stock-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;min-width:0}
html body.erp-system-ui .wh-stock-pick-box{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--ui-accent) 25%,var(--ui-border));border-radius:8px;background:color-mix(in srgb,var(--ui-accent-soft) 34%,var(--ui-surface));color:var(--ui-text)}
html body.erp-system-ui .wh-stock-pick-box>div{display:flex;flex-direction:column;gap:2px;min-width:0}
html body.erp-system-ui .wh-stock-pick-box b{font-size:12px;font-weight:600}
html body.erp-system-ui .wh-stock-pick-box small{color:var(--ui-label);font-size:11px;line-height:1.5}
html body.erp-system-ui .wh-stock-pick-box.is-pending{border-color:#9bd3a9;background:#f0fbf2}
html body.erp-system-ui .wh-stock-pick-box.is-done{border-color:#b8c8dc;background:#f5f8fc}
html body.erp-system-ui .wh-stock-pick-state{flex:none;color:#329258;font-size:12px;font-weight:600;white-space:nowrap}
html body.erp-system-ui .wh-stock-pick-button{flex:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;padding:0 14px!important;border:1px solid var(--ui-accent)!important;border-radius:7px!important;background:var(--ui-accent)!important;color:#fff!important;font-size:12px!important;font-weight:700!important;line-height:1!important;box-shadow:0 2px 6px color-mix(in srgb,var(--ui-accent) 18%,transparent)!important;cursor:pointer!important}
html body.erp-system-ui .wh-stock-pick-button:hover:not(:disabled){filter:brightness(.94)}
html body.erp-system-ui .wh-stock-pick-button:disabled{background:var(--ui-border)!important;border-color:var(--ui-border)!important;color:var(--ui-label)!important;box-shadow:none!important;cursor:not-allowed!important;opacity:.8}
html body.erp-system-ui .wh-stock-fields>label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;color:var(--ui-label)}
html body.erp-system-ui .wh-stock-fields input{width:100%}
html body.erp-system-ui .wh-stock-help{display:block;grid-column:1/-1;line-height:1.65;color:#91a0b4;font-size:11px!important;font-weight:400!important}
html body.erp-system-ui .wh-order-stock{margin-bottom:6px}
html body.erp-system-ui .wh-order-stock .wh-stock-warning{display:block;color:#e53935!important;font-size:12px!important;font-weight:600!important;line-height:1.5!important;white-space:normal}
html body.erp-system-ui .wh-order-stock .wh-stock-warning.is-empty{color:#e53935!important}
html body.erp-system-ui .wh-stock-warning b{color:inherit!important;font-weight:700!important;font-size:13px!important}
@container warehouse-scan (max-width:760px){
html body.erp-system-ui #warehouse-scan .wh-table-scan,html body.erp-system-ui #warehouse-scan .wh-table-scan tbody{display:block!important;width:100%!important}
html body.erp-system-ui #warehouse-scan .wh-table-scan thead{display:none!important}
html body.erp-system-ui #warehouse-scan .wh-table-scan tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;padding:14px;border-bottom:1px solid var(--ui-border-soft)}
html body.erp-system-ui #warehouse-scan .wh-table-scan tr:last-child{border-bottom:0}
html body.erp-system-ui #warehouse-scan .wh-table-scan td{display:block!important;width:auto!important;padding:0!important;border:0!important;min-width:0}
html body.erp-system-ui #warehouse-scan .wh-table-scan td[data-wh-label]::before{content:attr(data-wh-label);display:block;color:var(--ui-label);font-size:11px;line-height:1.5;margin-bottom:4px}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:first-child{order:0;text-align:left!important}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(2){order:1}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(6){order:2}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(7){order:3}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(3){order:4;grid-column:1/-1}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(4){order:5}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(5){order:6}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(8){order:7}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(9){order:8}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(10){order:9}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(11){order:10}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(12){order:11}
html body.erp-system-ui #warehouse-scan .wh-table-scan td:nth-child(13){order:12;grid-column:1/-1}
html body.erp-system-ui #warehouse-scan .wh-table-scan .wh-row-actions{justify-content:flex-end}
html body.erp-system-ui #warehouse-scan .wh-table-scan .wh-empty{grid-column:1/-1;height:auto;min-height:100px;align-content:center}
}
@media(max-width:700px){html body.erp-system-ui .wh-shell{margin:8px}html body.erp-system-ui #warehouse-scan .wh-shell{margin:0!important}html body.erp-system-ui .wh-card{padding:12px}html body.erp-system-ui .wh-scan-search{flex-wrap:wrap;padding:12px;justify-content:flex-start}html body.erp-system-ui .wh-scan-search label{flex:1 1 100%;display:flex;flex-direction:column;align-items:stretch;gap:6px}html body.erp-system-ui .wh-scan-search input{width:100%!important}html body.erp-system-ui .wh-filters>label{flex-basis:calc(50% - 10px);max-width:none}html body.erp-system-ui .wh-range-field{flex-basis:100%;max-width:none}html body.erp-system-ui .wh-filter-actions{width:100%;justify-content:flex-end}html body.erp-system-ui .wh-pagination{gap:8px}html body.erp-system-ui .wh-dialog-grid,html body.erp-system-ui .wh-stock-fields{grid-template-columns:1fr}html body.erp-system-ui .wh-stock-pick-box{align-items:flex-start;flex-direction:column}html body.erp-system-ui :is(.wh-page,.wh-dialog) input{font-size:16px!important}html body.erp-system-ui .wh-date-range input{font-size:12px!important}}
}

/* Phone input shares the existing scan lookup and parcel receipt flow. */
[data-wh-phone-connect]{display:inline-flex;align-items:center;gap:7px}
[data-wh-phone-connect].is-connected{color:var(--fin-green,#16865d);border-color:#bce5d1;background:#f1faf5}
[data-wh-phone-connect] svg{flex:0 0 16px}
[data-wh-phone-status]{font-size:12px;overflow-wrap:anywhere}
.wh-phone-dialog{width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--ui-border-soft,#e0e8f3);border-radius:16px;color:var(--ui-text,#233a58);background:var(--ui-surface,#fff)}
.wh-phone-dialog::backdrop{background:#152b465c}
.wh-phone-dialog .erp-v5-dialog-head{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid var(--ui-border-soft,#e6edf5)}
.wh-phone-dialog h2{font-size:18px;margin:0;flex:1}
.wh-phone-dialog .erp-v5-heading-icon{width:40px;height:40px;border-radius:12px;background:var(--ui-accent-soft,#edf4ff);color:var(--ui-accent,#1677ff);display:grid;place-items:center}
.wh-phone-dialog .erp-v5-heading-icon svg{width:23px;height:23px}
.wh-phone-body{padding:22px 26px;display:flex;align-items:center;flex-direction:column;gap:10px;text-align:center}
.wh-phone-qr{width:224px;max-width:65vw;background:#fff;padding:6px;border:1px solid #e1e9f4;border-radius:12px}
.wh-phone-qr img.wh-phone-code{display:block!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;aspect-ratio:1;object-fit:contain!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;filter:none!important;image-rendering:pixelated}
.wh-phone-body p{font-size:13px;line-height:1.7;margin:0;color:var(--ui-muted,#7b8da5)}
.wh-phone-body .wh-phone-hint{font-size:12px}
.wh-phone-dialog button{font:inherit;cursor:pointer;min-height:34px;padding:7px 13px;border:1px solid var(--ui-border-soft,#dce6f4);border-radius:8px;background:var(--ui-surface,#fff);color:var(--ui-text,#345372)}
.wh-phone-dialog .erp-v5-close{width:34px;padding:0;color:var(--ui-muted,#7b8da5);font-size:21px}
.wh-phone-dialog .erp-v5-dialog-foot{display:flex;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid var(--ui-border-soft,#e6edf5)}
.wh-phone-dialog button.wh-primary{background:var(--ui-accent,#1677ff);border-color:var(--ui-accent,#1677ff);color:#fff}
/* Parcel receipt stays in the scan-print workspace. */
html body.erp-system-ui .wh-receipt-order{margin:12px 0 16px;padding:14px;border:1px solid var(--ui-border,#dce4eb);border-radius:12px;background:var(--ui-surface,#fff);color:var(--ui-text,#25364d)}
html body.erp-system-ui .wh-receipt-order>header,html body.erp-system-ui .wh-receipt-order>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
html body.erp-system-ui .wh-receipt-order>header small{display:block;margin-top:3px;color:var(--ui-label,#64748b)}
html body.erp-system-ui .wh-receipt-order>header strong{color:var(--ui-accent,#1677ff);white-space:nowrap}
html body.erp-system-ui .wh-receipt-order .is-ready,html body.erp-system-ui .wh-receipt-status.is-received{color:var(--ui-success,#258556)}
html body.erp-system-ui .wh-receipt-parcels{display:grid;gap:10px;margin:12px 0}
html body.erp-system-ui .wh-receipt-parcel{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,1.4fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--ui-border,#dce4eb);border-radius:9px;min-width:0}
html body.erp-system-ui .wh-receipt-parcel.is-scanned{border-color:var(--ui-accent,#1677ff);background:var(--ui-accent-soft,#edf9fb)}
html body.erp-system-ui .wh-receipt-parcel-heading{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-width:0}
html body.erp-system-ui .wh-receipt-parcel-heading small{flex-basis:100%;overflow-wrap:anywhere;color:var(--ui-label,#64748b);font-size:11px}
html body.erp-system-ui .wh-receipt-status,html body.erp-system-ui .wh-receipt-match{font-size:11px;color:var(--ui-label,#64748b)}
html body.erp-system-ui .wh-receipt-match{color:var(--ui-accent,#1677ff)}
html body.erp-system-ui .wh-receipt-courier{display:flex;align-items:center;gap:8px;min-width:0}
html body.erp-system-ui .wh-receipt-courier>span{white-space:nowrap;font-size:12px;color:var(--ui-label,#64748b)}
html body.erp-system-ui .wh-receipt-courier>input{min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--ui-border,#dce4eb);border-radius:7px;padding:8px 10px;background:var(--ui-surface,#fff);color:var(--ui-text,#25364d);font:inherit}
html body.erp-system-ui .wh-receipt-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
html body.erp-system-ui .wh-receipt-order>footer{padding-top:10px;border-top:1px solid var(--ui-border,#dce4eb)}
html body.erp-system-ui .wh-receipt-order>footer>span{flex:1;min-width:0;overflow-wrap:anywhere;color:var(--ui-label,#64748b);font-size:12px}
@media(max-width:900px){html body.erp-system-ui .wh-receipt-parcel{grid-template-columns:minmax(0,1fr)}html body.erp-system-ui .wh-receipt-actions{justify-content:flex-end}}
@media(max-width:420px){html body.erp-system-ui .wh-receipt-order{padding:10px}html body.erp-system-ui .wh-receipt-order>footer>span{flex-basis:100%}html body.erp-system-ui .wh-receipt-order>footer>button{width:100%}}

/* Multi-purchase receipt controls live in their own scan-page dialog. */
html body.erp-system-ui dialog.wh-receipt-dialog{width:min(960px,calc(100vw - 32px));max-width:960px;max-height:calc(100dvh - 32px);padding:0;overflow:auto;box-sizing:border-box}
html body.erp-system-ui .wh-receipt-dialog>.erp-v5-dialog-head{position:sticky;top:0;z-index:1;background:var(--ui-surface,#fff);padding:18px 20px;border-bottom:1px solid var(--ui-border,#dce4eb)}
html body.erp-system-ui .wh-receipt-dialog h2{margin:0;font-size:18px}
html body.erp-system-ui .wh-receipt-dialog .erp-v5-dialog-head p{margin:5px 0 0;font-size:12px;color:var(--ui-label,#64748b)}
html body.erp-system-ui .wh-receipt-body{padding:0 18px}
html body.erp-system-ui .wh-receipt-dialog>.erp-dialog-actions{padding:12px 18px;margin:0;border-top:1px solid var(--ui-border,#dce4eb)}
html body.erp-system-ui .wh-receipt-dialog button{font:inherit;padding:7px 11px;border:1px solid var(--ui-border,#dce4eb);border-radius:7px;background:var(--ui-surface,#fff);color:var(--ui-text,#25364d);cursor:pointer}
html body.erp-system-ui .wh-receipt-dialog button.wh-primary{background:var(--ui-accent,#1677ff);color:#fff;border-color:var(--ui-accent,#1677ff)}
html body.erp-system-ui .wh-receipt-dialog button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:540px){html body.erp-system-ui dialog.wh-receipt-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}html body.erp-system-ui .wh-receipt-body{padding:0 10px}}

/* Confirmed print rows use the existing WHD resale green palette. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #warehouse-scan {
  --wh-printed-surface:#f1faf3;
  --wh-printed-hover:#e1f4e6;
  --wh-printed-selected:#d8f0df;
  --wh-printed-selected-hover:#cbead4;
 }
 html[data-erp-mode="dark"] body.erp-system-ui #warehouse-scan {
  --wh-printed-surface:#1e2d24;
  --wh-printed-hover:#25382b;
  --wh-printed-selected:#2a4232;
  --wh-printed-selected-hover:#304c38;
 }
 html body.erp-system-ui #warehouse-scan .wh-table-scan>tbody>tr.wh-row-printed,
 html body.erp-system-ui #warehouse-scan .wh-table-scan>tbody>tr.wh-row-printed>td {
  background:var(--wh-printed-surface)!important;
 }
 html body.erp-system-ui #warehouse-scan .wh-table-scan>tbody>tr.wh-row-printed:is(:hover,:focus-within),
 html body.erp-system-ui #warehouse-scan .wh-table-scan>tbody>tr.wh-row-printed:is(:hover,:focus-within)>td {
  background:var(--wh-printed-hover)!important;
 }
 html body.erp-system-ui #warehouse-scan .wh-table-scan>tbody>tr.wh-row-printed.is-selected,
 html body.erp-system-ui #warehouse-scan .wh-table-scan>tbody>tr.wh-row-printed.is-selected>td {
  background:var(--wh-printed-selected)!important;
 }
 html body.erp-system-ui #warehouse-scan .wh-table-scan>tbody>tr.wh-row-printed.is-selected:is(:hover,:focus-within),
 html body.erp-system-ui #warehouse-scan .wh-table-scan>tbody>tr.wh-row-printed.is-selected:is(:hover,:focus-within)>td {
  background:var(--wh-printed-selected-hover)!important;
 }
}

/* Scan-row print and procurement actions use the same compact dimensions. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #warehouse-scan #warehouse-scan-table tr.wh-row-printed .wh-row-actions>button.wh-row-action[data-wh-print] {
  --ui-button-fill:#22a447;--ui-button-line:#22a447;--ui-button-hover-fill:#188d39;--ui-button-hover-line:#188d39;
  background:#22a447!important;border-color:#22a447!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #warehouse-scan #warehouse-scan-table tr.wh-row-printed .wh-row-actions>button.wh-row-action[data-wh-print]:hover:not(:disabled) {
  background:#188d39!important;border-color:#188d39!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #warehouse-scan #warehouse-scan-table th:last-child {width:124px!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #warehouse-scan #warehouse-scan-table .wh-row-actions>button.wh-row-action:not([hidden]) {
  box-sizing:border-box!important;display:inline-flex!important;flex:0 0 104px!important;align-items:center!important;justify-content:center!important;
  width:104px!important;min-width:104px!important;max-width:104px!important;height:34px!important;min-height:34px!important;max-height:34px!important;
  margin:0!important;padding:0 10px!important;gap:5px!important;border-radius: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 .main #warehouse-scan #warehouse-scan-table .wh-row-actions>button.wh-row-action[data-wh-print] {
  --erp-action-icon-color:#fff!important;color:#fff!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #warehouse-scan #warehouse-scan-table .wh-row-actions>button.wh-row-action[data-wh-edit] {
  --erp-action-icon-color:var(--ui-accent,#1677ff)!important;color:var(--ui-accent,#1677ff)!important;
  border:1px solid var(--ui-border,#dce5ef)!important;background:var(--ui-surface,#fff)!important;
 }
}

/* Delivery cards inherit the row's status palette without changing row colors. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#orders,#warehouse-scan) .delivery-service-card {
  --delivery-card-surface:color-mix(in srgb,var(--ui-accent-soft,#edf4ff) 42%,var(--ui-surface,#fff));
  --delivery-card-line:color-mix(in srgb,var(--ui-accent,#1677ff) 13%,var(--ui-border-soft,#e6edf5));
  --delivery-card-icon:var(--ui-accent,#1677ff);
 }
 html body.erp-system-ui #orders tr.pc-row-cancelled .delivery-service-card {
  --delivery-card-surface:color-mix(in srgb,var(--pc-cancel-surface,#fff5f5) 62%,var(--ui-surface,#fff));
  --delivery-card-line:color-mix(in srgb,var(--pc-cancel-text,#b64750) 17%,var(--pc-cancel-surface,#fff5f5));
  --delivery-card-icon:var(--pc-cancel-text,#b64750);
 }
 html body.erp-system-ui #orders tr.pc-row-whd:not(.pc-row-cancelled) .delivery-service-card {
  --delivery-card-surface:color-mix(in srgb,var(--pc-whd-surface,#f1faf3) 62%,var(--ui-surface,#fff));
  --delivery-card-line:color-mix(in srgb,var(--pc-whd-text,#178236) 17%,var(--pc-whd-surface,#f1faf3));
  --delivery-card-icon:var(--pc-whd-text,#178236);
 }
 html body.erp-system-ui #warehouse-scan tr.wh-row-printed .delivery-service-card {
  --delivery-card-surface:color-mix(in srgb,var(--wh-printed-surface,#f1faf3) 62%,var(--ui-surface,#fff));
  --delivery-card-line:color-mix(in srgb,var(--fin-green,#24875c) 17%,var(--wh-printed-surface,#f1faf3));
  --delivery-card-icon:var(--fin-green,#24875c);
 }
 html body.erp-system-ui :is(#orders,#warehouse-scan) .delivery-service-card {
  box-sizing:border-box!important;background:var(--delivery-card-surface)!important;border:1px solid var(--delivery-card-line)!important;border-radius:8px!important;box-shadow:none!important;
 }
 html body.erp-system-ui :is(#orders,#warehouse-scan) .delivery-service-label {color:var(--ui-muted,#7d8da5)!important;font-weight:400!important;}
 html body.erp-system-ui :is(#orders,#warehouse-scan) .delivery-service-label svg {color:var(--delivery-card-icon)!important;}
 html body.erp-system-ui :is(#orders,#warehouse-scan) .delivery-service-name {color:var(--ui-text,#183153)!important;font-weight:500!important;}
}
