/*
 * Hanil Fashion ERP work theme
 *
 * A compact, calm presentation layer for long-running operational work.
 * Feature-specific layouts stay in app.css; this file owns shared visual
 * hierarchy, interaction states and responsive ergonomics.
 */

:root {
  color-scheme: light;
  --ink: #182b3a;
  --muted: #667887;
  --nav: #132a3b;
  --nav-hover: #1d3b50;
  --accent: #22658a;
  --accent-dark: #174b69;
  --paper: #fff;
  --canvas: #eef1f4;
  --line: #cfd8df;
  --head: #e7edf2;
  --warning: #a56408;
  --danger: #b32e3f;
  --success: #17745d;
  --mint: #36bfa8;
  --navy-800: #18354a;
  --navy-900: #132a3b;
  --soft-shadow: 0 1px 3px rgba(18, 42, 59, .08);
  --section-head-bg: linear-gradient(180deg, #f7f9fb 0%, #e6edf2 100%);
  --section-head-line: #c4d0d9;
  --erp-radius: 4px;
  --erp-control-height: 30px;
}

html { background: var(--canvas); }
body,
body.erp-theme {
  color: var(--ink);
  background: var(--canvas);
  background-image: none;
  font-size: 12px;
  line-height: 1.35;
}

body.erp-theme a { color: #1b5f8f; }
body.erp-theme a:focus-visible,
body.erp-theme button:focus-visible,
body.erp-theme input:focus-visible,
body.erp-theme select:focus-visible,
body.erp-theme textarea:focus-visible,
body.erp-theme summary:focus-visible {
  outline: 2px solid #2c7caf;
  outline-offset: 2px;
}

/* Global navigation --------------------------------------------------------- */
body.erp-theme .topbar {
  min-height: 54px;
  padding: 0 16px;
  gap: 13px;
  border-bottom: 2px solid #2c9f91;
  background: linear-gradient(180deg, #173246 0%, #102636 100%);
  box-shadow: 0 2px 7px rgba(12, 30, 43, .2);
  backdrop-filter: none;
}
body.erp-theme .brand { min-width: 158px; gap: 10px; }
body.erp-theme .brand-mark { grid-template-columns: repeat(3, 5px); width: 21px; height: 24px; }
body.erp-theme .brand-mark i:nth-child(1) { height: 13px; }
body.erp-theme .brand-mark i:nth-child(2) { height: 24px; }
body.erp-theme .brand-mark i:nth-child(3) { height: 19px; background: #4ad4c0; }
body.erp-theme .brand-copy strong { font-size: 15px; letter-spacing: .14em; }
body.erp-theme .brand-copy small { margin-top: 4px; color: #a7b8c6; letter-spacing: .2em; }
body.erp-theme .nav { height: 52px; }
body.erp-theme .nav-category {
  min-height: 52px;
  padding: 0 11px;
  color: #cfdae2;
  border-left-color: rgba(255, 255, 255, .08);
  font-size: 11px;
  font-weight: 650;
}
body.erp-theme .nav-category::after { color: #8296a5; }
body.erp-theme .nav-category:hover,
body.erp-theme .nav-group.submenu-open .nav-category { color: #fff; background: rgba(255, 255, 255, .07); }
body.erp-theme .nav-category.has-current-page {
  color: #fff;
  background: rgba(54, 191, 168, .1);
  box-shadow: inset 0 -3px #48cdb7;
}
body.erp-theme .nav-submenu {
  min-width: 172px;
  padding: 4px;
  border-color: #aebdc9;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 9px 22px rgba(16, 38, 54, .2);
}
body.erp-theme .nav-submenu a {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 2px;
  color: #2b4152;
  font-size: 11.5px;
}
body.erp-theme .nav-submenu a:hover,
body.erp-theme .nav-submenu a:focus { color: #174f70; background: #e8f0f5; }
body.erp-theme .nav-submenu a.is-current {
  color: #123f5a;
  background: #dceaf1;
  box-shadow: inset 3px 0 var(--accent);
}
body.erp-theme .today { color: #9eb0bd; }
body.erp-theme .user-account { color: #d2dce3; }
body.erp-theme .user-account > span::before { background: #4ad4c0; box-shadow: none; }
body.erp-theme .user-account a { color: #e7eef3; }
body.erp-theme .user-account button,
body.erp-theme .pwa-install-button {
  min-height: 29px;
  color: #e7eef3;
  border-color: #5c7180;
  border-radius: 3px;
  background: #213c4f;
  box-shadow: none;
}
body.erp-theme .user-account button:hover,
body.erp-theme .pwa-install-button:hover { color: #fff; border-color: #7893a4; background: #2b4c62; }

/* Global command search ---------------------------------------------------- */
body.erp-theme button.global-search-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 4px 7px 4px 8px;
  color: #dce7ed;
  border: 1px solid rgba(185, 207, 220, .35);
  border-radius: 4px;
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 700;
}
body.erp-theme button.global-search-trigger:hover {
  color: #fff;
  border-color: rgba(105, 212, 195, .75);
  background: rgba(54, 191, 168, .12);
  box-shadow: none;
}
body.erp-theme .global-search-trigger svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}
body.erp-theme .global-search-trigger kbd,
body.erp-theme .global-search-foot kbd,
body.erp-theme .global-search-box kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 1px 5px;
  border: 1px solid rgba(206, 220, 229, .28);
  border-radius: 3px;
  color: #aebfca;
  background: rgba(4, 20, 31, .28);
  box-shadow: inset 0 -1px rgba(0, 0, 0, .15);
  font: 700 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
}
body.global-search-open { overflow: hidden; }
body.erp-theme dialog.global-search-dialog {
  width: min(760px, calc(100vw - 28px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 40px));
  margin: clamp(18px, 8vh, 72px) auto auto;
  padding: 0;
  overflow: hidden;
  color: #1a3040;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 24px 72px rgba(4, 18, 29, .35), 0 4px 16px rgba(4, 18, 29, .18);
}
body.erp-theme dialog.global-search-dialog::backdrop {
  background: rgba(7, 21, 32, .68);
  backdrop-filter: blur(2px);
}
body.erp-theme .global-search-shell {
  display: flex;
  max-height: min(820px, calc(100dvh - 40px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #b8c7d1;
  border-top: 3px solid #31aa98;
  border-radius: 8px;
  background: #fff;
}
body.erp-theme .global-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 10px;
  background: linear-gradient(180deg, #f8fafb 0%, #fff 100%);
}
body.erp-theme .global-search-head > div { min-width: 0; }
body.erp-theme .global-search-head span {
  display: block;
  margin-bottom: 2px;
  color: #5b7c90;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
}
body.erp-theme .global-search-head h2 {
  margin: 0;
  color: #17364a;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
body.erp-theme button.global-search-close {
  width: 31px;
  min-height: 31px;
  padding: 0;
  color: #677b89;
  border-color: #cad4db;
  border-radius: 50%;
  background: #f5f7f8;
  box-shadow: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
body.erp-theme button.global-search-close:hover { color: #17364a; border-color: #92a8b6; background: #edf2f5; }
body.erp-theme .global-search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  margin: 0 18px;
  padding: 0 11px 0 13px;
  color: #3e6e88;
  border: 1px solid #8caaba;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 101, 138, .07), inset 0 1px 2px rgba(17, 44, 61, .03);
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.erp-theme .global-search-box:focus-within {
  border-color: #27789f;
  box-shadow: 0 0 0 3px rgba(39, 120, 159, .15);
}
body.erp-theme .global-search-box svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.75;
}
body.erp-theme .global-search-box input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  color: #142d3e;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 620;
}
body.erp-theme .global-search-box input:focus { border: 0; outline: 0; box-shadow: none; }
body.erp-theme .global-search-box input::placeholder { color: #91a0aa; font-weight: 500; }
body.erp-theme .global-search-box kbd {
  min-width: 36px;
  color: #6d7f8b;
  border-color: #cbd5dc;
  background: #f4f6f8;
  box-shadow: inset 0 -1px #dfe5e9;
}
body.erp-theme .global-search-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #d4e0e6;
  border-right-color: #287897;
  border-radius: 50%;
  animation: global-search-spin .65s linear infinite;
}
@keyframes global-search-spin { to { transform: rotate(360deg); } }
body.erp-theme .global-search-scope {
  display: flex;
  gap: 5px;
  padding: 10px 18px 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.erp-theme .global-search-scope::-webkit-scrollbar { display: none; }
body.erp-theme .global-search-scope span {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: #526b7b;
  border: 1px solid #d7e0e5;
  border-radius: 999px;
  background: #f6f8f9;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
body.erp-theme .global-search-status {
  min-height: 27px;
  padding: 4px 19px 7px;
  color: #6a7c89;
  border-bottom: 1px solid #dce3e8;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
body.erp-theme .global-search-results {
  min-height: 190px;
  max-height: min(500px, calc(100dvh - 275px));
  padding: 7px 0 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  scrollbar-color: #aabac4 #eef2f4;
  scrollbar-width: thin;
}
body.erp-theme .global-search-group + .global-search-group { margin-top: 5px; }
body.erp-theme .global-search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 19px 5px;
}
body.erp-theme .global-search-group-head h3 {
  margin: 0;
  color: #405969;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .015em;
}
body.erp-theme .global-search-group-head span { color: #8998a2; font-size: 9.5px; }
body.erp-theme .global-search-group-list { display: grid; }
body.erp-theme a.global-search-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 7px 17px;
  color: #1b3344;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
body.erp-theme a.global-search-result:hover,
body.erp-theme a.global-search-result:focus,
body.erp-theme a.global-search-result.is-active {
  color: #15374d;
  border-color: #d3e2ea;
  background: #edf5f8;
  outline: 0;
  text-decoration: none;
  box-shadow: inset 3px 0 #287b98;
}
body.erp-theme .global-search-result-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 5px;
  background: #496777;
  font-size: 10px;
  font-weight: 850;
}
body.erp-theme .tone-product .global-search-result-icon { background: #16806c; }
body.erp-theme .tone-order .global-search-result-icon { background: #276f9b; }
body.erp-theme .tone-claim .global-search-result-icon { background: #a44253; }
body.erp-theme .tone-purchase .global-search-result-icon { background: #a76a17; }
body.erp-theme .tone-document .global-search-result-icon { background: #546b7c; }
body.erp-theme .global-search-result-copy { display: block; min-width: 0; }
body.erp-theme .global-search-result-copy strong,
body.erp-theme .global-search-result-copy span,
body.erp-theme .global-search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.erp-theme .global-search-result-copy strong { color: #17364a; font-size: 12.5px; font-weight: 780; }
body.erp-theme .global-search-result-copy span { margin-top: 2px; color: #526b7b; font-size: 10.5px; }
body.erp-theme .global-search-result-copy small { margin-top: 2px; color: #7b8c97; font-size: 9.5px; }
body.erp-theme .global-search-result-badge {
  max-width: 100px;
  padding: 3px 7px;
  overflow: hidden;
  color: #486170;
  border: 1px solid #d3dde3;
  border-radius: 999px;
  background: #f7f9fa;
  font-size: 9.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.erp-theme .global-search-result-arrow { color: #8fa0aa; font-size: 20px; font-weight: 300; }
body.erp-theme .global-search-intro { padding: 13px 18px 18px; }
body.erp-theme .global-search-intro > strong { color: #425a6a; font-size: 10.5px; }
body.erp-theme .global-search-recent { display: flex; gap: 5px; margin: 7px 0 12px; flex-wrap: wrap; }
body.erp-theme .global-search-recent button {
  min-height: 27px;
  padding: 3px 8px;
  color: #355f76;
  border-color: #c8d8e1;
  border-radius: 999px;
  background: #f3f7f9;
  box-shadow: none;
  font-size: 10px;
}
body.erp-theme .global-search-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 6px;
}
body.erp-theme .global-search-guide > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d9e2e7;
  border-radius: 5px;
  background: #f7f9fa;
}
body.erp-theme .global-search-guide b,
body.erp-theme .global-search-guide span { display: block; }
body.erp-theme .global-search-guide b { color: #254b61; font-size: 10.5px; }
body.erp-theme .global-search-guide span { margin-top: 4px; color: #748691; font-size: 9.5px; line-height: 1.45; }
body.erp-theme .global-search-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 190px;
  padding: 28px;
  color: #71838f;
  text-align: center;
}
body.erp-theme .global-search-empty::before {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  color: #507589;
  border: 1px solid #cbd9e0;
  border-radius: 50%;
  background: #f0f5f7;
  font-size: 17px;
  content: "?";
}
body.erp-theme .global-search-empty.is-error::before { color: #a23d4c; border-color: #e2bdc3; background: #fbf0f2; content: "!"; }
body.erp-theme .global-search-empty strong { color: #344f60; font-size: 12px; }
body.erp-theme .global-search-empty span { margin-top: 5px; font-size: 10px; }
body.erp-theme .global-search-loading { display: grid; padding: 6px 17px; }
body.erp-theme .global-search-loading > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 10px;
  min-height: 59px;
  border-bottom: 1px solid #edf1f3;
}
body.erp-theme .global-search-loading i,
body.erp-theme .global-search-loading span,
body.erp-theme .global-search-loading small {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #edf1f3 25%, #f7f9fa 50%, #edf1f3 75%);
  background-size: 200% 100%;
  animation: global-search-shimmer 1.15s linear infinite;
}
body.erp-theme .global-search-loading i { width: 34px; height: 34px; }
body.erp-theme .global-search-loading span { width: 70%; height: 10px; }
body.erp-theme .global-search-loading small { width: 74px; height: 19px; }
@keyframes global-search-shimmer { to { background-position: -200% 0; } }
body.erp-theme .global-search-foot {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 40px;
  padding: 7px 18px;
  color: #71838f;
  border-top: 1px solid #d7e0e5;
  background: #f5f7f8;
  font-size: 9.5px;
}
body.erp-theme .global-search-foot span { display: inline-flex; align-items: center; gap: 3px; }
body.erp-theme .global-search-foot kbd {
  min-width: 21px;
  min-height: 19px;
  color: #526b79;
  border-color: #c7d2d9;
  background: #fff;
  box-shadow: inset 0 -1px #e0e5e8;
}

/* Open work tabs ------------------------------------------------------------ */
body.erp-theme .work-tabs {
  top: 54px;
  min-height: 36px;
  padding: 4px 16px;
  border-bottom-color: #c6d0d8;
  background: #e6ebef;
  box-shadow: 0 1px 3px rgba(18, 42, 59, .08);
  backdrop-filter: none;
}
body.erp-theme .work-tabs-label > span { background: #279e8c; box-shadow: none; }
body.erp-theme .work-tabs-label strong { color: #344c5d; }
body.erp-theme .work-tab {
  border-color: #b9c5ce;
  border-radius: 3px;
  background: #f3f6f8;
}
body.erp-theme .work-tab.is-active {
  border-color: #7199b3;
  background: #fff;
  box-shadow: inset 3px 0 var(--accent);
}
body.erp-theme .work-tab a { color: #344c5d; }
body.erp-theme .work-tabs-close-others { min-height: 26px; border-radius: 3px; background: #f8fafb; }

/* Workspace hierarchy ------------------------------------------------------ */
body.erp-theme main { padding: 12px 16px 22px; }
body.erp-theme .erp-page > .page-head {
  min-height: 60px;
  margin-bottom: 9px;
  padding: 10px 13px 10px 16px;
  border-color: #cbd5dd;
  border-radius: var(--erp-radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}
body.erp-theme .erp-page > .page-head::before { width: 3px; background: var(--accent); }
body.erp-theme .erp-page > .page-head h1 {
  color: #173247;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.025em;
}
body.erp-theme .erp-page > .page-head p,
body.erp-theme .erp-page > .page-head .page-result-count { color: #6d7e8c; font-size: 10.5px; }
body.erp-theme .page-section-label { color: #337393; font-size: 9px; letter-spacing: .08em; }

body.erp-theme .panel,
body.erp-theme .dashboard-card,
body.erp-theme .table-wrap,
body.erp-theme .registration-import-form,
body.erp-theme .registration-sheet-panel {
  border-color: #cbd5dd;
  border-radius: var(--erp-radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}
body.erp-theme .panel { overflow: hidden; }
body.erp-theme .panel-title,
body.erp-theme .dashboard-card-title,
body.erp-theme .registration-history-title,
body.erp-theme .registration-file-section > summary,
body.erp-theme .mapping-section-head,
body.erp-theme .settlement-section-head,
body.erp-theme .legacy-pane-title,
body.erp-theme .purchase-size-head,
body.erp-theme .purchase-order-head,
body.erp-theme .product-image-dialog-head,
body.erp-theme .collect-panel-head {
  min-height: 36px;
  padding: 7px 9px;
  color: #263f52;
  border-bottom-color: #bdcbd5;
  background: linear-gradient(180deg, #f6f8fa 0%, #e3eaf0 100%) !important;
  box-shadow: inset 3px 0 #4d819e, inset 0 1px #fff;
}
body.erp-theme .panel-title h2,
body.erp-theme .channel-connection-head h2 { font-size: 12.5px; }
body.erp-theme .panel-title > span,
body.erp-theme .dashboard-card-title > span,
body.erp-theme .legacy-pane-title > span { color: #6a7d8c; }

/* Controls and actions ------------------------------------------------------ */
/* Link actions need the same vertical centering as native buttons, including
   stretched toolbar rows and taller mobile controls. Keep specialized layouts. */
body.erp-theme .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
body.erp-theme .button,
body.erp-theme button {
  min-height: var(--erp-control-height);
  padding: 4px 10px;
  color: #2e485a;
  border-color: #aebcc7;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff 0%, #edf2f5 100%);
  box-shadow: none;
  font-weight: 700;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
body.erp-theme .button:hover,
body.erp-theme button:hover {
  color: #174e6c;
  border-color: #7297ad;
  background: #e7f0f5;
  box-shadow: none;
  transform: none;
}
body.erp-theme .button.primary,
body.erp-theme button.primary {
  color: #fff;
  border-color: #174e6c;
  background: linear-gradient(180deg, #2c7398 0%, #1d5c7d 100%);
  box-shadow: none;
}
body.erp-theme .button.primary:hover,
body.erp-theme button.primary:hover { border-color: #103d57; background: #174e6c; transform: none; }
body.erp-theme .button.danger-button,
body.erp-theme button.danger-button,
body.erp-theme .danger-button { color: #fff; border-color: #942839; background: #b32e3f; }
body.erp-theme .button.danger-button:hover,
body.erp-theme button.danger-button:hover,
body.erp-theme .danger-button:hover { color: #fff; border-color: #7e2030; background: #972637; }
body.erp-theme .button.small,
body.erp-theme button.small { min-height: 26px; padding: 3px 7px; }
body.erp-theme button:disabled,
body.erp-theme .button:disabled { color: #8997a1; border-color: #ccd4da; background: #eef1f3; opacity: .72; }

/* Navigation controls are buttons structurally, but must retain toolbar styling. */
body.erp-theme button.nav-category,
body.erp-theme a.nav-category-link {
  min-height: 52px;
  padding: 0 11px;
  color: #cfdae2;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
}
body.erp-theme button.nav-category:hover,
body.erp-theme a.nav-category-link:hover,
body.erp-theme .nav-group.submenu-open button.nav-category {
  color: #fff;
  border-left-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .07);
}
body.erp-theme button.nav-category.has-current-page,
body.erp-theme a.nav-category-link.has-current-page {
  color: #fff;
  background: rgba(54, 191, 168, .1);
  box-shadow: inset 0 -3px #48cdb7;
}
body.erp-theme button.nav-toggle {
  color: #fff;
  border-color: #5c7180;
  background: #213c4f;
}
body.erp-theme button.nav-toggle:hover {
  color: #fff;
  border-color: #7893a4;
  background: #2b4c62;
}

body.erp-theme input,
body.erp-theme select,
body.erp-theme textarea {
  min-height: 29px;
  color: #1d3343;
  border-color: #aebdc8;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(18, 42, 59, .035);
}
body.erp-theme input:hover,
body.erp-theme select:hover,
body.erp-theme textarea:hover { border-color: #839baa; }
body.erp-theme input:focus,
body.erp-theme select:focus,
body.erp-theme textarea:focus {
  outline: none;
  border-color: #2d7298;
  box-shadow: 0 0 0 2px rgba(45, 114, 152, .16);
}
body.erp-theme input[readonly],
body.erp-theme input:disabled,
body.erp-theme select:disabled,
body.erp-theme textarea:disabled { color: #60717d; background: #edf1f3; }
body.erp-theme input[type="checkbox"],
body.erp-theme input[type="radio"] { accent-color: var(--accent); box-shadow: none; }
body.erp-theme label,
body.erp-theme .field-label { color: #3b5263; }

body.erp-theme .filters {
  gap: 7px;
  padding: 9px 10px;
  margin-bottom: 8px;
  border-color: #cbd5dd;
  border-radius: var(--erp-radius);
  background: #f8fafb;
  box-shadow: var(--soft-shadow);
}
body.erp-theme .filters label,
body.erp-theme .filters .field-label { color: #405768; font-size: 10.5px; }
body.erp-theme .filters .filter-actions {
  min-height: 34px;
  padding-top: 7px;
  border-top-color: #d6dee4;
}
body.erp-theme .filters .result-count { color: #5e7282; }
body.erp-theme .form-panel { padding: 15px; border-radius: var(--erp-radius); }
body.erp-theme .form-actions { border-top-color: #d8e0e6; }

body.erp-theme .page-tabs,
body.erp-theme .history-tabs,
body.erp-theme .dashboard-detail-tabs {
  min-height: 38px;
  padding: 4px;
  border-color: #cbd5dd;
  border-radius: var(--erp-radius);
  background: #e9eef2;
  box-shadow: var(--soft-shadow);
}

/* Dense result tables ------------------------------------------------------- */
body.erp-theme .table-wrap {
  border-color: #c5d0d9;
  border-radius: var(--erp-radius);
  box-shadow: var(--soft-shadow);
  scrollbar-color: #94a7b5 #e7ecef;
}
body.erp-theme table { color: #253b4b; font-size: 11.5px; }
body.erp-theme th,
body.erp-theme td { border-color: #d6dee4; }
body.erp-theme table thead th,
body.erp-theme .warehouse-table thead th,
body.erp-theme .receipt-history-table thead th,
body.erp-theme .legacy-history-table thead th {
  height: 25px;
  color: #294559;
  border-bottom-color: #aebdc8;
  background: linear-gradient(180deg, #f1f5f7 0%, #dce5eb 52%, #cedae2 100%) !important;
  box-shadow: inset 0 1px #fff;
  font-weight: 760;
}
body.erp-theme table thead tr.group-head th,
body.erp-theme table thead tr:first-child:not(:last-child) th { background: #d6e1e8 !important; }
body.erp-theme tbody tr:nth-child(even) { background: #f7f9fb; }
body.erp-theme tbody tr:hover { background: #e8f2f7; }
body.erp-theme tbody tr:hover > td:first-child { box-shadow: inset 3px 0 #2f789e; }
body.erp-theme tbody tr:focus-within { background: #e4f0f6; }
body.erp-theme .query-summary-footer td,
body.erp-theme .query-summary-footer th,
body.erp-theme table tfoot th,
body.erp-theme table tfoot td {
  color: #194c4a;
  border-top-color: #7bb8b1;
  background: #dff0ed !important;
}
body.erp-theme .empty { color: #758591; background: #f8fafb; }
body.erp-theme .excel-export-button { color: #176b58; border-color: #7fb4a7; background: #edf7f4; }
body.erp-theme .badge { border-radius: 10px; }

/* Status, guidance and messages -------------------------------------------- */
body.erp-theme .page-notice,
body.erp-theme .history-delete-guide,
body.erp-theme .reference-form-guide,
body.erp-theme .master-code-guide,
body.erp-theme .receipt-upload-guide,
body.erp-theme .receipt-preview-help,
body.erp-theme .barcode-source-note {
  padding: 9px 11px;
  border-color: #cbd9e3;
  border-left-color: #4f819f;
  border-radius: var(--erp-radius);
  background: #f2f7fa;
  box-shadow: none;
}
body.erp-theme .page-notice-warning { border-color: #dec993; border-left-color: #c8891b; background: #fff9ea; }
body.erp-theme .messages { margin-bottom: 7px; }
body.erp-theme .messages li { padding: 7px 35px 7px 10px; border-radius: 3px; box-shadow: none; }

body.erp-theme .metrics,
body.erp-theme .operations-metrics,
body.erp-theme .barcode-metrics,
body.erp-theme .logistics-today-grid,
body.erp-theme .dashboard-sales-metrics,
body.erp-theme .development-metrics { box-shadow: var(--soft-shadow); }
body.erp-theme .operations-metrics article,
body.erp-theme .barcode-metrics article,
body.erp-theme .logistics-today-grid article,
body.erp-theme .metric,
body.erp-theme .development-metrics article {
  border-color: #cbd5dd;
  border-radius: var(--erp-radius);
  box-shadow: none;
}

/* Dashboard ---------------------------------------------------------------- */
body.erp-theme .operations-dashboard { gap: 10px; max-width: none; }
body.erp-theme .dashboard-hero {
  min-height: 78px;
  padding: 15px 18px;
  border: 1px solid #16394f;
  border-radius: var(--erp-radius);
  background: linear-gradient(100deg, #173247 0%, #1b4359 100%);
  box-shadow: var(--soft-shadow);
}
body.erp-theme .dashboard-hero::before,
body.erp-theme .dashboard-hero::after { display: none; }
body.erp-theme .dashboard-hero p { margin-bottom: 6px; color: #b4c6d2; }
body.erp-theme .dashboard-hero p b { color: #69d4c3; }
body.erp-theme .dashboard-hero h1 { font-size: 22px; }
body.erp-theme .dashboard-hero small { margin-top: 4px; color: #c2d0d9; }
body.erp-theme .dashboard-section-head { min-height: 34px; margin-bottom: -3px; }
body.erp-theme .dashboard-section-head h2 { font-size: 15px; }
body.erp-theme .dashboard-section-head h2::before { width: 3px; height: 12px; margin-right: 7px; background: var(--accent); }
body.erp-theme .dashboard-fx-grid { gap: 8px; }
body.erp-theme .dashboard-fx-card {
  min-height: 205px;
  border-color: #cbd5dd;
  border-radius: var(--erp-radius);
  box-shadow: var(--soft-shadow);
}
body.erp-theme .dashboard-fx-card:hover { transform: none; border-color: #85a9bc; box-shadow: 0 2px 6px rgba(18, 42, 59, .1); }
body.erp-theme .dashboard-sales-metrics { border-color: #c5d0d9; border-radius: var(--erp-radius); box-shadow: var(--soft-shadow); }
body.erp-theme .dashboard-sales-metrics > div { min-height: 74px; padding: 9px 11px; border-color: #cbd5dd; }
body.erp-theme .dashboard-sales-metrics > div:first-child { box-shadow: inset 3px 0 #36a996; }
body.erp-theme .dashboard-sales-metrics strong { font-size: 21px; }
body.erp-theme .dashboard-card-title { min-height: 37px; padding: 8px 9px; }
body.erp-theme .dashboard-sales-controls { min-height: 36px; padding: 5px 8px; background: #f7f9fa; }
body.erp-theme .dashboard-sales-quick a,
body.erp-theme .dashboard-detail-tabs a { min-height: 27px; border-radius: 3px; }
body.erp-theme .dashboard-sales-quick a.active,
body.erp-theme .dashboard-detail-tabs a.active { border-color: var(--accent); background: var(--accent); }

/* Guided operational work -------------------------------------------------- */
body.erp-theme .order-flow {
  margin-bottom: 6px;
  border-color: #bfcbd4;
  border-radius: var(--erp-radius);
  box-shadow: var(--soft-shadow);
}
body.erp-theme .order-flow a { min-height: 43px; color: #526675; border-color: #cbd5dd; background: #f8fafb; }
body.erp-theme .order-flow a:hover { background: #edf3f6; }
body.erp-theme .order-flow a.active { color: #fff; background: linear-gradient(180deg, #2b7598, #1d5978); }
body.erp-theme .order-flow a.active small { color: #d9e8ef; }
body.erp-theme .fulfillment-guide,
body.erp-theme .invoice-work-guide {
  margin-bottom: 6px;
  border-color: #c4d0d9;
  border-radius: var(--erp-radius);
  box-shadow: var(--soft-shadow);
}
body.erp-theme .fulfillment-guide-title { background: linear-gradient(105deg, #1b4058, #276a75); }
body.erp-theme .fulfillment-guide-title > span { border-radius: 50%; }
body.erp-theme .fulfillment-guide li { border-color: #d4dde3; }
body.erp-theme .fulfillment-guide li > span { color: #1f6485; border-color: #8baaba; }
body.erp-theme .fulfillment-toolbar,
body.erp-theme .workflow-toolbar,
body.erp-theme .inventory-count-toolbar,
body.erp-theme .inventory-count-footer { background: #f2f6f8; }
body.erp-theme .stock-work-tabs a.active { border-color: #1a5777; background: #246b8e; box-shadow: none; }
body.erp-theme .auto-collection-status { border-radius: var(--erp-radius); box-shadow: none; }

/* Specialist workbenches --------------------------------------------------- */
body.erp-theme .purchase-workbench-title,
body.erp-theme .purchase-legacy-shell { border-radius: var(--erp-radius); box-shadow: var(--soft-shadow); }
body.erp-theme .purchase-workbench-title { background: #fff; }
body.erp-theme .purchase-legacy-shell { border-color: #aebdc8; }
body.erp-theme .purchase-lookup-pane,
body.erp-theme .purchase-product-pane,
body.erp-theme .purchase-product-image-pane,
body.erp-theme .purchase-size-pane { border-color: #bfcbd4; }
body.erp-theme .purchase-mode-badge,
body.erp-theme .purchase-mode-switch button.is-active { color: #fff !important; border-color: #22658a; background: #22658a; }
body.erp-theme .purchase-lookup-table tbody tr.is-selected { color: #153e54; background: #dbecef; box-shadow: inset 3px 0 #248d7e; }
body.erp-theme .purchase-savebar {
  border-color: #aebdc8;
  border-radius: 0;
  background: rgba(245, 248, 250, .97);
  box-shadow: 0 -2px 5px rgba(18, 42, 59, .08);
}
body.erp-theme .radio-group label,
body.erp-theme .barcode-mode-option,
body.erp-theme .store-option { border-color: #b7c5cf; border-radius: var(--erp-radius); background: #f8fafb; }
body.erp-theme .radio-group label:has(input:checked),
body.erp-theme .barcode-mode-option:has(input:checked),
body.erp-theme .store-option:has(input:checked) { border-color: #29739a; background: #e7f0f6; box-shadow: inset 3px 0 #29739a; }

/* Dialogs and overlays ----------------------------------------------------- */
body.erp-theme .product-picker-dialog,
body.erp-theme .multi-filter-dialog,
body.erp-theme .product-image-dialog,
body.erp-theme .collection-result-dialog,
body.erp-theme .master-code-dialog {
  border-radius: var(--erp-radius);
  box-shadow: 0 15px 38px rgba(15, 34, 48, .25);
}
body.erp-theme dialog::backdrop { background: rgba(15, 34, 48, .55); }
body.erp-theme .product-picker-head,
body.erp-theme .multi-filter-head,
body.erp-theme .result-dialog-head,
body.erp-theme .master-code-dialog-head { color: #fff; background: #1a425b; }

/* Channel claim and inquiry control ---------------------------------------- */
body.erp-theme .integration-status-panel {
  margin: 8px 0;
  border: 1px solid #c7d3dc;
  border-radius: var(--erp-radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}
body.erp-theme .integration-status-panel > summary {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  background: var(--section-head-bg);
  list-style-position: inside;
}
body.erp-theme .integration-status-panel[open] > summary { border-bottom-color: #c7d3dc; }
body.erp-theme .integration-status-panel > summary strong { color: #1d4258; font-size: 13px; }
body.erp-theme .integration-status-panel > summary span { color: var(--muted); font-size: 10px; }
body.erp-theme .integration-status-table { min-width: 980px; }
body.erp-theme .integration-status-table td small,
body.erp-theme .inquiry-table td small { display: block; margin-top: 3px; color: var(--muted); }
body.erp-theme .claim-check-link {
  display: block;
  min-width: 150px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
}
body.erp-theme .claim-check-link:hover,
body.erp-theme .claim-check-link:focus-visible {
  border-color: #9fb8c8;
  background: #edf5f8;
}
body.erp-theme .claim-check-link > span {
  display: inline-block;
  margin-top: 4px;
  color: #176384;
  font-size: 10px;
  font-weight: 700;
}

body.erp-theme .collection-control-panel,
body.erp-theme .channel-health-warning {
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid #c7d3dc;
  border-radius: var(--erp-radius);
  background: #fff;
}
body.erp-theme .collection-control-panel > summary,
body.erp-theme .collection-status-panel > summary {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  cursor: pointer;
  background: linear-gradient(180deg, #fbfcfd, #f2f5f7);
  list-style: none;
}
body.erp-theme .collection-control-panel > summary::-webkit-details-marker,
body.erp-theme .collection-status-panel > summary::-webkit-details-marker { display: none; }
body.erp-theme .collection-control-panel > summary div,
body.erp-theme .collection-status-panel > summary div { min-width: 0; }
body.erp-theme .collection-control-panel > summary strong,
body.erp-theme .collection-status-panel > summary strong { display: block; color: #1d4258; font-size: 13px; }
body.erp-theme .collection-control-panel > summary span,
body.erp-theme .collection-status-panel > summary span { display: block; margin-top: 2px; color: #6c7d89; font-size: 10px; }
body.erp-theme .collection-control-panel > summary > b,
body.erp-theme .collection-status-panel > summary > b {
  color: #35627d;
  font-size: 10px;
  font-weight: 700;
}
body.erp-theme .collection-control-panel > summary > b::after,
body.erp-theme .collection-status-panel > summary > b::after { content: " ▼"; }
body.erp-theme .collection-control-panel[open] > summary > b::after,
body.erp-theme .collection-status-panel[open] > summary > b::after { content: " ▲"; }
body.erp-theme .collection-control-form { padding: 10px; border-top: 1px solid #d7e0e5; }
body.erp-theme .collection-control-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-bottom: 8px;
}
body.erp-theme .collection-control-row > label { padding-top: 7px; color: #3b5363; font-size: 11px; font-weight: 700; }
body.erp-theme .collection-control-row .date-range-inputs { width: min(420px, 100%); }
body.erp-theme .collection-channel-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 210px;
  overflow: auto;
  border: 1px solid #d5dee4;
  border-radius: 4px;
  background: #f8fafb;
}
body.erp-theme .collection-channel-picker > label {
  display: flex;
  min-width: 0;
  min-height: 33px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-right: 1px solid #e1e7eb;
  border-bottom: 1px solid #e1e7eb;
  font-size: 10px;
}
body.erp-theme .collection-channel-picker > label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .collection-channel-picker > label.muted { background: #f1f3f4; }
body.erp-theme .collection-control-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e0e6ea;
}
body.erp-theme .collection-control-actions span { margin-right: auto; color: #6c7d89; font-size: 10px; }
body.erp-theme .collection-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 7px;
  padding: 8px;
  background: #eef2f5;
}
body.erp-theme .collection-channel-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid #cbd5dd;
  border-left: 3px solid #87a5b7;
  border-radius: 3px;
  background: #fff;
}
body.erp-theme .collection-channel-card.needs-attention { border-left-color: #c88335; background: #fffdf8; }
body.erp-theme .collection-channel-head,
body.erp-theme .collection-channel-head > div,
body.erp-theme .collection-channel-card footer { display: flex; align-items: center; }
body.erp-theme .collection-channel-head { justify-content: space-between; gap: 7px; }
body.erp-theme .collection-channel-head > div { min-width: 0; gap: 7px; }
body.erp-theme .collection-channel-head > div > span { min-width: 0; }
body.erp-theme .collection-channel-head > div strong,
body.erp-theme .collection-channel-head > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .collection-channel-head > div strong { color: #1b3d52; font-size: 11px; }
body.erp-theme .collection-channel-head > div small { color: #73828d; font-size: 9px; }
body.erp-theme .collection-channel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  background: #dce4e9;
}
body.erp-theme .collection-channel-metrics span { padding: 5px 6px; color: #647683; background: #f4f7f8; font-size: 9px; }
body.erp-theme .collection-channel-metrics b { float: right; color: #193d53; font-size: 11px; }
body.erp-theme .collection-channel-metrics b.negative { color: #ae3541; }
body.erp-theme .collection-channel-note,
body.erp-theme .collection-channel-error { margin: 7px 0 0; overflow: hidden; color: #6b7c88; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .collection-channel-error { color: #9a5d0d; font-weight: 700; }
body.erp-theme .collection-source-summary { display: flex; gap: 4px 8px; margin-top: 7px; flex-wrap: wrap; }
body.erp-theme .collection-source-summary span { display: flex; align-items: center; gap: 4px; color: #617482; font-size: 9px; }
body.erp-theme .collection-source-summary b { color: #193d53; }
body.erp-theme .collection-channel-card footer {
  justify-content: space-between;
  gap: 7px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #e0e6ea;
  color: #71818c;
  font-size: 9px;
}
body.erp-theme .channel-health-warning { border-color: #dfc17f; border-top: 3px solid #bd7628; }
body.erp-theme .channel-health-warning > header {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-bottom: 1px solid #ead8b1;
  background: #fff9ec;
}
body.erp-theme .channel-health-warning > header strong,
body.erp-theme .channel-health-warning > header span { display: block; }
body.erp-theme .channel-health-warning > header strong { color: #704812; font-size: 13px; }
body.erp-theme .channel-health-warning > header span { margin-top: 2px; color: #8a704d; font-size: 9px; }
body.erp-theme .channel-health-warning > header > b { color: #a45c0c; font-size: 17px; }
body.erp-theme .channel-health-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #eadfca; }
body.erp-theme .channel-health-list article {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  background: #fff;
}
body.erp-theme .channel-health-store { display: flex; min-width: 0; align-items: center; gap: 6px; }
body.erp-theme .channel-health-store > span { min-width: 0; }
body.erp-theme .channel-health-store strong,
body.erp-theme .channel-health-store small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .channel-health-store strong { color: #254354; font-size: 10px; }
body.erp-theme .channel-health-store small { color: #a45c0c; font-size: 9px; }
body.erp-theme .channel-health-list p { margin: 0; overflow: hidden; color: #6f5c42; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .integration-state {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid #bfcbd4;
  border-radius: 11px;
  color: #526573;
  background: #f3f6f8;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
body.erp-theme .integration-state.state-success { color: #12634f; border-color: #9bcbbd; background: #e9f6f1; }
body.erp-theme .integration-state.state-partial,
body.erp-theme .integration-state.state-waiting { color: #8a5a08; border-color: #dec68f; background: #fff8e7; }
body.erp-theme .integration-state.state-failed { color: #a32839; border-color: #dfafb6; background: #fff0f2; }
body.erp-theme .attention-metrics { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
body.erp-theme .channel-attention-panel {
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid #c9d4dc;
  border-top: 3px solid #c65e49;
  border-radius: 4px;
  background: #fff;
}
body.erp-theme .channel-attention-panel > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #d8e0e5;
  background: linear-gradient(180deg, #fbfcfd, #f1f5f7);
}
body.erp-theme .channel-attention-panel > header h2 { margin: 0; color: #18384d; font-size: 14px; }
body.erp-theme .channel-attention-panel > header p { margin: 2px 0 0; color: #697b88; font-size: 10px; }
body.erp-theme .channel-attention-panel > header > strong { color: #b13d3d; font-size: 20px; white-space: nowrap; }
body.erp-theme .channel-attention-panel.is-clear { border-top-color: #2b9278; }
body.erp-theme .channel-attention-panel.is-clear > header > strong { color: #247a66; }
body.erp-theme .operations-metrics strong.warning { color: #9a6509; }
body.erp-theme .pickup-review-panel { border-top-color: #c28a2a; }
body.erp-theme .pickup-review-panel > header > strong { color: #9a6509; }
body.erp-theme .pickup-review-panel .channel-attention-card { border-left-color: #d1a148; }
body.erp-theme .pickup-review-panel .claim-type-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.erp-theme .pickup-review-panel .claim-type-counts span.has-count {
  border-color: #ddc389;
  color: #815408;
  background: #fff8e7;
}

body.erp-theme .pickup-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
body.erp-theme .pickup-decision-actions button,
body.erp-theme .pickup-decision-reset {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}
body.erp-theme .pickup-review-item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e1e6e9;
}
body.erp-theme .pickup-review-item-copy { min-width: 0; }
body.erp-theme .pickup-review-item-copy > small { display: block; color: #6b7c88; font-size: 10px; }
body.erp-theme .pickup-review-item-copy > strong { display: block; margin: 2px 0; color: #19384d; font-size: 13px; }
body.erp-theme .pickup-review-item-actions {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}
body.erp-theme .pickup-review-item-actions button { flex: 1; min-height: 31px; padding: 5px; font-size: 11px; }
@media (max-width: 720px) {
  body.erp-theme .pickup-review-item-actions { flex-wrap: wrap; }
  body.erp-theme .pickup-review-item-actions button { flex: 1 1 calc(50% - 5px); }
}

body.erp-theme .channel-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 7px;
  padding: 8px;
  background: #edf2f5;
}
body.erp-theme .channel-attention-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid #ccd6dd;
  border-left: 3px solid #d27862;
  border-radius: 3px;
  background: #fff;
}
body.erp-theme .channel-attention-head,
body.erp-theme .channel-attention-head > div,
body.erp-theme .channel-attention-card footer {
  display: flex;
  align-items: center;
}
body.erp-theme .channel-attention-head { justify-content: space-between; gap: 8px; }
body.erp-theme .channel-attention-head > div { min-width: 0; gap: 7px; }
body.erp-theme .channel-attention-head > div > span { min-width: 0; }
body.erp-theme .channel-attention-head > div strong,
body.erp-theme .channel-attention-head > div small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.erp-theme .channel-attention-head > div strong { color: #1b3d52; font-size: 11px; }
body.erp-theme .channel-attention-head > div small { color: var(--muted); font-size: 9px; }
body.erp-theme .channel-attention-head > b { color: #b13d3d; font-size: 17px; white-space: nowrap; }
body.erp-theme .claim-type-counts,
body.erp-theme .inquiry-source-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}
body.erp-theme .claim-type-counts span,
body.erp-theme .inquiry-source-counts span {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid #d9e0e5;
  border-radius: 3px;
  color: #6a7b87;
  background: #f7f9fa;
  font-size: 9px;
}
body.erp-theme .claim-type-counts span.has-count,
body.erp-theme .inquiry-source-counts span.has-count {
  border-color: #e2b5ad;
  color: #883a32;
  background: #fff2f0;
}
body.erp-theme .claim-type-counts b,
body.erp-theme .inquiry-source-counts b { color: inherit; font-size: 13px; }
body.erp-theme .channel-attention-card footer {
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #e0e6ea;
  color: var(--muted);
  font-size: 9px;
}
body.erp-theme .channel-attention-empty { margin: 0; padding: 14px 12px; color: #247a66; font-weight: 700; }
body.erp-theme .inquiry-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e1e6e9;
}
body.erp-theme .inquiry-action-copy { min-width: 0; }
body.erp-theme .inquiry-action-copy > small,
body.erp-theme .inquiry-action-copy > strong,
body.erp-theme .inquiry-action-copy > p { display: block; overflow: hidden; text-overflow: ellipsis; }
body.erp-theme .inquiry-action-copy > small { color: #6b7c88; font-size: 9px; white-space: nowrap; }
body.erp-theme .inquiry-action-copy > strong { margin-top: 2px; color: #19384d; font-size: 12px; white-space: nowrap; }
body.erp-theme .inquiry-action-copy > p { margin: 3px 0 0; color: #617482; font-size: 10px; white-space: nowrap; }
body.erp-theme .inquiry-action-item form { margin: 0; }
body.erp-theme .inquiry-action-item button { min-height: 30px; padding: 5px 8px; font-size: 10px; white-space: nowrap; }
body.erp-theme .inquiry-presence-note { margin: 8px 0 0; color: #6b7c88; font-size: 10px; }
body.erp-theme .inquiry-metrics { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
body.erp-theme .inquiry-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 7px;
  padding: 8px;
  background: #eef2f5;
}
body.erp-theme .inquiry-channel-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid #cbd5dd;
  border-radius: 3px;
  background: #fff;
}
body.erp-theme .inquiry-card-head,
body.erp-theme .inquiry-card-head > div,
body.erp-theme .inquiry-card-foot,
body.erp-theme .inquiry-card-metrics {
  display: flex;
  align-items: center;
}
body.erp-theme .inquiry-card-head { justify-content: space-between; gap: 8px; }
body.erp-theme .inquiry-card-head > div { min-width: 0; gap: 7px; }
body.erp-theme .inquiry-card-head .channel-store-mark { flex: 0 0 auto; }
body.erp-theme .inquiry-card-head span { min-width: 0; }
body.erp-theme .inquiry-card-head strong,
body.erp-theme .inquiry-card-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .inquiry-card-head small { color: var(--muted); font-size: 9px; }
body.erp-theme .inquiry-card-metrics { gap: 12px; margin: 9px 0 7px; padding: 6px 8px; background: #f2f6f8; }
body.erp-theme .inquiry-card-metrics span { color: #617482; font-size: 10px; }
body.erp-theme .inquiry-card-metrics b { margin-left: 3px; color: #173c53; font-size: 13px; }
body.erp-theme .inquiry-source-list { margin: 0; padding: 0; list-style: none; }
body.erp-theme .inquiry-source-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 5px 2px; border-top: 1px solid #e1e7eb; }
body.erp-theme .inquiry-source-list li > span { display: flex; align-items: center; gap: 5px; }
body.erp-theme .inquiry-source-list li > strong { font-size: 10px; }
body.erp-theme .inquiry-source-list li > small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
body.erp-theme .source-dot { width: 7px; height: 7px; border-radius: 50%; background: #a0adb6; }
body.erp-theme .source-dot.state-success { background: var(--success); }
body.erp-theme .source-dot.state-partial,
body.erp-theme .source-dot.state-waiting { background: #c58417; }
body.erp-theme .source-dot.state-failed { background: var(--danger); }
body.erp-theme .inquiry-card-foot { justify-content: space-between; gap: 8px; margin-top: 7px; padding-top: 7px; border-top: 1px solid #dce4e9; color: var(--muted); font-size: 9px; }
body.erp-theme .inquiry-table { min-width: 1140px; }
body.erp-theme .inquiry-table th:nth-child(1) { width: 105px; }
body.erp-theme .inquiry-table th:nth-child(2) { width: 150px; }
body.erp-theme .inquiry-table th:nth-child(3) { width: 130px; }
body.erp-theme .inquiry-table th:nth-child(5) { width: 180px; }
body.erp-theme .inquiry-table th:nth-child(6) { width: 90px; }
body.erp-theme .inquiry-table th:nth-child(7) { width: 170px; }
body.erp-theme .inquiry-table th:nth-child(8) { width: 105px; }

@media (max-width: 720px) {
  body.erp-theme .inquiry-action-item { grid-template-columns: 1fr; }
  body.erp-theme .inquiry-action-item button { width: 100%; }
}

/* Login -------------------------------------------------------------------- */
body.login-page {
  background: linear-gradient(145deg, #162f41 0%, #0f2433 100%);
}
body.login-page::before { display: none; }
body.login-page .login-card {
  width: min(390px, 100%);
  padding: 32px 34px;
  border: 1px solid #b9c7d1;
  border-top: 4px solid #36bfa8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(5, 20, 30, .28);
}
body.login-page .login-brand { margin-bottom: 24px; }
body.login-page .login-card h1 { color: #18364a; font-size: 22px; }
body.login-page .login-description { margin-bottom: 22px; color: #657785; }
body.login-page .login-form { gap: 12px; }
body.login-page .login-form label { color: #344d5e; }
body.login-page .login-form input { min-height: 42px; border-color: #aebdc8; border-radius: 3px; }
body.login-page .login-form input:focus { border-color: #2d7298; box-shadow: 0 0 0 2px rgba(45, 114, 152, .16); }
body.login-page .login-form button { min-height: 42px; border-radius: 3px; border-color: #174b69; background: #22658a; box-shadow: none; }

/* Responsive ergonomics ---------------------------------------------------- */
@media (max-width: 1180px) {
  body.erp-theme .topbar { padding-right: 11px; padding-left: 11px; gap: 8px; }
  body.erp-theme .brand { min-width: 136px; }
  body.erp-theme button.nav-category,
  body.erp-theme a.nav-category-link { padding-right: 8px; padding-left: 8px; font-size: 10.5px; }
  body.erp-theme .global-search-trigger kbd { display: none; }
  body.erp-theme .inquiry-channel-grid { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
}

@media (max-width: 1000px) {
  body.erp-theme .topbar { min-height: 56px; padding: 8px 10px; }
  body.erp-theme .brand { order: 0; }
  body.erp-theme button.global-search-trigger { order: 1; margin-left: auto; }
  body.erp-theme .nav-toggle { order: 2; margin-left: 0; }
  body.erp-theme .nav { order: 3; height: auto; border: 1px solid #365467; border-radius: 3px; background: #173246; }
  body.erp-theme .pwa-install-button,
  body.erp-theme .today,
  body.erp-theme .user-account { order: 4; }
  body.erp-theme button.nav-category,
  body.erp-theme a.nav-category-link { width: 100%; min-height: 38px; }
  body.erp-theme button.nav-category.has-current-page,
  body.erp-theme a.nav-category-link.has-current-page { box-shadow: inset 3px 0 #48cdb7; }
  body.erp-theme .nav-submenu,
  body.erp-theme .nav-submenu-right { border-radius: 0; }
  body.erp-theme .work-tabs { top: 56px; padding-right: 10px; padding-left: 10px; }
  body.erp-theme main { padding: 10px 10px 18px; }
  body.erp-theme .erp-page > .page-head { min-height: 58px; padding: 10px 12px 10px 15px; }
}

@media (max-width: 600px) {
  body.erp-theme .topbar { min-height: 56px; }
  body.erp-theme .brand { min-width: 0; }
  body.erp-theme button.global-search-trigger { min-height: 32px; padding-right: 8px; padding-left: 8px; }
  body.erp-theme dialog.global-search-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    margin: 6px auto auto;
    border-radius: 6px;
  }
  body.erp-theme .global-search-shell { max-height: calc(100dvh - 12px); border-radius: 6px; }
  body.erp-theme .global-search-head { padding: 13px 12px 8px; }
  body.erp-theme .global-search-head span { font-size: 7.5px; }
  body.erp-theme .global-search-head h2 { font-size: 18px; }
  body.erp-theme button.global-search-close { width: 30px; min-height: 30px; }
  body.erp-theme .global-search-box { min-height: 47px; margin: 0 11px; padding-right: 10px; padding-left: 11px; }
  body.erp-theme .global-search-box input { min-height: 43px; font-size: 13px; }
  body.erp-theme .global-search-box input::placeholder { font-size: 11.5px; }
  body.erp-theme .global-search-box kbd { display: none; }
  body.erp-theme .global-search-scope { padding: 9px 11px 6px; }
  body.erp-theme .global-search-status { min-height: 26px; padding: 4px 12px 6px; }
  body.erp-theme .global-search-results { min-height: 170px; max-height: calc(100dvh - 225px); }
  body.erp-theme .global-search-group-head { padding-right: 12px; padding-left: 12px; }
  body.erp-theme a.global-search-result {
    grid-template-columns: 33px minmax(0, 1fr) 12px;
    gap: 8px;
    min-height: 60px;
    padding: 7px 11px;
  }
  body.erp-theme .global-search-result-icon { width: 32px; height: 32px; }
  body.erp-theme .global-search-result-badge { display: none; }
  body.erp-theme .global-search-result-copy strong { font-size: 11.5px; }
  body.erp-theme .global-search-result-copy span { font-size: 10px; }
  body.erp-theme .global-search-intro { padding: 11px 11px 15px; }
  body.erp-theme .global-search-guide { grid-template-columns: 1fr; gap: 5px; }
  body.erp-theme .global-search-guide > div { padding: 8px 10px; }
  body.erp-theme .global-search-guide span { margin-top: 2px; }
  body.erp-theme .global-search-foot { min-height: 37px; padding: 6px 11px; gap: 11px; }
  body.erp-theme .global-search-foot span:last-child { display: none; }
  body.erp-theme .nav-open .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.erp-theme button.nav-category,
  body.erp-theme a.nav-category-link { font-size: 11px; }
  body.erp-theme .nav-submenu a { min-height: 35px; }
  body.erp-theme .work-tabs { top: 56px; min-height: 36px; padding: 4px 7px; }
  body.erp-theme main { padding: 7px 6px 16px; }
  body.erp-theme .erp-page > .page-head {
    min-height: 0;
    padding: 10px 9px 10px 13px;
    border-radius: 3px;
  }
  body.erp-theme .erp-page > .page-head h1 { font-size: 17px; }
  body.erp-theme .erp-page > .page-head p,
  body.erp-theme .erp-page > .page-head .page-result-count { font-size: 10px; }
  body.erp-theme .erp-page > .page-head .actions { gap: 5px; }
  body.erp-theme .button,
  body.erp-theme button { min-height: 33px; }
  body.erp-theme input,
  body.erp-theme select,
  body.erp-theme textarea { min-height: 32px; }
  body.erp-theme .filters { padding: 8px; }
  body.erp-theme .panel-title,
  body.erp-theme .dashboard-card-title,
  body.erp-theme .registration-history-title,
  body.erp-theme .mapping-section-head,
  body.erp-theme .settlement-section-head { min-height: 38px; padding: 8px 9px; }
  body.erp-theme .dashboard-hero { min-height: 92px; padding: 16px; }
  body.erp-theme .dashboard-hero h1 { font-size: 21px; }
  body.erp-theme .dashboard-fx-card { border-radius: 3px; }
  body.erp-theme .dashboard-sales-metrics > div { min-height: 70px; }
  body.erp-theme .order-flow a { min-height: 42px; }
  body.erp-theme .fulfillment-guide-title { padding: 10px 11px; }
  body.erp-theme .inquiry-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.erp-theme .inquiry-channel-grid { grid-template-columns: 1fr; padding: 6px; }
  body.erp-theme .integration-status-panel > summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  body.login-page { padding: 14px; }
  body.login-page .login-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  body.erp-theme *,
  body.erp-theme *::before,
  body.erp-theme *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 2026-08 workspace cleanup -------------------------------------------------
 * Keep operational data prominent. Repeated prose is hidden or folded into
 * compact disclosure rows, while state and safety messages remain visible.
 */
body.erp-theme {
  --canvas: #f3f5f7;
  --line: #d7dee4;
  --soft-shadow: 0 1px 2px rgba(18, 42, 59, .045);
  --section-head-bg: #f6f8f9;
  --erp-radius: 5px;
  background: var(--canvas);
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.erp-theme main { padding-top: 10px; }
body.erp-theme .erp-page > .page-head,
body.erp-theme .operations-dashboard > .page-head {
  min-height: 39px;
  margin-bottom: 8px;
  padding: 1px 0 8px;
  border: 0;
  border-bottom: 1px solid #d8e0e6;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.erp-theme .erp-page > .page-head::before,
body.erp-theme .operations-dashboard > .page-head::before { display: none; }
body.erp-theme .erp-page > .page-head h1,
body.erp-theme .operations-dashboard > .page-head h1 {
  color: #1d3445;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -.02em;
}
body.erp-theme .erp-page > .page-head p:not(.page-head-meta) { display: none; }
body.erp-theme .erp-page > .page-head .page-head-meta,
body.erp-theme .erp-page > .page-head .page-result-count {
  display: block;
  margin-top: 2px;
  color: #72818c;
  font-size: 10px;
  font-weight: 600;
}
body.erp-theme .erp-page > .page-head .actions { gap: 5px; }

body.erp-theme .panel,
body.erp-theme .dashboard-card,
body.erp-theme .table-wrap,
body.erp-theme .registration-import-form,
body.erp-theme .registration-sheet-panel,
body.erp-theme .filters,
body.erp-theme .page-tabs,
body.erp-theme .history-tabs,
body.erp-theme .dashboard-detail-tabs,
body.erp-theme .order-flow,
body.erp-theme .integration-status-panel {
  border-color: #d5dde3;
  border-radius: var(--erp-radius);
  box-shadow: none;
}

body.erp-theme .panel-title,
body.erp-theme .dashboard-card-title,
body.erp-theme .registration-history-title,
body.erp-theme .registration-file-section > summary,
body.erp-theme .mapping-section-head,
body.erp-theme .settlement-section-head,
body.erp-theme .legacy-pane-title,
body.erp-theme .purchase-size-head,
body.erp-theme .purchase-order-head,
body.erp-theme .product-image-dialog-head,
body.erp-theme .collect-panel-head {
  min-height: 34px;
  padding: 6px 9px;
  border-bottom-color: #d4dce2;
  background: #f6f8f9 !important;
  box-shadow: none;
}
body.erp-theme .panel-title h2,
body.erp-theme .channel-connection-head h2 { color: #263f50; font-size: 12px; }

body.erp-theme .button,
body.erp-theme button {
  border-color: #b9c5ce;
  border-radius: 4px;
  background: #fff;
}
body.erp-theme .button:hover,
body.erp-theme button:hover { background: #f0f5f7; }
body.erp-theme .button.primary,
body.erp-theme button.primary {
  border-color: #205e7e;
  background: #246987;
}
body.erp-theme .filters {
  gap: 6px;
  padding: 7px 8px;
  background: #f8fafb;
}
body.erp-theme .filters .filter-actions { min-height: 31px; padding-top: 5px; }
body.erp-theme .page-tabs,
body.erp-theme .history-tabs,
body.erp-theme .dashboard-detail-tabs { min-height: 34px; padding: 3px; background: #eef2f4; }

body.erp-theme table thead th,
body.erp-theme .warehouse-table thead th,
body.erp-theme .receipt-history-table thead th,
body.erp-theme .legacy-history-table thead th {
  color: #334c5d;
  border-bottom-color: #bdc9d1;
  background: linear-gradient(180deg, #f5f7f9 0%, #e5ebef 100%) !important;
  box-shadow: none;
}
body.erp-theme tbody tr:nth-child(even) { background: #fafbfc; }
body.erp-theme tbody tr:hover { background: #edf4f7; }

body.erp-theme details.compact-help {
  display: block;
  margin: 0 0 7px;
  overflow: hidden;
  color: #4b606f;
  border: 1px solid #d5dde3;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
body.erp-theme details.compact-help > summary {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #3c5363;
  background: #f8fafb;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 750;
  list-style: none;
}
body.erp-theme details.compact-help > summary::-webkit-details-marker { display: none; }
body.erp-theme details.compact-help > summary::after {
  margin-left: auto;
  color: #83919b;
  content: "+";
  font-size: 15px;
  font-weight: 500;
}
body.erp-theme details.compact-help[open] > summary {
  border-bottom: 1px solid #dbe2e7;
  background: #f4f7f8;
}
body.erp-theme details.compact-help[open] > summary::after { content: "−"; }
body.erp-theme details.compact-help > p,
body.erp-theme details.compact-help > div:not(.fulfillment-guide-title) {
  margin: 0;
  padding: 8px 10px;
  color: #5d6f7b;
  font-size: 10.5px;
  line-height: 1.55;
}
body.erp-theme details.compact-help > p + p { padding-top: 0; }
body.erp-theme details.page-help { max-width: none; }

body.erp-theme details.fulfillment-guide { display: block; }
body.erp-theme details.fulfillment-guide > .fulfillment-guide-title {
  display: flex;
  min-height: 42px;
  padding: 6px 10px;
  color: #294657;
  border: 0;
  background: #f7f9fa;
}
body.erp-theme details.fulfillment-guide > .fulfillment-guide-title > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  color: #fff;
  border: 0;
  background: #28748a;
  font-size: 10px;
}
body.erp-theme details.fulfillment-guide > .fulfillment-guide-title h2 { color: #244253; font-size: 12px; }
body.erp-theme details.fulfillment-guide > .fulfillment-guide-title p {
  margin-top: 1px;
  color: #73828c;
  font-size: 9.5px;
  font-weight: 550;
}
body.erp-theme details.fulfillment-guide > .fulfillment-guide-title i {
  margin-left: auto;
  color: #72828c;
  font-size: 9.5px;
  font-style: normal;
  white-space: nowrap;
}
body.erp-theme details.fulfillment-guide > .fulfillment-guide-title::after { margin-left: 2px; }
body.erp-theme details.fulfillment-guide > ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  margin: 0;
  padding: 0;
  border-top: 0;
}
body.erp-theme details.fulfillment-guide li { min-height: 45px; padding: 7px 9px; font-size: 10.5px; }

body.erp-theme .compact-help-inline { margin: 0 12px 8px; }
body.erp-theme .compact-help-inline > ol { margin: 0; padding: 8px 28px; }
body.erp-theme .inventory-count-method-warning,
body.erp-theme .inventory-count-method-safe {
  margin-bottom: 8px;
  padding: 6px 8px;
  border-left-width: 3px;
  font-size: 10px;
}
body.erp-theme .manual-grid-help { min-height: 0; padding: 0; border-bottom: 1px solid #d5dde3; }
body.erp-theme .manual-grid-help > p { padding: 8px 10px; }

body.erp-theme .dashboard-section-head { margin-bottom: 5px; }
body.erp-theme .dashboard-fx-card,
body.erp-theme .dashboard-sales-metrics,
body.erp-theme .metrics,
body.erp-theme .operations-metrics,
body.erp-theme .barcode-metrics,
body.erp-theme .logistics-today-grid,
body.erp-theme .development-metrics { box-shadow: none; }

body.erp-theme details.channel-card-compact {
  display: block;
  padding: 0;
  overflow: hidden;
}
body.erp-theme .channel-card-summary {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  cursor: pointer;
  background: #fff;
  list-style: none;
}
body.erp-theme .channel-card-summary::-webkit-details-marker { display: none; }
body.erp-theme .channel-card-summary > span:first-child { display: grid; min-width: 0; gap: 1px; }
body.erp-theme .channel-card-summary strong { overflow: hidden; color: #274152; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .channel-card-summary small { color: #7a8993; font-size: 9.5px; }
body.erp-theme .channel-card-summary::after { color: #87949d; content: "+"; font-size: 15px; }
body.erp-theme .channel-card-compact[open] > .channel-card-summary { border-bottom: 1px solid #d9e1e6; background: #f7f9fa; }
body.erp-theme .channel-card-compact[open] > .channel-card-summary::after { content: "−"; }
body.erp-theme .channel-card-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  flex-wrap: wrap;
}
body.erp-theme .channel-card-body > div:first-child { flex: 1 1 280px; align-self: flex-start; }
body.erp-theme .channel-card-body > .channel-form { flex: 2 1 520px; }
body.erp-theme .channel-card-body > form:not(.channel-form) { flex: 0 0 auto; margin: 0; }
body.erp-theme details.page-help-warning { border-color: #dfcda5; background: #fffaf0; }
body.erp-theme details.page-help-warning > summary { color: #765314; background: #fff9eb; }

body.erp-theme .claim-collect-form .order-filter-grid {
  grid-template-columns: 416px minmax(0, 1fr);
  width: 100%;
}
body.erp-theme .claim-collect-form .date-range-field { grid-column: auto; }
body.erp-theme .claim-collect-form .field:last-child {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-column: auto;
  width: auto;
}
body.erp-theme .claim-collect-form .claim-channel-options {
  display: flex;
  max-height: none;
  align-items: center;
  gap: 4px 10px;
  overflow: visible;
  flex-wrap: wrap;
}
body.erp-theme .claim-collect-form .claim-channel-options label {
  min-height: 24px;
  padding: 2px 4px;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  body.erp-theme .erp-page > .page-head,
  body.erp-theme .operations-dashboard > .page-head { min-height: 37px; padding: 1px 0 7px; }
  body.erp-theme details.fulfillment-guide > ol { grid-template-columns: 1fr; }
  body.erp-theme details.fulfillment-guide li { border-top: 1px solid #e1e6ea; border-left: 0; }
  body.erp-theme .claim-collect-form .order-filter-grid { grid-template-columns: 1fr; }
  body.erp-theme .claim-collect-form .date-range-field,
  body.erp-theme .claim-collect-form .field:last-child { grid-column: auto; width: 100%; }
  body.erp-theme .channel-attention-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  body.erp-theme .attention-metrics { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  body.erp-theme .collection-channel-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
  body.erp-theme .collection-channel-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.erp-theme .channel-health-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body.erp-theme .collection-control-row { grid-template-columns: 1fr; gap: 3px; }
  body.erp-theme .collection-control-row > label { padding-top: 0; }
  body.erp-theme .collection-channel-picker,
  body.erp-theme .collection-channel-grid { grid-template-columns: 1fr; }
  body.erp-theme .collection-control-actions { align-items: stretch; flex-direction: column; }
  body.erp-theme .collection-control-actions button { width: 100%; }
  body.erp-theme .channel-health-list article { grid-template-columns: minmax(0, 1fr) auto; }
  body.erp-theme .channel-health-list article > p { grid-column: 1 / -1; grid-row: 2; }
  body.erp-theme main { padding: 7px 7px 14px; }
  body.erp-theme .erp-page > .page-head,
  body.erp-theme .operations-dashboard > .page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 2px 0 7px;
  }
  body.erp-theme .erp-page > .page-head h1,
  body.erp-theme .operations-dashboard > .page-head h1 { font-size: 16px; }
  body.erp-theme .erp-page > .page-head > .button { justify-self: end; width: auto; }
  body.erp-theme .erp-page > .page-head .actions { display: flex; width: auto; }
  body.erp-theme .erp-page > .page-head .actions > * { width: auto; }
  body.erp-theme details.fulfillment-guide > .fulfillment-guide-title p { display: none; }
  body.erp-theme details.fulfillment-guide > .fulfillment-guide-title i { display: none; }
  body.erp-theme .channel-attention-panel > header { min-height: 43px; padding: 7px 9px; }
  body.erp-theme .channel-attention-panel > header p { display: none; }
  body.erp-theme .channel-attention-grid { grid-template-columns: 1fr; padding: 6px; }
  body.erp-theme .channel-attention-card { padding: 8px; }
  body.erp-theme .panel-title,
  body.erp-theme .dashboard-card-title,
  body.erp-theme .registration-history-title,
  body.erp-theme .mapping-section-head,
  body.erp-theme .settlement-section-head { min-height: 35px; padding: 7px 8px; }
  body.erp-theme .claim-collect-form .field:last-child { grid-template-columns: 1fr; }
}

/* ERP usability pass -------------------------------------------------------
   Keep page context, query controls, selected rows and the next action in the
   same visual positions throughout the application. */
body.erp-theme .erp-page > .page-head {
  min-height: 49px;
  padding: 4px 0 8px;
}
body.erp-theme .erp-page > .page-head p:not(.page-head-meta),
body.erp-theme .erp-page > .page-head .page-head-meta {
  display: block;
  max-width: min(920px, 76vw);
  margin: 1px 0 0;
  overflow: hidden;
  color: #6d7e89;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.erp-theme .page-section-label {
  color: #27728a;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .08em;
}

body.erp-theme .order-workbench-head-actions { gap: 5px; }
body.erp-theme .order-workbench-count {
  display: grid;
  min-width: 62px;
  min-height: 32px;
  align-content: center;
  padding: 3px 9px;
  color: #597080;
  border-right: 1px solid #d1dae0;
  text-align: right;
}
body.erp-theme .order-workbench-count b,
body.erp-theme .order-workbench-count small { display: block; line-height: 1.05; }
body.erp-theme .order-workbench-count b { color: #1c526d; font-size: 14px; font-variant-numeric: tabular-nums; }
body.erp-theme .order-workbench-count small { margin-top: 2px; font-size: 8.5px; font-weight: 700; }

body.erp-theme form[data-selection-form] tbody tr { cursor: default; }
body.erp-theme form[data-selection-form] tbody tr.is-selected,
body.erp-theme .customer-notice-table tbody tr.is-selected {
  background: #dcecf3 !important;
  box-shadow: inset 3px 0 #277c98;
}
body.erp-theme form[data-selection-form] tbody tr.is-selected td,
body.erp-theme .customer-notice-table tbody tr.is-selected td { border-bottom-color: #b9d0dc; }
body.erp-theme form[data-selection-form] tbody tr.is-selected:hover { background: #d2e7f0 !important; }
body.erp-theme form[data-selection-form].has-selection .fulfillment-toolbar,
body.erp-theme form[data-selection-form].has-selection .order-result-toolbar {
  border-color: #8fb8ca;
  background: #edf6f8;
}
body.erp-theme [data-selection-count] { color: #657a88; font-weight: 800; }
body.erp-theme form[data-selection-form].has-selection [data-selection-count] { color: #176e70; }
body.erp-theme .fulfillment-toolbar .actions .primary,
body.erp-theme .order-result-toolbar .primary { font-weight: 800; }

body.erp-theme .table-wrap:focus-within { border-color: #8baabc; }
body.erp-theme .table-wrap tbody input:focus,
body.erp-theme .table-wrap tbody select:focus,
body.erp-theme .table-wrap tbody textarea:focus { position: relative; z-index: 2; }
body.erp-theme .order-date-cell .order-time-unavailable {
  margin-left: 3px;
  color: #9a6b18;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

body.erp-theme .dashboard-return-delay {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 0;
  padding: 8px 10px; border: 1px solid #dfcc9b; border-radius: 5px;
  color: #7c551c; background: #fffbef; text-decoration: none; font-size: 11px;
}
body.erp-theme .dashboard-return-delay small { flex: 1; color: #8b7958; font-size: 10px; }
body.erp-theme .dashboard-return-delay:hover { background: #fff3d3; }

/* Physical return and exchange workbench ----------------------------------
   Marketplace claim state and warehouse handling state stay visually and
   semantically separate so an early refund never hides an uninspected parcel. */
body.erp-theme .return-workbench-head { align-items: end; }
body.erp-theme .return-workbench-head h1 { margin-top: 3px; }
body.erp-theme .return-workbench-head .button { margin-bottom: 4px; }

body.erp-theme .return-stage-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 0 9px;
  border: 1px solid #b9c9d2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 59, 73, .06);
}
body.erp-theme .return-stage-nav a {
  position: relative;
  min-width: 0;
  padding: 10px 12px 9px;
  color: #344e5c;
  border-right: 1px solid #d7e0e5;
  text-decoration: none;
}
body.erp-theme .return-stage-nav a:last-child { border-right: 0; }
body.erp-theme .return-stage-nav a::after {
  position: absolute;
  right: 11px;
  bottom: 10px;
  left: 11px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}
body.erp-theme .return-stage-nav a:hover { background: #f5f9fa; }
body.erp-theme .return-stage-nav a.is-active {
  color: #114f64;
  background: #edf7f7;
  box-shadow: inset 0 3px #188c88;
}
body.erp-theme .return-stage-nav a.is-active::after { background: #2c9d98; }
body.erp-theme .return-stage-nav span,
body.erp-theme .return-stage-nav strong,
body.erp-theme .return-stage-nav small { display: block; }
body.erp-theme .return-stage-nav span { font-size: 10px; font-weight: 800; }
body.erp-theme .return-stage-nav strong {
  margin-top: 3px;
  color: #173d50;
  font-size: 21px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
body.erp-theme .return-stage-nav small {
  margin-top: 5px;
  color: #788a94;
  font-size: 8.5px;
  font-weight: 650;
}

body.erp-theme .return-search-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #c5d2d9;
  border-radius: 7px;
  background: #f8fafb;
}
body.erp-theme .return-search-panel form { display: flex; align-items: end; gap: 6px; min-width: 0; }
body.erp-theme .return-search-panel label { min-width: min(470px, 46vw); }
body.erp-theme .return-search-panel label span {
  display: block;
  margin: 0 0 3px 2px;
  color: #536b78;
  font-size: 9px;
  font-weight: 800;
}
body.erp-theme .return-search-panel input { width: 100%; min-height: 34px; }
body.erp-theme .return-search-panel > p {
  max-width: 470px;
  margin: 0 2px 3px;
  color: #697c87;
  font-size: 9px;
  line-height: 1.45;
}
body.erp-theme .return-search-panel > p b { color: #275e70; }

body.erp-theme .return-work-form {
  overflow: hidden;
  border: 1px solid #aebfc9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(22, 51, 65, .07);
}
body.erp-theme .return-work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 7px 9px;
  border-bottom: 1px solid #bccbd3;
  background: linear-gradient(180deg, #f8fbfc 0%, #eef3f5 100%);
}
body.erp-theme .return-work-toolbar > div:first-child { display: grid; gap: 2px; }
body.erp-theme .return-work-toolbar > div:first-child strong { color: #203f4e; font-size: 11px; }
body.erp-theme .return-work-toolbar > div:first-child span { font-size: 9px; }
body.erp-theme .return-work-toolbar .actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; }
body.erp-theme .return-work-form.has-selection .return-work-toolbar {
  background: linear-gradient(180deg, #f1faf9 0%, #e5f2f2 100%);
  box-shadow: inset 3px 0 #238e8b;
}

body.erp-theme .return-work-table-wrap {
  height: min(645px, calc(100vh - 330px));
  min-height: 420px;
  overflow: auto;
  border: 0;
  border-radius: 0;
}
body.erp-theme .return-work-table { min-width: 1640px; table-layout: fixed; }
body.erp-theme .return-work-table th:nth-child(1) { width: 36px; }
body.erp-theme .return-work-table th:nth-child(2) { width: 84px; }
body.erp-theme .return-work-table th:nth-child(3) { width: 112px; }
body.erp-theme .return-work-table th:nth-child(4) { width: 142px; }
body.erp-theme .return-work-table th:nth-child(5) { width: 175px; }
body.erp-theme .return-work-table th:nth-child(6) { width: 230px; }
body.erp-theme .return-work-table th:nth-child(7) { width: 105px; }
body.erp-theme .return-work-table th:nth-child(8) { width: 135px; }
body.erp-theme .return-work-table th:nth-child(9) { width: 115px; }
body.erp-theme .return-work-table th:nth-child(10) { width: 140px; }
body.erp-theme .return-work-table th:nth-child(11) { width: 195px; }
body.erp-theme .return-work-table th:nth-child(12) { width: 115px; }
body.erp-theme .return-work-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 33px;
  padding: 5px 7px;
  color: #405864;
  border-color: #bdcbd3;
  background: #eaf0f3;
  font-size: 9px;
  font-weight: 850;
}
body.erp-theme .return-work-table tbody td {
  height: 56px;
  padding: 5px 7px;
  color: #354d59;
  border-color: #d5dfe4;
  background: #fff;
  font-size: 9.5px;
  line-height: 1.3;
  vertical-align: middle;
}
body.erp-theme .return-work-table tbody tr:hover td { background: #f5fafb; }
body.erp-theme .return-work-table tbody tr.return-stage-inspection td:first-child { box-shadow: inset 3px 0 #d49a30; }
body.erp-theme .return-work-table tbody tr.return-stage-return_pending td:first-child { box-shadow: inset 3px 0 #b66a48; }
body.erp-theme .return-work-table tbody tr.return-stage-exchange_pending td:first-child { box-shadow: inset 3px 0 #477fc0; }
body.erp-theme .return-work-table tbody tr.return-stage-completed td { color: #6d7f88; background: #f7f9fa; }
body.erp-theme .return-work-table strong,
body.erp-theme .return-work-table small { display: block; }
body.erp-theme .return-work-number strong { color: #174f68; font-size: 10.5px; font-variant-numeric: tabular-nums; }
body.erp-theme .return-work-number small,
body.erp-theme .return-cell-meta { margin-top: 2px; color: #788a94; font-size: 8.5px; }
body.erp-theme .return-channel-name { overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .return-product-cell { position: relative; padding-right: 35px !important; }
body.erp-theme .return-product-cell > strong { color: #1e3f50; font-size: 10.5px; }
body.erp-theme .return-product-cell > small { overflow: hidden; margin-top: 3px; color: #7a8c95; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .return-product-cell > em { position: absolute; top: 7px; right: 7px; color: #44616f; font-size: 9px; font-style: normal; font-weight: 800; }
body.erp-theme .return-stage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 6px;
  color: #596b75;
  border: 1px solid #c5d0d6;
  border-radius: 4px;
  background: #f3f6f7;
  font-size: 8.5px;
  font-weight: 850;
  white-space: nowrap;
}
body.erp-theme .return-stage-badge.stage-inspection { color: #8a5b05; border-color: #e1c37d; background: #fff7df; }
body.erp-theme .return-stage-badge.stage-return_pending { color: #914c31; border-color: #ddb29f; background: #fff1eb; }
body.erp-theme .return-stage-badge.stage-exchange_pending { color: #285c94; border-color: #a9c4e0; background: #eef6ff; }
body.erp-theme .return-stage-badge.stage-completed { color: #267161; border-color: #a9d3c9; background: #edf8f4; }
body.erp-theme .return-data-missing { color: #a36f17; font-size: 8.5px; font-weight: 800; }
body.erp-theme .tracking-number { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

body.erp-theme .return-excel-cell { padding: 0 !important; background: #fbfcfd !important; }
body.erp-theme .return-excel-cell select,
body.erp-theme .return-excel-cell input {
  display: block;
  width: 100%;
  height: 55px;
  min-height: 0;
  padding: 6px 7px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 9.5px;
}
body.erp-theme .return-excel-cell select:focus,
body.erp-theme .return-excel-cell input:focus {
  z-index: 3;
  background: #fff;
  box-shadow: inset 0 0 0 2px #188b88;
}
body.erp-theme .return-excel-cell select:disabled { color: #8e9ba2; background: #f0f3f5; cursor: not-allowed; opacity: 1; }
body.erp-theme .return-row-links { text-align: center; }
body.erp-theme .return-row-links .button { display: inline-flex; margin: 1px; }
body.erp-theme .return-row-links small { margin-top: 3px; color: #698177; font-size: 8px; }
body.erp-theme .return-work-form > .pagination { margin: 0; padding: 8px; border-top: 1px solid #ced9df; }

body.erp-theme .return-work-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}
body.erp-theme .return-work-guide article {
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #cbd7dc;
  border-radius: 7px;
  background: #f8fafb;
}
body.erp-theme .return-work-guide article > b {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #267b86;
  font-size: 10px;
}
body.erp-theme .return-work-guide strong { color: #284956; font-size: 10px; }
body.erp-theme .return-work-guide p { margin: 3px 0 0; color: #71838c; font-size: 8.5px; line-height: 1.45; }

@media (max-width: 800px) {
  body.erp-theme .return-workbench-head { align-items: start; }
  body.erp-theme .return-stage-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.erp-theme .return-stage-nav a:nth-child(3) { border-right: 0; }
  body.erp-theme .return-stage-nav a:nth-child(-n+3) { border-bottom: 1px solid #d7e0e5; }
  body.erp-theme .return-search-panel { display: block; }
  body.erp-theme .return-search-panel form { display: grid; grid-template-columns: 1fr auto; }
  body.erp-theme .return-search-panel label { grid-column: 1 / -1; min-width: 0; }
  body.erp-theme .return-search-panel > p { margin-top: 7px; }
  body.erp-theme .return-work-toolbar { display: block; }
  body.erp-theme .return-work-toolbar > div:first-child { display: flex; justify-content: space-between; }
  body.erp-theme .return-work-toolbar .actions { justify-content: stretch; margin-top: 6px; }
  body.erp-theme .return-work-toolbar .actions button { flex: 1 1 145px; }
  body.erp-theme .return-work-table-wrap { height: calc(100vh - 360px); min-height: 400px; }
  body.erp-theme .return-work-guide { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body.erp-theme .erp-page > .page-head { min-height: 45px; padding: 2px 0 7px; }
  body.erp-theme .erp-page > .page-head p:not(.page-head-meta),
  body.erp-theme .erp-page > .page-head .page-head-meta { display: none; }
  body.erp-theme .page-section-label { font-size: 8px; }
  body.erp-theme .order-workbench-count { display: none; }
}

/* 2026 work center and report workbench -----------------------------------
   Actionable exceptions, report variants and dense data inspection follow
   the same status -> context -> action hierarchy throughout the ERP. */
body.erp-theme .dashboard-command-center {
  overflow: hidden;
  border: 1px solid #aebfc9;
  border-radius: 8px;
  background: #f7f9fa;
  box-shadow: 0 2px 8px rgb(28 58 75 / 8%);
}
body.erp-theme .dashboard-command-head {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(112deg, #17384b, #1f5266 64%, #287b86);
}
body.erp-theme .dashboard-command-head h2 {
  margin: 0;
  color: #b7efe4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}
body.erp-theme .dashboard-attention-total {
  display: flex;
  min-width: 108px;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  padding-left: 18px;
  border-left: 1px solid rgb(255 255 255 / 23%);
  font-variant-numeric: tabular-nums;
}
body.erp-theme .dashboard-attention-total small { margin-right: 5px; color: #c9dce3; font-size: 9px; font-weight: 750; }
body.erp-theme .dashboard-attention-total strong { color: #b7efe4; font-size: 25px; line-height: 1; }
body.erp-theme .dashboard-attention-total.has-attention strong { color: #ffd37f; }
body.erp-theme .dashboard-attention-total em { color: #d4e0e5; font-size: 10px; font-style: normal; }
body.erp-theme .dashboard-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-width: 0;
}
body.erp-theme .dashboard-task-panel { min-width: 0; padding: 10px; }
body.erp-theme .dashboard-freshness-panel { padding: 10px; border-left: 1px solid #c8d3d9; background: #fff; }
body.erp-theme .dashboard-panel-heading {
  display: flex;
  min-height: 25px;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
body.erp-theme .dashboard-panel-heading h3 { margin: 0; color: #27465a; font-size: 12px; font-weight: 850; }
body.erp-theme .dashboard-panel-heading span { color: #778893; font-size: 8.5px; font-weight: 650; }
body.erp-theme .dashboard-panel-heading > div h3,
body.erp-theme .dashboard-panel-heading > div span { display: block; }
body.erp-theme .dashboard-panel-heading > div span { margin-top: 2px; }
body.erp-theme .dashboard-panel-heading form { margin-left: auto; }
body.erp-theme .dashboard-task-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 6px; }
body.erp-theme .dashboard-task-card {
  position: relative;
  display: grid;
  min-height: 113px;
  padding: 9px 10px 8px;
  color: #284453;
  border: 1px solid #c8d3d9;
  border-top: 3px solid #8aa0ab;
  border-radius: 5px;
  background: #fff;
  text-decoration: none;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
body.erp-theme button.dashboard-task-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body.erp-theme .dashboard-task-card:hover,
body.erp-theme .dashboard-task-card:focus-visible { z-index: 1; border-color: #5693a5; box-shadow: 0 4px 12px rgb(24 65 83 / 14%); transform: translateY(-1px); }
body.erp-theme .dashboard-task-card.is-ok { border-top-color: #39a486; }
body.erp-theme .dashboard-task-card.is-info { border-top-color: #3d8db1; background: #fbfdff; }
body.erp-theme .dashboard-task-card.is-warning { border-top-color: #d5952c; }
body.erp-theme .dashboard-task-card.is-danger { border-top-color: #c75252; background: #fffafa; }
body.erp-theme .dashboard-task-state {
  position: absolute;
  top: 7px;
  right: 8px;
  padding: 2px 5px;
  color: #58707d;
  border-radius: 3px;
  background: #eef2f4;
  font-size: 8px;
  font-weight: 850;
}
body.erp-theme .dashboard-task-card.is-ok .dashboard-task-state { color: #18765e; background: #e5f5ef; }
body.erp-theme .dashboard-task-card.is-info .dashboard-task-state { color: #276b8a; background: #e7f3f8; }
body.erp-theme .dashboard-task-card.is-warning .dashboard-task-state { color: #8b5a0a; background: #fff2d9; }
body.erp-theme .dashboard-task-card.is-danger .dashboard-task-state { color: #9f3030; background: #fde8e8; }
body.erp-theme .dashboard-task-card > strong { align-self: end; color: #193c50; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
body.erp-theme .dashboard-task-card.is-danger > strong { color: #a53232; }
body.erp-theme .dashboard-task-card > strong small { margin-left: 2px; color: #81919a; font-size: 9px; }
body.erp-theme .dashboard-task-card h4 { margin: 5px 0 0; color: #27485a; font-size: 11px; font-weight: 850; }
body.erp-theme .dashboard-task-card p { overflow: hidden; margin: 1px 0 4px; color: #71828c; font-size: 8.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .dashboard-task-card em { align-self: end; color: #277d96; font-size: 8.5px; font-style: normal; font-weight: 800; }
body.erp-theme .dashboard-task-card em b { margin-left: 2px; }
body.erp-theme .dashboard-freshness-list { border-top: 1px solid #d5dde2; }
body.erp-theme .dashboard-freshness-list > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  border-bottom: 1px solid #e0e6e9;
}
body.erp-theme .dashboard-freshness-list i { width: 7px; height: 7px; border-radius: 50%; background: #8a9aa3; }
body.erp-theme .dashboard-freshness-list .is-ok i { background: #35a384; box-shadow: 0 0 0 3px #e4f3ee; }
body.erp-theme .dashboard-freshness-list .is-warning i { background: #d8982d; box-shadow: 0 0 0 3px #fff3dd; }
body.erp-theme .dashboard-freshness-list .is-stale i,
body.erp-theme .dashboard-freshness-list .is-empty i { background: #c85a5a; box-shadow: 0 0 0 3px #fbeaea; }
body.erp-theme .dashboard-freshness-list span b,
body.erp-theme .dashboard-freshness-list span small { display: block; }
body.erp-theme .dashboard-freshness-list span b { color: #3b5362; font-size: 9px; }
body.erp-theme .dashboard-freshness-list span small { margin-top: 1px; color: #82919a; font-size: 8px; }
body.erp-theme .dashboard-freshness-list strong { color: #284858; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.erp-theme dialog.dashboard-status-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  max-height: min(760px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #8faab6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(7 27 39 / 42%);
}
body.erp-theme dialog.dashboard-status-dialog::backdrop {
  background: rgb(8 28 40 / 64%);
  backdrop-filter: blur(3px);
}
body.erp-theme .dashboard-status-dialog-shell {
  display: grid;
  max-height: min(760px, calc(100vh - 32px));
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
body.erp-theme .dashboard-status-dialog-head {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  color: #fff;
  background: linear-gradient(112deg, #15384d 0%, #1c5267 62%, #237b7f 100%);
}
body.erp-theme .dashboard-status-dialog-head span {
  display: block;
  margin-bottom: 3px;
  color: #a8d9da;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .18em;
}
body.erp-theme .dashboard-status-dialog-head h2 { margin: 0; color: #fff; font-size: 18px; font-weight: 900; }
body.erp-theme .dashboard-status-dialog-head p { margin: 4px 0 0; color: #d4e6e9; font-size: 9px; }
body.erp-theme .dashboard-status-dialog-head > button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  color: #eaf5f6;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
body.erp-theme .dashboard-status-dialog-head > button:hover { border-color: rgb(255 255 255 / 55%); background: rgb(255 255 255 / 16%); }
body.erp-theme .dashboard-status-dialog-summary {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #d5e0e5;
  background: #f4f8f9;
}
body.erp-theme .dashboard-status-dialog-summary > div strong,
body.erp-theme .dashboard-status-dialog-summary > div span { display: block; }
body.erp-theme .dashboard-status-dialog-summary > div strong { color: #203f50; font-size: 12px; }
body.erp-theme .dashboard-status-dialog-summary > div span { margin-top: 2px; color: #6d808b; font-size: 8.5px; }
body.erp-theme .dashboard-status-dialog-summary form { flex: 0 0 auto; }
body.erp-theme .dashboard-status-dialog-summary button { white-space: nowrap; }
body.erp-theme .dashboard-status-dialog .dashboard-status-change-list {
  min-height: 116px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
}
body.erp-theme .dashboard-status-change-row {
  display: grid;
  grid-template-columns: 72px minmax(170px, .8fr) minmax(215px, 1.05fr) minmax(170px, 1fr) 76px;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  color: #334f5e;
  border-bottom: 1px solid #e1e7ea;
  background: #fff;
  text-decoration: none;
}
body.erp-theme .dashboard-status-change-row:last-child { border-bottom: 0; }
body.erp-theme .dashboard-status-change-row:hover { background: #f3f9fa; }
body.erp-theme .dashboard-status-change-row.is-customer-notice {
  background: #fffaf1;
  box-shadow: inset 3px 0 #d89b35;
}
body.erp-theme .dashboard-status-change-row.is-customer-notice:hover { background: #fff6e5; }
body.erp-theme .dashboard-status-change-row time { color: #71838d; font-size: 9px; font-weight: 750; font-variant-numeric: tabular-nums; }
body.erp-theme .dashboard-status-change-order { min-width: 0; color: inherit; text-decoration: none; }
body.erp-theme .dashboard-status-change-order:hover strong { color: #147487; text-decoration: underline; }
body.erp-theme .dashboard-status-change-order strong,
body.erp-theme .dashboard-status-change-order small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .dashboard-status-change-order strong { color: #27485a; font-size: 10px; }
body.erp-theme .dashboard-status-change-order strong em {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px;
  color: #8b5a0a;
  border-radius: 3px;
  background: #ffedc9;
  font-size: 7.5px;
  font-style: normal;
  vertical-align: 1px;
}
body.erp-theme .dashboard-status-change-order small { margin-top: 2px; color: #7b8b94; font-size: 8.5px; }
body.erp-theme .dashboard-status-transition { display: flex; min-width: 0; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; }
body.erp-theme .dashboard-status-transition del { overflow: hidden; color: #7c8c95; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .dashboard-status-transition i { color: #6b8995; font-style: normal; }
body.erp-theme .dashboard-status-transition b { overflow: hidden; padding: 3px 6px; color: #176e75; border-radius: 3px; background: #e4f3f1; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .dashboard-status-change-reason { overflow: hidden; color: #607681; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .dashboard-status-change-ack { justify-self: end; }
body.erp-theme .dashboard-status-change-ack button { min-height: 27px; padding: 3px 7px; white-space: nowrap; }
body.erp-theme .dashboard-status-change-empty {
  display: grid;
  min-height: 116px;
  place-content: center;
  gap: 4px;
  margin: 0;
  padding: 18px;
  color: #72838d;
  font-size: 9px;
  text-align: center;
}
body.erp-theme .dashboard-status-change-empty b { color: #315365; font-size: 12px; }
body.erp-theme .dashboard-status-dialog-foot {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-top: 1px solid #d7e0e4;
  background: #f8fafb;
}
body.erp-theme .dashboard-status-dialog-foot span { color: #7a8b94; font-size: 8.5px; }
body.erp-theme .dashboard-status-dialog-foot button { min-width: 64px; }
body.erp-theme .dashboard-order-dialog-list {
  min-height: 150px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
}
body.erp-theme .dashboard-order-dialog-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
body.erp-theme .dashboard-order-dialog-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 8px 10px;
  color: #607581;
  border-bottom: 1px solid #cbd8de;
  background: #eef4f6;
  font-size: 8.5px;
  font-weight: 850;
  text-align: left;
}
body.erp-theme .dashboard-order-dialog-table th:nth-child(1) { width: 126px; }
body.erp-theme .dashboard-order-dialog-table th:nth-child(2) { width: 180px; }
body.erp-theme .dashboard-order-dialog-table th:nth-child(4) { width: 180px; }
body.erp-theme .dashboard-order-dialog-table th:nth-child(5) { width: 76px; }
body.erp-theme .dashboard-order-dialog-table.has-notice-date th:nth-child(5) { width: 132px; }
body.erp-theme .dashboard-order-dialog-table.has-notice-date th:nth-child(6) { width: 76px; }
body.erp-theme .dashboard-notice-date time { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.erp-theme .dashboard-order-dialog-table td {
  padding: 9px 10px;
  color: #35515f;
  border-bottom: 1px solid #e1e8eb;
  background: #fff;
  font-size: 9px;
  vertical-align: middle;
}
body.erp-theme .dashboard-order-dialog-table tr:last-child td { border-bottom: 0; }
body.erp-theme .dashboard-order-dialog-table tbody tr:hover td { background: #f6fafb; }
body.erp-theme .dashboard-order-dialog-table td > strong,
body.erp-theme .dashboard-order-dialog-table td > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.erp-theme .dashboard-order-dialog-table td > strong { color: #27495a; font-size: 9.5px; }
body.erp-theme .dashboard-order-dialog-table td > small { margin-top: 2px; color: #788a94; font-size: 8px; }
body.erp-theme .dashboard-order-dialog-table td:last-child { text-align: right; }
body.erp-theme .dashboard-order-dialog-table td:last-child a { white-space: nowrap; }
body.erp-theme .dashboard-order-stage {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  overflow: hidden;
  color: #21677a;
  border: 1px solid #b8d4dc;
  border-radius: 4px;
  background: #edf7f9;
  font-size: 8px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.erp-theme .dashboard-order-stage:is(.is-stock_check_required, .is-restock_wait) {
  color: #8b5c0e;
  border-color: #ead29f;
  background: #fff6e3;
}
body.erp-theme .dashboard-order-stage:is(.is-notice_sold_out, .is-notice_restock, .is-notice_not_required) {
  color: #93434a;
  border-color: #e6bec1;
  background: #fff0f1;
}
body.erp-theme .dashboard-order-stage:is(.is-packing_pending, .is-dispatch_pending) {
  color: #176e61;
  border-color: #add8ce;
  background: #eaf7f3;
}

body.erp-theme .customer-notice-auto-change { display: block; }
body.erp-theme .customer-notice-auto-change-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.erp-theme .customer-notice-auto-change-head strong { color: #74500e; font-size: 11px; }
body.erp-theme .customer-notice-auto-change-head p { margin: 2px 0 0; color: #756747; font-size: 9px; }
body.erp-theme .customer-notice-auto-change-head form { flex: 0 0 auto; }
body.erp-theme .customer-notice-auto-change details { margin-top: 7px; border-top: 1px solid #ead9ae; }
body.erp-theme .customer-notice-auto-change summary { padding: 7px 0 0; color: #6d531d; font-size: 9px; font-weight: 800; cursor: pointer; }
body.erp-theme .customer-notice-auto-change-list { margin-top: 6px; border: 1px solid #e5d4aa; border-radius: 4px; overflow: hidden; }
body.erp-theme .customer-notice-auto-change-list > div {
  display: grid;
  grid-template-columns: 66px minmax(150px, .85fr) minmax(180px, 1fr) minmax(170px, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 8px;
  border-bottom: 1px solid #ede1c4;
  background: rgb(255 255 255 / 70%);
  font-size: 8.5px;
}
body.erp-theme .customer-notice-auto-change-list > div:last-child { border-bottom: 0; }
body.erp-theme .customer-notice-auto-change-list time,
body.erp-theme .customer-notice-auto-change-list small { color: #7b715a; }
body.erp-theme .customer-notice-auto-change-list a { min-width: 0; color: #365a69; text-decoration: none; }
body.erp-theme .customer-notice-auto-change-list a strong,
body.erp-theme .customer-notice-auto-change-list a span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .customer-notice-auto-change-list a:hover strong { text-decoration: underline; }
body.erp-theme .dashboard-master-health { display: grid; grid-template-columns: 1fr auto; gap: 2px 7px; margin-top: 8px; padding: 7px 8px; border: 1px solid #d7dfe3; border-radius: 4px; background: #f5f7f8; }
body.erp-theme .dashboard-master-health span { color: #637680; font-size: 8.5px; }
body.erp-theme .dashboard-master-health strong { color: #304e5d; font-size: 10px; font-variant-numeric: tabular-nums; }
body.erp-theme .dashboard-master-health a { grid-column: 1 / -1; color: #277a91; font-size: 8.5px; font-weight: 800; text-decoration: none; }
body.erp-theme .dashboard-quick-actions {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-top: 1px solid #c8d3d9;
  background: #eef3f5;
}
body.erp-theme .dashboard-quick-actions > span { margin-right: 4px; color: #526a77; font-size: 9px; font-weight: 900; white-space: nowrap; }
body.erp-theme .dashboard-quick-actions a { display: inline-flex; min-height: 27px; align-items: center; gap: 4px; padding: 4px 8px; color: #294b5c; border: 1px solid #bdccd3; border-radius: 4px; background: #fff; font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
body.erp-theme .dashboard-quick-actions a:hover { color: #176e83; border-color: #7da9b7; background: #f7fcfd; }
body.erp-theme .dashboard-quick-actions a b { color: #268a91; font-size: 12px; }

body.erp-theme .report-result-tools { display: flex; align-items: center; gap: 4px; min-width: 0; }
body.erp-theme th.sortable-table-head { padding: 0 !important; }
body.erp-theme th.sortable-table-head > a {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 7px;
  color: inherit;
  text-decoration: none;
}
body.erp-theme th.sortable-table-head > a:hover,
body.erp-theme th.sortable-table-head > a:focus-visible {
  color: #116b83;
  background: #e6f2f5;
}
body.erp-theme th.sortable-table-head > a span { color: #438299; font-size: 9px; }

body.erp-theme .report-result-toolbar {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  padding: 5px 7px;
  border: 1px solid #b7c7cf;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #eaf0f3;
}
body.erp-theme .report-result-toolbar + .query-result-wrap { margin-top: 0; border-top-color: #93aab6; border-radius: 0 0 5px 5px; }
body.erp-theme .report-result-summary { display: flex; align-items: baseline; gap: 7px; color: #59707c; }
body.erp-theme .report-result-summary span { font-size: 8.5px; font-weight: 850; }
body.erp-theme .report-result-summary strong { color: #183f53; font-size: 12px; font-variant-numeric: tabular-nums; }
body.erp-theme .report-result-tools label { display: flex; align-items: center; gap: 5px; color: #647983; font-size: 8.5px; font-weight: 800; }
body.erp-theme .report-result-tools select { width: 91px; min-height: 25px; padding: 2px 22px 2px 6px; font-size: 8.5px; }
body.erp-theme .report-result-tools .button.small { min-height: 25px; padding: 3px 7px; font-size: 8.5px; }
body.erp-theme[data-report-density="compact"] .query-result-wrap table th,
body.erp-theme[data-report-density="compact"] .query-result-wrap table td { height: 24px !important; padding-top: 2px !important; padding-bottom: 2px !important; line-height: 1.12 !important; }
body.erp-theme[data-report-density="comfortable"] .query-result-wrap table th,
body.erp-theme[data-report-density="comfortable"] .query-result-wrap table td { height: 39px !important; padding-top: 8px !important; padding-bottom: 8px !important; line-height: 1.35 !important; }
body.erp-theme main .is-negative-value { color: #b33b3b !important; font-weight: 850 !important; }
body.erp-theme.report-focus-active { overflow: hidden; }
body.erp-theme.report-focus-active::before { position: fixed; z-index: 1998; inset: 0; background: #e8eef1; content: ""; }
body.erp-theme .report-result-toolbar.is-report-focus {
  position: fixed;
  z-index: 2000;
  top: 8px;
  right: 8px;
  left: 8px;
  margin: 0;
  border-bottom: 1px solid #91a9b5;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgb(27 53 67 / 15%);
}
body.erp-theme .query-result-wrap.is-report-focus {
  position: fixed;
  z-index: 1999;
  top: 52px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none !important;
  margin: 0;
  border: 1px solid #91a9b5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(27 53 67 / 18%);
}

@media (max-width: 1100px) {
  body.erp-theme .dashboard-command-grid { grid-template-columns: 1fr; }
  body.erp-theme .dashboard-freshness-panel { border-top: 1px solid #c8d3d9; border-left: 0; }
  body.erp-theme .dashboard-freshness-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.erp-theme .dashboard-freshness-list > div { padding: 0 8px; border-right: 1px solid #e0e6e9; }
  body.erp-theme .dashboard-freshness-list > div:last-child { border-right: 0; }
  body.erp-theme .dashboard-master-health { grid-template-columns: auto auto 1fr; align-items: center; }
  body.erp-theme .dashboard-master-health a { grid-column: auto; justify-self: end; }
}

@media (max-width: 720px) {
  body.erp-theme .dashboard-command-head { min-height: 41px; padding: 8px 10px; }
  body.erp-theme .dashboard-command-head h2 { font-size: 12px; }
  body.erp-theme .dashboard-attention-total { min-width: 85px; padding-left: 10px; }
  body.erp-theme .dashboard-attention-total small { display: none; }
  body.erp-theme .dashboard-attention-total strong { font-size: 22px; }
  body.erp-theme .dashboard-task-panel,
  body.erp-theme .dashboard-freshness-panel { padding: 8px; }
  body.erp-theme .dashboard-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.erp-theme .dashboard-task-card { min-height: 104px; padding: 8px; }
  body.erp-theme .dashboard-freshness-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.erp-theme .dashboard-freshness-list > div:nth-child(2) { border-right: 0; }
  body.erp-theme .dashboard-quick-actions { overflow-x: auto; scrollbar-width: none; }
  body.erp-theme .dashboard-quick-actions::-webkit-scrollbar { display: none; }
  body.erp-theme .report-result-toolbar { align-items: flex-start; }
  body.erp-theme .report-result-tools { overflow-x: auto; max-width: 70%; scrollbar-width: none; }
  body.erp-theme .report-result-tools label { display: none; }
  body.erp-theme .report-result-tools .button.small { white-space: nowrap; }
  body.erp-theme .report-result-toolbar.is-report-focus { top: 4px; right: 4px; left: 4px; }
  body.erp-theme .query-result-wrap.is-report-focus { top: 47px; right: 4px; bottom: 4px; left: 4px; }
}

/* Simple interface pass ----------------------------------------------------
   Keep decisions and actions visible; keep supporting copy one click away. */
body.erp-theme .erp-page > .page-head p:not(.page-head-meta):not(.page-context-help-text),
body.erp-theme .operations-dashboard > .page-head p:not(.page-head-meta):not(.page-context-help-text) {
  display: none;
}
body.erp-theme .page-head.has-context-help-open { overflow: visible; }
body.erp-theme .page-title-row {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 6px;
}
body.erp-theme .page-title-row h1 { min-width: 0; }
body.erp-theme .page-context-help {
  position: static;
  display: block;
  width: 18px;
  flex: 0 0 18px;
  margin: 0;
  z-index: 20;
}
body.erp-theme .page-context-help > summary {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  color: #557080;
  border: 1px solid #aebdc6;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  list-style: none;
}
body.erp-theme .page-context-help > summary::-webkit-details-marker { display: none; }
body.erp-theme .page-context-help > summary:hover,
body.erp-theme .page-context-help > summary:focus-visible,
body.erp-theme .page-context-help[open] > summary {
  color: #fff;
  border-color: #28748a;
  outline: 0;
  background: #28748a;
}
body.erp-theme .page-context-help-body {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: min(360px, calc(100vw - 36px));
  padding: 8px 10px;
  color: #4c606d;
  border: 1px solid #aebdc6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(23 52 69 / 18%);
  font-size: 10.5px;
  line-height: 1.55;
}
body.erp-theme .erp-page > .page-head .page-context-help-body .page-context-help-text,
body.erp-theme .operations-dashboard > .page-head .page-context-help-body .page-context-help-text {
  display: block;
  max-width: none;
  margin: 0;
  overflow: visible;
  color: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-overflow: clip;
  white-space: normal;
}

body.erp-theme .order-flow a {
  min-height: 38px;
  padding-block: 4px;
}
body.erp-theme .order-flow a > b {
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.erp-theme details.fulfillment-guide > .fulfillment-guide-title {
  min-height: 34px;
  padding-block: 4px;
}
body.erp-theme details.fulfillment-guide > .fulfillment-guide-title > span {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}

body.erp-theme .dashboard-task-card {
  min-height: 82px;
  align-content: end;
}
body.erp-theme .dashboard-task-card > strong { align-self: auto; }
body.erp-theme .dashboard-freshness-list > div { min-height: 36px; }

body.erp-theme .dashboard-metrics-disclosure {
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid #cbd5dd;
  border-radius: 5px;
  background: #fff;
}
body.erp-theme .dashboard-metrics-disclosure > summary {
  display: flex;
  min-height: 35px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #334f60;
  cursor: pointer;
  list-style: none;
}
body.erp-theme .dashboard-metrics-disclosure > summary::-webkit-details-marker { display: none; }
body.erp-theme .dashboard-metrics-disclosure > summary::before {
  color: #758894;
  content: "+";
  font-size: 15px;
  line-height: 1;
}
body.erp-theme .dashboard-metrics-disclosure[open] > summary {
  border-bottom: 1px solid #d6dee3;
  background: #f7f9fa;
}
body.erp-theme .dashboard-metrics-disclosure[open] > summary::before { content: "−"; }
body.erp-theme .dashboard-metrics-disclosure > summary strong { font-size: 11px; }
body.erp-theme .dashboard-metrics-disclosure > summary span { color: #71828d; font-size: 9.5px; }
body.erp-theme .dashboard-metrics-disclosure > summary em {
  margin-left: auto;
  color: #5c7482;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}
body.erp-theme .dashboard-metrics-disclosure .disclosure-close-label,
body.erp-theme .dashboard-metrics-disclosure[open] .disclosure-open-label { display: none; }
body.erp-theme .dashboard-metrics-disclosure[open] .disclosure-close-label { display: block; }
body.erp-theme .dashboard-metrics-disclosure .dashboard-sales-metrics {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.erp-theme .mapping-guide-help,
body.erp-theme .stock-rule-guide-help,
body.erp-theme .master-code-guide-help { margin-bottom: 7px; }

@media (max-width: 600px) {
  body.erp-theme .page-context-help-body { left: 0; }
  body.erp-theme .dashboard-task-card { min-height: 76px; }
  body.erp-theme dialog.dashboard-status-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    border-radius: 11px;
  }
  body.erp-theme .dashboard-status-dialog-shell { max-height: calc(100dvh - 14px); }
  body.erp-theme .dashboard-status-dialog-head { min-height: 82px; padding: 13px 14px; }
  body.erp-theme .dashboard-status-dialog-head h2 { font-size: 16px; }
  body.erp-theme .dashboard-status-dialog-summary { align-items: stretch; flex-direction: column; padding: 9px 11px; }
  body.erp-theme .dashboard-status-dialog-summary :is(form button, a.button) { width: 100%; justify-content: center; }
  body.erp-theme .dashboard-order-dialog-list { padding: 8px; background: #f3f7f8; }
  body.erp-theme .dashboard-order-dialog-table { display: block; min-width: 0; }
  body.erp-theme .dashboard-order-dialog-table thead { display: none; }
  body.erp-theme .dashboard-order-dialog-table tbody { display: grid; gap: 7px; }
  body.erp-theme .dashboard-order-dialog-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 9px;
    border: 1px solid #cfdae0;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(20 52 67 / 6%);
  }
  body.erp-theme .dashboard-order-dialog-table td {
    display: block;
    padding: 0;
    border: 0;
    background: transparent !important;
  }
  body.erp-theme .dashboard-order-dialog-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  body.erp-theme .dashboard-order-dialog-table td:nth-child(2),
  body.erp-theme .dashboard-order-dialog-table td:nth-child(3),
  body.erp-theme .dashboard-order-dialog-table td:nth-child(4) { grid-column: 1 / -1; }
  body.erp-theme .dashboard-order-dialog-table td:nth-child(5) { grid-column: 2; grid-row: 1; }
  body.erp-theme .dashboard-order-dialog-table.has-notice-date td:nth-child(5) { grid-column: 1 / -1; grid-row: auto; }
  body.erp-theme .dashboard-order-dialog-table.has-notice-date td:nth-child(6) { grid-column: 2; grid-row: 1; }
  body.erp-theme .dashboard-order-dialog-table td:nth-child(3) {
    padding: 7px 0;
    border-top: 1px solid #e3e9ec;
    border-bottom: 1px solid #e3e9ec;
  }
  body.erp-theme .dashboard-status-change-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 8px;
  }
  body.erp-theme .dashboard-status-transition,
  body.erp-theme .dashboard-status-change-reason,
  body.erp-theme .dashboard-status-change-ack { grid-column: 2; }
  body.erp-theme .dashboard-status-transition { flex-wrap: wrap; }
  body.erp-theme .dashboard-status-change-reason { white-space: normal; }
  body.erp-theme .dashboard-status-change-ack { justify-self: start; }
  body.erp-theme .dashboard-status-dialog-foot { padding: 8px 11px; }
  body.erp-theme .customer-notice-auto-change-head { align-items: stretch; flex-direction: column; }
  body.erp-theme .customer-notice-auto-change-head form button { width: 100%; }
  body.erp-theme .customer-notice-auto-change-list > div { grid-template-columns: 58px minmax(0, 1fr); }
  body.erp-theme .customer-notice-auto-change-list > div > span,
  body.erp-theme .customer-notice-auto-change-list > div > small { grid-column: 2; }
}

/* Professional ERP system --------------------------------------------------
   A single visual language for navigation, work filters, operational cards,
   spreadsheets and status feedback.  The density stays suitable for daily
   order and inventory work while hierarchy and finish become more refined. */
body.erp-theme {
  --erp-canvas: #f1f4f6;
  --erp-surface: #ffffff;
  --erp-surface-soft: #f7f9fa;
  --erp-surface-raised: #fbfcfd;
  --erp-text: #172c3b;
  --erp-text-soft: #667986;
  --erp-border: #d4dde3;
  --erp-border-strong: #bdcad2;
  --erp-brand: #173f56;
  --erp-brand-deep: #102d40;
  --erp-accent: #167c80;
  --erp-accent-bright: #2aa7a1;
  --erp-blue: #216b8d;
  --erp-focus: rgba(31, 112, 145, .17);
  --erp-success: #1d7a61;
  --erp-warning: #a46a13;
  --erp-danger: #b33d4b;
  --erp-radius: 7px;
  --erp-control-height: 33px;
  --soft-shadow: 0 1px 2px rgba(17, 43, 59, .055), 0 4px 14px rgba(17, 43, 59, .035);
  color: var(--erp-text);
  background: var(--erp-canvas);
  font-family: Pretendard, "Pretendard Variable", "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.erp-theme ::selection { color: #fff; background: #2a718f; }
body.erp-theme a { color: #17668b; }
body.erp-theme a:hover { color: #104c69; }
body.erp-theme :is(button, input, select, textarea) { font-family: inherit; }

/* Application chrome */
body.erp-theme .topbar {
  min-height: 60px;
  padding: 0 18px;
  gap: 14px;
  border-bottom: 1px solid #2b6672;
  background:
    linear-gradient(90deg, rgba(42, 167, 161, .07), transparent 31%),
    linear-gradient(180deg, #173b51 0%, #102c3f 100%);
  box-shadow: 0 3px 14px rgba(11, 31, 44, .2);
}
body.erp-theme .brand { min-width: 170px; gap: 11px; }
body.erp-theme .brand-mark {
  width: 24px;
  height: 29px;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  transform: skew(-8deg);
}
body.erp-theme .brand-mark i { border-radius: 1px; }
body.erp-theme .brand-mark i:nth-child(1) { height: 16px; }
body.erp-theme .brand-mark i:nth-child(2) { height: 29px; }
body.erp-theme .brand-mark i:nth-child(3) { height: 22px; background: #51d2c2; }
body.erp-theme .brand-copy strong { font-size: 16px; font-weight: 850; letter-spacing: .16em; }
body.erp-theme .brand-copy small { margin-top: 5px; color: #9db4c2; font-size: 7px; letter-spacing: .25em; }
body.erp-theme .nav { height: 59px; }
body.erp-theme button.nav-category,
body.erp-theme a.nav-category-link {
  min-height: 59px;
  padding: 0 12px;
  color: #cedbe3;
  border-left-color: rgba(255, 255, 255, .065);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: -.01em;
}
body.erp-theme button.nav-category:hover,
body.erp-theme a.nav-category-link:hover,
body.erp-theme .nav-group.submenu-open button.nav-category {
  color: #fff;
  background: rgba(255, 255, 255, .075);
}
body.erp-theme button.nav-category.has-current-page,
body.erp-theme a.nav-category-link.has-current-page {
  color: #fff;
  background: rgba(43, 167, 161, .12);
  box-shadow: inset 0 -3px #4fd1c2;
}
body.erp-theme .nav-submenu {
  min-width: 190px;
  padding: 6px;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #adbec9;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 16px 38px rgba(13, 38, 54, .24);
}
/* Click/keyboard state owns visibility, including Escape while still hovered. */
body.erp-theme .nav-group:not(.submenu-open) .nav-submenu { display: none; }
body.erp-theme .nav-section-title {
  display: block;
  margin: 5px 5px 2px;
  padding: 6px 5px 3px;
  color: #657d8b;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
}
body.erp-theme a + .nav-section-title {
  margin-top: 7px;
  padding-top: 10px;
  border-top: 1px solid #e0e8ed;
}
body.erp-theme .nav-submenu a {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 5px;
  color: #2a4353;
  font-size: 11.5px;
  font-weight: 620;
}
body.erp-theme .nav-submenu a:hover,
body.erp-theme .nav-submenu a:focus { color: #154f67; background: #edf4f6; }
body.erp-theme .nav-submenu a.is-current {
  color: #113f54;
  background: #e3f0f2;
  box-shadow: inset 3px 0 var(--erp-accent);
  font-weight: 800;
}
body.erp-theme button.global-search-trigger {
  min-height: 34px;
  padding: 5px 8px 5px 10px;
  border-color: rgba(196, 219, 228, .32);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
}
body.erp-theme .today { color: #a7bac6; font-size: 10.5px; }
body.erp-theme .user-account { color: #d8e2e8; }
body.erp-theme .user-account button,
body.erp-theme .pwa-install-button {
  min-height: 31px;
  border-color: #587487;
  border-radius: 6px;
  background: rgba(255, 255, 255, .065);
}

body.erp-theme .work-tabs {
  top: 60px;
  min-height: 39px;
  padding: 4px 18px;
  border-bottom: 1px solid #c6d1d8;
  background: #e8edf0;
  box-shadow: 0 2px 5px rgba(18, 43, 58, .06);
}
body.erp-theme .work-tab {
  height: 30px;
  min-height: 30px;
  border-color: #c1ccd3;
  border-radius: 5px;
  background: #f4f7f8;
}
body.erp-theme .work-tab.is-active { border-color: #7ea5b4; background: #fff; box-shadow: inset 3px 0 var(--erp-accent); }
body.erp-theme .work-tab a {
  display: flex;
  align-self: stretch;
  align-items: center;
  line-height: 1.2;
}
body.erp-theme button.work-tab-close {
  display: inline-grid;
  flex: 0 0 27px;
  align-self: stretch;
  place-items: center;
  width: 27px;
  min-width: 27px;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 1px;
  color: #718390;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  appearance: none;
}
body.erp-theme button.work-tab-close:hover {
  color: #a52c3e;
  border: 0;
  background: #fbecef;
  box-shadow: none;
}
body.erp-theme .order-status-form .order-result-toolbar {
  position: sticky;
  z-index: 43;
  top: 99px;
  border-bottom: 1px solid #b8c8d1;
  background: #fff;
  box-shadow: 0 3px 8px rgba(18, 43, 58, .1);
}
body.erp-theme .order-result-toolbar + .order-admin-table-wrap {
  border-top: 0;
}

/* Page hierarchy */
body.erp-theme main { padding: 14px 18px 24px; }
body.erp-theme .erp-page > .page-head,
body.erp-theme .operations-dashboard > .page-head {
  min-height: 66px;
  margin-bottom: 11px;
  padding: 10px 14px 10px 18px;
  overflow: visible;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  background: linear-gradient(115deg, #fff 0%, #fff 70%, #f4f8f9 100%);
  box-shadow: var(--soft-shadow);
}
body.erp-theme .erp-page > .page-head::before,
body.erp-theme .operations-dashboard > .page-head::before {
  display: block;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, #237494, #1a938c);
}
body.erp-theme .erp-page > .page-head h1,
body.erp-theme .operations-dashboard > .page-head h1 {
  color: #173447;
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -.035em;
}
body.erp-theme .page-section-label {
  margin-bottom: 4px;
  color: #23758b;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .13em;
}
body.erp-theme .page-context-help > summary {
  color: #4f6d7c;
  border-color: #aebfc9;
  background: #f9fbfc;
}
body.erp-theme .page-context-help > summary:hover,
body.erp-theme .page-context-help > summary:focus-visible,
body.erp-theme .page-context-help[open] > summary { border-color: var(--erp-blue); background: var(--erp-blue); }
body.erp-theme .page-context-help-body {
  border-color: #afc1ca;
  border-radius: 7px;
  box-shadow: 0 14px 34px rgba(17, 46, 63, .2);
}

/* Surfaces and section headings */
body.erp-theme :is(
  .panel, .dashboard-card, .table-wrap, .registration-import-form,
  .registration-sheet-panel, .filters, .page-tabs, .history-tabs,
  .dashboard-detail-tabs, .order-flow, .integration-status-panel,
  .collection-control-panel, .channel-attention-panel
) {
  border-color: var(--erp-border);
  border-radius: var(--erp-radius);
  background-color: var(--erp-surface);
  box-shadow: var(--soft-shadow);
}
body.erp-theme :is(
  .panel-title, .dashboard-card-title, .registration-history-title,
  .registration-file-section > summary, .mapping-section-head,
  .settlement-section-head, .legacy-pane-title, .purchase-size-head,
  .purchase-order-head, .product-image-dialog-head, .collect-panel-head
) {
  min-height: 39px;
  padding: 8px 11px;
  color: #284558;
  border-bottom-color: var(--erp-border);
  background: linear-gradient(180deg, #fbfcfd 0%, #f2f6f8 100%) !important;
  box-shadow: inset 3px 0 #5791a6;
}
body.erp-theme :is(.panel-title h2, .channel-connection-head h2) { color: #203f52; font-size: 12.5px; font-weight: 820; }

/* Controls */
body.erp-theme .button,
body.erp-theme button {
  min-height: var(--erp-control-height);
  padding: 5px 11px;
  color: #294657;
  border: 1px solid #afbdc6;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #f3f6f7 100%);
  box-shadow: 0 1px 1px rgba(17, 44, 59, .04);
  font-size: 11.5px;
  font-weight: 760;
  transition: color .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
body.erp-theme .button:hover,
body.erp-theme button:hover {
  color: #154e67;
  border-color: #7f9fad;
  background: #edf4f6;
  box-shadow: 0 1px 3px rgba(17, 56, 75, .08);
}
body.erp-theme .button.primary,
body.erp-theme button.primary {
  color: #fff;
  border-color: #165b75;
  background: linear-gradient(180deg, #247798 0%, #1a5e7c 100%);
  box-shadow: 0 1px 2px rgba(14, 63, 84, .18);
}
body.erp-theme .button.primary:hover,
body.erp-theme button.primary:hover { color: #fff; border-color: #10495f; background: #185a75; }
body.erp-theme .button.danger-button,
body.erp-theme button.danger-button,
body.erp-theme .danger-button { color: #fff; border-color: #963240; background: #ae3c4a; }
body.erp-theme .button.small,
body.erp-theme button.small { min-height: 28px; padding: 3px 8px; font-size: 10.5px; }
body.erp-theme button:disabled,
body.erp-theme .button:disabled { color: #8a979f; border-color: #ced6db; background: #edf1f3; opacity: .72; }
body.erp-theme input,
body.erp-theme select,
body.erp-theme textarea {
  min-height: 32px;
  color: #1c3444;
  border: 1px solid #abbac4;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(19, 46, 62, .035);
  font-size: 11.5px;
}
body.erp-theme input::placeholder,
body.erp-theme textarea::placeholder { color: #96a3ab; }
body.erp-theme input:hover,
body.erp-theme select:hover,
body.erp-theme textarea:hover { border-color: #879eaa; }
body.erp-theme input:focus,
body.erp-theme select:focus,
body.erp-theme textarea:focus {
  border-color: #267391;
  box-shadow: 0 0 0 3px var(--erp-focus);
}
body.erp-theme input[type="checkbox"],
body.erp-theme input[type="radio"] { accent-color: var(--erp-accent); }

/* Query workbench */
body.erp-theme .filters {
  gap: 8px;
  padding: 10px 11px;
  margin-bottom: 9px;
  border-color: var(--erp-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(247, 249, 250, .98)),
    var(--erp-surface);
}
body.erp-theme .filters label,
body.erp-theme .filters .field-label { color: #3b5566; font-size: 10.5px; font-weight: 800; }
body.erp-theme .filters .filter-actions {
  min-height: 38px;
  padding-top: 8px;
  border-top: 1px solid #dce3e7;
}
body.erp-theme .multi-filter-control > input { background: #fff; }
body.erp-theme .page-tabs,
body.erp-theme .history-tabs,
body.erp-theme .dashboard-detail-tabs {
  min-height: 39px;
  padding: 4px;
  background: #e9eef1;
}
body.erp-theme :is(.page-tabs, .history-tabs, .dashboard-detail-tabs) a.active {
  color: #fff;
  border-color: #1e637e;
  background: linear-gradient(180deg, #287896, #1c607c);
  box-shadow: 0 1px 2px rgba(15, 61, 81, .15);
}

/* Dense spreadsheets */
body.erp-theme .table-wrap {
  overflow: auto;
  border-color: var(--erp-border-strong);
  background: #fff;
  scrollbar-color: #96a9b4 #e9eef1;
  scrollbar-width: thin;
}
body.erp-theme table { color: #263e4e; font-size: 11.5px; font-variant-numeric: tabular-nums; }
body.erp-theme th,
body.erp-theme td { border-color: #dbe2e6; }
body.erp-theme table thead th,
body.erp-theme .warehouse-table thead th,
body.erp-theme .receipt-history-table thead th,
body.erp-theme .legacy-history-table thead th {
  height: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #29485a;
  border-bottom-color: #aebdc6;
  background: linear-gradient(180deg, #f7f9fa 0%, #e6ecef 100%) !important;
  box-shadow: inset 0 1px #fff;
  font-size: 10.5px;
  font-weight: 840;
  letter-spacing: -.01em;
}
body.erp-theme table thead tr.group-head th,
body.erp-theme table thead tr:first-child:not(:last-child) th { background: #dce7eb !important; }
body.erp-theme tbody tr { background: #fff; transition: background .1s ease; }
body.erp-theme tbody tr:nth-child(even) { background: #fafbfc; }
body.erp-theme tbody tr:hover { background: #edf5f7; }
body.erp-theme tbody tr:hover > td:first-child { box-shadow: inset 3px 0 #3a879c; }
body.erp-theme tbody tr:focus-within { background: #e7f2f5; }
/* Search results retain contrast when the shared focus/hover theme applies. */
body.erp-theme .manual-product-table tbody tr.active,
body.erp-theme .manual-product-table tbody tr.active > td,
body.erp-theme .picker-keyboard-active,
body.erp-theme .picker-keyboard-active > td {
  color: #153e52;
  background: #dceef7 !important;
}
/* Registration selection must survive shared zebra, hover and focus styles. */
body.erp-theme .registration-group-list .registration-group-row.active,
body.erp-theme .registration-group-list .registration-group-row.active > td {
  color: #173e52;
  background: #dcecf3;
}
body.erp-theme .registration-group-list .registration-group-row.active > td:first-child {
  box-shadow: inset 3px 0 #22658a;
}
body.erp-theme .registration-group-list .registration-group-row.active .registration-group-memo {
  color: #173e52;
  -webkit-text-fill-color: #173e52;
}
body.erp-theme .table-wrap:focus-within { border-color: #7fa2b2; box-shadow: 0 0 0 2px rgba(35, 112, 142, .08); }
body.erp-theme .table-wrap tbody :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 28px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.erp-theme .table-wrap tbody :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):hover {
  border-color: #b8c9d1;
  background: #fff;
}
body.erp-theme .table-wrap tbody :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  z-index: 2;
  border-color: #267493;
  background: #fff;
  box-shadow: inset 0 0 0 1px #267493, 0 0 0 2px rgba(38, 116, 147, .12);
}
body.erp-theme :is(.query-summary-footer td, .query-summary-footer th, table tfoot th, table tfoot td) {
  color: #174b4c;
  border-top-color: #78aaa5;
  background: #e1f0ed !important;
  font-weight: 820;
}
body.erp-theme .excel-export-button {
  color: #17634f;
  border-color: #8bb8ab;
  background: linear-gradient(180deg, #f6fcfa, #eaf6f2);
}

/* Metrics and operational status */
body.erp-theme :is(.operations-metrics article, .barcode-metrics article, .logistics-today-grid article, .metric, .development-metrics article) {
  position: relative;
  min-height: 88px;
  padding: 12px 13px;
  overflow: hidden;
  border-color: var(--erp-border);
  border-radius: var(--erp-radius);
  background: linear-gradient(145deg, #fff 0%, #fbfcfd 100%);
  box-shadow: var(--soft-shadow);
}
body.erp-theme :is(.operations-metrics article, .barcode-metrics article, .logistics-today-grid article, .metric, .development-metrics article)::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #6f9daf;
  content: "";
}
body.erp-theme :is(.operations-metrics, .barcode-metrics, .logistics-today-grid, .development-metrics) { gap: 8px; }
body.erp-theme :is(.operations-metrics, .barcode-metrics, .logistics-today-grid, .metric, .development-metrics) span {
  color: #667a87;
  font-size: 10px;
  font-weight: 740;
}
body.erp-theme :is(.operations-metrics article, .barcode-metrics article, .logistics-today-grid article, .metric, .development-metrics article) strong {
  color: #18394d;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -.035em;
}
body.erp-theme :is(.operations-metrics article, .barcode-metrics article, .logistics-today-grid article, .metric, .development-metrics article).metric-danger::before { background: var(--erp-danger) !important; }
body.erp-theme :is(.operations-metrics article, .barcode-metrics article, .logistics-today-grid article, .metric, .development-metrics article).metric-warning::before { background: #c38a2c !important; }
body.erp-theme :is(.operations-metrics article, .barcode-metrics article, .logistics-today-grid article, .metric, .development-metrics article).metric-success::before { background: var(--erp-success) !important; }
body.erp-theme .badge,
body.erp-theme .integration-state,
body.erp-theme .purchase-status {
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 820;
}
body.erp-theme .positive { color: var(--erp-success) !important; }
body.erp-theme .negative { color: var(--erp-danger) !important; }

/* Feedback and disclosure */
body.erp-theme .messages { margin-bottom: 9px; }
body.erp-theme .messages li {
  min-height: 38px;
  padding: 9px 38px 9px 12px;
  border: 1px solid #bad0db;
  border-left: 4px solid #3e86a5;
  border-radius: 6px;
  background: #eef6fa;
  box-shadow: 0 2px 6px rgba(19, 52, 69, .05);
}
body.erp-theme .messages .success { border-color: #b6d9cd; border-left-color: var(--erp-success); background: #edf8f4; }
body.erp-theme .messages .warning { border-color: #e2ce9e; border-left-color: #bd7c1a; background: #fff8e9; }
body.erp-theme .messages .error { border-color: #e1b9bf; border-left-color: var(--erp-danger); background: #fff1f3; }
body.erp-theme :is(.page-notice, .history-delete-guide, .reference-form-guide, .master-code-guide, .receipt-upload-guide, .receipt-preview-help, .barcode-source-note) {
  border-radius: var(--erp-radius);
  box-shadow: 0 1px 3px rgba(17, 44, 59, .04);
}
body.erp-theme details.compact-help,
body.erp-theme .dashboard-metrics-disclosure {
  border-color: var(--erp-border);
  border-radius: var(--erp-radius);
  box-shadow: 0 1px 2px rgba(17, 44, 59, .035);
}

/* Workflow and dashboard */
body.erp-theme .order-flow { border-color: var(--erp-border-strong); background: #fff; }
body.erp-theme .order-flow a {
  min-height: 43px;
  color: #526b79;
  border-color: var(--erp-border);
  background: #fff;
}
body.erp-theme .order-flow a:hover { color: #28566a; background: #eef5f6; }
body.erp-theme .order-flow a.active {
  color: #fff;
  background: linear-gradient(110deg, #1d607d, #1b7f82);
  box-shadow: inset 0 -3px rgba(255, 255, 255, .13);
}
body.erp-theme .order-flow a.active small { color: #d8eced; }
body.erp-theme .dashboard-command-center {
  border-color: #aebfc8;
  border-radius: 9px;
  background: #f7f9fa;
  box-shadow: 0 5px 18px rgba(22, 57, 75, .09);
}
body.erp-theme .dashboard-command-head {
  min-height: 49px;
  padding: 11px 15px;
  background: linear-gradient(112deg, #15384d 0%, #1c5267 62%, #237b7f 100%);
}
body.erp-theme .dashboard-task-card {
  border-color: #c8d4da;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(18, 51, 68, .045);
}
body.erp-theme .dashboard-task-card:hover,
body.erp-theme .dashboard-task-card:focus-visible { border-color: #5792a4; box-shadow: 0 7px 18px rgba(24, 65, 83, .13); }
body.erp-theme .dashboard-hero {
  border-color: #173e53;
  border-radius: 9px;
  background: linear-gradient(112deg, #15384d, #1d5065 67%, #25777c);
  box-shadow: 0 5px 18px rgba(19, 53, 70, .12);
}

/* Dialogs */
body.erp-theme :is(.product-picker-dialog, .multi-filter-dialog, .product-image-dialog, .collection-result-dialog, .master-code-dialog) {
  overflow: hidden;
  border: 1px solid #9fb2bd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 33, 46, .34);
}
body.erp-theme dialog::backdrop { background: rgba(10, 29, 42, .58); backdrop-filter: blur(2px); }
body.erp-theme :is(.product-picker-head, .multi-filter-head, .result-dialog-head, .master-code-dialog-head) {
  color: #fff;
  background: linear-gradient(105deg, #173d54, #226978);
}

/* Responsive finish */
@media (max-width: 1180px) {
  body.erp-theme .topbar { padding-right: 12px; padding-left: 12px; gap: 8px; }
  body.erp-theme .brand { min-width: 142px; }
  body.erp-theme button.nav-category,
  body.erp-theme a.nav-category-link { padding-right: 8px; padding-left: 8px; font-size: 10.5px; }
}
@media (max-width: 1000px) {
  body.erp-theme .topbar { min-height: 58px; padding: 8px 10px; }
  body.erp-theme .nav { height: auto; border-color: #3b596b; border-radius: 7px; }
  body.erp-theme.nav-open .nav { grid-template-columns: minmax(0, 1fr); }
  body.erp-theme .nav-submenu {
    min-width: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body.erp-theme .nav-submenu a { border-bottom: 0; }
  body.erp-theme button.nav-category,
  body.erp-theme a.nav-category-link { min-height: 40px; }
  body.erp-theme .work-tabs { top: 58px; padding-right: 10px; padding-left: 10px; }
  body.erp-theme .order-status-form .order-result-toolbar { top: 97px; }
  body.erp-theme main { padding: 11px 10px 20px; }
  body.erp-theme .erp-page > .page-head,
  body.erp-theme .operations-dashboard > .page-head { min-height: 60px; padding: 9px 11px 9px 15px; }
}
@media (max-width: 600px) {
  body.erp-theme { font-size: 12px; }
  body.erp-theme .topbar { min-height: 58px; }
  body.erp-theme .brand-copy strong { font-size: 15px; }
  body.erp-theme button.global-search-trigger { min-height: 34px; }
  body.erp-theme .work-tabs { top: 58px; }
  body.erp-theme main { padding: 8px 7px 18px; }
  body.erp-theme .erp-page > .page-head,
  body.erp-theme .operations-dashboard > .page-head {
    min-height: 54px;
    padding: 8px 9px 8px 13px;
    border-radius: 6px;
  }
  body.erp-theme .erp-page > .page-head h1,
  body.erp-theme .operations-dashboard > .page-head h1 { font-size: 17px; }
  body.erp-theme .button,
  body.erp-theme button { min-height: 34px; }
  body.erp-theme input,
  body.erp-theme select,
  body.erp-theme textarea { min-height: 33px; }
  body.erp-theme .filters { padding: 9px; }
  body.erp-theme :is(.panel-title, .dashboard-card-title, .registration-history-title, .mapping-section-head, .settlement-section-head) {
    min-height: 39px;
    padding: 8px 9px;
  }
  body.erp-theme :is(.operations-metrics article, .barcode-metrics article, .logistics-today-grid article, .metric, .development-metrics article) {
    min-height: 78px;
    padding: 10px;
  }
  body.erp-theme :is(.operations-metrics article, .barcode-metrics article, .logistics-today-grid article, .metric, .development-metrics article) strong { font-size: 19px; }
  body.erp-theme table { font-size: 11px; }
  body.erp-theme table thead th { height: 29px; }
}

/* Claim worklist drawer ---------------------------------------------------- */
body.erp-theme .claim-attention-metrics .claim-metric-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  justify-items: start;
  gap: 2px;
  padding: 13px 38px 12px 13px;
  overflow: hidden;
  color: #274455;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  background: linear-gradient(145deg, #fff 0%, #fbfcfd 100%);
  box-shadow: var(--soft-shadow);
  text-align: left;
}
body.erp-theme .claim-attention-metrics .claim-metric-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #6f9daf;
  content: "";
}
body.erp-theme .claim-attention-metrics .claim-metric-card::after {
  position: absolute;
  right: 13px;
  bottom: 13px;
  color: #73909f;
  content: "›";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform .14s ease;
}
body.erp-theme .claim-attention-metrics .claim-metric-card.is-danger::before { background: #bd4b58; }
body.erp-theme .claim-attention-metrics .claim-metric-card.is-warning::before { background: #c48a2b; }
body.erp-theme .claim-attention-metrics .claim-metric-card.is-progress::before { background: #258b82; }
body.erp-theme .claim-attention-metrics .claim-metric-card:hover,
body.erp-theme .claim-attention-metrics .claim-metric-card:focus-visible {
  border-color: #7ca2b1;
  background: #f7fbfc;
  box-shadow: 0 7px 18px rgba(22, 62, 82, .11);
  transform: translateY(-1px);
}
body.erp-theme .claim-attention-metrics .claim-metric-card:hover::after { transform: translateX(3px); }
body.erp-theme .claim-attention-metrics .claim-metric-card > span {
  color: #637884;
  font-size: 10px;
  font-weight: 780;
}
body.erp-theme .claim-attention-metrics .claim-metric-card > strong {
  display: block;
  margin: 2px 0;
  color: #17384b;
  font-size: 22px;
  font-weight: 840;
  letter-spacing: -.035em;
}
body.erp-theme .claim-attention-metrics .claim-metric-card > small { color: #778791; font-size: 9.5px; }
body.erp-theme .claim-attention-metrics .claim-metric-card > em {
  position: absolute;
  top: 12px;
  right: 11px;
  color: #477486;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
}
body.erp-theme .channel-attention-card footer { gap: 5px; }
body.erp-theme .channel-attention-card footer > span { margin-right: auto; }

body.erp-theme dialog.claim-detail-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(680px, calc(100vw - 36px));
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--erp-text);
  border: 0;
  border-left: 1px solid #9eb2bd;
  border-radius: 12px 0 0 12px;
  background: #f2f5f7;
  box-shadow: -18px 0 52px rgba(10, 31, 44, .25);
}
body.erp-theme dialog.claim-detail-drawer[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  animation: claim-drawer-enter .2s cubic-bezier(.2, .8, .2, 1);
}
body.erp-theme dialog.claim-detail-drawer::backdrop {
  background: rgba(9, 27, 39, .48);
  backdrop-filter: blur(1.5px);
}
@keyframes claim-drawer-enter {
  from { opacity: .75; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}
body.erp-theme .claim-drawer-head {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(110deg, #15384d 0%, #1b5267 66%, #207878 100%);
}
body.erp-theme .claim-drawer-head > div { min-width: 0; }
body.erp-theme .claim-drawer-head span {
  display: block;
  color: #8fd8d1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}
body.erp-theme .claim-drawer-head h2 { margin: 3px 0 0; color: #fff; font-size: 20px; font-weight: 840; letter-spacing: -.03em; }
body.erp-theme .claim-drawer-head p { margin: 4px 0 0; color: #c7d9e1; font-size: 10px; }
body.erp-theme .claim-drawer-head p strong { color: #9ce3d9; font-size: 12px; }
body.erp-theme button.claim-drawer-close {
  display: grid;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  color: #e4eef2;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  font-size: 24px;
  font-weight: 350;
}
body.erp-theme button.claim-drawer-close:hover { color: #fff; border-color: rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .15); }
body.erp-theme .claim-drawer-tools {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #cbd6dc;
  background: #fff;
  box-shadow: 0 2px 6px rgba(17, 45, 60, .04);
}
body.erp-theme .claim-drawer-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.erp-theme .claim-drawer-tabs::-webkit-scrollbar { display: none; }
body.erp-theme .claim-drawer-tabs button {
  min-height: 29px;
  padding: 4px 8px;
  color: #536b79;
  border-color: #c1cdd4;
  background: #f7f9fa;
  font-size: 9.5px;
  white-space: nowrap;
}
body.erp-theme .claim-drawer-tabs button b { margin-left: 2px; color: #23485c; }
body.erp-theme .claim-drawer-tabs button.is-active {
  color: #fff;
  border-color: #1c667e;
  background: linear-gradient(180deg, #287d92, #1d667e);
}
body.erp-theme .claim-drawer-tabs button.is-active b { color: #bcece6; }
body.erp-theme .claim-drawer-search { display: block; }
body.erp-theme .claim-drawer-search input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px 6px 34px;
  border-color: #aebfc8;
  background:
    linear-gradient(90deg, transparent 32px, #dce4e8 32px, #dce4e8 33px, transparent 33px),
    #fff;
}
body.erp-theme .claim-drawer-search { position: relative; }
body.erp-theme .claim-drawer-search::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 10px;
  height: 10px;
  border: 1.5px solid #667f8d;
  border-radius: 50%;
  content: "";
  transform: translateY(-62%);
}
body.erp-theme .claim-drawer-search::after {
  position: absolute;
  z-index: 1;
  top: calc(50% + 4px);
  left: 21px;
  width: 5px;
  height: 1.5px;
  background: #667f8d;
  content: "";
  transform: rotate(45deg);
}
body.erp-theme .claim-drawer-body {
  min-height: 0;
  padding: 10px 12px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.erp-theme .claim-detail-row {
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid #cbd6dc;
  border-left: 4px solid #6f9aaa;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(19, 48, 64, .045);
}
body.erp-theme .claim-detail-row[data-claim-scope="needs_action"],
body.erp-theme .claim-detail-row[data-claim-scope="cancel_action"] { border-left-color: #bd4b58; }
body.erp-theme .claim-detail-row[data-claim-scope="pickup_review"] { border-left-color: #c08a30; }
body.erp-theme .claim-detail-row[data-claim-scope="auto_collecting"] { border-left-color: #298a7f; }
body.erp-theme .claim-detail-row[hidden] { display: none; }
body.erp-theme .claim-detail-row-head,
body.erp-theme .claim-detail-row-head > div,
body.erp-theme .claim-detail-customer,
body.erp-theme .claim-detail-row footer { display: flex; align-items: center; }
body.erp-theme .claim-detail-row-head { justify-content: space-between; gap: 8px; }
body.erp-theme .claim-detail-row-head > div { gap: 5px; min-width: 0; }
body.erp-theme .claim-detail-row-head time { color: #778791; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
body.erp-theme .claim-type-badge,
body.erp-theme .claim-work-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 8.5px;
  font-weight: 850;
  white-space: nowrap;
}
body.erp-theme .claim-type-badge { color: #28596e; background: #e7f1f5; }
body.erp-theme .claim-type-badge.type-cancel { color: #963541; background: #fae9ec; }
body.erp-theme .claim-type-badge.type-exchange { color: #74531a; background: #f9f0db; }
body.erp-theme .claim-work-badge { color: #4c626f; background: #eef2f4; }
body.erp-theme .claim-work-badge.scope-needs_action,
body.erp-theme .claim-work-badge.scope-cancel_action { color: #963541; background: #fae9ec; }
body.erp-theme .claim-work-badge.scope-pickup_review { color: #855a10; background: #fff2d9; }
body.erp-theme .claim-work-badge.scope-auto_collecting { color: #17695a; background: #e4f4ef; }
body.erp-theme .claim-detail-customer { gap: 8px; margin-top: 9px; }
body.erp-theme .claim-detail-customer strong { color: #17384b; font-size: 14px; font-weight: 830; }
body.erp-theme .claim-detail-customer span {
  min-width: 0;
  overflow: hidden;
  color: #657986;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.erp-theme .claim-detail-product { display: flex; gap: 6px; margin: 5px 0 0; color: #2d4a5b; }
body.erp-theme .claim-detail-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .claim-detail-product span { color: #6e808b; white-space: nowrap; }
body.erp-theme .claim-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 9px 0 0;
  overflow: hidden;
  border: 1px solid #d8e0e4;
  border-radius: 5px;
  background: #dfe6e9;
}
body.erp-theme .claim-detail-meta > div { min-width: 0; padding: 5px 7px; background: #f6f8f9; }
body.erp-theme .claim-detail-meta dt,
body.erp-theme .claim-detail-meta dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.erp-theme .claim-detail-meta dt { color: #7a8a94; font-size: 8px; font-weight: 750; }
body.erp-theme .claim-detail-meta dd { margin-top: 1px; color: #2d4a5b; font-size: 9.5px; font-weight: 720; }
body.erp-theme .claim-detail-reason {
  margin: 8px 0 0;
  padding: 7px 8px;
  color: #536a77;
  border-radius: 5px;
  background: #f3f6f7;
  font-size: 9.5px;
  line-height: 1.5;
}
body.erp-theme .claim-detail-reason b { color: #2d5367; }
body.erp-theme .claim-detail-row footer {
  justify-content: flex-end;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e0e6e9;
}
body.erp-theme .claim-drawer-empty,
body.erp-theme .claim-drawer-no-data {
  margin: 30px 0;
  padding: 25px 12px;
  color: #748691;
  border: 1px dashed #b9c8d0;
  border-radius: 7px;
  background: #fff;
  text-align: center;
}

@media (max-width: 600px) {
  body.erp-theme dialog.claim-detail-drawer {
    width: 100vw;
    border-radius: 0;
  }
  body.erp-theme .claim-drawer-head { min-height: 82px; padding: 12px 13px; }
  body.erp-theme .claim-drawer-head h2 { font-size: 18px; }
  body.erp-theme .claim-drawer-tools { padding: 8px; }
  body.erp-theme .claim-drawer-body { padding: 8px 8px 15px; }
  body.erp-theme .claim-detail-row { padding: 10px; }
  body.erp-theme .claim-detail-meta { grid-template-columns: 1fr; }
  body.erp-theme .claim-attention-metrics .claim-metric-card { min-height: 82px; padding: 10px 34px 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  body.erp-theme dialog.claim-detail-drawer[open] { animation: none; }
}

/* Order collection result: show only status, previously collected, and new orders. */
body.erp-theme .collection-result-card.success { border-left-color: #23836f; }
body.erp-theme .collection-result-card.failed { border-left-color: #b74453; }
body.erp-theme .collection-result-card .result-state {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 8px;
  color: #17695a;
  border: 1px solid #b9ded4;
  border-radius: 12px;
  background: #e7f5f1;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
body.erp-theme .collection-result-card.failed .result-state {
  color: #9f3341;
  border-color: #ecc2c8;
  background: #fae9ec;
}
body.erp-theme .collection-result-simple-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: #d7e1e5;
  background: #f7f9fa;
}
body.erp-theme .collection-result-overview {
  border-color: #b9ccd5;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 59, 77, .06);
}
body.erp-theme .collection-result-simple-metrics > div {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  text-align: left;
}
body.erp-theme .collection-result-simple-metrics span {
  color: #566d7a;
  font-size: 10px;
  font-weight: 800;
}
body.erp-theme .collection-result-simple-metrics strong {
  color: #173f53;
  font-size: 19px;
  font-weight: 850;
}
body.erp-theme .collection-result-simple-metrics strong small {
  margin-left: 2px;
  color: #566d7a;
  font-size: 10px;
  font-weight: 750;
}
body.erp-theme .collection-result-channel-counts {
  display: flex;
  overflow: hidden;
  border: 1px solid #dce4e8;
  border-radius: 5px;
  background: #f7f9fa;
}
body.erp-theme .collection-result-channel-counts span {
  display: flex;
  min-width: 0;
  flex: 1 1 50%;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  color: #687b86;
  font-size: 9.5px;
  font-weight: 750;
}
body.erp-theme .collection-result-channel-counts span + span { border-left: 1px solid #dce4e8; }
body.erp-theme .collection-result-channel-counts strong {
  color: #244b5f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}
.order-status.status-external_confirmed {
  color: #496176;
  background: #e9eff4;
  border: 1px solid #d5e0e8;
}
