/* Generated by scripts/build-ui.cjs. Edit the component sources, then rebuild. */

/* ===== theme.css ===== */
/* Public component tokens. Theme selection still owns --theme-* on body. */
html body.erp-system-ui {
  --ui-accent: var(--theme-accent, #20aec2);
  --ui-accent-hover: var(--theme-accent-deep, #168b9d);
  --ui-accent-soft: var(--theme-accent-soft, #edf9fb);
  --ui-surface: #fff;
  --ui-field-surface: #fbfcfe;
  --ui-text: var(--erp-text, #25364d);
  --ui-label: #000;
  --ui-table-heading: #000;
  --ui-field-text: var(--ui-label);
  --ui-placeholder: var(--erp-field-placeholder, #a3aebc);
  --ui-border: #e3e9f1;
  --ui-border-soft: #edf1f6;
  --ui-control-radius: 8px;
  --erp-list-search-width:240px;
  --ui-menu-radius: 10px;
  --ui-dialog-radius: 12px;
  --ui-dialog-padding: 22px;
  --ui-focus-ring: 0 0 0 3px color-mix(in srgb, var(--ui-accent) 10%, transparent);
  --ui-menu-shadow: 0 8px 28px #23395616;
  --ui-dialog-shadow: 0 28px 90px #142c4b29, 0 5px 18px #142c4b0d;
  --ui-overlay: #182d4659;
  --ui-danger: #d56571;
  --ui-danger-hover: #bb5260;
  --ui-danger-soft: #fff0f3;
  --ui-disabled-surface: #f3f5f8;
  --ui-disabled-text: #98a4b4;
  --ui-motion: .15s;
}
/* Important component declarations outrank the older unlayered page styles.
 * Keep one layer for component state; do not add competing component layers. */
@layer erpComponents;
@media (max-width: 720px) {
  html body.erp-system-ui { --ui-dialog-padding: 16px; --ui-dialog-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.erp-system-ui { --ui-motion: 0s; }
}

/* ===== controls.css ===== */
/* Order row actions and purchase badges keep icons aligned with their labels. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders button.erp-order-icon-action {
  display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:center!important;gap:4px!important;white-space:nowrap!important;vertical-align:middle!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders button.erp-order-icon-action>svg.erp-status-icon {
  display:block!important;flex:0 0 14px!important;width:14px!important;min-width:14px!important;height:14px!important;
  margin:0!important;fill:none!important;stroke:#fff!important;stroke-width:1.75!important;color:#fff!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .purchase-status-tag.erp-order-icon-badge {
  display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:3px!important;
  white-space:nowrap!important;vertical-align:middle!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .purchase-status-tag.erp-order-icon-badge>svg.erp-status-icon {
  display:block!important;flex:0 0 12px!important;width:12px!important;min-width:12px!important;height:12px!important;
  margin:0!important;fill:none!important;stroke:#fff!important;stroke-width:1.75!important;color:#fff!important;
 }
}

/* Order subfilters share the status buttons' outlined and filled states. */
@layer erpColorMode.overrides {
 html body.erp-system-ui .purchase-source-links {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px 8px!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui .purchase-source-links[hidden] {display:none!important}
 html body.erp-system-ui .purchase-source-links>a {display:inline-flex!important;align-items:center!important;min-width:0!important;max-width:100%!important;color:#1677ff!important;white-space:nowrap!important;font-size:12px!important;line-height:1.6!important}
 html body.erp-system-ui #orders .source-single-line:has(.purchase-source-links) {align-items:flex-start!important;white-space:normal!important;overflow:visible!important}
 html body.erp-system-ui #orders .source-single-line>.purchase-source-links {display:flex!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;overflow:visible!important;white-space:normal!important}
 html body.erp-system-ui #purchaseKnownSources {margin-top:7px!important}
}
@layer erpColorMode.overrides {
 html body.erp-system-ui #orders #statusQuickRow .waiting-pack-quick {
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;flex-wrap:wrap!important;
  max-width:100%!important;min-width:0!important;gap:6px!important;margin-left:4px!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
 }
 html body.erp-system-ui #orders #statusQuickRow .quick-radio {
  appearance:none!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  --quick-accent:var(--ui-accent,#20aec2);--quick-deep:var(--ui-accent-hover,#168b9d);--quick-ink:var(--quick-deep);
  gap:6px!important;height:30px!important;min-height:30px!important;padding:0 10px!important;
  border:1px solid color-mix(in srgb,var(--quick-accent) 35%,var(--ui-border,#e3e9f1))!important;border-radius:5px!important;
  background:color-mix(in srgb,var(--quick-accent) 5%,var(--ui-surface,#fff))!important;color:var(--quick-ink)!important;-webkit-text-fill-color:currentColor!important;
  font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:20px!important;white-space:nowrap!important;
  cursor:pointer!important;box-shadow:none!important;transform:none!important;transition:none!important;
 }
 html body.erp-system-ui #orders #statusQuickRow :is([data-quick="arrived_pickup"],[data-quick="purchased"],[data-quick="printed"]) {--quick-accent:#22a447;--quick-deep:#15803d}
 html body.erp-system-ui #orders #statusQuickRow [data-quick="in_transit"] {--quick-accent:#2b8ee9;--quick-deep:#1672c4}
 html body.erp-system-ui #orders #statusQuickRow :is([data-quick="unpurchased"],[data-quick="unprinted"]) {--quick-accent:#f59e0b;--quick-deep:#d97706}
 html body.erp-system-ui #orders #statusQuickRow .quick-radio:hover {
  color:var(--quick-ink)!important;background:color-mix(in srgb,var(--quick-accent) 10%,var(--ui-surface,#fff))!important;
  border-color:var(--quick-accent)!important;
 }
 html body.erp-system-ui #orders #statusQuickRow .quick-radio.active {
  color:#fff!important;background:var(--quick-accent)!important;border-color:var(--quick-accent)!important;
  box-shadow:0 3px 8px color-mix(in srgb,var(--quick-accent) 20%,transparent)!important;
 }
 html body.erp-system-ui #orders #statusQuickRow .quick-radio.active:hover {color:#fff!important;background:var(--quick-deep)!important;border-color:var(--quick-deep)!important}
 html body.erp-system-ui #orders #statusQuickRow .quick-radio:active {box-shadow:inset 0 2px 4px rgb(15 23 42 / 12%)!important}
 html body.erp-system-ui #orders #statusQuickRow .quick-radio:focus-visible {outline:2px solid var(--quick-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #orders #statusQuickRow .order-quick-icon {
  display:block!important;flex:0 0 15px!important;width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;
  stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;color:inherit!important;
 }
 html body.erp-system-ui #orders #statusQuickRow .order-quick-count {
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:19px!important;height:18px!important;margin:0!important;padding:0 5px!important;border-radius:999px!important;
  border:1px solid color-mix(in srgb,var(--quick-accent) 38%,var(--ui-border,#e3e9f1))!important;
  color:inherit!important;-webkit-text-fill-color:currentColor!important;background:color-mix(in srgb,var(--quick-accent) 12%,var(--ui-surface,#fff))!important;
  font-size:10px!important;font-weight:500!important;line-height:1!important;text-align:center!important;
 }
 html body.erp-system-ui #orders #statusQuickRow .quick-radio.active .order-quick-count {color:#fff!important;background:rgb(255 255 255 / 20%)!important;border-color:rgb(255 255 255 / 30%)!important}
 html[data-erp-mode="dark"] body.erp-system-ui #orders #statusQuickRow :is([data-quick="arrived_pickup"],[data-quick="purchased"],[data-quick="printed"]) {--quick-ink:#86efac}
 html[data-erp-mode="dark"] body.erp-system-ui #orders #statusQuickRow [data-quick="in_transit"] {--quick-ink:#93c5fd}
 html[data-erp-mode="dark"] body.erp-system-ui #orders #statusQuickRow :is([data-quick="unpurchased"],[data-quick="unprinted"]) {--quick-ink:#fbbf24}
 @media(max-width:720px) {
  html body.erp-system-ui #orders #statusQuickRow .waiting-pack-quick {margin-left:0!important}
  html body.erp-system-ui #orders #statusQuickRow .quick-radio {height:34px!important;min-height:34px!important;padding:0 8px!important}
 }
}
/* Watermark actions use the same palette and control size as the ERP. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn {
  appearance:none!important;box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;gap:7px!important;
  min-height:34px!important;padding:7px 12px!important;border:1px solid var(--ui-border)!important;
  border-radius:7px!important;background:var(--ui-surface)!important;color:var(--ui-button-text,var(--ui-label,var(--ui-text)))!important;
  -webkit-text-fill-color:currentColor!important;font-family:inherit!important;font-size:12px!important;
  font-weight:500!important;line-height:1.4!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer!important;
 }
 html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn:hover:not(:disabled) {border-color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important}
 html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn.primary {border-color:var(--ui-accent)!important;background:var(--ui-accent)!important;color:var(--ui-button-text,#fff)!important}
 html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn.primary:hover:not(:disabled) {border-color:var(--ui-accent-hover)!important;background:var(--ui-accent-hover)!important;color:var(--ui-button-hover-text,var(--ui-button-text,#fff))!important}
 html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn.danger {color:var(--dm-negative,#c64855)!important}
 html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn.danger:hover:not(:disabled) {border-color:var(--dm-negative,#c64855)!important;background:color-mix(in srgb,var(--dm-negative,#c64855) 8%,var(--ui-surface))!important}
 html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn:disabled {opacity:.55!important;cursor:not-allowed!important}
 html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn:focus-visible {outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #wmDialog .wm-btn.icon-only {width:32px!important;min-height:32px!important;padding:6px!important}
 @media(max-width:900px) {
  html body.erp-system-ui :is(#watermarks,#wmDialog) .wm-btn {min-height:40px!important}
 }
}
/* Search fields share the order-center control; each list owns its query scope. */
@layer erpColorMode.overrides {
 html body.erp-system-ui input.erp-list-search {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:var(--erp-list-search-width,240px)!important;
  height:36px!important;min-height:36px!important;padding:0 34px 0 12px!important;
  border:1px solid var(--ui-border,#dfe6ef)!important;border-radius:8px!important;
  background:var(--ui-field-surface,#fbfcfe)!important;color:var(--ui-field-text,#25364d)!important;
  -webkit-text-fill-color:currentColor!important;font-family:inherit!important;font-size:13px!important;font-weight:400!important;
  line-height:normal!important;outline:none!important;box-shadow:none!important;appearance:none!important;
 }
 html body.erp-system-ui input.erp-list-search::placeholder {
  color:var(--ui-placeholder,#8f9aa6)!important;-webkit-text-fill-color:var(--ui-placeholder,#8f9aa6)!important;opacity:1!important;
 }
 html body.erp-system-ui input.erp-list-search:hover {border-color:var(--ui-accent,#20aec2)!important}
 html body.erp-system-ui input.erp-list-search:focus {
  border-color:var(--ui-accent,#20aec2)!important;background:var(--ui-surface,#fff)!important;box-shadow:var(--ui-focus-ring)!important;
 }
 html body.erp-system-ui input.erp-list-search:disabled {background:var(--ui-disabled-surface)!important;color:var(--ui-disabled-text)!important;cursor:not-allowed!important}
 html body.erp-system-ui :is(.returns-search-v3300>svg,.account-search-icon-v3241,.ar-search-wrap>svg,.wm-search>svg) {display:none!important}
 html body.erp-system-ui :is(.ar-search-wrap,.wm-search):has(input.erp-list-search) {height:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 html body.erp-system-ui .erp-clear-field:has(>input.erp-list-search) {box-sizing:border-box!important;flex:0 1 auto!important;width:min(100%,var(--erp-list-search-width,240px))!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 :is(.finance-search-wrap,.returns-search-v3300,.account-search-wrap-v3241,.wm-search,.ar-search-wrap,.pl-record-search):has(input.erp-list-search) {flex:0 1 auto!important;width:min(100%,var(--erp-list-search-width,240px))!important;min-width:0!important;max-width:var(--erp-list-search-width,240px)!important}
 html body.erp-system-ui #pm-app .pm-toolbar>:is(input.erp-list-search,.erp-clear-field:has(>input.erp-list-search)) {flex:0 1 auto!important;width:var(--erp-list-search-width,240px)!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #procurement #procurement-app .pc-filter-grid {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px 18px!important}
 html body.erp-system-ui #procurement #procurement-app .pc-filter-grid>.pc-field {flex:0 1 auto!important;width:var(--erp-list-search-width,240px)!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #procurement #procurement-app .pc-filter-grid>.pc-date-filter {flex:0 1 auto!important;width:360px!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #procurement #procurement-app .pc-filter-grid>.pc-filter-actions {flex:0 0 auto!important;margin-left:auto!important;justify-content:flex-end!important}
 html body.erp-system-ui .wh-filters>.wh-keyword {flex:0 1 auto!important;width:var(--erp-list-search-width,240px)!important;max-width:100%!important}
 @media(max-width:900px) {
  html body.erp-system-ui input.erp-list-search {height:40px!important;min-height:40px!important;max-width:100%!important;font-size:16px!important}
  html body.erp-system-ui .erp-clear-field:has(>input.erp-list-search) {flex:0 1 auto!important;width:min(100%,220px)!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important}
  html body.erp-system-ui :is(.finance-search-wrap,.returns-search-v3300,.account-search-wrap-v3241,.wm-search,.ar-search-wrap,.pl-record-search):has(input.erp-list-search) {flex:0 1 auto!important;width:min(100%,220px)!important;max-width:100%!important}
  html body.erp-system-ui .wh-filters>.wh-keyword {flex:0 1 auto!important;width:min(100%,240px)!important;max-width:100%!important}
  html body.erp-system-ui #pm-app .pm-toolbar>.erp-clear-field:has(>input.erp-list-search) {flex:0 1 auto!important;width:min(100%,240px)!important}
  html body.erp-system-ui #procurement #procurement-app .pc-filter-grid>.pc-field {flex:0 1 auto!important;width:240px!important}
  html body.erp-system-ui #procurement #procurement-app .pc-field>.erp-clear-field:has(>input.erp-list-search) {flex:1!important;width:100%!important}
 }
 /* Scan fields share the control appearance, while their own label sets width. */
 html body.erp-system-ui .wh-scan-search label>.erp-clear-field:has(>input.erp-list-search) {flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui .wh-scan-search input.erp-list-search {max-width:none!important}
}

/* Clipboard actions share one hover hint across pages and portal dialogs. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(
  .copy-value,.copyable,.click-copy,.screen-sku-copy,.pm-copy-value,.pc-copy-value,.wh-copy,.om-posting,
  [data-copy],[data-pc-copy],[data-wh-copy],[data-sa-copy],[data-record-copy],[data-om-copy],[data-om-copy-url],
  [data-fb-copy-order],[data-lc-copy],[data-lc-batch-copy],[data-office-action="copy"],[data-office-action="copy-invite"],
  [data-action="copy-prompt"],[onclick*="copyValue("],[onclick*="copyProfit"],[onclick*="copyPluginAccessToken("]
 ) {text-decoration:none!important;}
 html body.erp-system-ui :is(
  .copy-value,.copyable,.click-copy,.screen-sku-copy,.pm-copy-value,.pc-copy-value,.wh-copy,.om-posting,
  [data-copy],[data-pc-copy],[data-wh-copy],[data-sa-copy],[data-record-copy],[data-om-copy],[data-om-copy-url],
  [data-fb-copy-order],[data-lc-copy],[data-lc-batch-copy],[data-office-action="copy"],[data-office-action="copy-invite"],
  [data-action="copy-prompt"],[onclick*="copyValue("],[onclick*="copyProfit"],[onclick*="copyPluginAccessToken("]
 ):hover:not(:disabled) {text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:.18em!important;}
 html body.erp-system-ui :is([data-office-action="copy"],[data-office-action="copy-invite"]):hover:not(:disabled) .erp-button-label {text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:.18em!important;}
 /* Remove decorative bottom rules from text controls, preserving framed copy buttons. */
 html body.erp-system-ui :is(
  .copy-value,.copyable,.click-copy,.screen-sku-copy,.pm-copy-value,.pc-copy-value,.wh-copy,.om-posting,
  [data-sa-copy],[data-record-copy],.ol-sku
 ) {border-bottom:0!important;}
}

/* Appearance adapters for existing buttons. Layout and click handlers stay local. */
/* Compact SKU cards keep order colors and the finance metric-card gradient.
 * Terminal colors below also share the actual order-filter tokens. */
@layer erpColorMode.overrides {
  html body.erp-system-ui #skuHistoryMask .sku-history-status {
    display:block!important;min-height:0!important;padding:0 0 12px!important;
    border-bottom:1px solid var(--ui-border,#e3e9f1)!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-summary {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    flex-wrap:wrap!important;gap:8px!important;margin:0 0 12px!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-summary h3 {
    margin:0!important;color:var(--ui-label,var(--ui-text,#25364d))!important;
    -webkit-text-fill-color:currentColor!important;font-size:12px!important;line-height:1.5!important;font-weight:500!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-total {
    color:var(--ui-text-muted,var(--ui-sub,#667085))!important;font-size:12px!important;white-space:nowrap!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-total strong {
    color:#2563eb!important;-webkit-text-fill-color:currentColor!important;font-size:13px!important;font-weight:600!important;
  }
  html[data-erp-mode="dark"] body.erp-system-ui #skuHistoryMask .sku-history-status-total strong {color:rgb(106 148 241)!important;}
  html body.erp-system-ui #skuHistoryMask .sku-history-status-grid {
    display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:7px!important;
    width:100%!important;min-width:0!important;font-variant-numeric:tabular-nums!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item {
    --sku-history-state-color:var(--order-state-ink,var(--sku-history-state-ink,var(--ui-text-muted,#667085)));
    --sku-history-state-wash:var(--ui-field-surface,#f8fafc);
    position:relative!important;isolation:isolate!important;overflow:hidden!important;
    display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:6px!important;
    min-width:0!important;margin:0!important;padding:9px 8px!important;border:1px solid var(--ui-border,#e3e9f1)!important;border-radius:8px!important;
    background:linear-gradient(125deg,var(--ui-surface,#fff) 42%,color-mix(in srgb,var(--sku-history-state-wash) 65%,var(--ui-surface,#fff)))!important;
    color:var(--sku-history-state-color)!important;
    -webkit-text-fill-color:currentColor!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="awaiting_packaging"] { --sku-history-state-ink:#d97706;--sku-history-state-wash:#fff7e8; }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="awaiting_deliver"] { --sku-history-state-ink:#15803d;--sku-history-state-wash:#ebf9f1; }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="delivering"] { --sku-history-state-ink:#2563eb;--sku-history-state-wash:#e8f1ff; }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="delivered"] { --sku-history-state-ink:#475569; }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status^="cancelled"] { --sku-history-state-ink:#dc2626;--sku-history-state-wash:#fceef2; }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="refused"] { --sku-history-state-wash:#fceef2; }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="returned"] { --sku-history-state-wash:#f4edfd; }
  html[data-erp-mode="dark"] body.erp-system-ui #skuHistoryMask .sku-history-status-item {--sku-history-state-wash:var(--ui-field-surface);}
  html[data-erp-mode="dark"] body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="awaiting_packaging"] { --sku-history-state-ink:rgb(243 178 104); }
  html[data-erp-mode="dark"] body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="awaiting_deliver"] { --sku-history-state-ink:rgb(115 232 159); }
  html[data-erp-mode="dark"] body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="delivering"] { --sku-history-state-ink:rgb(106 148 241); }
  html[data-erp-mode="dark"] body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="delivered"] { --sku-history-state-ink:rgb(220 220 220); }
  html[data-erp-mode="dark"] body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status^="cancelled"] { --sku-history-state-ink:rgb(232 114 114); }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item :is(b,strong,em,span) {
    color:inherit!important;
    -webkit-text-fill-color:currentColor!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-label {
    position:relative!important;z-index:1!important;display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-label b {
    min-width:0!important;font-size:12px!important;font-weight:400!important;line-height:1.5!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-icon {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 20px!important;width:20px!important;height:20px!important;border-radius:6px!important;
    background:var(--sku-history-state-wash)!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-icon svg {
    display:block!important;width:14px!important;height:14px!important;fill:none!important;stroke:currentColor!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-values {
    position:relative!important;z-index:1!important;display:flex!important;align-items:baseline!important;
    justify-content:space-between!important;flex-wrap:wrap!important;gap:3px 6px!important;min-width:0!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-count {
    font-size:20px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-unit {
    margin-left:4px!important;font-size:12px!important;font-weight:400!important;opacity:.85!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-percent {
    font-size:12px!important;font-weight:500!important;font-style:normal!important;line-height:1.5!important;white-space:nowrap!important;
  }
  html body.erp-system-ui #skuHistoryMask .sku-history-status-empty {
    color:var(--ui-text-muted,var(--ui-sub,#667085))!important;font-size:12px!important;padding:10px 0!important;
  }
  @media(max-width:1000px) {
    html body.erp-system-ui #skuHistoryMask .sku-history-status-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  }
  @media(max-width:600px) {
    html body.erp-system-ui #skuHistoryMask .sku-history-status-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  }
}
/* Order filters with custom colors share the selected, hover and dark mode styles. */
@layer erpColorMode.overrides {
  html body.erp-system-ui #orders #statusQuickRow .status-link[data-status="not_accepted_by_customer"],
  html body.erp-system-ui #orders .legacy-order-table .posting-cell.refused-posting,
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="refused"] {
    --order-state-accent:#e11d48;
    --order-state-dark-ink:#fb7185;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link[data-status="acceptance_in_progress"] {
    --order-state-accent:#6050be;
    --order-state-dark-ink:#c7bfff;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link[data-status="returned"],
  html body.erp-system-ui #orders .legacy-order-table .posting-cell.returned-posting,
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item[data-status="returned"] {
    --order-state-accent:#7c3aed;
    --order-state-dark-ink:#c4b5fd;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]),
  html body.erp-system-ui #orders .legacy-order-table .posting-cell:is(.refused-posting,.returned-posting),
  html body.erp-system-ui #skuHistoryMask .sku-history-status-item:is([data-status="refused"],[data-status="returned"]) {
    --order-state-solid:var(--order-state-accent);
    --order-state-deep:color-mix(in srgb,var(--order-state-accent) 80%,#17212f);
    --order-state-ink:var(--order-state-solid);
    --status-accent:var(--order-state-solid);
    --status-deep:var(--order-state-deep);
    --status-soft:color-mix(in srgb,var(--order-state-accent) 8%,var(--ui-surface,#fff));
    color:var(--order-state-ink)!important;
    -webkit-text-fill-color:currentColor!important;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]) {
    background:var(--status-soft)!important;
    border:1px solid color-mix(in srgb,var(--order-state-accent) 42%,var(--ui-border,#e3e9f1))!important;
    border-radius:var(--ui-control-radius,8px)!important;
    box-shadow:none!important;filter:none!important;
  }
  html[data-erp-mode="dark"] body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]),
  html[data-erp-mode="dark"] body.erp-system-ui #orders .legacy-order-table .posting-cell:is(.refused-posting,.returned-posting),
  html[data-erp-mode="dark"] body.erp-system-ui #skuHistoryMask .sku-history-status-item:is([data-status="refused"],[data-status="returned"]) {
    --order-state-solid:color-mix(in srgb,var(--order-state-accent) 80%,#17212f);
    --order-state-deep:color-mix(in srgb,var(--order-state-accent) 65%,#17212f);
    --order-state-ink:var(--order-state-dark-ink);
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]):not(.active):hover {
    background:color-mix(in srgb,var(--order-state-accent) 14%,var(--ui-surface,#fff))!important;
    border-color:var(--order-state-accent)!important;color:var(--order-state-ink)!important;
    box-shadow:none!important;filter:none!important;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]).active {
    color:#fff!important;background:var(--order-state-solid)!important;border-color:var(--order-state-solid)!important;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]).active:hover,
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]):active {
    color:#fff!important;background:var(--order-state-deep)!important;border-color:var(--order-state-deep)!important;
    box-shadow:none!important;filter:none!important;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]) .num {
    color:inherit!important;-webkit-text-fill-color:currentColor!important;
    background:var(--ui-surface,#fff)!important;border:1px solid color-mix(in srgb,currentColor 24%,transparent)!important;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]):is(.active,:active) .num {
    color:inherit!important;background:rgb(0 0 0 / 14%)!important;border-color:rgb(255 255 255 / 35%)!important;
  }
  html body.erp-system-ui #orders #statusQuickRow .status-link:is([data-status="not_accepted_by_customer"],[data-status="returned"],[data-status="acceptance_in_progress"]):focus-visible {
    outline:2px solid var(--order-state-ink)!important;outline-offset:3px!important;
  }
  html body.erp-system-ui #orders .legacy-order-table .posting-cell:is(.refused-posting,.returned-posting) :is(.posting-link,.status-main,.status-main span) {
    color:var(--order-state-ink)!important;
    -webkit-text-fill-color:currentColor!important;
    border-bottom-color:var(--order-state-ink)!important;
  }
}
@layer erpComponents {
  html body.erp-system-ui .quality-danger-btn {--erp-action-icon-color:currentColor!important;}
  html body.erp-system-ui :where(
    .erp-btn, .page .btn, .modal .btn, .pm-btn, .pc-primary, .pc-edit-button,
    .lc-primary, .rc-primary, .auth-submit, .weight-confirm-btn, .order-note-save,
    .cancel-save-btn, .system-confirm-ok, .system-confirm-cancel, .quality-danger-btn,
    .pc-dialog > footer > button, .lc-dialog > footer > button, .rc-dialog > footer > button,
    #license-codes .lc-actions button, #license-codes .lc-filter button,
    #procurement .pc-toolbar button, #procurement .pc-filter-actions button,
    .ca-ref-btn, .profit-primary-btn-v3249, .profit-secondary-btn-v3249,
    .profit-danger-btn-v3249, .profit-reset-btn-v3249
  ) {
    --ui-button-fill: var(--ui-surface);
    --ui-button-text: var(--ui-label);
    --ui-button-line: var(--ui-border);
    --ui-button-hover-fill: var(--ui-accent-soft);
    --ui-button-hover-text: var(--ui-label);
    --ui-button-hover-line: var(--ui-accent);
    background: var(--ui-button-fill) !important;
    border: 1px solid var(--ui-button-line) !important;
    color: var(--ui-button-text) !important;
    -webkit-text-fill-color: currentColor !important;
    border-radius: var(--ui-control-radius) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: background-color var(--ui-motion), border-color var(--ui-motion), color var(--ui-motion) !important;
  }
  html body.erp-system-ui :where(
    .erp-primary, .btn.primary, .pm-primary, .pc-primary, .pc-edit-button,
    .lc-primary, .rc-primary, .auth-submit, .weight-confirm-btn, .order-note-save,
    .cancel-save-btn, .system-confirm-ok, .ca-ref-btn.primary, .profit-primary-btn-v3249,
    .erp-btn.active, .page .btn.active, .pm-btn.active, .ca-ref-btn.active,
    .erp-btn[aria-pressed="true"]
  ) {
    --ui-button-fill: var(--ui-accent);
    --ui-button-text: #fff;
    --ui-button-line: var(--ui-accent);
    --ui-button-hover-fill: var(--ui-accent-hover);
    --ui-button-hover-text: #fff;
    --ui-button-hover-line: var(--ui-accent-hover);
  }
  /* Button labels follow the button state, not legacy panel heading colors. */
  html body.erp-system-ui :where(button, .erp-btn, .btn) > .erp-button-label {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body.erp-system-ui .print-label-btn {
    gap: 5px !important;
  }
  html body.erp-system-ui .print-label-btn .order-print-icon {
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }
  html body.erp-system-ui :where(.pm-dialog-footer, .pm-save-actions, .rc-dialog > footer, .pi-storage-dialog footer) > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding-inline: 15px !important;
    text-indent: 0 !important;
  }
  html body.erp-system-ui :where(.btn.danger, .pm-danger, .profit-danger-btn-v3249, .lc-danger) {
    --ui-button-fill: var(--ui-danger-soft);
    --ui-button-text: var(--ui-danger-hover);
    --ui-button-line: var(--ui-danger-soft);
    --ui-button-hover-fill: var(--ui-danger-soft);
    --ui-button-hover-text: var(--ui-danger-hover);
    --ui-button-hover-line: var(--ui-danger);
  }
  html body.erp-system-ui :where(
    .erp-danger, .quality-danger-btn,
    #deleteShopConfirmMask .system-confirm-ok, #deleteCancelMarkMask .system-confirm-ok,
    .lc-dialog [data-lc-delete-form] .lc-primary
  ) {
    --ui-button-fill: var(--ui-danger);
    --ui-button-text: #fff;
    --ui-button-line: var(--ui-danger);
    --ui-button-hover-fill: var(--ui-danger-hover);
    --ui-button-hover-text: #fff;
    --ui-button-hover-line: var(--ui-danger-hover);
  }
  html body.erp-system-ui :where(
    .erp-btn, .page .btn, .modal .btn, .pm-btn, .pc-primary, .pc-edit-button,
    .lc-primary, .rc-primary, .auth-submit, .weight-confirm-btn, .order-note-save,
    .cancel-save-btn, .system-confirm-ok, .system-confirm-cancel, .quality-danger-btn,
    .pc-dialog > footer > button, .lc-dialog > footer > button, .rc-dialog > footer > button,
    #license-codes .lc-actions button, #license-codes .lc-filter button,
    #procurement .pc-toolbar button, #procurement .pc-filter-actions button,
    .ca-ref-btn, .profit-primary-btn-v3249, .profit-secondary-btn-v3249,
    .profit-danger-btn-v3249, .profit-reset-btn-v3249
  ):hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--ui-button-hover-fill) !important;
    border-color: var(--ui-button-hover-line) !important;
    color: var(--ui-button-hover-text) !important;
  }
  html body.erp-system-ui :where(
    .erp-btn, .page .btn, .modal .btn, .pm-btn, .pc-primary, .pc-edit-button,
    .lc-primary, .rc-primary, .auth-submit, .weight-confirm-btn, .order-note-save,
    .cancel-save-btn, .system-confirm-ok, .system-confirm-cancel, .quality-danger-btn,
    .pc-dialog > footer > button, .lc-dialog > footer > button, .rc-dialog > footer > button,
    .ca-ref-btn, .profit-primary-btn-v3249, .profit-secondary-btn-v3249,
    .profit-danger-btn-v3249, .profit-reset-btn-v3249
  ):is(:disabled, [aria-disabled="true"]) {
    opacity: .5 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
  }
  html body.erp-system-ui :where(.page, .modal, .pm-portal, .pc-dialog, .lc-dialog, .rc-dialog, .auth-card)
  :where(button, a, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 3px;
  }
  /* Ordinary field values share one tone across pages and dialogs. */
  html body.erp-system-ui :where(.erp-control),
  html body.erp-system-ui :where(input:not(:where([type="checkbox"], [type="radio"], [type="hidden"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"], [type="color"], [type="range"])), select, textarea) {
    color: var(--ui-field-text) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body.erp-system-ui :where(.erp-control):disabled,
  html body.erp-system-ui :where(input, select, textarea):disabled {
    color: var(--ui-disabled-text) !important;
  }
  /* Existing field geometry stays limited to the original form containers. */
  html body.erp-system-ui :where(.erp-control),
  html body.erp-system-ui :where(.pm-form-control, .pc-edit-grid, .lc-grid, .account-form-v31, .modal-mask, #pm-dialog, .pc-dialog, .lc-dialog)
  :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), textarea) {
    border-color: var(--ui-border) !important;
    border-radius: var(--ui-control-radius) !important;
    background: var(--ui-field-surface) !important;
  }
  html body.erp-system-ui :where(.erp-control):focus,
  html body.erp-system-ui :where(.pm-form-control, .pc-edit-grid, .lc-grid, .account-form-v31, .modal-mask, #pm-dialog, .pc-dialog, .lc-dialog)
  :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), textarea):focus {
    border-color: var(--ui-accent) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-focus-ring) !important;
  }
  html body.erp-system-ui :where(.erp-control):disabled,
  html body.erp-system-ui :where(.pm-form-control, .pc-edit-grid, .lc-grid, .account-form-v31, .modal-mask, #pm-dialog, .pc-dialog, .lc-dialog)
  :where(input, textarea):disabled {
    background: var(--ui-disabled-surface) !important;
    color: var(--ui-disabled-text) !important;
    cursor: not-allowed;
  }
  html body.erp-system-ui :where(.erp-control, input, textarea)::placeholder {
    color: var(--ui-placeholder) !important;
    -webkit-text-fill-color: var(--ui-placeholder) !important;
    opacity: 1 !important;
  }
  html body.erp-system-ui input:autofill:not(:disabled) {
    -webkit-text-fill-color: var(--ui-field-text) !important;
  }
  html body.erp-system-ui .pc-readonly-field output {
    color: var(--ui-field-text) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body.erp-system-ui .pc-readonly-field output[data-erp-placeholder="true"] {
    color: var(--ui-placeholder) !important;
  }
  html body.erp-system-ui :where(.modal-mask, #pm-dialog, .pc-dialog, .lc-dialog)
  :where(input[type="url"], input[name="sourceUrl"], #purchaseSourceUrl) {
    color: var(--pc-link, #1677ff) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body.erp-system-ui :where(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--ui-accent);
  }
}
html body.erp-system-ui .erp-btn { min-height: 34px; padding: 7px 13px; font: inherit; cursor: pointer; }
html body.erp-system-ui .erp-control { min-height: 38px; padding: 8px 11px; border: 1px solid; font: inherit; }
@layer erpComponents {
  html body.erp-system-ui .auth-submit[aria-busy="true"] { opacity: 1 !important; cursor: wait !important; }
}

/* Existing page-specific field density and readable external labels. */
html body.erp-system-ui.erp-beauty-v2 :is(.toolbar-filters,.dash-filter-row,.quality-toolbar) :is(input:not([type=checkbox]):not([type=radio]),select,.erp-select-button,.erp-select-label){color:var(--ui-field-text)!important;-webkit-text-fill-color:currentColor!important;font-weight:400!important;font-size:12px!important}
html body.erp-system-ui.erp-beauty-v2 :is(#orders .toolbar-filters,#quality-config .quality-toolbar) :is(input:not([type=checkbox]):not([type=radio]),.erp-select-button){min-height:34px!important;border-radius:7px!important;border-color:var(--ui-border)!important}
html body.erp-system-ui.erp-beauty-v2 :is(.dash-field,.quality-search-field)>:is(span,label){color:var(--ui-label)!important;font-weight:400!important}
html body.erp-system-ui.erp-beauty-v2 :is(.toolbar-filters,.dash-filter-row,.quality-toolbar) input::placeholder{color:var(--erp-field-placeholder,#a3aebc)!important;opacity:1!important}

/* Existing dialog field sizing. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, .pc-dialog, .lc-dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]), textarea) {
  box-sizing: border-box !important;
  border: 1px solid #dfe6ef !important;
  min-height: 38px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  padding: 8px 11px !important;}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, .pc-dialog, .lc-dialog) :is(input, textarea)::placeholder {
  opacity: 1;}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, .pc-dialog, .lc-dialog) :is(input:not([type="checkbox"]):not([type="radio"]), textarea):disabled {
  cursor: not-allowed;}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, .pc-dialog, .lc-dialog) .erp-choice-trigger {
  min-height: 38px;}

@layer erpComponents.clearInputs {
 html body.erp-system-ui .erp-clear-field{position:relative;display:flex;align-items:center;flex:1;min-width:0;max-width:100%;width:100%}
 html body.erp-system-ui .erp-clear-field>input{flex:1!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;padding-right:var(--erp-clear-padding,32px)!important}
 html body.erp-system-ui .erp-clear-field>input[type=number]{appearance:textfield!important;-moz-appearance:textfield!important}
 html body.erp-system-ui .erp-clear-field>input::-webkit-inner-spin-button{appearance:none!important;margin:0!important}
 html body.erp-system-ui .erp-clear-field>input[type=search]::-webkit-search-cancel-button{appearance:none!important;display:none!important}
 html body.erp-system-ui .erp-clear-field>button.erp-input-clear{position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;height:24px!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--ui-placeholder)!important;-webkit-text-fill-color:currentColor!important;font-size:18px!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important;z-index:1}
 html body.erp-system-ui .erp-clear-field>button.erp-input-clear:hover{background:var(--ui-accent-soft)!important;color:var(--ui-accent)!important}
 html body.erp-system-ui .erp-clear-field>button.erp-input-clear[hidden]{display:none!important}
 @media(pointer:coarse){html body.erp-system-ui .erp-clear-field>button.erp-input-clear{width:30px!important;height:32px!important;right:1px!important}}

 /* Compact pagination must keep its fixed width when a clear control is added. */
 html body.erp-system-ui .erp-pagination-jump>.erp-clear-field{flex:0 0 56px!important;width:56px!important;--erp-clear-padding:20px}
 html body.erp-system-ui .erp-pagination-jump>.erp-clear-field>button.erp-input-clear{width:18px!important;right:1px!important;font-size:16px!important}
 @media(max-width:640px){html body.erp-system-ui .erp-pagination-jump>.erp-clear-field{flex-basis:64px!important;width:64px!important;--erp-clear-padding:22px}html body.erp-system-ui .erp-pagination-jump>.erp-clear-field>button.erp-input-clear{width:20px!important}}

 /* Keep the clear-button wrapper at the field's intended desktop width. */
 @media(min-width:901px){
  html body.erp-system-ui #orders .toolbar-filters>:is(#search,.erp-clear-field:has(>#search)){flex:0 1 340px!important;width:340px!important;min-width:240px!important;max-width:100%!important}
  html body.erp-system-ui #pm-app .pm-toolbar>:is(input[name=name],input[name=code],.erp-clear-field){flex:0 1 200px!important;width:200px!important;min-width:160px!important;max-width:220px!important}
  html body.erp-system-ui .office-filter>.erp-clear-field{flex:0 1 240px;width:240px}
  html body.erp-system-ui .lc-filter>.erp-clear-field{flex:0 1 260px;width:260px}
  html body.erp-system-ui .finance-search-wrap>.erp-clear-field{width:270px}
 }
}

@layer erpComponents {
/* Printing is distinct from preparing or downloading the PDF. */
html body.erp-system-ui {
  --order-purchase-action: #2b8ee9;
  --print-label-unprinted: #ef4444;
  --print-label-printed: #22a447;
}
html body.erp-system-ui :is(#orders,.print-result-dialog) .print-label-btn.is-unprinted,
html body.erp-system-ui #deleteCancelMarkMask .system-confirm-ok {
  background: var(--print-label-unprinted) !important;
  border-color: var(--print-label-unprinted) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
}
html body.erp-system-ui :is(#orders,.print-result-dialog) .print-label-btn.is-unprinted:hover,
html body.erp-system-ui #deleteCancelMarkMask .system-confirm-ok:hover:not(:disabled) {
  background: #dc3838 !important;
  border-color: #dc3838 !important;
}
html body.erp-system-ui :is(#orders,.print-result-dialog) .print-label-btn.is-printed{background:var(--print-label-printed)!important;border-color:var(--print-label-printed)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important}
html body.erp-system-ui :is(#orders,.print-result-dialog) .print-label-btn.is-printed:hover{background:#188d39!important;border-color:#188d39!important}
}

/* Customer-authorization deletion uses the same compact ERP action geometry as card deletion. */
html body.erp-system-ui :is(.lc-dialog [data-lc-delete-form] button, .lc-dialog [data-lc-delete-customer-form] button) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}
html body.erp-system-ui :is(.lc-dialog [data-lc-delete-form] button, .lc-dialog [data-lc-delete-customer-form] button) > svg {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Status glyphs inherit each state's color, including white when selected. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow .status-link>svg.erp-status-icon,
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab]>svg.erp-status-icon {
  display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;min-width:16px!important;
  margin:0!important;fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;stroke-linecap:round!important;
  stroke-linejoin:round!important;color:inherit!important;vertical-align:middle!important;pointer-events:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow .status-link>.order-status-label {min-width:0!important}
}

/* ===== passwords.css ===== */
/* One eye treatment for passwords, API secrets and dynamically created forms. */
@layer erpColorMode.overrides {
 html body .erp-password-field {box-sizing:border-box!important;display:flex!important;position:relative!important;align-items:center!important;flex:1 1 auto;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 html body .erp-password-field>input[data-erp-password-input] {box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;width:100%!important;padding-right:39px!important}
 html body .erp-password-field>button.erp-password-toggle {appearance:none!important;position:absolute!important;inset:auto 4px auto auto!important;top:0!important;bottom:0!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 28px!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin:auto 0!important;padding:5px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:var(--ui-label,#25364d)!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important;transform:none!important;font-size:0!important;line-height:1!important;cursor:pointer!important}
 html body .erp-password-field>button.erp-password-toggle::before,html body .erp-password-field>button.erp-password-toggle::after {content:none!important;display:none!important}
 html body .erp-password-field>button.erp-password-toggle:hover {background:var(--ui-accent-soft,#edf5ff)!important;color:var(--ui-accent-hover,#0958d9)!important}
 html body .erp-password-field>button.erp-password-toggle:focus-visible {outline:2px solid var(--ui-accent,#1677ff)!important;outline-offset:0!important}
 html body .erp-password-field>button.erp-password-toggle:disabled {opacity:.45!important;cursor:default!important}
 html body .erp-password-field>button.erp-password-toggle[hidden] {display:none!important}
 html body .erp-password-field>button.erp-password-toggle>svg {display:block!important;width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.5!important;stroke-linecap:round!important;stroke-linejoin:round!important;pointer-events:none!important}
 input[data-erp-password-input]::-ms-reveal,input[data-erp-password-input]::-ms-clear {display:none!important}
}

/* ===== selects.css ===== */
/* Shared dropdown geometry; existing form widths remain compatible. */
@layer erpComponents.dropdownFrames {
  /* The absolutely positioned trigger must fit inside its host's border. */
  html body.erp-system-ui .erp-select-host {
    box-sizing:border-box!important;
    border-width:1px!important;
    border-style:solid!important;
    border-color:var(--ui-border)!important;
    overflow:hidden!important;
  }
  html body.erp-system-ui .erp-select-host>.erp-select-button {
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    box-sizing:border-box!important;
    border:0!important;
  }
  html body.erp-system-ui .erp-select-host:is(.open,:focus-within) {border-color:var(--ui-accent)!important;}
}
/* v3.2.31 — 全局 ERP 自定义下拉框：不再显示浏览器/Windows 原生下拉菜单 */
body.erp-system-ui .erp-select-host{
  position:relative!important;
  display:inline-flex!important;
  align-items:stretch!important;
  vertical-align:middle!important;
  min-width:0;
  border:1px solid #c7d3dc!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.erp-system-ui .field>.erp-select-host,
body.erp-system-ui .purchase-grid .erp-select-host,
body.erp-system-ui .cancel-form-row .erp-select-host,
body.erp-system-ui .commercial-account-form .erp-select-host,
body.erp-system-ui .add-shop-modal .erp-select-host,
body.erp-system-ui .account-form-grid .erp-select-host{
  width:100%!important;
}
body.erp-system-ui .erp-select-host>select{
  opacity:0!important;
  pointer-events:none!important;
  margin:0!important;
}
body.erp-system-ui .erp-select-button{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  border:0!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#344652!important;
  padding:0 34px 0 11px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:left!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.2!important;
  cursor:pointer!important;
  box-shadow:none!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
body.erp-system-ui .erp-select-host:hover{
  border-color:color-mix(in srgb,var(--theme-accent,#20aec2) 45%,#c7d3dc)!important;
}
body.erp-system-ui .erp-select-button:hover{
  background:color-mix(in srgb,var(--theme-accent,#20aec2) 3%,#ffffff)!important;
}
body.erp-system-ui .erp-select-host.open,
body.erp-system-ui .erp-select-host:focus-within{
  border-color:var(--theme-accent,#20aec2)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent,#20aec2) 12%,transparent)!important;
}
body.erp-system-ui .erp-select-button:focus-visible{
  outline:none!important;
  box-shadow:none!important;
}
body.erp-system-ui .erp-select-button:disabled{
  cursor:not-allowed!important;
  background:#f5f7f8!important;
  color:#9aa6ad!important;
}
body.erp-system-ui .erp-select-label{
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
body.erp-system-ui .erp-select-arrow{
  position:absolute!important;
  right:11px!important;
  top:50%!important;
  width:7px!important;
  height:7px!important;
  border-right:1.6px solid #6d7b86!important;
  border-bottom:1.6px solid #6d7b86!important;
  transform:translateY(-70%) rotate(45deg)!important;
  pointer-events:none!important;
}
body .erp-choice{display:inline-flex;position:relative;min-width:0;width:100%;vertical-align:middle}
body .erp-choice select.erp-choice-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important}
body .erp-choice button.erp-choice-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:38px;padding:8px 12px!important;margin:0;background:#fff!important;border:1px solid var(--erp-border,#dfe6ee)!important;border-radius:7px!important;color:#718095!important;font:400 13px/1.5 Arial,"Microsoft YaHei",sans-serif;cursor:pointer;text-align:left;box-shadow:none;white-space:nowrap}
body .erp-choice .erp-choice-trigger span{overflow:hidden;text-overflow:ellipsis;color:inherit!important}
body .erp-choice .erp-choice-trigger:after{content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);flex:none;margin:0 2px 4px}
body .erp-choice .erp-choice-trigger[aria-expanded=true],body .erp-choice .erp-choice-trigger:focus-visible{border-color:var(--theme-accent,#20aec2)!important;outline:2px solid var(--theme-accent-soft,#dff5f8);outline-offset:1px}
body .erp-choice .erp-choice-trigger:disabled{opacity:.5;cursor:default}
body .erp-choice-menu{position:fixed;inset:auto;margin:0;padding:5px;min-width:140px;max-height:280px;overflow:auto;box-sizing:border-box;z-index:2147483600;border:1px solid var(--erp-border,#dfe6ee);border-radius:8px;background:#fff;box-shadow:0 10px 30px #223c5c24;font:13px/1.6 Arial,"Microsoft YaHei",sans-serif}
body .erp-choice-menu button.erp-choice-option{display:block;width:100%;padding:9px 11px!important;margin:0;min-height:34px;border:0!important;border-radius:5px!important;background:transparent!important;color:var(--erp-text-2,#475467)!important;white-space:normal;text-align:left;font:inherit;cursor:pointer}
body .erp-choice-menu button.erp-choice-option:hover,body .erp-choice-menu button.erp-choice-option:focus,body .erp-choice-menu button.erp-choice-option[aria-selected=true]{background:var(--theme-accent-soft,#dff5f8)!important;color:var(--theme-accent-deep,#148fa2)!important;outline:none}
body .erp-choice-menu button.erp-choice-option:disabled{opacity:.4;cursor:default}

/* Shared dropdown colors and keyboard selection states. */
@layer erpComponents {
  html body.erp-system-ui :where(.erp-select-host, .erp-choice-trigger) {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-control-radius) !important;
    background: var(--ui-surface) !important;
  }
  html body.erp-system-ui :where(.erp-select-button, .erp-choice-trigger) {
    color: var(--ui-field-text) !important;
    -webkit-text-fill-color: currentColor !important;
    font-weight: 400 !important;
  }
  html body.erp-system-ui :where(.erp-select-label, .erp-choice-trigger > span) { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  html body.erp-system-ui :where(.erp-select-button, .erp-choice-trigger)[data-erp-placeholder="true"]:not(:disabled) {
    color: var(--ui-placeholder) !important;
  }
  html body.erp-system-ui .erp-select-button { border-radius: calc(var(--ui-control-radius) - 1px) !important; }
  html body.erp-system-ui :where(.erp-select-host.open, .erp-select-host:focus-within, .erp-choice-trigger[aria-expanded="true"], .erp-choice-trigger:focus-visible) {
    border-color: var(--ui-accent) !important;
    box-shadow: var(--ui-focus-ring) !important;
    outline: none !important;
  }
  html body.erp-system-ui :where(.erp-select-host:has(select:not(:disabled)), .erp-choice-trigger:not(:disabled)):hover {
    border-color: var(--ui-accent) !important;
  }
  html body.erp-system-ui :where(.erp-select-menu, .erp-choice-menu, .pm-batch-menu) {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-menu-radius) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-menu-shadow) !important;
  }
  html body.erp-system-ui :where(.erp-choice-option) {
    color: var(--ui-label) !important;
    -webkit-text-fill-color: currentColor !important;
    background: var(--ui-surface) !important;
    font-weight: 400 !important;
    border-radius: calc(var(--ui-control-radius) - 2px) !important;
  }
  html body.erp-system-ui :where(.erp-choice-option):where(:hover, :focus, .keyboard-active):not(:disabled) {
    background: var(--ui-accent-soft) !important;
    color: var(--ui-field-text) !important;
  }
  html body.erp-system-ui :where(.erp-choice-option[aria-selected="true"]):not(:disabled) {
    background: color-mix(in srgb, var(--ui-accent) 15%, var(--ui-surface)) !important;
    color: var(--ui-field-text) !important;
    font-weight: 500 !important;
  }
  html body.erp-system-ui :where(.erp-select-button, .erp-choice-trigger):disabled {
    background: var(--ui-disabled-surface) !important;
    color: var(--ui-disabled-text) !important;
    cursor: not-allowed !important;
  }
  html body.erp-system-ui :where(.erp-choice-option):disabled {
    background: var(--ui-surface) !important;
    color: var(--ui-disabled-text) !important;
    cursor: not-allowed !important;
    opacity: .5 !important;
  }
}

/* ===== dates.css ===== */
/* Shared range fields, popup geometry, calendar cells and quick date buttons. */
/* Single shipping dates and warehouse-local arrival times share the ERP calendar. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#cargoLabelMask,#cargoVehicleDialog) .erp-single-date{outline:0!important;box-shadow:none!important}
 html body.erp-system-ui :is(#cargoLabelMask,#cargoVehicleDialog) .erp-single-date:is(:focus-within,:has(input.pc-date-active),:has(input[aria-expanded="true"])){border-color:var(--ui-accent)!important;outline:0!important;box-shadow:none!important}
 html body.erp-system-ui :is(#cargoLabelMask,#cargoVehicleDialog) .erp-single-date>input,
 html body.erp-system-ui :is(#cargoLabelMask,#cargoVehicleDialog) .erp-single-date>input:is(:focus,:focus-visible,.pc-date-active,[aria-expanded="true"]){border:0!important;border-radius:0!important;outline:0!important;outline-offset:0!important;box-shadow:none!important;background:transparent!important}
 html body.erp-system-ui :is(#cargoLabelMask,#cargoVehicleDialog) .erp-single-date>button:is(:focus,:focus-visible){outline:0!important;box-shadow:none!important}
}

@layer erpColorMode.overrides {
 html body.erp-system-ui .erp-single-date{display:flex!important;align-items:center!important;gap:4px!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;height:34px!important;padding:0 8px!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius,6px)!important;background:var(--ui-field-surface,var(--ui-surface))!important;cursor:pointer!important}
 html body.erp-system-ui .erp-single-date:focus-within{border-color:var(--ui-accent)!important;box-shadow:var(--ui-focus-ring)!important}
 html body.erp-system-ui .erp-single-date>input{flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;height:30px!important;min-height:0!important;margin:0!important;padding:0 2px!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--ui-field-text)!important;font:inherit!important;font-size:12px!important;cursor:pointer!important}
 html body.erp-system-ui .erp-single-date>button{display:grid!important;place-items:center!important;flex:none!important;width:24px!important;height:28px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-placeholder)!important;cursor:pointer!important}
 html body.erp-system-ui .erp-single-date svg{width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important}
 html body.erp-system-ui .erp-single-date>button:hover{color:var(--ui-accent)!important}
 html body.erp-system-ui .pc-calendar-single{grid-template-columns:minmax(0,1fr)!important;width:304px!important;background:var(--ui-surface)!important}
 html body.erp-system-ui .pc-calendar-single .pc-calendar-time{display:flex;align-items:center;gap:6px;padding:10px 5px 0;border-top:1px solid var(--ui-border-soft);color:var(--ui-label);font-size:12px}
 html body.erp-system-ui .pc-calendar-single .pc-calendar-time select{appearance:auto!important;width:54px!important;min-width:54px!important;height:30px!important;padding:2px 5px!important;border:1px solid var(--ui-border)!important;border-radius:5px!important;background:var(--ui-field-surface,var(--ui-surface))!important;color:var(--ui-field-text)!important;font:inherit!important}
 html body.erp-system-ui .pc-calendar-single .pc-calendar-time button{margin-left:auto!important;padding:4px 10px!important;border-radius:5px!important;background:var(--ui-accent)!important;color:#fff!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui .pc-calendar-single .pc-calendar-time button:disabled{opacity:.45;cursor:default}
}
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#dashboard #dashDateRange,#procurement #procurement-app .pc-date-range,#financeRebuildConfirmMask #financeRebuildDateRange,.pc-date-range,.erp-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates) input {
  box-sizing:border-box!important;border:1px solid transparent!important;border-radius:4px!important;
  height:calc(100% - 8px)!important;min-height:0!important;max-height:calc(100% - 8px)!important;margin:0 2px!important;
  outline:none!important;outline-offset:0!important;box-shadow:none!important;transition:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#dashboard #dashDateRange,#procurement #procurement-app .pc-date-range,#financeRebuildConfirmMask #financeRebuildDateRange,.pc-date-range,.erp-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates) input:is(:focus,:focus-visible,.pc-date-active) {
  border-color:var(--ui-accent)!important;outline:none!important;outline-offset:0!important;box-shadow:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#dashboard #dashDateRange,#procurement #procurement-app .pc-date-range,#financeRebuildConfirmMask #financeRebuildDateRange,.pc-date-range,.erp-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):is(:focus-within,:has(input.pc-date-active)) {
  border-color:var(--ui-accent)!important;outline:none!important;box-shadow:none!important;
 }
}
#procurement #procurement-app .pc-date-range{display:flex;align-items:center;flex:0 1 284px;width:284px;max-width:100%;min-width:0;height:32px;border:1px solid #dbe3ec;border-radius:5px;background:#fff;overflow:hidden;gap:2px}
#procurement #procurement-app .pc-date-range:focus-within{border-color:var(--pc-accent);outline:1px solid var(--pc-accent)}
body.erp-system-ui #procurement #procurement-app .pc-date-range input{border:0!important;box-shadow:none!important;outline:0!important;border-radius:0!important;background:transparent!important;font:400 12px/1.6 Arial,"Microsoft YaHei",sans-serif!important;color:#6d7b8d!important;flex:1;width:0!important;height:30px!important;min-height:30px!important;min-width:0!important;padding:4px!important}
#procurement #procurement-app .pc-date-range>span{color:#a1acba;flex:none}
#procurement #procurement-app .pc-date-range button{border:0!important;background:transparent;padding:0 7px;min-height:0;font-size:18px;color:#9ca8b6}

body.erp-system-ui #finance .finance-date-range{display:flex;align-items:center;gap:2px;width:284px;max-width:100%;min-width:0;height:34px;box-sizing:border-box;border:1px solid #dbe3ec;border-radius:6px;background:#fff;overflow:hidden;cursor:pointer}
body.erp-system-ui #finance .finance-date-range:focus-within{border-color:var(--mg-accent);outline:1px solid var(--mg-accent)}
body.erp-system-ui #finance .finance-date-field .finance-date-range input{flex:1;min-width:0!important;width:0!important;height:32px!important;min-height:32px!important;box-sizing:border-box;padding:4px 6px!important;margin:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#6d7b8d!important;-webkit-text-fill-color:currentColor!important;font:400 12px/1.6 Arial,"Microsoft YaHei",sans-serif!important;text-align:center;cursor:pointer}
body.erp-system-ui #finance .finance-date-field .finance-date-range input.pc-date-active{border:1px solid var(--mg-accent)!important;border-radius:5px!important;box-shadow:inset 0 -2px var(--mg-accent)!important}
body.erp-system-ui #finance .finance-date-range .finance-range-arrow{flex:none;color:#a1acba!important;font-size:16px}
body.erp-system-ui #finance .finance-date-range button{display:flex;align-items:center;justify-content:center;flex:0 0 23px;width:23px!important;min-width:0!important;height:30px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:4px!important;box-shadow:none!important;background:transparent!important;color:#9ca8b6!important;-webkit-text-fill-color:currentColor!important;font-size:18px!important;cursor:pointer}
body.erp-system-ui #finance .finance-date-range button:hover{color:var(--mg-accent)!important;background:var(--mg-soft)!important}
body.erp-system-ui #finance .finance-date-range button:focus-visible{outline:1px solid var(--mg-accent)!important;outline-offset:-2px!important}
body.erp-system-ui #finance .finance-date-range svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6}

/* One range field opens the same two-month calendar for either endpoint. */
body.erp-system-ui #procurement #procurement-app .pc-date-range input{cursor:pointer;text-align:center;padding:4px 6px!important}
body.erp-system-ui #procurement #procurement-app .pc-date-range input.pc-date-active{border:1px solid var(--pc-accent)!important;border-radius:6px!important;box-shadow:inset 0 -2px var(--pc-accent)!important;color:#687b92!important}
#procurement #procurement-app .pc-date-range .pc-range-arrow{font-size:16px;color:#b3bdc9}
#procurement #procurement-app .pc-date-range .pc-calendar-icon{display:flex;align-items:center;justify-content:center;padding:0 5px;color:#a5afbc}
#procurement #procurement-app .pc-calendar-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6}
.pc-calendar{--pc-cal-accent:var(--theme-accent,#20aec2);--pc-cal-soft:var(--theme-accent-soft,#dff5f8);position:fixed;inset:auto;z-index:10020;margin:0;width:592px;max-width:calc(100vw - 16px);max-height:calc(100vh - 24px);overflow:auto;border:1px solid #e6ecf4;border-radius:9px;padding:5px 7px 9px;background:#f9fbff;box-shadow:0 5px 20px #29496e22;display:grid;grid-template-columns:1fr 1fr;gap:10px;font:400 13px/1.5 Arial,"Microsoft YaHei",sans-serif;color:#5d6d83;box-sizing:border-box}
.pc-calendar[hidden]{display:none!important}.pc-calendar::backdrop{background:transparent}
.pc-calendar *{box-sizing:border-box}.pc-calendar-month{min-width:0}
.pc-calendar-month header{height:38px;display:grid;grid-template-columns:52px 1fr 52px;align-items:center;text-align:center;border-bottom:1px solid #eaf0f7;font-weight:400;color:#4d5d74}
.pc-calendar-nav{display:flex;align-items:center;justify-content:center}
body.erp-system-ui .pc-calendar button{font:400 13px/1.5 Arial,"Microsoft YaHei",sans-serif!important;cursor:pointer;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;min-width:0;min-height:0;margin:0;padding:0;color:#526177!important;-webkit-text-fill-color:currentColor!important}
body.erp-system-ui .pc-calendar .pc-calendar-nav button{width:25px;height:30px;font-size:20px!important;color:var(--pc-cal-accent)!important}
.pc-calendar-week,.pc-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.pc-calendar-week{height:35px;align-items:center;color:#8391a3;font-size:12px}
body.erp-system-ui .pc-calendar .pc-calendar-day{height:32px;display:grid;place-items:center;position:relative}
.pc-calendar-day span{display:grid;place-items:center;width:27px;height:27px;border:1px solid transparent;border-radius:4px;position:relative}
body.erp-system-ui .pc-calendar .pc-calendar-outside{color:#b8c2ce!important}
body.erp-system-ui .pc-calendar .pc-calendar-between{background:var(--pc-cal-soft)!important}
.pc-calendar-day:hover span{background:var(--pc-cal-soft);color:var(--pc-cal-accent)}
.pc-calendar-today span{border-color:var(--pc-cal-accent)}
.pc-calendar-selected span{background:var(--pc-cal-accent)!important;color:#fff!important;border-color:var(--pc-cal-accent)}
.pc-calendar button:focus-visible{outline:1px solid var(--pc-cal-accent)!important;outline-offset:-2px}
@media(max-width:460px){.pc-calendar{grid-template-columns:1fr;width:300px;gap:0}}


/* One ERP button treatment for every quick date filter. */
html body.erp-system-ui :is(#dashboard #dashQuickRange,#finance .finance-quick,#finance-report .finance-quick,#returns .returns-range-v3300){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body.erp-system-ui :is(#dashboard #dashQuickRange,#finance .finance-quick,#finance-report .finance-quick,#returns .returns-range-v3300)>button{height:34px!important;min-height:34px!important;padding:0 12px!important;border:1px solid #dbe3ec!important;border-radius:6px!important;background:#fff!important;color:#6d7b8d!important;-webkit-text-fill-color:currentColor!important;font:400 12px/1.5 Arial,"Microsoft YaHei",sans-serif!important;box-shadow:none!important;white-space:nowrap;cursor:pointer}
html body.erp-system-ui :is(#dashboard #dashQuickRange,#finance .finance-quick,#finance-report .finance-quick,#returns .returns-range-v3300)>button:not(.active):hover{color:var(--theme-accent,#20aec2)!important;border-color:var(--theme-accent,#20aec2)!important;background:var(--theme-accent-soft,#dff5f8)!important}
html body.erp-system-ui :is(#dashboard #dashQuickRange,#finance .finance-quick,#finance-report .finance-quick,#returns .returns-range-v3300)>button.active{background:var(--theme-accent,#20aec2)!important;border-color:var(--theme-accent,#20aec2)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body.erp-system-ui :is(#dashboard #dashQuickRange,#finance .finance-quick,#finance-report .finance-quick,#returns .returns-range-v3300)>button.active:hover{background:var(--theme-accent-deep,#148fa2)!important;border-color:var(--theme-accent-deep,#148fa2)!important}
html body.erp-system-ui :is(#dashboard #dashQuickRange,#finance .finance-quick,#finance-report .finance-quick,#returns .returns-range-v3300)>button:focus-visible{outline:2px solid var(--theme-accent,#20aec2)!important;outline-offset:2px!important}

/* Opt-in range field for new modules; the controller receives start/end elements. */
@layer erpComponents {
 html body.erp-system-ui :where(.erp-date-range) {display:flex;align-items:center;gap:2px;width:284px;max-width:100%;height:34px;border:1px solid var(--ui-border);border-radius:var(--ui-control-radius);background:var(--ui-surface);overflow:hidden;cursor:pointer;}
 html body.erp-system-ui :where(.erp-date-range) input {flex:1;width:0!important;min-width:0!important;height:32px!important;min-height:32px!important;padding:4px 6px!important;border:0!important;outline:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center;cursor:pointer;}
 html body.erp-system-ui :where(.erp-date-range)>span {flex:none;color:var(--ui-placeholder);}
 html body.erp-system-ui .erp-date-range>button {display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;min-width:0!important;height:30px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:4px!important;box-shadow:none!important;background:transparent!important;color:var(--ui-placeholder)!important;-webkit-text-fill-color:currentColor!important;font-size:18px!important;cursor:pointer!important;}
 html body.erp-system-ui .erp-date-range>button:hover {color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important;}
 html body.erp-system-ui .erp-date-range>button:focus-visible {outline:1px solid var(--ui-accent)!important;outline-offset:-2px!important;}
 html body.erp-system-ui .erp-date-range>button svg {width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;}
}
/* Range colors and quick actions use the same tokens as all other controls. */
@layer erpComponents {
  html body.erp-system-ui :where(#procurement .pc-date-range, #finance .finance-date-range, .erp-date-range) {
    border-color: var(--ui-border) !important;
    border-radius: var(--ui-control-radius) !important;
    background: var(--ui-surface) !important;
  }
  html body.erp-system-ui :where(#procurement .pc-date-range, #finance .finance-date-range, .erp-date-range):focus-within {
    border-color: var(--ui-accent) !important;
    box-shadow: var(--ui-focus-ring) !important;
    outline: none !important;
  }
  html body.erp-system-ui :where(#procurement .pc-date-range, #finance .finance-date-range, .erp-date-range) input {
    color: var(--ui-field-text) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body.erp-system-ui :where(#procurement .pc-date-range, #finance .finance-date-range, .erp-date-range) input.pc-date-active {
    border-color: var(--ui-accent) !important;
    color: var(--ui-field-text) !important;
    box-shadow: inset 0 -2px var(--ui-accent) !important;
  }
  html body.erp-system-ui .pc-calendar {
    --pc-cal-accent: var(--ui-accent);
    --pc-cal-soft: var(--ui-accent-soft);
    border-color: var(--ui-border) !important;
    border-radius: var(--ui-menu-radius) !important;
    box-shadow: var(--ui-menu-shadow) !important;
  }
  html body.erp-system-ui .pc-calendar-selected span {
    background: var(--ui-accent) !important;
    color: #fff !important;
    -webkit-text-fill-color: currentColor !important;
    border-color: var(--ui-accent) !important;
  }
  html body.erp-system-ui :where(#dashQuickRange, .finance-quick, .returns-range-v3300) > button {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-control-radius) !important;
    background: var(--ui-surface) !important;
    color: var(--ui-label) !important;
    -webkit-text-fill-color: currentColor !important;
    transition: background-color var(--ui-motion), border-color var(--ui-motion), color var(--ui-motion) !important;
  }
  html body.erp-system-ui :where(#dashQuickRange, .finance-quick, .returns-range-v3300) > button:hover:not(:disabled) {
    border-color: var(--ui-accent) !important;
    background: var(--ui-accent-soft) !important;
    color: var(--ui-label) !important;
  }
  html body.erp-system-ui :where(#dashQuickRange, .finance-quick, .returns-range-v3300) > button.active {
    border-color: var(--ui-accent) !important;
    background: var(--ui-accent) !important;
    color: #fff !important;
  }
  html body.erp-system-ui :where(#dashQuickRange, .finance-quick, .returns-range-v3300) > button.active:hover:not(:disabled) {
    border-color: var(--ui-accent-hover) !important;
    background: var(--ui-accent-hover) !important;
    color: #fff !important;
  }
  html body.erp-system-ui :where(#dashQuickRange, .finance-quick, .returns-range-v3300) > button:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
  }
}

/* The finance toolbar moves between overview and report; both mounts share
 * complete button states, including the neutral border and dark-mode tokens. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#finance,#finance-report) .finance-quick>button[data-finance-range]{border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius)!important;background:var(--ui-surface)!important;color:var(--ui-label)!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important}
 html body.erp-system-ui :is(#finance,#finance-report) .finance-quick>button[data-finance-range]:hover:not(:disabled){border-color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important}
 html body.erp-system-ui :is(#finance,#finance-report) .finance-quick>button[data-finance-range].active{border-color:var(--ui-accent)!important;background:var(--ui-accent)!important;color:var(--ui-button-text,#fff)!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui :is(#finance,#finance-report) .finance-quick>button[data-finance-range].active:hover:not(:disabled){border-color:var(--ui-accent-hover)!important;background:var(--ui-accent-hover)!important}
 html body.erp-system-ui :is(#finance,#finance-report) .finance-quick>button[data-finance-range]:focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
}

/* Dashboard status targets remain available to installed scripts, while every
 * message is relayed to the login-style notice without an inline placeholder. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #dashboard :is(#dashRefreshStatus,#dashActiveStatus){display:none!important;margin:0!important;min-height:0!important;padding:0!important}
}

@layer erpComponents {
 html body.erp-system-ui #dashboard #dashDateRange{display:flex!important;align-items:center!important;gap:2px!important;width:284px!important;max-width:100%!important;min-width:0!important;height:34px!important;box-sizing:border-box!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius)!important;background:var(--ui-field-surface)!important;padding:0 4px!important;cursor:pointer!important;overflow:hidden!important}
 html body.erp-system-ui #dashboard #dashDateRange:focus-within{border-color:var(--ui-accent)!important;outline:1px solid var(--ui-accent)!important}
 html body.erp-system-ui #dashboard #dashDateRange input{flex:1!important;width:0!important;min-width:0!important;height:30px!important;padding:4px!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:4px!important;text-align:center!important;color:var(--ui-field-text)!important;cursor:pointer!important}
 html body.erp-system-ui #dashboard #dashDateRange input.pc-date-active{box-shadow:inset 0 -2px var(--ui-accent)!important}
 html body.erp-system-ui #dashboard #dashDateRange button{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;min-width:0!important;height:28px!important;min-height:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:var(--ui-placeholder)!important;-webkit-text-fill-color:currentColor!important;font-size:18px!important;cursor:pointer!important}
 html body.erp-system-ui #dashboard #dashDateRange button:hover{color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important}
 html body.erp-system-ui #dashboard #dashDateRange button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6}
 html body.erp-system-ui #dashboard .dash-refresh-status{margin:2px 4px 12px!important;min-height:18px;color:var(--ui-text)!important;font-size:12px!important}
 html body.erp-system-ui #dashboard .dash-refresh-status.is-error{color:var(--ui-danger)!important}
 html body.erp-system-ui #dashboard .dash-refresh-status[hidden]{display:none!important}
 html body.erp-system-ui #dashboard .dash-active-status{display:block;min-height:16px;color:var(--ui-text)!important;font-size:11px!important;font-weight:400!important}
 html body.erp-system-ui #dashboard .dash-active-status[hidden]{display:none!important}
 html body.erp-system-ui .ship-pending-label{color:var(--ui-accent)!important;font-size:12px!important}
 @media(max-width:640px){html body.erp-system-ui #dashboard #dashDateRange{width:100%!important;max-width:340px!important;height:46px!important}html body.erp-system-ui #dashboard #dashDateRange input{height:42px!important;font-size:16px!important}html body.erp-system-ui #dashboard #dashDateRange button{height:42px!important;flex-basis:28px!important}}
}

/* Shared ERP range field inside the finance rebuild confirmation. */
html body.erp-system-ui #financeRebuildConfirmMask .finance-rebuild-dates{display:flex;flex-direction:column;gap:6px;margin:10px 0;}
html body.erp-system-ui #financeRebuildConfirmMask #financeRebuildDateRange{display:flex;align-items:center;gap:2px;width:100%;min-width:0;height:36px;box-sizing:border-box;border:1px solid var(--ui-border,#dbe3ec);border-radius:6px;background:var(--ui-surface,#fff);cursor:pointer;overflow:hidden;}
html body.erp-system-ui #financeRebuildConfirmMask #financeRebuildDateRange:focus-within{border-color:var(--theme-accent,#20aec2);outline:1px solid var(--theme-accent,#20aec2);}
html body.erp-system-ui #financeRebuildConfirmMask #financeRebuildDateRange input{flex:1;width:0!important;min-width:0!important;height:34px!important;min-height:0!important;margin:0!important;padding:4px 6px!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--ui-text,#6d7b8d)!important;font:400 12px/1.6 Arial,"Microsoft YaHei",sans-serif!important;text-align:center;cursor:pointer;}
html body.erp-system-ui #financeRebuildConfirmMask #financeRebuildDateRange input.pc-date-active{box-shadow:inset 0 -2px var(--theme-accent,#20aec2)!important;}
html body.erp-system-ui #financeRebuildConfirmMask #financeRebuildDateRange>span{flex:none;color:var(--dm-muted,#a1acba);}
html body.erp-system-ui #financeRebuildConfirmMask #financeRebuildDateRange button{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px!important;min-width:0!important;height:32px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--dm-muted,#9ca8b6)!important;cursor:pointer;}
html body.erp-system-ui #financeRebuildConfirmMask #financeRebuildDateRange svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;}
html body.erp-system-ui .pc-calendar .pc-calendar-day:disabled{opacity:.35;cursor:default;}

/* Dashboard dates reserve room for both complete dates and their two actions. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #dashboard #dashDateRange {box-sizing:border-box!important;display:flex!important;align-items:center!important;flex:0 0 252px!important;width:252px!important;min-width:252px!important;max-width:252px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0 6px!important;gap:2px!important;overflow:hidden!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #dashboard #dashDateRange>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;letter-spacing:normal!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #dashboard #dashDateRange>span {flex:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #dashboard #dashDateRange>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;padding:0!important;margin:0!important}
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #dashboard #dashDateRange {flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important}
 }
}

/* ===== dialogs.css ===== */
/* Dialog appearance is independent of native dialog/top-layer and hidden-state behavior. */
@layer erpColorMode.overrides {
  #detailMask .detail-modal {
    --order-detail-icon: #1769c5;
    --order-detail-muted: var(--dm-muted, #60738a);
    --order-detail-thumb-width: 60px;
    width: min(940px, calc(100vw - 36px)) !important;
    max-height: calc(100dvh - 36px) !important;
  }
  :where(html[data-erp-mode="dark"]) #detailMask .detail-modal {
    --order-detail-icon: #89bdff;
  }
  #detailMask .modal-head[data-erp-custom-heading] {
    min-height: 60px !important;
    height: auto !important;
    padding: 10px 16px !important;
  }
  #detailMask #detailTitle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    line-height: 1.35 !important;
    font-size: 15px !important;
  }
  #detailMask :is(.order-detail-title-icon, .order-detail-section-icon) {
    display: inline-grid;
    flex: none;
    place-items: center;
    border-radius: 7px;
    color: var(--detail-section-accent, var(--order-detail-icon));
    background: color-mix(in srgb, currentColor 10%, var(--ui-surface));
  }
  #detailMask .order-detail-title-icon { width: 34px; height: 34px; }
  #detailMask .order-detail-title-icon svg { width: 19px; height: 19px; }
  #detailMask .order-detail-section-icon { width: 28px; height: 28px; }
  #detailMask .order-detail-section-icon svg { width: 16px; height: 16px; }
  #detailMask #detailBody {
    padding: 14px 16px 16px !important;
    max-height: none !important;
    scrollbar-gutter: stable !important;
    min-height: 0;
  }
  #detailMask .order-detail-section {
    padding: 12px 14px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: var(--ui-field-surface);
  }
  #detailMask [data-detail-icon="note"] { --detail-section-accent: #287de2; }
  #detailMask [data-detail-icon="package"] { --detail-section-accent: #c17d16; }
  #detailMask [data-detail-icon="truck"] { --detail-section-accent: #0d8fa1; }
  #detailMask [data-detail-icon="cart"] { --detail-section-accent: #7b56c4; }
  html[data-erp-mode="dark"] #detailMask .order-detail-section-icon {
    color: color-mix(in srgb, var(--detail-section-accent) 65%, #fff);
  }
  #detailMask .order-detail-section + .order-detail-section { margin-top: 12px; }
  #detailMask .order-detail-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px 10px;
    margin-bottom: 10px;
  }
  #detailMask .order-detail-section-head h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--ui-text);
    font-size: 13px;
    font-weight: 700;
  }
  #detailMask .order-detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
  #detailMask .order-detail-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
    padding: 0;
  }
  #detailMask .order-detail-fields dt {
    margin: 0 0 2px;
    color: var(--order-detail-muted);
    font-size: 11.5px;
  }
  #detailMask .order-detail-fields dd {
    margin: 0;
    color: var(--ui-text);
    overflow-wrap: anywhere;
    font-size: 12.5px;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
  }
  #detailMask .order-detail-copy {
    display: inline;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--order-detail-icon) !important;
    -webkit-text-fill-color: currentColor !important;
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  #detailMask .order-detail-copy:hover { text-decoration: underline; }
  #detailMask #detailTitle .order-detail-copy { font-size: 12px; font-weight: 600; }
  #detailMask :is(.order-detail-products-wrap, .order-detail-empty, .order-detail-packages) {
    border: 1px solid var(--ui-border);
    border-radius: 8px;
  }
  #detailMask .order-detail-products-wrap { overflow: hidden; background: var(--ui-surface); }
  #detailMask .order-detail-products {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--ui-text);
  }
  #detailMask .order-detail-products :is(th, td) { padding: 10px 12px; }
  #detailMask .order-detail-products th { background: var(--ui-field-surface); text-align: left; }
  #detailMask .order-detail-products td { border-top: 1px solid var(--ui-border-soft); vertical-align: middle; }
  #detailMask .order-detail-products :is(th, td):nth-child(2) { width: 64px; text-align: center; }
  #detailMask .order-detail-products :is(th, td):nth-child(3) { width: 96px; text-align: center; }
  #detailMask .order-detail-product { display: flex; align-items: center; gap: 12px; min-width: 0; }
  #detailMask .order-detail-product > .erp-order-image {
    width: var(--order-detail-thumb-width) !important;
    height: calc(var(--order-detail-thumb-width) * 4 / 3) !important;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--ui-surface);
  }
  #detailMask :is(.order-detail-thumb, .order-detail-thumb-placeholder) {
    box-sizing: border-box !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--ui-surface) !important;
  }
  #detailMask :is(.order-detail-thumb, .order-detail-thumb-placeholder):focus-visible {
    outline: 2px solid var(--order-detail-icon);
    outline-offset: -3px;
  }
  #detailMask .order-detail-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px !important;
    color: var(--order-detail-muted);
    font-size: 10px;
    line-height: 1.4;
    white-space: normal;
  }
  #detailMask .order-detail-product-text { flex: 1; min-width: 0; }
  #detailMask .order-detail-product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.6;
    font-weight: 500;
  }
  #detailMask .order-detail-product-meta {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    color: var(--order-detail-muted);
    font-size: 11px;
  }
  #detailMask .order-detail-product-meta > span { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
  #detailMask .order-detail-meta-label { flex: 0 0 28px; }
  #detailMask .order-detail-quantity {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    min-height: 26px;
    padding: 0 5px;
    border-radius: 6px;
    background: var(--ui-field-surface);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  #detailMask .order-detail-unit-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
  #detailMask :is(.order-detail-empty, .order-detail-packages) { padding: 9px 11px; }
  #detailMask .order-detail-empty { color: var(--order-detail-muted); }
  #detailMask .order-detail-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 9px 14px;
    overflow-wrap: anywhere;
  }
  #detailMask .order-detail-fields + .order-detail-packages { margin-top: 6px; }
  @media (max-width: 640px) {
    #detailMask { padding: 8px !important; }
    #detailMask .detail-modal {
      --order-detail-thumb-width: 48px;
      width: calc(100vw - 16px) !important;
      max-width: calc(100vw - 16px) !important;
      max-height: calc(100dvh - 16px) !important;
    }
    #detailMask #detailBody { padding: 10px !important; }
    #detailMask .order-detail-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #detailMask .order-detail-section { padding: 10px; }
    #detailMask .order-detail-fields { gap: 10px; }
    #detailMask .order-detail-products :is(th, td) { padding: 8px 6px; }
    #detailMask .order-detail-products :is(th, td):nth-child(2) { width: 34px; }
    #detailMask .order-detail-products :is(th, td):nth-child(3) { width: 74px; }
    #detailMask .order-detail-product { gap: 8px; }
    #detailMask .order-detail-product-name { -webkit-line-clamp: 3; }
    #detailMask .order-detail-product-meta { font-size: 10px; }
  }
}

html body.erp-system-ui.erp-beauty-v2 :is(.modal,.lc-dialog,.pc-dialog,.pm-portal){border:1px solid var(--ui-border)!important;border-radius:12px!important;box-shadow:0 22px 64px #20344c24!important}
html body.erp-system-ui.erp-beauty-v2 .modal-mask{background:rgba(28,42,61,.34)!important;backdrop-filter:blur(3px)}
html body.erp-system-ui.erp-beauty-v2 :is(.lc-dialog,.pc-dialog,.pm-portal)::backdrop{background:rgba(28,42,61,.34)!important;backdrop-filter:blur(3px)}
html body.erp-system-ui.erp-beauty-v2 :is(.modal-head,.pm-dialog-head){border-bottom-color:var(--ui-border-soft)!important;background:#fff!important}
html body.erp-system-ui.erp-beauty-v2 :is(.modal-head b,.pm-dialog-head h3,.lc-dialog header h2,.pc-dialog header b){color:var(--ui-text)!important;font-weight:600!important}
html body.erp-system-ui.erp-beauty-v2 :is(.modal-close,.pm-icon-btn[data-close],.pc-dialog [data-pc-close],.lc-dialog [data-lc-close]){border-radius:7px!important;box-shadow:none!important;background:#f7f9fc!important;color:var(--ui-label)!important}
html body.erp-system-ui.erp-beauty-v2 :is(.modal-close,.pm-icon-btn[data-close],.pc-dialog [data-pc-close],.lc-dialog [data-lc-close]):hover{background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important}
html body.erp-system-ui.erp-beauty-v2 .pc-dialog :is(.pc-edit-grid label>span,.pc-readonly-field>span){font-size:12px;color:var(--ui-label)!important;font-weight:400}
html body.erp-system-ui.erp-beauty-v2 :is(.lc-dialog,.pc-dialog) header{padding-bottom:16px;border-bottom:1px solid var(--ui-border-soft);margin-bottom:18px}
html body.erp-system-ui.erp-beauty-v2 :is(.lc-dialog,.pc-dialog) footer{padding-top:16px;border-top:1px solid var(--ui-border-soft);margin-top:18px;gap:8px}
html body.erp-system-ui.erp-beauty-v2 #pm-editor .pm-editor-head{border-bottom:1px solid var(--ui-border)!important;background:#fff!important}
html body.erp-system-ui.erp-beauty-v2 #pm-editor .pm-editor-scroll{background:#f6f8fc!important}
html body.erp-system-ui.erp-beauty-v2 #pm-editor :is(.pm-editor-section,.pm-section){border-color:var(--ui-border)!important;border-radius:10px!important;box-shadow:var(--v2-shadow)!important}
html body.erp-system-ui.erp-beauty-v2 #pm-editor :is(.pm-form-label,.pm-section-title){color:var(--ui-label)!important}
html body.erp-system-ui.erp-beauty-v2 #pm-editor .pm-anchor-nav{border-color:var(--ui-border)!important;border-radius:9px!important;box-shadow:var(--v2-shadow)!important}
html body.erp-system-ui.erp-beauty-v2 #pm-editor .pm-editor-footer{border-top-color:var(--ui-border)!important;box-shadow:0 -4px 18px #24385005!important}


/* Ozon ERP 4.6.1 · Shared dialog presentation.
 * Dialog visibility stays with its module; no open/hidden overrides.
 * Decorative header masks survive dynamic textContent updates without DOM hooks.
 */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 {
  --dlg-accent: var(--ui-accent);
  --dlg-deep: var(--ui-accent-hover);
  --dlg-soft: var(--ui-accent-soft);
  --dlg-text: var(--ui-text);
  --dlg-label: var(--ui-label);
  --dlg-muted: #8492a5;
  --dlg-line: #e5ebf2;
  --dlg-ink: #4b7ed6;
  --dlg-wash: #edf3ff;
  --dlg-icon: var(--v3-icon-log);
  --dlg-pad: var(--ui-dialog-padding);
}

/* One frame for legacy overlays and native dialog elements. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask {
  background: var(--ui-overlay) !important;
  backdrop-filter: blur(3px) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.pm-portal, .pc-dialog, .lc-dialog, .rc-dialog)::backdrop {
  background: var(--ui-overlay);
  backdrop-filter: blur(3px);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask > .modal, #pm-dialog, .lc-dialog, .pc-dialog, .rc-dialog) {
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 40px) !important;
  border: 1px solid #dfe7f0 !important;
  border-radius: var(--ui-dialog-radius) !important;
  background: #fff !important;
  box-shadow: var(--ui-dialog-shadow) !important;
  scrollbar-width: thin;
  scrollbar-color: #ced8e4 transparent;
  overscroll-behavior: contain;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.lc-dialog, .pc-dialog) {
  padding: var(--dlg-pad) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#purchaseMask, #addShopMask, #weightMask, #orderNoteMask, #cancelMarkMask) > .modal {
  overflow: auto !important;
}

/* The title badge belongs to the header, never to its changing title string. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head, #pm-dialog .pm-dialog-head, #pm-editor .pm-dialog-head, .lc-dialog > header, .pc-dialog > header, .rc-dialog > header) {
  position: relative;
  box-sizing: border-box !important;
  min-height: 78px !important;
  height: auto !important;
  padding: 17px var(--dlg-pad) !important;
  gap: 14px !important;
  border-bottom: 1px solid var(--dlg-line) !important;
  background: linear-gradient(115deg, #fff 25%, color-mix(in srgb, var(--dlg-wash) 52%, #fff)) !important;
  border-radius: 15px 15px 0 0 !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head, #pm-dialog .pm-dialog-head, #pm-editor .pm-dialog-head, .lc-dialog > header, .pc-dialog > header):not(:has(.lc-issue-emblem)):not([data-erp-custom-heading]) {
  padding-left: calc(var(--dlg-pad) + 56px) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head, #pm-dialog .pm-dialog-head, #pm-editor .pm-dialog-head, .lc-dialog > header, .pc-dialog > header):not(:has(.lc-issue-emblem)):not([data-erp-custom-heading])::before {
  content: "" !important;
  position: absolute;
  left: var(--dlg-pad);
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--dlg-ink) 14%, #fff);
  border-radius: 12px;
  background: linear-gradient(140deg, #fff, var(--dlg-wash));
  box-shadow: 0 3px 8px color-mix(in srgb, var(--dlg-ink) 8%, transparent);
  pointer-events: none;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head, #pm-dialog .pm-dialog-head, #pm-editor .pm-dialog-head, .lc-dialog > header, .pc-dialog > header):not(:has(.lc-issue-emblem)):not([data-erp-custom-heading])::after {
  content: "" !important;
  position: absolute;
  left: calc(var(--dlg-pad) + 11px);
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--dlg-ink);
  -webkit-mask: var(--dlg-icon) center / contain no-repeat;
  mask: var(--dlg-icon) center / contain no-repeat;
  pointer-events: none;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.lc-dialog, .pc-dialog) > header {
  margin: calc(-1 * var(--dlg-pad)) calc(-1 * var(--dlg-pad)) 22px !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, #pm-editor, .lc-dialog, .pc-dialog, .rc-dialog) :is(.modal-head > b, .modal-head > strong, .modal-head > div > b, .pm-dialog-head h3, header > h2, header > b) {
  margin: 0 !important;
  min-width: 0;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: var(--dlg-text) !important;
  -webkit-text-fill-color: currentColor !important;
  overflow-wrap: anywhere;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .modal-head > div {
  min-width: 0;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .modal-head > div > span {
  font-size: 12px !important;
  line-height: 1.65 !important;
  color: var(--dlg-muted) !important;
  font-weight: 400 !important;
}
/* Replace the previous small title glyphs with the shared 42px badge. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#createAccountMask, #userManageMask) .modal-head > b::before,
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-dialog > header b::before {
  content: none !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head, #pm-dialog .pm-dialog-head, #pm-editor .pm-dialog-head, .lc-dialog > header, .pc-dialog > header, .rc-dialog > header) > button {
  box-sizing: border-box;
  flex: 0 0 32px;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e3e9f1 !important;
  border-radius: 9px !important;
  background: #ffffffc9 !important;
  color: #7e8b9d !important;
  -webkit-text-fill-color: currentColor !important;
  font: 400 22px/28px Arial, sans-serif !important;
  box-shadow: none !important;
  cursor: pointer;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head, #pm-dialog .pm-dialog-head, #pm-editor .pm-dialog-head, .lc-dialog > header, .pc-dialog > header, .rc-dialog > header) > button:hover:not(:disabled) {
  background: var(--dlg-soft) !important;
  border-color: color-mix(in srgb, var(--dlg-accent) 32%, var(--dlg-line)) !important;
  color: var(--dlg-deep) !important;
}

/* Semantic colors identify the task; interactive states still use the ERP theme. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #purchaseMask,
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-dialog {
  --dlg-ink: #c28a2c; --dlg-wash: #fff5e4; --dlg-icon: var(--dlg-icon-cart);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#pm-dialog, #pm-editor, .rc-dialog) {
  --dlg-ink: #8560c8; --dlg-wash: #f3eefe; --dlg-icon: var(--v3-icon-package);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#pm-editor, .rc-dialog) { --dlg-icon: var(--v3-icon-edit); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #addShopMask,
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .ss-dialog {
  --dlg-ink: #1a93a5; --dlg-wash: #eaf8fa; --dlg-icon: var(--v3-icon-store);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .ss-dialog { --dlg-icon: var(--v3-icon-sync); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #licenseManageMask,
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog {
  --dlg-ink: #8560c8; --dlg-wash: #f3eefe; --dlg-icon: var(--v3-icon-key);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#currentAccountInfoMask, #createAccountMask, #userManageMask, #accountDetailMask, #createTenantMask, .lc-dialog:has([data-lc-customer])) {
  --dlg-ink: #4b7ed6; --dlg-wash: #edf3ff; --dlg-icon: var(--v3-icon-users);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#passwordManageMask, #clickAdsApiManagerMask) {
  --dlg-ink: #8560c8; --dlg-wash: #f3eefe; --dlg-icon: var(--v3-icon-shield);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#qualityCreateMask, #financeFeeDetailMaskV3307, #orderProfitAnalysisMaskV3254) {
  --dlg-ink: #249572; --dlg-wash: #eaf8f1; --dlg-icon: var(--v3-icon-chart);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #qualityCreateMask { --dlg-icon: var(--v3-icon-shield); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 {
  --dlg-ink: #4b7ed6; --dlg-wash: #edf3ff; --dlg-icon: var(--v3-icon-settings);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#dashMask, #skuHistoryMask) { --dlg-icon: var(--v3-icon-chart); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orderNoteMask {
  --dlg-ink: #4b7ed6; --dlg-wash: #edf3ff; --dlg-icon: var(--v3-icon-edit);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #weightMask {
  --dlg-ink: #1a93a5; --dlg-wash: #eaf8fa; --dlg-icon: var(--dlg-icon-weight);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#returnDetailMaskV3300, #cancelMarkMask, #forceLogoutMask) {
  --dlg-ink: #c7746c; --dlg-wash: #fff1ee; --dlg-icon: var(--dlg-icon-warning);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returnDetailMaskV3300 { --dlg-icon: var(--v3-icon-reset); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#qualityDeleteMask, #deleteShopConfirmMask, #deleteCancelMarkMask, .lc-dialog:has(:is([data-lc-delete-form], [data-lc-delete-customer-form]))) {
  --dlg-ink: #cc5c6a; --dlg-wash: #fff0f3; --dlg-icon: var(--v3-icon-trash);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #financeRebuildConfirmMask {
  --dlg-ink: #c28a2c; --dlg-wash: #fff5e4; --dlg-icon: var(--dlg-icon-warning);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#syncAllConfirmMask, .ss-dialog) {
  --dlg-ink: #1a93a5; --dlg-wash: #eaf8fa; --dlg-icon: var(--v3-icon-sync);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #shipOrderConfirmMask {
  --dlg-ink: #249572; --dlg-wash: #eaf8f1; --dlg-icon: var(--v3-icon-truck);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .ss-schedule-dialog {
  --dlg-ink: #1a93a5; --dlg-wash: #eaf8fa; --dlg-icon: var(--v3-icon-calendar);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#shopImportResultMask, .lc-dialog:has(.lc-offline-export)) {
  --dlg-ink: #4b7ed6; --dlg-wash: #edf3ff; --dlg-icon: var(--v3-icon-package);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog:has([data-lc-contact-form]) {
  --dlg-ink: #249572; --dlg-wash: #eaf8f1; --dlg-icon: var(--v3-icon-message);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog[aria-label="停用客户授权"] {
  --dlg-ink: #c28a2c; --dlg-wash: #fff5e4; --dlg-icon: var(--dlg-icon-warning);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog[aria-label="恢复客户授权"] {
  --dlg-ink: #249572; --dlg-wash: #eaf8f1; --dlg-icon: var(--v3-icon-shield);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-dialog:has([data-pc-csv]) { --dlg-icon: var(--v3-icon-upload); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-dialog:has(.pc-log-list) { --dlg-icon: var(--v3-icon-log); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-dialog:has(.pc-tracking-grid) { --dlg-icon: var(--v3-icon-truck); }

/* Form density is comfortable without changing the existing fields or values. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog) :is(.modal-body, .pm-dialog-body) {
  padding: 22px var(--dlg-pad) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-dialog .pm-dialog-body {
  max-height: min(62vh, calc(100dvh - 210px));
  overflow: auto;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.pc-dialog .pc-edit-grid, #purchaseMask .purchase-grid, .lc-dialog .lc-grid) {
  gap: 18px 20px !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.pc-dialog .pc-edit-grid > label, .pc-dialog .pc-readonly-field, #purchaseMask .field > label, #addShopMask .add-shop-row > label) {
  color: var(--dlg-label) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.6;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-dialog .pc-readonly-field output {
  padding: 9px 11px;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid var(--dlg-line);
  border-radius: 8px;
  background: #f4f7fb;
  color: var(--dlg-muted);
  font-size: 12px;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #addShopMask .shop-perf-divider {
  border: 1px solid #e6def5;
  border-radius: 9px;
  padding: 12px 14px;
  background: #f8f5fd;
  color: #8660c6;
  margin: 22px 0 18px;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #addShopMask .shop-performance-help {
  color: var(--dlg-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Keep the advertising switch independent from generic field/checkbox sizing. */
html body.erp-system-ui #addShopMask .shop-advertising-row {align-items:start!important;}
html body.erp-system-ui #addShopMask .shop-advertising-row > label {line-height:46px!important;}
html body.erp-system-ui #addShopMask .shop-advertising-card {padding:12px 14px;border:1px solid var(--ui-border,#dfe7f1);border-radius:10px;background:var(--ui-field-surface,#f8faff);}
html body.erp-system-ui #addShopMask .shop-advertising-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;}
html body.erp-system-ui #addShopMask .shop-advertising-control {position:relative;display:inline-flex!important;align-items:center;gap:9px;margin:0!important;padding:0!important;width:auto!important;line-height:24px!important;white-space:nowrap;font-size:12px!important;font-weight:500!important;color:var(--ui-text,#344054)!important;cursor:pointer;}
html body.erp-system-ui #addShopMask #shopAdvertisingEnabled {position:absolute!important;inset:0 auto auto 0!important;opacity:0!important;width:1px!important;min-width:1px!important;max-width:1px!important;height:1px!important;min-height:1px!important;max-height:1px!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;pointer-events:none;}
html body.erp-system-ui #addShopMask .shop-advertising-track {position:relative;display:block!important;flex:0 0 38px;width:38px!important;height:22px!important;border:1px solid #b6c0ce;border-radius:99px!important;background:#c3ccd8;box-sizing:border-box;transition:background .15s,border-color .15s;}
html body.erp-system-ui #addShopMask .shop-advertising-track::after {content:'';position:absolute;left:2px;top:2px;width:16px;height:16px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #1c30532e;transition:transform .15s;}
html body.erp-system-ui #addShopMask #shopAdvertisingEnabled:checked + .shop-advertising-track {background:var(--ui-accent,#2f86ed);border-color:var(--ui-accent,#2f86ed);}
html body.erp-system-ui #addShopMask #shopAdvertisingEnabled:checked + .shop-advertising-track::after {transform:translateX(16px);}
html body.erp-system-ui #addShopMask #shopAdvertisingEnabled:focus-visible + .shop-advertising-track {outline:2px solid var(--ui-accent,#2f86ed);outline-offset:3px;}
html body.erp-system-ui #addShopMask .shop-advertising-caption {color:var(--ui-muted,#7d8da5);font-size:11px;line-height:1.5;text-align:right;}
html body.erp-system-ui #addShopMask #shopAdvertisingHelp {margin:9px 0 0;padding-top:9px;border-top:1px solid var(--ui-border,#e8edf5);color:var(--ui-muted,#7d8da5);font-size:11px;line-height:1.7;}
@media(max-width:480px){html body.erp-system-ui #addShopMask .shop-advertising-card {padding:10px;}html body.erp-system-ui #addShopMask .shop-advertising-heading {gap:8px;}html body.erp-system-ui #addShopMask .shop-advertising-caption {max-width:98px;}}
@media(prefers-reduced-motion:reduce){html body.erp-system-ui #addShopMask .shop-advertising-track,html body.erp-system-ui #addShopMask .shop-advertising-track::after {transition:none;}}

/* OGL cargo label lookup uses the existing order dialog theme. */
#cargoLabelOpenBtn[hidden] { display:none!important; }
#cargoLabelMask .cargo-label-modal { width:min(500px, calc(100vw - 24px)); }
#cargoLabelMask .cargo-label-fields { display:grid; gap:8px; }
#cargoLabelMask .cargo-label-fields label { font-weight:600; }
#cargoLabelMask .cargo-label-shipment-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:6px; }
#cargoLabelMask .cargo-label-manual:not([hidden]) { display:grid; gap:8px; }
#cargoLabelMask .cargo-label-fields :is(input,select) { width:100%; }
#cargoLabelMask .cargo-label-tip { color:var(--dlg-muted,var(--ui-muted,#64748b)); margin:14px 0 0; line-height:1.6; }
#cargoLabelMask .cargo-label-status { margin:10px 0 0; overflow-wrap:anywhere; }
#cargoLabelMask .cargo-label-status:empty { display:none; }
#cargoLabelMask .cargo-label-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; }

/* Footer actions are consistent; close buttons in the header remain compact. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, #pm-editor, .lc-dialog, .pc-dialog, .rc-dialog) :is(.erp-dialog-actions, .add-shop-footer, .weight-form-actions, .order-note-actions, .cancel-form-actions, .commercial-account-form-action, .account-logout-actions-v3110, .current-account-actions-v3230, .quality-modal-actions, .profit-config-actions-v3249, .pm-dialog-footer, footer) {
  border-top: 1px solid var(--dlg-line) !important;
  padding-top: 18px !important;
  margin-top: 22px !important;
  gap: 9px !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#pm-dialog .pm-dialog-footer, .rc-dialog > footer) {
  margin-top: 0 !important;
  padding: 16px var(--dlg-pad) !important;
  background: #fafbfd !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, #pm-editor, .lc-dialog, .pc-dialog, .rc-dialog) :is(.erp-dialog-actions, .add-shop-footer, .weight-form-actions, .order-note-actions, .cancel-form-actions, .commercial-account-form-action, .account-logout-actions-v3110, .current-account-actions-v3230, .quality-modal-actions, .profit-config-actions-v3249, .pm-dialog-footer, .pm-save-actions, footer) > button {
  min-height: 36px !important;
  border-radius: 8px !important;
  padding: 7px 15px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}
/* Confirmation dialogs use real vector marks, clear copy and a separate footer. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-modal {
  width: min(500px, calc(100vw - 32px)) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-body {
  padding: 26px 24px 22px !important;
  gap: 16px !important;
  align-items: flex-start !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-icon {
  position: relative;
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  border: 1px solid color-mix(in srgb, var(--dlg-ink) 16%, #fff) !important;
  border-radius: 14px !important;
  background: var(--dlg-wash) !important;
  color: var(--dlg-ink) !important;
  font-size: 0 !important;
  box-shadow: none !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-icon::before {
  content: "";
  position: absolute;
  inset: 11px;
  background: var(--dlg-ink);
  -webkit-mask: var(--dlg-icon) center / contain no-repeat;
  mask: var(--dlg-icon) center / contain no-repeat;
  pointer-events: none;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-title {
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: var(--dlg-text) !important;
  font-weight: 600 !important;
  margin: 1px 0 10px !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-desc {
  font-size: 13px !important;
  color: var(--dlg-label) !important;
  line-height: 1.85 !important;
  overflow-wrap: anywhere;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-actions {
  border-top: 1px solid var(--dlg-line) !important;
  background: #fafbfd !important;
  padding: 16px 24px !important;
  gap: 10px !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-actions button {
  min-height: 36px !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-cancel {
  border: 1px solid #dfe6ef !important;
  background: #fff !important;
  color: var(--dlg-label) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-cancel:hover {
  border-color: var(--dlg-accent) !important;
  color: var(--dlg-deep) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-ok {
  border: 1px solid var(--dlg-accent) !important;}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #deleteShopConfirmMask .shop-delete-mode label {
  padding: 10px 12px;
  margin: 7px 0;
  border: 1px solid var(--dlg-line);
  border-radius: 8px;
  background: #fafbfd;
  line-height: 1.6;
  cursor: pointer;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #deleteShopConfirmMask .shop-delete-mode label:has(input:checked) {
  border-color: var(--dlg-accent);
  background: var(--dlg-soft);
}

/* Informational content: preserve the original success/error state colors. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.lc-dialog, .pc-dialog, #pm-dialog) :is(.lc-help, .pc-help, .pm-stock-help, .pm-stock-footnote, .ss-hint) {
  font-size: 12px;
  line-height: 1.85;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.lc-dialog, .pc-dialog, #pm-dialog) :is([data-lc-message], [data-pc-modal-message], .pm-notice):not(:empty) {
  border: 1px solid color-mix(in srgb, currentColor 18%, #fff);
  border-radius: 8px;
  padding: 10px 13px;
  margin-top: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.lc-dialog, .pc-dialog, #pm-dialog) :is([data-lc-message], [data-pc-modal-message], [data-modal-message]):empty {
  margin: 0;
  padding: 0;
  border: 0;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, .lc-dialog) :is(.sync-confirm-tip, .ship-order-confirm-tip-v3243, .account-logout-warning-v3110, .lc-code-preview) {
  padding: 11px 13px !important;
  border: 1px solid var(--dlg-line) !important;
  border-radius: 9px !important;
  background: #f7f9fc !important;
  color: var(--dlg-muted) !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog[aria-label="删除激活码"] > p > code {
  display: block;
  padding: 12px 14px;
  max-height: 100px;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font: 12px/1.8 ui-monospace, Consolas, monospace;
  border: 1px solid var(--dlg-line);
  border-radius: 9px;
  background: #f7f9fc;
  color: var(--dlg-label);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog > :is([data-lc-delete-form], [data-lc-delete-customer-form], [data-lc-toggle]) {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--dlg-line);
  text-align: right;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog > :is([data-lc-delete-form], [data-lc-delete-customer-form], [data-lc-toggle]) > button + button { margin-left: 8px; }
/* Customer-delete confirmation keeps both actions visible on narrow viewports. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog:has([data-lc-delete-customer-form]) {
  box-sizing: border-box !important;
  width: min(520px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog:has([data-lc-delete-customer-form]) > :is(p, form) {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog > [data-lc-delete-customer-form] {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog [data-lc-delete-customer-form] > footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog .lc-offline-export {
  padding: 18px 20px;
  border: 1px solid #dce8fc;
  border-radius: 12px;
  background: linear-gradient(120deg, #f5f9ff, #fff);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog .lc-offline-export > h3 {
  margin: 0 0 10px;
  color: var(--dlg-text);
  font-size: 15px;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog .lc-service-steps {
  margin: 16px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--dlg-line);
  border-radius: 10px;
  background: #fbfcfe;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog .lc-service-steps > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--dlg-label);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog[data-lc-view="issue"] .lc-issue-heading h2 {
  font-size: 18px;
  line-height: 1.5;
  color: var(--dlg-text);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog[data-lc-view="issue"] .lc-issue-layout { margin-top: 0; }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog[data-lc-view="issue"] .lc-issue-emblem {
  width: 42px;
  height: 42px;
  border-color: #e5ddf5;
  background: linear-gradient(140deg, #fff, #f3eefe);
  color: #8560c8;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog .lc-validity > div {
  border: 1px solid var(--dlg-line);
  background: #f8fafd;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog .lc-validity b {
  color: var(--dlg-text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .ss-schedule-dialog .ss-schedule-toggle {
  border: 1px solid color-mix(in srgb, var(--dlg-accent) 20%, #fff);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--dlg-soft);
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .ss-dialog .ss-step {
  border-radius: 10px;
  border-color: var(--dlg-line);
  padding: 14px;
  background: #fbfcfe;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .ss-dialog .ss-step-icon { border-radius: 8px; }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-dialog .pm-stock-metrics > div {
  border-radius: 10px;
  background: #f8f6fd;
  border-color: #e9e2f7;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-dialog .pm-stock-metrics b {
  font-variant-numeric: tabular-nums;
  color: #7f62ba;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-editor-title {
  color: var(--dlg-text);
  gap: 10px;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-editor-title > svg {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 9px;
  border: 1px solid #e5ddf5;
  border-radius: 11px;
  color: #8560c8;
  background: #f3eefe;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog .rc-heading {
  background: transparent !important;
  border: 0 !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog .rc-heading-icon {
  border: 1px solid #e5ddf5;
  background: linear-gradient(140deg, #fff, #f3eefe) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #imageMask .image-preview-close {
  border: 1px solid #ffffff30 !important;
  border-radius: 10px !important;
  background: #23354bc9 !important;
  color: #fff !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #imageMask .image-preview-close:hover {
  background: var(--dlg-deep) !important;
}

@media (max-width: 720px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 { --dlg-pad: var(--ui-dialog-padding); }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask > .modal, #pm-dialog, .lc-dialog, .pc-dialog, .rc-dialog) {
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 24px) !important;
    border-radius: 12px !important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head, #pm-dialog .pm-dialog-head, #pm-editor .pm-dialog-head, .lc-dialog > header, .pc-dialog > header, .rc-dialog > header) {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    min-height: 72px !important;
    border-radius: 11px 11px 0 0 !important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.pc-dialog .pc-edit-grid, #purchaseMask .purchase-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.pc-dialog .pc-span, #purchaseMask .field.full) { grid-column: auto; }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-body { padding: 20px 16px !important; gap: 12px !important; }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-actions { padding: 14px 16px !important; }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.lc-dialog, .pc-dialog, .rc-dialog) footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, #pm-editor, .lc-dialog, .pc-dialog, .rc-dialog) button { transition: none !important; }
}

/* Dialog vector assets and action marks. Decorative; no event handling. */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 {
  --dlg-icon-cart: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h2l3%2012h11l2-9H6%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2220%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2220%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E");
  --dlg-icon-weight: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%225%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M6%208h12l3%2013H3L6%208Z%22%2F%3E%3C%2Fsvg%3E");
  --dlg-icon-warning: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10.3%204.2-8%2014a2%202%200%200%200%201.7%203h16a2%202%200%200%200%201.7-3l-8-14a2%202%200%200%200-3.4%200Z%22%2F%3E%3Cpath%20d%3D%22M12%209v5m0%203h.01%22%2F%3E%3C%2Fsvg%3E");
  --dlg-icon-check: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%204%204L19%206%22%2F%3E%3C%2Fsvg%3E");
  --dlg-icon-clock: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E");
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, #pm-editor, .pc-dialog, .lc-dialog, .rc-dialog) :is(.btn.primary, .weight-confirm-btn, .order-note-save, .cancel-save-btn, .lc-primary, .pc-primary, .pm-primary, .rc-primary, .system-confirm-ok, .quality-danger-btn, :is([data-lc-delete-form], [data-lc-delete-customer-form]) .lc-primary):not(:has(svg))::before {
  content: "";
  display: inline-block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -3px;
  -webkit-mask: var(--dlg-action-icon, var(--dlg-icon-check)) center / contain no-repeat;
  mask: var(--dlg-action-icon, var(--dlg-icon-check)) center / contain no-repeat;
  background: currentColor !important;
  pointer-events: none;}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask, #pm-dialog, #pm-editor, .pc-dialog, .lc-dialog, .rc-dialog) :is(.btn.primary, .weight-confirm-btn, .order-note-save, .cancel-save-btn, .lc-primary, .pc-primary, .pm-primary, .rc-primary, .system-confirm-ok, .quality-danger-btn, :is([data-lc-delete-form], [data-lc-delete-customer-form]) .lc-primary):not(:has(svg)) { column-gap: 0;}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .system-confirm-ok { --dlg-action-icon: var(--dlg-icon);}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #qualityDeleteMask .quality-danger-btn { --dlg-action-icon: var(--v3-icon-trash); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog :is([data-lc-delete-form], [data-lc-delete-customer-form]) .lc-primary { --dlg-action-icon: var(--v3-icon-trash);}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog :is([data-lc-offline-client], [data-lc-online-client]) { --dlg-action-icon: var(--v3-icon-download); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog [data-lc-activate] .lc-primary { --dlg-action-icon: var(--v3-icon-key); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-dialog [data-pc-apply] { --dlg-action-icon: var(--v3-icon-sync); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog [data-rc-save] { --dlg-action-icon: var(--v3-icon-save); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #addShopMask .add-shop-confirm { --dlg-action-icon: var(--v3-icon-store); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #passwordManageMask #passwordSaveBtn { --dlg-action-icon: var(--v3-icon-shield); }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog form > button[type="submit"] { min-height: 36px; padding: 8px 15px; }
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .lc-dialog .lc-validity span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; background: #8292aa; -webkit-mask: var(--dlg-icon-clock) center / contain no-repeat; mask: var(--dlg-icon-clock) center / contain no-repeat; pointer-events: none; }

/* Shared confirmation/error panels stay above native editor dialogs. */
@layer erpComponents {
  html body.erp-system-ui .erp-message-dialog {
    zoom: calc(1 / var(--erp-page-zoom, 1.05)) !important;
    box-sizing: border-box; width: min(440px, calc(100vw - 32px)); min-width: 0;
    max-width: calc(100vw - 32px); max-height: calc(var(--erp-visible-height, 100dvh) - 32px);
    margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
    border: 1px solid var(--ui-border); border-radius: var(--ui-dialog-radius);
    background: var(--ui-surface); color: var(--ui-text); box-shadow: var(--ui-dialog-shadow);
    font: 14px/1.65 var(--erp-cn-sans, "Microsoft YaHei UI", "Microsoft YaHei", sans-serif);
  }
  html body.erp-system-ui .erp-message-dialog::backdrop { background: var(--ui-overlay); backdrop-filter: blur(3px); }
  html body.erp-system-ui .erp-message-dialog svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  html body.erp-system-ui .erp-message-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--ui-border-soft); background: linear-gradient(115deg, #fff 25%, var(--ui-accent-soft)); }
  html body.erp-system-ui .erp-message-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; color: var(--ui-accent-hover); background: var(--ui-accent-soft); }
  html body.erp-system-ui .erp-message-icon svg { width: 23px; height: 23px; }
  html body.erp-system-ui .erp-message-dialog[data-kind="error"] .erp-message-icon { color: #c95665; background: #fff0f3; }
  html body.erp-system-ui .erp-message-dialog[data-kind="warning"] .erp-message-icon { color: #bf861b; background: #fff6df; }
  html body.erp-system-ui .erp-message-title { flex: 1; min-width: 0; margin: 0 !important; color: var(--ui-label) !important; -webkit-text-fill-color: currentColor !important; font-size: 17px !important; font-weight: 600 !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
  html body.erp-system-ui .erp-message-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-surface); color: var(--ui-label); cursor: pointer; }
  html body.erp-system-ui .erp-message-close:hover { background: var(--ui-accent-soft); border-color: var(--ui-accent); }
  html body.erp-system-ui .erp-message-body { padding: 20px; }
  html body.erp-system-ui .erp-message-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ui-text); }
  html body.erp-system-ui .erp-message-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--ui-border-soft); background: var(--ui-field-surface); }
  html body.erp-system-ui .erp-message-actions .erp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; }
  html body.erp-system-ui .erp-message-dialog button:focus-visible { outline: 2px solid var(--ui-accent) !important; outline-offset: 3px !important; }
  @media (max-width: 640px) {
    html body.erp-system-ui .erp-message-head { padding: 16px; gap: 10px; }
    html body.erp-system-ui .erp-message-body { padding: 18px 16px; }
    html body.erp-system-ui .erp-message-actions { padding: 14px 16px; }
    html body.erp-system-ui .erp-message-actions .erp-btn { flex: 1 1 auto; min-height: 44px; }
  }
}
/* Stock inputs keep the ERP layout without a clear control. */
@layer erpComponents {
  html body.erp-system-ui #pm-dialog .pm-stock-input > input {
    width: 100% !important;
    max-width: none !important;
    padding-right: 40px !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
  }
  html body.erp-system-ui #pm-dialog .pm-stock-input > input::-webkit-inner-spin-button { appearance: none !important; }
  html body.erp-system-ui #pm-dialog [data-stock-reading]:empty { display: none !important; }
}
/* The same copy notification stays above both native and ERP dialogs. */
html body.erp-system-ui #copyToast[popover] {
  inset: 14px auto auto 50%;
  margin: 0;
  width: max-content;
  height: auto;
  overflow: visible;
}
html body.erp-system-ui #copyToast[popover]:not(:popover-open) { display: none; }

/* All product thumbnails share a fixed 3:4 frame; contain keeps every image intact. */
@layer erpComponents {
  html body.erp-system-ui #imageMask{padding:16px!important;box-sizing:border-box!important;z-index:1200!important;zoom:calc(1 / var(--erp-page-zoom,1.05))!important}
  html body.erp-system-ui #imageMask .image-preview-shell{
    --image-preview-width:max(1px,min(570px,calc(var(--erp-visible-width,100vw) - 32px),calc((var(--erp-visible-height,100dvh) - 32px) * .75)));
    box-sizing:border-box!important;width:var(--image-preview-width)!important;height:calc(var(--image-preview-width) / .75)!important;aspect-ratio:3 / 4!important;flex-shrink:0!important;
    min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
    display:grid!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;
    align-items:stretch!important;padding:12px!important;overflow:hidden!important;border-radius:var(--ui-dialog-radius)!important;
    background:var(--ui-surface)!important;box-shadow:var(--ui-dialog-shadow)!important;
    zoom:1!important;
  }
  html body.erp-system-ui #imageMask .image-preview-img{box-sizing:border-box!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;border-radius:8px!important;background:#fff!important}
  html body.erp-system-ui #imageMask .image-preview-caption{box-sizing:border-box!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;align-self:center!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0 6px!important;font-size:13px!important;line-height:1.65!important;text-align:center!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui #imageMask .image-preview-close{top:16px!important;right:16px!important;width:36px!important;height:36px!important;padding:0!important;z-index:3!important}
}

/* Personal settings has one password form; use a compact, content-sized frame. */
@layer erpColorMode.overrides {
  html body.erp-system-ui #accountSettingsMask {padding:16px!important}
  html body.erp-system-ui #accountSettingsMask > .account-settings-modal-v3250 {
    box-sizing:border-box!important;width:min(560px,calc(100vw - 32px))!important;
    min-width:0!important;max-width:calc(100vw - 32px)!important;
    height:auto!important;min-height:0!important;max-height:calc(var(--erp-visible-height,100dvh) - 32px)!important;
    padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
  }
  html body.erp-system-ui #accountSettingsMask > .account-settings-modal-v3250:focus {outline:none!important}
  html body.erp-system-ui #accountSettingsMask .account-settings-modal-head-v3250 {
    flex:none!important;min-height:64px!important;padding:12px 16px!important;
  }
  html body.erp-system-ui #accountSettingsMask .account-settings-shell-v3250 {
    box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:0!important;
    padding:14px 16px!important;margin:0!important;overflow-y:auto!important;
  }
  html body.erp-system-ui #accountSettingsMask .account-settings-card-v3250 {
    padding:14px!important;margin:0!important;
  }
  html body.erp-system-ui #accountSettingsMask .account-settings-password-form-v3250 {gap:10px!important;margin-top:12px!important}
  html body.erp-system-ui #accountSettingsMask .account-settings-actions-v3250 {flex:0 0 auto!important;margin:0!important;padding:12px 16px!important;border-top:1px solid var(--ui-border-soft)!important}
  @media(max-width:600px) {
    html body.erp-system-ui #accountSettingsMask {padding:12px!important}
    html body.erp-system-ui #accountSettingsMask > .account-settings-modal-v3250 {
      width:calc(var(--erp-visible-width,100vw) - 24px)!important;max-width:calc(var(--erp-visible-width,100vw) - 24px)!important;
      max-height:calc(var(--erp-visible-height,100dvh) - 24px)!important;
    }
    html body.erp-system-ui #accountSettingsMask .account-settings-shell-v3250 {padding:12px!important}
    html body.erp-system-ui #accountSettingsMask .account-settings-card-v3250 {padding:12px!important}
  }
}

/* Dashboard shop summary keeps original shop identities and compact metrics. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #dashMask > .modal {width:min(860px,calc(100vw - 32px))!important;max-width:860px!important;max-height:calc(100dvh - 36px)!important;min-height:0!important;display:flex!important;flex-direction:column!important}
 html body.erp-system-ui #dashMask .modal-body {min-height:0!important;overflow:auto!important;padding:18px!important;background:var(--ui-surface,#fff)!important}
 html body.erp-system-ui #dashMask .dash-shop-summary {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:16px!important}
 html body.erp-system-ui #dashMask .dash-shop-metric {display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;padding:16px!important;border:1px solid var(--ui-border-soft,#e6edf4)!important;border-radius:10px!important;background:var(--ui-field-surface,#f8fafc)!important}
 html body.erp-system-ui #dashMask .dash-shop-metric > div {min-width:0!important;display:flex!important;flex-direction:column!important;gap:5px!important}
 html body.erp-system-ui #dashMask .dash-shop-metric > div > span {color:var(--ui-text-muted,#667085)!important;font-size:12px!important;line-height:1.4!important}
 html body.erp-system-ui #dashMask .dash-shop-metric strong {color:var(--ui-text,#25364d)!important;font-size:23px!important;font-weight:600!important;line-height:1.2!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #dashMask .dash-shop-metric-icon {display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:10px!important;background:color-mix(in srgb,currentColor 9%,var(--ui-surface,#fff))!important}
 html body.erp-system-ui #dashMask .dash-shop-metric-icon svg {display:block!important;width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 html body.erp-system-ui #dashMask .dash-shop-metric-icon.shops {color:#2563eb!important}
 html body.erp-system-ui #dashMask .dash-shop-metric-icon.orders {color:#7c3aed!important}
 html body.erp-system-ui #dashMask .dash-shop-metric-icon.sales {color:#16a34a!important}
 html body.erp-system-ui #dashMask .dash-shop-table-wrap {border:1px solid var(--ui-border,#e3e9f1)!important;border-radius:10px!important;overflow:auto!important;background:var(--ui-surface,#fff)!important}
 html body.erp-system-ui #dashMask .dash-shop-table {width:100%!important;border-collapse:collapse!important;table-layout:auto!important;margin:0!important}
 html body.erp-system-ui #dashMask .dash-shop-table :is(th,td) {text-align:center!important;vertical-align:middle!important;padding:12px 14px!important;border:0!important;border-bottom:1px solid var(--ui-border-soft,#edf1f6)!important;color:var(--ui-text,#25364d)!important;font-size:12px!important;line-height:1.5!important}
 html body.erp-system-ui #dashMask .dash-shop-table th {background:var(--ui-field-surface,#f8fafc)!important;color:var(--ui-table-heading,var(--ui-text,#25364d))!important;font-weight:500!important;white-space:nowrap!important}
 html body.erp-system-ui #dashMask .dash-shop-table tr:last-child td {border-bottom:0!important}
 html body.erp-system-ui #dashMask .dash-shop-table tbody tr:hover {background:var(--ui-accent-soft,#edf9fb)!important}
 html body.erp-system-ui #dashMask .dash-shop-name {display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:0!important;color:#2563eb!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui #dashMask .dash-shop-rank {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 22px!important;width:22px!important;height:22px!important;border-radius:6px!important;background:var(--ui-field-surface,#f8fafc)!important;color:var(--ui-text-muted,#667085)!important;font-size:11px!important}
 html body.erp-system-ui #dashMask .dash-shop-table .dash-shop-sales {color:#16a34a!important;font-weight:500!important;white-space:nowrap!important}
 html body.erp-system-ui #dashMask .dash-shop-empty {padding:32px 12px!important;color:var(--ui-text-muted,#667085)!important}
 html[data-erp-mode="dark"] body.erp-system-ui #dashMask :is(.dash-shop-name,.dash-shop-metric-icon.shops) {color:#93c5fd!important}
 html[data-erp-mode="dark"] body.erp-system-ui #dashMask .dash-shop-metric-icon.orders {color:#c4b5fd!important}
 html[data-erp-mode="dark"] body.erp-system-ui #dashMask :is(.dash-shop-sales,.dash-shop-metric-icon.sales) {color:#86efac!important}
 @media(max-width:600px) {
  html body.erp-system-ui #dashMask .modal-body {padding:12px!important}
  html body.erp-system-ui #dashMask .dash-shop-summary {grid-template-columns:1fr!important;gap:8px!important;margin-bottom:12px!important}
  html body.erp-system-ui #dashMask .dash-shop-metric {padding:12px!important;gap:10px!important}
  html body.erp-system-ui #dashMask .dash-shop-metric > div {flex:1!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
  html body.erp-system-ui #dashMask .dash-shop-metric strong {font-size:21px!important;text-align:right!important}
  html body.erp-system-ui #dashMask .dash-shop-table-wrap {border:0!important;border-radius:0!important;overflow:visible!important}
  html body.erp-system-ui #dashMask .dash-shop-table {display:block!important}
  html body.erp-system-ui #dashMask .dash-shop-table thead {display:none!important}
  html body.erp-system-ui #dashMask .dash-shop-table tbody {display:grid!important;gap:10px!important}
  html body.erp-system-ui #dashMask .dash-shop-table tr {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 14px!important;padding:12px!important;border:1px solid var(--ui-border,#e3e9f1)!important;border-radius:10px!important;background:var(--ui-surface,#fff)!important}
  html body.erp-system-ui #dashMask .dash-shop-table td {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;min-width:0!important;padding:0!important;border:0!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui #dashMask .dash-shop-table td:first-child {grid-column:1 / -1!important;justify-content:center!important;margin-bottom:2px!important}
  html body.erp-system-ui #dashMask .dash-shop-table td:not(:first-child)::before {content:attr(data-label)!important;color:var(--ui-text-muted,#667085)!important;font-size:11px!important;white-space:nowrap!important;font-weight:400!important}
  html body.erp-system-ui #dashMask .dash-shop-table .dash-shop-sales {white-space:normal!important}
  html body.erp-system-ui #dashMask .dash-shop-table td.dash-shop-empty {padding:22px 0!important}
 }
}

@layer erpColorMode.overrides {
 html body.erp-system-ui #dashMask {--dlg-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2010v10h16V10M3%209l2-5h14l2%205M3%209h18M9%2020v-6h6v6%22%2F%3E%3C%2Fsvg%3E")!important;--dlg-ink:var(--ui-accent-hover,#168b9d)!important;--dlg-wash:var(--ui-accent-soft,#edf9fb)!important}
}

/* Shop summary periods use the ERP segmented button treatment. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #dashMask .dash-shop-results {min-height:min(var(--dash-summary-height,0px),max(160px,calc(100dvh - 240px)))!important;}
 html body.erp-system-ui #dashMask .dash-shop-ranges button[aria-busy="true"]::before {
  box-sizing:border-box!important;background:transparent!important;mask:none!important;-webkit-mask:none!important;
  border:2px solid color-mix(in srgb,currentColor 25%,transparent)!important;border-top-color:currentColor!important;
  border-radius:50%!important;animation:dash-shop-updating .8s linear infinite!important;
 }
 @keyframes dash-shop-updating {to{transform:rotate(360deg)}}
 @media(prefers-reduced-motion:reduce){html body.erp-system-ui #dashMask .dash-shop-ranges button[aria-busy="true"]::before {animation:none!important;}}
 html body.erp-system-ui #dashMask .dash-shop-rangebar {display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:12px!important;margin:0 0 14px!important;}
 html body.erp-system-ui #dashMask .dash-shop-ranges {display:inline-grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;padding:4px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-field-surface)!important;}
 html body.erp-system-ui #dashMask .dash-shop-ranges button {display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:34px!important;padding:6px 11px!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:1.4!important;border-radius:7px!important;white-space:nowrap!important;}
 html body.erp-system-ui #dashMask :is(.dash-shop-loading,.dash-shop-error) {display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important;min-height:180px!important;padding:20px!important;color:var(--ui-text-muted,#667085)!important;font-size:13px!important;text-align:center!important;}
 html body.erp-system-ui #dashMask .dash-shop-error {flex-direction:column!important;}
 html body.erp-system-ui #dashMask .dash-shop-period-label {display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;color:var(--ui-label)!important;font-size:12px!important;}
 html body.erp-system-ui #dashMask .dash-shop-period-label>span {white-space:nowrap!important;}
 html body.erp-system-ui #dashMask .dash-shop-period-label :is(select,.erp-select-host) {width:156px!important;max-width:100%!important;min-width:0!important;}
 html body.erp-system-ui #dashMask .dash-shop-period-label select {height:36px!important;border:1px solid var(--ui-border)!important;border-radius:8px!important;background:var(--ui-field-surface)!important;color:var(--ui-field-text)!important;font:inherit!important;padding:6px 10px!important;}
 html body.erp-system-ui #dashMask .dash-shop-custom-dates {min-width:0!important;max-width:100%!important;flex:1 1 270px!important;}
 html body.erp-system-ui #dashMask .dash-shop-custom-dates[hidden] {display:none!important;}
 html body.erp-system-ui #dashMask .dash-shop-custom-dates input {min-width:0!important;}
 @media(max-width:600px) {
  html body.erp-system-ui #dashMask .dash-shop-rangebar {justify-content:stretch!important;margin-bottom:12px!important;}
  html body.erp-system-ui #dashMask .dash-shop-ranges {width:100%!important;}
  html body.erp-system-ui #dashMask .dash-shop-ranges button {min-height:38px!important;padding:6px!important;}
  html body.erp-system-ui #dashMask .dash-shop-period-label {width:100%!important;}
  html body.erp-system-ui #dashMask .dash-shop-period-label :is(select,.erp-select-host) {width:auto!important;flex:1!important;}
  html body.erp-system-ui #dashMask .dash-shop-custom-dates {flex-basis:100%!important;}
  html body.erp-system-ui #dashMask .dash-shop-table td:not(:first-child)::before {flex:none!important;width:auto!important;}
  html body.erp-system-ui #dashMask .dash-shop-table td.dash-shop-sales {white-space:nowrap!important;flex-wrap:nowrap!important;}
 }
}

/* Account actions stay separate from the scrolling profile. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #currentAccountInfoMask>.current-account-modal-v3230>.current-account-actions-v3230 {
  box-sizing:border-box!important;margin:0!important;padding:12px 20px!important;border-top:1px solid var(--ui-border-soft)!important;background:var(--ui-surface)!important;
 }
}

/* The single acknowledgement in the capital warning sits in the center. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.erp-message-dialog[aria-labelledby=cf-alert-title]>.erp-message-actions {
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.erp-message-dialog[aria-labelledby=cf-alert-title]>.erp-message-actions>button[data-cf-alert-close] {
  flex:0 0 auto!important;width:auto!important;margin:0!important;
 }
}

/* Cargo creation: two compact ERP steps with matching order-center media. */
#cargoLabelMask{box-sizing:border-box;padding:12px!important;overflow:hidden!important}
#cargoLabelMask [hidden]{display:none!important}
#cargoLabelMask .cargo-label-modal{display:flex;flex-direction:column;overflow:hidden}
#cargoLabelMask .modal-head,#cargoLabelMask .cargo-label-actions{flex:none}
#cargoLabelMask .modal-body{min-height:0;overflow:auto;overscroll-behavior:contain}
#cargoLabelMask .cargo-label-fields,#cargoLabelMask .cargo-generation-panel{display:grid;gap:12px;min-width:0}
#cargoLabelMask .cargo-wizard-hint{margin:0;padding:8px 11px;border:1px solid color-mix(in srgb,var(--ui-accent,#2f80ed) 35%,transparent);border-radius:7px;background:var(--ui-accent-soft,#edf6ff);color:var(--ui-label,#64748b);font-size:12px;line-height:1.65}
#cargoLabelMask .cargo-generation-setup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;padding:2px;border:0;border-radius:0;min-width:0}
#cargoLabelMask .cargo-setup-field{display:grid;gap:7px;min-width:0;font-size:12px}
#cargoLabelMask .cargo-date-field,#cargoLabelMask .cargo-method-field,#cargoLabelMask .cargo-generation-summary{grid-column:1/-1}
#cargoLabelMask :is(.cargo-setup-field,.cargo-review-count) em,#cargoVehicleDialog em{font-style:normal;color:var(--ui-danger,#f04452)}
#cargoLabelMask .cargo-hidden-count{display:none!important}
#cargoLabelMask .cargo-generation-summary:empty{display:none}
#cargoLabelMask .cargo-generation-summary{font-size:11px;color:var(--ui-muted,#8492a5);line-height:1.6;padding:0;background:transparent;border:0}
#cargoLabelMask .cargo-generation-review{display:grid;gap:12px;padding:0;background:transparent;border:0}
#cargoLabelMask .cargo-review-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--ui-border,#e5ebf2);border-radius:8px;background:var(--ui-accent-soft,#f7f9fc);overflow:hidden}
#cargoLabelMask .cargo-review-context>div{display:flex;align-items:center;gap:8px;padding:9px 11px;min-width:0;border-right:1px solid var(--ui-border,#e5ebf2);font-size:12px;line-height:1.5}
#cargoLabelMask .cargo-review-context>div:last-child{border-right:0}
#cargoLabelMask .cargo-review-context>div>span:not(.fin-icon){flex:none;color:var(--ui-label,#64748b)}
#cargoLabelMask .cargo-review-context b{min-width:0;overflow-wrap:anywhere;font-weight:400}
#cargoLabelMask .fin-icon{display:inline-grid;place-items:center;flex:none;width:16px;height:16px;color:var(--ui-accent,#2f80ed)}
#cargoLabelMask .fin-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#cargoLabelMask .cargo-review-section{padding:14px;border:1px solid var(--ui-border,#e5ebf2);border-radius:10px;background:var(--ui-surface,#fff);min-width:0}
#cargoLabelMask .cargo-vehicle-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
#cargoLabelMask .cargo-vehicle-head>div{display:grid;gap:4px}
#cargoLabelMask .cargo-vehicle-head b{font-size:13px;font-weight:500}
#cargoLabelMask .cargo-vehicle-head small{font-size:11px;color:var(--ui-muted,#8492a5)}
#cargoLabelMask .cargo-vehicle-edit{margin-left:auto;min-height:27px!important;height:27px!important;padding:3px 8px!important;font-size:11px!important}
#cargoLabelMask .cargo-mode-badge{display:inline-flex;align-items:center;gap:5px;color:var(--ui-accent,#2f80ed);font-size:11px}
#cargoLabelMask .cargo-mode-badge b{font-size:11px;font-weight:400}
#cargoLabelMask .cargo-vehicle-scroll{overflow:auto;border-bottom:1px solid var(--ui-border-soft,#edf1f5)}
#cargoLabelMask .cargo-vehicle-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px;line-height:1.65}
#cargoLabelMask .cargo-vehicle-table :is(th,td){padding:7px 8px;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid var(--ui-border-soft,#edf1f5)}
#cargoLabelMask .cargo-vehicle-table th{background:var(--ui-accent-soft,#f7f9fc);font-weight:500}
#cargoLabelMask .cargo-vehicle-table small{display:block;color:var(--ui-muted,#8492a5)}
#cargoLabelMask .cargo-vehicle-table .cargo-vehicle-empty{height:44px;text-align:center;color:var(--ui-muted,#a0adbd)}
#cargoLabelMask .cargo-vehicle-status td{font-size:10px;color:var(--ui-muted,#8492a5);border:0}
#cargoLabelMask .cargo-review-count{display:grid;grid-template-columns:62px 112px minmax(0,1fr);align-items:center;gap:10px;padding-top:12px;margin-top:10px;border-top:1px solid var(--ui-border-soft,#edf1f5);font-size:12px}
#cargoLabelMask .cargo-review-count>:nth-child(2){width:112px!important;max-width:112px!important;min-width:0!important}
#cargoLabelMask .cargo-review-count input{width:100%!important;max-width:112px!important;min-width:0!important;box-sizing:border-box}
#cargoLabelMask .cargo-review-count>span{font-size:11px;color:var(--ui-muted,#8492a5)}
#cargoLabelMask .cargo-extra-shipping{margin-top:10px;font-size:11px;color:var(--ui-muted,#8492a5)}
#cargoLabelMask .cargo-extra-shipping summary{cursor:pointer;color:var(--ui-accent,#2f80ed)}
#cargoLabelMask .cargo-review-shipping{display:grid;gap:6px;margin-top:7px}
#cargoLabelMask .cargo-review-shipping>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;line-height:1.6}
#cargoLabelMask .cargo-review-shipping b{font-weight:400;overflow-wrap:anywhere}
#cargoLabelMask .cargo-review-section-head{display:flex;align-items:center;gap:8px;margin-bottom:4px;min-width:0}
#cargoLabelMask .cargo-review-section-head>b{font-size:13px;font-weight:500}
#cargoLabelMask .cargo-selection-badge{margin-left:auto;padding:3px 10px;border-radius:20px;background:var(--ui-accent-soft,#eef5ff);color:var(--ui-accent,#2f80ed);font-size:11px}
#cargoLabelMask .cargo-selection-note{margin:0 0 9px;font-size:11px;color:var(--ui-muted,#8492a5)}
#cargoLabelMask .cargo-mobile-select-all{display:none}
#cargoLabelMask .cargo-review-order-scroll{height:auto;min-height:0;max-height:none;overflow:visible;border:1px solid var(--ui-border-soft,#edf1f5);border-radius:8px}
#cargoLabelMask .cargo-review-table{--erp-list-image-width:48px;border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px}
#cargoLabelMask .cargo-review-table th{position:sticky;top:0;z-index:1;background:var(--ui-accent-soft,#f7f9fc);color:var(--ui-label,#64748b);font-weight:500;text-align:left;padding:9px 10px;border-bottom:1px solid var(--ui-border-soft,#edf1f5)}
#cargoLabelMask .cargo-review-table th:first-child{width:32px;padding-left:8px;padding-right:0}
#cargoLabelMask .cargo-review-table th:nth-child(2){width:172px}
#cargoLabelMask .cargo-review-table td{vertical-align:middle;padding:6px 10px;border-bottom:1px solid var(--ui-border-soft,#edf1f5);overflow-wrap:anywhere}
#cargoLabelMask .cargo-review-table .cargo-select-cell{padding-left:8px;padding-right:0}
#cargoLabelMask .cargo-review-table tr:last-child td{border-bottom:0}
#cargoLabelMask .cargo-review-table input[type="checkbox"]{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important}
#cargoLabelMask .cargo-review-posting{color:var(--ui-accent,#2f80ed)}
#cargoLabelMask .cargo-review-table .fb-order-center-products{display:grid;gap:12px}
#cargoLabelMask .cargo-review-table .fb-order-center-product{display:flex;align-items:center;gap:8px;min-width:0}
#cargoLabelMask .cargo-review-table .legacy-cell-lines{display:grid;gap:4px;min-width:0;flex:1;line-height:1.65}
#cargoLabelMask .cargo-review-table :is(.product-name-line,.offer-single-line,.sku-single-line){display:flex;align-items:baseline;gap:5px;min-width:0}
#cargoLabelMask .cargo-review-table :is(.legacy-prod-title,.fb-order-center-copy){min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cargoLabelMask .cargo-review-table .fb-order-quantity{color:var(--ui-accent,#2f80ed)}
#cargoLabelMask .cargo-review-muted{color:var(--ui-muted,#8492a5)}
#cargoLabelMask .cargo-review-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:9px;font-size:11px}
#cargoLabelMask .cargo-generation-order-details{font-size:11px;color:var(--ui-muted,#8492a5)}
#cargoLabelMask .cargo-generation-order-details summary{cursor:pointer}
#cargoLabelMask .cargo-generation-postings{display:flex;gap:5px;flex-wrap:wrap;max-height:80px;overflow:auto;margin-top:6px}
#cargoLabelMask .cargo-generation-postings span{padding:2px 5px;border:1px solid var(--ui-border,#e5ebf2);border-radius:4px;font-size:10px}
#cargoLabelMask .cargo-label-tip,#cargoLabelMask #cargoLabelStatus{font-size:11px;line-height:1.6}
#cargoLabelMask .cargo-label-shipment-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:20px}
#cargoLabelMask #cargoGenerationRefresh{height:20px!important;min-height:20px!important;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:11px!important;color:var(--ui-accent,#2f80ed)!important}
#cargoLabelMask #cargoGenerationRefresh:disabled{opacity:.5}
#cargoLabelMask .cargo-vehicle-section[data-vehicle-empty="true"] .cargo-vehicle-scroll{display:none}
#cargoLabelMask .cargo-vehicle-section[data-vehicle-empty="true"] .cargo-vehicle-head{margin-bottom:0}
#cargoLabelMask .cargo-review-section{padding:12px 14px}
#cargoLabelMask .cargo-generation-panel,#cargoLabelMask .cargo-generation-review{gap:10px}
#cargoLabelMask:is([data-cargo-stage="2"],[data-cargo-stage="3"]) #cargoWizardHint{display:none!important}
#cargoLabelMask .cargo-review-section-head>b{font-size:14px;font-weight:600}
#cargoLabelMask .cargo-review-table .product-name-label{flex:none}
#cargoLabelMask #cargoLabelStatus:empty{display:none}
#cargoLabelMask .cargo-label-actions{position:static;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:0;padding:12px 20px;background:var(--ui-surface,#fff);border-top:1px solid var(--ui-border,#e5ebf2)}
#cargoLabelMask .cargo-label-actions>.btn.ghost{margin-right:0}
#cargoLabelMask .cargo-generation-buttons{display:flex;gap:8px;flex-wrap:wrap}
#cargoLabelMask .cargo-label-actions .btn{min-height:32px!important;height:32px!important;padding:5px 12px!important;font-size:12px!important}
#cargoLabelMask .cargo-inline-icon{width:15px;height:15px;vertical-align:middle;margin-right:3px;fill:none;stroke:currentColor}
#cargoLabelMask:is([data-cargo-stage="2"],[data-cargo-stage="3"]) #cargoLabelShopField{display:none!important}
#cargoLabelMask .cargo-generation-order-details{display:none!important}
#cargoLabelMask[data-cargo-mode="create"]:not([data-cargo-stage="3"]) #cargoLabelTip{display:none!important}
#cargoLabelMask .cargo-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
#cargoVehicleDialog{width:min(760px,calc(100vw - 24px))!important;max-height:82dvh!important;padding:0!important;border-radius:12px}
#cargoVehicleDialog form{display:flex;flex-direction:column;max-height:82dvh;margin:0}
#cargoVehicleDialog .erp-v5-dialog-head{padding:14px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--ui-border,#e5ebf2)}
#cargoVehicleDialog h2{font-size:15px;line-height:1.5;margin:0;flex:1}
#cargoVehicleDialog .cargo-vehicle-body{overflow:auto;padding:14px 20px;min-height:0}
#cargoVehicleDialog .cargo-vehicle-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
#cargoVehicleDialog label{display:grid;gap:7px;min-width:0;font-size:12px;color:var(--ui-label,#64748b)}
#cargoVehicleDialog input:not([type="checkbox"]){width:100%;min-height:32px;font-size:12px;box-sizing:border-box}
#cargoVehicleDialog .cargo-return-label>span{display:flex;align-items:center;gap:8px;min-height:32px}
#cargoVehicleDialog input[type="checkbox"]{width:16px!important;height:16px!important}
#cargoVehicleDialog .cargo-vehicle-tracking-help{grid-column:1/-1;font-size:11px;line-height:1.7;margin:0;color:var(--ui-muted,#8492a5)}
#cargoVehicleDialog :is(.cargo-review-muted,.cargo-vehicle-local-note){font-size:11px;line-height:1.7;color:var(--ui-muted,#8492a5);margin:0 0 14px}
#cargoVehicleDialog .cargo-vehicle-local-note{margin:14px 0 0}
#cargoVehicleDialog #cargoVehicleMessage:empty{display:none}
#cargoVehicleDialog #cargoVehicleMessage{font-size:12px;line-height:1.7;color:var(--ui-danger,#d84c4c)}
#cargoVehicleDialog .erp-v5-dialog-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;flex:none;border-top:1px solid var(--ui-border,#e5ebf2)}
@layer erpColorMode.overrides {
 /* Keep native and enhanced selects inside identical grid tracks. The hidden
    native select must not size the shop host differently from the warehouse. */
 html body.erp-system-ui #cargoLabelMask :is(#cargoLabelShopField,#cargoWarehouseField){display:grid!important;grid-template-rows:24px 36px!important;align-content:start!important;align-self:start!important;gap:6px!important;min-width:0!important;margin:0!important;padding:0!important}
 html body.erp-system-ui #cargoLabelMask :is(#cargoLabelShopField,#cargoWarehouseField)>.cargo-label-shipment-head{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;height:24px!important;min-height:24px!important;max-height:24px!important;margin:0!important;padding:0!important;gap:8px!important}
 html body.erp-system-ui #cargoLabelMask :is(#cargoLabelShopField,#cargoWarehouseField)>.cargo-label-shipment-head>label{margin:0!important;padding:0!important;font-size:12px!important;line-height:20px!important}
 html body.erp-system-ui #cargoLabelMask :is(#cargoLabelShopField,#cargoWarehouseField)>:is(select,.erp-select-host,.erp-choice){box-sizing:border-box!important;display:block!important;align-self:start!important;width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important;max-height:36px!important;margin:0!important;padding:0!important;border-radius:var(--ui-control-radius,8px)!important;overflow:hidden!important}
 html body.erp-system-ui #cargoLabelMask :is(#cargoLabelShopField,#cargoWarehouseField)>:is(.erp-select-host,.erp-choice)>select{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:34px!important;min-height:0!important;max-height:34px!important;margin:0!important;padding:0!important}
 html body.erp-system-ui #cargoLabelMask :is(#cargoLabelShopField,#cargoWarehouseField) :is(.erp-select-button,.erp-choice-trigger){box-sizing:border-box!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0 34px 0 11px!important;line-height:1.4!important;font-size:12px!important}
 html body.erp-system-ui #cargoLabelMask #cargoGenerationRefresh{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;gap:4px!important;width:auto!important;min-width:0!important;height:22px!important;min-height:22px!important;max-height:22px!important;margin:0!important;padding:0 3px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-accent)!important;font-size:11px!important;line-height:20px!important;white-space:nowrap!important}
 html body.erp-system-ui #cargoLabelMask #cargoGenerationRefresh svg{flex:none!important;width:14px!important;height:14px!important}
 html body.erp-system-ui #cargoLabelMask #cargoGenerationSetup .erp-single-date{height:36px!important;min-height:36px!important;max-height:36px!important}
 html body.erp-system-ui #cargoLabelMask .modal-head{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important}
 html body.erp-system-ui #cargoLabelMask .modal-head>#cargoLabelTitle{flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html body.erp-system-ui #cargoLabelMask .modal-head>.cargo-label-tabs{position:static!important;display:flex!important;align-items:center!important;flex:0 0 auto!important;float:none!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;gap:8px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-label-tabs>.cargo-mode-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:auto!important;min-width:0!important;height:30px!important;min-height:0!important;margin:0!important;padding:0 3px!important;border:0!important;border-radius:4px!important;background:transparent!important;box-shadow:none!important;color:var(--ui-accent)!important;-webkit-text-fill-color:currentColor!important;font:inherit!important;font-size:12px!important;line-height:1.5!important;white-space:nowrap!important;cursor:pointer!important}
 html body.erp-system-ui #cargoLabelMask .cargo-label-tabs>.cargo-mode-link[hidden]{display:none!important}
 html body.erp-system-ui #cargoLabelMask .cargo-mode-link:hover{text-decoration:underline!important}
 html body.erp-system-ui #cargoLabelMask .cargo-mode-link:focus-visible{outline:1px solid var(--ui-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:0!important;list-style:none!important;min-height:24px!important;box-sizing:border-box!important;width:100%!important;max-width:560px!important;margin:0 auto!important;padding:3px 4px 8px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps>li{display:flex!important;align-items:center!important;flex:1 1 auto!important;flex-wrap:nowrap!important;gap:8px!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--ui-muted)!important;font-size:12px!important;line-height:22px!important;white-space:nowrap!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps>li:last-child{flex:0 0 auto!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps>li:first-child::after{content:''!important;position:static!important;display:block!important;flex:1 1 auto!important;width:auto!important;min-width:12px!important;height:1px!important;margin:0 14px!important;padding:0!important;border:0!important;background:var(--ui-border)!important;transform:none!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps>li[data-complete="true"]::after{background:var(--ui-accent)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-step-marker{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 22px!important;box-sizing:border-box!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:var(--ui-accent-soft)!important;color:var(--ui-muted)!important;font-size:12px!important;line-height:22px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-step-marker::before,html body.erp-system-ui #cargoLabelMask .cargo-step-marker::after{content:none!important;display:none!important}
 html body.erp-system-ui #cargoLabelMask .cargo-step-number{display:inline!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:22px!important;color:inherit!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui #cargoLabelMask .cargo-step-check{position:absolute!important;left:50%!important;top:50%!important;display:none!important;flex:none!important;width:14px!important;height:14px!important;margin:0!important;padding:0!important;transform:translate(-50%,-50%)!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps [data-complete="true"] .cargo-step-number{display:none!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps [data-complete="true"] .cargo-step-check{display:block!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps [data-complete="true"] .cargo-step-marker{color:var(--ui-accent)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps [aria-current="step"]{color:var(--ui-text)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-generation-steps [aria-current="step"]:not([data-complete="true"]) .cargo-step-marker{background:var(--ui-accent)!important;color:#fff!important}
 html body.erp-system-ui #cargoLabelMask .cargo-step-label{display:inline!important;flex:none!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:transparent!important;font-size:12px!important;line-height:22px!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;white-space:nowrap!important}
 html body.erp-system-ui #cargoLabelMask .cargo-label-modal{width:min(1120px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;min-height:0!important;margin:0!important}
 html body.erp-system-ui #cargoLabelMask:not([data-cargo-stage="2"]):not([data-cargo-stage="3"]) .cargo-label-modal{width:min(680px,calc(100vw - 32px))!important}
 html body.erp-system-ui #cargoLabelMask .modal-body{flex:1 1 auto!important;min-height:0!important;max-height:none!important;padding:14px 20px!important;overflow:auto!important;scrollbar-gutter:stable}
 html body.erp-system-ui #cargoLabelMask .cargo-review-total{font-size:11px;color:var(--ui-label)}
 html body.erp-system-ui #cargoLabelMask .cargo-review-table :is(.fb-order-copy,.fb-order-center-copy){display:inline-block!important;flex:0 1 auto!important;min-width:0!important;width:auto!important;max-width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:inherit!important;line-height:1.65!important;color:var(--ui-accent,#2f80ed)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;cursor:pointer!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-table :is(.fb-order-copy,.fb-order-center-copy):hover{text-decoration:underline!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-table .fb-thumb-button{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;flex:none!important;width:var(--erp-list-image-width,60px)!important;min-width:var(--erp-list-image-width,60px)!important;max-width:var(--erp-list-image-width,60px)!important;height:calc(var(--erp-list-image-width,60px)*4/3)!important;min-height:calc(var(--erp-list-image-width,60px)*4/3)!important;max-height:calc(var(--erp-list-image-width,60px)*4/3)!important;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;background:transparent!important;cursor:zoom-in!important}
}
@media(max-width:640px){
 #cargoLabelMask .cargo-generation-setup{grid-template-columns:minmax(0,1fr);gap:13px;padding:0}
 #cargoLabelMask .cargo-date-field,#cargoLabelMask .cargo-method-field,#cargoLabelMask .cargo-generation-summary{grid-column:auto}
 #cargoLabelMask .cargo-review-context{grid-template-columns:minmax(0,1fr)}
 #cargoLabelMask .cargo-review-context>div{padding:7px 10px;border-right:0;border-bottom:1px solid var(--ui-border,#e5ebf2)}
 #cargoLabelMask .cargo-review-context>div:last-child{border-bottom:0}
 #cargoLabelMask .cargo-review-section{padding:11px}
 #cargoLabelMask .cargo-review-order-scroll{height:auto;min-height:0;max-height:none;overflow:visible}
 #cargoLabelMask .cargo-review-count{grid-template-columns:58px 106px minmax(0,1fr);gap:7px}
 #cargoLabelMask .cargo-review-count>:nth-child(2){width:106px!important;max-width:106px!important}
 #cargoLabelMask .cargo-vehicle-table{min-width:620px}
 #cargoLabelMask .cargo-mobile-select-all{display:inline-flex;align-items:center;gap:5px;font-size:11px}
 #cargoLabelMask .cargo-review-table thead{display:none}
 #cargoLabelMask .cargo-review-table tbody tr{display:grid;grid-template-columns:24px minmax(0,1fr);border-bottom:1px solid var(--ui-border-soft,#edf1f5)}
 #cargoLabelMask .cargo-review-table tbody tr:last-child{border-bottom:0}
 #cargoLabelMask .cargo-review-table td{border:0;padding:9px}
 #cargoLabelMask .cargo-review-table td:nth-child(3){grid-column:1/-1;padding-top:0}
 #cargoLabelMask .cargo-review-pager{flex-wrap:wrap}
 #cargoLabelMask .cargo-label-actions{padding:10px 12px}
 #cargoVehicleDialog .cargo-vehicle-form-grid{grid-template-columns:minmax(0,1fr);gap:13px}
 #cargoVehicleDialog .cargo-vehicle-tracking-help{grid-column:auto}
 #cargoVehicleDialog :is(.erp-v5-dialog-head,.cargo-vehicle-body,.erp-v5-dialog-foot){padding-left:14px;padding-right:14px}
}

/* Shipment review: use the whole card for the heading, action and details. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-section{padding:16px!important;border-radius:12px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:12px!important;margin:0 0 14px!important;width:100%!important}
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-head>.cargo-vehicle-title{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-title>div{display:grid!important;gap:3px!important;min-width:0!important}
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-title b{font-size:14px!important;font-weight:600!important;line-height:1.5!important;color:var(--ui-text)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-title small{font-size:12px!important;color:var(--ui-muted)!important;line-height:1.5!important}
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-title-icon{display:grid!important;place-items:center!important;flex:none!important;width:38px!important;height:38px!important;border-radius:10px!important;background:var(--ui-accent-soft,#edf5ff)!important;color:var(--ui-accent)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-title-icon svg{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important}
 html body.erp-system-ui #cargoLabelMask .cargo-mode-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:4px 10px!important;border-radius:20px!important;background:var(--ui-accent-soft,#edf5ff)!important;color:var(--ui-accent)!important;font-size:12px!important;white-space:nowrap!important}
 html body.erp-system-ui #cargoLabelMask .cargo-vehicle-edit{justify-self:end!important;margin:0!important;min-height:34px!important;height:34px!important;padding:6px 12px!important;font-size:12px!important;white-space:nowrap!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-count{display:grid!important;grid-template-columns:64px 120px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;margin:0!important;padding:14px 0!important;border-top:1px solid var(--ui-border-soft,#edf1f5)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-count>:nth-child(2){width:120px!important;min-width:0!important;max-width:120px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-count input{width:100%!important;max-width:120px!important;min-height:36px!important;height:36px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-count>span{justify-self:end!important;text-align:right!important;line-height:1.6!important;font-size:12px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-extra-shipping{margin:0!important;padding:10px 12px!important;border-radius:8px!important;background:var(--ui-accent-soft,#f7f9fc)!important;font-size:12px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-extra-shipping>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;list-style:none!important;cursor:pointer!important;color:var(--ui-accent)!important;line-height:20px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-extra-shipping>summary::-webkit-details-marker{display:none}
 html body.erp-system-ui #cargoLabelMask .cargo-extra-shipping>summary::after{content:'展开 ›';color:var(--ui-muted);font-size:11px}
 html body.erp-system-ui #cargoLabelMask .cargo-extra-shipping[open]>summary::after{content:'收起 ⌃'}
 html body.erp-system-ui #cargoLabelMask .cargo-review-shipping{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 22px!important;margin:10px 0 0!important;padding-top:10px!important;border-top:1px solid var(--ui-border-soft,#e5ebf2)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-extra-shipping:not([open])>.cargo-review-shipping{display:none!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-shipping>div{display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;align-items:start!important;gap:8px!important;line-height:1.7!important;min-width:0!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-shipping>.cargo-shipping-location{grid-column:1/-1!important;order:2!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-shipping b{font-weight:400!important;color:var(--ui-text)!important;overflow-wrap:anywhere!important}
 @media(max-width:560px){
  html body.erp-system-ui #cargoLabelMask .cargo-vehicle-section{padding:12px!important}
  html body.erp-system-ui #cargoLabelMask .cargo-vehicle-head{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}
  html body.erp-system-ui #cargoLabelMask .cargo-mode-badge{grid-row:2!important;grid-column:1!important;justify-self:start!important;margin-left:48px!important}
  html body.erp-system-ui #cargoLabelMask .cargo-vehicle-edit{grid-row:1!important;grid-column:2!important;padding:6px 10px!important}
  html body.erp-system-ui #cargoLabelMask .cargo-review-count{grid-template-columns:64px minmax(0,1fr)!important;gap:8px 12px!important}
  html body.erp-system-ui #cargoLabelMask .cargo-review-count>span{grid-column:1/-1!important;justify-self:start!important;text-align:left!important}
  html body.erp-system-ui #cargoLabelMask .cargo-review-shipping{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 }
}

/* Order note and cancellation editors */
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) {
  --dlg-pad: 18px;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) > .order-edit-modal {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  min-height: 0;
  overflow: hidden !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) .modal-head {
  flex: none;
  min-height: 62px !important;
  padding: 12px var(--dlg-pad) 12px calc(var(--dlg-pad) + 45px) !important;
  background: var(--ui-surface) !important;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) .modal-head::before {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) .modal-head::after {
  left: calc(var(--dlg-pad) + 8px);
  width: 18px;
  height: 18px;
}
:is(#orderNoteForm, #cancelMarkForm) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) .order-edit-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px var(--dlg-pad) !important;
}
:is(#orderNoteMask, #cancelMarkMask) .order-edit-posting {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-field-surface);
}
:is(#orderNoteMask, #cancelMarkMask) .order-edit-posting > span {
  flex: none;
  color: var(--dlg-muted);
  font-size: 12px;
}
:is(#orderNotePosting, #cancelMarkPosting) {
  min-width: 0;
  color: var(--ui-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: text;
}
:is(#orderNoteMask, #cancelMarkMask) .order-edit-field {
  display: grid;
  gap: 6px;
}
:is(#orderNoteMask, #cancelMarkMask) .order-edit-field label,
#orderNoteMask .order-note-log-title {
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) :is(#orderNoteText, #cancelMarkNote) {
  display: block;
  width: 100%;
  min-height: 84px !important;
  max-height: 220px;
  padding: 9px 11px !important;
  resize: vertical;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.55;
}
:is(#orderNoteMask, #cancelMarkMask) :is(#orderNoteText, #cancelMarkNote)::placeholder {
  font-weight: 400;
}
@layer erpColorMode.overrides {
  html body.erp-system-ui :is(#orderNoteMask, #cancelMarkMask) :is(#orderNoteText, #cancelMarkNote):focus {
    outline: none !important;
    border-color: var(--ui-accent) !important;
    box-shadow: var(--ui-focus-ring) !important;
  }
}
#orderNoteMask .order-note-history {
  min-width: 0;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  overflow: hidden;
}
#orderNoteMask .order-note-log-title {
  margin: 0;
  padding: 8px 11px;
  border-bottom: 1px solid var(--ui-border-soft);
  background: var(--ui-field-surface);
}
#orderNoteMask .order-note-logs {
  max-height: 178px;
  overflow: auto;
  scrollbar-width: thin;
}
#orderNoteMask .order-note-log-list {
  margin: 0;
  padding: 0 11px;
  list-style: none;
}
#orderNoteMask .order-note-log-item {
  display: grid;
  gap: 5px;
  padding: 9px 0;
}
#orderNoteMask .order-note-log-item + .order-note-log-item {
  border-top: 1px solid var(--ui-border-soft);
}
#orderNoteMask .order-note-log-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}
#orderNoteMask .order-note-log-action {
  border-radius: 5px;
  padding: 2px 6px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent-hover);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
#orderNoteMask .order-note-log-time,
#orderNoteMask .order-note-empty {
  color: var(--dlg-muted);
  font-size: 12px;
  line-height: 1.5;
}
#orderNoteMask .order-note-empty {
  margin: 0;
  padding: 10px 11px;
}
#orderNoteMask :is(.order-note-log-before, .order-note-log-change) {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}
#orderNoteMask .order-note-log-before {
  color: var(--dlg-muted);
  text-decoration: line-through;
}
#orderNoteMask .order-note-log-change {
  color: var(--ui-text);
  font-weight: 600;
}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) .order-edit-actions {
  display: flex;
  flex: none;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 11px var(--dlg-pad) !important;
  background: var(--ui-field-surface);
}
@media (max-width: 480px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#orderNoteMask, #cancelMarkMask) {
    --dlg-pad: 14px;
  }
}

/* OGL handover modes */
@layer erpColorMode.overrides {
 #cargoLabelMask .cargo-mode-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #cargoLabelMask .cargo-mode-options>div{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:9px;row-gap:3px;align-items:center;padding:12px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-field-surface);opacity:.65}
 #cargoLabelMask .cargo-mode-options>div[data-active="true"]{opacity:1;border-color:var(--ui-accent);background:var(--ui-accent-soft)}
 #cargoLabelMask .cargo-mode-options b{font-size:12px;font-weight:600;color:var(--ui-text)}
 #cargoLabelMask .cargo-mode-options small{grid-column:2;font-size:11px;line-height:1.5;color:var(--ui-label)}
 #cargoLabelMask .cargo-mode-option-icon{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:color-mix(in srgb,var(--ui-accent) 10%,var(--ui-surface));color:var(--ui-accent)}
 #cargoLabelMask .cargo-mode-option-icon svg{width:18px;height:18px}
 #cargoLabelMask .cargo-mode-notice{display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-accent-soft);color:var(--ui-accent)}
 #cargoLabelMask .cargo-mode-notice>div{display:grid;gap:4px;min-width:0}
 #cargoLabelMask .cargo-mode-notice b{font-size:13px}
 #cargoLabelMask .cargo-mode-notice span:not(.fin-icon){font-size:11px;line-height:1.5;color:var(--ui-label)}
 #cargoLabelMask .cargo-mode-notice[data-mode="pickup"]{background:color-mix(in srgb,#1ba870 7%,var(--ui-surface))}
 #cargoLabelMask .cargo-mode-notice[data-mode="unknown"]{background:color-mix(in srgb,#d69b2b 9%,var(--ui-surface))}
 #cargoLabelMask .cargo-pickup-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;font-size:12px}
 #cargoLabelMask .cargo-pickup-summary>div{display:grid;gap:5px;min-width:0}
 #cargoLabelMask .cargo-pickup-summary>div:last-of-type{grid-column:1/-1}
 #cargoLabelMask .cargo-pickup-summary>div>span{color:var(--ui-label);font-size:11px}
 #cargoLabelMask .cargo-pickup-summary b{font-weight:500;overflow-wrap:anywhere;white-space:pre-wrap}
 #cargoLabelMask .cargo-pickup-summary p{grid-column:1/-1;margin:0;font-size:11px;line-height:1.6}
 #cargoLabelMask .cargo-contact-verified{color:var(--ui-success,#1ba870)}
 #cargoLabelMask .cargo-contact-pending{color:var(--ui-warning,#bd8520)}
 #cargoLabelMask .cargo-vehicle-title-icon svg{width:18px;height:18px}
 html body.erp-system-ui #cargoLabelMask :is(#cargoModeNotice,#cargoReviewHandoverSection,#cargoReviewCountField,#cargoPickupSection,#cargoPickupFields)[hidden]{display:none!important}
 html body.erp-system-ui #cargoLabelMask .cargo-pickup-section .cargo-vehicle-head{grid-template-columns:minmax(0,1fr)!important;margin-bottom:12px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-pickup-section .cargo-vehicle-title-icon{width:32px!important;height:32px!important;border-radius:8px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-pickup-section .cargo-vehicle-title b{display:flex!important;align-items:center!important;gap:8px!important;font-size:13px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-pickup-mode{display:inline-flex;align-items:center;padding:2px 7px;border-radius:5px;background:var(--ui-accent-soft);color:var(--ui-accent);font-size:11px;font-weight:400;line-height:18px}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 18px!important;min-width:0!important}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-field{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-field>label{display:block!important;margin:0!important;color:var(--ui-text)!important;font-size:12px!important;line-height:20px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-field em{color:var(--ui-danger);font-style:normal}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-comment{grid-column:1/-1!important}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-fields :is(input:not([type="hidden"]),textarea){box-sizing:border-box!important;width:100%!important;min-width:0!important;height:36px!important;min-height:36px!important;margin:0!important;padding:7px 10px!important;border:1px solid var(--ui-border)!important;border-radius:6px!important;background:var(--ui-field-surface)!important;color:var(--ui-text)!important;font:inherit!important;font-size:12px!important;line-height:20px!important}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-fields textarea{height:56px!important;min-height:56px!important;resize:vertical}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-fields :is(input,textarea):focus-visible{outline:2px solid var(--ui-accent-soft)!important;outline-offset:1px;border-color:var(--ui-accent)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-fields input[aria-invalid="true"]{border-color:var(--ui-danger)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-fields :is(input,textarea):disabled{color:var(--ui-label)!important;opacity:.72}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-input{display:flex!important;align-items:start!important;gap:8px!important;min-width:0!important}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-input>#cargoContactPhone{flex:1 1 0!important;min-width:0!important;width:0!important}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-country{position:relative;flex:0 0 134px;width:134px;min-width:0;margin:0;padding:0;border:0;background:transparent;color:var(--ui-text);font-size:12px}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-country>summary{box-sizing:border-box;display:flex;align-items:center;gap:7px;height:36px;padding:0 9px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-field-surface);list-style:none;cursor:pointer;white-space:nowrap}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-country>summary::-webkit-details-marker{display:none}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-country>summary:focus-visible{outline:2px solid var(--ui-accent-soft);outline-offset:1px;border-color:var(--ui-accent)}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-country[open]>summary{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-accent-soft)}
 html body.erp-system-ui #cargoLabelMask #cargoContactCountryIcon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:19px;height:16px;color:var(--ui-label)}
 html body.erp-system-ui #cargoLabelMask #cargoContactCountryIcon svg{display:block!important;width:19px!important;height:15px!important;min-width:0!important;fill:none!important;stroke:none!important}
 html body.erp-system-ui #cargoLabelMask #cargoContactCountryIcon svg[data-country="OTHER"]{stroke:currentColor!important}
 html body.erp-system-ui #cargoLabelMask .cargo-country-chevron{width:12px!important;height:12px!important;margin-left:auto!important;color:var(--ui-label);transition:transform .15s}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-country[open] .cargo-country-chevron{transform:rotate(180deg)}
 html body.erp-system-ui #cargoLabelMask .cargo-country-options{position:absolute;top:calc(100% + 6px);left:0;z-index:20;box-sizing:border-box;display:grid;gap:3px;min-width:190px;padding:5px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface);box-shadow:0 6px 22px #162a4a1a}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-country:not([open])>.cargo-country-options{display:none}
 html body.erp-system-ui #cargoLabelMask .cargo-country-options>button{display:block!important;box-sizing:border-box!important;width:100%!important;height:34px!important;min-height:34px!important;margin:0!important;padding:7px 9px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:var(--ui-text)!important;box-shadow:none!important;font:inherit!important;font-size:12px!important;line-height:20px!important;text-align:left!important;cursor:pointer}
 html body.erp-system-ui #cargoLabelMask .cargo-country-options>button:is(:hover,:focus-visible){outline:0!important;background:var(--ui-accent-soft)!important;color:var(--ui-accent)!important}
 html body.erp-system-ui #cargoLabelMask .cargo-phone-country[inert]{opacity:.72}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-feedback{margin:7px 0 0!important;font-size:11px!important;line-height:1.6!important;color:var(--ui-warning,#bd8520)}
 html body.erp-system-ui #cargoLabelMask .cargo-contact-feedback:empty{display:none!important}
 html body.erp-system-ui #cargoLabelMask .cargo-pickup-section .cargo-review-count{margin-top:12px!important;padding:12px 0 0!important}
 html body.erp-system-ui #cargoLabelMask .cargo-review-count>span{justify-self:start!important;text-align:left!important}
 @media(max-width:700px){
  html body.erp-system-ui #cargoLabelMask .cargo-contact-fields{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  html body.erp-system-ui #cargoLabelMask .cargo-phone-country{flex-basis:128px;width:128px}
 }
 @media(max-width:520px){
  #cargoLabelMask .cargo-mode-options{gap:7px}
  #cargoLabelMask .cargo-mode-options>div{grid-template-columns:26px minmax(0,1fr);padding:9px;column-gap:6px}
  #cargoLabelMask .cargo-mode-option-icon{width:26px;height:26px}
  #cargoLabelMask .cargo-mode-options small{grid-column:1/-1}
  #cargoLabelMask .cargo-mode-notice{padding:10px}
  #cargoLabelMask .cargo-pickup-section .cargo-vehicle-head{flex-wrap:wrap}
 }
}

/* ===== dialog-finance.css ===== */
/* Shared finance palette for dialog surfaces and heading icons only.
 * This first-declared important layer changes color, never visibility, sizing,
 * focus, positioning, native top-layer behavior, or business-value colors. */
@layer erpDialogPalette {
 html body.erp-system-ui :is(.modal-mask,dialog,.modal,.pm-portal,.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog,.wm-dialog){
  --fin-green:#24875c!important;--fin-blue:#3777ce!important;--fin-amber:#ac720d!important;
  --fin-purple:#8257c8!important;--fin-red:#c84e65!important;--fin-teal:#168898!important;--fin-indigo:#6167b8!important;--fin-muted:var(--dm-muted,#758397)!important;
  --dlg-ink:var(--fin-blue)!important;--dlg-wash:color-mix(in srgb,var(--dlg-ink) 10%,var(--ui-surface))!important;
  --dlg-accent:var(--ui-accent)!important;--dlg-deep:var(--ui-accent-hover)!important;
  --dlg-soft:var(--ui-field-surface)!important;--dlg-text:var(--ui-text)!important;
  --dlg-label:var(--ui-label)!important;--dlg-muted:var(--dm-muted,#758397)!important;--dlg-line:var(--ui-border-soft)!important;
 }
 html[data-erp-mode="dark"] body.erp-system-ui :is(.modal-mask,dialog,.modal,.pm-portal,.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog,.wm-dialog){
  --fin-green:#78d7a9!important;--fin-blue:#8ab8fa!important;--fin-amber:#efbd72!important;
  --fin-purple:#c2a1f2!important;--fin-red:#f69dac!important;--fin-teal:#7bd0da!important;--fin-indigo:#aab0f8!important;
 }
 html body.erp-system-ui :is(dialog,.modal,.pm-portal,.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog,.wm-dialog){
  background:var(--ui-surface)!important;border-color:var(--ui-border)!important;color:var(--ui-text)!important;
 }
 html body.erp-system-ui .modal-mask{background:var(--ui-overlay)!important}
 html body.erp-system-ui dialog::backdrop{background:var(--ui-overlay)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog,.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog,.wm-dialog)
 :is(.modal-head,.pm-dialog-head,.erp-message-head,.ddp-dialog-head,.wm-dialog-head),
 html body.erp-system-ui :is(.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog)>header{
  background:var(--ui-surface)!important;border-color:var(--ui-border-soft)!important;color:var(--ui-text)!important;
 }
 html body.erp-system-ui :is(.modal,.pm-portal,dialog,.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog,.wm-dialog)
 :is(.modal-body,.pm-dialog-body,.erp-message-body,.ddp-dialog-body,.wm-dialog-body){background:var(--ui-surface)!important;color:var(--ui-text)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog,.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog,.wm-dialog)
 :is(.erp-dialog-actions,.erp-message-actions,.pm-dialog-footer,.ddp-dialog-actions,.wm-dialog-footer),
 html body.erp-system-ui :is(.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog)>footer{
  background:var(--ui-field-surface)!important;border-color:var(--ui-border-soft)!important;
 }
 html body.erp-system-ui :is(.modal,.pm-portal,dialog,.pc-dialog,.lc-dialog,.rc-dialog,.ss-dialog,.wm-dialog)
 :is(.fin-detail-summary,.ddp-detail-summary,.erp-dialog-summary){
  background:color-mix(in srgb,var(--ui-accent) 5%,var(--ui-surface))!important;border-color:var(--ui-border-soft)!important;
 }
 /* Legacy masked headings retain their own glyph and use the same blue tile. */
 html body.erp-system-ui :is(.modal-head,.pm-dialog-head,.pc-dialog>header,.lc-dialog>header,.rc-dialog>header):not([data-erp-custom-heading])::before{
  background:var(--dlg-wash)!important;border-color:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui :is(.modal-head,.pm-dialog-head,.pc-dialog>header,.lc-dialog>header,.rc-dialog>header):not([data-erp-custom-heading])::after{background:var(--dlg-ink)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.fb-heading-icon>.fin-icon,.ddp-heading-icon,.erp-message-icon,.lc-issue-emblem){
  color:var(--fin-icon-color,var(--dlg-ink))!important;
  background:color-mix(in srgb,var(--fin-icon-color,var(--dlg-ink)) 10%,var(--ui-surface))!important;
  border-color:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.fb-heading-icon,.ddp-heading-icon,.erp-message-icon,.lc-issue-emblem) svg{color:inherit!important;stroke:currentColor!important}
 /* Financial icon categories keep the exact finance-analysis color meanings. */
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.fin-icon-profit,.fin-icon-check){--fin-icon-color:var(--fin-green)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.fin-icon-wallet,.fin-icon-download){--fin-icon-color:var(--fin-blue)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.fin-icon-package,.fin-icon-return,.fin-icon-info){--fin-icon-color:var(--fin-amber)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.fin-icon-ads,.fin-icon-clock){--fin-icon-color:var(--fin-purple)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.fin-icon-fine,.fin-icon-refund,.fin-icon-close){--fin-icon-color:var(--fin-red)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) .fin-icon-truck{--fin-icon-color:var(--fin-teal)!important}
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.fin-icon-receipt,.fin-icon-coins,.fin-icon-edit){--fin-icon-color:var(--fin-indigo)!important}
 html body.erp-system-ui :is(dialog[data-kind="warning"],#financeRebuildConfirmMask,#financeRebuildConfirmMask>.modal,#cancelMarkMask,#cancelMarkMask>.modal,#forceLogoutMask,#forceLogoutMask>.modal){--dlg-ink:var(--fin-amber)!important}
 html body.erp-system-ui :is(dialog[data-kind="error"],#qualityDeleteMask,#qualityDeleteMask>.modal,#deleteShopConfirmMask,#deleteShopConfirmMask>.modal,#deleteCancelMarkMask,#deleteCancelMarkMask>.modal){--dlg-ink:var(--fin-red)!important}
 html body.erp-system-ui #cancelMarkMask .modal-head,
 html body.erp-system-ui #deleteCancelMarkMask > .system-confirm-modal {
  --dlg-ink: var(--print-label-unprinted) !important;
  --dlg-wash: color-mix(in srgb, var(--print-label-unprinted) 12%, var(--ui-surface)) !important;
 }
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.modal-close,.erp-message-close,.ddp-dialog-head>.ddp-icon){
  background:var(--ui-surface)!important;border-color:var(--ui-border)!important;color:var(--dm-muted,#758397)!important;
 }
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(.modal-close,.erp-message-close,.ddp-dialog-head>.ddp-icon):hover{
  background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important;
 }
 /* A button's glyph inherits its label; colored header tiles stay separate. */
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(button,a.erp-btn) .fin-icon{
  --fin-icon-color:currentColor!important;color:inherit!important;background:transparent!important;
 }
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) :is(button,a.erp-btn)>svg{color:inherit!important;stroke:currentColor!important}
}

/* Heading icon tiles use the same ten-percent wash as finance categories. */
@layer erpDialogPalette {
 html body.erp-system-ui :is(.modal-head,.pm-dialog-head,.pc-dialog>header,.lc-dialog>header,.rc-dialog>header):not([data-erp-custom-heading])::before {
  background:color-mix(in srgb,var(--erp-dialog-icon-color,var(--dlg-ink)) 10%,var(--ui-surface))!important;
 }
 html body.erp-system-ui :is(.modal,.pm-portal,dialog) [data-erp-dialog-icon-tile] {
  background:color-mix(in srgb,var(--erp-dialog-icon-color,var(--fin-icon-color,var(--dlg-ink))) 10%,var(--ui-surface))!important;
  border-color:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui .account-settings-title-icon-v3250 {color:var(--ui-accent)!important}
 html body.erp-system-ui .account-settings-title-icon-v3250>svg {color:inherit!important;stroke:currentColor!important}
 html body.erp-system-ui :is(.current-account-logout-v3230,.account-settings-logout-v3250) {
  --ui-button-fill:#ef4444!important;--ui-button-text:#fff!important;--ui-button-line:#ef4444!important;
  --erp-action-icon-color:currentColor!important;background:#ef4444!important;border-color:#ef4444!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 }
 html body.erp-system-ui :is(.current-account-logout-v3230,.account-settings-logout-v3250):hover {background:#dc2626!important;border-color:#dc2626!important}
 html body.erp-system-ui :is(.current-account-logout-v3230,.account-settings-logout-v3250)>svg {color:inherit!important;stroke:currentColor!important;fill:none!important}
}

/* Profit image previews share the ERP full-screen image surface. */
@layer erpDialogPalette {
 /* The preview owns the sole full-screen scrim; closing it restores the details. */
 html body.erp-system-ui #dailyProfitDetails.ddp-dialog>dialog.ddp-image-preview {
  background:transparent!important;border-color:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui #imageMask,
 html body.erp-system-ui #dailyProfitDetails.ddp-dialog>dialog.ddp-image-preview::backdrop {
  background:var(--ui-overlay)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 html body.erp-system-ui #dailyProfitDetails.ddp-dialog:has(>dialog.ddp-image-preview[open])::backdrop {
  background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
}

/* ===== finance-image-preview.css ===== */
/* Keep the scrim full-screen; the image stays smaller than its source dialog. */
@layer erpDialogPalette {
 html body.erp-system-ui #erpFinanceImagePreview.erp-finance-image-preview {
  background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--ui-text)!important;
 }
 html body.erp-system-ui #erpFinanceImagePreview::backdrop {
  background:var(--ui-overlay)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 html body.erp-system-ui .modal-mask[data-erp-finance-image-parent],
 html body.erp-system-ui dialog[data-erp-finance-image-parent]::backdrop {
  background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
}
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #erpFinanceImagePreview.erp-finance-image-preview[open] {
  box-sizing:border-box!important;position:fixed!important;inset:0!important;display:grid!important;place-items:center!important;
  width:100vw!important;min-width:0!important;max-width:none!important;height:100dvh!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:16px!important;border:0!important;border-radius:0!important;overflow:auto!important;
  transform:none!important;zoom:calc(1 / var(--erp-page-zoom,1.05))!important;overscroll-behavior:contain!important;
 }
 html body.erp-system-ui #erpFinanceImagePreview .erp-finance-image-card {
  --image-preview-width:max(1px,min(540px,var(--erp-image-bound-width,calc(var(--erp-visible-width,100vw) - 48px)),calc(var(--erp-image-bound-height,calc(var(--erp-visible-height,100dvh) * .84)) * .75)));
  box-sizing:border-box!important;position:absolute!important;left:var(--erp-image-bound-x,50%)!important;top:var(--erp-image-bound-y,50%)!important;transform:translate(-50%,-50%)!important;display:grid!important;grid-template-rows:minmax(0,1fr)!important;
  width:var(--image-preview-width)!important;height:calc(var(--image-preview-width) / .75)!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  padding:12px!important;border:0!important;border-radius:var(--ui-dialog-radius)!important;background:var(--ui-surface)!important;box-shadow:var(--ui-dialog-shadow)!important;
 }
 html body.erp-system-ui #erpFinanceImagePreview .erp-finance-image-card>img {
  box-sizing:border-box!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;border-radius:8px!important;background:var(--ui-surface)!important;object-fit:contain!important;object-position:center!important;
 }
 html body.erp-system-ui #erpFinanceImagePreview .erp-finance-image-close {
  box-sizing:border-box!important;position:absolute!important;top:6px!important;right:6px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;
  border:1px solid var(--ui-border)!important;border-radius:8px!important;background:var(--ui-surface)!important;color:var(--dm-muted,#758397)!important;cursor:pointer!important;
 }
 html body.erp-system-ui #erpFinanceImagePreview .erp-finance-image-close>svg {
  width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round;stroke-linejoin:round;
 }
 html body.erp-system-ui #erpFinanceImagePreview .erp-finance-image-close:focus-visible {outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
}

/* ===== tables.css ===== */
/* Header typography is shared; column layout and cell semantics stay local. */
/* Screen-only gutters and dividers preserve each page's existing alignment. */
@layer erpTableSpacing {
  @media screen {
    html body.erp-system-ui table {
      --erp-table-cell-gap:12px;
      --erp-table-divider:var(--ui-border-soft,var(--ui-border,#e7eef6));
    }
    html body.erp-system-ui table > :is(thead,tbody,tfoot) > tr > :is(th,td) {
      padding-inline:var(--erp-table-cell-gap)!important;
      border-inline-start:0!important;
      border-inline-end:1px solid var(--erp-table-divider)!important;
      border-block-end:1px solid var(--erp-table-divider)!important;
    }
    html body.erp-system-ui table > :is(thead,tbody,tfoot) > tr > :is(th,td):first-child {
      border-inline-start:1px solid var(--erp-table-divider)!important;
    }
    @media(min-width:681px) and (max-width:1100px) {
      html body.erp-system-ui table { --erp-table-cell-gap:6px; }
    }
    /* Card layouts retain their own padding and row/action separators. */
    @media(max-width:900px) {
      html body.erp-system-ui table:is(.fb-finance-ledger-table,.fb-finance-issues-table) :is(th,td) {
        padding-inline:revert-layer!important;border-inline:revert-layer!important;border-block-end:revert-layer!important;
      }
    }
    @media(max-width:680px) {
      html body.erp-system-ui table.fb-finance-grid :is(th,td) {
        padding-inline:revert-layer!important;border-inline:revert-layer!important;border-block-end:revert-layer!important;
      }
    }
    @media(max-width:640px) {
      html body.erp-system-ui table[data-erp-mobile-table] :is(th,td) {
        padding-inline:revert-layer!important;border-inline:revert-layer!important;border-block-end:revert-layer!important;
      }
      /* The selection box sits at the card edge; reserve its own header space. */
      html body.erp-system-ui #orders table[data-erp-mobile-table] td[data-mobile-field=shop] {
        padding-inline-end:44px!important;
      }
      html body.erp-system-ui #orders table[data-erp-mobile-table] td[data-mobile-field=select] {
        display:flex!important;align-items:center!important;justify-content:center!important;
        top:16px!important;height:34px!important;padding:0!important;
      }
      html body.erp-system-ui #orders table[data-erp-mobile-table] td[data-mobile-field=select] > input[type=checkbox] {
        margin:0!important;
      }
    }
  }
}
/* Explicit list-column alignment; product/order exceptions keep local layout. */
@layer erpTableSpacing {
  @media screen {
    html body.erp-system-ui :where(
      #warehouse-records .wh-table-records :is(th,td),
      #warehouse-inventory .wh-table-inventory :is(th,td):not(:nth-child(3)),
      #products #pm-app .pm-table :is(th,td):nth-child(2),
      #procurement #procurement-app table[aria-label="采购订单"] :is(th,td):nth-child(2),
      #shops .shop-table :is(th,td),
      #returns .returns-table-v3300 :is(th,td):not(:nth-child(8)),
      #quality-config .quality-table :is(th,td),
      #click-ads table :is(th,td),
      #finance #financeOrdersTable :is(th,td):not(:nth-child(3)):not(.finance-cumulative-product-cell),
      #finance #financeShopsTable :is(th,td)
    ) {
      text-align:center!important;
      justify-content:center!important;
      align-items:center!important;
    }
    html body.erp-system-ui :where(
      #warehouse-records .wh-table-records :is(th,td),
      #warehouse-inventory .wh-table-inventory :is(th,td):not(:nth-child(3)),
      #products #pm-app .pm-table :is(th,td):nth-child(2),
      #procurement #procurement-app table[aria-label="采购订单"] :is(th,td):nth-child(2),
      #shops .shop-table :is(th,td),
      #returns .returns-table-v3300 :is(th,td):not(:nth-child(8)),
      #quality-config .quality-table :is(th,td),
      #click-ads table :is(th,td),
      #finance #financeOrdersTable :is(th,td):not(:nth-child(3)):not(.finance-cumulative-product-cell),
      #finance #financeShopsTable :is(th,td)
    ) :where(div,p,span,small,b,strong,time,a,button,label,code) { text-align:center!important; }
    html body.erp-system-ui :where(
      #warehouse-records .wh-table-records :is(th,td),
      #warehouse-inventory .wh-table-inventory :is(th,td):not(:nth-child(3)),
      #products #pm-app .pm-table :is(th,td):nth-child(2),
      #procurement #procurement-app table[aria-label="采购订单"] :is(th,td):nth-child(2),
      #shops .shop-table :is(th,td),
      #returns .returns-table-v3300 :is(th,td):not(:nth-child(8)),
      #quality-config .quality-table :is(th,td),
      #click-ads table :is(th,td),
      #finance #financeOrdersTable :is(th,td):not(:nth-child(3)):not(.finance-cumulative-product-cell),
      #finance #financeShopsTable :is(th,td)
    ) > :is(img,button) { margin-inline:auto!important; }
    html body.erp-system-ui :where(
      #warehouse-records .wh-record-product,
      #warehouse-records .wh-row-actions,
      #warehouse-inventory td:not(:nth-child(3)) .wh-row-actions,
      #warehouse-inventory .wh-inventory-cost,
      #shops .shop-table .shop-name-cell,
      #shops .shop-table .shop-row-actions,
      #quality-config .quality-table :is(.quality-actions,.quality-row-actions)
    ) { justify-content:center!important;align-items:center!important; }
    html body.erp-system-ui #warehouse-inventory .wh-table-inventory td:nth-child(2) > :is(.wh-photo,.wh-no-photo) {
      margin-inline:calc((100% - var(--erp-list-image-width,58px)) / 2)!important;
    }
    html body.erp-system-ui #finance #financeOrdersTable :is(th,td):nth-child(9) {
      padding-inline:4px!important;
    }
    html body.erp-system-ui #quality-config .quality-table { min-width:680px!important; }

    /* Keep both operation rows on the same center line as the shop header. */
    html body.erp-system-ui #shops .shop-table .shop-operation-stack {
      box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;
      justify-items:stretch!important;gap:0!important;
      width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;
    }
    html body.erp-system-ui #shops .shop-table .shop-operation-stack > :is(.shop-row-actions,[data-shop-sync-status]) {
      box-sizing:border-box!important;width:auto!important;min-width:0!important;max-width:none!important;
      margin-inline:0!important;padding-inline:0!important;
    }
    html body.erp-system-ui #shops .shop-table .shop-operation-stack .shop-row-actions {
      justify-content:center!important;
    }
    html body.erp-system-ui #shops .shop-table .shop-operation-stack [data-shop-sync-status] > .ss-inline-compact {
      width:auto!important;min-width:0!important;max-width:none!important;
      justify-content:center!important;margin-inline:0!important;
    }
    @media(max-width:640px) {
      html body.erp-system-ui #shops .shop-table .shop-operation-cell { width:auto!important;min-width:0!important;max-width:100%!important; }
      html body.erp-system-ui #shops .shop-table .shop-operation-stack .shop-row-actions { flex-wrap:wrap!important; }
    }

    /* The watermark list uses a grid rather than a table. */
    html body.erp-system-ui #watermarks :is(.wm-table-head,.wm-row) > * {
      text-align:center!important;justify-content:center!important;align-items:center!important;
    }
    html body.erp-system-ui #watermarks .wm-row :where(div,span,b,small,time,button,em) { text-align:center!important; }
    html body.erp-system-ui #watermarks .wm-identity { justify-content:center!important;align-items:center!important; }
    html body.erp-system-ui #watermarks .wm-row > :last-child > button { margin-inline:auto!important; }

    /* Separate the preview so each shop name follows the same header center. */
    html body.erp-system-ui #watermarks #wmRows {
      --wm-list-columns:80px minmax(220px,1.6fr) minmax(190px,1.2fr) 100px minmax(190px,1.2fr) 110px;
      box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
      overflow-x:auto!important;overscroll-behavior-x:contain;
    }
    html body.erp-system-ui #watermarks #wmRows > :is(.wm-table-head,.wm-row) {
      box-sizing:border-box!important;display:grid!important;
      grid-template-columns:var(--wm-list-columns)!important;gap:12px!important;
      width:100%!important;min-width:984px!important;padding-inline:16px!important;
      align-items:center!important;
    }
    html body.erp-system-ui #watermarks #wmRows > .wm-table-head { padding-block:12px!important; }
    html body.erp-system-ui #watermarks #wmRows > .wm-row { min-height:92px!important;padding-block:16px!important; }
    html body.erp-system-ui #watermarks #wmRows > :is(.wm-table-head,.wm-row) > * {
      min-width:0!important;grid-column:auto!important;grid-row:auto!important;
      text-align:center!important;
    }
    html body.erp-system-ui #watermarks #wmRows .wm-preview-cell {
      display:flex!important;align-items:center!important;justify-content:center!important;
    }
    html body.erp-system-ui #watermarks #wmRows .wm-preview-cell .wm-thumb { margin-inline:auto!important; }
    html body.erp-system-ui #watermarks #wmRows :is(.wm-identity,.wm-row-settings,.wm-date) { display:block!important; }
    html body.erp-system-ui #watermarks #wmRows .wm-identity > div { min-width:0!important;width:100%!important; }
    html body.erp-system-ui #watermarks #wmRows :is(.wm-identity,.wm-row-settings) :is(b,small) {
      display:block!important;max-width:100%!important;overflow-wrap:anywhere;
    }
  }
}
/* WHD is a posting identity, displayed once above its number and status. */
@layer erpColorMode.overrides {
  html body.erp-system-ui #orders .posting-cell .order-whd-label-row,
  html body.erp-system-ui #finance #financeOrdersRows .finance-order-info-v3301 .order-whd-label-row {
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin:0 0 6px!important;padding:0!important;max-width:100%!important;
  }
  html body.erp-system-ui #orders .posting-cell .order-whd-badge,
  html body.erp-system-ui #finance #financeOrdersRows .finance-order-info-v3301 .order-whd-badge {
    box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:5px!important;max-width:100%!important;min-height:25px!important;padding:3px 8px!important;margin:0!important;
    border:0!important;border-radius:5px!important;
    background:#22a447!important;color:#fff!important;-webkit-text-fill-color:currentColor!important;
    font-size:12px!important;font-weight:600!important;line-height:17px!important;white-space:nowrap!important;
    box-shadow:none!important;cursor:default!important;vertical-align:middle!important;
  }
  html body.erp-system-ui #orders .posting-cell .order-whd-badge>span,
  html body.erp-system-ui #finance #financeOrdersRows .finance-order-info-v3301 .order-whd-badge>span {
    color:inherit!important;-webkit-text-fill-color:currentColor!important;font-size:inherit!important;font-weight:600!important;line-height:inherit!important;
  }
  html body.erp-system-ui #orders .posting-cell .order-whd-badge>svg,
  html body.erp-system-ui #finance #financeOrdersRows .finance-order-info-v3301 .order-whd-badge>svg {
    display:block!important;flex:0 0 14px!important;width:14px!important;height:14px!important;
    fill:none!important;stroke:currentColor!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  }
}
@layer erpColorMode.overrides {
  html body.erp-system-ui #finance #financeOrdersRows .finance-order-info-v3301 > .order-whd-label-row {justify-content:flex-start!important;margin:0 0 3px!important;}
  html body.erp-system-ui #finance #financeOrdersRows .order-whd-badge > span {min-width:0!important;}
}
/* 6.1.9: Preserve all posting products, aligned across the existing two columns. */
@layer erpColorMode.overrides {
  html body.erp-system-ui #orders .legacy-order-table td:is(.order-multi-images,.order-multi-products) {
    vertical-align:middle!important;
  }
  html body.erp-system-ui #orders .order-item-list {
    display:flex!important;flex-direction:column!important;gap:0!important;min-width:0!important;
  }
  html body.erp-system-ui #orders .order-item-slot {
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
    justify-content:center!important;min-width:0!important;
    height:var(--order-item-height,104px)!important;min-height:var(--order-item-height,104px)!important;
    margin:0!important;padding:10px 0!important;
  }
  html body.erp-system-ui #orders .order-item-slot+.order-item-slot {
    border-top:1px solid var(--ui-border-soft,#edf1f6)!important;
  }
  html body.erp-system-ui #orders .order-item-image {align-items:center!important;}
  html body.erp-system-ui #orders .order-item-info {align-items:stretch!important;}
  html body.erp-system-ui #orders .order-item-info>div {
    min-width:0!important;margin:0!important;line-height:20px!important;
  }
  html body.erp-system-ui #orders .order-item-info .wh-order-stock {margin-bottom:4px!important;}
  html body.erp-system-ui #orders .order-item-info :is(.sku-single-line,.offer-single-line) {
    display:flex!important;align-items:baseline!important;
  }
  html body.erp-system-ui #orders .order-item-info :is(.sku-single-line,.offer-single-line) .copy-value {
    display:block!important;flex:0 1 auto!important;min-width:0!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
}
@layer erpComponents {
  /* Page lists grow with their rows; only wide columns scroll inside the list. */
  html body.erp-system-ui .erp-list-scroll {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    position: relative !important;
    isolation: isolate;
    scrollbar-width: thin;
    scrollbar-color: #bcc8d2 #f6f8fb;
    scrollbar-gutter: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto !important;
    overflow-anchor: none;
  }
  /* Dialogs still need a bounded list so their actions remain reachable. */
  html body.erp-system-ui .erp-list-scroll.erp-dialog-list {
    max-height: var(--erp-list-height, calc(100dvh - 100px)) !important;
    overflow-y: auto !important;
  }
  html body.erp-system-ui .erp-list-scroll:focus-visible { outline: 2px solid var(--theme-accent, #20aec2); outline-offset: 2px; }
  /* Headers scroll vertically with the rows, including multi-row headers and
     legacy module styles. Horizontal frozen columns keep their left/right offsets. */
  html body.erp-system-ui table > thead,
  html body.erp-system-ui table > thead > tr,
  html body.erp-system-ui .orders-head {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
  }
  html body.erp-system-ui table th,
  html body.erp-system-ui table > thead > tr > td {
    top: auto !important;
    bottom: auto !important;
  }
  html body.erp-system-ui .erp-list-scroll > table > thead,
  html body.erp-system-ui .erp-list-scroll > table > thead > tr > :is(th, td) {
    background: var(--ui-table-head-bg, #f6f8fb) !important;
  }
  @media(min-width:901px) {
    /* Keep dense lists and normal page scrolling for filters. */
    html body.erp-system-ui #orders .order-shell { min-height:0!important; padding-bottom:0!important; }
    html body.erp-system-ui #orders :is(.toolbar,.status-quick-row),
    html body.erp-system-ui #procurement [data-pc-filters] { position:static!important; }
    html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.mg-heading,.wh-heading,.sa-heading) { margin-bottom:12px!important; }
    html body.erp-system-ui #orders .legacy-order-table > thead > tr > th { height:auto!important; padding-top:10px!important; padding-bottom:10px!important; }
    html body.erp-system-ui #orders .legacy-order-table > tbody > tr > td { padding-top:7px!important; padding-bottom:7px!important; }
    html body.erp-system-ui #orders .legacy-cell-lines > div { line-height:1.45!important; margin-bottom:0!important; }
    html body.erp-system-ui #orders .delivery-service-card { padding:8px!important; }
    html body.erp-system-ui #procurement #procurement-app .pc-product { min-height:84px!important; margin:0!important; }
    html body.erp-system-ui #procurement #procurement-app table > tbody > tr > td { padding-top:8px!important; padding-bottom:8px!important; }
    html body.erp-system-ui #procurement #procurement-app .pc-filter-grid { row-gap:10px!important; }
    html body.erp-system-ui :is(#warehouse-scan,#warehouse-records,#warehouse-inventory) .wh-table > tbody > tr > td { padding-top:8px!important; padding-bottom:8px!important; }
    html body.erp-system-ui #orders .order-pagination { margin-bottom:0!important; padding-top:9px!important; padding-bottom:9px!important; }
    html body.erp-system-ui .erp-list-scroll::-webkit-scrollbar { width:8px!important; height:8px!important; }
  }
  @media(max-width:900px) {
    /* Mobile card lists already show field labels inside each card. */
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-list-scroll:has(> table[data-erp-mobile-table]) {
      max-height: none !important;
      overflow: visible !important;
    }
  }
  html body.erp-system-ui :where(th, [role="columnheader"], .erp-table-heading),
  html body.erp-system-ui :where(.pm-table th .pm-link-btn) {
    color: var(--ui-table-heading) !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

/* Packing countdown stays directly below the posting status in both layouts. */
@layer erpComponents {
  html body.erp-system-ui #orders .order-deadline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-top: 5px !important;
    max-width: 100% !important;
    color: #ff7a00 !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    cursor: default;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
  }
  html body.erp-system-ui #orders .posting-cell.awaiting-packaging-posting .order-deadline:not(.is-overdue) {
    color: #ff7a00 !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body.erp-system-ui #orders .posting-cell.awaiting-deliver-posting .order-deadline:not(.is-overdue) {
    color: #16a34a !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body.erp-system-ui #orders .order-deadline.is-overdue { color: #d43b3b !important; }
  html body.erp-system-ui #orders .order-deadline > span { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
  html body.erp-system-ui #orders .order-deadline > svg {
    display: block !important; width: 14px !important; height: 14px !important;
    flex: 0 0 14px !important; fill: none !important; stroke: currentColor !important;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  html body.erp-system-ui #orders .order-deadline:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
}

/* Use the same ERP tooltip surface as dashboard hints instead of the browser title bubble. */
@layer erpComponents {
  html body.erp-system-ui .order-deadline-tooltip {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: max-content !important;
    max-width: min(360px, calc(100vw - 24px)) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 260 !important;
  }
}

/* Keep the current rows in place while switching, without allowing stale actions. */
body.erp-system-ui #orderRows[aria-busy="true"] {
  opacity: .55;
}

/* One compact pagination treatment for every ERP list. Module handlers stay local. */
@layer erpComponents.pagination {
  html body.erp-system-ui .erp-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 12px !important;
    color: var(--ui-text) !important;
    padding: 12px 16px !important;
    border: 1px solid var(--ui-border) !important;
    border-color: var(--ui-border) !important;
    border-radius: 10px !important;
    background: var(--ui-surface) !important;
    box-shadow: none !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-total {
    flex: 0 0 auto !important;
    margin: 0 auto 0 0 !important;
    color: var(--ui-text) !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-size {
    display: block !important;
    flex: 0 0 110px !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    margin: 0 !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-size :is(select:not(.erp-choice-native), .erp-select-host, .erp-choice, .erp-choice-trigger) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-size :is(.erp-select-host,.erp-choice-trigger) {
    border: 1px solid var(--ui-border) !important;
    border-color: var(--ui-border) !important;
    border-radius: var(--ui-control-radius) !important;
    background: var(--ui-surface) !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-size .erp-choice-trigger {padding:0 11px!important;}
  html body.erp-system-ui .erp-pagination .erp-pagination-ellipsis {padding:0 3px;color:var(--ui-muted);}
  html body.erp-system-ui .erp-pagination :is(.erp-pagination-pages, #returnsPagerPages) {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
  }
  html body.erp-system-ui .erp-pagination #returnsPagerPages {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-numbered { flex-wrap: wrap !important; }
  html body.erp-system-ui .erp-pagination :is(.erp-pagination-pages button, .erp-pagination-current) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid var(--ui-border) !important;
    border-color: var(--ui-border) !important;
    border-radius: var(--ui-control-radius) !important;
    background: var(--ui-surface) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
    font: 400 12px/1.4 Arial, "Microsoft YaHei", sans-serif !important;
    white-space: nowrap;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-current {
    min-width: 56px !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-current.erp-pagination-mobile-current { display: none !important; }
  html body.erp-system-ui .erp-pagination .erp-pagination-pages button {
    cursor: pointer;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-pages button:hover:not(:disabled) {
    border-color: var(--ui-accent) !important;
    color: var(--ui-accent) !important;
    background: var(--ui-accent-soft) !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-pages button.active {
    border-color: var(--ui-accent) !important;
    color: var(--ui-accent-hover) !important;
    background: var(--ui-accent-soft) !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-pages button.active:hover {
    border-color: var(--ui-accent-hover) !important;
    background: var(--ui-accent-soft) !important;
    color: var(--ui-accent-hover) !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-pages button:disabled {
    color: var(--ui-disabled-text) !important;
    background: var(--ui-disabled-surface) !important;
    opacity: .6 !important;
    cursor: not-allowed !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-pages button:focus-visible {
    outline: 2px solid var(--ui-accent) !important;
    outline-offset: 2px !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-pages svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-jump {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: nowrap;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-jump input {
    box-sizing: border-box !important;
    flex: 0 0 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 6px !important;
    border: 1px solid var(--ui-border) !important;
    border-color: var(--ui-border) !important;
    border-radius: var(--ui-control-radius) !important;
    background: var(--ui-surface) !important;
    color: var(--ui-field-text) !important;
    text-align: center !important;
    font-size: 12px !important;
  }
  html body.erp-system-ui .erp-pagination .erp-pagination-jump input:focus {
    outline: none !important;
    border-color: var(--ui-accent) !important;
    box-shadow: var(--ui-focus-ring) !important;
  }
  @media (max-width: 640px) {
    html body.erp-system-ui .erp-pagination .erp-pagination-size :is(select:not(.erp-choice-native), .erp-select-host, .erp-choice, .erp-choice-trigger),
    html body.erp-system-ui .erp-pagination :is(.erp-pagination-pages button, .erp-pagination-current, .erp-pagination-jump input) {
      height: 40px !important;
      min-height: 40px !important;
    }
    html body.erp-system-ui .erp-pagination .erp-pagination-pages button { min-width: 40px !important; }
    html body.erp-system-ui .erp-pagination #returnsPagerPages { display: none !important; }
    html body.erp-system-ui .erp-pagination .erp-pagination-current.erp-pagination-mobile-current { display: inline-flex !important; min-width: 48px !important; }
    html body.erp-system-ui .erp-pagination .erp-pagination-numbered > :is(button:not(.erp-pagination-arrow), .order-page-ellipsis, .pm-muted, .erp-pagination-ellipsis) { display: none !important; }
    html body.erp-system-ui .erp-pagination {padding:10px 12px!important;}
    html body.erp-system-ui .erp-pagination .erp-pagination-jump input {
      flex-basis: 64px !important;
      width: 64px !important;
      min-width: 64px !important;
      max-width: 64px !important;
      font-size: 16px !important;
    }
  }
}

/* Order purchase identifiers keep one line; remarks retain their own wrapping. */
@layer erpTableSpacing {
  html body.erp-system-ui #orders .order-purchase-cell .order-purchase-number {
    display:flex!important;align-items:baseline!important;gap:2px!important;min-width:0!important;max-width:100%!important;
    white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
  }
  html body.erp-system-ui #orders .order-purchase-number>span:first-child {flex:0 0 auto!important;white-space:nowrap!important;}
  html body.erp-system-ui #orders .order-purchase-number-value {
    display:block!important;flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
    white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
  }
  html body.erp-system-ui #orders .order-purchase-cell .pp-package-number,
  html body.erp-system-ui #orders .order-purchase-cell .pp-package-number .pp-copy {
    white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
  }
  html body.erp-system-ui #orders .order-purchase-cell .pp-package-number {overflow:hidden!important;text-overflow:ellipsis!important;}
}

/* Purchase information: a narrower column with breathing room between fields. */
@layer erpTableSpacing {
  html body.erp-system-ui #orders .order-purchase-cell {padding-block:12px!important;}
  html body.erp-system-ui #orders .order-purchase-cell>.legacy-cell-lines {gap:4px!important;}
  html body.erp-system-ui #orders .order-purchase-cell>.legacy-cell-lines>div {margin-block:0!important;}
  html body.erp-system-ui #orders .order-purchase-cell>.purchase-action-row {margin-top:8px!important;}
}

/* Order-center rows share the purchase column's vertical rhythm. */
@layer erpTableSpacing {
  html body.erp-system-ui #orders .legacy-order-table>tbody>tr>td {padding-block:12px!important;}
  html body.erp-system-ui #orders .legacy-order-table .legacy-cell-lines {
    display:flex!important;flex-direction:column!important;gap:4px!important;
  }
  html body.erp-system-ui #orders .legacy-order-table .legacy-cell-lines>div {margin-block:0!important;}
  html body.erp-system-ui #orders .legacy-order-table .legacy-cell-lines>.order-note-card {margin-top:4px!important;}
  html body.erp-system-ui #orders .posting-cell>.center-wrap {gap:4px!important;}
  html body.erp-system-ui #orders .posting-cell>.center-wrap>div {margin-block:0!important;}
  html body.erp-system-ui #orders .delivery-service-card {display:flex!important;flex-direction:column!important;gap:4px!important;}
  html body.erp-system-ui #orders .delivery-service-card>:is(.delivery-service-label,.delivery-service-name) {margin-block:0!important;}
  html body.erp-system-ui #orders .order-event-time-cell time+.order-event-time-missing {margin-top:4px!important;}
  /* Phone cards own their padding; identifiers and field gaps stay readable. */
  @media(max-width:900px) {
    html body.erp-system-ui #orders table[data-erp-mobile-table]>tbody>tr>td {padding-block:0!important;}
  }
}

/* Only the three requested order-center headings change alignment. */
@layer erpTableSpacing {
  html body.erp-system-ui #orders .legacy-order-table>thead>tr>th:is(.col-shop,.col-posting,.col-image) {text-align:center!important;}
}

/* Compact shipping note cards wrap within the order cell. */
@layer erpColorMode.overrides {
  :is(#orders,#warehouse-scan) .order-note-card {
    --note-heading-fill: var(--order-purchase-action);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-self: flex-start;
    box-sizing: border-box;
    width: fit-content !important;
    max-width: 100%;
    min-width: 0;
    margin: 4px 0 0;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--note-border, var(--note-heading-fill)) !important;
    border-radius: 7px !important;
    background: var(--ui-surface) !important;
    color: #fff !important;
    font: inherit;
    text-align: left !important;
    white-space: normal;
  }
  :is(#orders,#warehouse-scan) .order-note-card.has-note {
    --note-border: #87b8f3;
    --note-content-fill: #dfedff;
    --note-content-ink: #124f9b;
  }
  :where(html[data-erp-mode="dark"]) :is(#orders,#warehouse-scan) .order-note-card.has-note {
    --note-border: #3e6da3;
    --note-content-fill: #173451;
    --note-content-ink: #bddeff;
  }
  :is(#orders,#warehouse-scan) .order-note-card.has-note .order-note-card-text {
    background: var(--note-content-fill);
    color: var(--note-content-ink) !important;
  }
  #orders .order-note-card.has-note .order-note-card-text {
    font-size: 13px !important;
  }
  :is(#orders,#warehouse-scan) button.order-note-card {
    cursor: pointer;
  }
  :is(#orders,#warehouse-scan) button.order-note-card:hover {
    --note-heading-fill: #1677ff;
    --note-border: #1677ff;
  }
  :is(#orders,#warehouse-scan) button.order-note-card:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
  }
  :is(#orders,#warehouse-scan) .order-note-card-head {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 4px 6px;
    background: var(--note-heading-fill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }
  :is(#orders,#warehouse-scan) .order-note-card-head svg.erp-status-icon {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    color: inherit;
  }
  :is(#orders,#warehouse-scan) .order-note-card-edit {
    display: inline-flex;
    margin-left: auto;
    padding-left: 2px;
    color: inherit;
  }
  :is(#orders,#warehouse-scan) .order-note-card-text {
    display: block;
    min-width: 0;
    padding: 3px 7px;
    color: var(--ui-text) !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }
}

/* Cancellation marks in the order list */
@layer erpColorMode.overrides {
  #orders :is(.cancel-mark-box-pro, .cancel-mark-processed-card) {
    --mark-accent: var(--print-label-unprinted);
    --mark-ink: #b42318;
    min-width: 0;
    width: 100%;
    padding: 0 !important;
    border: 1px solid var(--mark-accent) !important;
    border-radius: 9px !important;
    background: var(--ui-surface) !important;
    box-shadow: none !important;
  }
  #orders .cancel-mark-processed-card {
    --mark-accent: var(--print-label-printed);
    --mark-ink: #14633a;
  }
  html[data-erp-mode="dark"] #orders .cancel-mark-box-pro {
    --mark-ink: #ffaaa4;
  }
  html[data-erp-mode="dark"] #orders .cancel-mark-processed-card {
    --mark-ink: #8de4a7;
  }
  #orders :is(.cancel-mark-head, .cancel-processed-head) {
    flex-wrap: wrap;
    gap: 5px 8px;
    padding: 7px 9px;
    border: 0 !important;
    background: var(--mark-accent) !important;
  }
  #orders :is(.cancel-mark-status, .cancel-processed-status) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }
  #orders :is(.cancel-mark-status, .cancel-processed-status) .erp-status-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
  }
  #orders :is(.cancel-mark-body, .cancel-processed-body) {
    display: grid;
    gap: 5px;
    padding: 8px 9px;
  }
  #orders :is(.cancel-mark-reason-row, .cancel-mark-note-row, .cancel-processed-body > div) {
    display: grid;
    grid-template-columns: 2.4em minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    margin: 0;
  }
  #orders .cancel-processed-body > div {
    grid-template-columns: 4em minmax(0, 1fr);
  }
  #orders :is(.cancel-mark-label, .cancel-processed-label) {
    color: var(--dm-muted, #64748b) !important;
    font-size: 12px !important;
  }
  #orders :is(.cancel-mark-reason, .cancel-mark-note, .cancel-processed-reason, .cancel-processed-note, .cancel-processed-time) {
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px !important;
    line-height: 1.5;
  }
  #orders :is(.cancel-mark-reason, .cancel-processed-reason) {
    color: var(--mark-ink) !important;
    font-weight: 700 !important;
  }
  #orders :is(.cancel-mark-note, .cancel-processed-note, .cancel-processed-time) {
    color: var(--ui-text) !important;
  }
  #orders .cancel-processed-time {
    font-variant-numeric: tabular-nums;
  }
  #orders :is(.cancel-mark-box-pro, .cancel-mark-processed-card) .cancel-mark-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px 9px 8px;
    border-top: 1px solid var(--ui-border-soft);
  }
  #orders .cancel-mark-tools {
    display: inline-flex;
    gap: 4px;
    margin-right: auto;
  }
  #orders .cancel-mark-tools > button {
    min-height: 26px;
    height: auto;
    border: 1px solid var(--ui-border) !important;
    border-radius: 5px !important;
    background: var(--ui-surface) !important;
    color: var(--ui-text) !important;
    padding: 3px 7px !important;
    font-size: 11px !important;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
  }
  #orders .cancel-mark-tools .danger-link {
    color: var(--mark-ink) !important;
  }
  #orders .cancel-mark-tools > button:hover:not(:disabled) {
    border-color: var(--mark-accent) !important;
    background: color-mix(in srgb, var(--mark-accent) 8%, var(--ui-surface)) !important;
  }
  #orders .cancel-mark-box-pro .cancel-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 3px 7px;
    border: 1px solid var(--print-label-unprinted);
    border-radius: 5px;
    background: var(--print-label-unprinted);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
  }
  #orders .cancel-mark-box-pro .cancel-order-btn:hover:not(:disabled) {
    border-color: #dc3838;
    background: #dc3838;
  }
  #orders .cancel-order-btn .erp-status-icon {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
  }
  #orders .cancel-mark-footer button:disabled {
    opacity: .55;
    cursor: not-allowed;
  }

}

/* ===== typography.css ===== */
/* Order and purchase product amounts use one shared semantic color. */
@layer erpColorMode.overrides {
 html body.erp-system-ui {--erp-order-price:#f59e0b}
 html[data-erp-mode=dark] body.erp-system-ui {--erp-order-price:#f3bf68}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .key-number-price,
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-product-price,
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-product-price>span {
  color:var(--erp-order-price)!important;-webkit-text-fill-color:currentColor!important;
 }
}

/* Text outside fields: labels, captions and neutral tabs share pure black.
 * Target text containers, not their icons, values, links or status badges. */
@layer erpComponents {
  html body.erp-system-ui :where(.page, .modal-mask, .pm-portal, .pc-dialog, .lc-dialog, .rc-dialog)
  :where(
    label, legend, .erp-field-label, .pm-form-label, .pm-stock-label,
    .pc-field > span:first-child, .pc-date-filter > span:first-child,
    .ca-ref-field > span:first-child, .ca-history-table-filter > span:first-child,
    .quality-search-field > span:first-child,
    .account-form-v31 label > span:first-child,
    .account-password-grid-v316 label > span:first-child,
    .commercial-account-form label > span:first-child,
    .profit-setting-grid-v3249 label > span:first-child
  ) {
    color: var(--ui-label) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body.erp-system-ui :where(.page, .modal-mask, .pm-portal, .pc-dialog, .lc-dialog, .rc-dialog)
  :where(h1, h2, h3, .erp-caption > b, .toolbar-title, .account-simple-caption,
    .screen-card-head > div > b, .screen-card-head > b,
    .ca-ref-chart-title > span:first-child, .ca-conv-card-head b,
    .ca-history-table-head-left > b, .returns-table-head-v3300 b,
    .profit-detail-title-v3249 b, .profit-config-section-title-v3249 b,
    .profit-shipping-toolbar-v3249 b, .profit-bracket-title-v3249 b) {
    color: var(--ui-label) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html body.erp-system-ui :where(
    .erp-metric-label, .screen-metric-top > span, .dash-stat-card .label,
    .ca-ref-kpi > span, .ca-conv-kpi > span,
    .finance-v3278-metrics > div > span, .returns-kpi-v3300 > span,
    .lc-metrics span, .pm-stock-metrics span, .account-metric-v31 > span
  ) {
    color: var(--ui-label) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  /* These tabs have a light background, including their selected state. */
  html body.erp-system-ui :where(
    .erp-text-tab, .pm-tab, .pm-tab .pm-count, .lc-tabs button, .account-segment,
    .pm-batch-menu button, .ca-api-manage-open, .finance-simple-more-btn
  ) {
    color: var(--ui-label) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  /* Filled active segments keep the existing white text on the theme color. */
  html body.erp-system-ui :where(.profit-segment-v3249, .profit-config-tabs-v3249) > button:not(.active) {
    color: var(--ui-label) !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

/* ===== editors.css ===== */
/* Large editors cancel the ERP page zoom; viewport units then fit the screen. */
@layer erpComponents {
  html body.erp-system-ui :is(#pm-editor, .rc-dialog) {
    zoom: .9523809524 !important;
    zoom: calc(1 / var(--erp-page-zoom, 1.05)) !important;
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    box-sizing: border-box !important;
    width: min(1680px, calc(100vw - 32px)) !important;
    height: calc(100dvh - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: var(--ui-dialog-radius) !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
    backdrop-filter: none !important;
  }
  /* Keep large scrolling dialogs off the backdrop-blur compositing path. */
  html body.erp-system-ui :is(#pm-editor, .rc-dialog)::backdrop {
    background: rgba(28, 42, 61, .34) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  html body.erp-system-ui :is(#pm-editor, .rc-dialog)[open] {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }
  /* Desktop product editor: 80% of its previous width and height. */
  @media (min-width: 901px) {
    html body.erp-system-ui #pm-editor {
      width: min(1344px, calc(80vw - 25.6px)) !important;
      height: calc(80dvh - 25.6px) !important;
    }
  }
  html body.erp-system-ui :is(#pm-editor, .rc-dialog) [hidden] { display: none !important; }
  html body.erp-system-ui #pm-editor .pm-editor-head {
    height: auto !important; min-height: 62px !important; padding: 10px 20px !important; min-width: 0 !important;
  }
  html body.erp-system-ui #pm-editor .pm-editor-body {
    display: grid !important; grid-template-columns: minmax(0, 1fr) 132px !important; min-height: 0 !important; min-width: 0 !important;
    gap: 12px !important; padding: 12px !important; overflow: hidden !important; background: #f6f8fc !important;
  }
  html body.erp-system-ui #pm-editor .pm-editor-scroll {
    min-width: 0 !important; min-height: 0 !important; overflow: auto !important;
    padding: 0 12px 16px 0 !important; overscroll-behavior: contain !important;
    overflow-anchor: none !important;
    scrollbar-gutter: stable;
  }
  html body.erp-system-ui #pm-editor .pm-editor-content { width: 100% !important; max-width: none !important; min-width: 0 !important; margin: auto !important; }
  html body.erp-system-ui #pm-editor .pm-editor-section { padding: 18px !important; margin-bottom: 14px !important; background: #fff !important; }
  html body.erp-system-ui #pm-editor .pm-form-row { max-width: none !important; margin: 0 0 16px !important; gap: 14px !important; }
  html body.erp-system-ui #pm-editor .pm-form-label { width: 116px !important; flex: 0 0 116px !important; text-align: left !important; font-size: 14px !important; line-height: 1.6 !important; }
  html body.erp-system-ui #pm-editor :is(input,select,textarea) { font-size: 14px !important; color: #24344b !important; line-height: 1.6 !important; }
  html body.erp-system-ui #pm-editor input:disabled { color: #53647b !important; -webkit-text-fill-color: #53647b !important; background: #f4f7fb !important; opacity: 1 !important; }
  html body.erp-system-ui #pm-editor h2 { font-size: 17px !important; margin-bottom: 20px !important; }
  html body.erp-system-ui #pm-editor .pm-muted { color: #63748b !important; font-size: 12px !important; line-height: 1.6 !important; }
  html body.erp-system-ui #pm-editor .pm-section-heading::before { content: none !important; display: none !important; }
  html body.erp-system-ui #pm-editor .pm-section-heading { display: flex !important; align-items: center !important; gap: 9px !important; }
  html body.erp-system-ui #pm-editor .pm-section-icon { display: inline-grid !important; place-items: center !important; width: 30px !important; height: 30px !important; border-radius: 8px !important; }
  html body.erp-system-ui #pm-editor .pm-section-icon svg { width: 17px !important; height: 17px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.7 !important; }
  html body.erp-system-ui #pm-editor .pm-section-icon.blue { color: #397fe0 !important; background: #edf4ff !important; }
  html body.erp-system-ui #pm-editor .pm-section-icon.violet { color: #9466cd !important; background: #f4edff !important; }
  html body.erp-system-ui #pm-editor .pm-section-icon.teal { color: #179e9b !important; background: #e9f8f5 !important; }
  html body.erp-system-ui #pm-editor .pm-section-icon.amber { color: #b98129 !important; background: #fff5e5 !important; }
  html body.erp-system-ui #pm-editor .pm-anchor-nav {
    position: static !important; inset: auto !important; width: auto !important; min-width: 0 !important;
    display: flex !important; align-self: start !important; max-height: 100% !important; overflow: auto !important; box-sizing: border-box !important;
    border: 1px solid var(--ui-border) !important; padding: 6px !important;
  }
  html body.erp-system-ui #pm-editor .pm-anchor-nav button { white-space: normal !important; overflow-wrap: anywhere !important; color: var(--ui-label) !important; }
  html body.erp-system-ui #pm-editor .pm-editor-footer {
    min-height: 68px !important; padding: 12px 20px !important; gap: 12px !important; min-width: 0 !important;
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important;
  }
  html body.erp-system-ui #pm-editor .pm-save-actions { gap: 10px !important; }
  html body.erp-system-ui #pm-editor .pm-editor-loading { min-height: 0 !important; max-height: none !important; overflow: auto !important; }

  html body.erp-system-ui .rc-dialog > header { min-width: 0 !important; }
  html body.erp-system-ui .rc-dialog .rc-layout {
    display: grid !important; grid-template-columns: 180px minmax(0, 1fr) 304px !important;
    grid-template-rows: minmax(0, 1fr) !important; min-height: 0 !important; min-width: 0 !important; overflow: hidden !important;
  }
  html body.erp-system-ui .rc-dialog :is(.rc-library, .rc-properties) {
    min-height: 0 !important; min-width: 0 !important; overflow: auto !important; padding: 16px !important; overscroll-behavior: contain !important;
  }
  html body.erp-system-ui .rc-dialog .rc-workspace {
    display: grid !important; grid-template-rows: auto minmax(0, 1fr) !important;
    min-height: 0 !important; min-width: 0 !important; overflow: hidden !important;
  }
  html body.erp-system-ui .rc-dialog .rc-scroll { min-height: 0 !important; overflow: auto !important; padding: 16px !important; overscroll-behavior: contain !important; }
  html body.erp-system-ui .rc-dialog [data-rc-canvas] { min-width: 0 !important; width: 100% !important; min-height: 0 !important; }
  html body.erp-system-ui .rc-dialog .rc-showcase img { max-height: min(640px, calc(100dvh - 270px)) !important; object-fit: contain !important; }
  html body.erp-system-ui .rc-dialog .rc-properties fieldset { min-width: 0 !important; }
  html body.erp-system-ui .rc-dialog > footer {
    display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    min-width: 0 !important; padding: 12px 18px !important; gap: 10px !important;
  }
  html body.erp-system-ui .rc-dialog > footer [data-rc-message] { min-width: 0 !important; max-height: 60px !important; overflow: auto !important; overflow-wrap: anywhere !important; }
  html body.erp-system-ui .rc-dialog > footer [data-rc-message].bad { color: var(--ui-danger-hover) !important; }
  html body.erp-system-ui .rc-dialog button:not(.rc-primary):not(.erp-primary):not(.active) { color: var(--ui-label) !important; }
  html body.erp-system-ui .rc-dialog .rc-upload-add { width: 100% !important; height: auto !important; min-height: 38px !important; margin-bottom: 14px !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 6px !important; }
  html body.erp-system-ui .rc-dialog .rc-upload-add svg { width: 16px !important; height: 16px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.7 !important; }
  html body.erp-system-ui .rc-dialog .rc-storage-button { width: 100% !important; height: auto !important; min-height: 34px !important; margin: 0 0 16px !important; display: flex !important; flex-direction: row !important; gap: 6px !important; align-items: center !important; justify-content: center !important; }
  html body.erp-system-ui .rc-dialog :is(.erp-btn, [data-rc-save]) > svg { width: 16px !important; height: 16px !important; flex: 0 0 16px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.7 !important; }
  html body.erp-system-ui .rc-dialog .rc-preview-toolbar .erp-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; }
  html body.erp-system-ui .rc-dialog .rc-image-picker { display: flex !important; align-items: center !important; gap: 12px !important; margin: 12px 0 !important; }
  html body.erp-system-ui .rc-dialog .rc-image-picker > img { width: 76px !important; height: 88px !important; object-fit: contain !important; border: 1px solid var(--ui-border) !important; border-radius: 8px !important; background: #f7f9fc !important; }
  html body.erp-system-ui .rc-dialog .rc-image-picker > div { min-width: 0 !important; flex: 1 !important; }
  html body.erp-system-ui .rc-dialog .rc-image-picker b { display: block !important; font-size: 12px !important; font-weight: 500 !important; color: var(--ui-label) !important; margin-bottom: 8px !important; }
  html body.erp-system-ui .rc-dialog .rc-image-picker small { display: block !important; margin-top: 5px !important; color: var(--ui-placeholder) !important; font-size: 11px !important; }
  html body.erp-system-ui .rc-dialog .rc-image-links summary { color: var(--ui-label) !important; font-size: 12px !important; cursor: pointer !important; }
  html body.erp-system-ui .rc-dialog .rc-upload-note { color: var(--ui-placeholder) !important; font-size: 11px !important; line-height: 1.7 !important; }
  html body.erp-system-ui .rc-dialog .rc-image-empty { min-height: 100px !important; }
  html body.erp-system-ui .rc-dialog [aria-busy="true"] { opacity: .65 !important; }
  @media (max-width: 1100px) {
    html body.erp-system-ui .rc-dialog .rc-layout { grid-template-columns: 148px minmax(0, 1fr) 270px !important; }
    html body.erp-system-ui #pm-editor .pm-editor-body { grid-template-columns: minmax(0, 1fr) 132px !important; padding: 12px !important; gap: 10px !important; }
  }
  @media (max-width: 900px) {
    html body.erp-system-ui #pm-editor .pm-editor-body { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr) !important; }
    html body.erp-system-ui #pm-editor .pm-anchor-nav { grid-row: 1 !important; flex-direction: row !important; gap: 4px !important; }
    html body.erp-system-ui #pm-editor .pm-anchor-nav button { flex: 1 !important; white-space: nowrap !important; text-align: center !important; }
    html body.erp-system-ui #pm-editor .pm-editor-scroll { grid-row: 2 !important; }
  }
  @media (max-width: 760px) {
    html body.erp-system-ui :is(#pm-editor, .rc-dialog) { width: calc(100vw - 16px) !important; height: calc(100dvh - 16px) !important; max-width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px) !important; }
    html body.erp-system-ui .rc-dialog .rc-layout { grid-template-columns: minmax(0, 1fr) 240px !important; grid-template-rows: auto minmax(0, 1fr) !important; }
    html body.erp-system-ui .rc-dialog .rc-library { grid-column: 1 / -1 !important; grid-row: 1 !important; display: flex !important; align-items: center !important; gap: 10px !important; padding: 8px !important; }
    html body.erp-system-ui .rc-dialog .rc-library > :is(h3, p) { display: none !important; }
    html body.erp-system-ui .rc-dialog .rc-library > div { display: flex !important; gap: 6px !important; }
    html body.erp-system-ui .rc-dialog .rc-library button { height: auto !important; min-width: 68px !important; white-space: nowrap !important; }
    html body.erp-system-ui .rc-dialog .rc-library .rc-upload-add { width: auto !important; margin: 0 !important; }
    html body.erp-system-ui .rc-dialog .rc-library .rc-storage-button { width: auto !important; margin: 0 !important; }
    html body.erp-system-ui .rc-dialog .rc-library button > span { display: none !important; }
    html body.erp-system-ui .rc-dialog .rc-workspace { grid-column: 1 !important; grid-row: 2 !important; }
    html body.erp-system-ui .rc-dialog .rc-properties { grid-column: 2 !important; grid-row: 2 !important; }
    html body.erp-system-ui .rc-dialog > footer { grid-template-columns: minmax(0, 1fr) auto auto !important; }
    html body.erp-system-ui .rc-dialog > footer [data-rc-message] { grid-column: 1 / -1 !important; grid-row: 2 !important; order: 0 !important; max-height: 40px !important; }
    html body.erp-system-ui #pm-editor .pm-form-row { display: block !important; }
    html body.erp-system-ui #pm-editor .pm-form-label { width: auto !important; text-align: left !important; padding: 0 0 8px !important; width: auto !important; }
    html body.erp-system-ui #pm-editor .pm-editor-footer { grid-template-columns: minmax(0, 1fr) !important; }
    html body.erp-system-ui #pm-editor .pm-save-actions { justify-content: flex-end !important; }
  }
  @media (max-width: 560px) {
    html body.erp-system-ui .rc-dialog .rc-layout { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) !important; }
    html body.erp-system-ui .rc-dialog .rc-properties { grid-column: 1 !important; grid-row: 3 !important; border-top: 1px solid var(--ui-border) !important; }
    html body.erp-system-ui .rc-dialog .rc-preview-toolbar { padding: 8px !important; }
    html body.erp-system-ui .rc-dialog .rc-heading small { display: none !important; }
  }
}

@layer erpComponents {
  html body.erp-system-ui .pi-storage-dialog {
    --dlg-ink: #4b7ed6 !important; --dlg-wash: #edf3ff !important; --dlg-icon: var(--v3-icon-settings) !important;
    zoom: calc(1 / var(--erp-page-zoom, 1.05)) !important;
    position: fixed !important; inset: 0 !important; margin: auto !important; padding: 0 !important;
    width: min(720px, calc(100vw - 32px)) !important; max-width: calc(100vw - 32px) !important;
    height: fit-content !important; max-height: calc(100dvh - 32px) !important;
    overflow: hidden !important; box-sizing: border-box !important;
  }
  html body.erp-system-ui .pi-storage-dialog[open] { display: flex !important; flex-direction: column !important; }
  html body.erp-system-ui .pi-storage-dialog > header { margin: 0 !important; flex: none !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
  html body.erp-system-ui .pi-storage-dialog form { display: flex !important; flex-direction: column !important; min-height: 0 !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-body { padding: 20px 24px !important; overflow: auto !important; min-height: 0 !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-toggle { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; margin-bottom: 20px !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-toggle > span { display: flex !important; align-items: center !important; gap: 8px !important; }
  html body.erp-system-ui .pi-storage-dialog svg { width: 17px !important; height: 17px !important; flex: 0 0 17px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.7 !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-toggle svg { color: #397fe0 !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-toggle input { width: 18px !important; min-height: 18px !important; height: 18px !important; padding: 0 !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 16px 18px !important; border: 0 !important; margin: 0 !important; padding: 0 !important; min-width: 0 !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-grid label { display: flex !important; flex-direction: column !important; gap: 7px !important; font-size: 12px !important; min-width: 0 !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-grid :is(input, select) { width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-hint { margin: 16px 0 0 !important; font-size: 11px !important; color: var(--ui-placeholder) !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-message { color: #239271 !important; font-size: 12px !important; overflow-wrap: anywhere !important; }
  html body.erp-system-ui .pi-storage-dialog .pi-storage-message.bad { color: var(--ui-danger-hover) !important; }
  html body.erp-system-ui .pi-storage-dialog footer { display: flex !important; justify-content: flex-end !important; flex-wrap: wrap !important; flex: none !important; margin: 0 !important; padding: 16px 24px !important; background: #fafbfd !important; }
  @media (max-width: 600px) {
    html body.erp-system-ui .pi-storage-dialog .pi-storage-grid { grid-template-columns: minmax(0, 1fr) !important; }
    html body.erp-system-ui .rc-dialog .rc-library { flex-wrap: wrap !important; }
  }
}

/* 6.1.11: original purchase form with optional additional purchase records. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #purchaseMask .modal {width:min(760px,96vw)!important;max-height:92dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
 html body.erp-system-ui #purchaseMask .modal-body {min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;}
 html body.erp-system-ui #purchaseMask :is([hidden],#purchaseMultiEntry[hidden],#purchaseCurrent[hidden],#purchasePackages[hidden]) {display:none!important;}
 html body.erp-system-ui #purchasePackages:not([hidden]) {display:block!important;min-width:0!important;color:var(--ui-text)!important;}
 html body.erp-system-ui #purchasePackages :is(.pp-toolbar,.pp-tools,.pp-card>header) {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important;}
 html body.erp-system-ui #purchasePackages :is(.pp-toolbar p,.pp-help,.pp-cost-help) {margin:6px 0 12px!important;font-size:12px!important;line-height:1.6!important;color:var(--dm-muted,#64748b)!important;font-weight:400!important;}
 html body.erp-system-ui #purchasePackages .pp-cards {display:grid!important;gap:14px!important;}
 html body.erp-system-ui #purchaseMask .pp-entry {display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;}
 html body.erp-system-ui #purchaseMask .pp-entry>button {flex:none!important;}
 html body.erp-system-ui #purchaseMask :is(#purchaseMultiSummary,.pp-current,.pp-item-text) {font-size:12px!important;line-height:1.6!important;color:var(--dm-muted,#64748b)!important;overflow-wrap:anywhere!important;}
 html body.erp-system-ui #purchasePackages .pp-item-text {display:block!important;margin-top:4px!important;}
 html body.erp-system-ui #purchasePackages .pp-card>header>div {min-width:0!important;flex:1!important;}
 html body.erp-system-ui #purchasePackages .pp-full {grid-column:1/-1!important;}
 html body.erp-system-ui #purchasePackages .pp-details {margin:12px 0!important;min-width:0!important;}
 html body.erp-system-ui #purchasePackages .pp-details>summary {font-size:12px!important;color:var(--dm-muted,#64748b)!important;cursor:pointer!important;line-height:1.6!important;}
 html body.erp-system-ui #purchasePackages .pp-details-body {padding-top:12px!important;}
 html body.erp-system-ui #purchasePackages .pp-details:not([open])>.pp-details-body {display:none!important;}
 html body.erp-system-ui #purchasePackages .pp-add-purchase {margin-top:14px!important;}

 html body.erp-system-ui #purchasePackages .pp-card {min-width:0!important;padding:14px!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;background:var(--ui-surface)!important;}
 html body.erp-system-ui #purchasePackages .pp-card>header {margin-bottom:12px!important;border-bottom:1px solid var(--ui-border-soft)!important;padding-bottom:10px!important;}
 html body.erp-system-ui #purchasePackages .pp-fields {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 html body.erp-system-ui #purchasePackages label {display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;line-height:1.5!important;color:var(--ui-text)!important;}
 html body.erp-system-ui #purchasePackages .pp-item {display:grid!important;grid-template-columns:minmax(0,1fr) 80px 40px!important;gap:8px!important;align-items:end!important;margin-bottom:10px!important;}
 html body.erp-system-ui #purchasePackages .pp-items {margin-bottom:14px!important;}
 html body.erp-system-ui #purchasePackages :is(.pp-remove,.pp-add-item) {border:0!important;border-radius:5px!important;background:transparent!important;color:var(--ui-accent)!important;padding:6px 2px!important;font:inherit!important;cursor:pointer!important;min-height:32px!important;}
 html body.erp-system-ui #purchasePackages .pp-remove {color:var(--dm-muted,#64748b)!important;}
 html body.erp-system-ui #purchasePackages .pp-remove:disabled {opacity:.4!important;cursor:default!important;}
 html body.erp-system-ui #purchasePackages button:hover:not(:disabled) {background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui .pp-package-value {padding:6px 0!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.6!important;}
 html body.erp-system-ui .pp-package-value+.pp-package-value {border-top:1px solid var(--ui-border-soft)!important;}
 html body.erp-system-ui :is(.pp-package-label,.pp-tracking-state,.pp-tracking-note,.pp-tracking-imported) {display:block!important;font-size:11px!important;line-height:1.6!important;color:var(--dm-muted,#64748b)!important;}
 html body.erp-system-ui .pp-package-label {font-weight:600!important;color:var(--ui-text)!important;}
 html body.erp-system-ui .pp-state-received {color:var(--dm-positive,#258556)!important;}
 html body.erp-system-ui .pp-state-exception {color:var(--dm-negative,#d84b56)!important;}
 html body.erp-system-ui .pp-package-items {font-size:11px!important;color:var(--dm-muted,#64748b)!important;}
 html body.erp-system-ui .pp-copy {color:var(--ui-accent)!important;cursor:pointer!important;}
 @media(max-width:600px) {
  html body.erp-system-ui #purchaseMask .modal {width:calc(100vw - 16px)!important;max-height:94dvh!important;}
  html body.erp-system-ui #purchasePackages .pp-fields {grid-template-columns:minmax(0,1fr)!important;}
  html body.erp-system-ui #purchasePackages .pp-card {padding:10px!important;}
  html body.erp-system-ui #purchasePackages .pp-item {grid-template-columns:minmax(0,1fr) 62px 32px!important;gap:5px!important;}
  html body.erp-system-ui #purchasePackages .pp-tools {width:100%!important;}
  html body.erp-system-ui #purchasePackages .pp-tools>.btn {flex:1!important;}
 }
}

/* Raw procurement identities and full-width tracking fields in compact package cards. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-dialog.pc-tracking-dialog {--dlg-pad:16px;width:min(560px,calc(100vw - 32px))!important;min-width:0!important;padding:16px!important;box-sizing:border-box!important;max-height:calc(var(--erp-visible-height,100dvh) - 32px)!important;overflow:hidden!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog[open]{display:flex!important;flex-direction:column!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog>header{flex:none!important;margin-bottom:12px!important;padding-bottom:12px!important;gap:12px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog>header>b{min-width:0!important;font-size:16px!important;line-height:1.5!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-form{display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important;max-width:100%!important;margin:0!important;overflow:hidden!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-context{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:0 0 12px;font-size:12px}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-shop{display:flex;align-items:baseline;gap:8px;min-width:0}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-shop>span{color:var(--ui-label);flex:none}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-shop>b{min-width:0;color:var(--pc-link,#1677ff)!important;overflow-wrap:anywhere;font-weight:500!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-count{flex:none;padding:2px 8px;border-radius:5px;background:var(--ui-accent-soft);color:var(--ui-accent);font-variant-numeric:tabular-nums;white-space:nowrap}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-packages{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:2px 3px 2px 0}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-package{min-width:0!important;padding:12px!important;border:1px solid var(--ui-border-soft)!important;border-radius:9px!important;background:var(--ui-field-surface)!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-package-head{display:flex;align-items:center;gap:10px;min-width:0;margin:0 0 9px}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-package-label{flex:none;font-size:12px!important;line-height:1.6!important;font-weight:600!important;color:var(--ui-accent)!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-purchase-no{display:flex;align-items:baseline;gap:6px;min-width:0;flex:1;font-size:12px;justify-content:flex-end}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-purchase-no>span{flex:none;color:var(--ui-label)}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-purchase-no>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pc-link,#1677ff)!important;font-weight:400!important;min-width:0;font-variant-numeric:tabular-nums}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-package-items{margin:0 0 10px!important;font-size:12px!important;color:var(--ui-label)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-package .pc-tracking-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;min-width:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-grid>label{width:100%!important;min-width:0!important;gap:6px!important;font-size:12px!important;color:var(--ui-text)!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-grid .erp-clear-field{width:100%!important;min-width:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-grid input{width:100%!important;min-width:0!important;max-width:none!important;height:38px!important;font-size:14px!important;line-height:1.5!important;color:var(--ui-text)!important;-webkit-text-fill-color:currentColor!important;font-variant-numeric:tabular-nums}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog footer{flex:none!important;margin-top:12px!important;padding-top:12px!important;gap:10px!important;border-top:1px solid var(--ui-border-soft)!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog>[data-pc-modal-message]{flex:none;font-size:12px;line-height:1.6;max-height:64px;overflow:auto;margin:10px 0 0}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog>[data-pc-modal-message]:empty{display:none!important}
 @media(max-width:420px){
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-dialog.pc-tracking-dialog{--dlg-pad:12px;padding:12px!important;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(var(--erp-visible-height,100dvh) - 24px)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-package{padding:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-package-head{align-items:flex-start;flex-direction:column;gap:4px}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.pc-tracking-dialog .pc-tracking-purchase-no{max-width:100%;justify-content:flex-start}
 }
}
#financeRebuildPlanNote,#financeRebuildHistoryNote{line-height:1.6;color:var(--dm-muted,#64748b);}
#financeRebuildHistoryNote{white-space:pre-line;}

/* ===== accounts.css ===== */
/* Staff list and invitation flows use the ERP control and finance palette. */
@layer erpTableSpacing {
 @media screen and (max-width:767px) {
  html body.erp-system-ui #accounts #officeTeamPanel .office-people-table>tbody>tr>td {padding-inline:0!important;border-inline:0!important;border-block-end:0!important}
 }
}
@layer erpColorMode.overrides {
 /* Use the order center's blue identifiers and readable neutral text. */
 html body.erp-system-ui #accounts #officeTeamPanel {--office-list-link:#1677ff;--office-list-green:#15803d;--office-list-amber:#d97706;--office-list-red:#dc2626;--office-list-purple:#7c3aed}
 html[data-erp-mode="dark"] body.erp-system-ui #accounts #officeTeamPanel {--office-list-link:var(--dm-link,#83b8ff);--office-list-green:rgb(115 232 159);--office-list-amber:rgb(243 178 104);--office-list-red:rgb(232 114 114);--office-list-purple:#c4b5fd}
 html body.erp-system-ui #accounts #officeTeamPanel .office-people-table {color:var(--ui-text)!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-people-table th svg {color:var(--office-list-link)!important;opacity:1!important}
 html body.erp-system-ui #accounts #officeTeamPanel :is(.office-account-copy,.office-person small,.office-source-chip,.office-role-chip) {-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui #accounts #officeTeamPanel :is(.office-source-chip,.office-role-chip) {color:var(--office-list-link)!important;background:color-mix(in srgb,var(--office-list-link) 5%,var(--ui-surface))!important;font-size:12px!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-person>div {max-width:240px!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-account-copy>span {white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.6!important}
 html body.erp-system-ui #accounts #officeTeamPanel [data-office-col="state"]:has(.office-status.active) .office-row-expiry.is-permanent {color:var(--office-list-green)!important}
 html body.erp-system-ui #accounts #officeTeamPanel [data-office-col="state"]:has(.office-status.pending) .office-row-expiry {color:var(--office-list-amber)!important}
 html body.erp-system-ui #accounts #officeTeamPanel [data-office-col="state"]:has(.office-status.expired) .office-row-expiry {color:var(--office-list-red)!important}
 html body.erp-system-ui #accounts #officeTeamPanel [data-office-col="state"]:has(.office-status.disabled) .office-row-expiry {color:var(--office-list-purple)!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-row-expiry>svg {color:inherit!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-row-actions [data-office-action="disable"] {--ui-button-text:var(--office-list-purple)!important;--erp-action-icon-color:currentColor!important}
 /* Staff state colors match the order center's ready, pending, cancelled and return states. */
 html body.erp-system-ui :is(#officeTeamPanel,.office-dialog) .office-status.active {--office-state-accent:#22a447;--office-state-ink:#15803d;--office-state-soft:#eaf8ee;--office-state-dark-ink:rgb(115 232 159)}
 html body.erp-system-ui :is(#officeTeamPanel,.office-dialog) .office-status.pending {--office-state-accent:#f59e0b;--office-state-ink:#d97706;--office-state-soft:#fff3dc;--office-state-dark-ink:rgb(243 178 104)}
 html body.erp-system-ui :is(#officeTeamPanel,.office-dialog) .office-status.expired {--office-state-accent:#ef4444;--office-state-ink:#dc2626;--office-state-soft:#fff0f0;--office-state-dark-ink:rgb(232 114 114)}
 html body.erp-system-ui :is(#officeTeamPanel,.office-dialog) .office-status.disabled {--office-state-accent:#7c3aed;--office-state-ink:#7c3aed;--office-state-soft:color-mix(in srgb,#7c3aed 8%,var(--ui-surface,#fff));--office-state-dark-ink:#c4b5fd}
 html body.erp-system-ui :is(#officeTeamPanel,.office-dialog) .office-status:is(.active,.pending,.expired,.disabled) {color:var(--office-state-ink)!important;-webkit-text-fill-color:currentColor!important;background:var(--office-state-soft)!important}
 html body.erp-system-ui :is(#officeTeamPanel,.office-dialog) .office-status:is(.active,.pending,.expired,.disabled)>svg {color:inherit!important;stroke:currentColor!important}
 html[data-erp-mode="dark"] body.erp-system-ui :is(#officeTeamPanel,.office-dialog) .office-status:is(.active,.pending,.expired,.disabled) {color:var(--office-state-dark-ink)!important;background:color-mix(in srgb,var(--office-state-accent) 12%,var(--ui-surface,#191919))!important}
 /* A persistent VIP pill sits immediately before the global shop field. */
 html body.erp-system-ui .main>.top .erp-membership-badge {--membership-accent:var(--ui-accent,#2f80ed);--membership-ink:var(--ui-accent-hover,#1672c4);box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;gap:7px!important;flex:0 1 auto!important;min-width:0!important;max-width:100%!important;min-height:30px!important;margin:0!important;padding:5px 11px!important;border:1px solid color-mix(in srgb,var(--membership-accent) 18%,var(--ui-border-soft,#edf1f6))!important;border-radius:999px!important;background:linear-gradient(105deg,color-mix(in srgb,var(--membership-accent) 11%,var(--ui-surface,#fff)),color-mix(in srgb,var(--membership-accent) 5%,var(--ui-surface,#fff)))!important;color:var(--membership-ink)!important;-webkit-text-fill-color:currentColor!important;font-size:12px!important;font-weight:500!important;line-height:18px!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important;box-shadow:none!important;cursor:default!important}
 html body.erp-system-ui .main>.top .erp-membership-badge[hidden],html body.erp-system-ui .erp-membership-copy>[hidden] {display:none!important}
 html body.erp-system-ui .main>.top .erp-membership-badge[data-state="pending"] {--membership-accent:#f59e0b;--membership-ink:#d97706}
 html body.erp-system-ui .main>.top .erp-membership-badge[data-state="expired"] {--membership-accent:#ef4444;--membership-ink:#dc2626}
 html body.erp-system-ui .main>.top .erp-membership-badge[data-state="disabled"] {--membership-accent:#7c3aed;--membership-ink:#7c3aed}
 html body.erp-system-ui .main>.top .erp-membership-copy {display:inline-flex!important;align-items:center!important;gap:4px!important;min-width:0!important;max-width:100%!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;line-height:18px!important}
 html body.erp-system-ui .main>.top .erp-membership-copy :is(strong,span) {color:inherit!important;-webkit-text-fill-color:currentColor!important;font-size:12px!important;line-height:18px!important;white-space:nowrap!important}
 html body.erp-system-ui .main>.top .erp-membership-copy strong {font-weight:600!important}
 html body.erp-system-ui .main>.top .erp-membership-copy [data-membership-detail] {min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;font-weight:400!important;opacity:.9}
 html body.erp-system-ui .main>.top .erp-membership-copy .erp-membership-dot {opacity:.4!important}
 html body.erp-system-ui .main>.top .erp-membership-badge>.erp-membership-mark {display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;color:inherit!important}
 html[data-erp-mode="dark"] body.erp-system-ui .main>.top .erp-membership-badge {--membership-ink:var(--dm-link,#83b8ff)}
 html[data-erp-mode="dark"] body.erp-system-ui .main>.top .erp-membership-badge[data-state="pending"] {--membership-ink:rgb(243 178 104)}
 html[data-erp-mode="dark"] body.erp-system-ui .main>.top .erp-membership-badge[data-state="expired"] {--membership-ink:rgb(232 114 114)}
 html[data-erp-mode="dark"] body.erp-system-ui .main>.top .erp-membership-badge[data-state="disabled"] {--membership-ink:#c4b5fd}
 @media(max-width:900px){html body.erp-system-ui .main>.top .erp-global-tools:has(>#erpMembershipBadge){height:auto!important;min-height:44px!important;row-gap:6px!important}}
 html body.erp-system-ui .office-dialog .office-current-expiry input {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui #officeTeamPanel .office-people-table{min-width:960px!important;table-layout:auto!important}
 html body.erp-system-ui #officeTeamPanel .office-people-table :is(th,td){padding:14px 12px!important;line-height:1.6!important}
 html body.erp-system-ui #officeTeamPanel .office-people-table th>span{display:inline-flex!important;align-items:center!important;gap:6px!important;font-weight:500!important}
 html body.erp-system-ui #officeTeamPanel .office-people-table svg{display:inline-block!important;width:14px!important;height:14px!important;flex:0 0 14px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
 html body.erp-system-ui #officeTeamPanel .office-people-table th svg{color:var(--ui-accent)!important;opacity:.8}
 html body.erp-system-ui #officeTeamPanel .office-people-table tbody tr:hover{background:var(--ui-field-surface)!important}
 html body.erp-system-ui #officeTeamPanel .office-people-table [data-office-col="actions"]{width:1%!important;white-space:nowrap!important}
 html body.erp-system-ui #officeTeamPanel .office-person>div{min-width:0!important;max-width:190px!important}
 html body.erp-system-ui #officeTeamPanel .office-account-copy{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:0!important;height:auto!important;max-width:100%!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--office-list-link)!important;font:inherit!important;font-size:13px!important;font-weight:600!important;white-space:normal!important;cursor:pointer!important;text-align:left!important}
 html body.erp-system-ui #officeTeamPanel .office-account-copy>svg{width:12px!important;height:12px!important;flex-basis:12px!important;color:var(--ui-muted,#758397)!important;opacity:0}
 html body.erp-system-ui #officeTeamPanel .office-account-copy>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html body.erp-system-ui #officeTeamPanel .office-account-copy:is(:hover,:focus-visible)>svg{opacity:1}
 html body.erp-system-ui #officeTeamPanel .office-person small{color:var(--office-list-link)!important;font-size:12px!important;line-height:1.6!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html body.erp-system-ui #officeTeamPanel :is(.office-role-chip,.office-source-chip){display:inline-flex!important;align-items:center!important;gap:5px!important;width:max-content!important;padding:4px 7px!important;border-radius:6px!important;font-size:11px!important;line-height:1.4!important;background:var(--ui-field-surface)!important;color:var(--ui-muted,#758397)!important;border:1px solid var(--ui-border-soft)!important}
 html body.erp-system-ui #officeTeamPanel .office-role-chip{color:var(--ui-accent)!important;background:color-mix(in srgb,var(--ui-accent) 5%,var(--ui-surface))!important}
 html body.erp-system-ui #officeTeamPanel .office-usage-stack{display:grid!important;gap:6px!important}
 html body.erp-system-ui #officeTeamPanel .office-usage-stack>span{display:grid!important;grid-template-columns:14px 2em max-content minmax(0,1fr)!important;align-items:center!important;gap:6px!important;min-width:0!important}
 html body.erp-system-ui #officeTeamPanel .office-usage-stack svg{color:var(--office-list-link)!important}
 html body.erp-system-ui #officeTeamPanel .office-usage-stack b{color:var(--office-list-link)!important;-webkit-text-fill-color:currentColor!important;font-size:14px!important;font-weight:600!important;line-height:1.5!important;font-variant-numeric:tabular-nums}
 html body.erp-system-ui #officeTeamPanel .office-usage-stack i{font-style:normal!important;color:var(--ui-text)!important;font-size:12px!important;line-height:1.6!important}
 html body.erp-system-ui #officeTeamPanel .office-status{align-items:center!important;gap:4px!important;padding:4px 7px!important;font-size:11px!important}
 html body.erp-system-ui #officeTeamPanel .office-row-expiry{display:flex!important;align-items:center!important;gap:5px!important;margin-top:6px!important;color:var(--office-list-link)!important;font-size:12px!important;line-height:1.6!important;font-variant-numeric:tabular-nums}
 html body.erp-system-ui #officeTeamPanel .office-note{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;max-width:240px!important;color:var(--ui-text)!important;font-size:12px!important;line-height:1.65!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html body.erp-system-ui #officeTeamPanel .office-note>svg{margin-right:4px!important;width:12px!important;height:12px!important}
 html body.erp-system-ui #officeTeamPanel .office-row-actions{display:flex!important;align-items:center!important;gap:6px!important}
 html body.erp-system-ui #officeTeamPanel .office-row-actions .erp-btn{min-height:32px!important;height:32px!important;padding:0 9px!important;font-size:12px!important;gap:5px!important}
 html body.erp-system-ui #officeTeamPanel .office-row-actions .office-row-icon{width:30px!important;min-width:30px!important;max-width:30px!important;padding:0!important;--ui-button-fill:var(--ui-surface)!important;--ui-button-text:var(--ui-muted,#758397)!important;--ui-button-line:var(--ui-border)!important;--erp-action-icon-color:currentColor!important}
 html body.erp-system-ui #officeTeamPanel .office-row-actions .office-row-danger{--ui-button-text:var(--ui-danger)!important;--ui-button-hover-fill:var(--ui-danger-soft)!important;--ui-button-hover-text:var(--ui-danger)!important;--ui-button-hover-line:var(--ui-danger)!important}
 html body.erp-system-ui .office-dialog:has(>.office-workflow-content){width:min(620px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;padding:0!important;overflow:hidden!important}
 html body.erp-system-ui .office-dialog[open]:has(>.office-workflow-content){display:flex!important;flex-direction:column!important}
 html body.erp-system-ui .office-dialog:has(>.office-workflow-content)>header{flex:0 0 auto!important;min-height:62px!important;margin:0!important;padding:14px 18px!important;box-sizing:border-box!important;border-bottom:1px solid var(--ui-border-soft)!important}
 html body.erp-system-ui .office-dialog:has(>.office-workflow-content)>header h2{font-size:16px!important;font-weight:600!important}
 html body.erp-system-ui .office-dialog:has(>.office-workflow-content)>header .office-icon{width:34px!important;height:34px!important;border-radius:9px!important}
 html body.erp-system-ui .office-dialog:has(>.office-workflow-content)>[data-office-message]{margin:0!important;padding:8px 18px!important;font-size:12px!important;flex:0 0 auto!important}
 html body.erp-system-ui .office-dialog:has(>.office-workflow-content)>[data-office-message]:empty{display:none!important}
 html body.erp-system-ui .office-dialog .office-workflow-content,html body.erp-system-ui .office-dialog .office-workflow-content>form{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;gap:0!important}
 html body.erp-system-ui .office-dialog .office-workflow-body{display:grid!important;gap:14px!important;padding:16px 18px!important;overflow:auto!important;min-height:0!important;scrollbar-gutter:stable!important}
 html body.erp-system-ui .office-dialog .office-workflow-section{padding:14px!important;border:1px solid var(--ui-border-soft)!important;border-radius:10px!important;background:var(--ui-surface)!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-workflow-content h3{display:flex!important;align-items:center!important;gap:7px!important;margin:0 0 12px!important;padding:0!important;font-size:13px!important;font-weight:600!important;color:var(--ui-text)!important;line-height:1.5!important}
 html body.erp-system-ui .office-dialog .office-workflow-content svg{width:15px!important;height:15px!important;flex:0 0 15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 html body.erp-system-ui .office-dialog .office-workflow-content h3>svg{color:var(--ui-accent)!important}
 html body.erp-system-ui .office-dialog .office-workflow-content .office-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 html body.erp-system-ui .office-dialog .office-workflow-content label,html body.erp-system-ui .office-dialog .office-period-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;min-width:0!important;margin:0!important;padding:0!important;text-align:left!important;font-size:12px!important;line-height:1.5!important}
 html body.erp-system-ui .office-dialog .office-workflow-content .office-field-label{display:flex!important;align-items:center!important;gap:6px!important;color:var(--ui-text)!important;font-size:12px!important;line-height:1.5!important}
 html body.erp-system-ui .office-dialog .office-workflow-content .office-field-label>svg{width:14px!important;height:14px!important;flex-basis:14px!important;color:var(--ui-muted,#758397)!important}
 html body.erp-system-ui .office-dialog .office-workflow-content :is(small,p){margin:0!important;padding:0!important;font-size:11px!important;line-height:1.6!important;color:var(--ui-muted,#758397)!important;text-align:left!important}
 html body.erp-system-ui .office-dialog .office-workflow-content footer{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex:0 0 auto!important;margin:0!important;padding:12px 18px!important;border-top:1px solid var(--ui-border-soft)!important;background:var(--ui-field-surface)!important}
 html body.erp-system-ui .office-dialog .office-inline-hint{display:flex!important;align-items:center!important;gap:6px!important;font-size:11px!important;color:var(--ui-muted,#758397)!important;line-height:1.6!important}
 html body.erp-system-ui .office-dialog .office-workflow-link{padding:0 18px 10px!important;background:var(--ui-field-surface)!important}
 html body.erp-system-ui .office-dialog .office-workflow-link .erp-btn{min-height:26px!important;padding:2px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:11px!important}
 html body.erp-system-ui .office-dialog .office-period-picker{display:grid!important;gap:8px!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-period-hours{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-period-hours[hidden]{display:none!important}
 html body.erp-system-ui .office-dialog .office-period-hours>input{flex:1!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-period-hours>span{color:var(--ui-muted,#758397)!important;font-size:12px!important;white-space:nowrap!important}
 html body.erp-system-ui .office-dialog .office-period-rules{margin-top:10px!important;font-size:11px!important;color:var(--ui-muted,#758397)!important}
 html body.erp-system-ui .office-dialog .office-period-rules>summary{cursor:pointer!important;width:max-content!important}
 html body.erp-system-ui .office-dialog .office-period-rules>p{padding-top:6px!important}
 html body.erp-system-ui .office-dialog .office-hint-chips{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 html body.erp-system-ui .office-dialog .office-hint-chips>span{display:inline-flex!important;align-items:center!important;gap:5px!important;border:1px solid var(--ui-border-soft)!important;background:var(--ui-field-surface)!important;color:var(--ui-text)!important;border-radius:7px!important;padding:6px 9px!important;font-size:12px!important}
 html body.erp-system-ui .office-dialog .office-link-ready{display:flex!important;align-items:center!important;gap:7px!important;color:var(--ui-accent)!important;font-size:13px!important}
 html body.erp-system-ui .office-dialog .office-confirm-person{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-confirm-person :is(b,small){display:block!important;line-height:1.6!important}
 html body.erp-system-ui .office-dialog .office-confirm-person b{font-size:13px!important;font-weight:500!important}
 html body.erp-system-ui .office-dialog .office-renewal-card .office-renewal-controls{grid-template-columns:minmax(0,1fr) auto!important}
 html body.erp-system-ui .office-dialog .office-renewal-card .office-renewal-controls:has(.office-period-hours:not([hidden])){grid-template-columns:minmax(0,1fr) 110px auto!important}
 @media(max-width:700px){html body.erp-system-ui #officeTeamPanel .office-table-wrap{border:0!important;background:transparent!important;overflow:visible!important}html body.erp-system-ui #officeTeamPanel .office-people-table{display:block!important;min-width:0!important;width:100%!important}html body.erp-system-ui #officeTeamPanel .office-people-table thead{display:none!important}html body.erp-system-ui #officeTeamPanel .office-people-table tbody{display:grid!important;gap:10px!important}html body.erp-system-ui #officeTeamPanel .office-people-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;padding:12px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-surface)!important}html body.erp-system-ui #officeTeamPanel .office-people-table td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important}html body.erp-system-ui #officeTeamPanel .office-people-table [data-office-col="role"]{justify-self:end!important}html body.erp-system-ui #officeTeamPanel .office-people-table :is([data-office-col="note"],[data-office-col="actions"],td.office-empty){grid-column:1/-1!important}html body.erp-system-ui #officeTeamPanel .office-people-table [data-office-col="actions"]{border-top:1px solid var(--ui-border-soft)!important;padding-top:10px!important;width:auto!important}html body.erp-system-ui #officeTeamPanel .office-person>div{max-width:140px!important}html body.erp-system-ui #officeTeamPanel .office-note{max-width:100%!important}html body.erp-system-ui #officeTeamPanel .office-row-actions{justify-content:flex-end!important}html body.erp-system-ui #officeTeamPanel .office-people-table .office-empty{height:auto!important;padding:24px 0!important;text-align:center!important}}
 @media(max-width:600px){html body.erp-system-ui .office-dialog .office-workflow-content .office-form-grid{grid-template-columns:minmax(0,1fr)!important}html body.erp-system-ui .office-dialog .office-renewal-card .office-renewal-controls:has(.office-period-hours:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))!important}html body.erp-system-ui .office-dialog .office-renewal-card .office-renewal-controls>button{grid-column:auto!important}html body.erp-system-ui .office-dialog .office-renewal-card .office-renewal-controls:has(.office-period-hours:not([hidden]))>button{grid-column:1/-1!important}}
}

/* Compact member management stays scoped to its own native dialog. */
@layer erpColorMode.overrides {
 html body.erp-system-ui .office-dialog:has(>.office-member-content){width:min(680px,calc(100vw - 32px))!important;max-height:min(850px,calc(100dvh - 32px))!important;padding:0!important;overflow:hidden!important}
 html body.erp-system-ui .office-dialog[open]:has(>.office-member-content){display:flex!important;flex-direction:column!important}
 html body.erp-system-ui .office-dialog:has(>.office-member-content)>header{flex:0 0 auto!important;min-height:64px!important;margin:0!important;padding:14px 20px!important;box-sizing:border-box!important;border-bottom:1px solid var(--ui-border-soft)!important}
 html body.erp-system-ui .office-dialog:has(>.office-member-content)>header h2{font-size:16px!important;font-weight:600!important}
 html body.erp-system-ui .office-dialog:has(>.office-member-content)>header .office-icon{width:34px!important;height:34px!important;border-radius:9px!important}
 html body.erp-system-ui .office-dialog:has(>.office-member-content)>[data-office-message]{flex:0 0 auto!important;margin:0!important;padding:10px 20px!important;font-size:12px!important;line-height:1.6!important}
 html body.erp-system-ui .office-dialog:has(>.office-member-content)>[data-office-message]:empty{display:none!important}
 html body.erp-system-ui .office-dialog .office-member-content{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-member-scroll{display:grid!important;gap:14px!important;min-height:0!important;overflow:auto!important;padding:16px 20px!important;scrollbar-gutter:stable!important}
 html body.erp-system-ui .office-dialog .office-member-content form{display:grid!important;gap:14px!important;padding:0!important;margin:0!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-manage-section{padding:14px!important;margin:0!important;border:1px solid var(--ui-border-soft)!important;border-radius:10px!important;background:var(--ui-surface)!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-member-content h3{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;margin:0 0 12px!important;padding:0!important;font-size:13px!important;font-weight:600!important;line-height:1.5!important;color:var(--ui-text)!important}
 html body.erp-system-ui .office-dialog .office-member-content svg{width:15px!important;height:15px!important;flex:0 0 15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 html body.erp-system-ui .office-dialog .office-member-content h3>svg{color:var(--ui-accent)!important}
 html body.erp-system-ui .office-dialog .office-member-content h3>.office-status{margin-inline-start:auto!important;font-size:11px!important;font-weight:400!important}
 html body.erp-system-ui .office-dialog .office-manage-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-member-content label,html body.erp-system-ui .office-dialog .office-current-expiry{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;min-width:0!important;margin:0!important;padding:0!important;text-align:left!important;font-size:12px!important;line-height:1.5!important}
 html body.erp-system-ui .office-dialog .office-field-label{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;color:var(--ui-text)!important;text-align:left!important;font-size:12px!important;line-height:1.5!important}
 html body.erp-system-ui .office-dialog .office-field-label>svg{width:14px!important;height:14px!important;flex-basis:14px!important;color:var(--ui-muted,#758397)!important}
 html body.erp-system-ui .office-dialog .office-member-content small,html body.erp-system-ui .office-dialog .office-member-content p{margin:0!important;padding:0!important;font-size:11px!important;line-height:1.6!important;color:var(--ui-muted,#758397)!important;text-align:left!important}
 html body.erp-system-ui .office-dialog .office-current-expiry strong{display:flex!important;align-items:center!important;min-height:36px!important;padding:0 10px!important;border-radius:var(--ui-control-radius)!important;background:var(--ui-field-surface)!important;color:var(--ui-text)!important;font-size:13px!important;font-weight:500!important;line-height:1.5!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui .office-dialog .office-duration-settings{margin:12px 0 0!important;padding:10px 0 0!important;border-top:1px solid var(--ui-border-soft)!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-duration-settings>summary{display:flex!important;align-items:center!important;gap:6px!important;margin:0!important;padding:0!important;cursor:pointer!important;color:var(--ui-accent)!important;font-size:12px!important;line-height:1.6!important;list-style:none!important}
 html body.erp-system-ui .office-dialog .office-duration-settings>summary::after{content:'⌄';margin-inline-start:auto}
 html body.erp-system-ui .office-dialog .office-duration-settings[open]>.office-manage-grid{margin-top:12px!important;margin-bottom:8px!important}
 html body.erp-system-ui .office-dialog .office-member-content label.office-reset-line{display:grid!important;grid-template-columns:16px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;align-self:center!important}
 html body.erp-system-ui .office-dialog .office-member-content .office-reset-line>input{width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important}
 html body.erp-system-ui .office-dialog .office-member-note textarea{min-height:62px!important;resize:vertical}
 html body.erp-system-ui .office-dialog .office-renewal-card{display:grid!important;gap:10px!important;padding:14px!important;border:1px solid color-mix(in srgb,var(--ui-accent) 20%,var(--ui-border))!important;border-radius:10px!important;background:color-mix(in srgb,var(--ui-accent) 4%,var(--ui-surface))!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-renewal-card h3{margin-bottom:0!important}
 html body.erp-system-ui .office-dialog .office-renewal-controls{display:grid!important;grid-template-columns:minmax(0,1fr) 116px auto!important;align-items:center!important;gap:8px!important;min-width:0!important}
 html body.erp-system-ui .office-dialog .office-member-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;flex:0 0 auto!important;gap:12px!important;margin:0!important;padding:12px 20px!important;border-top:1px solid var(--ui-border-soft)!important;background:var(--ui-field-surface)!important}
 html body.erp-system-ui .office-dialog :is(.office-member-tools,.office-member-save){display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
 @media(max-width:600px){html body.erp-system-ui .office-dialog .office-manage-grid{grid-template-columns:minmax(0,1fr)!important}html body.erp-system-ui .office-dialog .office-renewal-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body.erp-system-ui .office-dialog .office-renewal-controls>button{grid-column:1/-1!important}html body.erp-system-ui .office-dialog .office-member-footer{flex-wrap:wrap!important}html body.erp-system-ui .office-dialog .office-member-save{width:100%!important;justify-content:flex-end!important;order:1}html body.erp-system-ui .office-dialog .office-member-tools{width:100%!important;order:2}}
}

/* Office account layout uses the shared controls, labels and theme tokens. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #accounts #officeTeamPanel .office-toolbar {min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-toolbar .office-actions {margin-inline-start:auto!important;justify-content:flex-end!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter {
  --office-pending-accent:#f59e0b;--office-pending-deep:#d97706;--office-pending-ink:var(--office-pending-deep);--erp-action-icon-color:currentColor!important;
  appearance:none!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  gap:6px!important;height:36px!important;min-height:36px!important;padding:0 10px!important;margin:0!important;
  border:1px solid color-mix(in srgb,var(--office-pending-accent) 35%,var(--ui-border,#e3e9f1))!important;border-radius:5px!important;
  background:color-mix(in srgb,var(--office-pending-accent) 5%,var(--ui-surface,#fff))!important;color:var(--office-pending-ink)!important;-webkit-text-fill-color:currentColor!important;
  font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:20px!important;white-space:nowrap!important;
  cursor:pointer!important;box-shadow:none!important;transform:none!important;transition:none!important;
 }
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter:hover {background:color-mix(in srgb,var(--office-pending-accent) 10%,var(--ui-surface,#fff))!important;border-color:var(--office-pending-accent)!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter.active {color:#fff!important;background:var(--office-pending-accent)!important;border-color:var(--office-pending-accent)!important;box-shadow:0 3px 8px color-mix(in srgb,var(--office-pending-accent) 20%,transparent)!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter.active:hover {background:var(--office-pending-deep)!important;border-color:var(--office-pending-deep)!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter:focus-visible {outline:2px solid var(--office-pending-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter>span {color:inherit!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter>svg {display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;color:inherit!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-count {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:19px!important;height:18px!important;padding:0 5px!important;margin:0!important;border-radius:999px!important;border:1px solid color-mix(in srgb,var(--office-pending-accent) 38%,var(--ui-border,#e3e9f1))!important;background:color-mix(in srgb,var(--office-pending-accent) 12%,var(--ui-surface,#fff))!important;font-size:10px!important;font-weight:500!important;line-height:1!important;font-variant-numeric:tabular-nums}
 html body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter.active .office-pending-count {color:#fff!important;background:rgb(255 255 255 / 20%)!important;border-color:rgb(255 255 255 / 30%)!important}
 html[data-erp-mode="dark"] body.erp-system-ui #accounts #officeTeamPanel .office-pending-filter {--office-pending-ink:#fbbf24}
 @media(max-width:1200px) {
  html body.erp-system-ui #accounts #officeTeamPanel .erp-tool-row {flex-wrap:wrap!important}
  html body.erp-system-ui #accounts #officeTeamPanel .office-filter {flex:1 1 100%!important}
  html body.erp-system-ui #accounts #officeTeamPanel .office-toolbar {display:flex!important;flex:1 1 100%!important;width:100%!important;margin:0!important;padding:0!important}
  html body.erp-system-ui #accounts #officeTeamPanel .office-toolbar .office-actions {flex-wrap:wrap!important}
 }
}
@layer erpComponents {
 html body.erp-system-ui #employeeSwitchDialog {box-sizing:border-box!important;width:min(560px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;margin:auto!important;padding:0!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-dialog-radius,12px)!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;box-shadow:var(--ui-dialog-shadow)!important;overflow:auto!important;}
 html body.erp-system-ui #employeeSwitchDialog::backdrop {background:var(--ui-overlay)!important;}
 html body.erp-system-ui #employeeSwitchDialog>header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--ui-border-soft);}
 html body.erp-system-ui #employeeSwitchDialog h3 {display:flex;align-items:center;gap:9px;margin:0;font-size:15px;font-weight:600;}
 html body.erp-system-ui #employeeSwitchDialog svg {display:block;flex:0 0 18px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
 html body.erp-system-ui #employeeSwitchDialog h3>svg {color:var(--ui-accent);}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-search {display:flex;align-items:center;gap:8px;margin:0;padding:14px 18px 8px;}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-search input {flex:1;max-width:none!important;}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-list {display:grid;gap:8px;min-height:112px;padding:8px 18px 14px;}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-row {display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;max-width:none!important;min-height:62px!important;margin:0!important;padding:11px 12px!important;border:1px solid var(--ui-border)!important;border-radius:8px!important;background:var(--ui-field-surface)!important;color:var(--ui-text)!important;font-family:inherit!important;font-size:12px!important;line-height:1.4!important;text-align:left!important;white-space:normal!important;cursor:pointer;box-shadow:none!important;}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-row:hover {background:var(--ui-accent-soft)!important;border-color:var(--ui-accent)!important;}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-row[aria-current="true"] {background:var(--ui-accent-soft)!important;border-color:var(--ui-accent)!important;opacity:1!important;cursor:default;}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-avatar {display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:8px;background:var(--ui-accent-soft);color:var(--ui-accent);}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-person {display:grid;gap:5px;flex:1;min-width:0;overflow-wrap:anywhere;}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-person b {font-size:13px;font-weight:500;}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-person small {font-size:11px;color:var(--ui-text-muted,#667085);}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-state {flex:none;font-size:12px;color:var(--ui-accent);}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-empty {margin:auto;padding:24px 0;text-align:center;font-size:12px;}
 html body.erp-system-ui #employeeSwitchDialog>footer {padding:10px 18px 16px;border-top:1px solid var(--ui-border-soft);}
 html body.erp-system-ui #employeeSwitchDialog .employee-switch-row:focus-visible {outline:2px solid var(--ui-accent);outline-offset:2px;}
}
@layer erpColorMode.overrides {
 html body.erp-system-ui #tenantViewBannerV3296 .tenant-view-switch-v66 {display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:26px!important;height:26px!important;padding:0 9px!important;border:1px solid var(--ui-border)!important;border-radius:7px!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;font-size:11px!important;white-space:nowrap!important;cursor:pointer!important;}
 html body.erp-system-ui #tenantViewBannerV3296 .tenant-view-switch-v66:hover {background:var(--ui-accent-soft)!important;border-color:var(--ui-accent)!important;}
 html body.erp-system-ui #tenantViewBannerV3296 .tenant-view-switch-v66 svg {display:block;flex:0 0 15px;width:15px;height:15px;fill:none;stroke:var(--ui-accent);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
}
@layer erpComponents {
  html body.erp-system-ui #accounts.office-team-owner > :is(.account-metrics-v31,.account-management-tip-v3241,.account-segmented,#accountTenantPanel) {display:none!important}
  html body.erp-system-ui #accounts.office-team-mode > #accountUserPanel {display:none!important}
  html body.erp-system-ui :where(.office-team-slot,.office-dialog) [hidden] {display:none!important}
  .office-toolbar,.office-tabs,.office-actions,.office-row-actions,.office-pager,.office-pager>div {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .office-toolbar {justify-content:space-between;margin:0 0 16px}
  .office-summary {display:flex;align-items:center;gap:10px;font-size:14px}
  html body.erp-system-ui .office-summary .office-icon {width:32px!important;height:32px!important;border-radius:9px}
  html body.erp-system-ui .office-summary .office-icon svg {width:18px;height:18px}
  .lc-settings-actions {display:grid;gap:12px;margin:16px 0}
  html body.erp-system-ui :where(.office-team-slot,.office-dialog) .erp-btn {display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:34px!important;padding:7px 13px!important;font-size:12px!important;white-space:nowrap!important}
  html body.erp-system-ui :where(.office-team-slot,.office-dialog) .erp-btn svg {width:15px!important;height:15px!important;flex:0 0 15px;stroke:currentColor!important;stroke-width:1.7;fill:none!important;stroke-linecap:round;stroke-linejoin:round}
  .office-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
  .office-metric {background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;padding:18px;display:flex;align-items:center;gap:13px}
  .office-metric b {display:block;font-size:25px;margin-top:6px;font-variant-numeric:tabular-nums}
  .office-metric span {font-size:12px}
  html body.erp-system-ui .office-icon {width:40px!important;height:40px!important;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;flex-shrink:0}
  html body.erp-system-ui .office-icon.blue {background:#eaf2ff!important;color:#3476e6!important}
  html body.erp-system-ui .office-icon.green {background:#e6f7ef!important;color:#16a372!important}
  html body.erp-system-ui .office-icon.amber {background:#fff4de!important;color:#df981d!important}
  html body.erp-system-ui .office-icon.purple {background:#f2ecff!important;color:#8b61d3!important}
  html body.erp-system-ui .office-icon svg {width:22px;height:22px;stroke:currentColor!important;fill:none!important;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .office-filter {display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--ui-surface);border:1px solid var(--ui-border);padding:14px;border-radius:10px;margin-bottom:14px}
  html body.erp-system-ui .office-filter input {width:240px!important}
  html body.erp-system-ui .office-filter select {width:140px!important}
  .office-table-wrap {overflow:auto;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
  html body.erp-system-ui .office-table-wrap table {width:100%!important;min-width:1040px;border-collapse:collapse;table-layout:auto!important}
  html body.erp-system-ui .office-table-wrap :is(th,td) {text-align:left!important;padding:14px 16px!important;border-bottom:1px solid var(--ui-border)!important;vertical-align:middle!important;font-size:12px!important;line-height:1.5!important;white-space:nowrap!important}
  html body.erp-system-ui .office-table-wrap th {background:var(--ui-surface-subtle,#f6f8fc)!important;color:#000!important;font-weight:600!important}
  .office-table-wrap tr:last-child td {border-bottom:0!important}
  .office-table-wrap small,.office-person small {display:block;margin-top:4px;font-size:11px}
  .office-person {display:flex;align-items:center;gap:10px}
  html body.erp-system-ui .office-avatar {width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--ui-accent-soft)!important;color:var(--ui-accent)!important;font-weight:600}
  html body.erp-system-ui .office-status {padding:4px 9px;border-radius:6px;display:inline-flex;font-size:11px!important}
  html body.erp-system-ui .office-online.on {color:#15976b!important}
  .office-note {display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis}
  .office-row-actions {flex-wrap:nowrap}
  html body.erp-system-ui .office-table-wrap .office-empty {height:170px;text-align:center!important}
  .office-pager {justify-content:space-between;margin-top:14px;font-size:12px}
  html body.erp-system-ui .office-error {color:var(--ui-danger)!important}
  html body.erp-system-ui .office-dialog {zoom:calc(1 / var(--erp-page-zoom,1.05))!important;box-sizing:border-box;width:min(620px,calc(100vw - 48px))!important;max-height:calc(100vh - 48px)!important;overflow:auto!important;padding:22px!important}
  html body.erp-system-ui .office-dialog header {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
  html body.erp-system-ui .office-dialog > header .office-close {width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;flex:0 0 32px!important;padding:0!important;gap:0!important;line-height:1!important}
  html body.erp-system-ui .office-dialog > header .office-close svg {width:16px!important;height:16px!important;flex:0 0 16px!important;margin:0!important}
  .office-dialog-heading {display:flex;align-items:center;gap:11px}
  html body.erp-system-ui .office-dialog-heading h2 {margin:0!important;font-size:18px!important}
  .office-form-grid {display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .office-form-grid label,.office-entry label {display:flex;flex-direction:column;gap:8px;font-size:12px}
  .office-wide {grid-column:1/-1}
  html body.erp-system-ui .office-dialog :is(input,select,textarea) {width:100%!important;box-sizing:border-box!important;min-width:0!important}
  .office-duration {display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:8px;align-items:center}
  html body.erp-system-ui .office-dialog .office-trial-reset {flex-direction:row;align-items:center}
  html body.erp-system-ui .office-dialog .office-trial-reset > input {width:16px!important;height:16px!important;min-height:16px!important;flex:0 0 16px;padding:0!important}
  .office-dialog footer {display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:20px}
  .office-account-tools {display:flex;gap:8px;border-top:1px solid var(--ui-border);padding-top:15px;margin-top:18px}
  .office-help {font-size:12px;line-height:1.7;margin:14px 0 0}
  .office-confirm-name {font-size:16px;margin:10px 0}
  .office-confirm-name small {margin-left:8px;font-size:12px}
  .office-network-state {display:flex;align-items:center;gap:10px;font-size:12px;margin-bottom:20px}
  .office-entry {border:1px solid var(--ui-border);background:var(--ui-accent-soft);border-radius:10px;padding:16px;margin-top:20px}
  .office-entry .office-actions {margin-top:12px}
  .office-steps {padding-left:20px;font-size:12px;line-height:1.9;margin:20px 0}
  .office-dialog details {font-size:12px}
  @media(max-width:800px){.office-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.office-form-grid{grid-template-columns:1fr}.office-filter input{max-width:100%}.office-metric{padding:13px}}
}

@layer erpComponents {
 html body.erp-system-ui .office-icon.red{color:var(--ui-danger)!important;background:var(--ui-danger-soft)!important}
 html body.erp-system-ui .office-delete-btn{--ui-button-fill:#ef4444!important;--ui-button-text:#fff!important;--ui-button-line:#ef4444!important;--ui-button-hover-fill:#dc2626!important;--ui-button-hover-text:#fff!important;--ui-button-hover-line:#dc2626!important;--erp-action-icon-color:currentColor!important}
 html body.erp-system-ui .office-delete-confirm{--ui-button-fill:#ef4444!important;--ui-button-text:#fff!important;--ui-button-line:#ef4444!important;--ui-button-hover-fill:#dc2626!important;--ui-button-hover-text:#fff!important;--ui-button-hover-line:#dc2626!important;--erp-action-icon-color:currentColor!important}
 html body.erp-system-ui #license-codes .lc-code-value{display:inline-block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
 html body.erp-system-ui #license-codes .lc-row-actions{gap:8px!important;align-items:center!important}
 html body.erp-system-ui #license-codes .lc-row-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;height:32px!important;min-height:32px!important;padding:0 10px!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-control-radius)!important;background:var(--ui-surface)!important;color:var(--ui-label)!important;-webkit-text-fill-color:currentColor!important;text-decoration:none!important;white-space:nowrap!important}
 html body.erp-system-ui #license-codes .lc-row-actions button:hover{background:var(--ui-accent-soft)!important;border-color:var(--ui-accent)!important}
 html body.erp-system-ui #license-codes .lc-row-actions .lc-danger{background:var(--ui-danger-soft)!important;color:var(--ui-danger-hover)!important;border-color:var(--ui-danger-soft)!important}
 html body.erp-system-ui #license-codes .lc-row-actions .lc-danger:hover{border-color:var(--ui-danger)!important}
 html body.erp-system-ui :is(.lc-delete-button,.lc-delete-customer-button,[data-lc-delete-form] button,[data-lc-delete-customer-form] button) svg{width:15px!important;height:15px!important;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 html body.erp-system-ui [data-lc-delete-form] button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
 html body.erp-system-ui .lc-delete-code{max-height:100px;overflow:auto;padding:10px 12px;background:var(--ui-surface-subtle,#f6f8fc);border-radius:var(--ui-control-radius)}
 html body.erp-system-ui .lc-delete-code code{overflow-wrap:anywhere;white-space:normal}
 @media(min-width:641px){
  html body.erp-system-ui .office-filter>:is(.erp-select-host,.erp-choice){flex:0 0 140px!important;width:140px!important;min-width:0!important}
  html body.erp-system-ui .office-table-wrap :is(th,td):last-child,
  html body.erp-system-ui #license-codes .lc-card .lc-table-wrap :is(th,td):last-child{position:sticky!important;right:0!important;z-index:2;background:var(--ui-surface)!important;box-shadow:-5px 0 10px #263a5410}
  html body.erp-system-ui .office-table-wrap th:last-child,
  html body.erp-system-ui #license-codes .lc-card .lc-table-wrap th:last-child{z-index:3;background:var(--ui-surface-subtle,#f6f8fc)!important}
 }
}

@layer erpColorMode.overrides {
 @media(max-width:767px) {
  /* A phone has one filter panel and one complete card for each member. */
  html body.erp-system-ui #accounts #officeTeamPanel .office-people-table>tbody>tr>td::before {content:none!important;display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot {min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .erp-tools-combined {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:12px!important;margin-bottom:12px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-filter {display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-filter>label {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-filter>:is(input,.erp-clear-field) {grid-column:1/-1!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-filter>:is(select,.erp-select-host,.erp-choice) {grid-column:1!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-filter :is(input,.erp-clear-field,.erp-select-button,.erp-choice-trigger) {box-sizing:border-box!important;min-height:42px!important;height:42px!important;max-height:42px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-filter input {width:100%!important;font-size:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-filter>.erp-btn {height:42px!important;min-height:42px!important;padding:0 10px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-toolbar {display:block!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-summary:not(:has(button)) {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-summary:has(button) {display:flex!important;margin-bottom:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-toolbar .office-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:0!important;padding:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-actions>button[data-office-action]:not([hidden]) {width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0 8px!important;font-size:13px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-table-wrap {width:100%!important;min-width:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table {display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important;table-layout:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table thead {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table tbody {display:grid!important;gap:12px!important;width:100%!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table tr {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'person role' 'state state' 'usage usage' 'note note' 'actions actions'!important;gap:10px!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;padding:12px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-surface)!important;box-shadow:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table td {display:block!important;position:static!important;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:auto!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;border-inline:0!important;border-block:0!important;background:transparent!important;box-shadow:none!important;white-space:normal!important;text-align:left!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot [data-office-col='person'] {grid-area:person!important;align-self:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot [data-office-col='role'] {grid-area:role!important;align-self:center!important;justify-self:end!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-person {gap:8px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-avatar {flex:0 0 34px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-person>div {min-width:0!important;max-width:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-person small {white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-account-copy {max-width:100%!important;font-size:13px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table [data-office-col='state'] {grid-area:state!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:wrap!important;padding:9px 10px!important;border-radius:7px!important;background:var(--ui-field-surface)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-row-expiry {margin:0!important;min-width:0!important;font-size:12px!important;white-space:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot [data-office-col='usage'] {grid-area:usage!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-usage-stack {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-usage-stack>span {min-width:0!important;gap:5px!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-usage-stack>span:first-child::after {content:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot [data-office-col='note'] {grid-area:note!important;display:flex!important;align-items:flex-start!important;gap:8px!important;flex-wrap:wrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-source-chip {flex:0 0 auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-note {flex:1 1 150px!important;max-width:none!important;margin:2px 0 0!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:12px!important;line-height:1.6!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table [data-office-col='actions'] {grid-area:actions!important;padding-top:10px!important;border-top:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-row-actions {display:flex!important;align-items:center!important;justify-content:stretch!important;flex-wrap:nowrap!important;gap:6px!important;width:100%!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-row-actions>.erp-btn {height:40px!important;min-height:40px!important;min-width:0!important;padding:0 8px!important;margin:0!important;font-size:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-row-actions>.erp-btn:not(.office-row-icon) {flex:1 1 0!important;width:0!important;max-width:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-row-actions>.office-row-icon {flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;padding:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table tr:has(>.office-empty) {display:block!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-people-table .office-empty {padding:28px 12px!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts.office-team-owner #officeTeamPanel.office-team-slot .office-pager {box-sizing:border-box!important;min-width:0!important;width:100%!important;flex-wrap:wrap!important;gap:10px!important;padding:12px!important}
  /* The dialog scrolls its fields while the main actions remain reachable. */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog {box-sizing:border-box!important;zoom:1!important;width:calc(100vw - 20px)!important;min-width:0!important;max-width:600px!important;max-height:calc(var(--erp-phone-height,100dvh) - 20px)!important;margin:auto!important;padding:0!important;overflow:hidden!important;border-radius:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog>header {min-height:58px!important;gap:10px!important;padding:12px 14px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-dialog-heading {min-width:0!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-dialog-heading h2 {font-size:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog :is(.office-member-scroll,.office-workflow-body) {min-width:0!important;min-height:0!important;gap:12px!important;padding:12px!important;scrollbar-gutter:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog :is(.office-manage-section,.office-workflow-section,.office-renewal-card) {padding:12px!important;border-radius:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog :is(.office-manage-grid,.office-form-grid) {grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog :is(input:not([type='checkbox']),textarea,.erp-select-host,.erp-select-button,.erp-choice-trigger) {min-width:0!important;max-width:100%!important;font-size:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog :is(input:not([type='checkbox']),.erp-select-button,.erp-choice-trigger) {min-height:42px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-renewal-controls {grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-renewal-controls:has(.office-period-hours:not([hidden])) {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-renewal-controls>button {grid-column:1/-1!important;width:100%!important;min-height:42px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-member-footer {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:10px 12px max(10px,env(safe-area-inset-bottom))!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog :is(.office-member-tools,.office-member-save) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-member-tools {order:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-member-save {order:1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog :is(.office-member-footer,.office-workflow-content footer) .erp-btn {width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;padding:0 8px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog .office-workflow-content footer {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px 12px max(10px,env(safe-area-inset-bottom))!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog.office-dialog.lc-dialog>.office-workflow-content>[data-office-form='add'] {min-height:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#accounts #officeTeamPanel,dialog.office-dialog) :is(.office-member-footer,.office-workflow-content footer) button.erp-btn[type] {display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:42px!important;height:42px!important;padding:0 8px!important;white-space:nowrap!important;overflow-wrap:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#accounts #officeTeamPanel,dialog.office-dialog) .office-renewal-controls>button.erp-btn[type] {grid-column:1/-1!important;min-height:42px!important;width:100%!important;white-space:nowrap!important}
 }
}

/* ===== mobile.css ===== */
@layer erpComponents {
/* Phone/tablet layout is isolated here; desktop component sizes stay intact. */
.erp-mobile-menu,.erp-mobile-title,.erp-mobile-close,.erp-mobile-backdrop,.erp-mobile-row-toggle{display:none!important}
.erp-mobile-filter-panel{display:contents}
.erp-mobile-filter-summary{display:none!important}

@media(max-width:900px){
  html{scroll-padding-top:76px}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3{
    --erp-page-zoom:1!important;zoom:1!important;transform:none!important;width:100%!important;min-width:0!important;
    min-height:100vh!important;min-height:100dvh!important;-webkit-text-size-adjust:100%;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3.auth-locked .app{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .app{display:block!important;min-width:0!important;width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .app>.main{
    width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;
    padding:0 max(12px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
    transition:none!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .app>.side{
    position:fixed!important;inset:0 auto 0 0!important;width:min(292px,86vw)!important;min-width:0!important;
    height:100vh!important;height:100dvh!important;max-height:100dvh!important;
    padding:max(16px,env(safe-area-inset-top)) 10px max(14px,env(safe-area-inset-bottom))!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;z-index:1002!important;
    transform:translateX(-105%)!important;visibility:hidden!important;transition:transform .2s ease,visibility .2s!important;
    box-shadow:12px 0 48px #1c344024!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3.erp-mobile-nav-open .app>.side{transform:translateX(0)!important;visibility:visible!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3.erp-mobile-nav-open{overflow:hidden!important;overscroll-behavior:none}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .side .nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:14px}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .side .erp-brand{padding:4px 42px 20px 10px!important;flex:none}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .side .erp-brand-logo-full{display:block!important;max-width:180px!important;width:100%!important;height:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .side .erp-brand-logo-icon{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .side .sidebar-account{position:static!important;flex:none;margin-top:8px!important;width:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .side .nav button{min-height:44px!important;touch-action:manipulation}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-backdrop:not([hidden]){
    display:block!important;position:fixed;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;
    background:rgba(17,31,47,.38);z-index:1001;backdrop-filter:blur(2px);cursor:pointer;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-close,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-menu{
    display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;
    min-width:44px;border:1px solid var(--ui-border,#dfe7ef)!important;border-radius:10px!important;
    background:var(--ui-accent-soft,#e8f7fa)!important;color:var(--ui-accent,var(--theme-accent,#20aec2))!important;
    padding:10px!important;box-shadow:none!important;cursor:pointer;touch-action:manipulation;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-close{position:absolute;top:max(10px,env(safe-area-inset-top));right:10px;width:38px;height:38px;min-width:38px;z-index:1}
  .erp-mobile-menu svg,.erp-mobile-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top{
    position:sticky!important;top:0!important;z-index:80!important;min-height:64px!important;height:auto!important;
    margin:0 -12px 14px!important;padding:max(8px,env(safe-area-inset-top)) 12px 8px!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .top-left{flex:1 1 160px!important;gap:10px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .top-left :is(.erp-sidebar-toggle,.top-crumb){display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-title{display:block!important;font-size:16px!important;font-weight:600;color:var(--ui-text,#172033);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #erpLicenseButton{margin-left:0!important;max-width:100%;min-height:40px!important;white-space:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.page{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-mobile-table-wrap,.erp-mobile-scroll){min-width:0!important;max-width:100%!important;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-scroll>table{max-width:none}

  /* Overview and analysis: let panels shrink; keep figures readable. */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#dashboard,#finance,#click-ads,#profit-calculator) :is(.screen-main-grid,.screen-main-grid-rightside,.finance-grid-main,.finance-v3278-boards,.ca-owner-board,.ca-conversion-grid,.profit-top-grid-v3249){grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-trend-card-main,.screen-side-stack-right,.screen-main-grid>.screen-side-stack){width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-card,.screen-chart-wrap,.dash-chart-wrap,.finance-section,.finance-card,.ca-ref-card,.profit-tool-card-v3249){min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#dashboard,#finance,#click-ads,#returns) :is(.screen-metric-grid,.finance-kpis,.finance-v3278-metrics,.finance-v3278-all-metrics,.ca-ref-kpis,.ca-owner-kpis,.click-ads-kpis,.returns-kpis-v3300){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-overview-heading,.erp-v2-page-heading,.mg-heading,.panel-head,.screen-card-head,.returns-head-v3300,.lc-heading,.office-toolbar){flex-wrap:wrap!important;gap:12px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-metric,.ca-ref-kpi,.finance-v3278-metric,.returns-kpi-v3300){min-width:0!important;padding:14px 12px!important;overflow-wrap:anywhere}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-card-head,.panel-head)>div{min-width:0;max-width:100%}

  /* Touch-friendly filters and actions, including controls inside native dialogs. */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.dash-filter-row,.toolbar-filters,.finance-filters,.finance-filter-row,.ca-ref-filter-row,.returns-toolbar-v3300,.office-filter,.lc-filter){display:flex!important;flex-wrap:wrap!important;gap:10px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.toolbar-filters,.dash-filter-row,.finance-filters,.finance-filter-row,.ca-ref-filter-row,.returns-toolbar-v3300,.office-filter,.lc-filter)>:is(input,select,.erp-clear-field,label,.field,.dash-field,.finance-field,.ca-ref-field,.returns-field-v3300,.returns-search-v3300,.erp-select-host){flex:1 1 190px!important;min-width:0!important;max-width:100%!important;width:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.toolbar,.dash-field,.finance-field,.ca-ref-field,.returns-field-v3300,.office-filter,.lc-filter) :is(input,select,.erp-select-host){min-width:0!important;max-width:100%!important}
  /* 订单中心日期范围：移动端单独占行，避免桌面端 284px 固定宽度挤出屏幕。 */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .toolbar-filters>.order-date-filter{
    display:flex!important;flex:1 1 100%!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .toolbar-filters>.order-date-filter>span{display:block!important;flex:none!important;line-height:1.4!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #orderDateRange{
    display:flex!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
    height:46px!important;min-height:46px!important;box-sizing:border-box!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #orderDateRange input{height:44px!important;min-height:44px!important;font-size:16px!important;padding:4px 6px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #orderDateRange>button{flex:0 0 34px!important;width:34px!important;height:44px!important;min-height:44px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.toolbar,.toolbar-top,.toolbar-actions,.shop-head-actions,.office-actions,.office-filter,.lc-actions,.lc-simple-toolbar,.pm-footer,.pc-toolbar,.order-pagination,.returns-pagination-v3300){position:static!important;flex-wrap:wrap!important;min-width:0!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.order-shell,.returns-shell-v3300,.profit-shell-v3249){padding:0!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products{padding:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-app .pm-shell{padding:12px!important;min-height:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-app .pm-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-app .pm-toolbar :is(input,select,.erp-select-host){width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-app :is(.pm-toolbar-end,.pm-batchbar){flex-wrap:wrap!important;gap:8px!important;margin-left:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-app .pm-batch-menu{max-width:calc(100vw - 48px)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-shell{margin:0!important;padding:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app :is(.pc-filter-main,.pc-filter-status,.pc-filter-detail){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app :is(.pc-field,.pc-date-filter){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-date-filter{grid-column:1/-1}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .pc-field>.erp-select-host{width:100%!important;flex:auto!important;height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#products,#orders,#procurement,#accounts,#license-codes,#finance,#capital-fund,#dashboard,#click-ads,#returns,#profit-calculator,.modal-mask,dialog,#authGate) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea):not(.erp-pagination input):not(.erp-pagination select){font-size:16px!important;min-height:44px!important;max-width:100%;min-width:0;box-sizing:border-box;scroll-margin:80px 0}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app :is(.pc-field input,.pc-field select,.pc-date-range input){font-size:16px!important;height:44px!important;min-height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-select-host,.erp-select-trigger,.erp-choice,.erp-choice-trigger){height:44px!important;min-height:44px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-select-trigger,.erp-select-option,.erp-choice-trigger,.erp-choice-option){font-size:15px!important;min-height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.btn,.erp-btn,.pm-btn,.pc-toolbar button,.pc-row-actions button,.lc-actions button,.lc-row-actions button,.office-row-actions button,.mini-fill-btn,.order-toolbar-btn,.dash-system-btn,.dash-range-system-btn,.finance-range-btn,.finance-quick button,.returns-range-v3300 button,.returns-refresh-v3300,.ret-detail-btn-v3300){min-height:40px!important;height:auto!important;touch-action:manipulation}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 input:is([type=checkbox],[type=radio]){width:20px!important;height:20px!important;min-height:20px!important;accent-color:var(--ui-accent,var(--theme-accent))}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#pm-app .pm-tabs,#statusQuickRow,.dash-quick-range,.finance-quick,.returns-range-v3300){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%!important;gap:12px!important;padding-bottom:6px!important;scrollbar-width:thin;overscroll-behavior-x:contain}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#pm-app .pm-tabs,#statusQuickRow,.dash-quick-range,.finance-quick,.returns-range-v3300)>*{flex:none!important;white-space:nowrap!important;min-height:40px;align-content:center}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-date-range,.dash-date-box,.finance-date-range,#procurement #procurement-app .pc-date-range){height:46px!important;min-height:46px!important;width:100%!important;max-width:340px!important;flex-basis:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-date-range,.dash-date-box,.finance-date-range,#procurement #procurement-app .pc-date-range) input{flex:1!important;width:0!important;min-width:0!important;padding:4px!important}

  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance .finance-date-field{display:flex!important;flex-direction:column!important;align-items:flex-start!important;flex:1 1 100%!important;min-width:0!important;width:100%!important;gap:6px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #finance .finance-date-field .finance-date-range{width:100%!important;max-width:340px!important;flex:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-app :is(.pm-copy,.pm-price .pm-link-btn,.pm-stock .pm-link-btn){min-height:30px!important;min-width:28px!important;touch-action:manipulation}
  /* Legacy overlays and native dialogs use the available viewport, including keyboards. */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog){zoom:1!important;transform:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask{padding:12px!important;align-items:center!important;max-height:100dvh;overflow:auto;overscroll-behavior:contain}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask>.modal,dialog.pc-dialog,dialog.lc-dialog,dialog.office-dialog,#pm-dialog){width:calc(100vw - 24px)!important;min-width:0!important;max-width:680px!important;max-height:calc(var(--erp-visible-height,100dvh) - 24px)!important;overflow:auto!important;border-radius:14px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.pc-dialog,.lc-dialog,.office-dialog){padding:18px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-body,.pm-dialog-body){padding:16px!important;max-height:none!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-head,.pm-dialog-head,.pm-editor-head){padding:14px 16px!important;gap:10px!important;min-height:58px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head,#pm-dialog .pm-dialog-head,#pm-editor .pm-dialog-head):not(:has(.lc-issue-emblem)):not([data-erp-custom-heading]){padding-left:72px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head,#pm-dialog .pm-dialog-head,#pm-editor .pm-dialog-head):not(:has(.lc-issue-emblem)):not([data-erp-custom-heading])::before{left:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask .modal-head,#pm-dialog .pm-dialog-head,#pm-editor .pm-dialog-head):not(:has(.lc-issue-emblem)):not([data-erp-custom-heading])::after{left:27px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-close,.office-close,.pm-icon-btn[data-close],.pc-dialog [data-pc-close],.lc-dialog [data-lc-close]){flex-shrink:0!important;min-width:36px!important;min-height:36px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.purchase-grid,.pc-edit-grid,.office-form-grid,.lc-grid,.lc-issue-layout,.account-password-grid-v316,.return-detail-grid-v3300){grid-template-columns:minmax(0,1fr)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.purchase-grid,.pc-edit-grid,.office-form-grid,.lc-grid)>*{min-width:0!important;grid-column:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-dialog-actions,.pm-dialog-footer,.pm-editor-footer,.pc-dialog footer,.lc-dialog footer,.office-dialog footer,.system-confirm-actions){flex-wrap:wrap!important;gap:10px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#pm-editor,dialog.rc-dialog){width:calc(100vw - 16px)!important;max-width:100%!important;min-width:0!important;height:calc(var(--erp-visible-height,100dvh) - 16px)!important;max-height:calc(var(--erp-visible-height,100dvh) - 16px)!important;margin:auto!important;border-radius:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-editor-scroll{padding:14px!important;min-width:0!important;min-height:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-anchor-nav{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-form-row{display:block!important;margin-bottom:20px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-form-label{width:auto!important;text-align:left!important;padding:0 0 7px!important;flex:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor :is(.pm-editor-content,.pm-form-control,.pm-rich-card){min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor :is(.pm-editor-footer,.pm-editor-head){padding:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-save-actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-calendar{max-width:calc(100vw - 20px)!important;max-height:calc(var(--erp-visible-height,100dvh) - 24px)!important;overscroll-behavior:contain}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.toast,#pm-toast){max-width:calc(100vw - 24px)!important;overflow-wrap:anywhere;top:max(16px,env(safe-area-inset-top))!important;bottom:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #authGate{overflow:auto!important;overscroll-behavior:contain;height:var(--erp-visible-height,100dvh)!important;max-height:var(--erp-visible-height,100dvh)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .auth-shell{width:100%!important;grid-template-columns:minmax(0,1fr)!important;min-height:100dvh!important;height:auto!important;max-height:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .auth-panel{padding:18px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .auth-card{max-width:440px!important;width:100%!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .auth-hero{display:none!important}

  /* The keyboard changes the visible viewport's origin as well as its height. */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3:has(:is(.modal-mask.show,dialog[open])){overflow:hidden!important;overscroll-behavior:none}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask{
    position:fixed!important;inset:auto!important;top:var(--erp-visible-top,0px)!important;left:var(--erp-visible-left,0px)!important;
    width:var(--erp-visible-width,100vw)!important;height:var(--erp-visible-height,100dvh)!important;max-height:var(--erp-visible-height,100dvh)!important;
    box-sizing:border-box!important;overflow:hidden!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask>.modal{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;max-height:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .modal-head{flex:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask .modal-body{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 dialog[open]{
    position:fixed!important;inset:auto!important;top:calc(var(--erp-visible-top,0px) + 12px)!important;
    left:var(--erp-visible-left,0px)!important;right:calc(100vw - var(--erp-visible-left,0px) - var(--erp-visible-width,100vw))!important;
    margin:0 auto!important;max-width:calc(var(--erp-visible-width,100vw) - 24px)!important;max-height:calc(var(--erp-visible-height,100dvh) - 24px)!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-dialog{overflow:hidden!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-dialog>form{display:flex!important;flex-direction:column!important;min-height:0!important;max-height:calc(var(--erp-visible-height,100dvh) - 28px)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-dialog .pm-dialog-body{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-dialog :is(.pm-dialog-head,.pm-dialog-footer){flex:none!important}
  /* Keep purchase actions reachable while only the fields scroll. */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #purchaseMask .modal-body{display:flex!important;padding:0!important;overflow:hidden!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #purchaseForm{display:flex!important;flex-direction:column!important;min-height:0!important;width:100%!important;overflow:hidden!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #purchaseForm .purchase-grid{padding:16px!important;overflow-y:auto!important;min-height:0!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #purchaseForm .erp-dialog-actions{flex:none!important;margin:0!important;padding:12px 16px!important;border-top:1px solid var(--ui-border)!important;background:var(--ui-surface,#fff)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) :is(input,select,textarea){scroll-margin:12px!important}
}

@media(max-width:640px){
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-filter-panel{display:block!important;margin-bottom:12px;min-width:0;max-width:100%;border:1px solid var(--ui-border,#e0e8ef);border-radius:10px;background:var(--ui-surface,#fff)}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-filter-summary{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;gap:8px!important;min-height:46px;padding:10px 12px;cursor:pointer;list-style:none;font-size:13px;color:var(--ui-text,#172033)}
  .erp-mobile-filter-summary::-webkit-details-marker{display:none}
  .erp-mobile-filter-summary svg{flex:0 0 18px!important;display:block!important;margin:0!important;padding:0!important;width:18px!important;height:18px!important;fill:none;stroke:var(--ui-accent,#20aec2);stroke-width:1.8;stroke-linecap:round}
  .erp-mobile-filter-summary>span{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;white-space:nowrap!important;text-align:left!important;font-size:13px!important}
  .erp-mobile-filter-summary::after{content:'展开';flex:0 0 auto!important;display:block!important;white-space:nowrap!important;width:auto!important;margin-left:auto!important;font-size:12px;color:var(--ui-accent,#20aec2)}
  .erp-mobile-filter-panel[open]>.erp-mobile-filter-summary::after{content:'收起'}
  .erp-mobile-filter-panel[open]>.erp-mobile-filter-summary{border-bottom:1px solid var(--ui-border-soft,#edf1f6);margin-bottom:10px}
  .erp-mobile-filter-panel[open]>:not(summary){margin:0!important;padding:12px!important;box-sizing:border-box;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :where(#products #pm-app,#procurement #procurement-app,#orders,#returns,#shops,#accounts,#license-codes,#pm-editor) .erp-mobile-table-wrap{max-height:none!important;min-height:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :where(#products #pm-app,#procurement #procurement-app,#orders,#returns,#shops,#accounts,#license-codes,#pm-editor) table[data-erp-mobile-table]{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;border:0!important;background:transparent!important;table-layout:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table]>colgroup{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table]>thead{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-mobile-has-selection]>thead{position:static!important;display:block!important;clip-path:none;width:100%!important;height:auto!important;overflow:visible!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-mobile-has-selection]>thead>tr{display:flex!important;align-items:center;flex-wrap:wrap;gap:10px}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-mobile-has-selection]>thead th{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-mobile-has-selection]>thead th[data-mobile-select-all]{display:flex!important;align-items:center;gap:10px;position:static!important;flex:1;width:auto!important;min-width:0!important;max-width:100%!important;padding:12px 4px!important;border:0!important;box-shadow:none!important;background:transparent!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-mobile-has-selection]>thead th[data-mobile-select-all]::after{content:'全选本页'!important;display:block!important;position:static!important;width:auto!important;height:auto!important;background:none!important;color:var(--ui-text,#172033)!important;font-size:13px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-mobile-has-selection]>thead th[data-mobile-header-action]{display:flex!important;align-items:center;position:static!important;width:auto!important;min-width:0!important;padding:8px 4px!important;border:0!important;background:transparent!important;box-shadow:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-mobile-has-selection]>thead th[data-mobile-header-action]::after{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table]>tbody{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :where(#products #pm-app,#procurement #procurement-app,#orders,#returns,#shops,#accounts,#license-codes,#pm-editor) table[data-erp-mobile-table]>tbody>tr{
    position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
    min-width:0!important;width:100%!important;max-width:100%!important;padding:16px!important;height:auto!important;
    border:1px solid var(--ui-border,#e2e8ef)!important;border-radius:12px!important;background:var(--ui-surface,#fff)!important;
    box-shadow:0 3px 12px #18304405!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :where(#products #pm-app,#procurement #procurement-app,#orders,#returns,#shops,#accounts,#license-codes,#pm-editor) table[data-erp-mobile-table]>tbody>tr>td{
    display:block!important;min-width:0!important;width:auto!important;max-width:100%!important;height:auto!important;
    position:static!important;padding:0!important;border:0!important;text-align:left!important;white-space:normal!important;
    overflow-wrap:anywhere!important;box-shadow:none!important;background:transparent!important;font-size:13px!important;line-height:1.6!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table] td[data-mobile-label]::before{content:attr(data-mobile-label);display:block;margin:0 0 4px;font-size:12px;font-weight:500;line-height:1.5;color:var(--ui-label,#253344)}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table] td:is([data-mobile-field=shop],[data-mobile-field=select],[data-mobile-field=product],[data-mobile-field=image],[data-mobile-field=actions])::before{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table] td:is([data-mobile-field=shop],[data-mobile-field=person],[data-mobile-field=product],[data-mobile-field=number],[data-mobile-field=tracking],[data-mobile-field=actions]){grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table] td[data-mobile-field=shop]{padding-right:28px!important;font-weight:600!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table] td[data-mobile-field=select]{position:absolute!important;right:14px!important;top:14px!important;z-index:1!important;width:24px!important;min-width:24px!important;max-width:24px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table] td[data-mobile-field=actions]{padding-top:10px!important;border-top:1px solid var(--ui-border-soft,#edf1f6)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table] tr[data-mobile-empty]>td{grid-column:1/-1!important;padding:18px 4px!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-mobile-table] :is(.pm-actions,.pc-row-actions,.lc-row-actions,.office-row-actions){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 table[data-erp-mobile-table] :is(.pm-actions,.pc-row-actions,.lc-row-actions,.office-row-actions)>button{flex:1 1 90px!important;min-height:40px!important;width:auto!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#products #pm-app .pm-product,#procurement #procurement-app .pc-product,.ret-product-v3300){gap:10px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#products #pm-app .pm-price,#products #pm-app .pm-status-cell .pm-status){justify-content:flex-start!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app :is(.pm-photo,.pm-placeholder){width:68px!important;height:68px!important;flex:0 0 68px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-product-name{font-size:14px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app :is(.pm-meta,.pm-price-lines){font-size:12px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table]>tbody>tr{grid-template-columns:76px minmax(0,1fr)!important;gap:12px 10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table]>tbody>tr>td{grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=image]{grid-column:1!important;grid-row:3!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=product]{grid-column:2!important;grid-row:3!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=shop]{display:flex!important;align-items:center!important;gap:8px!important;grid-row:1!important;padding-right:40px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=posting]{grid-row:2!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=posting]::before{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] tr:not([data-mobile-expanded=true])>td[data-mobile-detail]{display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] :is(.center-wrap,.legacy-cell-lines){min-width:0!important;min-height:0!important;align-items:flex-start!important;text-align:left!important;justify-content:flex-start!important;white-space:normal!important;height:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] .source-single-line{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] .source-single-line>:is(.source-url-link,span:last-child:not(:first-child)){display:block!important;flex:1 1 0%!important;width:0!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] .center-wrap{flex:1;overflow-wrap:anywhere}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] .legacy-thumb{width:72px!important;height:72px!important;max-width:72px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .erp-mobile-row-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:none;min-height:34px;padding:4px 8px;border:1px solid var(--ui-border,#e0e6ef);border-radius:7px;background:var(--ui-accent-soft,#edf8fb);color:var(--ui-accent,#168da5);font-family:inherit;font-size:12px;line-height:1.4;cursor:pointer;white-space:nowrap}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#license-codes,#accounts) table[data-erp-mobile-table] td:first-child{grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #license-codes table[data-erp-mobile-table] code{display:block;max-width:100%;max-height:4.8em;overflow:auto;white-space:normal!important;word-break:break-all!important;font-size:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.office-note,.lc-customer-note){max-width:100%!important;white-space:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app :is(.pc-filter-main,.pc-filter-status,.pc-filter-detail){grid-template-columns:minmax(0,1fr)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-app .pm-toolbar{grid-template-columns:minmax(0,1fr)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.office-filter,.lc-filter,.toolbar-filters)>:is(input,select,.erp-clear-field,.erp-select-host){flex-basis:100%!important;width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .toolbar-filters>.order-date-filter{flex-basis:100%!important;width:100%!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #orderDateRange{width:100%!important;max-width:100%!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.finance-quick,.dash-quick-range,.returns-range-v3300){width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog .rc-layout{display:flex!important;flex-direction:column!important;overflow:auto!important;min-height:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog :is(.rc-library,.rc-properties){overflow:visible!important;width:100%!important;min-width:0!important;padding:14px!important;flex:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog .rc-library{display:block!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog .rc-library>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog .rc-library :is(.rc-upload-add,.rc-storage-button){width:100%!important;margin-bottom:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog .rc-workspace{min-height:300px!important;flex:none!important;order:1}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog .rc-properties{order:2}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog :is(.rc-scroll,[data-rc-canvas]){min-width:0!important;padding:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog :is(header,footer,.rc-toolbar){flex-wrap:wrap!important;gap:8px!important;padding:12px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog>footer{display:flex!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog>footer>button{flex:1 1 100px!important;white-space:normal!important;min-height:40px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rc-dialog>footer [data-rc-message]{flex-basis:100%!important;order:1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.shop-head-actions,.office-actions,.lc-actions){width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.shop-head-actions,.office-actions,.lc-actions)>button{flex:1 1 120px!important}
}

@media(prefers-reduced-motion:reduce){
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .app>.side{transition:none!important}
}

}

/* ===== profit.css ===== */
/* Presentation only. The calculator keeps its existing fields, events and formulae. */
@layer erpComponents {
  html body.erp-system-ui #profit-calculator .profit-tool-card-v3249{padding:16px!important;border-color:var(--ui-border)!important;box-shadow:none!important;gap:14px!important}
  html body.erp-system-ui #profit-calculator :is(.profit-tool-head-v3249 span,.profit-detail-title-v3249 span){font-size:12px!important;line-height:1.6!important}
  html body.erp-system-ui #profit-calculator :is(.profit-primary-btn-v3249,.profit-secondary-btn-v3249,.profit-reset-btn-v3249,.profit-danger-btn-v3249){min-height:38px!important;height:auto!important;font-size:13px!important;padding:8px 14px!important}
  html body.erp-system-ui #profit-calculator .profit-inline-action-v3249 input{height:38px!important;font-size:14px!important}
  html body.erp-system-ui #profit-calculator .profit-segment-v3249{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:4px!important;gap:4px!important;border-radius:10px!important}
  html body.erp-system-ui #profit-calculator .profit-segment-v3249 button{height:34px!important;font-size:12px!important;min-width:0!important;padding:0 12px!important}
  html body.erp-system-ui #profit-calculator .profit-table-card-v3249{border:1px solid var(--ui-border)!important;box-shadow:none!important;border-radius:12px!important}
  html body.erp-system-ui #profit-calculator .profit-table-scroll-v3249{overflow:auto!important;max-width:100%!important}
  html body.erp-system-ui #profit-calculator .profit-table-v3249{min-width:1360px!important}
  html body.erp-system-ui #profit-calculator .profit-table-v3249 :is(th,td){padding:10px 6px!important;font-size:12px!important}
  html body.erp-system-ui #profit-calculator .profit-table-v3249 th{background:#f7f9fc!important;color:var(--ui-text)!important;font-weight:600!important}
  html body.erp-system-ui #profit-calculator .profit-cell-input-v3249{height:36px!important;font-size:13px!important;border-radius:7px!important;background:var(--ui-field-surface)!important}
  html body.erp-system-ui #profit-calculator .profit-output-v3249{font-size:13px!important;font-variant-numeric:tabular-nums}
  html body.erp-system-ui #profit-calculator .profit-offer-v3249 code{font-size:11px!important;line-height:1.5!important}
  html body.erp-system-ui #profit-calculator :is(.profit-copy-btn-v3249,.profit-delete-btn-v3249){height:30px!important;font-size:12px!important;padding:0 10px!important}
  html body.erp-system-ui #profit-calculator :is(button,input):focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:2px!important}
  html body.erp-system-ui #profit-calculator :is(.profit-config-tabs-v3249,.profit-config-actions-v3249){flex-shrink:0!important}
  html body.erp-system-ui #profit-calculator .profit-config-body-v3249{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html body.erp-system-ui #profit-calculator :is(.profit-config-section-title-v3249 span,.profit-shipping-toolbar-v3249 span,.profit-bracket-title-v3249 span,.profit-setting-grid-v3249 label>small){font-size:12px!important;line-height:1.5!important}
  html body.erp-system-ui #profit-calculator :is(.profit-bracket-inputs-v3249 label>span,.profit-setting-grid-v3249 label>span,.profit-config-tabs-v3249 button){font-size:13px!important}
  html body.erp-system-ui #profit-calculator .profit-table-foot-v3249{font-size:12px!important;padding:12px 16px!important}

  @media(max-width:900px){
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-tool-card-v3249{min-height:0!important;padding:14px!important;gap:12px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-tool-head-v3249{align-items:flex-start!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-tool-head-v3249>div>span{display:none!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-tool-card-v3249:first-child{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-inline-action-v3249{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-batch-action-v3249{grid-template-columns:minmax(60px,1fr) auto auto!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator :is(.profit-primary-btn-v3249,.profit-secondary-btn-v3249,.profit-reset-btn-v3249,.profit-danger-btn-v3249,.profit-copy-btn-v3249,.profit-delete-btn-v3249){min-height:44px!important;height:auto!important;font-size:13px!important;box-shadow:none!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-detail-head-v3249{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-mode-wrap-v3249{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:100%!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-segment-v3249{width:100%!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-segment-v3249 button{min-height:44px!important;height:auto!important;font-size:13px!important;padding:6px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-table-card-v3249{overflow:visible!important;background:transparent!important;border:0!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-table-scroll-v3249{overflow:visible!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-table-v3249{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important;border:0!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-table-v3249>thead{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;counter-reset:profit-product}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249>tr{position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 12px!important;padding:16px!important;min-width:0!important;width:100%!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;background:var(--ui-surface)!important;counter-increment:profit-product}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249>tr:not([data-mobile-empty])::before{content:'商品 ' counter(profit-product);grid-column:1/-1;font-size:14px;font-weight:600;color:var(--ui-text);padding-bottom:10px;border-bottom:1px solid var(--ui-border-soft)}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249>tr>td{display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;padding:0!important;text-align:left!important;border:0!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249 td[data-mobile-label]::before{content:attr(data-mobile-label);display:block!important;color:#607186!important;font-size:12px!important;line-height:1.5!important;margin-bottom:6px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249 td[data-mobile-field=logistics]{grid-column:1/-1!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249 td:is([data-mobile-field=profit],[data-mobile-field=profitRate]){padding:12px!important;border-radius:8px!important;background:#f1f8f7!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-cell-input-v3249{width:100%!important;text-align:left!important;padding:0 10px!important;height:44px!important;font-size:16px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-output-v3249{display:inline-block!important;font-size:16px!important;line-height:1.8!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249 [data-k=profit]{font-size:21px!important;font-weight:700!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-bracket-badge-v3249{font-size:12px!important;white-space:normal!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249 td[data-mobile-field=offer]{grid-column:1/-1!important;padding-top:12px!important;border-top:1px solid var(--ui-border-soft)!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-offer-v3249{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-offer-v3249 code{font-size:13px!important;min-width:0!important;text-align:left!important;overflow-wrap:anywhere!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-offer-v3249 button{flex-shrink:0!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249 td[data-mobile-field=actions]{grid-column:1/-1!important;text-align:right!important;padding-top:8px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249 td[data-mobile-field=actions]::before{display:none!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitRowsV3249 tr[data-mobile-empty]>td{grid-column:1/-1!important;padding:20px 0!important;text-align:center!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profit-calculator .profit-table-foot-v3249{background:transparent!important;border:0!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-config-modal-v3249{width:100%!important;max-width:680px!important;max-height:100%!important;overflow:hidden!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-config-tabs-v3249{margin:10px 12px 0!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-config-tabs-v3249 button{min-height:44px!important;height:auto!important;font-size:12px!important;padding:4px!important;white-space:normal!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-config-body-v3249{padding:12px!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-config-section-v3249{padding:12px!important;min-width:0!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 :is(.profit-config-section-title-v3249,.profit-shipping-toolbar-v3249){flex-direction:column!important;align-items:stretch!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 :is(.profit-config-section-title-v3249 em,.profit-config-section-v3249 .erp-select-host){min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;height:auto!important;white-space:normal!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 :is(.profit-bracket-grid-v3249,.profit-setting-grid-v3249,.profit-setting-grid-one-v3249){grid-template-columns:minmax(0,1fr)!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-bracket-title-v3249{flex-wrap:wrap!important;gap:6px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-bracket-title-v3249 span{text-align:left!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-unit-input-v3249{height:46px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-config-actions-v3249{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto!important;gap:6px!important;padding:10px 12px!important}
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #profitConfigMaskV3249 .profit-config-actions-v3249 button{padding:8px 6px!important;min-width:0!important;white-space:normal!important}
  }
}
/* Refusal is a completed delivery outcome, not a pending settlement. */
body.erp-system-ui .finance-v3275-status.refused{
  color:var(--erp-danger,#dc4655)!important;
  background:color-mix(in srgb,var(--erp-danger,#dc4655) 10%,var(--surface,#fff))!important;
  border-color:color-mix(in srgb,var(--erp-danger,#dc4655) 28%,transparent)!important;
}

html body.erp-system-ui #financeFeeDetailMaskV3307 .finance-fee-money-card-v3307.refusal>small{
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.55!important;
}

@layer erpColorMode.overrides {
  html body.erp-system-ui .finance-v3275-status:is(.returned,.return_pending) {
    color:var(--ui-text,#27354b)!important;
    background:var(--ui-accent-soft,#e5f1ff)!important;
    border-color:var(--ui-border,#d7e1ef)!important;
  }
}

/* The cumulative order card keeps page scrolling while its white header and
 * pagination follow the same rounded outline as the other finance cards. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #finance .finance-erp-card.finance-easy-orders-card {border-radius:var(--workspace-radius,var(--ui-card-radius,10px))!important;}
 html body.erp-system-ui #finance .finance-easy-orders-card > .finance-card-head {border-top-left-radius:inherit!important;border-top-right-radius:inherit!important;}
 html body.erp-system-ui #finance .finance-easy-orders-card > .finance-order-pagination-v3308 {border-bottom-left-radius:inherit!important;border-bottom-right-radius:inherit!important;}
}

/* Profit calculator and its configuration use the current ERP components. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #profit-calculator .profit-shell-v3249 {gap:16px!important;padding:0!important;}
 html body.erp-system-ui #profit-calculator .profit-heading-v447 {gap:12px!important;margin-bottom:0!important;}
 html body.erp-system-ui #profit-calculator .profit-heading-v447 h2 {font-size:18px!important;font-weight:600!important;color:var(--ui-text)!important;}
 html body.erp-system-ui #profit-calculator .profit-heading-v447 p {font-size:12px!important;color:var(--ui-text-muted,#7b8798)!important;line-height:1.6!important;}
 html body.erp-system-ui #profit-calculator .profit-top-grid-v3249 {gap:14px!important;}
 html body.erp-system-ui #profit-calculator .profit-tool-card-v3249 {display:flex!important;flex-direction:column!important;gap:16px!important;min-width:0!important;padding:16px!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-card-radius,10px)!important;background:var(--ui-surface)!important;box-shadow:var(--workspace-shadow,none)!important;}
 html body.erp-system-ui #profit-calculator .profit-tool-head-v3249 {gap:12px!important;align-items:center!important;}
 html body.erp-system-ui #profit-calculator .profit-tool-head-v3249 b {font-size:14px!important;font-weight:600!important;color:var(--ui-text)!important;}
 html body.erp-system-ui #profit-calculator .profit-tool-head-v3249 > div > span {display:block!important;margin-top:4px!important;color:var(--ui-text-muted,#7b8798)!important;font-size:12px!important;line-height:1.6!important;}
 html body.erp-system-ui #profit-calculator .profit-tool-icon-v3249 {flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:10px!important;color:#7c3aed!important;background:color-mix(in srgb,currentColor 8%,var(--ui-surface))!important;}
 html body.erp-system-ui #profit-calculator .profit-tool-icon-v3249 svg {width:21px!important;height:21px!important;stroke-width:1.7!important;}
 html body.erp-system-ui #profit-calculator .profit-prefix-icon-v3249 {color:#2563eb!important;}
 html body.erp-system-ui #profit-calculator .profit-add-icon-v3249 {color:#16a34a!important;}
 html body.erp-system-ui #profit-calculator .profit-inline-action-v3249 {gap:8px!important;margin-top:auto!important;}
 html body.erp-system-ui #profit-calculator .profit-detail-head-v3249 {gap:14px!important;padding:14px 16px!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-card-radius,10px)!important;background:var(--ui-surface)!important;}
 html body.erp-system-ui #profit-calculator .profit-detail-title-v3249 b {font-size:14px!important;color:var(--ui-text)!important;}
 html body.erp-system-ui #profit-calculator .profit-detail-title-v3249 span {font-size:12px!important;color:var(--ui-text-muted,#7b8798)!important;}
 html body.erp-system-ui #profit-calculator :is(.profit-primary-btn-v3249,.profit-secondary-btn-v3249,.profit-reset-btn-v3249,.profit-danger-btn-v3249,.profit-copy-btn-v3249,.profit-delete-btn-v3249,.profit-segment-v3249 button,.profit-config-tabs-v3249 button) {
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:34px!important;height:auto!important;padding:6px 11px!important;
  border:1px solid var(--ui-button-line,var(--ui-border))!important;border-radius:var(--ui-control-radius,7px)!important;background:var(--ui-button-fill,var(--ui-surface))!important;color:var(--ui-button-text,var(--ui-label))!important;-webkit-text-fill-color:currentColor!important;
  font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:1.4!important;white-space:nowrap!important;cursor:pointer!important;box-shadow:none!important;filter:none!important;transform:none!important;transition:background-color var(--ui-motion,.12s),border-color var(--ui-motion,.12s),color var(--ui-motion,.12s)!important;
 }
 html body.erp-system-ui #profit-calculator :is(.profit-primary-btn-v3249,.profit-secondary-btn-v3249,.profit-reset-btn-v3249,.profit-danger-btn-v3249,.profit-copy-btn-v3249,.profit-delete-btn-v3249,.profit-segment-v3249 button,.profit-config-tabs-v3249 button):hover:not(:disabled) {background:var(--ui-button-hover-fill,var(--ui-accent-soft))!important;border-color:var(--ui-button-hover-line,var(--ui-accent))!important;color:var(--ui-button-hover-text,var(--ui-label))!important;box-shadow:none!important;filter:none!important;}
 html body.erp-system-ui #profit-calculator button:focus-visible {outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;box-shadow:none!important;}
 html body.erp-system-ui #profit-calculator button:disabled {opacity:.5!important;cursor:not-allowed!important;box-shadow:none!important;}
 html body.erp-system-ui #profit-calculator :is(.profit-copy-btn-v3249,.profit-delete-btn-v3249) {min-height:24px!important;padding:3px 6px!important;font-size:11px!important;gap:4px!important;}
 html body.erp-system-ui #profit-calculator :is(.profit-copy-btn-v3249,.profit-delete-btn-v3249)::before {content:""!important;display:inline-block!important;box-sizing:border-box!important;width:12px!important;height:12px!important;flex:0 0 12px!important;margin:0!important;pointer-events:none!important;background:currentColor!important;mask:var(--erp-static-action-icon) center/contain no-repeat!important;-webkit-mask:var(--erp-static-action-icon) center/contain no-repeat!important;}
 html body.erp-system-ui #profit-calculator .profit-segment-v3249 {gap:4px!important;padding:4px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-field-surface)!important;}
 html body.erp-system-ui #profit-calculator :is(.profit-inline-action-v3249 > input,.profit-cell-input-v3249) {height:36px!important;border-color:var(--ui-border)!important;border-radius:var(--ui-control-radius,7px)!important;background:var(--ui-field-surface)!important;color:var(--ui-field-text,var(--ui-text))!important;font-family:inherit!important;font-size:13px!important;}
 html body.erp-system-ui #profit-calculator :is(.profit-inline-action-v3249 > input,.profit-cell-input-v3249):focus {border-color:var(--ui-accent)!important;outline:none!important;box-shadow:var(--ui-focus-ring)!important;}
 html body.erp-system-ui #profitConfigMaskV3249 > .profit-config-modal-v3249 {width:min(880px,calc(100vw - 32px))!important;max-width:880px!important;max-height:calc(100dvh - 36px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:var(--ui-dialog-radius,12px)!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-config-head-v3249 b {font-size:17px!important;color:var(--ui-text)!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-config-tabs-v3249 {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;margin:12px 16px 0!important;padding:4px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-field-surface)!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-config-body-v3249 {min-height:0!important;padding:16px!important;overflow:auto!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-config-section-v3249 {min-width:0!important;padding:16px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-surface)!important;box-shadow:none!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-config-section-title-v3249 {gap:12px!important;margin-bottom:14px!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-config-section-title-v3249 b {display:inline-flex!important;align-items:center!important;gap:7px!important;color:var(--ui-text)!important;font-size:13px!important;line-height:1.5!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-section-icon {width:17px!important;height:17px!important;flex:0 0 17px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;color:var(--profit-section-ink,var(--ui-accent))!important;}
 html body.erp-system-ui #profitConfigMaskV3249 [data-panel="commission"] {--profit-section-ink:#d97706;}
 html body.erp-system-ui #profitConfigMaskV3249 [data-panel="listing"] {--profit-section-ink:#7c3aed;}
 html body.erp-system-ui #profitConfigMaskV3249 [data-panel="fixed"] {--profit-section-ink:#16a34a;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-bracket-grid-v3249 {gap:12px!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-bracket-card-v3249 {padding:12px!important;border:1px solid var(--ui-border-soft)!important;border-radius:8px!important;background:var(--ui-field-surface)!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-bracket-title-v3249 {gap:8px!important;line-height:1.6!important;margin-bottom:10px!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-bracket-inputs-v3249 {gap:10px!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-unit-input-v3249 {height:38px!important;border-color:var(--ui-border)!important;border-radius:7px!important;background:var(--ui-field-surface)!important;}
 html body.erp-system-ui #profitConfigMaskV3249 .profit-config-actions-v3249 {display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:12px 16px!important;border-top:1px solid var(--ui-border)!important;background:var(--ui-surface)!important;}
 html[data-erp-mode="dark"] body.erp-system-ui #profit-calculator .profit-tool-icon-v3249 {color:#c4b5fd!important;}
 html[data-erp-mode="dark"] body.erp-system-ui #profit-calculator .profit-prefix-icon-v3249 {color:#93c5fd!important;}
 html[data-erp-mode="dark"] body.erp-system-ui #profit-calculator .profit-add-icon-v3249 {color:#86efac!important;}
 @media(max-width:700px) {
  html body.erp-system-ui #profit-calculator .profit-tool-card-v3249 {padding:14px!important;gap:12px!important;}
  html body.erp-system-ui #profit-calculator .profit-detail-head-v3249 {padding:12px!important;}
  html body.erp-system-ui #profit-calculator :is(.profit-primary-btn-v3249,.profit-secondary-btn-v3249,.profit-reset-btn-v3249,.profit-danger-btn-v3249,.profit-segment-v3249 button) {min-height:38px!important;}
  html body.erp-system-ui #profit-calculator .profit-segment-v3249 button {gap:4px!important;padding:6px!important;}
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-tabs-v3249 {margin:10px 12px 0!important;}
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-tabs-v3249 button {min-height:40px!important;padding:6px 4px!important;font-size:12px!important;gap:4px!important;}
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-body-v3249 {padding:12px!important;}
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-section-v3249 {padding:12px!important;}
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-actions-v3249 {display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto!important;padding:10px 12px!important;gap:6px!important;}
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-actions-v3249 button {padding:7px!important;font-size:12px!important;}
 }
}

@layer erpColorMode.overrides {html body.erp-system-ui #profitConfigMaskV3249 {--dlg-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h16M4%2017h16M8%204v6M16%2014v6%22%2F%3E%3C%2Fsvg%3E")!important;--dlg-ink:var(--ui-accent-hover)!important;--dlg-wash:var(--ui-accent-soft)!important;}}

@layer erpColorMode.overrides {
 html body.erp-system-ui #profit-calculator .profit-heading-v447 {display:flex!important;align-items:center!important;gap:12px!important;}
 html body.erp-system-ui #profit-calculator .profit-heading-icon-v447 {display:grid!important;place-items:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;border-radius:10px!important;background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui #profit-calculator .profit-heading-icon-v447 svg {display:block!important;width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
 html body.erp-system-ui #profit-calculator .profit-heading-v447 :is(h2,p) {margin:0!important;}
 html body.erp-system-ui #profit-calculator .profit-heading-v447 p {margin-top:4px!important;}
 html body.erp-system-ui #profit-calculator .profit-detail-title-v3249 {display:flex!important;align-items:center!important;gap:10px!important;}
 html body.erp-system-ui #profit-calculator .profit-detail-title-v3249 > i {display:grid!important;place-items:center!important;flex:0 0 32px!important;width:32px!important;height:32px!important;border-radius:8px!important;background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui #profit-calculator .profit-detail-title-v3249 > i > svg {display:block!important;width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
 html body.erp-system-ui #profitConfigMaskV3249 > .profit-config-modal-v3249 {height:auto!important;min-height:0!important;}
 @media(max-width:380px) {
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-tabs-v3249 {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-actions-v3249 {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body.erp-system-ui #profitConfigMaskV3249 .profit-config-actions-v3249 > .profit-primary-btn-v3249 {grid-column:1 / -1!important;}
 }
}

/* ===== returns.css ===== */
@layer erpTableSpacing {
 @media screen {
  html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(5) {width:190px!important;min-width:190px!important}
  html body.erp-system-ui #returns .returns-table-v3300 .ret-status-v3300 {
   box-sizing:border-box!important;display:inline-block!important;max-width:100%!important;
   white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;
   overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:middle!important;
  }
  @media(max-width:640px) {
   html body.erp-system-ui #returns .returns-table-v3300 td[data-mobile-field=status] {grid-column:1/-1!important}
  }
 }
}
@layer erpComponents {
/* Return columns follow Ozon's page, with the shared ERP type and spacing. */
html body.erp-system-ui #returns .returns-shell-v3300{gap:12px!important}
html body.erp-system-ui #returns .returns-head-v3300{padding:18px 20px!important;min-height:78px!important}
html body.erp-system-ui #returns .returns-head-copy-v3300>b{font-size:21px!important}
html body.erp-system-ui #returns .returns-head-copy-v3300>span{font-size:12px!important;line-height:1.6!important}
html body.erp-system-ui #returns .returns-head-actions-v3300{gap:10px!important;flex-wrap:wrap!important}
html body.erp-system-ui #returns :is(.returns-refresh-v3300,.returns-export){height:36px!important;padding:0 14px!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important;cursor:pointer}
html body.erp-system-ui #returns .returns-export{background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;color:var(--ui-text)!important}
html body.erp-system-ui #returns .returns-toolbar-v3300{padding:14px 16px!important;gap:12px!important;border-radius:10px!important}
html body.erp-system-ui #returns .returns-field-v3300{flex:1 1 145px;min-width:0}
html body.erp-system-ui #returns .returns-field-v3300>label{font-size:11px!important;line-height:1.5!important}
html body.erp-system-ui #returns .returns-field-v3300 :is(select,.erp-select-host){width:100%!important;min-width:0!important}
/* One standard input owns the border; the shared clear button stays inside it. */
html body.erp-system-ui #returns .returns-search-v3300{position:relative!important;display:flex!important;align-items:center!important;flex:2 1 280px!important;min-width:180px!important;height:36px!important;padding:0!important;border:0!important;border-radius:var(--ui-control-radius)!important;background:transparent!important;box-shadow:none!important}
html body.erp-system-ui #returns .returns-search-v3300>svg{position:absolute!important;left:11px!important;top:50%!important;transform:translateY(-50%)!important;width:15px!important;height:15px!important;z-index:2!important;pointer-events:none!important;fill:none!important;stroke:var(--ui-placeholder)!important;stroke-width:1.7!important;stroke-linecap:round!important}
html body.erp-system-ui #returns .returns-search-v3300>.erp-clear-field{flex:1!important;min-width:0!important;width:100%!important;height:100%!important}
html body.erp-system-ui #returns .returns-search-v3300 input.erp-control{box-sizing:border-box!important;flex:1!important;width:100%!important;min-width:0!important;font-family:inherit!important;font-size:12px!important;height:36px!important;min-height:36px!important;line-height:normal!important;padding:0 34px 0 34px!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;outline:none!important;appearance:none!important}
html body.erp-system-ui #returns .returns-search-v3300 input.erp-control:hover{border-color:var(--ui-accent)!important}
html body.erp-system-ui #returns .returns-search-v3300 input.erp-control:focus{border:1px solid var(--ui-accent)!important;background:var(--ui-surface)!important;box-shadow:var(--ui-focus-ring)!important}
html body.erp-system-ui #returns .returns-search-v3300 input::-webkit-search-cancel-button{appearance:none!important}
@media(max-width:900px){html body.erp-system-ui #returns .returns-search-v3300,html body.erp-system-ui #returns .returns-search-v3300 input.erp-control{height:40px!important;min-height:40px!important}}
html body.erp-system-ui #returns :is(.returns-sync-v3300,.returns-coverage){font-size:11px!important;color:#7b8a9f!important;padding:0 4px!important;line-height:1.7!important;border:0!important;background:transparent!important;min-height:0!important}
html body.erp-system-ui #returns .returns-coverage{margin-top:-7px!important}
html body.erp-system-ui #returns .returns-error-v3300{font-size:12px!important}
html body.erp-system-ui #returns .returns-table-head-v3300{height:44px!important;padding:0 16px!important}
html body.erp-system-ui #returns .returns-table-head-v3300 b{font-size:13px!important}
html body.erp-system-ui #returns .returns-table-head-v3300 span{font-size:11px!important}
html body.erp-system-ui #returns .returns-table-wrap-v3300{max-height:none!important;height:auto!important;min-height:220px!important;overflow-x:auto!important;overflow-y:hidden!important}
html body.erp-system-ui #returns .returns-table-v3300{min-width:1550px!important;table-layout:fixed!important}
html body.erp-system-ui #returns .returns-table-v3300 :is(th,td){font-size:12px!important;line-height:1.6!important;padding:13px 12px!important;vertical-align:middle!important;border-right:0!important;overflow-wrap:anywhere!important;white-space:normal!important}
html body.erp-system-ui #returns .returns-table-v3300 th{background:#f7f9fc!important;font-size:11px!important;font-weight:500!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(1){width:180px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(2){width:78px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(3){width:112px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(4){width:120px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(5){width:136px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(6){width:152px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(7){width:82px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(8){width:300px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(9){width:220px!important}
html body.erp-system-ui #returns .returns-table-v3300 th:nth-child(10){width:112px!important}
html body.erp-system-ui #returns :is(.ret-sub-v3300,.ret-product-meta-v3300){font-size:11px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.erp-system-ui #returns .ret-product-name-v3300{font-size:12px!important;font-weight:400!important;-webkit-line-clamp:3!important}
html body.erp-system-ui #returns :is(.ret-img-v3300,.ret-img-ph-v3300){width:54px!important;height:64px!important;flex:0 0 54px!important}
html body.erp-system-ui #returns :is(.ret-schema-v3300,.ret-status-v3300){height:auto!important;min-height:23px!important;font-size:11px!important;white-space:normal!important;line-height:1.5!important}
html body.erp-system-ui #returns .ret-stale{font-size:10px!important;color:#b47331!important;margin-top:5px}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td{color:var(--ui-text)!important}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns :is(.ret-product-name-v3300,.ret-id-v3300,.ret-money-v3300){color:var(--ui-text)!important}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .ret-product-name-v3300{white-space:normal!important;display:-webkit-box!important;text-overflow:clip!important;-webkit-line-clamp:3!important}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .ret-status-v3300.moving{background:#e7f8f8!important;color:#11999b!important}
html body.erp-system-ui #returns .returns-empty-v3300{padding:52px 20px!important;text-align:center!important;color:#8694a6!important}
html body.erp-system-ui #returns .returns-pager-v3300{flex-wrap:wrap!important;gap:10px!important;padding:12px 16px!important}
html body.erp-system-ui #returnDetailMaskV3300 .returns-detail-note{font-size:12px;color:#8493a5;line-height:1.6;margin:12px 0}

html body.erp-system-ui #returns .ret-icon{width:16px!important;height:16px!important;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body.erp-system-ui #returns :is(.returns-refresh-v3300,.returns-export,.ret-detail-btn-v3300){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}
html body.erp-system-ui #returns .ret-detail-btn-v3300{box-sizing:border-box!important;min-width:76px!important;padding:7px 10px!important;flex-wrap:nowrap!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
html body.erp-system-ui #returns .ret-detail-btn-v3300>span{flex:none!important;white-space:nowrap!important}
html body.erp-system-ui #returns .ret-product-v3300{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
html body.erp-system-ui #returns .ret-product-copy-v3300{min-width:0!important;flex:1!important}
html body.erp-system-ui #returns .ret-product-copy-v3300 :is(.sku-single-line,.offer-single-line,.product-name-line){display:flex!important;align-items:baseline!important;min-width:0!important;font-size:12px!important;line-height:1.65!important;white-space:nowrap!important;overflow:hidden!important;margin:2px 0!important;color:#667085!important}
html body.erp-system-ui #returns :is(.legacy-prod-title,.copy-value){color:#155eef!important;font-size:12px!important;font-weight:400!important;text-decoration:none!important;cursor:pointer}
html body.erp-system-ui #returns .ret-product-copy-v3300 :is(.legacy-prod-title,.copy-value){display:block!important;flex:1!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.65!important}
html body.erp-system-ui #returns .product-name-label{flex:none!important;white-space:nowrap!important}
html body.erp-system-ui #returns .key-number-price{color:#e99521!important;font-size:13px!important;font-weight:500!important}
html body.erp-system-ui #returns :is(.legacy-prod-title,.copy-value):hover{color:#0b4dcc!important;text-decoration:underline!important}
html body.erp-system-ui #returns :is(.ret-img-v3300,.ret-img-ph-v3300){display:block!important;width:60px!important;height:70px!important;flex-basis:60px!important;object-fit:contain!important;border:1px solid #e2e8f0!important;border-radius:8px!important;background:white!important;cursor:zoom-in}
html body.erp-system-ui #returns .ret-shop-name{display:block!important;max-width:100%!important;font-weight:500;color:#155eef!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.erp-system-ui #returns time{display:inline-block!important;white-space:nowrap!important;font-size:12px!important;color:#344054!important;font-variant-numeric:tabular-nums}
html body.erp-system-ui #returns time .ret-sub-v3300{display:block!important;margin-top:2px!important}
html body.erp-system-ui #returns .ret-date-kind{display:inline-block!important;color:#7b8a9f!important;font-size:10px!important;margin-top:4px!important}
html body.erp-system-ui #returns .ret-mobile-photo{display:none!important}
html body.erp-system-ui #returns .ret-price-reference{font-size:11px!important;color:#7b8a9f!important;margin-top:5px;line-height:1.6}
html body.erp-system-ui #returns .ret-price-reference b{display:block;font-weight:500}
html body.erp-system-ui #returns .ret-reason-retry{padding:0;border:0;background:none;color:var(--ui-accent);font:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
html body.erp-system-ui #returns .ret-reason-wrap-v521{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;min-width:0!important}
html body.erp-system-ui #returns .ret-reason-original-v521{display:block!important;max-width:100%!important;color:#667085!important;line-height:1.65!important;overflow-wrap:anywhere!important}
html body.erp-system-ui #returns .ret-reason-translate-v521{display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:30px!important;padding:5px 9px!important;border:1px solid #cfe0ff!important;border-radius:7px!important;background:#f5f8ff!important;color:#155eef!important;font-size:11px!important;font-weight:500!important;cursor:pointer!important;box-shadow:none!important}
html body.erp-system-ui #returns .ret-reason-translate-v521:hover{background:#eaf1ff!important;border-color:#a8c4ff!important;color:#0b4dcc!important}
html body.erp-system-ui #returns .ret-reason-translate-v521:disabled{opacity:.65!important;cursor:wait!important}
html body.erp-system-ui #returns .ret-reason-translate-v521 svg{width:14px!important;height:14px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}

html body.erp-system-ui #returns .ret-status-v3300.risk{background:#fff1f2!important;color:#c65664!important;border-color:#f9d5da!important}
html body.erp-system-ui #returns .ret-status-v3300.done{background:#ebf9f2!important;color:#22815d!important;border-color:#d4eedf!important}
@media(max-width:900px){
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .ret-mobile-photo{display:block!important;flex:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td[data-mobile-field=image]{display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td[data-mobile-field=reason]{grid-column:1/-1!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .ret-reason-retry{min-height:36px}

 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td[data-mobile-field=number]{grid-column:2!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td[data-mobile-field=date]{grid-column:1!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td[data-mobile-field=shop]::before{display:block!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-head-v3300{padding:16px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-head-actions-v3300{width:100%!important;display:flex!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-head-actions-v3300>button{flex:1!important;min-height:42px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-wrap-v3300{max-height:none!important;min-height:0!important;overflow:visible!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300{min-width:0!important;table-layout:auto!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 tbody>tr>td{padding:4px 0!important;min-width:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td[data-mobile-field=product]{grid-row:1!important;grid-column:1/-1!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td[data-mobile-field=shop]{grid-column:1!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-table-v3300 td[data-mobile-field=address]{grid-column:1/-1!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns :is(.ret-product-name-v3300,.ret-product-meta-v3300){white-space:normal!important;overflow-wrap:anywhere!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-pager-v3300{align-items:center!important;justify-content:space-between!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns #returnsPagerPages{flex-wrap:wrap!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .ret-detail-btn-v3300{width:100%!important;min-height:40px!important}
}
}

/* The return card owns its image and field positions, including on legacy hosts. */
@layer erpTableSpacing {
 @media screen and (max-width:900px) {
  html body.erp-system-ui #returns .returns-table-wrap-v3300 {overflow:visible!important;min-height:0!important;max-height:none!important;border:0!important;background:transparent!important}
  html body.erp-system-ui #returns .returns-table-v3300 {display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;table-layout:auto!important;background:transparent!important}
  html body.erp-system-ui #returns .returns-table-v3300>thead {display:none!important}
  html body.erp-system-ui #returns #returnsRows {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}
  html body.erp-system-ui #returns #returnsRows>tr {box-sizing:border-box!important;position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 12px!important;width:100%!important;min-width:0!important;padding:14px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-surface)!important}
  html body.erp-system-ui #returns #returnsRows>tr>td {box-sizing:border-box!important;display:block!important;position:static!important;grid-row:auto!important;grid-column:auto!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui #returns #returnsRows>tr>td[data-ret-label]::before {content:attr(data-ret-label)!important;display:block!important;margin:0 0 3px!important;font-size:11px!important;line-height:1.5!important;font-weight:400!important;color:var(--ui-label)!important}
  html body.erp-system-ui #returns #returnsRows>tr>.ret-image-cell-v3300 {display:none!important}
  html body.erp-system-ui #returns #returnsRows>tr>.ret-product-cell-v3300 {grid-column:1/-1!important;grid-row:1!important;padding:0 0 12px!important;border-bottom:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui #returns #returnsRows>tr>:is(.ret-status-cell,.ret-posting,.ret-reason-cell,td:last-child) {grid-column:1/-1!important}
  html body.erp-system-ui #returns #returnsRows>tr>:is(.ret-product-cell-v3300,td:last-child)::before {content:none!important;display:none!important}
  html body.erp-system-ui #returns #returnsRows>tr>td:last-child {padding-top:8px!important;border-top:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui #returns #returnsRows .ret-product-v3300 {display:flex!important;align-items:flex-start!important;gap:12px!important;min-width:0!important}
  html body.erp-system-ui #returns #returnsRows .ret-mobile-photo {display:block!important;flex:0 0 64px!important;width:64px!important;min-width:0!important}
  html body.erp-system-ui #returns #returnsRows .ret-mobile-photo>:is(.ret-img-v3300,.ret-img-ph-v3300),html body.erp-system-ui #returns #returnsRows .ret-mobile-photo>.erp-order-image>:is(.ret-img-v3300,.ret-img-ph-v3300) {box-sizing:border-box!important;display:block!important;width:64px!important;height:85px!important;min-width:0!important;max-width:100%!important;margin:0!important;object-fit:contain!important;border-radius:7px!important}
  html body.erp-system-ui #returns #returnsRows .ret-product-copy-v3300 {flex:1 1 auto!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui #returns #returnsRows .ret-product-copy-v3300 :is(.sku-single-line,.offer-single-line,.product-name-line) {display:flex!important;align-items:baseline!important;min-width:0!important;line-height:1.65!important;white-space:normal!important;color:var(--ui-text)!important}
  html body.erp-system-ui #returns #returnsRows .ret-product-copy-v3300 :is(.copy-value,.legacy-prod-title) {min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}
  html body.erp-system-ui #returns #returnsRows .ret-product-copy-v3300 .product-name-label {flex:none!important;white-space:nowrap!important}
  html body.erp-system-ui #returns #returnsRows .ret-product-copy-v3300 .legacy-prod-title {display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
  html body.erp-system-ui #returns #returnsRows .ret-shop-name {text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui #returns #returnsRows .ret-detail-btn-v3300 {box-sizing:border-box!important;width:100%!important;min-height:44px!important;justify-content:center!important}
  html body.erp-system-ui #returns #returnsRows>tr:has(>.returns-empty-v3300) {display:block!important}
 }
}

/* ===== product-images.css ===== */
/* Product list thumbnails use a fixed 3:4 frame, including missing-image states.
 * Keep each list's width; contain preserves square/landscape source images. */
@layer erpColorMode.overrides {
  html body.erp-system-ui .erp-order-image {display:inline-flex;vertical-align:middle;flex:none;}
  html body.erp-system-ui .erp-order-image>img {cursor:zoom-in;}
  html body.erp-system-ui #capitalFundRoot .cf-product>.erp-order-image>.cf-thumb {width:48px!important;min-width:48px!important;height:64px!important;min-height:64px!important;object-fit:contain!important;}
  html body.erp-system-ui .erp-order-image>img:is(.dash-product-img,.pc-photo-button,.wh-photo,.cf-thumb) {display:block!important;object-fit:contain!important;object-position:center!important;}
  html body.erp-system-ui .erp-order-image-retry {
    display:flex!important;flex-direction:column;align-items:center;justify-content:center;
    gap:4px;padding:5px;font:inherit;font-size:11px;line-height:1.5;text-align:center;
    white-space:normal;overflow-wrap:anywhere;cursor:pointer;
  }
  html body.erp-system-ui .erp-order-image-retry>span {color:var(--theme-accent,#317efa);font-size:10px;}
  html body.erp-system-ui .erp-order-image-retry:disabled {cursor:progress;opacity:.75;}
  html body.erp-system-ui .erp-order-image-retry:focus-visible {outline:2px solid var(--theme-accent,#317efa);outline-offset:2px;}
  html body.erp-system-ui :is(
    .legacy-thumb,.legacy-ph,.product-thumb,.product-ph,
    #pm-app .pm-photo,#pm-app .pm-placeholder,
    #procurement .pc-photo-button,#procurement .pc-img-empty,
    #returns .ret-img-v3300,#returns .ret-img-ph-v3300,
    .wh-page .wh-photo,.wh-page .wh-no-photo,
    #finance .finance-order-thumb-v3301,#finance .finance-order-thumb-ph-v3301,
    .finance-fee-detail-img-v3307,.finance-fee-detail-img-ph-v3307,
    #dashboard .dash-product-img,
    #shop-analytics .sa-photo,#shop-analytics .sa-no-photo,
    :is(#product-listing,#product-listing-records) .pl-record-photo,:is(#product-listing,#product-listing-records) .pl-record-placeholder,
    .ar-product-cell .ar-thumb,
    #erp-refine-dialog .rf-draft img,#erp-refine-dialog .rf-variants img,
    .detail-product-img
  ) {
    box-sizing:border-box!important;
    width:var(--erp-list-image-width,60px)!important;
    min-width:var(--erp-list-image-width,60px)!important;
    max-width:var(--erp-list-image-width,60px)!important;
    height:calc(var(--erp-list-image-width,60px) * 4 / 3)!important;
    min-height:calc(var(--erp-list-image-width,60px) * 4 / 3)!important;
    max-height:calc(var(--erp-list-image-width,60px) * 4 / 3)!important;
    aspect-ratio:3 / 4!important;
    flex:none!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  html body.erp-system-ui :is(.product-thumb,.product-ph) {--erp-list-image-width:54px;}
  html body.erp-system-ui #pm-app :is(.pm-photo,.pm-placeholder) {--erp-list-image-width:80px;}
  html body.erp-system-ui #procurement :is(.pc-photo-button,.pc-img-empty) {--erp-list-image-width:70px;}
  html body.erp-system-ui .wh-page :is(.wh-photo,.wh-no-photo) {--erp-list-image-width:58px;}
  html body.erp-system-ui #warehouse-records .wh-record-photos :is(.wh-photo,.wh-no-photo) {--erp-list-image-width:42px;}
  html body.erp-system-ui #finance :is(.finance-order-thumb-v3301,.finance-order-thumb-ph-v3301) {--erp-list-image-width:58px;}
  html body.erp-system-ui :is(.finance-fee-detail-img-v3307,.finance-fee-detail-img-ph-v3307) {--erp-list-image-width:72px;}
  html body.erp-system-ui #dashboard .dash-product-img {--erp-list-image-width:58px;}
  html body.erp-system-ui #shop-analytics :is(.sa-photo,.sa-no-photo) {--erp-list-image-width:44px;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) :is(.pl-record-photo,.pl-record-placeholder) {--erp-list-image-width:48px;}
  html body.erp-system-ui .ar-product-cell .ar-thumb {--erp-list-image-width:48px;}
  html body.erp-system-ui #erp-refine-dialog .rf-draft img {--erp-list-image-width:40px;}
  html body.erp-system-ui #erp-refine-dialog .rf-variants img {--erp-list-image-width:35px;}
  html body.erp-system-ui .detail-product-img {--erp-list-image-width:58px;}

  /* The clickable frame owns sizing; its image must not keep a square height. */
  html body.erp-system-ui :is(
    #procurement .pc-photo-button,.wh-page .wh-photo,#dashboard .dash-product-img,
    #shop-analytics .sa-photo,:is(#product-listing,#product-listing-records) .pl-record-photo
  )>img {
    box-sizing:border-box!important;display:block!important;
    width:100%!important;height:100%!important;
    min-width:0!important;min-height:0!important;
    max-width:100%!important;max-height:100%!important;
    flex:none!important;object-fit:contain!important;object-position:center!important;
  }

  /* Printed multi-product rows keep photos, offer IDs and SKUs aligned. */
  html body.erp-system-ui #warehouse-records .wh-record-product {height:56px!important;}

  @media(max-width:900px) {
    html body.erp-system-ui #pm-app :is(.pm-photo,.pm-placeholder) {--erp-list-image-width:68px;}
    html body.erp-system-ui #orders table[data-erp-mobile-table] :is(.legacy-thumb,.legacy-ph) {--erp-list-image-width:72px;}
    html body.erp-system-ui #orders .order-item-slot {
      height:max(var(--order-item-height,104px),116px)!important;
      min-height:max(var(--order-item-height,104px),116px)!important;
    }
  }
}
/* Enlarged photos are a viewer, not a native draggable/selected document image. */
@layer erpComponents {
 html body.erp-system-ui :is(#imageMask,#erpFinanceImagePreview,.ddp-image-preview) :is(.image-preview-shell,.erp-finance-image-card,.ddp-image-card) {
  user-select:none!important;-webkit-user-select:none!important;
 }
 html body.erp-system-ui :is(#imageMask,#erpFinanceImagePreview,.ddp-image-preview) img {
  user-select:none!important;-webkit-user-select:none!important;-webkit-user-drag:none!important;
  -webkit-tap-highlight-color:transparent!important;touch-action:manipulation;opacity:1!important;
 }
 html body.erp-system-ui :is(#imageMask,#erpFinanceImagePreview,.ddp-image-preview) img::selection {background:transparent!important;color:inherit!important}
}

/* ===== workspace-v5.css ===== */
@layer erpComponents {
/* A common frame for new ERP dialogs, without changing existing open/hidden rules. */
html body.erp-system-ui .erp-v5-dialog {
  box-sizing:border-box!important;padding:0!important;border:1px solid var(--ui-border)!important;
  border-radius:16px!important;background:#fff!important;color:var(--ui-text)!important;
  box-shadow:var(--ui-dialog-shadow)!important;max-width:calc(100vw - 32px)!important;
  max-height:calc(100dvh - 40px)!important;margin:auto!important;overflow:hidden!important;
  zoom:calc(1 / var(--erp-page-zoom,1.05));
}
html body.erp-system-ui .erp-v5-dialog[open]{display:flex!important;flex-direction:column!important}
html body.erp-system-ui .erp-v5-dialog::backdrop{background:var(--ui-overlay);backdrop-filter:blur(3px)}
html body.erp-system-ui:has(.erp-v5-dialog[open]){overflow:hidden!important}
html body.erp-system-ui .erp-v5-dialog :is(button,a):focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:3px}
html body.erp-system-ui .erp-v5-dialog-head{display:flex;align-items:center;gap:13px;padding:19px 24px;flex:none;border-bottom:1px solid var(--ui-border);background:linear-gradient(115deg,#fff 35%,var(--ui-accent-soft));min-width:0}
html body.erp-system-ui .erp-v5-dialog-head>div{min-width:0;flex:1}
html body.erp-system-ui .erp-v5-dialog h2{font-size:20px!important;line-height:1.5!important;margin:0!important;font-weight:600!important;color:var(--ui-text)!important}
html body.erp-system-ui .erp-v5-dialog-head p{margin:4px 0 0;font-size:12px;line-height:1.6;color:#7b8a9f}
html body.erp-system-ui .erp-v5-dialog svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
html body.erp-system-ui .erp-v5-heading-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:var(--ui-accent);background:var(--ui-accent-soft);border:1px solid color-mix(in srgb,var(--ui-accent) 16%,#fff);flex:none}
html body.erp-system-ui .erp-v5-heading-icon svg{width:22px;height:22px}
html body.erp-system-ui .erp-v5-close{width:34px;height:34px;display:grid;place-items:center;flex:none;border:1px solid var(--ui-border);border-radius:9px;background:#fff;color:#798ba3;cursor:pointer;padding:0}
html body.erp-system-ui .erp-v5-close:hover{background:var(--ui-accent-soft);color:var(--ui-accent)}
html body.erp-system-ui .erp-label-dialog{width:var(--label-dialog-width,460px)!important;height:var(--label-dialog-height,440px)!important}
html body.erp-system-ui #erpLabelDialog.erp-label-dialog .erp-v5-dialog-head{padding:10px 14px;gap:10px}
html body.erp-system-ui #erpLabelDialog.erp-label-dialog h2{font-size:17px!important}
html body.erp-system-ui #erpLabelDialog.erp-label-dialog .erp-v5-heading-icon{width:32px;height:32px;border-radius:9px}
html body.erp-system-ui .erp-label-instant{position:absolute;inset:0;z-index:1;display:grid;place-items:start center;padding:10px;background:var(--ui-surface);overflow:auto}
html body.erp-system-ui .erp-label-instant img{display:block;max-width:none;height:auto;background:#fff;box-shadow:0 2px 12px #0002}
html body.erp-system-ui .erp-label-frame-host{position:relative;flex:1;min-height:0;min-width:0;background:var(--ui-surface)}
html body.erp-system-ui .erp-label-frame-host iframe{display:block;width:100%;height:100%;border:0}
/* Replace the visible preview frame with a transparent host for the result question.
   Keep the iframe in place so opening the question never reloads or prints it twice. */
html body.erp-system-ui #erpLabelDialog.erp-label-result-host{position:fixed!important;box-sizing:border-box!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;max-width:none!important;max-height:none!important;overflow:hidden!important;zoom:calc(1 / var(--erp-page-zoom,1.05))!important}
html body.erp-system-ui #erpLabelDialog.erp-label-result-host[open]{display:block!important;inset:0!important;width:100vw!important;height:100dvh!important;margin:0!important}
html body.erp-system-ui #erpLabelDialog.erp-label-result-host::backdrop{background:transparent!important;backdrop-filter:none!important}
html body.erp-system-ui #erpLabelDialog.erp-label-result-host>header{display:none!important}
html body.erp-system-ui #erpLabelDialog.erp-label-result-host>.erp-label-result-frame{display:block!important;width:100%!important;height:100%!important;background:transparent!important}
html body.erp-system-ui #erpLabelDialog.erp-label-result-host iframe{display:block!important;width:100%!important;height:100%!important;border:0!important;background:transparent!important}
html body.erp-system-ui:has(.erp-label-result-host[open]){overflow:hidden!important}

/* Expanded finance tables grow vertically and keep wide columns scrollable. */
html body.erp-system-ui #finance #financeAdvancedPanel :is(.finance-table-scroll,.finance-v3282-no-inner-scroll){overflow-x:auto!important;overflow-y:hidden!important;max-width:100%!important;min-width:0!important;max-height:none!important;height:auto!important}
/* Consistent reading surfaces and interaction feedback throughout the workspace. */
html body.erp-system-ui.erp-beauty-v3 .main :is(.erp-v2-page-heading,.erp-overview-heading,.mg-heading){margin-bottom:16px!important}
html body.erp-system-ui.erp-beauty-v3 .main :is(.screen-metric,.ca-ref-kpi,.oa-card,.finance-v3278-board,.returns-table-card-v3300,.shop-table-wrap){border-color:#e1e8f2!important;box-shadow:0 2px 6px #263b5503,0 8px 24px #263b5504!important}
html body.erp-system-ui.erp-beauty-v3 .main :is(.screen-metric,.ca-ref-kpi,.oa-kpi){border-radius:12px!important}
html body.erp-system-ui.erp-beauty-v3 .main .page table tbody tr:hover{background:#f6f9fd!important}
html body.erp-system-ui.erp-beauty-v3 .main .page :is(.btn,.ca-ref-btn,.erp-btn,.pm-btn,.ret-detail-btn-v3300){transition:background-color .15s,border-color .15s,color .15s!important}
html body.erp-system-ui.erp-beauty-v3 .main .page :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
html body.erp-system-ui .erp-v5-action-icon::before{content:"";display:inline-block;width:15px;height:15px;flex:0 0 15px;margin-right:6px;vertical-align:-3px;background:currentColor;mask:var(--erp-action-icon) center/contain no-repeat;-webkit-mask:var(--erp-action-icon) center/contain no-repeat}
html body.erp-system-ui #financeAdvancedToggle{padding:10px 14px!important;min-height:38px!important;border-radius:8px!important}
@media(max-width:900px){
  html body.erp-system-ui .erp-v5-dialog{max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px)!important;border-radius:12px!important}
  html body.erp-system-ui .erp-v5-dialog-head{padding:14px 16px;gap:10px}
  html body.erp-system-ui .erp-v5-dialog h2{font-size:18px!important}
  html body.erp-system-ui .erp-v5-heading-icon{width:36px;height:36px;border-radius:10px}
  html body.erp-system-ui .erp-v5-close{width:38px;height:38px}
}
@media(prefers-reduced-motion:reduce){html body.erp-system-ui.erp-beauty-v3 .main .page :is(.btn,.ca-ref-btn,.erp-btn,.pm-btn,.ret-detail-btn-v3300){transition:none!important}}

/* Reference rate under the dashboard heading. */
html body.erp-system-ui #dashboard .dashboard-fx-bar{display:flex!important;align-items:center!important;gap:12px!important;padding:13px 16px!important;margin:0 0 18px!important;border:1px solid #dce8f8!important;border-radius:10px!important;background:#f2f7ff!important;min-width:0!important}
html body.erp-system-ui #dashboard .dashboard-fx-icon{width:20px!important;height:20px!important;flex:none!important;color:#6485ac!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
html body.erp-system-ui #dashboard .dashboard-fx-copy{display:flex!important;align-items:baseline!important;gap:7px!important;flex-wrap:wrap!important;min-width:0!important;flex:1!important;font-size:12px!important;line-height:1.7!important;color:#7d8fa7!important;overflow-wrap:anywhere!important}
html body.erp-system-ui #dashboard #dashFxRate{font-size:14px!important;font-weight:600!important;color:#345477!important;font-variant-numeric:tabular-nums!important}
html body.erp-system-ui #dashboard #dashFxProvider{color:#5383b9!important;text-decoration:none!important}
html body.erp-system-ui #dashboard #dashFxProvider:hover{text-decoration:underline!important}
html body.erp-system-ui #dashboard #dashFxRefresh{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex:none!important;min-height:34px!important;padding:6px 13px!important;border:1px solid #ffb470!important;border-radius:7px!important;background:#fff6eb!important;color:#b96012!important;font:inherit!important;font-size:12px!important;cursor:pointer!important;white-space:nowrap!important}
html body.erp-system-ui #dashboard #dashFxRefresh:hover{background:#ffedd9!important}
html body.erp-system-ui #dashboard #dashFxRefresh:disabled{opacity:.65!important;cursor:wait!important}
html body.erp-system-ui #dashboard #dashFxRefresh svg{width:14px!important;height:14px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
html body.erp-system-ui #dashboard .dashboard-fx-bar.is-stale #dashFxStatus{color:#a06828!important}
@media(max-width:600px){
html body.erp-system-ui #dashboard .dashboard-fx-bar{align-items:flex-start!important;gap:9px!important;padding:12px!important;margin-bottom:14px!important}
html body.erp-system-ui #dashboard .dashboard-fx-icon{display:none!important}
html body.erp-system-ui #dashboard .dashboard-fx-copy{gap:3px 6px!important;font-size:11px!important}
html body.erp-system-ui #dashboard #dashFxRate{width:100%!important;font-size:13px!important}
html body.erp-system-ui #dashboard #dashFxRefresh{min-height:40px!important;padding:8px 10px!important}
}
}

/* Product editor: the removed quick navigation must not reserve a column. */
@layer erpComponents {
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-editor-body{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;padding:12px!important}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-editor-scroll{grid-column:1!important;grid-row:1!important;padding:0 0 8px!important;scrollbar-gutter:auto}
html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-editor-content{max-width:none!important;width:100%!important;margin:0!important}
@media(max-width:700px){html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-editor .pm-editor-body{padding:8px!important}}
}

@layer erpComponents {
/* Advertising headers grow with their title, subtitle and legend. */
html body.erp-system-ui #click-ads .ca-ref-chart-title{box-sizing:border-box!important;height:auto!important;min-height:66px!important;display:flex!important;align-items:center!important;padding:20px 24px!important;gap:12px!important;flex-wrap:wrap!important}
html body.erp-system-ui #click-ads .ca-ref-chart-title>span:first-child{min-width:0!important;line-height:1.7!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.erp-system-ui #click-ads .ca-api-manager-compact-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;height:auto!important}
html body.erp-system-ui #click-ads .ca-api-summary{flex:1 1 270px!important;min-width:0!important;gap:8px!important}
html body.erp-system-ui #click-ads .ca-api-summary>b{white-space:nowrap!important}
html body.erp-system-ui #click-ads .ca-api-manage-open:not([hidden]){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:none!important;min-width:108px!important;min-height:36px!important;height:auto!important;max-width:100%!important;padding:8px 12px!important;margin-left:auto!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
html body.erp-system-ui #click-ads .ca-conv-card-head{box-sizing:border-box!important;height:auto!important;min-height:94px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px 18px!important;padding:16px 18px!important}
html body.erp-system-ui #click-ads .ca-conv-card-head>div:not(.ca-conv-legend){display:flex!important;flex-direction:column!important;flex:1 1 240px!important;min-width:0!important;gap:8px!important}
html body.erp-system-ui #click-ads .ca-conv-card-head b{line-height:1.6!important;min-height:28px!important;white-space:normal!important}
html body.erp-system-ui #click-ads .ca-conv-card-head>div:not(.ca-conv-legend)>span{display:block!important;line-height:1.7!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.erp-system-ui #click-ads .ca-conv-legend{flex:0 0 auto!important;margin-left:auto!important;line-height:1.7!important}
html body.erp-system-ui #click-ads .ca-funnel-wrap,
html body.erp-system-ui #click-ads .ca-conv-bars{padding-top:18px!important}

/* A minimum title column and a two-line clamp keep TOP10 rows uniform. */
html body.erp-system-ui #dashboard .screen-top-card .dash-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;height:auto!important}
html body.erp-system-ui #dashboard .screen-top-table{width:100%!important;min-width:1092px!important;table-layout:fixed!important}
html body.erp-system-ui #dashboard .screen-top-table .dash-prod-name{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2;line-height:1.6!important;max-height:3.2em!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.erp-system-ui #dashboard .screen-top-table .screen-sku-copy{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;vertical-align:middle!important}
@media(max-width:900px){
 html body.erp-system-ui #click-ads .ca-api-manager-compact-head{padding:14px!important;align-items:flex-start!important}
 html body.erp-system-ui #click-ads .ca-api-summary{flex:1 1 100%!important;gap:8px!important}
 html body.erp-system-ui #click-ads .ca-api-summary>b{flex-basis:100%!important;margin:0 0 2px!important}
 html body.erp-system-ui #click-ads .ca-api-manage-open{min-height:40px!important}
 html body.erp-system-ui #click-ads .ca-conv-card-head{padding:16px!important;min-height:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #dashboard .screen-top-table tbody tr{height:84px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #dashboard .screen-top-table tbody td{padding:12px 10px!important;height:84px!important;vertical-align:middle!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #dashboard .screen-top-table .dash-product-img{box-sizing:border-box!important;width:58px!important;height:58px!important;min-height:58px!important;max-height:58px!important;flex:none!important}
}
}

/* Dashboard refresh stays legible while disabled; the in-button spinner is the only busy indicator. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #dashboard #dashRefreshBtn {min-width:96px!important;}
 html body.erp-system-ui #dashboard #dashRefreshBtn[aria-busy="true"] {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;
  gap:6px!important;min-width:96px!important;white-space:nowrap!important;line-height:18px!important;
  opacity:1!important;cursor:default!important;color:var(--ui-accent,#1677ff)!important;-webkit-text-fill-color:currentColor!important;
  background:var(--ui-accent-soft,#edf4ff)!important;border-color:var(--ui-accent,#1677ff)!important;box-shadow:none!important;
 }
 html body.erp-system-ui #dashboard #dashRefreshBtn[aria-busy="true"]::before,
 html body.erp-system-ui #dashboard #dashRefreshBtn[aria-busy="true"]::after {display:none!important;content:none!important;}
 html body.erp-system-ui #dashboard #dashRefreshBtn[aria-busy="true"]>[data-dashboard-spin] {
  display:block!important;position:static!important;inset:auto!important;flex:0 0 16px!important;width:16px!important;height:16px!important;
  margin:0!important;padding:0!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;
  stroke-linecap:round!important;transform-origin:center!important;animation:erp-dashboard-refresh-turn .8s linear infinite!important;
  color:inherit!important;cursor:default!important;
 }
 html body.erp-system-ui #dashboard #dashRefreshBtn[aria-busy="true"]>.erp-button-label {
  display:block!important;position:static!important;flex:0 0 auto!important;margin:0!important;padding:0!important;
  font-size:12px!important;line-height:18px!important;white-space:nowrap!important;color:inherit!important;
  -webkit-text-fill-color:currentColor!important;opacity:1!important;cursor:default!important;transform:none!important;
 }
 @media(prefers-reduced-motion:reduce){html body.erp-system-ui #dashboard #dashRefreshBtn[aria-busy="true"]>[data-dashboard-spin]{animation:none!important;}}
}
@keyframes erp-dashboard-refresh-turn{to{transform:rotate(360deg)}}

/* ===== workspace-polish.css ===== */
/* Commercial workspace refinement. Keep data density, theme and module semantics. */
@layer erpComponents {
  html body.erp-system-ui.erp-beauty-v3 {
    --ui-border:#e1e7ef;
    --ui-border-soft:#edf1f6;
    --ui-field-surface:#fff;
    --ui-menu-shadow:0 8px 28px #21375018,0 2px 6px #21375008;
    --ui-focus-ring:0 0 0 3px color-mix(in srgb,var(--ui-accent) 12%,transparent);
    --workspace-shadow:0 1px 3px #22354c05,0 4px 14px #22354c04;
  }
  html body.erp-system-ui.erp-beauty-v3 .main { background:#f5f7fb!important; }
  html body.erp-system-ui.erp-beauty-v3 aside.side { background:#fff!important; border-right:1px solid var(--ui-border)!important; box-shadow:none!important; }
  html body.erp-system-ui.erp-beauty-v3 .main>.top { background:#fff!important; border:1px solid var(--ui-border)!important; box-shadow:var(--workspace-shadow)!important; }
  html body.erp-system-ui.erp-beauty-v3 :is(aside.side,.main>.top) { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
  html body.erp-system-ui.erp-beauty-v3 aside.side .nav button { transition:background-color .12s,color .12s!important; }
  html body.erp-system-ui.erp-beauty-v3[data-erp-theme] aside.side .nav button[data-page].active {
    background:var(--ui-accent-soft)!important; color:var(--ui-accent-hover)!important;
    box-shadow:none!important;
  }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.mg-heading,.wh-heading,.sa-heading,.erp-overview-heading) { gap:10px!important; margin-bottom:12px!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.mg-heading,.wh-heading,.sa-heading,.erp-overview-heading) h2 { font-size:20px!important; line-height:1.5!important; letter-spacing:0!important; font-weight:600!important; color:var(--ui-text)!important; }
  html body.erp-system-ui.erp-beauty-v3 .main :is(.erp-v2-icon,.erp-caption>.erp-color-icon) { box-shadow:none!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-shell,.pc-shell,.wh-card,.sa-card,.pl-card,.lc-card,.lc-filter-card,.office-table-wrap,.shop-table-wrap,.returns-table-card-v3300,.finance-v3278-board,.screen-trend-card,.screen-top-card,.ca-ref-chart-card) {
    border-color:var(--ui-border)!important; border-radius:12px!important; box-shadow:var(--workspace-shadow)!important;
  }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.screen-metric,.ca-ref-kpi,.returns-kpi-v3300,.oa-kpi) { border-color:var(--ui-border)!important; box-shadow:var(--workspace-shadow)!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.screen-metric-value,.finance-v3278-metrics>div>b,.ca-ref-kpi>b,.oa-kpi>b) { font-variant-numeric:tabular-nums; letter-spacing:-.3px!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.sa-card-head,.screen-card-head,.finance-card-head,.finance-v3278-board-head) { background:#fff!important; border-color:var(--ui-border-soft)!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-toolbar,.pc-toolbar,.wh-toolbar,.office-filter,.lc-filter,.pl-record-filters) { column-gap:10px!important; row-gap:10px!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-footer,.sa-pagination,.wh-pagination,.order-pagination,.pl-record-pagination,#procurement-app .pc-shell>footer) { border-top:1px solid var(--ui-border-soft)!important; background:#fff!important; gap:10px!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-pagination,.order-pagination,.sa-pagination,.wh-pagination,.pl-record-pagination) button:not(:disabled):hover { border-color:var(--ui-accent)!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-list-scroll,.pm-table-wrap,.pc-table-wrap,.sa-table-wrap,.wh-table-wrap) { background:#fff; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table,.legacy-order-table,.sa-table,.wh-table,#procurement-app table,.pl-record-table,.shop-table) tbody tr:is(.is-selected,.selected)>td { background:color-mix(in srgb,var(--ui-accent) 7%,#fff)!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table,.legacy-order-table,.sa-table,.wh-table,#procurement-app table,.pl-record-table,.shop-table) tbody tr:not(.is-selected):not(.selected):hover>td { background:color-mix(in srgb,var(--ui-accent) 3%,#fff)!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page .erp-list-scroll :is(td,th) { transition:none!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page .erp-list-scroll img { transition:none!important; }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.legacy-thumb,.pm-photo):hover { transform:none!important; box-shadow:none!important; }
  html body.erp-system-ui.erp-beauty-v3 :is(.erp-choice-trigger,.erp-select-button) { font-variant-numeric:tabular-nums; }
  html body.erp-system-ui.erp-beauty-v3 .erp-choice-menu { padding:5px!important; scroll-padding:5px; overscroll-behavior:contain; }
  html body.erp-system-ui.erp-beauty-v3 .erp-choice-option { min-height:34px!important; line-height:1.5!important; padding:8px 10px!important; }
  html body.erp-system-ui.erp-beauty-v3 .erp-choice-option[hidden] { display:none!important; }
  html body.erp-system-ui.erp-beauty-v3 .erp-choice-option:focus-visible { outline:2px solid var(--ui-accent)!important; outline-offset:-2px; }
  html body.erp-system-ui.erp-beauty-v3 :is(.pc-dialog,.lc-dialog,.office-dialog,.erp-v5-dialog) { border-color:var(--ui-border)!important; box-shadow:var(--ui-dialog-shadow)!important; }
  html body.erp-system-ui.erp-beauty-v3 :is(.pc-dialog,.lc-dialog,.office-dialog)>header { border-bottom-color:var(--ui-border-soft)!important; background:#fff!important; }
  @media(min-width:901px) {
    html body.erp-system-ui.erp-beauty-v3 .main .page :is(.screen-metric,.ca-ref-kpi) { min-height:116px!important; padding:16px!important; }
    html body.erp-system-ui.erp-beauty-v3 .main .page :is(.screen-metric-value,.ca-ref-kpi>b) { font-size:26px!important; margin-top:12px!important; }
    html body.erp-system-ui.erp-beauty-v3 .main .page :is(.sa-pagination,.wh-pagination) { padding-top:12px!important; padding-bottom:12px!important; }
  }
  @media(max-width:900px) {
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top { display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; gap:6px 8px!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top .top-left { grid-column:1; grid-row:1; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top .erp-runtime-label { grid-column:2; grid-row:1; margin:0!important; padding-left:8px!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top .erp-global-tools { grid-column:1/-1; grid-row:2; width:100%!important; min-width:0!important; margin:0!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top .erp-global-tools>.erp-select-host { flex:1 1 auto!important; width:auto!important; min-width:0!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top #erpGlobalStore { width:100%!important; min-width:0!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top #erpLicenseButton { grid-column:1/-1; }
    /* Tenant view and account share one row regardless of their insertion order. */
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top:has(#tenantViewBannerV3296):has(#erpLicenseButton) { grid-template-columns:minmax(0,1fr) auto auto!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top:has(#tenantViewBannerV3296):has(#erpLicenseButton) .erp-runtime-label { grid-column:2/4!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top #tenantViewBannerV3296 {
      grid-column:1/-1!important; grid-row:3!important;
      display:flex!important; flex-wrap:nowrap!important; align-items:center!important; gap:6px!important;
      width:100%!important; min-width:0!important; max-width:100%!important; margin:0!important;
    }
    html body.erp-system-ui.erp-beauty-v3 .main>.top:has(#erpLicenseButton) #tenantViewBannerV3296 { grid-column:1/3!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top:has(#tenantViewBannerV3296) #erpLicenseButton {
      grid-column:3!important; grid-row:3!important; justify-self:stretch!important;
      display:inline-flex!important; align-items:center!important; justify-content:center!important; gap:5px!important;
      width:auto!important; min-width:64px!important; max-width:140px!important; margin:0!important;
      white-space:nowrap!important; overflow:hidden!important; text-overflow:ellipsis!important;
    }
    html body.erp-system-ui.erp-beauty-v3 .main>.top:has(#tenantViewBannerV3296) :is(#tenantViewBannerV3296,#erpLicenseButton) {
      height:40px!important; min-height:40px!important; padding:0 8px!important; box-sizing:border-box!important;
      border:1px solid var(--ui-accent)!important; border-radius:var(--ui-control-radius)!important;
      background:var(--ui-accent-soft)!important; color:var(--ui-accent-hover)!important; -webkit-text-fill-color:currentColor!important;
      font-size:12px!important; font-weight:500!important; line-height:1.4!important; box-shadow:none!important;
    }
    html body.erp-system-ui.erp-beauty-v3 #tenantViewBannerV3296 .tenant-view-kind-v3296 { display:inline!important; flex:0 0 auto!important; }
    html body.erp-system-ui.erp-beauty-v3 #tenantViewBannerV3296 .tenant-view-label-v3296 {
      display:flex!important; align-items:center!important; flex:1 1 auto!important; min-width:0!important; gap:4px!important;
      color:inherit!important; font-size:inherit!important; white-space:nowrap!important;
    }
    html body.erp-system-ui.erp-beauty-v3 #tenantViewBannerV3296 .tenant-view-status-v3296 { flex:0 0 auto!important; }
    html body.erp-system-ui.erp-beauty-v3 #tenantViewBannerV3296 .tenant-view-label-v3296>span { font-size:inherit!important; line-height:inherit!important; }
    html body.erp-system-ui.erp-beauty-v3 #tenantViewBannerV3296 .tenant-view-label-v3296 b {
      flex:0 1 auto!important; min-width:0!important; margin:0!important; overflow:hidden!important; text-overflow:ellipsis!important;
      color:inherit!important; font-size:inherit!important; font-weight:500!important;
    }
    html body.erp-system-ui.erp-beauty-v3 #tenantViewBannerV3296 .tenant-view-return-v3296 {
      flex:0 0 auto!important; height:30px!important; min-height:30px!important; padding:0 6px!important;
      border:1px solid var(--ui-accent)!important; border-radius:6px!important;
      background:transparent!important; color:inherit!important; -webkit-text-fill-color:currentColor!important;
      font-size:11px!important; font-weight:500!important; line-height:1.4!important; white-space:nowrap!important; box-shadow:none!important;
    }
    html body.erp-system-ui.erp-beauty-v3 .main>.top:has(#tenantViewBannerV3296) :is(#erpLicenseButton,.tenant-view-return-v3296):hover {
      background:var(--ui-surface)!important; color:var(--ui-accent-hover)!important;
    }
    html body.erp-system-ui.erp-beauty-v3 .main>.top:has(#tenantViewBannerV3296) :is(#erpLicenseButton,.tenant-view-return-v3296):focus-visible {
      outline:2px solid var(--ui-accent)!important; outline-offset:2px!important;
    }
    html body.erp-system-ui.erp-beauty-v3 .main>.top:has(#tenantViewBannerV3296) #erpLicenseButton::before { background:currentColor!important; }
    html body.erp-system-ui.erp-beauty-v3 .erp-mobile-menu:focus-visible { outline:2px solid var(--ui-accent)!important; outline-offset:2px; }
    html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.mg-heading,.wh-heading,.sa-heading,.erp-overview-heading) h2 { font-size:18px!important; }
    html body.erp-system-ui.erp-beauty-v3 .erp-choice-option { min-height:40px!important; }
    html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-mobile-backdrop { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
    html body.erp-system-ui.erp-beauty-v3 .main .page :is(.sa-pagination,.wh-pagination,.pl-record-pagination) { row-gap:10px!important; }
  }
  @media(max-width:380px) {
    html body.erp-system-ui.erp-beauty-v3 .main>.top:has(#tenantViewBannerV3296) :is(#tenantViewBannerV3296,#erpLicenseButton) { padding-inline:6px!important; font-size:11px!important; }
    html body.erp-system-ui.erp-beauty-v3 .main>.top #tenantViewBannerV3296 { gap:4px!important; }
    html body.erp-system-ui.erp-beauty-v3 #tenantViewBannerV3296 .tenant-view-label-v3296 { gap:3px!important; }
    html body.erp-system-ui.erp-beauty-v3 #tenantViewBannerV3296 .tenant-view-return-v3296 { padding-inline:5px!important; }
  }
  @media(prefers-reduced-motion:reduce) {
    html body.erp-system-ui.erp-beauty-v3 aside.side .nav button { transition:none!important; }
  }
}

/* ===== commercial-workspace.css ===== */
/* 6.3: A quiet, compact workspace with clear data hierarchy. */
@layer erpComponents {
 html body.erp-system-ui.erp-beauty-v3 {
  --ui-border:#e2e8f0;--ui-border-soft:#edf1f6;--ui-text:#253247;--ui-label:#334155;
  --ui-field-surface:#fff;--ui-card-radius:10px;--ui-control-radius:7px;--ui-motion:.12s;
  --workspace-shadow:0 1px 3px #172b4d06;
 }
 html body.erp-system-ui.erp-beauty-v3 .main {background:#f4f6f9!important}
 html body.erp-system-ui.erp-beauty-v3 .main>.top {border-radius:10px!important;min-height:54px!important;padding:10px 16px!important;box-shadow:none!important}
 html body.erp-system-ui.erp-beauty-v3 aside.side {border-right:1px solid var(--ui-border)!important;box-shadow:none!important}
 html body.erp-system-ui.erp-beauty-v3 aside.side .nav button {border-radius:7px!important;font-size:13px!important;line-height:1.5!important;min-height:36px!important;transition:background-color .12s,color .12s!important}
 html body.erp-system-ui.erp-beauty-v3 aside.side .nav button[data-page].active {background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important;font-weight:600!important;box-shadow:none!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.erp-overview-heading,.mg-heading,.wh-heading,.sa-heading) {margin-bottom:14px!important;gap:10px!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.erp-overview-heading,.mg-heading,.wh-heading,.sa-heading) h2 {font-size:18px!important;font-weight:600!important;letter-spacing:0!important;line-height:1.5!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.erp-overview-heading,.mg-heading) p {font-size:12px!important;line-height:1.6!important;color:#7b8798!important;margin-top:3px!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-shell,.pc-shell,.wh-card,.sa-card,.pl-card,.lc-card,.office-table-wrap,.shop-table-wrap,.finance-v3278-board,.screen-trend-card,.screen-top-card,.ca-ref-chart-card,.returns-table-card-v3300) {border:1px solid var(--ui-border)!important;border-radius:10px!important;box-shadow:var(--workspace-shadow)!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.screen-metric,.ca-ref-kpi,.oa-kpi,.fin-hero,.fin-kpi) {border-color:var(--ui-border)!important;box-shadow:var(--workspace-shadow)!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-toolbar,.pc-toolbar,.wh-toolbar,.office-filter,.lc-filter,.pl-record-filters,.finance-toolbar) {column-gap:10px!important;row-gap:10px!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table,.legacy-order-table,.sa-table,.wh-table,#procurement-app table,.shop-table,.pl-record-table,.fb-table) {font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table,.legacy-order-table,.sa-table,.wh-table,#procurement-app table,.shop-table,.pl-record-table) thead th {background:#f7f9fc!important;border-color:var(--ui-border)!important;color:#475569!important;font-size:12px!important;font-weight:600!important;line-height:1.5!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table,.legacy-order-table,.sa-table,.wh-table,#procurement-app table,.shop-table,.pl-record-table) tbody td {border-color:var(--ui-border-soft)!important;line-height:1.55!important;transition:none!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table,.legacy-order-table,.sa-table,.wh-table,#procurement-app table,.shop-table,.pl-record-table) tbody tr:nth-child(even):not(.selected):not(.is-selected)>td {background:#fcfdff!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table,.legacy-order-table,.sa-table,.wh-table,#procurement-app table,.shop-table,.pl-record-table) tbody tr:not(.selected):not(.is-selected):hover>td {background:color-mix(in srgb,var(--ui-accent) 4%,#fff)!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table,.legacy-order-table,.sa-table,.wh-table,#procurement-app table,.shop-table,.pl-record-table) tbody tr:is(.selected,.is-selected)>td {background:color-mix(in srgb,var(--ui-accent) 8%,#fff)!important}
 html body.erp-system-ui.erp-beauty-v3 .main :is(.erp-list-scroll,.pm-table-wrap,.pc-table-wrap,.wh-table-wrap,.sa-table-wrap,.fb-scroll) {scrollbar-width:thin;scrollbar-color:#c8d2df transparent}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.btn,.pm-btn,.erp-btn,.ca-ref-btn) {transition:background-color .12s,border-color .12s,color .12s!important}
 html body.erp-system-ui.erp-beauty-v3 :is(.modal-mask,.erp-mobile-backdrop),html body.erp-system-ui.erp-beauty-v3 dialog::backdrop {backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html body.erp-system-ui.erp-beauty-v3 #orderRows[aria-busy="true"] {opacity:1!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pm-table-wrap,.pc-table-wrap,.wh-table-wrap,.fb-scroll) img {transition:none!important}
 html body.erp-system-ui.erp-beauty-v3 .main .page :is(.legacy-thumb,.pm-photo):hover {transform:none!important;box-shadow:none!important}
 @media(max-width:900px){
  html body.erp-system-ui.erp-beauty-v3 .main>.top {padding:10px 12px!important}
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.erp-overview-heading,.mg-heading,.wh-heading,.sa-heading) h2 {font-size:17px!important}
  html body.erp-system-ui.erp-beauty-v3 aside.side .nav button {min-height:42px!important}
 }
 @media(prefers-reduced-motion:reduce){html body.erp-system-ui.erp-beauty-v3 :is(.btn,.pm-btn,.erp-btn,.ca-ref-btn,aside.side .nav button){transition:none!important}}
}

/* ===== listing-workspace.css ===== */
/* Front selection and listing share the ERP palette. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-shell {gap:14px!important;min-width:0!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-head,.pl-card,.pl-entry-card) {background:var(--ui-surface)!important;border:1px solid var(--ui-border)!important;border-radius:var(--workspace-radius,10px)!important;box-shadow:none!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-head {padding:18px 20px!important;align-items:center!important;gap:16px!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-head>div {min-width:0!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-head h2 {display:flex!important;align-items:center!important;gap:11px!important;margin:0!important;color:var(--ui-label)!important;font-size:19px!important;line-height:1.4!important;font-weight:600!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-head h2::before {display:none!important;content:none!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-head p {margin:7px 0 0!important;color:var(--ui-text-muted,#667085)!important;font-size:12px!important;line-height:1.7!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-title-icon,.pl-market-title-icon) {display:grid!important;place-items:center!important;width:40px!important;height:40px!important;flex:0 0 40px!important;border:0!important;border-radius:10px!important;background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-title-icon,.pl-market-title-icon) svg {width:23px!important;height:23px!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-card {padding:18px 20px!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-btn,.pl-tab) {appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:35px!important;height:auto!important;padding:7px 12px!important;border:1px solid var(--ui-button-line,var(--ui-border))!important;border-radius:var(--ui-control-radius,8px)!important;background:var(--ui-button-fill,var(--ui-surface))!important;color:var(--ui-button-text,var(--ui-label))!important;-webkit-text-fill-color:currentColor!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:1.5!important;white-space:nowrap!important;text-decoration:none!important;box-shadow:none!important;transform:none!important;transition:background-color .12s,border-color .12s!important;cursor:pointer!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-btn,.pl-tab)>* {color:inherit!important;-webkit-text-fill-color:currentColor!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-btn,.pl-tab):hover:not(:disabled) {background:var(--ui-button-hover-fill,var(--ui-accent-soft))!important;color:var(--ui-button-hover-text,var(--ui-accent-hover))!important;border-color:var(--ui-button-hover-line,var(--ui-accent))!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-btn.primary {--ui-button-fill:var(--ui-accent);--ui-button-line:var(--ui-accent);--ui-button-text:#fff;--ui-button-hover-fill:var(--ui-accent-hover);--ui-button-hover-line:var(--ui-accent-hover);--ui-button-hover-text:#fff;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-btn.danger {--ui-button-text:var(--ui-danger-hover,#c64855);--ui-button-fill:var(--ui-danger-soft,#fff1f2);--ui-button-hover-text:var(--ui-danger-hover,#c64855);}
 html body.erp-system-ui #product-market #pluginAccessRevoke {--ui-button-fill:#ef4444!important;--ui-button-text:#fff!important;--ui-button-line:#ef4444!important;--ui-button-hover-fill:#dc2626!important;--ui-button-hover-text:#fff!important;--ui-button-hover-line:#dc2626!important;--erp-action-icon-color:currentColor!important}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-btn,.pl-tab):focus-visible {outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-btn:disabled {opacity:.55!important;cursor:not-allowed!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-inline-icon,[data-pl-icon] svg) {display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
 html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-tabs {gap:4px!important;padding:4px!important;background:var(--ui-field-surface)!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-tab {background:transparent!important;border-color:transparent!important;color:var(--ui-text-muted,#667085)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-tab.active {background:var(--ui-surface)!important;border-color:var(--ui-border)!important;color:var(--ui-accent-hover)!important;box-shadow:0 1px 3px rgb(15 23 42 / 5%)!important;}
 html body.erp-system-ui #product-market .pl-market-grid {grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr)!important;gap:14px!important;}
 html body.erp-system-ui #product-market .pl-section-title {display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 7px!important;font-size:14px!important;font-weight:600!important;color:var(--ui-label)!important;}
 html body.erp-system-ui #product-market .pl-section-title>.pl-inline-icon {color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui #product-market .pl-market-step {grid-template-columns:38px minmax(0,1fr)!important;gap:13px!important;padding:17px 0!important;border-color:var(--ui-border-soft)!important;}
 html body.erp-system-ui #product-market .pl-market-step i {width:36px!important;height:36px!important;border-radius:10px!important;background:color-mix(in srgb,#2563eb 9%,var(--ui-surface))!important;color:#2563eb!important;}
 html body.erp-system-ui #product-market .pl-market-step:nth-of-type(3) i {background:color-mix(in srgb,#7c3aed 9%,var(--ui-surface))!important;color:#7c3aed!important;}
 html body.erp-system-ui #product-market .pl-market-step:nth-of-type(4) i {background:color-mix(in srgb,#16a34a 9%,var(--ui-surface))!important;color:#16a34a!important;}
 html body.erp-system-ui #product-market .pl-market-step b {font-size:13px!important;font-weight:500!important;color:var(--ui-label)!important;}
 html body.erp-system-ui #product-market .pl-market-step p {margin-top:6px!important;color:var(--ui-text-muted,#667085)!important;font-size:12px!important;line-height:1.85!important;}
 html body.erp-system-ui #product-market .pl-market-preview {width:100%!important;max-width:none!important;background:var(--ui-field-surface)!important;}
 html body.erp-system-ui #product-market .pl-market-preview-head {padding-bottom:13px!important;margin-bottom:9px!important;border-color:var(--ui-border)!important;color:var(--ui-label)!important;}
 html body.erp-system-ui #product-market .pl-market-logo {background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important;border-radius:9px!important;width:34px!important;height:34px!important;}
 html body.erp-system-ui #product-market .pl-market-logo svg {width:19px!important;height:19px!important;}
 html body.erp-system-ui #product-market .pl-market-demo-row {grid-template-columns:100px minmax(0,1fr)!important;padding:8px 0!important;gap:10px!important;border-bottom:1px solid var(--ui-border-soft)!important;}
 html body.erp-system-ui #product-market .pl-market-demo-row>span {color:var(--ui-text-muted,#667085)!important;}
 html body.erp-system-ui #product-market .pl-market-demo-row>b {color:var(--ui-text)!important;font-weight:500!important;}
 html body.erp-system-ui #product-market .pl-market-demo-row>b.blue {color:var(--dm-link,#2563eb)!important;}
 html body.erp-system-ui #product-market .pl-market-demo-row>b.muted {color:var(--ui-text-muted,#667085)!important;}
 html body.erp-system-ui #product-market .pl-market-demo-btn {display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;background:var(--ui-accent)!important;color:#fff!important;height:38px!important;margin-top:13px!important;font-weight:500!important;}
 html body.erp-system-ui #product-market .pl-market-preview small {color:var(--ui-text-muted,#667085)!important;font-size:11px!important;line-height:1.8!important;margin-top:11px!important;}
 html body.erp-system-ui #product-market .pl-note {display:flex!important;align-items:flex-start!important;flex-wrap:wrap!important;gap:6px!important;padding:12px 14px!important;background:var(--ui-accent-soft)!important;border:1px solid color-mix(in srgb,var(--ui-accent) 18%,var(--ui-border))!important;color:var(--ui-text)!important;line-height:1.8!important;overflow-wrap:anywhere!important;}
 html body.erp-system-ui #product-market .pl-note>.pl-inline-icon {margin-top:3px!important;color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui #product-market .pl-connection-head {display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px!important;margin-bottom:15px!important;}
 html body.erp-system-ui #product-market #pluginAccessStatus {color:var(--ui-text-muted,#667085)!important;font-size:12px!important;}
 html body.erp-system-ui #product-market .pl-connection-form {display:grid!important;grid-template-columns:minmax(220px,1fr) auto auto auto!important;align-items:end!important;gap:10px!important;}
 html body.erp-system-ui #product-market .pl-connection-form .pl-field {min-width:0!important;}
 html body.erp-system-ui #product-market .pl-field>span {color:var(--ui-label)!important;font-weight:500!important;}
 html body.erp-system-ui #product-market .pl-field input {background:var(--ui-field-surface)!important;color:var(--ui-field-text)!important;border-color:var(--ui-border)!important;font-size:12px!important;font-family:inherit!important;}
 html body.erp-system-ui #product-market .pl-connection-note {color:var(--ui-text-muted,#667085)!important;line-height:1.8!important;margin-top:11px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-card {padding:20px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps {padding-bottom:18px!important;margin-bottom:18px!important;gap:13px!important;border-color:var(--ui-border-soft)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps i {width:34px!important;height:34px!important;border-radius:9px!important;background:var(--ui-field-surface)!important;border:1px solid var(--ui-border)!important;color:var(--ui-text-muted,#667085)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps .active i {background:var(--ui-accent-soft)!important;border-color:color-mix(in srgb,var(--ui-accent) 22%,var(--ui-border))!important;color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps span {color:var(--ui-label)!important;font-size:13px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps small {font-size:11px!important;color:var(--ui-text-muted,#667085)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps em {flex:1!important;max-width:72px!important;min-width:14px!important;background:var(--ui-border)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-layout {grid-template-columns:minmax(0,1fr) 252px!important;gap:18px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) :is(.pl-entry-label b,.pl-entry-guide h3,.pl-next-guide b,.pl-entry-guide p b,.pl-format-example code) {color:var(--ui-label)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) :is(.pl-entry-label>span,.pl-entry-guide p,.pl-entry-guide small,.pl-next-guide span,.pl-entry-guide details,.pl-editor-type,.pl-entry-actions>span) {color:var(--ui-text-muted,#667085)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-label b svg {color:var(--ui-accent-hover)!important;}
 /* Keep the SKU editor one neutral frame, including while typing. */
 html body.erp-system-ui #product-listing .pl-large-editor {--pl-editor-line:#e4e7ed;--pl-editor-focus-line:#aeb7c3;border:1px solid var(--pl-editor-line)!important;background:var(--ui-surface)!important;border-radius:10px!important;box-shadow:none!important;}
 html body.erp-system-ui #product-listing .pl-large-editor:focus-within {border-color:var(--pl-editor-focus-line)!important;box-shadow:0 0 0 2px rgb(100 116 139 / 8%)!important;}
 html body.erp-system-ui #product-listing #plText,
 html body.erp-system-ui #product-listing #plText:is(:focus,:focus-visible,:hover) {border:0!important;border-color:transparent!important;border-radius:0!important;outline:0!important;box-shadow:none!important;}
 html body.erp-system-ui #product-listing .pl-large-editor>.pl-editor-top {border-bottom:1px solid var(--pl-editor-line)!important;}
 html body.erp-system-ui #product-listing .pl-large-editor>.pl-editor-bottom {border-top:1px solid var(--pl-editor-line)!important;}
 html[data-erp-mode=dark] body.erp-system-ui #product-listing .pl-large-editor {--pl-editor-line:#3b4654;--pl-editor-focus-line:#6d7c8f;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-editor-top {background:var(--ui-field-surface)!important;border-color:var(--ui-border-soft)!important;padding:10px!important;gap:8px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-input {background:var(--ui-surface)!important;color:var(--ui-field-text)!important;padding:16px!important;line-height:1.85!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-editor-bottom {background:var(--ui-field-surface)!important;border-color:var(--ui-border-soft)!important;color:var(--ui-text-muted,#667085)!important;padding:11px 13px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-editor-bottom strong {color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) :is(.pl-entry-guide,.pl-format-example,.pl-next-guide) {background:var(--ui-field-surface)!important;border-color:var(--ui-border)!important;border-radius:10px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-guide {padding:16px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-guide p {line-height:1.9!important;margin:13px 0!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-guide details {padding-top:12px!important;line-height:1.8!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-next-guide {gap:9px!important;padding:12px!important;margin-top:15px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-actions {border-color:var(--ui-border-soft)!important;padding-top:16px!important;margin-top:18px!important;gap:12px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-toolbar {gap:12px!important;padding:14px 0!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-toolbar>div:last-child {display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
 html body.erp-system-ui #product-listing-records .pl-record-summary {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;}
 html body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat {
  --record-stat-accent:var(--record-state-blue,#2b8ee9);--record-stat-deep:#1672c4;--record-stat-ink:var(--record-stat-accent);--record-stat-soft:#e7f3fe;--erp-action-icon-color:currentColor!important;
  appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  min-height:36px!important;padding:8px 10px!important;border:1px solid color-mix(in srgb,var(--record-stat-ink) 22%,var(--ui-surface))!important;
  border-radius:8px!important;background:var(--record-stat-soft)!important;
  color:var(--record-stat-ink)!important;-webkit-text-fill-color:currentColor!important;font:500 12px/1.4 var(--erp-cn-sans,Arial,"Microsoft YaHei",sans-serif)!important;
  white-space:nowrap!important;cursor:pointer!important;box-shadow:none!important;transition:background-color var(--ui-motion),border-color var(--ui-motion),color var(--ui-motion)!important;
 }
 html body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat[data-record-status="done"] {--record-stat-accent:var(--record-state-success,#22a447);--record-stat-deep:#15803d;--record-stat-soft:#eaf8ee;}
 html body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat[data-record-status="failed"] {--record-stat-accent:var(--record-state-failed,#ef4444);--record-stat-deep:#dc2626;--record-stat-soft:#fff0f0;}
 html body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat:hover {
  background:color-mix(in srgb,var(--record-stat-ink) 12%,var(--ui-surface))!important;
  border-color:color-mix(in srgb,var(--record-stat-ink) 42%,var(--ui-surface))!important;
 }
 html body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat[aria-pressed="true"] {background:var(--record-stat-accent)!important;border-color:var(--record-stat-accent)!important;color:#fff!important;}
 html body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat[aria-pressed="true"]:hover {background:var(--record-stat-deep)!important;border-color:var(--record-stat-deep)!important;}
 html body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat:focus-visible {outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;}
 html body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat>svg {flex:0 0 16px!important;width:16px!important;height:16px!important;color:inherit!important;stroke:currentColor!important;}
 html body.erp-system-ui #product-listing-records .pl-record-stat strong {font-family:inherit!important;font-size:12px!important;font-weight:600!important;line-height:inherit!important;font-variant-numeric:tabular-nums!important;color:inherit!important;}
 html[data-erp-mode="dark"] body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat {--record-stat-ink:#6bb0f0;--record-stat-soft:color-mix(in srgb,var(--record-stat-accent) 10%,var(--ui-surface));}
 html[data-erp-mode="dark"] body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat[data-record-status="done"] {--record-stat-ink:#78e396;--record-stat-soft:color-mix(in srgb,var(--record-stat-accent) 10%,var(--ui-surface));}
 html[data-erp-mode="dark"] body.erp-system-ui #product-listing-records .pl-record-summary .pl-record-stat[data-record-status="failed"] {--record-stat-ink:#f26969;--record-stat-soft:color-mix(in srgb,var(--record-stat-accent) 10%,var(--ui-surface));}
 html body.erp-system-ui #product-listing-records .pl-record-table thead th:nth-child(n+2),
 html body.erp-system-ui #product-listing-records .pl-record-table .pl-record-row>td:nth-child(n+2) {text-align:center!important;}
 @media(max-width:760px) {
  html body.erp-system-ui #product-listing-records .pl-record-table .pl-record-row>td:nth-child(n+2) {align-items:center!important;}
  html body.erp-system-ui #product-listing-records .pl-record-table .pl-record-row>td:nth-child(n+2) .pl-status {align-self:center!important;}
 }
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-table :is(th,td) {border-color:var(--ui-border-soft)!important;padding-top:13px!important;padding-bottom:13px!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-table th {background:var(--ui-field-surface)!important;color:var(--ui-table-heading)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-table td {color:var(--ui-text)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) :is(.pl-record-detail,.pl-record-detail-grid) {background:var(--ui-field-surface)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-detail-grid :is(span,b) {color:var(--ui-text)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-status.done {background:color-mix(in srgb,var(--dm-positive,#16a34a) 10%,var(--ui-surface))!important;color:var(--dm-positive,#15803d)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-status.pending {background:var(--ui-accent-soft)!important;color:var(--ui-accent-hover)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-status.failed {background:var(--ui-danger-soft)!important;color:var(--ui-danger-hover)!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-expand .ol-icon {transition:transform .12s!important;}
 html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-expand[aria-expanded=true] .ol-icon {transform:rotate(90deg)!important;}
 html[data-erp-mode=dark] body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-btn.primary {--ui-button-text:#171717!important;--ui-button-hover-text:#171717!important;}
 html[data-erp-mode=dark] body.erp-system-ui #product-market .pl-market-demo-btn {color:#171717!important;}
 html[data-erp-mode=dark] body.erp-system-ui #product-market .pl-market-step i {color:#93c5fd!important;}
 html[data-erp-mode=dark] body.erp-system-ui #product-market .pl-market-step:nth-of-type(3) i {color:#c4b5fd!important;}
 html[data-erp-mode=dark] body.erp-system-ui #product-market .pl-market-step:nth-of-type(4) i {color:#86efac!important;}
 @media(max-width:1100px) {html body.erp-system-ui #product-market .pl-connection-form {grid-template-columns:minmax(0,1fr) auto!important;}html body.erp-system-ui #product-market .pl-connection-form .pl-field {grid-column:1 / -1!important;}html body.erp-system-ui #product-market .pl-connection-form .pl-btn:first-of-type {grid-column:1 / -1!important;}}
 @media(max-width:900px) {html body.erp-system-ui #product-market .pl-market-grid {grid-template-columns:minmax(0,1fr)!important;}html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-layout {grid-template-columns:minmax(0,1fr)!important;}html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-guide {display:block!important;}html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-head {align-items:stretch!important;}html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-head-tools {width:100%!important;}}
 @media(max-width:640px) {
  html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) :is(.pl-head,.pl-card,.pl-entry-card) {padding:14px!important;}
  html body.erp-system-ui :is(#product-market,:is(#product-listing,#product-listing-records)) .pl-head h2 {font-size:17px!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps {gap:8px!important;align-items:flex-start!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps>div {flex:1!important;min-width:0!important;flex-direction:column!important;align-items:center!important;gap:7px!important;text-align:center!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps em {display:none!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps span {font-size:12px!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-steps small {font-size:10px!important;line-height:1.6!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-editor-top {flex-wrap:wrap!important;justify-content:stretch!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-editor-type {flex:1 1 100%!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-editor-top>.pl-btn {flex:1!important;min-width:0!important;padding:7px 6px!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-actions {flex-wrap:wrap!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-actions>span {order:3!important;flex:1 1 100%!important;text-align:center!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-entry-actions>.pl-btn {flex:1!important;}
  html body.erp-system-ui #product-market .pl-market-step {gap:10px!important;}
  html body.erp-system-ui #product-market .pl-connection-form {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  html body.erp-system-ui #product-market .pl-connection-form .pl-btn {padding:8px 6px!important;min-width:0!important;}
  html body.erp-system-ui #product-market .pl-connection-form input {font-size:16px!important;}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-toolbar {align-items:flex-start!important;flex-wrap:wrap!important;}
 }
}


/* Record labels use the same solid semantic colors as the selected status buttons. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #product-listing-records {
  --record-state-blue:#2b8ee9;--record-state-success:#22a447;--record-state-failed:#ef4444;--record-state-partial:#d97706;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #product-listing-records .pl-record-table .pl-status {
  background:var(--record-state-blue)!important;border:1px solid transparent!important;border-radius:6px!important;
  color:#fff!important;-webkit-text-fill-color:currentColor!important;font-weight:500!important;white-space:nowrap!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #product-listing-records .pl-record-table .pl-status.done {background:var(--record-state-success)!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #product-listing-records .pl-record-table .pl-status.failed {background:var(--record-state-failed)!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #product-listing-records .pl-record-table .pl-status.partial {background:var(--record-state-partial)!important;}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #product-listing-records .pl-record-table .pl-status svg {color:inherit!important;stroke:currentColor!important;fill:none!important;}
}

/* ===== workspace-finish.css ===== */
/* Shared spacing and icon geometry. Existing theme and module palettes own all colors. */
html body.erp-system-ui {--workspace-gap:14px;--workspace-radius:10px;}

@media screen {
 @layer erpColorMode.overrides {
  html body.erp-system-ui.erp-beauty-v3 .main>.top {border-radius:var(--workspace-radius)!important;}

  /* Navigation geometry leaves each theme's active colors intact. */
  html body.erp-system-ui.erp-beauty-v3 aside.side .nav button {border-radius:7px!important;}
  html body.erp-system-ui.erp-beauty-v3 aside.side .nav :is(.nav-ico,.nav-main-icon,.nav-sub-icon) {width:18px!important;height:18px!important;flex:0 0 18px!important;}
  html body.erp-system-ui.erp-beauty-v3 aside.side .nav :is(.nav-ico,.nav-main-icon,.nav-sub-icon) svg {width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
  html body.erp-system-ui.erp-beauty-v3 aside.side .nav .nav-submenu .nav-sub-icon svg {width:16px!important;height:16px!important;}
  html body.erp-system-ui.erp-beauty-v3 .erp-head-tool {border-radius:8px!important;}
  html body.erp-system-ui.erp-beauty-v3 .erp-head-tool svg {width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important;}

  /* Shared spacing across dashboard, orders, purchasing and reporting. */
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(
   .panel,.pm-shell,.pc-shell,.wh-card,.sa-card,.pl-card,.pl-entry-card,.pl-record-card,.wm-card,.ar-card,.ar-filter-card,.ar-table-card,.rf-section,.quality-erp-card,.shop-manage-panel,
   .lc-card,.lc-filter-card,.office-table-wrap,.shop-table-wrap,.account-table-wrap-v31,
   .finance-v3278-board,.finance-erp-card,.finance-table-card,.fin-panel,.fin-calculation,
   .screen-card,.ca-ref-chart-card,.ca-conv-card,.ca-history-table-card,.oa-card,
   .returns-table-card-v3300,.account-settings-card-v3250
  ) {border-radius:var(--workspace-radius)!important;}
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(
   .screen-metric,.ca-ref-kpi,.ca-conv-kpi,.oa-kpi,.returns-kpi-v3300,.office-metric,.account-metric-v31,.fin-kpi,.fin-fee-card
  ) {border-radius:var(--workspace-radius)!important;}
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(
   .screen-metric-grid,.screen-main-grid,.ca-ref-kpis,.oa-kpis,.office-metrics,.account-metrics-v31,.fin-secondary-grid
  ) {gap:var(--workspace-gap)!important;}
  html body.erp-system-ui.erp-beauty-v3 #dashboard :is(.screen-main-grid,.screen-top-card) {margin-top:var(--workspace-gap)!important;}
  html body.erp-system-ui.erp-beauty-v3 #financeOverviewRoot .fin-panel {margin:var(--workspace-gap) 0!important;}
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.dash-toolbar,.finance-toolbar,.pc-toolbar,.pl-record-filters,.office-filter,.lc-filter,.wh-scan-search) {border-radius:var(--workspace-radius)!important;}

  /* Table typography retains the existing state and row colors. */
  html body.erp-system-ui.erp-beauty-v3 :is(.page,.fb-dialog,.pc-dialog,.pm-portal) :is(
   .pm-table,.legacy-order-table,.sa-table,.wh-table,.pc-table,.shop-table,.simple-table,.pl-record-table,.fb-table,.screen-top-table,.office-table-wrap table,#procurement-app table,.ar-table,.lc-table,.quality-table
  ) :is(th,td) {font-variant-numeric:tabular-nums;transition:none!important;}
  html body.erp-system-ui.erp-beauty-v3 :is(.page,.fb-dialog,.pc-dialog,.pm-portal) :is(
   .pm-table,.legacy-order-table,.sa-table,.wh-table,.pc-table,.shop-table,.simple-table,.pl-record-table,.fb-table,.screen-top-table,.office-table-wrap table,#procurement-app table,.ar-table,.lc-table,.quality-table
  ) thead th {font-size:12px!important;font-weight:600!important;}

  /* Small, consistent page icons and labels; figures retain their existing size. */
  /* AI subpages and shop analytics use the ERP heading component and its tones. */
  html body.erp-system-ui :is(#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shop-analytics) .erp-v2-page-heading>.erp-v2-icon {
   box-sizing:border-box!important;
   color:var(--v2-icon,var(--ui-accent-hover))!important;-webkit-text-fill-color:currentColor!important;
   background:linear-gradient(145deg,var(--ui-surface),var(--v2-wash,var(--ui-accent-soft)))!important;
   border:1px solid var(--v2-icon-line,var(--ui-border))!important;box-shadow:none!important;
  }
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.erp-overview-heading,.mg-heading,.wh-heading,.sa-heading) {gap:10px!important;margin-bottom:14px!important;}
  html body.erp-system-ui.erp-beauty-v3 :is(#finance,#finance-report)>.mg-heading h2,
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.erp-overview-heading,.mg-heading,.wh-heading,.sa-heading) h2 {font-size:18px!important;line-height:1.5!important;font-weight:600!important;}
  html body.erp-system-ui.erp-beauty-v3 :is(.erp-overview-heading,.mg-heading)>.erp-workspace-page-icon+div {flex:1;min-width:0;}
  html body.erp-system-ui.erp-beauty-v3 :is(#finance,#finance-report)>.mg-heading .fin-page-icon,
  html body.erp-system-ui.erp-beauty-v3 :is(.erp-workspace-page-icon,.erp-v2-page-heading>.erp-v2-icon,.wh-heading-icon,.sa-heading-icon,.fin-page-icon,.pl-title-icon,.pl-market-title-icon,.profit-heading-icon-v447,.wm-heading-icon,.ar-heading-icon,.lc-heading-icon,.erp-caption>.erp-color-icon) {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;width:34px!important;height:34px!important;border-radius:9px!important;}
  html body.erp-system-ui.erp-beauty-v3 :is(#finance,#finance-report)>.mg-heading .fin-page-icon svg,
  html body.erp-system-ui.erp-beauty-v3 :is(.erp-workspace-page-icon,.erp-v2-page-heading>.erp-v2-icon,.wh-heading-icon,.sa-heading-icon,.fin-page-icon,.pl-title-icon,.pl-market-title-icon,.profit-heading-icon-v447,.wm-heading-icon,.ar-heading-icon,.lc-heading-icon,.erp-caption>.erp-color-icon) svg {width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.pl-head,.wm-heading,.ar-heading,.lc-heading,.profit-heading-v447) h2 {font-size:18px!important;line-height:1.5!important;font-weight:600!important;}
  html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-v2-page-heading,.erp-overview-heading,.mg-heading) p {line-height:1.6!important;font-size:12px!important;}
  html body.erp-system-ui.erp-beauty-v3 .screen-metric-top>span {display:inline-flex;align-items:center;gap:8px;}
  html body.erp-system-ui.erp-beauty-v3 .screen-metric-top .metric-dot {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 27px!important;width:27px!important;height:27px!important;margin:0!important;border-radius:7px!important;}
  html body.erp-system-ui.erp-beauty-v3 .metric-dot svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
  html body.erp-system-ui.erp-beauty-v3 :is(.screen-metric-value,.ca-ref-kpi>b,.oa-kpi>b,.fin-kpi strong) {font-variant-numeric:tabular-nums;letter-spacing:-.2px;}

  /* Fields keep the current radius and keyboard focus treatment. */
  html body.erp-system-ui.erp-beauty-v3 :is(.erp-choice-trigger,.erp-select-button,.erp-date-range,.pc-date-range,.wh-date-range) {border-radius:var(--ui-control-radius)!important;}
  html body.erp-system-ui.erp-beauty-v3 :is(.page,.modal-mask,.pm-portal,.pc-dialog,.lc-dialog,.erp-theme-drawer) :is(button,a,input,select,textarea):focus-visible {outline:2px solid var(--ui-accent)!important;outline-offset:2px!important;}

  /* Dialog dimensions and opening behavior belong to their original modules. */
  html body.erp-system-ui.erp-beauty-v3 :is(.modal-mask>.modal,.pc-dialog,.lc-dialog,.office-dialog,.erp-message-dialog,.erp-v5-dialog:not(.erp-label-result-host),#pm-dialog) {border-radius:var(--ui-dialog-radius)!important;}
  html body.erp-system-ui.erp-beauty-v3 :is(.modal-mask,.erp-theme-mask,.erp-mobile-backdrop) {backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
  html body.erp-system-ui.erp-beauty-v3 dialog:not(.erp-label-result-host)::backdrop {backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
  html body.erp-system-ui.erp-beauty-v3 :is(.erp-appearance-option,.erp-theme-option) {border-radius:9px!important;}
  html body.erp-system-ui.erp-beauty-v3 :is(.erp-list-scroll,.pm-table-wrap,.pc-table-wrap,.wh-table-wrap,.sa-table-wrap,.fb-scroll,.erp-theme-drawer) {scrollbar-width:thin;}
  html body.erp-system-ui.erp-beauty-v3 #dashboard .dashboard-fx-bar {margin-bottom:14px!important;}

  @media(min-width:901px) {
   html body.erp-system-ui.erp-beauty-v3 .main .page :is(.screen-metric,.ca-ref-kpi) {padding:14px!important;min-height:104px!important;}
  }
  @media(max-width:900px) {
   html body.erp-system-ui.erp-beauty-v3 {--workspace-gap:10px!important;}
   html body.erp-system-ui.erp-beauty-v3 .main .page :is(.erp-overview-heading,.mg-heading) {flex-wrap:wrap!important;}
   html body.erp-system-ui.erp-beauty-v3 :is(#finance,#finance-report)>.mg-heading .fin-page-icon,
   html body.erp-system-ui.erp-beauty-v3 :is(.erp-workspace-page-icon,.erp-v2-page-heading>.erp-v2-icon,.wh-heading-icon,.sa-heading-icon,.fin-page-icon,.pl-title-icon,.pl-market-title-icon,.profit-heading-icon-v447,.wm-heading-icon,.ar-heading-icon,.lc-heading-icon,.erp-caption>.erp-color-icon) {width:32px!important;height:32px!important;flex-basis:32px!important;}
  }
  @media(prefers-reduced-motion:reduce) {
   html body.erp-system-ui.erp-beauty-v3 :is(.btn,.pm-btn,.erp-btn,.ca-ref-btn,aside.side .nav button) {transition:none!important;animation:none!important;}
  }
 }
}

/* ===== action-icons.css ===== */
/* Static action icons: no scripts, DOM scans, network font or theme overrides. */
@layer erpComponents {
 html body.erp-system-ui :where(button[data-erp-icon]):not([hidden],.erp-v5-action-icon):not(:has(svg,img)):not(table button),
 html body.erp-system-ui #shops .shop-row-actions :where(button[data-erp-icon]):not([hidden],.erp-v5-action-icon):not(:has(svg,img)) {column-gap:0;}
 html body.erp-system-ui :where(button[data-erp-icon]):not([hidden],.erp-v5-action-icon):not(:has(svg,img)):not(table button)::before,
 html body.erp-system-ui #shops .shop-row-actions :where(button[data-erp-icon]):not([hidden],.erp-v5-action-icon):not(:has(svg,img))::before {
  content:"";display:inline-block;box-sizing:border-box;width:15px;height:15px;flex:0 0 15px;
  margin-inline-end:6px;vertical-align:-2px;pointer-events:none;background:currentColor;
  mask:var(--erp-static-action-icon) center/contain no-repeat;
  -webkit-mask:var(--erp-static-action-icon) center/contain no-repeat;
 }
 html body.erp-system-ui button[data-erp-icon="search"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m21%2021-5-5%20M17%2010a7%207%200%201%201-14%200%207%207%200%200%201%2014%200%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="refresh"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207a8%208%200%200%200-14-2L3%208%20M3%203v5h5%20M4%2017a8%208%200%200%200%2014%202l3-3%20M21%2021v-5h-5%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="reset"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010h7%20M3%2010V3%20M3%2010a9%209%200%201%201%200%206%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="plus"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="save"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203h13l4%204v14H3V3z%20M7%203v6h10V3%20M7%2021v-8h10v8%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="check"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%204%204L19%206%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="close"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%206%2012%2012M6%2018%2018%206%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="download"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12m-4-4%204%204%204-4M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="upload"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2016V3m-4%204%204-4%204%204M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="print"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%209V3h12v6M6%2018H3V9h18v9h-3M6%2014h12v7H6zM17%2012h.01%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="settings"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h16M4%2017h16M8%204v6M16%2014v6%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="history"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010V4m0%206h6M3%2010a9%209%200%201%201%201%208M12%207v6l4%202%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="document"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h10l4%204v14H5zM14%203v5h5M8%2012h8M8%2016h6%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="edit"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M13%205%2018%2010M4%2015%2016%203a2%202%200%200%201%205%205L9%2020l-6%201z%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="shop"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2010v10h16V10M3%209l2-5h14l2%205M3%209h18M9%2020v-6h6v6%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="user"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a4%204%200%201%200%200%208%204%204%200%200%200%200-8M4%2021v-2a8%208%200%200%201%2016%200v2%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="wallet"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h14a2%202%200%200%201%202%202v10a2%202%200%200%201-2%202H4a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h12M20%2010h-5a2.5%202.5%200%200%200%200%205h5M15%2012.5h.01%22%2F%3E%3C%2Fsvg%3E");}
 @media print {html body.erp-system-ui button[data-erp-icon]::before {display:none!important;}}
}

@layer erpComponents {
 html body.erp-system-ui button[data-erp-icon="calendar"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%203v4M8%203v4M3%2011h18M8%2015h2m4%200h2%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="copy"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%2212%22%20height%3D%2213%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%208V5a2%202%200%200%200-2-2H5a2%202%200%200%200-2%202v9a2%202%200%200%200%202%202h3%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="trash"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7M14%2010v7%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="truck"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M1%203h14v13H1zM15%208h4l3%204v4h-7%22%2F%3E%3Ccircle%20cx%3D%225.5%22%20cy%3D%2217.5%22%20r%3D%222.5%22%2F%3E%3Ccircle%20cx%3D%2218.5%22%20cy%3D%2217.5%22%20r%3D%222.5%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="percent"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m19%205-14%2014%22%2F%3E%3Ccircle%20cx%3D%226.5%22%20cy%3D%226.5%22%20r%3D%222.5%22%2F%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%2217.5%22%20r%3D%222.5%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="tag"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2013%2012%2021%203%2012V3h9l9%209a1%201%200%200%201-1%201Z%22%2F%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%227.5%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="route"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M9%206h7a4%204%200%200%201%200%208H8a4%204%200%200%200%200%208h7%22%2F%3E%3C%2Fsvg%3E");}
 html body.erp-system-ui button[data-erp-icon="plane"] {--erp-static-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%202a1.4%201.4%200%200%201%202%202l-7%207%204%209-2%202-7-7-5%204H2v-3l5-5-6-6%202-2%209%204Z%22%2F%3E%3C%2Fsvg%3E");}
}

/* Semantic icon colors keep the existing button geometry and captions. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(button,a.erp-btn,a.pl-btn) {--erp-action-icon-color:#1677ff}
 html body.erp-system-ui :is(button[data-erp-icon="refresh"],button[data-erp-icon="check"],button[data-erp-icon="plus"],button[data-erp-icon="save"],button[data-action^="sync"],button[data-action="reload"],#pullNewOrdersBtn,#syncAllBtn,.erp-sync-log-tool-v3237) {--erp-action-icon-color:#16a34a}
 html body.erp-system-ui :is(button[data-erp-icon="reset"],button[data-erp-icon="history"],button[data-erp-icon="print"],button[data-action="reset"]) {--erp-action-icon-color:#7c3aed}
 html body.erp-system-ui :is(button[data-erp-icon="download"],button[data-erp-icon="export"],button[data-action="export"]) {--erp-action-icon-color:#0891b2}
 html body.erp-system-ui button[data-action="batch-price"] {--erp-action-icon-color:#d97706}
 html body.erp-system-ui button[data-action="batch-archive"] {--erp-action-icon-color:#7c3aed}
 html body.erp-system-ui button[data-action="batch-restore"] {--erp-action-icon-color:#16a34a}
 html body.erp-system-ui :is(button[data-erp-icon="edit"],button[data-erp-icon="settings"],button[data-action="row-edit"],.theme-settings-btn) {--erp-action-icon-color:#d97706}
 html body.erp-system-ui :is(button[data-erp-icon="trash"],button[data-erp-icon="delete"],button[data-action*="delete"],button[data-action*="remove"],button[data-office-action="delete"],button.danger) {--erp-action-icon-color:#ef4444}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#dashboard,#orders,#products,#procurement,#returns,#finance,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#product-listing,#product-listing-records,#product-market,#click-ads,#shops,#shop-analytics,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#refine-collect,#refine-records,#refine-tasks,.modal-mask,dialog) :is(button,a.erp-btn,a.pl-btn):not(.erp-password-toggle,.erp-page-tab-open,.erp-page-tab-close,.erp-select-button,.erp-choice-trigger,.ol-choice-trigger):not(.nav button):not(.erp-pagination button):not(.pc-calendar button)>svg {color:var(--erp-action-icon-color,#1677ff)!important;stroke:currentColor!important}
 html body.erp-system-ui :is(button[data-erp-icon],button.erp-v5-action-icon)::before {background-color:var(--erp-action-icon-color,#1677ff)!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#dashboard,#orders,#products,#procurement,#returns,#finance,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#product-listing,#product-listing-records,#product-market,#click-ads,#shops,#shop-analytics,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#refine-collect,#refine-records,#refine-tasks,.modal-mask,dialog) :is(button.primary,button.erp-primary,button.pm-primary,button.pc-primary,button.sa-primary,button.wh-primary,button.lc-primary,button.rc-primary,button.auth-submit,button.pl-btn.primary,button.returns-refresh-v3300,button.weight-confirm-btn,button.order-note-save,button.cancel-save-btn,button.system-confirm-ok,button.profit-primary-btn-v3249,a.pl-btn.primary):not(.erp-password-toggle,.erp-page-tab-open,.erp-page-tab-close,.erp-select-button,.erp-choice-trigger,.ol-choice-trigger):not(.nav button):not(.erp-pagination button):not(.pc-calendar button)>svg {color:inherit!important;stroke:currentColor!important}
 html body.erp-system-ui :is(button.primary,button.erp-primary,button.pm-primary,button.pc-primary,button.sa-primary,button.wh-primary,button.lc-primary,button.rc-primary,button.auth-submit,button.pl-btn.primary,button.returns-refresh-v3300,button.weight-confirm-btn,button.order-note-save,button.cancel-save-btn,button.system-confirm-ok,button.profit-primary-btn-v3249)[data-erp-icon]::before {background-color:currentColor!important}
 html body.erp-system-ui :is(#orders,.print-result-dialog) .print-label-btn {--erp-action-icon-color:#fff}
 html body.erp-system-ui #dashboard #dashFxRefresh {--erp-action-icon-color:currentColor!important}
 html body.erp-system-ui :is(.main .page,.modal-mask,dialog) button:is(.active,.is-active,.selected,[aria-selected="true"],[aria-pressed="true"]) {--erp-action-icon-color:currentColor!important}
}

/* ===== page-tabs.css ===== */
/* Keep the existing header a direct main child: mobile, account and theme tools use it. */
@layer erpColorMode.overrides {
 html body.erp-system-ui .main>.top {
  position:sticky!important;top:0!important;z-index:80!important;margin-bottom:0!important;
  background:var(--ui-surface,#fff)!important;
 }
 /* Adjacent sticky rows share one outer frame; direct-child hooks remain intact. */
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top {
  border:1px solid var(--ui-border,#e3e9f1)!important;border-bottom:0!important;
  border-radius:0!important;box-shadow:none!important;
 }
 html body.erp-system-ui .main>.erp-tab-strip {
  box-sizing:border-box!important;position:sticky!important;top:var(--erp-header-height,52px)!important;z-index:79!important;
  display:flex!important;align-items:flex-end!important;flex-wrap:nowrap!important;gap:4px!important;
  width:auto!important;min-width:0!important;max-width:none!important;height:40px!important;min-height:40px!important;
  margin:0 -12px 14px!important;padding:4px 12px 0!important;overflow-x:auto!important;overflow-y:hidden!important;
  white-space:nowrap!important;background:var(--ui-surface,#fff)!important;border:1px solid var(--ui-border,#e3e9f1)!important;border-top:1px solid var(--ui-border-soft,#edf1f6)!important;
  border-radius:0!important;box-shadow:none!important;scrollbar-width:none!important;overscroll-behavior-x:contain;
 }
 /* Header navigation uses the sidebar's typography and black text. */
 html body.erp-system-ui .main>.top .top-crumb {font-family:var(--erp-cn-sans,Arial,"Microsoft YaHei",sans-serif)!important;font-size:11.5px!important;font-weight:400!important;color:#000!important;-webkit-text-fill-color:#000!important}
 html body.erp-system-ui .main>.top .top-crumb :is(span,b,#title) {font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;color:#000!important;-webkit-text-fill-color:#000!important}
 html body.erp-system-ui .main>.top .top-crumb #title {font-weight:600!important}
 html body.erp-system-ui .main>.erp-tab-strip .erp-page-tab-open {font-family:var(--erp-cn-sans,Arial,"Microsoft YaHei",sans-serif)!important;font-size:11.5px!important;font-weight:400!important}
 html body.erp-system-ui .main>.erp-tab-strip .erp-page-tab-label {color:#000!important;-webkit-text-fill-color:#000!important}
 html[data-erp-mode="dark"] body.erp-system-ui .main>.top .top-crumb,
 html[data-erp-mode="dark"] body.erp-system-ui .main>.top .top-crumb :is(span,b,#title),
 html[data-erp-mode="dark"] body.erp-system-ui .main>.erp-tab-strip .erp-page-tab-label {color:#e8e8e8!important;-webkit-text-fill-color:#e8e8e8!important}
 html body.erp-system-ui .main>.top .erp-plugin-download {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;gap:7px!important;height:34px!important;min-height:34px!important;min-width:34px!important;margin:0!important;padding:0 11px!important;border:1px solid var(--ui-accent,#1677ff)!important;border-radius:var(--ui-control-radius,8px)!important;background:var(--ui-accent,#1677ff)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font:400 12px/1.4 Arial,"Microsoft YaHei",sans-serif!important;text-decoration:none!important;white-space:nowrap!important;cursor:pointer!important;box-shadow:none!important}
 html body.erp-system-ui .main>.top .erp-plugin-download:hover {background:var(--ui-accent-hover,#0958d9)!important;border-color:var(--ui-accent-hover,#0958d9)!important;color:#fff!important}
 html body.erp-system-ui .main>.top .erp-plugin-download:focus-visible {outline:2px solid var(--ui-accent,#1677ff)!important;outline-offset:2px!important}
 html body.erp-system-ui .main>.top .erp-plugin-download>svg {display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 html body.erp-system-ui .main>.top .erp-plugin-download[hidden] {display:none!important}
 html body.erp-system-ui .main>.erp-tab-strip::-webkit-scrollbar {display:none!important}
 html body.erp-system-ui .erp-page-tab {
  box-sizing:border-box!important;position:relative!important;display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;gap:2px!important;
  height:35px!important;max-width:240px!important;padding:0 4px 0 0!important;
  border:1px solid transparent!important;border-bottom:0!important;border-radius:7px 7px 0 0!important;
  background:transparent!important;color:var(--ui-text,#25364d)!important;
 }
 html body.erp-system-ui .erp-page-tab:hover {background:var(--ui-field-surface,#fbfcfe)!important}
 /* A short, quiet divider separates adjacent pages without boxing every tab. */
 html body.erp-system-ui .erp-page-tab+.erp-page-tab::before {
  content:""!important;position:absolute!important;left:-3px!important;top:50%!important;
  width:1px!important;height:14px!important;transform:translateY(-50%)!important;
  background:var(--ui-border,#e3e9f1)!important;pointer-events:none!important;
 }
 html body.erp-system-ui .erp-page-tab:is(.is-current,:hover)::before,
 html body.erp-system-ui .erp-page-tab:is(.is-current,:hover)+.erp-page-tab::before {opacity:0!important}
 html body.erp-system-ui .erp-page-tab.is-current {
  color:var(--ui-accent-hover,#168b9d)!important;background:var(--ui-accent-soft,#edf9fb)!important;
  border-color:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui .erp-page-tab :is(.erp-page-tab-open,.erp-page-tab-close) {
  appearance:none!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  height:30px!important;min-height:30px!important;min-width:0!important;margin:0!important;padding:0 9px!important;
  border:0!important;border-radius:5px!important;background:transparent!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;
  box-shadow:none!important;font:inherit!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;cursor:pointer!important;
  text-align:center!important;white-space:nowrap!important;transform:none!important;
 }
 html body.erp-system-ui .erp-page-tab .erp-page-tab-open {flex:1 1 auto!important;overflow:hidden!important}
 html body.erp-system-ui .erp-page-tab-label {display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:inherit!important;line-height:20px!important}
 html body.erp-system-ui .erp-page-tab-icon {display:inline-flex!important;flex:0 0 15px!important;width:15px!important;height:15px!important;color:inherit!important}
 html body.erp-system-ui .erp-page-tab svg {display:block!important;width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;color:inherit!important}
 html body.erp-system-ui .erp-page-tab .erp-page-tab-close {display:inline-flex!important;align-self:center!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;width:24px!important;height:30px!important;min-height:30px!important;padding:0!important;line-height:1!important;color:var(--ui-text-muted,var(--ui-text,#667085))!important}
 html body.erp-system-ui .erp-page-tab .erp-page-tab-open {align-self:center!important;align-items:center!important;line-height:20px!important}
 html body.erp-system-ui .erp-page-tab :is(.erp-page-tab-icon,.erp-page-tab-close)>svg {display:block!important;width:15px!important;height:15px!important;margin:0!important;flex:0 0 15px!important;vertical-align:middle!important}
 html body.erp-system-ui .erp-page-tab .erp-page-tab-close:hover {color:var(--ui-accent-hover,#168b9d)!important;background:color-mix(in srgb,var(--ui-accent,#20aec2) 16%,var(--ui-surface,#fff))!important}
 html body.erp-system-ui .erp-page-tab button:focus-visible {outline:2px solid var(--ui-accent,#20aec2)!important;outline-offset:-2px!important}
 html body.erp-system-ui.auth-locked .erp-tab-strip {display:none!important}
 @media(max-width:900px) {
  html body.erp-system-ui .main>.top .erp-plugin-download {width:34px!important;padding:0!important}
  html body.erp-system-ui .main>.top .erp-plugin-download>span {display:none!important}

  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top {margin-bottom:0!important}
  html body.erp-system-ui .main>.erp-tab-strip {margin:0 -12px 14px!important;padding:4px 12px 0!important;height:42px!important;min-height:42px!important}
  html body.erp-system-ui .erp-page-tab {height:37px!important;max-width:200px!important}
  html body.erp-system-ui .erp-page-tab :is(.erp-page-tab-open,.erp-page-tab-close) {height:34px!important;min-height:34px!important}
  html body.erp-system-ui .erp-page-tab .erp-page-tab-close {width:30px!important;flex-basis:30px!important}
 }
 @media print {html body.erp-system-ui .main>:is(.top,.erp-tab-strip) {display:none!important}}
}

/* ===== page-tools.css ===== */
/* Page names live in the fixed header/tabs; page bodies start with their tools. */
/* Width belongs to the control, never its flex basis: some field parents are columns. */
@layer erpColorMode.overrides {
 html body.erp-system-ui .main .page :is(.erp-overview-heading,.mg-heading,.wh-heading,.profit-heading-v447),
 html body.erp-system-ui .main .page .erp-v2-page-heading:not(:has(.ar-heading-actions)),
 html body.erp-system-ui #orders .toolbar-top,
 html body.erp-system-ui #shops .shop-head-title,
 html body.erp-system-ui #returns .returns-head-copy-v3300,
 html body.erp-system-ui #watermarks .wm-heading>:is(.wm-heading-icon,div),
 html body.erp-system-ui :is(:is(#product-listing,#product-listing-records) .pl-head,#product-market .pl-market-head)>div:first-child,
 html body.erp-system-ui .main .page .ar-heading>:is(.ar-heading-icon,.ar-heading-copy),
 html body.erp-system-ui #accounts .office-summary>:is(.office-icon,b),
 html body.erp-system-ui #capital-fund .cf-ledger-title,
 html body.erp-system-ui #logs .erp-v2-inline-title {display:none!important}
 html body.erp-system-ui .main .page :is(.wm-heading,.returns-head-v3300,.cf-ledger-head):not(:has(button,a,input,select)),
 html body.erp-system-ui #capital-fund .cf-toolbar:empty {display:none!important}
 html body.erp-system-ui .main .page :is(.pl-head,.pl-market-head,.ar-heading):has(button,a) {margin-bottom:12px!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;justify-content:flex-start!important}
 html body.erp-system-ui .main .page .erp-tool-row {
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;min-height:56px!important;margin:0 0 12px!important;padding:10px 12px!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 .main .page :is(.erp-tools-form,.erp-tools-actions) {
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;
  min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui .main .page .erp-tools-form {flex:1 1 auto!important}
 html body.erp-system-ui .main .page .erp-tools-actions {flex:0 0 auto!important}
 html body.erp-system-ui .main .page .erp-tools-more {box-sizing:border-box;position:relative;flex:0 0 auto;min-width:0;font-size:12px}
 html body.erp-system-ui .main .page .erp-tools-more>summary {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 10px;
  color:var(--ui-accent-hover,#168b9d);background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#e3e9f1);border-radius:7px;cursor:pointer;list-style:none;white-space:nowrap;
 }
 html body.erp-system-ui .main .page .erp-tools-more>summary::-webkit-details-marker {display:none}
 html body.erp-system-ui .main .page .erp-tools-more>summary:hover,
 html body.erp-system-ui .main .page .erp-tools-more[open]>summary {background:var(--ui-accent-soft,#edf9fb);border-color:var(--ui-accent,#20aec2)}
 html body.erp-system-ui .main .page .erp-tools-more>summary:focus-visible {outline:2px solid var(--ui-accent);outline-offset:2px}
 html body.erp-system-ui .main .page .erp-tools-more>summary svg {width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 html body.erp-system-ui .main .page .erp-tools-more>summary b {padding:1px 5px;border-radius:5px;background:var(--ui-accent-soft);color:var(--ui-accent-hover);font-size:11px;font-weight:500}
 html body.erp-system-ui .main .page .erp-tools-more>summary b[hidden] {display:none!important}
 html body.erp-system-ui .main .page .erp-tools-popover {
  box-sizing:border-box;position:absolute;top:calc(100% + 7px);right:0;z-index:120;display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:12px;
  width:340px;max-width:calc(100vw - 40px);padding:14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);box-shadow:var(--ui-menu-shadow);
 }
 html body.erp-system-ui .main .page .erp-tools-more:not([open])>.erp-tools-popover {display:none!important}
 html body.erp-system-ui .main .page .erp-tools-popover :is(label,.pc-field,.returns-field-v3300) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;width:100%!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui .main .page .erp-tools-popover :is(input,select,.erp-select-host,.erp-choice) {flex:0 0 auto!important;width:100%!important;max-width:100%!important;min-width:0!important}
 html body.erp-system-ui .main .page .erp-tools-popover>button {width:100%!important;white-space:nowrap!important}
 html body.erp-system-ui .main .page [data-tools-group=actions]>.erp-tools-popover {grid-template-columns:minmax(160px,1fr);width:max-content}
 html body.erp-system-ui .main .page [data-tools-group=period]>.erp-tools-popover {display:block;width:max-content}
 html body.erp-system-ui .main .page .erp-tools-popover .sa-quick {flex-wrap:wrap!important}
 html body.erp-system-ui .main .page .erp-tools-more {z-index:2}
 html body.erp-system-ui .main .page .erp-tools-more[open] {z-index:120}
 html body.erp-system-ui .main .page .erp-tool-row [hidden] {display:none!important}
 @media(min-width:901px) {
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-filter-grid>.pc-field {flex:0 0 auto!important;min-width:0!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-filter-grid>.pc-keyword {flex:1 1 230px!important;min-width:230px!important;max-width:270px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .erp-select-host {width:110px!important;min-width:110px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-date-range {width:210px!important;min-width:210px!important;max-width:210px!important}
  html body.erp-system-ui #procurement #procurement-app .pc-toolbar:empty {display:none!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-filter-grid {gap:7px!important}
  html body.erp-system-ui :is(#warehouse-records,#warehouse-inventory) .erp-tool-row .wh-filters>label {flex:0 0 auto!important}
  html body.erp-system-ui :is(#warehouse-records,#warehouse-inventory) .erp-tool-row .wh-filters>label .erp-select-host {width:110px!important;min-width:110px!important}
  html body.erp-system-ui #warehouse-records .erp-tool-row .wh-date-range {width:210px!important;min-width:210px!important;max-width:210px!important}
  html body.erp-system-ui .main .page .erp-tool-row,
  html body.erp-system-ui .main .page :is(.erp-tools-form,.erp-tools-actions) {flex-wrap:nowrap!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.pc-filter-grid,.ca-ref-filter-row,.ca-ref-actions,.sa-filter-main,.sa-period,.office-toolbar,.account-head-actions) {display:contents!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.toolbar-actions,.returns-head-actions-v3300,.pm-toolbar-end,.cf-range-buttons,.finance-quick,.dash-quick-range,.office-actions,.office-summary,.sa-tabs,.wh-filter-actions) {display:inline-flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;margin:0!important;padding:0!important;white-space:nowrap!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(button,.btn,.pm-btn,.pl-btn,.wm-btn) {flex:0 0 auto!important;min-height:36px!important;height:36px!important;padding:0 10px!important;font-size:12px!important;white-space:nowrap!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.erp-list-search,.erp-clear-field) {flex:1 1 210px!important;width:210px!important;max-width:260px!important;min-width:140px!important;height:36px!important;min-height:36px!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.erp-select-host,.erp-choice,select:not(.erp-choice-native)) {flex:0 0 auto!important;width:132px!important;min-width:96px!important;max-width:160px!important;height:36px!important;min-height:36px!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.finance-field,.dash-field,.ca-ref-field,.returns-field-v3300,.pc-field,.wh-keyword,.wh-filters>label,.cf-toolbar label,.cf-quick-control,.cf-date-control,.sa-shop,.wm-search,.wh-range-field,.pl-record-filters>label,.pl-record-dates) {display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;margin:0!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.finance-field>label,.dash-field>label,.ca-ref-field>span:not(:has(input,select,button)),.returns-field-v3300>label,.pc-field>span:not(:has(input,select,button)),.wh-filters>label>span:not(:has(input,select,button)),.wh-keyword>span:not(:has(input,select,button)),.cf-quick-control>span:not(:has(input,select,button)),.cf-date-control>span:not(:has(input,select,button)),.cf-search>span:not(:has(input,select,button)),.sa-shop>span:not(:has(input,select,button)),.office-filter>label,.account-search-label,.wh-range-field>span:not(:has(input,select,button)),.pl-record-filters>label>span:not(:has(input,select,button)),.pl-record-dates>span:not(:has(input,select,button))) {display:none!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.erp-date-range,.pc-date-range,.sa-date-range,.wh-date-range) {box-sizing:border-box!important;flex:0 0 auto!important;width:224px!important;min-width:224px!important;max-width:224px!important;height:36px!important;min-height:36px!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.erp-date-range,.pc-date-range) input {min-width:0!important;width:78px!important;max-width:90px!important;height:34px!important;min-height:34px!important;font-size:12px!important;padding:0 4px!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.erp-date-range,.pc-date-range) button {height:30px!important;min-height:30px!important;width:26px!important;min-width:26px!important;padding:4px!important}
  html body.erp-system-ui .main .page .erp-tool-row .erp-tool-count {flex:0 0 auto;color:var(--ui-text-muted,#667085);font-size:12px;white-space:nowrap}
  html body.erp-system-ui #orders .toolbar {padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;position:static!important}
  html body.erp-system-ui #orders .toolbar-filters.erp-tool-row {margin-top:0!important}
  html body.erp-system-ui #orders .toolbar-filters #search,
  html body.erp-system-ui #products #pm-app .pm-toolbar :is(input.erp-list-search,.erp-clear-field) {flex:1 1 210px!important;width:210px!important;min-width:140px!important;max-width:260px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-field {flex:0 1 auto!important;width:auto!important;min-width:0!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tools-form .pc-filter-grid {display:contents!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-keyword {flex:1 1 210px!important;width:210px!important;min-width:140px!important;max-width:250px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-date-filter {flex:0 0 auto!important;width:auto!important;gap:0!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-date-filter>span {display:none!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-filter-actions {display:flex!important;flex:0 0 auto!important;gap:6px!important;margin:0!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tools-popover .pc-field {display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:100%!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tools-popover .pc-field>span {display:block!important}
  html body.erp-system-ui #returns .erp-tool-row :is(.returns-search-v3300,.returns-shop-field-v3300,.returns-status-field-v3300) {flex:0 1 auto!important;width:auto!important;min-width:0!important;margin:0!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-search-v3300>svg {display:none!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-head-actions-v3300 {order:5!important}
  html body.erp-system-ui #returns .erp-tools-popover .returns-field-v3300 {display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important}
  html body.erp-system-ui #returns .erp-tools-popover .returns-field-v3300>label {display:block!important}
  html body.erp-system-ui #capital-fund .erp-tool-row form {display:flex!important;flex-wrap:nowrap!important;gap:8px!important;margin:0!important}
  html body.erp-system-ui #capital-fund .erp-tool-row form>label {display:flex!important;align-items:center!important;flex-direction:row!important;gap:0!important;width:auto!important;min-width:0!important}
  html body.erp-system-ui #capital-fund .erp-tool-row form>label>span:not(:has(input,select,button)) {display:none!important}
  html body.erp-system-ui #capital-fund .erp-tool-row .cf-search {flex:1 1 160px!important;min-width:120px!important;max-width:210px!important}
  html body.erp-system-ui #capital-fund .erp-tool-row .cf-search input {width:160px!important;min-width:120px!important;max-width:210px!important}
  html body.erp-system-ui #capital-fund .erp-tool-row .cf-search .erp-clear-field {flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important}
  html body.erp-system-ui #click-ads .erp-tool-row .ca-sync-info {max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  html body.erp-system-ui #watermarks .wm-toolbar.erp-tool-row {border-bottom:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui .main .page .erp-tool-row .ar-field-label {display:none!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.ar-field,.ar-date-group,.ar-quick,.ar-heading-actions) {display:inline-flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px!important;min-width:0!important;width:auto!important;margin:0!important}
  html body.erp-system-ui .main .page .erp-tool-row .erp-tools-popover .ar-field {flex-direction:column!important;align-items:stretch!important;width:100%!important}
  html body.erp-system-ui .main .page .erp-tools-popover .ar-field-label {display:block!important}
  html body.erp-system-ui .main .page .erp-tool-row .toolbar-status:empty {display:none!important}
 }
 @media(max-width:900px) {
  html body.erp-system-ui .main .page .erp-tool-row {padding:10px!important;gap:10px!important;flex-wrap:wrap!important}
  html body.erp-system-ui .main .page :is(.erp-tools-form,.erp-tools-actions) {width:100%!important;max-width:100%!important;flex-wrap:wrap!important}
  html body.erp-system-ui .main .page .erp-tools-more {max-width:100%}
  html body.erp-system-ui .main .page .erp-tools-more>summary {min-height:40px}
  html body.erp-system-ui .main .page .erp-tools-popover {position:static;width:min(340px,calc(100vw - 64px));max-width:100%;margin-top:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.erp-system-ui #orders .toolbar {padding:0!important;border:0!important}
  html body.erp-system-ui #orders .toolbar-actions {flex-wrap:wrap!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tools-form .pc-filter-grid {display:flex!important;flex-wrap:wrap!important;width:100%!important;max-width:100%!important;min-width:0!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tools-form :is(.pc-date-filter,.pc-date-range) {width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tools-form .pc-date-range input {flex:1 1 0!important;min-width:0!important;width:40%!important;padding-left:4px!important;padding-right:4px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tools-form .pc-filter-actions {margin:0!important;flex:0 1 auto!important;flex-wrap:wrap!important;min-width:0!important}
 }
}

/* Keep these filters visible. Let the rail wrap before fields lose their text. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#procurement,#warehouse-scan) .erp-tools-stacked {flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:10px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#procurement,#warehouse-scan) .erp-tools-stacked>.erp-tools-form,
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#procurement,#warehouse-scan) .erp-tools-stacked>.erp-tools-actions {display:flex!important;flex:0 0 auto!important;flex-wrap:wrap!important;width:100%!important;max-width:100%!important;min-width:0!important;justify-content:flex-start!important;gap:8px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-tools-stacked .pc-filter-grid {display:flex!important;align-items:center!important;flex-wrap:wrap!important;width:100%!important;min-width:0!important;gap:8px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-tools-stacked .pc-filter-grid>.pc-field {flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-tools-stacked .pc-filter-grid>.pc-keyword {flex:1 1 230px!important;width:230px!important;min-width:200px!important;max-width:300px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-tools-stacked .pc-filter-actions {flex:0 0 auto!important;margin-left:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-tools-stacked .pc-toolbar {display:flex!important;justify-content:flex-start!important;min-width:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-tools-stacked .pc-toolbar [data-pc-selected]:empty {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-tools-stacked .erp-pc-secondary {display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important;flex:1 0 100%!important;width:100%!important;min-width:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-pc-secondary>.pc-field {display:flex!important;flex-direction:row!important;align-items:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-pc-secondary>.pc-field>span:not(:has(select,button)) {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-pc-secondary>.pc-field>.erp-select-host {flex:none!important;width:120px!important;min-width:120px!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 .erp-pc-secondary>.pc-toolbar {flex:0 1 auto!important;width:auto!important;max-width:100%!important;gap:8px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan>.wh-scan-search {justify-content:center!important;align-items:center!important;gap:8px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan .wh-scan-search>label {display:flex!important;flex:0 1 340px!important;flex-direction:row!important;align-items:center!important;min-width:0!important;max-width:100%!important;width:340px!important;gap:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan .wh-scan-search>label>span {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan .wh-scan-search .erp-clear-field {flex:1 1 auto!important;min-width:0!important;width:100%!important;max-width:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan>.wh-toolbar {justify-content:flex-start!important;gap:8px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan>.wh-toolbar>[data-wh-refresh] {margin-left:0!important;margin-right:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan>.wh-toolbar>[data-wh-selection] {flex:0 0 auto!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan [data-wh-selection]:empty {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #returns .returns-toolbar-v3300>.returns-field-v3300[hidden] {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined {flex-wrap:wrap!important;align-items:center!important;gap:8px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined>.wh-filters {display:flex!important;flex:1 1 1000px!important;flex-wrap:wrap!important;align-items:center!important;width:auto!important;min-width:0!important;max-width:100%!important;gap:8px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined>.wh-filters>label {display:flex!important;flex:0 0 auto!important;align-items:center!important;width:auto!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined>.wh-filters>label :is(.erp-choice,.erp-select-host) {flex:none!important;width:120px!important;min-width:120px!important;max-width:100%!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined>.wh-filters>.wh-keyword {flex:1 1 230px!important;width:230px!important;min-width:200px!important;max-width:300px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined>.wh-filters>.wh-keyword .erp-clear-field {width:100%!important;min-width:0!important;max-width:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined>.wh-filters>.wh-range-field {flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:100%!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#warehouse-records,#procurement #procurement-app) .erp-tool-row :is(.wh-date-range,.pc-date-range) {display:flex!important;align-items:center!important;flex:none!important;width:252px!important;min-width:252px!important;max-width:252px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0 6px!important;gap:2px!important;overflow:hidden!important;box-sizing:border-box!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#warehouse-records,#procurement #procurement-app) .erp-tool-row :is(.wh-date-range,.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-size:12px!important;line-height:normal!important;text-align:center!important;font-variant-numeric:tabular-nums!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#warehouse-records,#procurement #procurement-app) .erp-tool-row :is(.wh-date-range,.pc-date-range)>button {flex:0 0 22px!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:30px!important;min-height:30px!important;padding:0!important}
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app .erp-tools-stacked .pc-filter-grid>.pc-keyword {flex:1 1 100%!important;min-width:0!important;width:100%!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined>.wh-filters {flex-basis:100%!important;width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined>.wh-filters>.wh-keyword {flex:1 1 100%!important;min-width:0!important;width:100%!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#warehouse-records,#procurement #procurement-app) .erp-tool-row :is(.wh-date-range,.pc-date-range) {width:252px!important;min-width:0!important;max-width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-scan .erp-tools-scan .wh-scan-search>label {flex:1 1 100%!important;width:100%!important}
 }
}

@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v3 :is(#finance,#finance-report,#capital-fund)>.mg-heading {display:none!important}
 html body.erp-system-ui #orders #orderCount {display:none!important}
 html body.erp-system-ui #procurement .erp-tools-popover [data-pc-selected] {grid-column:1/-1}
 html body.erp-system-ui #procurement .erp-tools-popover [data-pc-selected]:empty {display:none!important}
 html body.erp-system-ui .main .page .erp-tool-row .erp-tools-popover :is(.erp-select-host,.erp-choice) {flex:none!important;width:100%!important;min-width:0!important;max-width:none!important;height:36px!important;min-height:36px!important}
 html body.erp-system-ui .main .page .erp-tool-row :is(.erp-select-button,.erp-choice-trigger) {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:0 28px 0 10px!important;line-height:1.4!important}
 html body.erp-system-ui .main .page .erp-tool-row .erp-clear-field>input.erp-list-search {box-sizing:border-box!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;padding-left:10px!important;padding-right:28px!important;font-size:12px!important}
 html body.erp-system-ui .main .page .erp-tool-row .erp-input-clear {position:absolute!important;right:3px!important;top:50%!important;transform:translateY(-50%)!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important}
 html body.erp-system-ui .main .page .erp-tool-row :is(.erp-date-range,.pc-date-range,.wh-date-range) {flex-basis:auto!important;max-height:44px!important}
 html body.erp-system-ui .main .page .erp-tool-row :is(.erp-date-range,.pc-date-range,.wh-date-range) input {flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important}
 @media(min-width:901px) {
  html body.erp-system-ui .main .page .erp-tools-form {width:auto!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(input.erp-list-search,.erp-clear-field) {flex:1 1 260px!important;width:260px!important;min-width:230px!important;max-width:300px!important;font-size:12px!important}
  html body.erp-system-ui #orders .toolbar-filters .toolbar-actions {margin-left:auto!important}
  html body.erp-system-ui #orders .toolbar-filters :is(#search,.erp-clear-field) {flex:1 1 280px!important;width:280px!important;min-width:230px!important;max-width:320px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-keyword {flex:1 1 260px!important;width:260px!important;min-width:230px!important;max-width:290px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-keyword .erp-clear-field {flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important}
  html body.erp-system-ui #procurement #procurement-app .pc-filter-grid>.pc-field:has([name=platform]) .erp-select-host {width:120px!important;min-width:120px!important}
  html body.erp-system-ui #procurement #procurement-app .pc-filter-grid>.pc-field:has([name=status]) .erp-select-host {width:120px!important;min-width:120px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-filter-grid>.pc-keyword {min-width:210px!important;flex-basis:210px!important;max-width:260px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-field:has([name=shopId]) .erp-select-host {width:96px!important;min-width:96px!important}
  html body.erp-system-ui #procurement #procurement-app .pc-filter-grid>.pc-field:has(:is([name=platform],[name=status])) .erp-select-host {width:114px!important;min-width:114px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-date-range {width:196px!important;min-width:196px!important;max-width:196px!important}
  html body.erp-system-ui #procurement #procurement-app .erp-tool-row .pc-filter-actions>button {padding:0 5px!important}
  html body.erp-system-ui :is(#warehouse-records,#warehouse-inventory) .erp-tool-row .wh-keyword {flex:1 1 260px!important;width:260px!important;min-width:230px!important;max-width:300px!important}
  html body.erp-system-ui :is(#warehouse-records,#warehouse-inventory) .erp-tool-row .wh-keyword .erp-clear-field {width:100%!important;min-width:0!important;max-width:none!important}
  html body.erp-system-ui #warehouse-records .erp-tool-row .wh-range-field {flex:0 0 auto!important;width:auto!important;max-width:none!important;flex-direction:row!important}
  html body.erp-system-ui #warehouse-inventory .erp-tool-row .wh-cost-help {max-width:220px;line-height:1.5;font-size:11px;white-space:normal}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-filters.erp-tool-row {flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;min-height:56px!important}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-filters.erp-tool-row>label {flex:0 0 auto!important;flex-direction:row!important;width:auto!important;max-width:none!important}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-filters.erp-tool-row>.pl-record-search {flex:1 1 260px!important;min-width:210px!important;max-width:300px!important}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-filters.erp-tool-row>.pl-record-search .erp-clear-field {width:100%!important;min-width:0!important;max-width:none!important}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-filters.erp-tool-row>.pl-record-dates {flex:0 0 auto!important;flex-direction:row!important;width:auto!important;max-width:none!important}
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-filters.erp-tool-row .pl-record-filter-actions {display:inline-flex!important;flex:0 0 auto!important;margin-left:auto!important}
  html body.erp-system-ui.erp-beauty-v3 #finance .finance-toolbar.erp-tool-row {flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important}
  html body.erp-system-ui.erp-beauty-v3 #finance .finance-toolbar.erp-tool-row .finance-toolbar-left {display:contents!important}
  html body.erp-system-ui #finance .finance-toolbar.erp-tool-row .finance-source-wrap-v3262 {flex:1 0 100%!important;width:100%!important;margin:0!important;padding:6px 0 0!important;text-align:left!important}
  html body.erp-system-ui #finance .finance-toolbar.erp-tool-row .finance-source-wrap-v3262:not(:has(.finance-source:not(:empty))) {display:none!important}
  html body.erp-system-ui #returns .returns-toolbar-v3300.erp-tool-row {gap:7px!important;flex-direction:row!important;flex-wrap:nowrap!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-field-v3300 {flex:0 1 112px!important;width:112px!important;min-width:92px!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-field-v3300:has(#returnsSchema) {flex-basis:96px!important;width:96px!important;min-width:84px!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-field-v3300 :is(.erp-select-host,.erp-choice) {width:100%!important;min-width:0!important;max-width:none!important;flex:1 1 auto!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-search-v3300 {flex:1 1 260px!important;width:260px!important;min-width:222px!important;max-width:300px!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-search-v3300 .erp-clear-field {width:100%!important;min-width:0!important;max-width:none!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-head-actions-v3300 {margin-left:auto!important;gap:6px!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-head-actions-v3300>button {padding:0 8px!important}
  html body.erp-system-ui #capital-fund .erp-tool-row .cf-quick-control {flex:0 0 auto!important}
  html body.erp-system-ui #capital-fund .erp-tool-row form>label:not(.cf-search) {flex:0 0 auto!important}
  html body.erp-system-ui .main .page .ar-filter-grid.erp-tool-row>.ar-field>span:not(:has(input,select,button)),
  html body.erp-system-ui #warehouse-scan .erp-tool-row .wh-scan-search label>span:not(:has(input,select,button)) {display:none!important}
  html body.erp-system-ui #warehouse-scan .erp-tool-row .wh-scan-search label {display:flex!important;flex-direction:row!important;align-items:center!important;min-width:0!important;gap:0!important}
  html body.erp-system-ui .main .page .ar-filter-grid.erp-tool-row>:is(.ar-field,.ar-date-group,.ar-quick,.ar-heading-actions) {flex:0 0 auto!important}
  html body.erp-system-ui .main .page .erp-tools-popover .ar-quick {display:flex!important;flex-wrap:wrap!important;gap:6px!important;grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined .wh-filters>.wh-keyword {flex:1 1 210px!important;width:210px!important;min-width:210px!important;max-width:260px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined .wh-filters>label:has([name=shopId]) .erp-select-host {width:96px!important;min-width:96px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined .wh-toolbar {min-width:max-content!important}
  html body.erp-system-ui #warehouse-records .erp-tools-combined .wh-record-count {flex:0 0 auto!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #warehouse-records .erp-tools-combined .wh-filter-actions>button {padding:0 6px!important}
 }
 @media(min-width:901px) and (max-width:1250px) {
  html body.erp-system-ui .main .page .erp-tool-row,
  html body.erp-system-ui .main .page .erp-tools-form,
  html body.erp-system-ui #returns .returns-toolbar-v3300.erp-tool-row,
  html body.erp-system-ui :is(#product-listing,#product-listing-records) .pl-record-filters.erp-tool-row {flex-wrap:wrap!important}
 }
 @media(max-width:900px) {
  html body.erp-system-ui #dashboard .erp-tool-row .dash-field-date {flex-wrap:wrap!important;min-width:0!important;width:100%!important}
  html body.erp-system-ui #dashboard .erp-tool-row .dash-field-date>label {display:none!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.erp-select-host,.erp-choice) {flex-basis:auto!important}
  html body.erp-system-ui .main .page .erp-tool-row :is(.erp-date-range,.pc-date-range,.wh-date-range) {flex:none!important;height:42px!important;min-height:42px!important;width:100%!important;max-width:100%!important;min-width:0!important}
  html body.erp-system-ui .main .page .erp-tool-row .erp-clear-field>input.erp-list-search {font-size:16px!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-head-actions-v3300 {width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  html body.erp-system-ui #returns .erp-tool-row .returns-head-actions-v3300>button {flex:1 1 auto!important}
 }
}

/* Compact list searches share one desktop width throughout the ERP. */
@layer erpColorMode.overrides {
 @media(min-width:901px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page input.erp-list-search:not(.wh-scan-search input) {max-width:var(--erp-list-search-width,240px)!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page .erp-clear-field:has(>input.erp-list-search):not(.wh-scan-search .erp-clear-field) {flex:0 1 var(--erp-list-search-width,240px)!important;width:var(--erp-list-search-width,240px)!important;min-width:0!important;max-width:min(100%,var(--erp-list-search-width,240px))!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#orders,#products,#returns,#finance,#capital-fund,#warehouse-records,#warehouse-inventory,:is(#product-listing,#product-listing-records),#shop-analytics,#watermarks,#accounts,#license-codes,#click-ads,#quality-config,#refine-collect,#refine-records,#refine-stats,#refine-tasks) :is(.returns-search-v3300,.finance-search-wrap,.account-search-wrap-v3241,.wm-search,.ar-search-wrap,.pl-record-search,.wh-keyword,.cf-search,.ca-ref-keyword) {box-sizing:border-box!important;flex:0 1 var(--erp-list-search-width,240px)!important;width:var(--erp-list-search-width,240px)!important;min-width:0!important;max-width:var(--erp-list-search-width,240px)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .toolbar-filters>.erp-clear-field:has(#search),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-toolbar>.erp-clear-field {flex:0 1 var(--erp-list-search-width,240px)!important;width:var(--erp-list-search-width,240px)!important;min-width:0!important;max-width:var(--erp-list-search-width,240px)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .toolbar-filters #search,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page .erp-clear-field>input.erp-list-search:not(.wh-scan-search input) {flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important}
 }
 @media(min-width:901px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders .toolbar-filters .order-date-filter {flex:0 0 auto!important;width:max-content!important;min-width:max-content!important}
 }
 /* Date ranges keep their own width; the keyword field absorbs tight rails. */
 @media(min-width:901px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund .erp-tool-row .cf-date-control {flex:0 0 224px!important;width:224px!important;min-width:224px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund .erp-tool-row .cf-range-buttons>button {min-width:0!important;padding:0 7px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund .erp-tool-row .cf-search input.erp-list-search {width:100%!important;min-width:0!important;max-width:100%!important}
 }
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund .erp-tool-row .cf-date-control {box-sizing:border-box!important;flex:1 0 100%!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capital-fund .erp-tool-row .cf-date-control .erp-date-range input {flex:1 1 0!important;width:0!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 2px!important;font:400 12px/1.4 Arial,"Microsoft YaHei",sans-serif!important}
 }
 /* One outer surface encloses authorization and both metric rows. */
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ca-overview-panel {box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:14px!important;min-width:0!important;max-width:100%!important;margin:0 0 14px!important;padding:14px!important;border:1px solid var(--ui-border-soft,#edf1f6)!important;border-radius:var(--workspace-radius,10px)!important;background:var(--ui-surface,#fff)!important;box-shadow:0 2px 8px rgb(30 48 68 / 3%)!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ca-overview-panel>:is(.ca-api-manager,.ca-ref-kpis,.ca-conv-kpis) {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ca-overview-panel .ca-api-manager-head {margin:0!important;padding:0!important;border:0!important;background:transparent!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ca-overview-panel .ca-conv-label::before {content:none!important;display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-payment-filter {display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;margin:0 0 12px!important;padding:0!important;background:transparent!important;border:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads :is(#clickAdsCpcPanel,#orderAdsPanel)[hidden] {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-payment-filter>label {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-payment-filter :is(.erp-choice,.erp-select-host,select) {box-sizing:border-box!important;flex:0 0 auto!important;width:176px!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 #click-ads .ads-payment-filter :is(.erp-choice-trigger,.erp-select-button) {width:100%!important;height:100%!important;min-height:0!important;font-size:12px!important}
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ca-overview-panel {padding:12px!important;gap:12px!important}
 }
}

/* The ad type remains available beside the active report filters. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail {box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;max-width:100%!important;margin:0 0 14px!important;padding:10px 12px!important;border:1px solid var(--ui-border-soft,#edf1f6)!important;border-radius:var(--workspace-radius,10px)!important;background:var(--ui-surface,#fff)!important;box-shadow:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail>.ads-payment-filter {flex:0 0 146px!important;margin:0!important;padding:0!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail .ads-payment-filter :is(.erp-choice,.erp-select-host,select) {width:146px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail>:is(.ca-ref-filter-card,.oa-filter) {box-sizing:border-box!important;flex:1 1 0!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail>:is(.ca-ref-filter-card,.oa-filter)[hidden] {display:none!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail>.oa-filter:not([hidden]) {display:flex!important;flex-direction:column!important;gap:10px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail:has(>.oa-filter:not([hidden])) {align-items:flex-start!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail .oa-filter :is(.oa-filter-fields,.oa-actions) {margin:0!important;gap:8px!important;min-width:0!important;flex-wrap:wrap!important}
 @media(min-width:901px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail {flex-wrap:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail>.ca-ref-filter-card:not([hidden]) {display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail .ca-ref-filter-card :is(.ca-ref-filter-row,.ca-ref-actions) {display:contents!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail .ca-ref-shop {flex:0 0 112px!important;width:112px!important;min-width:0!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail .ca-ref-shop :is(.erp-select-host,.erp-choice,select) {width:112px!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ca-ref-filter-card .ca-ref-keyword {flex:1 1 180px!important;width:var(--erp-list-search-width,240px)!important;min-width:90px!important;max-width:var(--erp-list-search-width,240px)!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail .ca-ref-keyword :is(.erp-clear-field,input.erp-list-search) {flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail #clickAdsSyncInfo {flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:230px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;margin-left:auto!important}
 }
 @media(max-width:1250px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail {flex-wrap:wrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail>.ca-ref-filter-card:not([hidden]) {flex-wrap:wrap!important;flex-basis:70%!important}
 }
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail>:is(.ca-ref-filter-card,.oa-filter) {flex:1 0 100%!important;width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail>.ca-ref-filter-card:not([hidden]) {display:flex!important;flex-direction:column!important;gap:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail .oa-filter :is(.oa-filter-fields,.oa-actions) {display:flex!important;width:100%!important;flex-wrap:wrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #click-ads .ads-filter-rail .oa-period {max-width:100%!important;min-width:0!important}
 }
}

/* CPO uses one desktop toolbar; keep phone fields on their existing full rows. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters .oa-actions>button>svg {
  flex:0 0 16px!important;width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;
  color:var(--ui-accent,#1677ff)!important;stroke-width:1.7!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters .oa-actions>button.erp-primary>svg {color:inherit!important;}
 @media(min-width:901px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail:has(>#orderAdsFilters:not([hidden])) {
   align-items:flex-end!important;flex-wrap:nowrap!important;overflow-x:auto!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters:not([hidden]) {
   display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:flex-end!important;
   gap:8px!important;flex:1 0 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters :is(.oa-filter-fields,.oa-actions) {
   display:contents!important;border:0!important;margin:0!important;padding:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters .oa-filter-fields>label {
   display:flex!important;flex-direction:column!important;gap:6px!important;flex:0 0 112px!important;width:112px!important;min-width:0!important;max-width:112px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters .oa-filter-fields>label :is(select,.erp-choice,.erp-select-host) {width:112px!important;min-width:0!important;max-width:112px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters .oa-period {
   display:flex!important;flex-direction:column!important;gap:6px!important;flex:0 0 auto!important;width:284px!important;min-width:284px!important;max-width:284px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters .oa-shortcuts {display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;gap:6px!important;margin:0!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters :is(.oa-shortcuts,.oa-actions)>button {
   display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
   width:max-content!important;max-width:none!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0 10px!important;gap:5px!important;white-space:nowrap!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters #orderAdsProgress {
   flex:0 0 auto!important;width:auto!important;max-width:220px!important;margin:0 0 0 auto!important;
   overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:36px!important;
  }
 }
}

/* The longest CPO source option needs its full caption plus the shared arrow. */
@layer erpColorMode.overrides {
 @media(min-width:901px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters .oa-filter-fields>label:has(#orderAdsSource) {
   flex:0 0 160px!important;width:160px!important;min-width:160px!important;max-width:160px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads .ads-filter-rail #orderAdsFilters .oa-filter-fields>label:has(#orderAdsSource)>:is(select,.erp-choice,.erp-select-host) {
   box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads #orderAdsFilters .oa-filter-fields>label:has(#orderAdsSource) .erp-select-label {
   flex:0 0 auto!important;max-width:none!important;white-space:nowrap!important;text-overflow:clip!important;overflow:visible!important;
  }
 }
}

/* Captions stay available through control labels, without an extra visible row. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #click-ads #orderAdsFilters .oa-field-caption {display:none!important;}
}

/* The procurement rail uses intrinsic flow, so the date frame cannot paint over query actions. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66 {
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;
  gap:10px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;padding:10px!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66>.pc-field:not([hidden]) {
  box-sizing:border-box!important;flex:0 0 106px!important;width:106px!important;min-width:0!important;max-width:106px!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66>.pc-keyword:not([hidden]) {
  flex:1 1 220px!important;width:220px!important;min-width:160px!important;max-width:280px!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66>.pc-date-filter:not([hidden]) {
  box-sizing:border-box!important;flex:0 0 284px!important;width:284px!important;min-width:284px!important;max-width:284px!important;margin:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66 .pc-date-range {
  box-sizing:border-box!important;position:relative!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66>:is(.pc-filter-actions,.pc-toolbar):not([hidden]) {
  display:flex!important;position:static!important;flex:0 0 auto!important;align-items:center!important;gap:8px!important;
  width:max-content!important;min-width:max-content!important;max-width:100%!important;margin:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66>.pc-filter-actions>button:not([hidden]) {
  position:static!important;flex:0 0 auto!important;margin:0!important;
 }
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66>:is(.pc-field,.pc-keyword,.pc-date-filter):not([hidden]) {
   flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66>:is(.pc-filter-actions,.pc-toolbar):not([hidden]) {
   width:100%!important;min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66>:is(.pc-filter-actions,.pc-toolbar)>button:not([hidden]) {
   flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66 .pc-field :is(input,.erp-clear-field,.erp-select-host,.erp-choice) {
   height:44px!important;min-height:44px!important;max-height:44px!important;font-size:16px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #procurement #procurement-app #procurementFiltersV66 .pc-field :is(.erp-select-button,.erp-choice-trigger) {font-size:16px!important;}
 }
}

/* ===== shops.css ===== */
/* Shop names have one explicit blue across lists and details. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-shop-name,.shop-name,.shop-name-cell>b,.shop-cell>.center-wrap,.pm-shop,.pm-stock-shop,.pc-shop,.pc-tracking-shop>b,.wh-shop,.cf-shop-name,.fb-shop-name,.finance-order-shop-v3301,.finance-rank-name>b,.ret-shop-name,.ret-shop-name-v441,.ca-shop-name,.wm-identity>div>b,.dash-shop-name>[data-ui-keep-original],#dashMask .dash-shop-name,.ol-shop>b,.ol-shop span>b,td[data-label="店铺"],td[data-label="上架店铺"]) {color:#1677ff!important;-webkit-text-fill-color:#1677ff!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-shop-name,.shop-name,.pm-shop,.cf-shop-name,.fb-shop-name,.ret-shop-name,.ca-shop-name):hover {color:#1677ff!important;-webkit-text-fill-color:#1677ff!important}
 html body.erp-system-ui :is(select[name="shopId"],select[name="shop"],select#erpGlobalStore,select#orderShop,select#plTaskShop) option:not([value=""]):not([value="all"]) {color:#1677ff!important}
}
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 select:is([name="shopId"],[aria-label*="店铺"],#orderShop,#dashShop,#erpGlobalStore,#plTaskShop,#wmShop,#clickAdsShop,#orderAdsShop):has(option:checked:not([value=""]):not([value="all"])) {color:#1677ff!important;-webkit-text-fill-color:#1677ff!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-select-host,.erp-choice):has(select:is([name="shopId"],[aria-label*="店铺"],#orderShop,#dashShop,#erpGlobalStore,#plTaskShop,#wmShop,#clickAdsShop,#orderAdsShop) option:checked:not([value=""]):not([value="all"])) :is(.erp-select-label,.erp-choice-label) {color:#1677ff!important;-webkit-text-fill-color:#1677ff!important}
}

/* Destructive shop actions use the same solid red as the reference badge. */
@layer erpColorMode.overrides {
 html body.erp-system-ui :is(#shops .shop-delete-btn,#deleteShopConfirmMask .delete-shop-confirm-ok) {--ui-button-fill:#ef4444!important;--ui-button-text:#fff!important;--ui-button-line:#ef4444!important;--ui-button-hover-fill:#dc2626!important;--ui-button-hover-text:#fff!important;--ui-button-hover-line:#dc2626!important;--erp-action-icon-color:currentColor!important;background:#ef4444!important;border-color:#ef4444!important;color:#fff!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui :is(#shops .shop-delete-btn,#deleteShopConfirmMask .delete-shop-confirm-ok):hover:not(:disabled) {background:#dc2626!important;border-color:#dc2626!important;color:#fff!important}
}

/* ===== sidebar.css ===== */
/* Collapsed navigation is a compact icon rail; nested menus open after expanding. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-sidebar-collapsed aside.side {
  box-sizing:border-box!important;width:58px!important;min-width:58px!important;max-width:58px!important;
  padding-inline:5px!important;overflow-x:hidden!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav {
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:5px!important;width:100%!important;min-width:0!important;
  min-height:0!important;margin-inline:0!important;padding:8px 0 0!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav>.nav-parent-block {
  box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;margin:0!important;padding:0!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav .nav-submenu {
  display:none!important;height:0!important;min-height:0!important;max-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav button:not([hidden]) {
  box-sizing:border-box!important;position:relative!important;display:flex!important;flex:0 0 auto!important;
  align-items:center!important;justify-content:center!important;width:46px!important;min-width:0!important;max-width:100%!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  margin:0 auto!important;padding:0!important;gap:0!important;border-radius:8px!important;
  font-size:0!important;line-height:1!important;overflow:hidden!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav button>:not(.nav-ico,.nav-main-icon,.nav-sub-icon,svg) {
  display:none!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav button>:is(.nav-ico,.nav-main-icon,.nav-sub-icon) {
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:24px!important;min-height:24px!important;max-height:24px!important;margin:0!important;padding:0!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav button::before,
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav button::after {
  content:none!important;display:none!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav :is(button.active,.has-active>.nav-parent,.parent-selected>.nav-parent) {
  background:var(--ui-accent-soft,var(--theme-accent-soft,#edf5ff))!important;
  border-color:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav [hidden],
 html body.erp-system-ui.erp-sidebar-collapsed aside.side #erpMainNav [style*="display: none"] {
  display:none!important;
 }
 html body.erp-system-ui.erp-sidebar-collapsed aside.side :is(.sidebar-account-copy,.sidebar-account-logout,.sidebar-account-more-v3230) {
  display:none!important;
 }
}

/* ===== buttons.css ===== */
/* Order-center action proportions are shared without changing data cards or navigation. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.main .page,.modal-mask,dialog)
 :is(button[data-erp-icon],button.erp-v5-action-icon,button:has(>svg),button:has(>[data-pl-icon]),button:has(>.erp-button-icon),button:has(>.btn-icon),a.erp-btn:has(>svg),a.pl-btn:has(>svg)):not(:where(
  [hidden],.erp-password-toggle,.erp-page-tab-open,.erp-page-tab-close,.erp-select-button,.erp-choice-trigger,.ol-choice-trigger,
  .erp-icon-btn,.pm-icon-btn,.erp-v5-close,.modal-close,.ol-icon-button,.erp-input-clear,.quick-radio,[role="tab"],
  .erp-pagination button,.pc-calendar button,.pc-date-range button,.erp-date-range button,.wh-date-range button,
  .finance-date-range button,.fb-packaging-dates button,.erp-metric-card,.fin-kpi
 )) {
  display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
  column-gap:6px!important;row-gap:0!important;line-height:1.4!important;vertical-align:middle!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.main .page,.modal-mask,dialog)
 :is(button,a.erp-btn,a.pl-btn)>:is([data-pl-icon],.erp-button-icon,.btn-icon) {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important;
  color:var(--erp-action-icon-color,#1677ff)!important;line-height:1!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.main .page,.modal-mask,dialog)
 :is(button,a.erp-btn,a.pl-btn):is(.primary,.erp-primary,.pm-primary,.pc-primary,.sa-primary,.wh-primary,.lc-primary,.rc-primary,.auth-submit,.returns-refresh-v3300)
 >:is([data-pl-icon],.erp-button-icon,.btn-icon) {color:inherit!important}
 html body.erp-system-ui :is(button,a.erp-btn,a.pl-btn)>:is([data-pl-icon],.erp-button-icon,.btn-icon)>svg {
  display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important;
  color:inherit!important;stroke:currentColor!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.main .page,.modal-mask,dialog)
 :is(button,a.erp-btn,a.pl-btn):not(:where(.erp-password-toggle,.erp-page-tab-open,.erp-page-tab-close,.erp-select-button,.erp-choice-trigger,.ol-choice-trigger,.quick-radio,[role="tab"],.erp-pagination button,.pc-calendar button,.pc-date-range button,.erp-date-range button,.wh-date-range button,.finance-date-range button,.erp-metric-card,.fin-kpi))>svg {
  display:block!important;box-sizing:border-box!important;flex:0 0 16px!important;width:16px!important;height:16px!important;
  margin:0!important;vertical-align:middle!important;stroke-linecap:round;stroke-linejoin:round;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.main .page,.modal-mask,dialog)
 :is(button[data-erp-icon],button.erp-v5-action-icon):not(:where(.quick-radio,[role="tab"],.erp-pagination button))::before {
  box-sizing:border-box!important;flex:0 0 16px!important;width:16px!important;height:16px!important;
  margin:0!important;vertical-align:middle!important;pointer-events:none;
 }
 /* The six menu tiles need space for a complete icon and a full caption. */
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-batch-menu {
  box-sizing:border-box!important;width:min(352px,calc(100vw - 32px))!important;padding:12px!important;gap:8px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;left:auto!important;right:0!important;
 }
 html body.erp-system-ui #products #pm-app .pm-batch-menu::before {left:auto!important;right:44px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-batch-menu>button {
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  height:68px!important;min-height:68px!important;max-height:none!important;min-width:0!important;width:100%!important;
  padding:9px 5px!important;gap:6px!important;line-height:1.4!important;white-space:normal!important;text-align:center!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-batch-menu>button>svg {
  flex:0 0 20px!important;width:20px!important;height:20px!important;
 }
 @media(max-width:900px) {
  html body.erp-system-ui #products #pm-app .pm-toolbar {position:relative!important}
  html body.erp-system-ui #products #pm-app .pm-batch-wrap {position:static!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-batch-menu {
   top:calc(100% + 6px)!important;left:0!important;right:auto!important;
  }
  html body.erp-system-ui #products #pm-app .pm-batch-menu::before {display:none!important}
 }
 @media(max-width:420px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-batch-menu {
   width:min(320px,calc(100vw - 32px))!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
 }
}

@layer erpColorMode.overrides {
 html body.erp-system-ui {
  --erp-action-height:36px;
  --erp-action-padding-x:10px;
  --erp-action-padding-y:8px;
  --erp-action-gap:6px;
  --erp-action-group-gap:8px;
  --erp-action-radius:8px;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#procurement #procurement-app,.main .page:not(#orders),.modal-mask,dialog)
 :is(button,a.erp-btn,a.pl-btn,label:is(.erp-btn,.pl-btn,.pm-btn,.ar-btn)):is(
  .btn,.erp-btn,.pm-btn,.pl-btn,.wm-btn,.ar-btn,.ca-ref-btn,.lc-btn,.rc-btn,.sa-primary,.wh-primary,.pc-primary,.pc-edit-button,
  .profit-primary-btn-v3249,.profit-secondary-btn-v3249,.profit-reset-btn-v3249,.profit-danger-btn-v3249,
  .weight-confirm-btn,.order-note-save,.cancel-save-btn,.system-confirm-ok,.system-confirm-cancel,.quality-danger-btn,
  .returns-export,.returns-refresh-v3300,.wh-ship-button,[data-erp-icon],.erp-v5-action-icon,button:has(>svg),
  button:has(>[data-pl-icon]),button:has(>.erp-button-icon),button:has(>.btn-icon),button[type="submit"],
  .pc-filter-actions>button,.pc-toolbar>button,.wh-filter-actions>button,.wh-toolbar>button,
  .erp-dialog-actions>button,.erp-message-actions>button,.pm-dialog-footer>button,.pm-save-actions>button,dialog>footer>button
 ):not(:where(
  [hidden],.erp-password-toggle,.erp-page-tab-open,.erp-page-tab-close,.erp-select-button,.erp-choice-trigger,.ol-choice-trigger,
  .erp-icon-btn,.pm-icon-btn,.erp-v5-close,.modal-close,.erp-message-close,.office-close,.ol-icon-button,.erp-input-clear,.icon-only,
  [aria-label^="关闭"],.quick-radio,[role="tab"],.pl-tab,.pm-tab,.sa-tab,.profit-segment-v3249 button,.profit-config-tabs-v3249 button,
  .erp-pagination button,.pc-calendar button,.pc-date-range button,.erp-date-range button,.wh-date-range button,
  .finance-date-range button,.fb-packaging-dates button,.ar-date-range button,.sa-date-range button,
  .erp-metric-card,.fin-kpi,.fin-pending-trigger,.pm-batch-menu button,
  .copy-value,.pm-copy-value,.pm-link-btn,.pc-link,.pc-text-button,.wh-copy,.wh-photo,.wh-weight-button,.wh-text-button,
  .cf-thumb,.fb-thumb-button,.fb-order-thumb,.profit-copy-btn-v3249,.profit-delete-btn-v3249
 )) {
  box-sizing:border-box!important;display:inline-flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:center!important;vertical-align:middle!important;
  width:max-content!important;min-width:0!important;max-width:100%!important;flex:0 1 auto!important;
  height:auto!important;min-height:var(--erp-action-height)!important;max-height:none!important;
  padding:var(--erp-action-padding-y) var(--erp-action-padding-x)!important;
  gap:var(--erp-action-gap)!important;margin:0!important;border-radius:var(--erp-action-radius)!important;
  font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Source Han Sans SC","Helvetica Neue",Arial,sans-serif!important;
  font-size:12px!important;font-weight:500!important;line-height:1.4!important;
  white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;text-indent:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#procurement #procurement-app,.main .page:not(#orders),.modal-mask,dialog)
 :is(.pc-filter-actions,.pc-toolbar,.pc-row-actions,.wh-filter-actions,.wh-toolbar,.wh-row-actions,.pm-actions,
  .pl-record-filter-actions,.pl-record-head-actions,.pl-head-tools,.pl-head-actions,.pl-inline-actions,.pl-form-actions,
  .office-actions,.office-row-actions,.erp-dialog-actions,.erp-message-actions,.pm-dialog-footer,.pm-save-actions,.cf-actions,
  .ca-ref-actions,.quality-actions,.shop-head-actions,.ar-actions,.ar-dialog-actions,.oa-actions,.wm-actions,.wm-row-actions,
  .returns-head-actions-v3300,.profit-config-actions-v3249) {
  gap:var(--erp-action-group-gap)!important;align-items:center!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) {
  gap:var(--erp-action-group-gap)!important;
 }
 @media(min-width:1280px) and (max-width:1365px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #procurement #procurement-app form.pc-single-line-v66 {
   grid-template-columns:minmax(100px,1fr) 88px 106px 106px 212px max-content max-content!important;
   column-gap:3px!important;padding-inline:6px!important;
  }
 }
 @media(min-width:901px) and (max-width:1279px) {
  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 226px!important;width:226px!important;
  }
 }
}

/* ===== mobile-polish.css ===== */
/* Shared small-screen layout and accessible action groups. */
/* The membership pill, compact shop field and three header actions share one mobile row. */
@layer erpColorMode.overrides {
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top .erp-global-tools:has(>#erpMembershipBadge) {
   display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;
   min-width:0!important;max-width:100%!important;white-space:nowrap!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top .erp-global-tools:has(>#erpMembershipBadge)>:is(.erp-global-store,.erp-select-host,.erp-choice) {
   box-sizing:border-box!important;flex:1 1 110px!important;width:auto!important;min-width:80px!important;max-width:none!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top .erp-global-tools:has(>#erpMembershipBadge) :is(#erpGlobalStore,.erp-select-button,.erp-choice-trigger) {
   font-size:12px!important;padding-inline:8px!important;white-space:nowrap!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top .erp-global-tools:has(>#erpMembershipBadge) .erp-select-label {
   min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top .erp-global-tools:has(>#erpMembershipBadge)>.erp-head-tool:not([hidden]) {
   box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;padding-inline:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top #erpMembershipBadge {
   flex:0 1 auto!important;gap:4px!important;padding-inline:7px!important;min-width:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top #erpMembershipBadge .erp-membership-copy {
   flex:1 1 auto!important;gap:2px!important;overflow:hidden!important;white-space:nowrap!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top #erpMembershipBadge .erp-membership-copy :is(strong,.erp-membership-dot) {flex:0 0 auto!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top #erpMembershipBadge [data-membership-detail] {flex:0 1 auto!important;white-space:nowrap!important;}
 }
 @media(max-width:360px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top .erp-global-tools:has(>#erpMembershipBadge) {gap:4px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top .erp-global-tools:has(>#erpMembershipBadge)>:is(.erp-global-store,.erp-select-host,.erp-choice) {min-width:76px!important;flex-basis:90px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top .erp-global-tools:has(>#erpMembershipBadge)>.erp-head-tool:not([hidden]) {flex-basis:30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top #erpMembershipBadge {gap:3px!important;padding-inline:5px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top #erpMembershipBadge .erp-membership-copy :is(strong,span) {font-size:11px!important;}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top #erpMembershipBadge>.erp-membership-mark {width:15px!important;height:15px!important;flex-basis:15px!important;}
 }
}
@layer erpColorMode.overrides {
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog.wm-dialog {box-sizing:border-box!important;min-width:0!important;width:calc(100vw - 20px)!important;max-width:700px!important;max-height:calc(var(--erp-phone-height,100dvh) - 20px)!important;margin:auto!important;padding:0!important;overflow:hidden!important;border-radius:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog.wm-dialog[open] {display:flex!important;flex-direction:column!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm {display:flex!important;flex-direction:column!important;box-sizing:border-box!important;min-width:0!important;min-height:0!important;width:100%!important;max-height:calc(var(--erp-phone-height,100dvh) - 24px)!important;margin:0!important;padding:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm svg {width:16px!important;height:16px!important;flex:0 0 16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-dialog-head {display:flex!important;align-items:center!important;gap:9px!important;flex:0 0 auto!important;min-width:0!important;padding:12px!important;border-bottom:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-dialog-head>div {flex:1 1 auto!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-heading-icon {display:grid!important;place-items:center!important;flex:0 0 34px!important;width:34px!important;height:34px!important;border-radius:8px!important;color:var(--ui-accent)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm h3 {margin:0!important;font-size:16px!important;line-height:1.4!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm p {margin:4px 0 0!important;font-size:11px!important;line-height:1.6!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-dialog-head>button[data-wm-close] {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-dialog-body {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;min-height:0!important;width:100%!important;max-width:100%!important;padding:12px!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm :is(.wm-editor,.wm-preview-column,.wm-text-fields) {min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-editor {display:grid!important;gap:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-field:not([hidden]) {display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;margin:0!important;font-size:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm :is(input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea,.erp-select-host,.erp-select-button) {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:42px!important;font-size:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-setting-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-type-options {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-type-options>button[data-wm-type]:not([hidden]) {display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;width:100%!important;min-width:0!important;min-height:42px!important;padding:6px!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-type-options>button[data-wm-type]:not([hidden]) {border:1px solid var(--ui-border)!important;border-radius:8px!important;background:var(--ui-surface)!important;color:var(--ui-text)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-type-options>button[data-wm-type][aria-checked=true] {border-color:var(--ui-accent)!important;background:var(--ui-accent-soft)!important;color:var(--ui-accent)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-upload {display:flex!important;position:relative!important;flex-direction:column!important;align-items:center!important;gap:8px!important;box-sizing:border-box!important;max-width:100%!important;padding:14px!important;border:1px dashed var(--ui-border)!important;border-radius:8px!important;background:var(--ui-field-surface)!important;cursor:pointer!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-upload input[type=file] {position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-upload img {max-width:100%!important;max-height:100px!important;object-fit:contain!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm input:is([type=range],[type=checkbox]) {accent-color:var(--ui-accent)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-preview-title {display:flex!important;align-items:center!important;gap:6px!important;margin-bottom:8px!important;font-size:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm #wmCanvas {display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:1!important;border:1px solid var(--ui-border)!important;border-radius:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-positions {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;min-width:0!important;margin-top:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-positions>button {min-width:0!important;max-width:100%!important;min-height:40px!important;padding:6px!important;font-size:12px!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-dialog-foot {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;flex:0 0 auto!important;min-width:0!important;padding:12px!important;border-top:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-dialog-foot>span {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm .wm-dialog-foot>button.wm-btn:not([hidden]) {display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;max-width:none!important;width:100%!important;min-height:44px!important;height:44px!important;padding:0 8px!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm #wmRemove {grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #wmDialog #wmForm [hidden] {display:none!important}
 }
}
/* Keep account actions reachable and fit the remaining desktop-width lists. */
@layer erpColorMode.overrides {
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #accountSettingsMask {box-sizing:border-box!important;height:var(--erp-phone-height,100dvh)!important;max-height:var(--erp-phone-height,100dvh)!important;bottom:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #accountSettingsMask>#account-settings {max-height:calc(var(--erp-phone-height,100dvh) - 24px)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#accountSettingsMask>#account-settings,#currentAccountInfoMask>.current-account-modal-v3230) :is(.account-settings-actions-v3250,.current-account-actions-v3230) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:0!important;padding:12px!important;align-items:stretch!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#accountSettingsMask>#account-settings,#currentAccountInfoMask>.current-account-modal-v3230) :is(.account-settings-actions-v3250,.current-account-actions-v3230)>button.btn[type=button] {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:0!important;max-width:none!important;width:100%!important;height:44px!important;min-height:44px!important;padding:0 10px!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#accountSettingsMask>#account-settings,#currentAccountInfoMask>.current-account-modal-v3230) :is(.account-settings-actions-v3250,.current-account-actions-v3230)>button>svg {width:16px!important;height:16px!important;flex:0 0 16px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #accountSettingsMask #account-settings .account-settings-password-actions-v3250>button.btn[type=submit] {width:100%!important;min-height:44px!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #accountSettingsMask #account-settings .account-settings-shell-v3250 {flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders.page.order-page #statusQuickRow.status-quick-row {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders.page.order-page #statusQuickRow.status-quick-row>button.status-link:not([hidden]) {width:100%!important;min-width:0!important;max-width:none!important;min-height:42px!important;padding:7px 4px!important;flex:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders.page.order-page #statusQuickRow.status-quick-row>.waiting-pack-quick {grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app .pm-tabs:not([hidden]) {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow:visible!important;padding-bottom:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app .pm-tabs>button.pm-tab:not([hidden]) {width:100%!important;min-width:0!important;max-width:none!important;min-height:42px!important;white-space:nowrap!important;padding:7px 5px!important;flex:none!important}
 }
 @media(max-width:380px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders.page.order-page #statusQuickRow.status-quick-row,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app .pm-tabs:not([hidden]) {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 }
}
@layer erpTableSpacing {
 @media screen and (max-width:900px) {
  html body.erp-system-ui #watermarks #wmRows {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-table-head {display:none!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row {display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;grid-template-areas:'preview identity' 'preview status' 'settings settings' 'updated updated' 'actions actions'!important;gap:9px 12px!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:0!important;padding:12px!important;border:1px solid var(--ui-border)!important;border-radius:10px!important;background:var(--ui-surface)!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>* {min-width:0!important;max-width:100%!important;text-align:left!important;justify-content:flex-start!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>.wm-preview-cell {grid-area:preview!important;justify-content:center!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>.wm-identity {grid-area:identity!important;align-self:end!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>.wm-row-settings {grid-area:settings!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>:nth-child(4) {grid-area:status!important;align-self:start!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>.wm-date {grid-area:updated!important;font-size:12px!important;color:var(--ui-muted,#758397)!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>:last-child {grid-area:actions!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row :is(.wm-identity,.wm-row-settings) :is(b,small) {text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>.wm-preview-cell .wm-thumb {width:60px!important;height:60px!important;min-width:0!important;margin:0!important}
  html body.erp-system-ui #watermarks #wmRows>.wm-row>:last-child>.wm-btn {display:inline-flex!important;justify-content:center!important;width:100%!important;min-height:42px!important;margin:0!important}
 }
}
@layer erpColorMode.overrides {
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions:not([hidden]) {
   box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
   align-items:stretch!important;justify-content:flex-start!important;gap:4px!important;
   flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-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:3px!important;
   flex:1 1 0!important;width:0!important;min-width:0!important;max-width:100%!important;
   height:40px!important;min-height:40px!important;margin:0!important;padding:6px 2px!important;
   font-size:11px!important;line-height:1.4!important;white-space:nowrap!important;overflow-wrap:normal!important;text-align:center!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-action="pending"]:not([hidden]) {flex-grow:1.2!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-action="add"]:not([hidden]) {flex-grow:1.4!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-action]>svg {
   display:block!important;flex:0 0 12px!important;width:12px!important;min-width:12px!important;height:12px!important;margin:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-action]>span {
   flex:0 0 auto!important;margin:0!important;white-space:nowrap!important;overflow-wrap:normal!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-action]>.office-pending-count {
   min-width:12px!important;height:16px!important;padding:0 2px!important;font-size:9px!important;line-height:1!important;
  }
 }
 @media(max-width:360px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions:not([hidden]) {gap:3px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-action]:not([hidden]) {
   gap:2px!important;padding:6px 1px!important;font-size:9px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-action]>svg {
   flex-basis:10px!important;width:10px!important;min-width:10px!important;height:10px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #accounts #officeTeamPanel .office-toolbar>.office-actions>button[data-office-action]>.office-pending-count {
   min-width:10px!important;padding:0 1px!important;font-size:8px!important;
  }
 }
}

/* Keep collapsed order details above the card display rules in this layer. */
@layer erpColorMode.overrides {
 @media(max-width:640px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders table[data-erp-mobile-table]>tbody>tr:not([data-mobile-expanded=true])>td[data-mobile-detail] {
   display:none!important;
  }
 }
}

/* Order states fit three columns; every icon, caption and count stays centered. */
@layer erpColorMode.overrides {
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow.status-quick-row {
   box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;
   gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow.status-quick-row>button.status-link:not([hidden]) {
   box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
   align-items:center!important;justify-content:center!important;gap:4px!important;
   flex:1 0 calc(33.333333% - 5.333333px)!important;width:0!important;min-width:0!important;max-width:100%!important;
   min-height:40px!important;height:auto!important;max-height:none!important;margin:0!important;padding:8px 4px!important;
   font-size:11px!important;line-height:1.4!important;white-space:nowrap!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow.status-quick-row>button.status-link>.order-status-label {
   flex:0 1 auto!important;min-width:0!important;max-width:100%!important;margin:0!important;
   line-height:1.4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow.status-quick-row>button.status-link>svg.erp-status-icon {
   display:block!important;flex:0 0 14px!important;width:14px!important;height:14px!important;min-width:14px!important;margin:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow.status-quick-row>button.status-link>.num {
   box-sizing:border-box!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
   min-width:14px!important;height:18px!important;margin:0!important;padding:0 3px!important;
   font-size:10px!important;line-height:1!important;white-space:nowrap!important;
  }
 }
}

/* Final small-screen rules share the existing ERP palette; desktop is unaffected. */
@layer erpColorMode.overrides {
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 {--erp-page-zoom:1!important;zoom:1!important;min-width:0!important;overflow-x:clip!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .app>.main {box-sizing:border-box!important;width:100%!important;min-width:0!important;margin-left:0!important;padding-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right))!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.page {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;padding-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.top {height:auto!important;min-height:58px!important;margin-inline:-10px!important;padding:8px 10px!important;gap:8px!important;flex-wrap:wrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main>.erp-tab-strip {top:var(--erp-phone-header-height,var(--erp-header-height,58px))!important;margin-inline:-10px!important;padding-inline:10px!important;max-width:calc(100% + 20px)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .top :is(.top-left,.top-right,.erp-global-tools) {min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-global-tools {width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-global-tools>:is(.erp-global-shop,.erp-global-store,.erp-select-host,.erp-choice) {flex:1 1 140px!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.erp-tool-row,.erp-tools-form,.erp-tools-actions) {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page .erp-tool-row {padding:10px!important;margin-bottom:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page .erp-tools-form {flex:1 1 100%!important;width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.toolbar-actions,.shop-head-actions,.office-actions,.wh-toolbar,.pc-filter-actions,.ca-ref-actions,.oa-actions,.pl-record-head-actions,.ar-actions) {min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.erp-list-search,.erp-clear-field:has(>input.erp-list-search)) {box-sizing:border-box!important;flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page input.erp-list-search {font-size:16px!important;min-height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.erp-tool-row,.ar-filter-grid,.pc-filter-grid,.wh-filters,.office-filter,.wm-toolbar,.sa-filters) :is(.erp-select-host,.erp-choice,select:not([multiple])) {box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-select-button,.erp-select-trigger,.erp-choice-trigger,.erp-select-option,.erp-choice-option) {min-height:42px!important;height:auto!important;font-size:14px!important;line-height:1.4!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.dash-date-box) {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:44px!important;gap:2px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.dash-date-box) input {box-sizing:border-box!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;font-size:15px!important;height:calc(100% - 8px)!important;min-height:0!important;margin-inline:2px!important;padding-inline:2px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range) button {flex:0 0 30px!important;width:30px!important;min-width:30px!important;height:38px!important;min-height:38px!important;padding:3px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(#statusQuickRow,.finance-quick,.dash-quick-range,.returns-range-v3300,#pm-app .pm-tabs,.pl-record-status-filter,.ar-quick) {display:flex!important;flex-wrap:wrap!important;gap:8px!important;max-width:100%!important;overflow:visible!important;padding-bottom:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow :is(.status-link,.quick-radio) {min-height:38px!important;height:auto!important;white-space:nowrap!important;padding:7px 10px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders #statusQuickRow .waiting-pack-quick {flex:1 1 100%!important;margin:0!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-main-grid,.screen-main-grid-rightside,.finance-grid-main,.ca-owner-board,.profit-top-grid-v3249,.pl-grid,.ar-two-column) {grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-metric-grid,.ca-ref-kpis,.ca-owner-kpis,.ca-conv-kpis,.ar-stat-grid,.office-metrics) {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-metric,.ca-ref-kpi,.ca-conv-kpi,.ar-stat,.office-metric) {min-width:0!important;padding:13px 12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-chart-wrap,.dash-chart-wrap,.ca-chart-wrap,.screen-card,.ar-card,.pl-card,.wh-shell,.pc-shell,.pm-shell,.sa-card,.cf-ledger-card) {box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog[open]) {box-sizing:border-box!important;max-width:100vw!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .modal-mask {padding:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask>.modal,dialog[open]) {min-width:0!important;max-width:calc(var(--erp-visible-width,100vw) - 16px)!important;max-height:calc(var(--erp-visible-height,var(--erp-phone-height,100dvh)) - 16px)!important;overscroll-behavior:contain!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-head,.pm-dialog-head,.pm-editor-head,dialog>header) :is(b,h2,h3) {min-width:0!important;max-width:100%!important;font-size:15px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) :is(.modal-close,.office-close,[data-pc-close],[data-wh-close],[data-wm-close]) {flex-shrink:0!important;min-width:40px!important;min-height:40px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),textarea,select) {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;font-size:16px!important;scroll-margin-block:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-dialog-actions,.pm-dialog-footer,.pm-editor-footer,.office-dialog footer,.lc-dialog footer,.pc-dialog footer,.wh-dialog footer,.system-confirm-actions,.cf-dialog footer) {display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-dialog-actions,.pm-dialog-footer,.pm-editor-footer,.office-dialog footer,.lc-dialog footer,.pc-dialog footer,.wh-dialog footer,.system-confirm-actions,.cf-dialog footer)>button {flex:1 1 120px!important;min-height:42px!important;white-space:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-pagination {box-sizing:border-box!important;max-width:100%!important;min-width:0!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:12px 0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-pagination :is(.erp-pagination-controls,.erp-pagination-pages) {display:flex!important;flex-wrap:wrap!important;min-width:0!important;max-width:100%!important;gap:6px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-pagination .erp-pagination-controls {margin-inline-start:auto!important;justify-content:flex-end!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-pagination :is(button,select,.erp-choice-trigger,.erp-select-button) {min-height:40px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-pagination :is(input,select) {font-size:16px!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-calendar {max-width:calc(100vw - 16px)!important;max-height:calc(var(--erp-visible-height,var(--erp-phone-height,100dvh)) - 16px)!important;overscroll-behavior:contain!important}
 }
 @media(max-width:640px) {
  /* Existing order/product cards must outrank the later desktop table spacing. */
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-mobile-table] {display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-mobile-table]>tbody {display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-mobile-table]>tbody>tr {box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;padding:14px!important;gap:10px 12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-mobile-table]>tbody>tr>td {display:block!important;position:static!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:0!important;height:auto!important;padding:0!important;border:0!important;box-shadow:none!important;white-space:normal!important;overflow-wrap:anywhere!important;grid-row:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-mobile-table]>tbody>tr>td[data-mobile-field=select] {position:absolute!important;inset:12px 12px auto auto!important;width:24px!important;height:24px!important;min-height:0!important;grid-area:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-mobile-table] td[data-mobile-field=select] {position:absolute!important;right:12px!important;top:12px!important;width:24px!important;height:24px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table]>tbody>tr {grid-template-columns:72px minmax(0,1fr)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table]>tbody>tr>td {grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=shop] {grid-row:1!important;padding-right:30px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=posting] {grid-row:2!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=image] {grid-column:1!important;grid-row:3!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] td[data-mobile-field=product] {grid-column:2!important;grid-row:3!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] :is(.center-wrap,.legacy-cell-lines,.key-number-stack,.key-number-price) {display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;min-width:0!important;max-width:100%!important;min-height:0!important;height:auto!important;gap:5px!important;white-space:normal!important;text-align:left!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] :is(.legacy-cell-lines>div,.product-name-line,.sku-single-line,.offer-single-line) {position:static!important;min-height:0!important;height:auto!important;max-width:100%!important;line-height:1.6!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #orders table[data-erp-mobile-table] :is(.copy-value,.posting-link,.legacy-prod-title) {max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table]>tbody>tr:has(>td[data-erp-phone-field=image]):has(>td[data-erp-phone-field=product]) {grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table]>tbody>tr:has(>td[data-erp-phone-field=image]):has(>td[data-erp-phone-field=product])>td {grid-column:span 2!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table]>tbody>tr:has(>td[data-erp-phone-field=image]):has(>td[data-erp-phone-field=product])>td[data-erp-phone-field=image] {grid-column:span 1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table]>tbody>tr:has(>td[data-erp-phone-field=image]):has(>td[data-erp-phone-field=product])>td[data-erp-phone-field=product] {grid-column:span 3!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table]>tbody>tr:has(>td[data-erp-phone-field=image]):has(>td[data-erp-phone-field=product])>td:is([data-erp-phone-field=shop],[data-erp-phone-field=identity],[data-erp-phone-field=actions],[data-erp-phone-field=wide]) {grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.erp-tool-row,.ar-filter-grid,.ar-filter,.wh-filters,.pc-filter-grid,.oa-filter-fields,.sa-filter-main) {display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.erp-tools-actions,.pm-toolbar-end,.wh-toolbar,.pl-record-head-actions,.office-toolbar) {flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.pc-field,.ar-field,.ar-search-wrap,.sa-filter-main>label,.wh-filters>label,.office-filter>.erp-select-host) {box-sizing:border-box!important;flex:1 1 140px!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.pc-keyword,.ar-search-wrap,.wh-keyword,.ar-date-group,.pc-date-filter,.sa-period,.finance-date-field,.cf-date-control) {flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.ar-field,.pc-field,.wh-filters>label,.sa-shop)>.erp-select-host {width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page :is(.ar-field,.pc-field,.wh-filters>label,.sa-shop)>span {font-size:12px!important;line-height:1.5!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capitalFundRoot .cf-overview {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capitalFundRoot .cf-overview-card:first-child {grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #capitalFundRoot .cf-overview-card {min-width:0!important;min-height:94px!important;padding:13px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #financeOverviewRoot :is(.fin-secondary-grid,.fin-pending-grid,.fin-platform-summary) {grid-template-columns:minmax(0,1fr)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page .erp-phone-table-wrap {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table] {display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;border:0!important;table-layout:auto!important;background:transparent!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table]>colgroup {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table]>thead {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table][data-erp-phone-selection]>thead {position:static!important;display:block!important;width:100%!important;height:auto!important;clip-path:none!important;overflow:visible!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table][data-erp-phone-selection]>thead tr {display:block!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table][data-erp-phone-selection]>thead th {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] th[data-erp-phone-select-all] {display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;padding:10px 4px!important;border:0!important;background:transparent!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] th[data-erp-phone-select-all]::after {content:'全选本页';font-size:13px!important;color:var(--ui-text)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table]>tbody {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table]>tbody>tr {box-sizing:border-box!important;position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 12px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;padding:14px!important;border:1px solid var(--ui-border-soft,#e3e9f1)!important;border-radius:10px!important;background:var(--ui-surface,#fff)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table]>tbody>tr>td {box-sizing:border-box!important;display:block!important;position:static!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;padding:0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere!important;box-shadow:none!important;background:transparent!important;text-align:left!important;font-size:13px!important;line-height:1.6!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main .page table[data-erp-phone-table]>tbody>tr>td[data-erp-phone-field=select] {position:absolute!important;inset:12px 12px auto auto!important;width:24px!important;height:24px!important;grid-area:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] td::before {content:attr(data-erp-phone-label);display:block!important;margin-bottom:3px!important;font-size:11px!important;line-height:1.5!important;color:var(--ui-text-muted,#667085)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] td:is([data-erp-phone-field=shop],[data-erp-phone-field=identity],[data-erp-phone-field=product],[data-erp-phone-field=actions],[data-erp-phone-field=wide]) {grid-column:1/-1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] td:is([data-erp-phone-field=shop],[data-erp-phone-field=select],[data-erp-phone-field=image],[data-erp-phone-field=actions],[data-erp-phone-field=wide])::before {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] td[data-erp-phone-field=select] {position:absolute!important;right:12px!important;top:12px!important;width:24px!important;height:24px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] td[data-erp-phone-field=shop] {padding-right:30px!important;color:#1677ff!important;font-weight:500!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] td[data-erp-phone-field=actions] {padding-top:10px!important;border-top:1px solid var(--ui-border-soft)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] :is(.wh-product-lines,.cf-product-info,.pl-record-product,.legacy-cell-lines) {min-width:0!important;max-width:100%!important;white-space:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] :is(.copy-value,.wh-copy,.cf-copy,.pl-copy,.legacy-prod-title) {max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] :is(.wh-row-actions,.pl-record-actions,.quality-action-group,.wm-actions) {display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 table[data-erp-phone-table] :is(.wh-row-actions,.pl-record-actions,.quality-action-group,.wm-actions)>button {min-height:40px!important;flex:1 1 90px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.purchase-grid,.office-form-grid,.lc-grid,.return-detail-grid-v3300,.pl-record-detail-grid,.cf-form,.wm-form) {grid-template-columns:minmax(0,1fr)!important;min-width:0!important;gap:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-calendar {grid-template-columns:minmax(0,1fr)!important;width:calc(100vw - 16px)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .pc-calendar :is(.pc-calendar-day,.pc-calendar-nav button) {min-height:34px!important}
 }
 @media(max-width:370px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.screen-metric-grid,.ca-ref-kpis,.ca-owner-kpis,.ca-conv-kpis,.ar-stat-grid,.office-metrics) {grid-template-columns:minmax(0,1fr)!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .erp-pagination-controls {width:100%!important;justify-content:space-between!important}
 }
}
/* The ERP's table spacing layer is first, so its important rules need a local card exception. */
@layer erpTableSpacing {
 @media(max-width:640px) {
  html body.erp-system-ui .main .page table:is([data-erp-mobile-table],[data-erp-phone-table]) {min-width:0!important;width:100%!important;max-width:100%!important}
  html body.erp-system-ui .main .page table:is([data-erp-mobile-table],[data-erp-phone-table])>tbody>tr>td {padding:0!important;border:0!important;min-width:0!important;max-width:100%!important;width:auto!important;text-align:left!important}
  html body.erp-system-ui .main .page table[data-erp-phone-table] td :is(div,p,span,small,b,strong,time,a,button,label,code) {text-align:inherit!important}
  html body.erp-system-ui #capital-fund #capitalFundRoot table[data-erp-phone-table] :is(td,.cf-money strong,.cf-money small,.cf-note>span,.cf-note>small,.cf-note>.cf-void-action) {text-align:left!important}
  html body.erp-system-ui #orders table[data-erp-mobile-table] :is(.center-wrap,.legacy-cell-lines,.key-number-stack,.key-number-price) {position:static!important;inset:auto!important;transform:none!important;min-height:0!important;height:auto!important;gap:5px!important;max-width:100%!important}
  html body.erp-system-ui #orders table[data-erp-mobile-table] .legacy-cell-lines>div {position:static!important;transform:none!important;height:auto!important;min-height:0!important;line-height:1.6!important;margin:0!important}
 }
}

/* Global phone control rows: full-width fields and balanced action rows on every ERP page. */
@layer erpColorMode.overrides {
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tool-row,.erp-tools-form,.toolbar-filters,.pm-toolbar,[data-pc-filters],.pc-filter-grid,.pc-filter-main,.pc-filter-status,.pc-filter-detail,.erp-pc-primary,.erp-pc-secondary,.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.wh-filters,.wh-scan-search,.pl-record-filters,.ca-ref-filter-row,.oa-filter-fields,.office-filter,.lc-filter,[data-cf-filters],.account-filterbar,.wm-toolbar,.returns-toolbar-v3300,.ar-filter-grid,.ar-filter,.ar-toolbar,.sa-search,.finance-easy-filterbar-v3280,.finance-table-tools,.ca-history-table-tools):not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-tool-row {padding:12px!important;gap:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tools-combined,.finance-toolbar,.sa-filters):not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tools-actions,.toolbar-actions,.pm-toolbar-end,.pc-filter-actions,.pc-toolbar,.wh-filter-actions,.pl-record-filter-actions,.pl-record-head-actions,.returns-head-actions-v3300,.ca-ref-actions,.oa-actions,.office-actions,.office-toolbar,.account-head-actions,.shop-head-actions,.lc-actions,.cf-actions,.ar-heading-actions,.pl-entry-actions,.pl-connection-form,.profit-inline-action-v3249):not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;margin-block:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.pc-field,.pc-date-filter,.wh-filters>label,.wh-scan-search>label,.wh-range-field,.finance-field,.dash-field,.ca-ref-field,.returns-field-v3300,.pl-record-filters>label,.pl-record-dates,.ar-field,.ar-date-group,.oa-filter-fields>label,.oa-period,.cf-quick-control,.cf-date-control,[data-cf-filters]>label,.sa-shop):not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;text-align:left!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-clear-field:has(>input.erp-list-search),.erp-list-search,.pc-keyword,.wh-keyword,.returns-search-v3300,.finance-search-wrap,.account-search-wrap-v3241,.wm-search,.ar-search-wrap,.pl-record-search,.cf-search,.ca-ref-keyword,.quality-search-field,.order-date-filter,.finance-settlement-filter-wrap-v3280,.finance-settlement-dropdown-v3283,.ca-history-table-filter):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-clear-field:has(>input.erp-list-search) {height:44px!important;min-height:44px!important;max-height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tool-row,.erp-tools-form,.toolbar-filters,.pm-toolbar,[data-pc-filters],.pc-filter-grid,.pc-filter-main,.pc-filter-status,.pc-filter-detail,.erp-pc-primary,.erp-pc-secondary,.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.wh-filters,.wh-scan-search,.pl-record-filters,.ca-ref-filter-row,.oa-filter-fields,.office-filter,.lc-filter,[data-cf-filters],.account-filterbar,.wm-toolbar,.returns-toolbar-v3300,.ar-filter-grid,.ar-filter,.ar-toolbar,.sa-search,.finance-easy-filterbar-v3280,.finance-table-tools,.ca-history-table-tools)>:is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]),select:not(.erp-choice-native),.erp-choice,.erp-select-host,.erp-clear-field):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.pc-field,.pc-date-filter,.wh-filters>label,.wh-scan-search>label,.wh-range-field,.finance-field,.dash-field,.ca-ref-field,.returns-field-v3300,.pl-record-filters>label,.pl-record-dates,.ar-field,.ar-date-group,.oa-filter-fields>label,.oa-period,.cf-quick-control,.cf-date-control,[data-cf-filters]>label,.sa-shop,.erp-clear-field:has(>input.erp-list-search),.erp-list-search,.pc-keyword,.wh-keyword,.returns-search-v3300,.finance-search-wrap,.account-search-wrap-v3241,.wm-search,.ar-search-wrap,.pl-record-search,.cf-search,.ca-ref-keyword,.quality-search-field,.order-date-filter,.finance-settlement-filter-wrap-v3280,.finance-settlement-dropdown-v3283,.ca-history-table-filter)>:is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select:not(.erp-choice-native),.erp-choice,.erp-select-host,.erp-clear-field):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;flex-basis:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tool-row,.erp-tools-form,.toolbar-filters,.pm-toolbar,[data-pc-filters],.pc-filter-grid,.pc-filter-main,.pc-filter-status,.pc-filter-detail,.erp-pc-primary,.erp-pc-secondary,.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.wh-filters,.wh-scan-search,.pl-record-filters,.ca-ref-filter-row,.oa-filter-fields,.office-filter,.lc-filter,[data-cf-filters],.account-filterbar,.wm-toolbar,.returns-toolbar-v3300,.ar-filter-grid,.ar-filter,.ar-toolbar,.sa-search,.finance-easy-filterbar-v3280,.finance-table-tools,.ca-history-table-tools,.pc-field,.pc-date-filter,.wh-filters>label,.wh-scan-search>label,.wh-range-field,.finance-field,.dash-field,.ca-ref-field,.returns-field-v3300,.pl-record-filters>label,.pl-record-dates,.ar-field,.ar-date-group,.oa-filter-fields>label,.oa-period,.cf-quick-control,.cf-date-control,[data-cf-filters]>label,.sa-shop,.erp-clear-field:has(>input.erp-list-search),.erp-list-search,.pc-keyword,.wh-keyword,.returns-search-v3300,.finance-search-wrap,.account-search-wrap-v3241,.wm-search,.ar-search-wrap,.pl-record-search,.cf-search,.ca-ref-keyword,.quality-search-field,.order-date-filter,.finance-settlement-filter-wrap-v3280,.finance-settlement-dropdown-v3283,.ca-history-table-filter) :is(input:not([readonly]):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select:not(.erp-choice-native),.erp-choice,.erp-select-host) {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:44px!important;font-size:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tool-row,.erp-tools-form,.toolbar-filters,.pm-toolbar,[data-pc-filters],.pc-filter-grid,.pc-filter-main,.pc-filter-status,.pc-filter-detail,.erp-pc-primary,.erp-pc-secondary,.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.wh-filters,.wh-scan-search,.pl-record-filters,.ca-ref-filter-row,.oa-filter-fields,.office-filter,.lc-filter,[data-cf-filters],.account-filterbar,.wm-toolbar,.returns-toolbar-v3300,.ar-filter-grid,.ar-filter,.ar-toolbar,.sa-search,.finance-easy-filterbar-v3280,.finance-table-tools,.ca-history-table-tools,.pc-field,.pc-date-filter,.wh-filters>label,.wh-scan-search>label,.wh-range-field,.finance-field,.dash-field,.ca-ref-field,.returns-field-v3300,.pl-record-filters>label,.pl-record-dates,.ar-field,.ar-date-group,.oa-filter-fields>label,.oa-period,.cf-quick-control,.cf-date-control,[data-cf-filters]>label,.sa-shop) :is(.erp-choice-trigger,.erp-select-button,.erp-select-trigger) {box-sizing:border-box!important;display:flex!important;align-items:center!important;width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;margin:0!important;font-size:14px!important;line-height:1.4!important;text-align:left!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tool-row,.erp-tools-form,.toolbar-filters,.pm-toolbar,[data-pc-filters],.pc-filter-grid,.pc-filter-main,.pc-filter-status,.pc-filter-detail,.erp-pc-primary,.erp-pc-secondary,.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.wh-filters,.wh-scan-search,.pl-record-filters,.ca-ref-filter-row,.oa-filter-fields,.office-filter,.lc-filter,[data-cf-filters],.account-filterbar,.wm-toolbar,.returns-toolbar-v3300,.ar-filter-grid,.ar-filter,.ar-toolbar,.sa-search,.finance-easy-filterbar-v3280,.finance-table-tools,.ca-history-table-tools,.pc-field,.pc-date-filter,.wh-filters>label,.wh-scan-search>label,.wh-range-field,.finance-field,.dash-field,.ca-ref-field,.returns-field-v3300,.pl-record-filters>label,.pl-record-dates,.ar-field,.ar-date-group,.oa-filter-fields>label,.oa-period,.cf-quick-control,.cf-date-control,[data-cf-filters]>label,.sa-shop) :is(.erp-choice-text,.erp-select-text,.erp-select-label) {min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.pc-field,.pc-date-filter,.wh-filters>label,.wh-scan-search>label,.wh-range-field,.finance-field,.dash-field,.ca-ref-field,.returns-field-v3300,.pl-record-filters>label,.pl-record-dates,.ar-field,.ar-date-group,.oa-filter-fields>label,.oa-period,.cf-quick-control,.cf-date-control,[data-cf-filters]>label,.sa-shop)>:is(span,label):not(:has(input,select,button)):not([hidden]) {display:block!important;flex:none!important;width:100%!important;margin:0!important;font-size:12px!important;line-height:1.5!important;text-align:left!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tool-row,.erp-tools-form,.toolbar-filters,.pm-toolbar,[data-pc-filters],.pc-filter-grid,.pc-filter-main,.pc-filter-status,.pc-filter-detail,.erp-pc-primary,.erp-pc-secondary,.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.wh-filters,.wh-scan-search,.pl-record-filters,.ca-ref-filter-row,.oa-filter-fields,.office-filter,.lc-filter,[data-cf-filters],.account-filterbar,.wm-toolbar,.returns-toolbar-v3300,.ar-filter-grid,.ar-filter,.ar-toolbar,.sa-search,.finance-easy-filterbar-v3280,.finance-table-tools,.ca-history-table-tools)>:is(span,small,p):not(:has(button,input,select)):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;order:4!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tool-row,.erp-tools-form,.toolbar-filters,.pm-toolbar,[data-pc-filters],.pc-filter-grid,.pc-filter-main,.pc-filter-status,.pc-filter-detail,.erp-pc-primary,.erp-pc-secondary,.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.wh-filters,.wh-scan-search,.pl-record-filters,.ca-ref-filter-row,.oa-filter-fields,.office-filter,.lc-filter,[data-cf-filters],.account-filterbar,.wm-toolbar,.returns-toolbar-v3300,.ar-filter-grid,.ar-filter,.ar-toolbar,.sa-search,.finance-easy-filterbar-v3280,.finance-table-tools,.ca-history-table-tools,.erp-tools-actions,.toolbar-actions,.pm-toolbar-end,.pc-filter-actions,.pc-toolbar,.wh-filter-actions,.pl-record-filter-actions,.pl-record-head-actions,.returns-head-actions-v3300,.ca-ref-actions,.oa-actions,.office-actions,.office-toolbar,.account-head-actions,.shop-head-actions,.lc-actions,.cf-actions,.ar-heading-actions,.pl-entry-actions,.pl-connection-form,.profit-inline-action-v3249)>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tools-actions,.toolbar-actions,.pm-toolbar-end,.pc-filter-actions,.pc-toolbar,.wh-filter-actions,.pl-record-filter-actions,.pl-record-head-actions,.returns-head-actions-v3300,.ca-ref-actions,.oa-actions,.office-actions,.office-toolbar,.account-head-actions,.shop-head-actions,.lc-actions,.cf-actions,.ar-heading-actions,.pl-entry-actions,.pl-connection-form,.profit-inline-action-v3249)>a.erp-btn:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tools-actions,.toolbar-actions,.pm-toolbar-end,.pc-filter-actions,.pc-toolbar,.wh-filter-actions,.pl-record-filter-actions,.pl-record-head-actions,.returns-head-actions-v3300,.ca-ref-actions,.oa-actions,.office-actions,.office-toolbar,.account-head-actions,.shop-head-actions,.lc-actions,.cf-actions,.ar-heading-actions,.pl-entry-actions,.pl-connection-form,.profit-inline-action-v3249)>:is(span,small,p):not(:has(button,input,select)):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tools-more,.pm-batch-wrap):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tools-more>summary,.pm-batch-wrap>button):not([hidden]) {box-sizing:border-box!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;white-space:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-tools-more>.erp-tools-popover {box-sizing:border-box!important;left:0!important;right:0!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-tools-popover>:is(.ar-field,.ar-date-group,.ar-quick):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;margin-block:0 10px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.finance-quick,.dash-quick-range,.cf-range-buttons,.oa-shortcuts,.ar-quick,.sa-quick,.sa-tabs,.oa-view-tabs,.profit-segment-v3249,.account-segmented,.wh-scan-tabs,.lc-tabs):not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.finance-quick,.dash-quick-range,.cf-range-buttons,.oa-shortcuts,.ar-quick,.sa-quick,.sa-tabs,.oa-view-tabs,.profit-segment-v3249,.account-segmented,.wh-scan-tabs,.lc-tabs)>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;flex:1 0 0!important;width:0!important;padding-inline:4px!important;font-size:13px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(#statusQuickRow,.pm-tabs,.returns-range-v3300,.pl-record-summary):not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(#statusQuickRow,.pm-tabs,.returns-range-v3300,.pl-record-summary)>:is(button,.status-link,.quick-radio):not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #statusQuickRow .waiting-pack-quick {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #statusQuickRow .waiting-pack-quick>.quick-radio:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.toolbar-status,.ar-filter-spacer):empty {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-date-range,.pc-date-range,.wh-date-range,.sa-date-range,.finance-date-range,.ar-date-range,#financeDateRange,#orderDateRange) {box-sizing:border-box!important;display:flex!important;flex:1 0 auto!important;align-items:center!important;flex-wrap:nowrap!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:44px!important;gap:2px!important;margin:0!important;padding-inline:4px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-date-range,.pc-date-range,.wh-date-range,.sa-date-range,.finance-date-range,.ar-date-range,#financeDateRange,#orderDateRange) input {box-sizing:border-box!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;height:36px!important;min-height:0!important;margin:0!important;padding:0 2px!important;font-size:14px!important;letter-spacing:0!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-date-range,.pc-date-range,.wh-date-range,.sa-date-range,.finance-date-range,.ar-date-range,#financeDateRange,#orderDateRange)>span {flex:0 0 18px!important;width:18px!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-date-range,.pc-date-range,.wh-date-range,.sa-date-range,.finance-date-range,.ar-date-range,#financeDateRange,#orderDateRange)>button {display:inline-flex!important;flex:0 0 28px!important;align-items:center!important;justify-content:center!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:2px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#warehouse-records,#procurement #procurement-app) .erp-tool-row :is(.wh-date-range,.pc-date-range) {width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;flex:1 0 auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#warehouse-records,#procurement #procurement-app) .erp-tool-row :is(.wh-date-range,.pc-date-range)>input {flex:1 1 0!important;width:0!important;min-width:0!important;height:36px!important;min-height:0!important;font-size:14px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#warehouse-records,#procurement #procurement-app) .erp-tool-row :is(.wh-date-range,.pc-date-range)>button {flex:0 0 28px!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:38px!important;min-height:38px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app form.pc-single-line-v66 {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-filter-actions {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-toolbar {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #pm-app .pm-toolbar {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-field:not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-date-filter:not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-keyword {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-field>.erp-clear-field {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-field>input {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-field>.erp-select-host {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-field>.erp-choice {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-date-range {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #pm-app .pm-toolbar>.erp-clear-field {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #pm-app .pm-toolbar input.erp-list-search {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #search {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-field>span:not(:has(input,select,button)) {display:block!important;text-align:left!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 :is(.pc-filter-actions,.pc-toolbar)>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-toolbar>[data-pc-selected]:empty {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 :is(.erp-clear-field,.erp-select-host,.erp-choice,input.erp-list-search) {height:44px!important;min-height:44px!important;max-height:44px!important;font-size:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 :is(.erp-select-button,.erp-choice-trigger) {height:44px!important;min-height:44px!important;max-height:44px!important;font-size:14px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #procurement-app .pc-single-line-v66 .pc-date-filter>span {display:block!important;margin-bottom:6px!important;font-size:12px!important;text-align:left!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) #pm-app .pm-toolbar>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .toolbar-filters>button:is([data-erp-icon=search],[data-erp-icon=reset]) {order:1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .toolbar-filters>:is(#pullNewOrdersBtn,.toolbar-actions) {order:2!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.wh-toolbar,.wh-toolbar.erp-tools-actions):not([hidden]) {box-sizing:border-box!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:10px 8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;padding:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .wh-toolbar>:is(.wh-record-count,[data-wh-inventory-summary]) {flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:100%!important;order:0!important;white-space:normal!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .wh-toolbar>[data-wh-refresh] {flex:0 0 auto!important;width:auto!important;min-height:40px!important;order:1!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .wh-toolbar>.wh-cost-help {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;order:2!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .wh-toolbar>[data-wh-selection]:empty {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .wh-scan-search input {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;font-size:16px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-tools-scan .wh-toolbar>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;order:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-tools-scan .wh-toolbar>[data-wh-selection]:not(:empty) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;order:1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-filter-main:not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;order:2!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-filters>.sa-shop {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;order:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-filters>[data-tools-group=period] {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;order:1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-filters>[data-sa-refresh] {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;flex-basis:100%!important;width:100%!important;order:3!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-period:not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;order:1!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-tabs:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;order:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-tabs>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-card-head:not([hidden]) {display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:center!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .sa-card-head>:is(h3,.sa-chart-choice,.sa-search,.sa-muted) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.ads-filter-rail,.oa-filter):not([hidden]) {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.ads-payment-filter,.ca-ref-filter-card,.oa-filter-fields,.oa-period,.ca-history-table-tools,.oa-section-heading>.erp-clear-field):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .ads-payment-filter>:is(.erp-choice,.erp-select-host,select:not(.erp-choice-native)) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;height:44px!important;min-height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.oa-section-heading,.ca-history-table-title):not([hidden]) {display:flex!important;flex-wrap:wrap!important;gap:10px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.oa-section-heading,.ca-history-table-title)>:is(input,.erp-clear-field,.oa-view-tabs) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.ca-sync-info,#clickAdsSyncInfo,#orderAdsProgress) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .pl-record-toolbar:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .pl-record-toolbar>div:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .pl-record-toolbar>div>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.pl-connection-form,.profit-inline-action-v3249)>:is(label,input,.erp-clear-field):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .profit-detail-head-v3249:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .profit-mode-wrap-v3249 {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination:not([hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;padding-block:12px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-total,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-total {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;text-align:left!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-controls:not([hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-controls:not([hidden]) {display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-pages,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-pages {display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:6px!important;grid-column:1!important;grid-row:1!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-pages>button:not([hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-pages>button:not([hidden]) {flex:1 1 36px!important;min-width:32px!important;max-width:none!important;min-height:40px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-pages>.erp-pagination-current,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-pages>.erp-pagination-current {flex:1 1 auto!important;min-width:0!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-size,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-size {grid-column:1!important;grid-row:2!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-size :is(.erp-choice,.erp-select-host,select:not(.erp-choice-native)),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-size :is(.erp-choice,.erp-select-host,select:not(.erp-choice-native)) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;min-height:44px!important;height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-jump,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-jump {display:flex!important;justify-content:center!important;align-items:center!important;gap:8px!important;grid-column:1!important;grid-row:3!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;white-space:nowrap!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .erp-pagination .erp-pagination-jump input,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.modal-mask,dialog) .erp-pagination .erp-pagination-jump input {flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;min-height:40px!important;margin:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.fb-packaging-toolbar,.fb-packaging-settings):not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.fb-packaging-toolbar,.fb-packaging-settings)>:is(label,.fb-packaging-unit,[data-pack-dates]):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.fb-packaging-toolbar,.fb-packaging-settings)>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-dialog-actions,.pm-dialog-footer,.pm-save-actions,.erp-message-actions,.system-confirm-actions,.pc-dialog footer,.wh-dialog footer,.lc-dialog footer,.office-dialog footer,.cf-dialog footer):not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(.erp-dialog-actions,.pm-dialog-footer,.pm-save-actions,.erp-message-actions,.system-confirm-actions,.pc-dialog footer,.wh-dialog footer,.lc-dialog footer,.office-dialog footer,.cf-dialog footer)>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app .rf-head {display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app .rf-toolbar:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app .rf-line:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app .rf-head-actions:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app .rf-footer:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app .rf-tabs:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app .rf-toolbar>label {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app .rf-toolbar>label>:is(select,.erp-choice,.erp-select-host) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app :is(.rf-toolbar,.rf-line,.rf-footer,.rf-head-actions,.rf-tabs)>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .rf-app :is(.rf-line,.rf-footer)>:is(input,.erp-clear-field,small,.rf-status) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .om-toolbar:not([hidden]) {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .om-toolbar>:is(.erp-choice,.erp-select-host,select:not(.erp-choice-native),label):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .om-toolbar>button:not([hidden]) {box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .om-toolbar :is(.erp-choice,.erp-select-host,.erp-choice-trigger,.erp-select-button) {height:44px!important;min-height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) .office-summary:not(:has(button)) {display:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#account-settings,#dashboard,#orders,#products,#procurement,#returns,#warehouse-scan,#warehouse-records,#warehouse-inventory,#finance,#finance-report,#capital-fund,#click-ads,#shop-analytics,#product-market,#product-listing,#product-listing-records,#refine-collect,#refine-records,#refine-stats,#refine-tasks,#shops,#watermarks,#quality-config,#accounts,#license-codes,#profit-calculator,#logs) :is(.erp-tool-row,.erp-tools-form,.toolbar-filters,.pm-toolbar,[data-pc-filters],.pc-filter-grid,.pc-filter-main,.pc-filter-status,.pc-filter-detail,.erp-pc-primary,.erp-pc-secondary,.finance-toolbar-left,.dash-filter-row,.quality-toolbar-left,.wh-filters,.wh-scan-search,.pl-record-filters,.ca-ref-filter-row,.oa-filter-fields,.office-filter,.lc-filter,[data-cf-filters],.account-filterbar,.wm-toolbar,.returns-toolbar-v3300,.ar-filter-grid,.ar-filter,.ar-toolbar,.sa-search,.finance-easy-filterbar-v3280,.finance-table-tools,.ca-history-table-tools,.erp-tools-actions,.toolbar-actions,.pm-toolbar-end,.pc-filter-actions,.pc-toolbar,.wh-filter-actions,.pl-record-filter-actions,.pl-record-head-actions,.returns-head-actions-v3300,.ca-ref-actions,.oa-actions,.office-actions,.office-toolbar,.account-head-actions,.shop-head-actions,.lc-actions,.cf-actions,.ar-heading-actions,.pl-entry-actions,.pl-connection-form,.profit-inline-action-v3249,.pc-field,.pc-date-filter,.wh-filters>label,.wh-scan-search>label,.wh-range-field,.finance-field,.dash-field,.ca-ref-field,.returns-field-v3300,.pl-record-filters>label,.pl-record-dates,.ar-field,.ar-date-group,.oa-filter-fields>label,.oa-period,.cf-quick-control,.cf-date-control,[data-cf-filters]>label,.sa-shop,.erp-clear-field:has(>input.erp-list-search),.erp-list-search,.pc-keyword,.wh-keyword,.returns-search-v3300,.finance-search-wrap,.account-search-wrap-v3241,.wm-search,.ar-search-wrap,.pl-record-search,.cf-search,.ca-ref-keyword,.quality-search-field,.order-date-filter,.finance-settlement-filter-wrap-v3280,.finance-settlement-dropdown-v3283,.ca-history-table-filter,.finance-quick,.dash-quick-range,.cf-range-buttons,.oa-shortcuts,.ar-quick,.sa-quick,.sa-tabs,.oa-view-tabs,.profit-segment-v3249,.account-segmented,.wh-scan-tabs,.lc-tabs)[hidden] {display:none!important}
 }
}

/* These two controls override the shared action rule's two-ID specificity. */
@layer erpColorMode.overrides {
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config .quality-config-shell,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config .quality-toolbar,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #shops .shop-manage-head {
   box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;align-items:stretch!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config .quality-toolbar #qualityControls {
   box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;
   gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config #qualityControls>.quality-search-field {
   box-sizing:border-box!important;grid-column:1/-1!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
   gap:6px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0 0 4px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config #qualityControls>.quality-search-field>span {
   display:block!important;flex:none!important;width:100%!important;line-height:1.5!important;text-align:left!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config #qualityControls .erp-clear-field,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config #qualitySearch {
   box-sizing:border-box!important;display:block!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;font-size:16px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config .quality-toolbar #qualityControls>.btn:not([hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #shops .shop-manage-head #shopControls>.btn:not([hidden]) {
   box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
   width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;max-height:none!important;
   margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.5!important;text-align:center!important;white-space:normal!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config .quality-toolbar #qualityControls>.btn:not([hidden]) {flex:none!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #shops .shop-manage-head #shopControls {
   box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;
   gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #shops .shop-manage-head #shopControls>.btn:not([hidden]) {
   flex:1 0 calc(50% - 4px)!important;width:auto!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #quality-config #qualityControls>[hidden],
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #shops #shopControls>[hidden] {display:none!important}
 }
}

/* Short phone viewports keep account actions outside the scrollable profile. */
@layer erpColorMode.overrides {
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #currentAccountInfoMask>.current-account-modal-v3230 {
   display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;
   max-height:calc(var(--erp-visible-height,var(--erp-phone-height,100dvh)) - 24px)!important;overflow:hidden!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #currentAccountInfoMask>.current-account-modal-v3230>.current-account-body-v3230 {
   flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #currentAccountInfoMask>.current-account-modal-v3230>:is(.modal-head,.current-account-actions-v3230) {flex:0 0 auto!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #currentAccountInfoMask .current-account-grid-v3230 strong {min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
 }
}

/* Width sets the row size; auto flex-basis also respects height in column dialogs. */
/* Date endpoints need room for all ten YYYY-MM-DD characters, plus actions. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden]),
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(dialog,.modal-mask) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden]) {
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;
  flex:0 0 auto!important;width:284px!important;min-width:284px!important;max-width:100%!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;padding-inline:4px!important;gap:2px!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>input:not([type=hidden]),
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(dialog,.modal-mask) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>input:not([type=hidden]) {
  box-sizing:border-box!important;flex:1 1 0!important;width:0!important;min-width:calc(10ch + 6px)!important;max-width:none!important;
  height:calc(100% - 8px)!important;min-height:0!important;margin:0!important;padding:0 2px!important;
  font-family:Arial,"Microsoft YaHei",sans-serif!important;font-size:12px!important;letter-spacing:0!important;text-align:center!important;
  font-variant-numeric:tabular-nums!important;text-overflow:clip!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>span,
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(dialog,.modal-mask) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>span {flex:0 0 18px!important;width:18px!important;text-align:center!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>button,
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(dialog,.modal-mask) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>button {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 24px!important;
  width:24px!important;min-width:24px!important;max-width:24px!important;height:30px!important;min-height:0!important;margin:0!important;padding:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.cf-date-control,.finance-date-field,.dash-field-date,.pc-date-filter,.wh-range-field,.pl-record-dates,.oa-period):not([hidden]) {box-sizing:border-box!important;flex:0 0 auto!important;min-width:284px!important;max-width:100%!important;width:auto!important}
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.cf-date-control,.finance-date-field,.dash-field-date,.pc-date-filter,.wh-range-field,.pl-record-dates,.oa-period):not([hidden]) {flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(dialog,.modal-mask) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden]) {flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>input:not([type=hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(dialog,.modal-mask) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>input:not([type=hidden]) {font-size:14px!important}
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>button,
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(dialog,.modal-mask) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>button {height:36px!important}
 }
 @media(max-width:380px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main :is(#dashboard,#orders,#products,#procurement #procurement-app,#returns,#finance,#finance-report,#capital-fund,#warehouse-scan,#warehouse-records,#warehouse-inventory,#shop-analytics,#click-ads,#product-listing-records,#refine-collect,#refine-records,#refine-tasks,#refine-stats,#accounts,#logs) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>input:not([type=hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 :is(dialog,.modal-mask) :is(.erp-date-range,.pc-date-range,.finance-date-range,.wh-date-range,.ar-date-range,.sa-date-range,.fb-packaging-dates):not([hidden])>input:not([type=hidden]) {font-size:12px!important}
 }
}


/* Product and order status strips stay on one line and scroll within the page. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app .pm-tabs:not([hidden]),
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders #statusQuickRow.status-quick-row:not([hidden]) {
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:flex-start!important;gap:8px!important;
  flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;padding:10px!important;scrollbar-gutter:auto!important;
  overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;
  overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch;scrollbar-width:none!important;-ms-overflow-style:none;
 }
 /* Hide the native track while retaining native horizontal scrolling. */
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app .pm-tabs:not([hidden])::-webkit-scrollbar,
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders #statusQuickRow.status-quick-row:not([hidden])::-webkit-scrollbar {
  display:none!important;width:0!important;height:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app .pm-tabs:not([hidden])>button.pm-tab[role=tab]:not([hidden]),
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app .pm-tabs:not([hidden])>button.pm-auto[data-action=sync-schedule]:not([hidden]),
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders #statusQuickRow.status-quick-row:not([hidden])>button.status-link:not([hidden]) {
  display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important;
  white-space:nowrap!important;margin:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app .pm-tabs>button.pm-tab[role=tab]>.pm-tab-label,
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders #statusQuickRow.status-quick-row>button.status-link>.order-status-label {
  flex:0 0 auto!important;max-width:none!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders #statusQuickRow.status-quick-row:not([hidden])>.waiting-pack-quick:not([hidden]) {
  display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;
  flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important;
  gap:8px!important;margin:0!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders #statusQuickRow.status-quick-row>.waiting-pack-quick:not([hidden])>button.quick-radio:not([hidden]) {
  flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important;white-space:nowrap!important;
 }
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app .pm-tabs:not([hidden])>button.pm-tab[role=tab]:not([hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app .pm-tabs:not([hidden])>button.pm-auto[data-action=sync-schedule]:not([hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders #statusQuickRow.status-quick-row:not([hidden])>button.status-link:not([hidden]),
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #orders #statusQuickRow.status-quick-row>.waiting-pack-quick:not([hidden])>button.quick-radio:not([hidden]) {
   height:40px!important;min-height:40px!important;max-height:40px!important;padding:0 12px!important;gap:6px!important;font-size:12px!important;
  }
 }
}
