/*!***************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/admin.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************/
:root {
  /* erp.appnow.top 调试阶段由 Yimi 常驻开发服务热更新此样式。 */
  --ink: #171b18;
  --muted: #6d756f;
  --border: #dce1de;
  --canvas: #f7f8f7;
  --panel: #ffffff;
  --green: #12a254;
  --green-dark: #0b8d47;
  --green-soft: #e9f7ef;
  --danger: #bd302a;
  --warning: #b87513;
  --sidebar: #101613;
  --nav-width: 108px;
  --top-height: 68px;
  --shadow:
    0 1px 2px rgba(16, 22, 19, 0.04), 0 5px 14px rgba(16, 22, 19, 0.035);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
}
body,
button,
input,
select,
textarea {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.erp-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template: minmax(0, 1fr) / var(--nav-width) minmax(0, 1fr);
  overflow: hidden;
}
.erp-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 0 22px;
  color: #fff;
  background: var(--sidebar);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}
.brand-name {
  font-size: 16px;
  font-weight: 750;
}
.top-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 26px;
}
.shop-context,
.account-trigger {
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 42px;
  font-weight: 650;
}
.shop-context span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.today {
  margin-left: 22px;
  padding: 9px 13px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cdd2cf;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.top-spacer {
  flex: 1 1;
}
.font-size-toggle {
  height: 34px;
  margin-right: 16px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #e7ebe8;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
}
.font-size-toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
}
.font-size-toggle svg {
  font-size: 17px;
}
.font-size-toggle strong {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: var(--sidebar);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sidebar);
  background: #fff;
}
.account-menu {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: 190px;
  padding: 6px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  z-index: 100;
}
.dropdown-menu button {
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
}
.dropdown-menu button:hover {
  background: #f2f5f3;
}

.erp-sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: visible;
  background: #fff;
  border-right: 1px solid var(--border);
}
.side-nav {
  flex: 1 1;
  overflow-y: auto;
  padding-top: 26px;
}
.nav-item {
  position: relative;
  width: 100%;
  height: 92px;
  border: 0;
  background: transparent;
  color: #737c76;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.nav-item svg {
  font-size: 22px;
  color: #7c8781;
}
.nav-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}
.nav-item:hover {
  background: #f4f8f5;
  color: var(--ink);
}
.nav-item.active {
  color: var(--ink);
  background: #eaf6ef;
  font-weight: 700;
}
.nav-item.active::before {
  background: var(--green);
}
.nav-item.active svg {
  color: var(--green);
}
.nav-settings {
  flex: 0 0 auto;
}
.sidebar-bottom {
  position: relative;
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: #fff;
}
.sidebar-bottom .nav-item {
  height: 64px;
  gap: 5px;
  font-size: 11px;
}
.sidebar-account {
  width: 100%;
}
.sidebar-user > span {
  display: block;
  width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-account-menu {
  top: auto;
  right: auto;
  bottom: 8px;
  left: calc(100% + 8px);
}

.erp-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.admin-page-slot {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.admin-page-slot[hidden] {
  display: none;
}
.page {
  width: 100%;
  min-height: 100%;
  padding: 27px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page.fill {
  height: 100%;
  overflow: hidden;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.page-header h1 {
  margin: 0 0 5px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}
.page-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.page-actions,
.toolbar,
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
}
.settings-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.settings-title {
  display: flex;
  align-items: center;
  margin-right: 24px;
  font-size: 16px;
  font-weight: 750;
}
.settings-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}
.settings-tabs button.active {
  color: var(--green);
  font-weight: 700;
}
.settings-tabs button.active::after {
  background: var(--green);
}
.settings-body {
  min-height: 0;
  overflow: auto;
}

.panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.panel.fill {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-header {
  min-height: 62px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}
.panel-header h2 {
  margin: 0;
  font-size: 19px;
}
.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
}
.panel-body {
  padding: 20px;
}
.panel-body.flush {
  padding: 0;
}
.panel.fill > .panel-body,
.panel:has(.data-list) > .panel-body {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.panel:has(.data-list) > .panel-body {
  padding: 0;
}
.page > .panel:has(.data-list) {
  width: 100%;
  min-height: 360px;
  flex: 1 0 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 650;
}
.button.primary {
  color: #fff;
  background: var(--green);
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--border);
}
.button.secondary:hover {
  border-color: #b9c2bc;
  background: #fafbfa;
}
.button.ghost {
  min-height: 34px;
  color: var(--green);
  background: transparent;
  padding: 0 8px;
}
.button.danger {
  color: #fff;
  background: var(--danger);
}
.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  display: grid;
  place-items: center;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #333a36;
  font-size: 12px;
  font-weight: 650;
}
.shop-recognized,
.shop-selection-hint {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}
.shop-recognized {
  color: var(--green-dark);
}
.shop-selection-hint {
  color: var(--muted);
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  height: 48px;
  border: 1px solid #d6dcda;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  padding: 0 12px;
  outline: none;
}
textarea {
  height: auto;
  min-height: 82px;
  resize: vertical;
  padding-top: 11px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(18, 162, 84, 0.1);
}
.compact-input {
  height: 40px;
}
.search-box {
  position: relative;
  width: 365px;
}
.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #858d88;
}
.search-box input {
  height: 48px;
  padding-left: 39px;
  padding-right: 42px;
}
.search-box-clear {
  position: absolute;
  z-index: 1;
  right: 8px;
  top: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b847f;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
}
.search-box-clear:hover,
.search-box-clear:focus-visible {
  background: #eef2ef;
  color: var(--ink);
  outline: none;
}
.label-product-picker {
  position: relative;
}
.label-product-search-box {
  width: 100%;
}
.label-product-search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 36, 27, 0.18);
}
.label-product-search-results button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.label-product-search-results button:hover,
.label-product-search-results button:focus-visible {
  background: #eef6f1;
  outline: none;
}
.label-product-search-results img,
.label-product-search-image {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #e7ece9;
  object-fit: cover;
}
.label-product-search-results strong,
.label-product-search-results small {
  display: block;
  overflow-wrap: anywhere;
}
.label-product-search-results strong {
  font-size: 13px;
}
.label-product-search-results small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.label-product-search-state {
  padding: 14px 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.label-product-search-state.error {
  color: var(--danger);
}
.label-printing-page > .panel.fill {
  flex: 1 1;
}
.label-printing-controls {
  flex: 0 0 auto;
  padding: 14px 20px 0;
}
.label-print-product-toolbar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns:
    minmax(280px, 1fr)
    minmax(190px, 250px)
    minmax(190px, 250px)
    auto;
  align-items: end;
  grid-gap: 12px;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.label-print-product-toolbar .search-box {
  width: 100%;
}
.label-print-product-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.label-print-selection {
  color: var(--muted);
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}
.label-print-product-submit .button {
  white-space: nowrap;
}
.label-print-template-note {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
}
.label-print-inline-error {
  flex: 0 0 auto;
  padding: 8px 20px;
  border-bottom: 1px solid #f2c8c5;
  color: var(--danger);
  background: #fff7f6;
  font-size: 12px;
}
.label-print-product-table {
  display: flex;
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
}
.label-print-product-table > .data-list {
  min-height: 260px;
}
.label-print-product-name {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.label-print-pickup-display {
  display: block;
  white-space: pre-line;
  line-height: 1.55;
}
.label-print-quantity-input {
  width: 88px;
  min-width: 88px;
  height: 36px;
  padding: 0 9px;
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.label-print-row-action.button {
  min-height: 34px;
  padding: 0 11px;
  white-space: nowrap;
}
.label-print-shelf-form {
  padding: 18px 20px 20px;
}
.label-print-shelf-submit {
  align-self: end;
}
@media (max-width: 1100px) {
  .label-print-product-toolbar {
    grid-template-columns: minmax(250px, 1fr) minmax(180px, 1fr);
  }
  .label-print-product-submit {
    justify-content: flex-start;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.modal.pickup-profile-modal,
.pickup-profile-modal .modal-body {
  overflow: visible;
}
.pickup-profile-row {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.2fr)
    minmax(130px, 0.75fr)
    minmax(150px, 0.9fr)
    minmax(180px, 1fr)
    minmax(140px, 0.8fr);
  grid-gap: 12px;
  gap: 12px;
  min-width: 860px;
  align-items: end;
}
.pickup-profile-row .field,
.pickup-profile-row input,
.pickup-profile-row select {
  min-width: 0;
  width: 100%;
}
.pickup-identity-conflict {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #f2c66d;
  border-radius: 10px;
  background: #fff9eb;
}
.pickup-identity-conflict-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #7a4b00;
}
.pickup-identity-conflict-heading > svg {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 20px;
}
.pickup-identity-conflict-heading > div {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}
.pickup-identity-conflict-heading span,
.pickup-identity-conflict-product span,
.pickup-identity-conflict-groups small {
  color: #745e38;
  font-size: 12px;
}
.pickup-identity-current-color {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #efd59e;
  border-radius: 8px;
  background: #fffdf8;
}
.pickup-identity-current-color > span {
  color: #745e38;
  font-size: 11px;
}
.pickup-identity-current-color > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pickup-identity-current-color > b {
  padding: 4px 9px;
  border-radius: 999px;
  color: #7a4b00;
  background: #f8e7bc;
  white-space: nowrap;
}
.pickup-identity-candidate-products {
  display: grid;
  grid-gap: 0;
  gap: 0;
  max-height: 310px;
  overflow: auto;
  border: 1px solid #ead9b5;
  border-radius: 8px;
  background: #fff;
}
.pickup-identity-candidate-heading,
.pickup-identity-candidate-product {
  display: grid;
  grid-template-columns: 48px minmax(220px, 1fr) minmax(180px, 0.7fr);
  align-items: start;
  grid-gap: 10px;
  gap: 10px;
}
.pickup-identity-candidate-heading {
  padding: 8px 11px;
  border-bottom: 1px solid #e7e7e4;
  color: #777b77;
  font-size: 11px;
  background: #fafbf9;
}
.pickup-identity-candidate-product {
  padding: 9px 10px;
  border-bottom: 1px solid #ecece9;
}
.pickup-identity-candidate-product:last-child {
  border-bottom: 0;
}
.pickup-identity-candidate-product .image-cell,
.pickup-identity-candidate-product .thumb {
  width: 40px;
  height: 40px;
}
.pickup-identity-candidate-name {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 0;
}
.pickup-identity-candidate-name > strong {
  white-space: normal;
  overflow-wrap: break-word;
}
.pickup-identity-candidate-name > small {
  color: #777b77;
  font-size: 11px;
}
.pickup-identity-color-options {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}
.pickup-identity-color-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #dedfdc;
  border-radius: 6px;
  color: #584a32;
  cursor: pointer;
}
.pickup-identity-color-options label:hover {
  background: #f5faf6;
}
.pickup-identity-color-options label.selected {
  border-color: var(--primary);
  background: #f1faf3;
  box-shadow: inset 3px 0 var(--primary);
}
.pickup-identity-color-options input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}
.pickup-identity-color-options span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}
.pickup-identity-choice-help,
.pickup-identity-selected-color {
  padding: 8px 10px;
  border-radius: 7px;
  color: #745e38;
  background: #fffdf8;
  font-size: 12px;
}
.pickup-identity-conflict-product {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.pickup-identity-conflict-product strong {
  overflow-wrap: anywhere;
}
.pickup-identity-conflict-groups {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}
.pickup-identity-conflict-groups label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #ead9b5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.pickup-identity-conflict-groups input {
  width: auto;
}
.pickup-identity-conflict-specs {
  display: grid;
  border: 1px solid #ead9b5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.pickup-identity-conflict-specs > div {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1fr) 110px 110px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #f0e6d3;
  font-size: 12px;
}
.pickup-identity-conflict-specs > div:first-child {
  border-top: 0;
}
.pickup-identity-conflict-specs span:nth-child(2) {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.pickup-identity-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.pickup-identity-conflict p {
  margin: 0;
  color: #745e38;
  font-size: 12px;
}
.pickup-identity-conflict p.danger {
  color: var(--danger);
  text-align: right;
}
.currency-input-control {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.currency-input-control > span {
  position: static;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  pointer-events: none;
}
.currency-input-control > input {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  padding-left: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.pickup-floor-combobox {
  position: relative;
  min-width: 0;
}
.pickup-floor-history {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(16, 22, 19, 0.15);
}
.pickup-floor-history button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.pickup-floor-history button:hover,
.pickup-floor-history button[aria-selected="true"] {
  color: var(--green-dark);
  background: var(--green-soft);
}
.pickup-floor-history-empty {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.task-center-tabs {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--border);
}
.todo-product-import-toolbar {
  flex: 0 0 auto;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.todo-product-import-toolbar .search-box {
  width: min(520px, 100%);
}
.todo-product-import-search {
  margin: 0;
  flex: 0 1 620px;
  min-width: 0;
  flex-wrap: nowrap;
}
.todo-product-import-search .search-box {
  flex: 1 1 520px;
  min-width: 180px;
}
.todo-product-import-search .button,
.todo-product-import-copy .button {
  flex-shrink: 0;
}
.todo-product-import-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}
.todo-product-import-ids {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.todo-product-import-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
}
.todo-product-import-specs > span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.todo-product-import-specs small {
  color: var(--muted);
  font-size: 11px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.task-detail-grid.relabel-task-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.task-detail-grid > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f8faf9;
}
.task-detail-grid span,
.task-detail-grid strong {
  display: block;
}
.task-detail-grid span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}
.task-detail-grid strong {
  overflow-wrap: anywhere;
}
.task-confirm-box {
  padding: 12px 14px;
  border: 1px solid #e3c982;
  border-radius: 7px;
  color: #755918;
  background: #fff9e9;
  line-height: 1.55;
}
.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}
.span-6 {
  grid-column: span 6;
}
.span-9 {
  grid-column: span 9;
}
.span-12 {
  grid-column: 1 / -1;
}

.metric-strip {
  min-height: 78px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.stocking-summary-bar {
  min-height: 48px;
  padding: 0;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.stocking-workspace-toolbar {
  min-height: 64px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
}
.stocking-workspace-list {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stocking-summary-bar > * {
  flex-shrink: 0;
}
.stocking-summary-bar > .search-box {
  width: 300px;
  flex-basis: 300px;
}
.stocking-business-tabs {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f5f7f5;
}
.stocking-business-tabs button {
  min-width: 58px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.stocking-business-tabs button.active {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 50, 34, 0.12);
}
.stocking-business-kind {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.stocking-business-kind.pickup {
  color: #166742;
  background: #e9f5ee;
}
.stocking-business-kind.return {
  color: #a8481b;
  background: #fff0e4;
}
.supplier-return-target,
.supplier-return-feedback-summary,
.supplier-return-order-ref,
.supplier-return-selected-product {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.supplier-return-target small,
.supplier-return-order-ref small,
.supplier-return-selected-product small,
.supplier-return-candidates small {
  color: var(--muted);
  font-size: 11px;
}
.supplier-return-feedback-summary {
  align-items: flex-start;
}
.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.table-actions button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.table-actions button:hover:not(:disabled) {
  color: var(--green-dark);
  background: var(--green-soft);
}
.table-actions button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.supplier-return-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
}
.supplier-return-search-row .search-box {
  width: 100%;
}
.modal.supplier-return-create-modal {
  width: 85vw;
  height: 85vh;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.supplier-return-create-modal > .modal-header,
.supplier-return-create-modal > .modal-actions {
  flex: 0 0 auto;
}
.supplier-return-create-modal > .modal-body {
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 16px;
}
.supplier-return-create-modal > .modal-actions .button.primary {
  min-width: 180px;
}
.supplier-return-dialog-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #a7dfbd;
  border-radius: 8px;
  color: #087a3d;
  background: #effaf3;
  font-size: 13px;
  line-height: 1.4;
}
.supplier-return-dialog-notice svg {
  flex: 0 0 auto;
  font-size: 18px;
}
.supplier-return-dialog-workspace {
  flex: 1 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}
.supplier-return-dialog-workspace.editing {
  grid-template-columns: minmax(420px, 720px);
  justify-content: center;
  border: 0;
}
.supplier-return-picker-pane,
.supplier-return-detail-pane {
  min-width: 0;
  min-height: 0;
}
.supplier-return-picker-pane {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.supplier-return-detail-pane {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  border-left: 1px solid var(--border);
  background: #fafcfb;
}
.supplier-return-dialog-workspace.editing .supplier-return-detail-pane {
  border: 1px solid var(--border);
  border-radius: 9px;
}
.supplier-return-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.supplier-return-step-title > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
}
.supplier-return-step-title > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.supplier-return-step-title strong {
  font-size: 15px;
}
.supplier-return-step-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.supplier-return-step-title.compact {
  padding-top: 2px;
}
.supplier-return-step-title.compact > span {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}
.supplier-return-candidate-area {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.supplier-return-result-count {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: #fafbfa;
  font-size: 11px;
}
.supplier-return-candidate-state {
  flex: 1 1;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.supplier-return-candidates {
  flex: 1 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.supplier-return-candidate-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
}
.supplier-return-candidate-header {
  position: -webkit-sticky;
  position: sticky;
  z-index: 2;
  top: 0;
  color: var(--muted);
  background: #f7f9f7;
  font-size: 12px;
  font-weight: 800;
}
.supplier-return-candidate-header th {
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  background: #f7f9f7;
  text-align: left;
}
.supplier-return-candidate-header th:nth-child(1) {
  width: 34%;
}
.supplier-return-candidate-header th:nth-child(2) {
  width: 22%;
}
.supplier-return-candidate-header th:nth-child(3) {
  width: 10%;
}
.supplier-return-candidate-header th:nth-child(4) {
  width: 10%;
}
.supplier-return-candidate-header th:nth-child(5) {
  width: 24%;
}
.supplier-return-candidate-header th:nth-child(4),
.supplier-return-candidate-stock {
  text-align: right;
}
.supplier-return-candidate-header th:last-child {
  text-align: center;
}
.supplier-return-candidate-table tbody tr {
  min-height: 58px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.supplier-return-candidate-table td {
  height: 58px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.supplier-return-candidate-product-cell,
.supplier-return-candidate-color-cell {
  border-right: 1px solid var(--border);
  cursor: text;
}
.supplier-return-candidate-product {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
}
.supplier-return-candidate-product b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.supplier-return-candidate-table tbody tr:last-child td {
  border-bottom: 0;
}
.supplier-return-candidate-table tbody tr:hover td {
  background: var(--green-soft);
}
.supplier-return-candidate-table tbody tr.selected td {
  background: #e8f5ed;
}
.supplier-return-candidate-action {
  text-align: center;
}
.supplier-return-candidate-action > button {
  min-width: 70px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid #b9cfc0;
  border-radius: 6px;
  color: var(--green-dark);
  background: #fff;
  cursor: pointer;
}
.supplier-return-inline-quantity {
  display: grid;
  grid-template-columns: 27px minmax(44px, 1fr) 27px 27px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #9fc8ad;
  border-radius: 6px;
  background: #fff;
}
.supplier-return-inline-quantity button,
.supplier-return-inline-quantity input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  border-right: 1px solid #d8e4dc;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  text-align: center;
}
.supplier-return-inline-quantity button {
  color: var(--green-dark);
  cursor: pointer;
}
.supplier-return-inline-quantity button:disabled {
  color: #aab4ae;
  cursor: default;
}
.supplier-return-inline-quantity button.remove {
  border-right: 0;
  color: #9f331f;
  font-size: 17px;
}
.supplier-return-selected-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 12px;
  border: 1px solid #bcd9c4;
  border-radius: 8px;
  background: #fff;
}
.supplier-return-selected-card .thumb {
  width: 52px;
  height: 52px;
}
.supplier-return-selected-card > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.supplier-return-selected-card small,
.supplier-return-selected-card span {
  color: var(--muted);
  font-size: 11px;
}
.supplier-return-selected-card strong {
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.supplier-return-batch-summary {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.supplier-return-batch-count {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}
.supplier-return-batch-count strong {
  color: var(--green-dark);
  font-size: 15px;
}
.supplier-return-batch-list {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}
.supplier-return-batch-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  border: 1px solid #d5dfd8;
  border-radius: 8px;
  background: #fff;
}
.supplier-return-batch-item-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  grid-gap: 9px;
  gap: 9px;
}
.supplier-return-batch-item-heading .thumb {
  width: 40px;
  height: 40px;
}
.supplier-return-batch-item-heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.supplier-return-batch-item-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.supplier-return-batch-item-heading span {
  color: var(--muted);
  font-size: 11px;
}
.supplier-return-batch-item-heading button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  color: #9f331f;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.supplier-return-batch-item > label {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.supplier-return-batch-item select {
  min-width: 0;
  height: 34px;
  padding: 0 28px 0 9px;
}
.supplier-return-batch-error {
  color: #a33420;
}
.supplier-return-batch-submit-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.supplier-return-batch-submit-hint > span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
}
.supplier-return-batch-submit-hint > span.ready {
  color: var(--green-dark);
}
.supplier-return-batch-submit-hint > span.pending {
  color: #a35c15;
}
.supplier-return-profile-warning {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #efc1b0;
  border-radius: 7px;
  color: #8d3519;
  background: #fff6f1;
  font-size: 12px;
}
.supplier-return-profile-warning button {
  padding: 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}
.supplier-return-quantity-control {
  display: grid;
  grid-template-columns: 46px minmax(90px, 1fr) 46px;
  overflow: hidden;
  border: 1px solid #d6dcda;
  border-radius: 7px;
  background: #fff;
}
.supplier-return-quantity-control button,
.supplier-return-quantity-control input {
  height: 48px;
  border: 0;
  border-radius: 0;
}
.supplier-return-quantity-control button {
  color: var(--green-dark);
  background: #f3f7f4;
  font-size: 21px;
  cursor: pointer;
}
.supplier-return-quantity-control button:disabled {
  color: #aeb6b1;
  cursor: not-allowed;
}
.supplier-return-quantity-control input {
  border-right: 1px solid #d6dcda;
  border-left: 1px solid #d6dcda;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}
.supplier-return-quantity-control input:focus {
  box-shadow: inset 0 0 0 2px rgba(18, 162, 84, 0.18);
}
.supplier-return-detail-pane .field > small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}
.supplier-return-edit-lock {
  margin: 0;
  padding: 10px 12px;
  border-radius: 7px;
  color: #72521a;
  background: #fff6df;
  font-size: 12px;
}
.supplier-return-selection-empty {
  flex: 1 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.supplier-return-selection-empty > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #aab5ae;
  font-size: 17px;
  font-weight: 800;
}
.supplier-return-selection-empty strong {
  color: var(--ink);
  font-size: 16px;
}
.supplier-return-selection-empty p {
  max-width: 260px;
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 980px) {
  .modal.supplier-return-create-modal {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
  }
  .supplier-return-create-modal > .modal-body {
    overflow: auto;
  }
  .supplier-return-dialog-workspace {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .supplier-return-picker-pane {
    min-height: 520px;
  }
  .supplier-return-detail-pane {
    min-height: 420px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}
.metric-strip .batch-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 750;
}
.metric {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.metric label {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  font-size: 21px;
}
.metric-spacer {
  flex: 1 1;
}
.stocking-report-switch {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.stocking-report-switch > span {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: #cfd5d1;
  transition: background 140ms ease;
}
.stocking-report-switch > span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 30, 24, 0.2);
  transition: transform 140ms ease;
}
.stocking-report-switch.active {
  color: var(--green-dark);
  border-color: #9ac9a9;
  background: var(--green-soft);
}
.stocking-report-switch.active > span {
  background: var(--green);
}
.stocking-report-switch.active > span::after {
  transform: translateX(13px);
}
.stocking-report-switch:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.stocking-report-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.completed-print-selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}
.completed-product-select-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.completed-product-select-cell > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.completed-product-select-cell .product-list-name {
  min-width: 0;
}
.modal.completed-stocking-modal {
  width: min(1600px, 100%);
  height: 88vh;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.completed-stocking-modal .modal-header,
.completed-stocking-modal .modal-actions {
  flex: 0 0 auto;
}
.completed-stocking-modal .modal-body {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.completed-detail-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  color: var(--muted);
}
.completed-detail-summary strong {
  margin-left: 6px;
  font-size: 17px;
  color: var(--ink);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.completed-detail-summary .toolbar { margin-left: auto; }
.completed-print-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  grid-gap: 8px 14px;
  gap: 8px 14px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f7f9f8;
}
.completed-print-toolbar .field { min-width: 0; margin: 0; }
.completed-print-toolbar select { width: 100%; min-width: 0; }
.completed-print-fill-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.completed-print-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.completed-detail-content { flex: 1 1; min-height: 0; display: flex; overflow: hidden; }
.completed-detail-content > .data-list,
.completed-detail-content > .completed-return-detail { flex: 1 1; min-height: 0; }
.completed-return-detail { display: flex; flex-direction: column; }
.completed-return-detail > h3 { display: none; }
.completed-merchant-code { white-space: normal; overflow-wrap: anywhere; }
.completed-print-quantity {
  box-sizing: border-box;
  width: 88px;
  min-width: 68px;
  min-height: 34px;
  padding: 5px 8px;
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.completed-print-unavailable { font-size: 12px; white-space: normal; }
.completed-product-print-button { white-space: nowrap; }
.completed-print-footer-summary { margin-right: auto; color: var(--muted); }
.completed-print-footer-summary strong { color: var(--green-dark); }
@media (max-width: 1000px) {
  .completed-print-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .completed-print-fill-actions { grid-column: 1 / -1; }
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
}
.stats-grid.product-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats-grid.online-demand-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-card {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
button.stat-card-filter {
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.stat-card-filter:hover {
  border-color: #9bc9ad;
}
button.stat-card-filter.active {
  border-color: var(--green);
  background: #f1faf5;
  box-shadow: 0 0 0 2px rgba(18, 162, 84, 0.1);
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
  font-size: 20px;
}
.stat-card label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 23px;
}
.table-toolbar {
  flex: 0 0 auto;
  padding: 20px;
}
.product-list-toolbar {
  padding: 20px;
}
.online-demand-batch-filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.online-demand-batch-filter select {
  width: 280px;
  height: 40px;
}
.product-stock-quantity {
  color: var(--green-dark);
}
.balance-negative {
  color: var(--danger);
}

.data-list {
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.table-wrap {
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  flex: 1 1;
}
table.erp-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.erp-table th,
.erp-table td {
  height: 48px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.erp-table th:last-child,
.erp-table td:last-child {
  border-right: 0;
}
.erp-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 4;
  height: 48px;
  color: #262c28;
  background: #f4f6f5;
  font-size: 12px;
  font-weight: 750;
}
.erp-table tbody tr:hover td {
  background: #fbfcfb;
}
.erp-table td.wrap {
  height: auto;
  min-height: 48px;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  text-overflow: clip;
  vertical-align: top;
}
.erp-table.measuring-content th,
.erp-table.measuring-content td {
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}
.erp-table.measuring-content td:not(.wrap) {
  white-space: nowrap;
}
.erp-table.measuring-content .pickup-location-text,
.erp-table.measuring-content .pickup-location-primary {
  width: auto;
  min-width: max-content;
  max-width: none;
}
.sales-products-table .product-pickup-location-static,
.sales-products-table .pickup-bundle-summary,
.sales-products-table .pickup-bundle-line,
.sales-products-table .pickup-location-heading {
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
}
.sales-products-table .pickup-bundle-summary,
.sales-products-table .pickup-bundle-line {
  align-self: flex-start;
}
.erp-table td.merged-cell {
  vertical-align: middle;
  background: #fff;
}
.erp-table td.product-divider-light {
  border-bottom: 1px solid #edf1ef;
}
.erp-table td.product-divider-strong {
  border-bottom: 2px solid #aeb8b2;
}
.product-list-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.product-inline-editable {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 4px;
}
.product-name-inline-editable > b,
.color-name-inline-editable > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hover-edit-action {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity 120ms ease, transform 120ms ease, background 120ms ease;
}
.hover-edit-action svg {
  width: 14px;
  height: 14px;
}
.product-inline-editable:hover .hover-edit-action,
.product-inline-editable:focus-within .hover-edit-action {
  opacity: 1;
  transform: translateX(0);
}
.hover-edit-action:hover,
.hover-edit-action:focus-visible {
  background: rgba(18, 162, 84, 0.1);
  color: var(--primary);
  opacity: 1;
}
.online-demand-product {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.online-demand-product > .image-cell,
.online-demand-product > .thumb {
  flex: 0 0 40px;
}
.online-demand-product > .product-list-name {
  min-width: 0;
}
.product-list-id {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
.product-merchant-code-version {
  align-self: flex-end;
  width: -moz-fit-content;
  width: fit-content;
  color: #66736c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}
.product-list-image-version {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 40px;
}
.product-list-id-copyable {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 2px;
}
.hover-copy-action,
.pickup-profile-quick-action {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--green-dark);
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, color 120ms ease;
}
.hover-copy-action svg,
.pickup-profile-quick-action svg {
  width: 15px;
  height: 15px;
}
.product-list-id-copyable:hover .hover-copy-action,
.product-list-id-copyable:focus-within .hover-copy-action,
.pickup-location-cell:hover .pickup-profile-quick-action,
.pickup-location-cell:focus-within .pickup-profile-quick-action {
  opacity: 1;
}
.hover-copy-action:hover,
.hover-copy-action:focus-visible,
.pickup-profile-quick-action:hover,
.pickup-profile-quick-action:focus-visible {
  color: var(--green);
  opacity: 1;
}
.pickup-profile-quick-action:disabled {
  color: var(--muted);
  cursor: not-allowed;
}
.product-id-link {
  display: inline;
  border: 0;
  padding: 0;
  color: var(--green-dark);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.product-id-link:hover,
.product-id-link:focus-visible {
  color: var(--green);
}
.product-import-required-badge {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  align-items: center;
  border: 1px solid #e6c46a;
  border-radius: 999px;
  padding: 2px 7px;
  color: #805c05;
  background: #fff8dd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.product-import-required-banner {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  border: 1px solid #e6c46a;
  border-radius: 10px;
  padding: 10px 14px;
  color: #6b4b00;
  background: #fff9e8;
}
.product-import-required-banner > svg {
  flex: 0 0 auto;
  font-size: 22px;
}
.product-import-required-banner > div {
  display: flex;
  min-width: 0;
  flex: 1 1;
  flex-direction: column;
  gap: 2px;
}
.product-import-required-banner span {
  color: #80691e;
  font-size: 12px;
}
@media (max-width: 760px) {
  .product-import-required-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .product-import-required-banner .button {
    margin-left: 34px;
  }
}
.color-bundle-cell {
  display: inline-flex;
  max-width: 100%;
  align-items: flex-start;
  gap: 7px;
  white-space: normal;
}
.warehouse-spec-with-image {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: flex-start;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
}
.warehouse-spec-with-image > .color-bundle-cell {
  min-width: 0;
}
.color-bundle-content {
  display: grid;
  min-width: 0;
  grid-gap: 3px;
  gap: 3px;
}
.product-color-merchant-codes {
  display: grid;
  grid-gap: 1px;
  gap: 1px;
  color: #7a837e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.product-text-edit-dialog {
  width: min(440px, calc(100vw - 32px));
}
.product-text-edit-dialog .modal-body form {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}
.bundle-icon-button {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #cdd5d0;
  border-radius: 6px;
  color: #626b66;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease,
    color 120ms ease, background 120ms ease;
}
.color-bundle-cell:hover .bundle-icon-button,
.color-bundle-cell:focus-within .bundle-icon-button,
.bundle-icon-button.configured {
  opacity: 1;
  transform: translateX(0);
}
.bundle-icon-button:hover,
.bundle-icon-button:focus-visible,
.bundle-icon-button.configured {
  border-color: rgba(18, 162, 84, 0.45);
  color: var(--primary);
  background: rgba(18, 162, 84, 0.08);
}
.bundle-icon-button:disabled {
  cursor: wait;
}
.product-size-cell {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
}
.product-warehouse-size-cell {
  display: inline-block;
  white-space: nowrap;
  color: #38423d;
  font-weight: 650;
}
.sales-product-stats-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.sales-product-name-cell {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sales-product-name-cell strong {
  overflow-wrap: break-word;
  word-break: break-word;
}
.sales-product-name-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.sales-product-name-cell small {
  color: #a46105;
  font-size: 11px;
}
.sales-product-name-cell .sales-product-id {
  color: var(--muted);
}
.sales-product-name-cell .product-list-image-version {
  flex-direction: row;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
}
.sales-product-name-cell .product-merchant-code-version {
  align-self: center;
  color: #66736c;
  font-size: 10px;
  white-space: nowrap;
}
.sales-spec-name-cell {
  display: grid;
  min-width: 0;
  max-width: 100%;
  justify-items: start;
  grid-gap: 5px;
  gap: 5px;
}
.spec-wrap-text {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.spec-wrap-segment {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.sales-spec-name-cell > .sales-warehouse-sku-cell {
  min-width: 0;
  max-width: 100%;
  align-items: flex-start;
  gap: 4px;
  white-space: normal;
}
.sales-spec-name-cell .table-inline-icon-button {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.sales-warehouse-spec-cell {
  min-width: 0;
}
.warehouse-products-table .color-bundle-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.warehouse-products-table .color-bundle-content {
  max-width: 100%;
}
.warehouse-spec-secondary-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.warehouse-products-table .product-color-merchant-codes {
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Measure natural text + the actual visible action footprint once. Do not
   measure already-wrapped text or guess extra space for old action buttons. */
.erp-table.measuring-content .spec-wrap-text {
  white-space: nowrap;
}
.erp-table.measuring-content .spec-wrap-segment {
  display: inline;
}
.erp-table.measuring-content .spec-wrap-text wbr {
  display: none;
}
.sales-spec-bundle-badge {
  margin-left: 0;
}
.sales-warehouse-product-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.sales-warehouse-product-link:hover,
.sales-warehouse-product-link:focus-visible {
  text-decoration: underline;
}
.sales-warehouse-product-cell {
  display: inline-flex;
  max-width: 100%;
  align-items: flex-start;
  gap: 6px;
}
.sales-product-mapping-search {
  margin: 14px 0;
}
.sales-target-product-name {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  white-space: normal;
}
.sales-target-product-name small {
  color: var(--muted);
  font-size: 11px;
}
.sales-target-size-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  white-space: normal;
}
.sales-target-size-list span {
  font-weight: 700;
  white-space: nowrap;
}
.sales-target-pickup-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  min-width: max-content;
  white-space: normal;
}
.sales-target-pickup-line {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}
.sales-target-pickup-line strong {
  color: #26302a;
  white-space: nowrap;
}
.sales-target-pickup-line small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.sales-product-mapping-selection {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sales-product-mapping-selection h3,
.sales-product-mapping-selection p {
  margin: 0;
}
.sales-product-mapping-selection p {
  color: var(--muted);
  font-size: 12px;
}
.sales-product-mapping-selection select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 30px 0 10px;
}
.sales-product-mapping-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a5b05;
  font-size: 12px;
}
.sales-warehouse-sku-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.sales-warehouse-spec-cell {
  display: inline-flex;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.sales-warehouse-spec-cell.warehouse-spec-pending {
  min-height: 26px;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.warehouse-spec-pending .product-inline-editable {
  min-height: 26px;
}
.warehouse-spec-inline-create {
  margin-left: 0 !important;
}
.sales-warehouse-spec-cell.warehouse-spec-pending:hover .warehouse-spec-pending-placeholder,
.sales-warehouse-spec-cell.warehouse-spec-pending:focus-within .warehouse-spec-pending-placeholder {
  display: none;
}
.sales-warehouse-spec-cell.warehouse-spec-pending:hover .warehouse-spec-inline-create,
.sales-warehouse-spec-cell.warehouse-spec-pending:focus-within .warehouse-spec-inline-create {
  opacity: 1;
}
.sales-warehouse-spec-badges {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sales-warehouse-spec-badges > .inventory-size-short-label {
  margin-left: 0;
}
.table-inline-icon-button {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #748078;
  cursor: pointer;
  opacity: 0;
}
td:hover .table-inline-icon-button,
.table-inline-icon-button:focus-visible {
  opacity: 1;
  border-color: #cfd8d2;
  background: #fff;
  color: var(--green-dark);
}
.sales-mapping-context {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
  background: #f8faf9;
}
.sales-mapping-context span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #727a75;
}
.sales-mapping-context strong {
  color: #242a27;
}
.warehouse-sku-split-context {
  margin-bottom: 18px;
}
.warehouse-sku-split-target {
  margin-bottom: 18px;
}
.warehouse-sku-split-target input {
  width: 100%;
}
.warehouse-sku-split-section {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.warehouse-sku-split-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.warehouse-sku-split-section-title span {
  color: var(--muted);
  font-size: 12px;
}
.warehouse-sku-split-section td input[type="number"] {
  width: 100%;
  min-width: 96px;
  text-align: right;
}
.warehouse-sku-split-warning {
  padding: 10px 12px;
  border: 1px solid #ead8a7;
  border-radius: 8px;
  background: #fffaf0;
  line-height: 1.55;
}
.size-pickup-action {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #cdd5d0;
  border-radius: 6px;
  color: #626b66;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease,
    color 120ms ease, background 120ms ease;
}
.product-size-cell:hover .size-pickup-action,
.product-size-cell:focus-within .size-pickup-action,
.size-pickup-action.configured {
  opacity: 1;
  transform: translateX(0);
}
.size-pickup-action:hover,
.size-pickup-action:focus-visible,
.size-pickup-action.configured {
  border-color: rgba(18, 162, 84, 0.45);
  color: var(--green-dark);
  background: rgba(18, 162, 84, 0.08);
}
.bundle-member-adder {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8faf9;
}
.bundle-member-adder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bundle-member-adder-header > strong {
  color: var(--text);
  font-size: 13px;
}
.bundle-member-adder-header > .button {
  min-height: 36px;
}
.bundle-member-list {
  max-height: min(46vh, 390px);
  overflow: hidden;
  border: 1px solid var(--border);
}
.bundle-pickup-mode-panel {
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) minmax(250px, 1fr);
  align-items: stretch;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8faf9;
}
.bundle-pickup-mode-panel > strong {
  align-self: center;
  padding-right: 6px;
}
.bundle-pickup-mode-panel label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-content: center;
  grid-gap: 2px 7px;
  gap: 2px 7px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.bundle-pickup-mode-panel label:has(input:checked) {
  border-color: rgba(18, 162, 84, 0.55);
  background: var(--green-soft);
}
.bundle-pickup-mode-panel input {
  align-self: center;
  margin: 0;
}
.bundle-pickup-mode-panel small {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}
.bundle-unified-pickup {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.bundle-member-reference-price {
  display: flex;
  max-width: 180px;
  align-items: center;
  gap: 6px;
}
.bundle-member-reference-price input {
  min-width: 0;
}

.bundle-setup-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.bundle-setup-steps span {
  flex: 1 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--canvas);
  text-align: center;
  font-size: 12px;
}

.bundle-setup-steps span.complete {
  color: var(--green-dark);
  border-color: color-mix(in srgb, var(--green) 35%, var(--border));
}

.bundle-setup-steps span.active {
  color: var(--green-dark);
  border-color: var(--green);
  font-weight: 700;
}

.bundle-price-member {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.bundle-price-member small {
  color: var(--muted);
  white-space: normal;
}

.bundle-member-price-input {
  max-width: 180px;
}

.standard-bundle-pickup-prices {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.standard-bundle-independent-pickups {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.mixed-bundle-independent-location {
  display: block;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
}

.standard-bundle-inherited-location {
  display: block;
  color: #657386;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mixed-bundle-independent-location.unbound {
  color: var(--danger);
}

.mixed-bundle-independent-hint {
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: 12px;
}


.standard-bundle-pickup-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.standard-bundle-pickup-heading span {
  color: var(--muted);
  font-size: 12px;
}
.bundle-member-pickup-actions {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
}
.bundle-member-pickup-delete {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e9c9c7;
  border-radius: 6px;
  color: var(--danger);
  background: #fff;
  cursor: pointer;
}
.bundle-member-pickup-delete-confirm {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.link-button.danger {
  color: var(--danger);
}
.bundle-member-list > .data-list,
.bundle-member-list .table-wrap {
  flex: 0 0 auto;
  min-height: 0;
}
.bundle-member-list .table-wrap {
  max-height: min(46vh, 390px);
}
.bundle-member-spec-cell,
.bundle-product-result-spec {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.bundle-member-spec-cell > .image-cell,
.bundle-member-spec-cell > .thumb,
.bundle-product-result-spec > .image-cell,
.bundle-product-result-spec > .thumb {
  flex: 0 0 auto;
}
.bundle-member-spec-cell strong,
.bundle-product-result-spec strong {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.manual-product-specs {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.manual-product-specs-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
}
.manual-product-specs .table-wrap {
  max-height: min(48vh, 430px);
}
.manual-product-color-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  width: 100%;
}
.manual-product-color-editor > input {
  min-width: 0;
  width: 100%;
}
.manual-product-add-size {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.manual-product-add-size > svg {
  font-size: 15px;
}
.bundle-manual-member-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.bundle-manual-member-action > span {
  color: var(--text-muted);
  font-size: 12px;
}
.bundle-product-search {
  min-width: 0;
}
.bundle-product-search > input {
  width: 100%;
}
.bundle-product-results {
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.bundle-product-result-head,
.bundle-product-result-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) 88px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.bundle-product-result-head {
  position: -webkit-sticky;
  position: sticky;
  z-index: 1;
  top: 0;
  padding-block: 8px;
  color: var(--muted);
  background: #f6f8f7;
  font-size: 11px;
}
.bundle-product-result-head strong:last-child {
  text-align: center;
}
.bundle-product-result-row {
  color: var(--text);
  background: #fff;
}
.bundle-product-result-row:last-child {
  border-bottom: 0;
}
.bundle-product-result-row:hover {
  background: #eef6f1;
}
.bundle-product-result-row strong,
.bundle-product-result-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bundle-product-result-row .button {
  width: 100%;
  min-height: 32px;
  padding: 5px 10px;
}
.bundle-product-result-state {
  padding: 13px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.bundle-product-result-state.error {
  color: var(--danger);
}
.pickup-location-cell {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 38px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.pickup-location-main {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 3px;
}
.pickup-location-main .pickup-profile-quick-action {
  margin-top: 1px;
}
.pickup-location-main .pickup-location-link {
  width: auto;
  flex: 0 1 auto;
}
.pickup-location-link,
.pickup-location-text {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}
.pickup-location-link {
  padding-right: 0;
  cursor: pointer;
}
.preprocess-pickup-link,
.stocking-pickup-link {
  padding-right: 0;
}
.stocking-pickup-link {
  width: 100%;
  max-width: 100%;
}
.stocking-pickup-link .pickup-location-primary {
  overflow-wrap: normal;
  white-space: nowrap;
}
.pickup-location-primary {
  max-width: 100%;
  overflow-wrap: normal;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
  white-space: nowrap;
}
.sales-products-table .pickup-location-primary.compact-pickup-location {
  max-width: 260px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.warehouse-pickup-item-master {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  color: var(--green-dark);
}
.warehouse-pickup-item-master > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.warehouse-spec-add-action,
.warehouse-spec-price-action,
.warehouse-spec-delete-action {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.warehouse-spec-add-action {
  gap: 2px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
}
.warehouse-spec-price-action {
  justify-content: flex-start;
  color: #6d766f;
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: left;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.warehouse-spec-price-action:disabled {
  cursor: text;
}
.warehouse-spec-delete-action {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  justify-content: center;
  border-radius: 5px;
  color: #b42318;
  opacity: 0;
}
.color-bundle-cell:hover .warehouse-spec-delete-action,
.color-bundle-cell:focus-within .warehouse-spec-delete-action {
  opacity: 1;
}
.warehouse-spec-delete-action:hover,
.warehouse-spec-delete-action:focus-visible {
  background: #fff1f0;
}
.modal.warehouse-spec-dialog {
  width: min(720px, calc(100vw - 32px));
}
.modal.warehouse-spec-price-dialog,
.modal.warehouse-spec-delete-dialog {
  width: min(460px, calc(100vw - 32px));
}
.warehouse-spec-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(150px, .7fr);
  grid-gap: 12px;
  gap: 12px;
}
.sales-warehouse-create-source { display:flex; gap:12px; margin-bottom:18px; align-items:flex-start; }
.warehouse-create-kind { display:flex; gap:8px; }
.warehouse-create-kind button { padding:8px 18px; border:1px solid var(--line); border-radius:6px; background:white; cursor:pointer; }
.warehouse-create-kind button.selected { border-color:var(--green); color:var(--green); background:#edf8f2; }
.bundle-create-member-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.bundle-create-member-toolbar > input { flex:1 1; min-width:180px; }
.bundle-create-members { max-height:36vh; overflow:auto; border:1px solid var(--line); }
.bundle-create-members table { width:100%; table-layout:auto; }
.bundle-create-members th:first-child { width:52px; }
.bundle-create-members th:nth-child(5) { width:100px; }
.bundle-create-members th:nth-child(6) { width:80px; }
.bundle-create-members input[type="checkbox"] { -webkit-appearance:auto; -moz-appearance:auto; appearance:auto; width:18px; height:18px; min-width:18px; min-height:18px; padding:0; margin:0; border-radius:3px; accent-color:#159b61; vertical-align:middle; }
.sales-bundle-create-dialog .sales-warehouse-create-main { grid-template-columns:minmax(260px,1fr) minmax(180px,260px); }
.bundle-create-members th { position:-webkit-sticky; position:sticky; top:0; background:#f6f8f7; z-index:1; }
.bundle-create-members td { vertical-align:middle; }
.bundle-create-members td small,.bundle-create-member-name small { display:block; color:var(--muted); }
.bundle-create-members .bundle-member-quantity { width:76px; min-width:68px; }
.bundle-create-member-name { display:flex; gap:8px; align-items:center; min-width:150px; }
.bundle-create-member-name > span { max-width:320px; white-space:normal; overflow-wrap:anywhere; }
.bundle-create-members .link-button { display:block; margin-top:4px; }
.bundle-create-members .warning-text { color:#aa6400; }
.sales-warehouse-create-source > div { display:grid; grid-gap:5px; gap:5px; }
.sales-warehouse-create-source small { color:var(--muted); }
.sales-warehouse-create-fields { border:0; margin:0; padding:0; display:grid; grid-gap:16px; gap:16px; min-width:0; }
.sales-warehouse-create-main { display:grid; grid-template-columns:minmax(260px,2fr) minmax(170px,1fr) minmax(140px,.7fr); grid-gap:12px; gap:12px; }
.sales-warehouse-create-pickup { border-top:1px solid var(--line); padding-top:16px; display:grid; grid-gap:12px; gap:12px; }
.sales-warehouse-create-pickup-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-gap:12px; gap:12px; }
.sales-warehouse-create-mappings { max-width:600px; }
.sales-warehouse-create-dialog .field { min-width:0; }
.sales-warehouse-create-dialog .field input:not([type="checkbox"]),
.sales-warehouse-create-dialog .field select { width:100%; min-width:0; }
@media (max-width:760px) {
  .sales-warehouse-create-main,.sales-warehouse-create-pickup-grid { grid-template-columns:minmax(0,1fr); }
}
.modal.warehouse-spec-edit-dialog {
  width: min(860px, calc(100vw - 32px));
}
.warehouse-spec-edit-dialog .warehouse-spec-form-grid {
  grid-template-columns: minmax(360px, 1.7fr) minmax(220px, 1fr);
}
.warehouse-size-field {
  grid-column: 1 / -1;
}
.warehouse-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.warehouse-size-options label {
  display: inline-flex;
  min-width: 54px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.warehouse-size-options label.selected {
  border-color: #1f9d61;
  background: #edf9f2;
  color: #157347;
  font-weight: 700;
}
.warehouse-size-options input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.money-input {
  position: relative;
  width: 100%;
  min-width: 0;
}
.money-input > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  pointer-events: none;
}
.money-input > input {
  display: block;
  width: 100%;
  padding-left: 30px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.warehouse-spec-delete-rule {
  margin: 0;
  color: #6f7471;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .warehouse-spec-form-grid,
  .warehouse-spec-edit-dialog .warehouse-spec-form-grid {
    grid-template-columns: 1fr;
  }
}
.warehouse-pickup-item-master.unconfigured {
  color: var(--muted);
}
.pickup-location-configure-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
.pickup-member-tooltip {
  position: fixed;
  z-index: 1000;
  display: flex;
  max-width: min(320px, calc(100vw - 16px));
  align-items: baseline;
  padding: 5px 8px;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  background: #f7f7f7;
  box-shadow: 0 2px 6px rgba(24, 31, 27, 0.2);
  color: #414744;
  font-size: 11px;
  line-height: 1.3;
  pointer-events: none;
  white-space: normal;
}
.pickup-member-tooltip > strong {
  overflow-wrap: anywhere;
  font-weight: 500;
}
.pickup-bundle-summary,
.pickup-bundle-line {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
.pickup-bundle-summary {
  gap: 7px;
}
.pickup-bundle-line {
  gap: 2px;
}
.pickup-bundle-line-independent {
  color: #59636f;
}
.pickup-location-heading {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}
.pickup-location-jump {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  text-align: left;
}
.pickup-note-trigger {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.pickup-note-trigger.has-note {
  color: #b87513;
  opacity: 1;
  pointer-events: auto;
}
.pickup-bundle-line:hover .pickup-note-trigger,
.pickup-bundle-line:focus-within .pickup-note-trigger,
.pickup-note-trigger:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.pickup-bundle-multi_item .pickup-bundle-line + .pickup-bundle-line {
  padding-top: 7px;
  border-top: 1px solid #dfe7e2;
}
.pickup-reference-price {
  color: #6d766f;
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.product-size-pickup-overrides {
  display: grid;
  width: 100%;
  grid-gap: 5px;
  gap: 5px;
  margin-top: 8px;
  padding: 7px 66px 0 0;
  border-top: 1px solid #e1e7e3;
}
.product-size-pickup-override {
  display: grid;
  width: 100%;
  grid-gap: 2px;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #53615a;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.product-pickup-location-static .product-size-pickup-overrides {
  padding-right: 0;
}
.pickup-location-readonly {
  color: #59636f;
  cursor: default;
}
.pickup-location-readonly .pickup-location-primary,
.pickup-location-readonly .pickup-location-price,
.pickup-location-readonly .product-size-pickup-override {
  color: inherit;
}
.stocking-pickup-link .product-size-pickup-overrides {
  padding-right: 0;
}
.product-pickup-location-static .product-size-pickup-override {
  cursor: default;
}
.stocking-pickup-link .product-size-pickup-override {
  cursor: default;
}
.product-size-pickup-location {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}
.product-size-pickup-location strong {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 12px;
}
.product-size-pickup-location span {
  min-width: 0;
}
.product-size-pickup-price {
  color: #7a837e;
  font-size: 11px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.product-size-pickup-override:hover,
.product-size-pickup-override:focus-visible {
  color: var(--green-dark);
}

/* 小字体模式同时收紧字号、行高与组件留白，保持整套界面密度一致。 */
.erp-shell.density-small {
  --nav-width: 96px;
  font-size: 12px;
}
.density-small .erp-topbar {
  padding: 0 18px;
}
.density-small .brand {
  gap: 9px;
}
.density-small .brand-badge {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.density-small .brand-name,
.density-small .settings-title {
  font-size: 14px;
}
.density-small .top-divider {
  height: 26px;
  margin: 0 20px;
}
.density-small .shop-context,
.density-small .account-trigger {
  height: 36px;
}
.density-small .today {
  margin-left: 16px;
  padding: 7px 10px;
  gap: 7px;
  font-size: 11px;
}
.density-small .font-size-toggle {
  height: 30px;
  margin-right: 12px;
  font-size: 11px;
}
.density-small .font-size-toggle strong {
  width: 20px;
  height: 20px;
  font-size: 10px;
}
.density-small .avatar {
  width: 26px;
  height: 26px;
}
.density-small .dropdown-menu {
  width: 176px;
  padding: 5px;
}
/* Bottom-anchored account menus must not inherit a topbar dropdown offset. */
.density-small .dropdown-menu:not(.sidebar-account-menu) {
  top: 42px;
}
.density-small .dropdown-menu button {
  height: 34px;
  gap: 8px;
  padding: 0 10px;
}
.density-small .side-nav {
  padding-top: 16px;
}
.density-small .nav-item {
  height: 72px;
  gap: 6px;
}
.density-small .nav-item svg {
  font-size: 20px;
}
.density-small .sidebar-bottom .nav-item {
  height: 52px;
  gap: 3px;
  font-size: 10px;
}
.density-small .page {
  padding: 18px 20px 22px;
  gap: 12px;
}
.density-small .page-header {
  gap: 18px;
}
.density-small .page-header h1 {
  margin-bottom: 3px;
  font-size: 21px;
}
.density-small .page-actions,
.density-small .toolbar,
.density-small .inline-form {
  gap: 8px;
}
.density-small .settings-shell {
  grid-template-rows: 50px minmax(0, 1fr);
}
.density-small .settings-tabs {
  padding: 0 20px;
}
.density-small .settings-tabs button {
  padding: 0 14px;
  gap: 6px;
}
.density-small .panel-header {
  min-height: 52px;
  padding: 12px 16px;
  gap: 14px;
}
.density-small .panel-header h2 {
  font-size: 16px;
}
.density-small .panel-header p {
  margin-top: 3px;
}
.density-small .panel-body {
  padding: 16px;
}
.density-small .button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 6px;
  gap: 6px;
}
.density-small .button.ghost {
  min-height: 30px;
  padding: 0 6px;
}
.density-small .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.density-small label.field {
  gap: 5px;
  font-size: 11px;
}
.density-small input,
.density-small select,
.density-small textarea {
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
}
.density-small textarea {
  height: auto;
  min-height: 68px;
  padding-top: 9px;
}
.density-small .compact-input,
.density-small .search-box input {
  height: 34px;
}
.density-small .search-box {
  width: 330px;
}
.density-small .search-box svg {
  left: 11px;
}
.density-small .search-box input {
  padding-left: 34px;
}
.density-small .form-grid,
.density-small .pickup-profile-row {
  gap: 10px;
}
.density-small .metric-strip {
  min-height: 64px;
  padding: 0 16px;
  gap: 16px;
}
.density-small .metric-strip .batch-name {
  font-size: 15px;
}
.density-small .metric {
  gap: 6px;
  padding-left: 12px;
}
.density-small .metric label,
.density-small .stat-card label {
  font-size: 11px;
}
.density-small .metric strong {
  font-size: 18px;
}
.density-small .stats-grid {
  gap: 10px;
}
.density-small .stat-card {
  min-height: 76px;
  gap: 10px;
  padding: 12px 15px;
}
.density-small .stat-icon {
  width: 36px;
  height: 36px;
  font-size: 17px;
}
.density-small .stat-card strong {
  margin-top: 2px;
  font-size: 20px;
}
.density-small .table-toolbar {
  padding: 14px 16px;
}
.density-small .product-list-toolbar {
  padding: 14px 16px;
}
.density-small .erp-table th,
.density-small .erp-table td {
  height: 40px;
  padding: 6px 12px;
}
.density-small .erp-table th {
  height: 40px;
  font-size: 11px;
}
.density-small .product-list-name {
  gap: 4px;
  line-height: 1.4;
}
.density-small .product-list-id,
.density-small .pickup-reference-price {
  font-size: 10px;
}
.density-small .pickup-bundle-summary {
  gap: 5px;
}
.density-small .pickup-bundle-multi_item .pickup-bundle-line + .pickup-bundle-line {
  padding-top: 5px;
}
.density-small .pager {
  min-height: 48px;
  padding: 7px 11px;
  gap: 12px;
  font-size: 11px;
}
.density-small .pager button {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
}
.density-small .pager select,
.density-small .pager input {
  height: 30px;
}
.density-small .modal-backdrop {
  padding: 18px;
}
.density-small .modal-header {
  gap: 14px;
  padding: 17px 19px 12px;
}
.density-small .modal-header h2 {
  font-size: 17px;
}
.density-small .modal-header p {
  margin-top: 5px;
}
.density-small .modal-close {
  width: 30px;
  height: 30px;
  font-size: 18px;
}
.density-small .modal-body {
  padding: 6px 19px 17px;
  gap: 11px;
}
.density-small .modal-actions {
  padding: 12px 19px;
  gap: 8px;
}
.resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  bottom: 0;
  width: 9px;
  cursor: col-resize;
  touch-action: none;
  z-index: 5;
}
.resize-handle:hover,
.resize-handle.dragging {
  background: rgba(18, 162, 84, 0.32);
}
.erp-table th {
  position: -webkit-sticky;
  position: sticky;
}
.thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  background: #f0f2f1;
}
.image-cell {
  width: 40px;
  height: 40px;
  position: relative;
}
.image-preview {
  display: none;
  position: fixed;
  z-index: 300;
  width: 500px;
  max-height: 620px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}
.image-cell:hover .image-preview {
  display: block;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 0;
}
.link-button.danger-link {
  color: #c33b32;
}
.link-button:disabled {
  color: #a8afa9;
  cursor: not-allowed;
}
.merchant-code {
  color: var(--green);
  font-weight: 750;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #58625c;
  background: #eef1ef;
  font-size: 12px;
  font-weight: 700;
}
.pill.success,
.pill.online,
.pill.completed,
.pill.printed {
  color: var(--green-dark);
  background: #e7f6ed;
}
.pill.warning,
.pill.pending,
.pill.in_progress,
.pill.open {
  color: #96630d;
  background: #fff1d7;
}
.pill.danger,
.pill.failed,
.pill.offline,
.pill.canceled,
.pill.cancelled {
  color: var(--danger);
  background: #fdebea;
}
.pill.tone-green {
  color: var(--green);
  background: var(--green-soft);
}
.pill.tone-orange {
  color: #a95c00;
  background: #fff0df;
}
.pill.tone-amber {
  color: #8b6500;
  background: #fff5cf;
}
.pill.tone-purple {
  color: #71439a;
  background: #f3eafa;
}
.pill.tone-red {
  color: #ad342b;
  background: #fde9e7;
}
.pill.tone-gray {
  color: #606962;
  background: #eef0ee;
}
.pill.tone-blue {
  color: #24679d;
  background: #e7f1fb;
}
.table-empty,
.loading,
.error-state {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.table-empty svg {
  font-size: 30px;
  margin-bottom: 8px;
}
.error-box {
  padding: 12px 14px;
  border: 1px solid #efc2be;
  border-radius: 7px;
  color: #9e2f29;
  background: #fff2f1;
}

.pager {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  overflow-x: auto;
}
.pager-summary,
.pager-controls,
.pager-summary label,
.pager-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pager-controls {
  justify-content: flex-end;
}
.pager button {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.pager button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
.pager select {
  width: 88px;
  height: 34px;
}
.pager input {
  width: 52px;
  height: 34px;
  text-align: center;
}

.modal-body > .data-list {
  min-height: 300px;
  max-height: min(62vh, 680px);
  border: 1px solid var(--border);
}
.merchant-export-file-list {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}
.merchant-export-file-list > .data-list,
.merchant-export-file-list .table-wrap {
  flex: 0 0 auto;
  min-height: 0;
}
.merchant-export-file-list .table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}
.merchant-export-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.merchant-export-row-actions > span {
  color: var(--muted);
  font-size: 12px;
}
.merchant-export-report-help {
  margin-top: 14px;
}
.merchant-export-report-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.merchant-export-report-name strong,
.merchant-export-report-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.merchant-export-report-name small {
  color: var(--muted);
  font-size: 11px;
}
.merchant-export-report-upload {
  position: relative;
  cursor: pointer;
}
.merchant-export-report-upload.disabled {
  color: #a8afa9;
  cursor: not-allowed;
}
.merchant-export-report-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.split-settings {
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(520px, 1.18fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}
.pickup-feedback-settings-column {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  min-width: 0;
}
.repeat-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr 32px 38px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px 0 12px;
  border-bottom: 0;
}
.repeat-row.status-row {
  grid-template-columns: 12px minmax(92px, 1fr) minmax(90px, 0.85fr) minmax(105px, 0.85fr) 32px 38px 38px;
  grid-template-areas: "dot name kind color remove confirm drag";
  align-items: center;
}
.supplier-return-status-settings .status-row {
  grid-template-columns: 12px minmax(130px, 1fr) minmax(100px, 0.7fr) minmax(170px, 1fr) 38px 38px 70px;
  grid-template-areas: "dot name kind color confirm remove drag";
}
.supplier-return-status-settings .return-status-outcome {
  grid-area: kind;
  color: var(--muted);
  font-size: 12px;
}
.return-status-order-buttons {
  grid-area: drag;
  display: inline-flex;
  gap: 3px;
}
.return-status-order-buttons button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.status-row > .status-dot {
  grid-area: dot;
}
.status-row > .status-name-field {
  grid-area: name;
}
.status-row > .status-kind-field {
  grid-area: kind;
}
.status-row > .status-color-editor {
  grid-area: color;
}
.status-row > .modal-close {
  grid-area: remove;
}
.status-row > .row-confirm-button,
.status-row > .row-confirm-placeholder {
  grid-area: confirm;
}
.status-row > .drag-handle {
  grid-area: drag;
}
.repeat-row.pickup-market-row {
  grid-template-columns: minmax(90px, 0.72fr) minmax(120px, 1fr) minmax(150px, 1.35fr) 32px 38px 38px;
}
.pickup-fixed-market {
  min-width: 32px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.online-market-summary {
  display: grid;
  grid-template-columns: minmax(90px, 0.72fr) minmax(120px, 1fr) 48px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 9px 0 10px;
}
.online-market-summary > div {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}
.online-market-summary > div > span {
  color: var(--muted);
  font-size: 12px;
}
.online-market-summary > div > strong {
  font-size: 14px;
  line-height: 1.4;
}
.pickup-supplier-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pickup-supplier-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.pickup-supplier-heading > div {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}
.pickup-supplier-heading span,
.pickup-code-hint,
.pickup-supplier-empty {
  color: var(--muted);
  font-size: 12px;
}
.repeat-row.pickup-supplier-row {
  grid-template-columns: minmax(180px, 1fr) 32px 38px;
}
.pickup-supplier-empty {
  padding: 18px 0 10px;
}
.pickup-code-hint {
  margin: 8px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.split-settings input,
.split-settings select {
  height: 40px;
}
.drag-handle {
  width: 38px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f8faf9;
  display: grid;
  place-items: center;
  cursor: -webkit-grab;
  cursor: grab;
  color: #748078;
}
.dragging-row {
  opacity: 0.45;
}
.drop-before {
  box-shadow: inset 0 3px var(--green);
}
.row-confirm-button,
.row-confirm-placeholder {
  width: 38px;
  height: 42px;
}
.row-confirm-button {
  display: grid;
  place-items: center;
  border: 1px solid #a7d7bb;
  border-radius: 7px;
  color: var(--green);
  background: #eff9f3;
  cursor: pointer;
  font-size: 21px;
}
.row-confirm-button:hover:not(:disabled) {
  border-color: var(--green);
  background: #e2f5ea;
}
.row-confirm-button:disabled {
  color: #a9b4ad;
  border-color: var(--border);
  background: #f4f6f5;
  cursor: not-allowed;
}
.pending-structure-delete {
  border-radius: 8px;
  background: #fff4f2;
}
.pending-structure-delete .field {
  opacity: 0.58;
}
.cancel-structure-delete {
  color: #8a5b24 !important;
  background: #fff8e9 !important;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.status-color-editor {
  position: relative;
  min-width: 0;
}
.status-color-trigger {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.status-color-trigger:hover:not(:disabled),
.status-color-trigger[aria-expanded="true"] {
  border-color: #8cbfa0;
  box-shadow: 0 0 0 2px rgba(18, 162, 84, 0.1);
}
.status-color-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.status-color-trigger > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #cbd2ce;
}
.status-color-trigger output {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1;
}
.status-color-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  right: 0;
  width: 390px;
  max-width: min(390px, calc(100vw - 48px));
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(19, 35, 26, 0.2);
}
.status-rgb-palette {
  display: grid;
  grid-template-columns: repeat(10, 30px);
  align-items: center;
  grid-gap: 7px;
  gap: 7px;
  min-height: 30px;
}
.status-rgb-palette button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 7px;
  box-shadow: 0 0 0 1px #cbd2ce;
  cursor: pointer;
}
.status-rgb-palette button:hover:not(:disabled),
.status-rgb-palette button:focus-visible {
  transform: scale(1.08);
  outline: none;
  box-shadow: 0 0 0 2px #748078;
}
.status-rgb-palette button.selected {
  box-shadow: 0 0 0 3px #1e2c24;
}
.status-rgb-palette button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 18, 16, 0.58);
}
.modal {
  width: min(490px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}
.modal.medium {
  width: min(760px, 100%);
}
.modal.wide {
  width: min(1400px, 100%);
}
.modal.wide.completed-stocking-modal {
  width: min(1600px, 100%);
}
.modal.stocking-manual-demand-modal {
  height: min(90vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stocking-manual-demand-modal .modal-header,
.stocking-manual-demand-modal .modal-actions {
  flex: 0 0 auto;
}
.stocking-manual-demand-modal .modal-body {
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
}
.stocking-manual-demand-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(420px, 1fr);
  grid-gap: 14px;
  gap: 14px;
}
.stocking-manual-demand-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 8px;
  gap: 8px;
}
.stocking-manual-demand-search .button {
  min-width: 96px;
}
.stocking-manual-demand-results {
  flex: 1 1;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.stocking-manual-demand-results > .data-list {
  height: 100%;
}
.stocking-manual-demand-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stocking-manual-demand-spec small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.stocking-manual-demand-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stocking-manual-demand-quantity input {
  min-width: 0;
  height: 36px;
}
.stocking-manual-demand-quantity small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}
.stocking-manual-demand-quantity input:disabled {
  color: var(--muted);
  background: #f1f3f1;
  cursor: not-allowed;
}
.stocking-manual-demand-selection {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 150px minmax(300px, 0.8fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid #bcd9c4;
  border-radius: 7px;
  background: #f6fbf7;
}
.stocking-manual-demand-selection > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stocking-manual-demand-selection label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.stocking-manual-demand-selection span {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .stocking-manual-demand-form,
  .stocking-manual-demand-selection {
    grid-template-columns: 1fr;
  }
}
.modal.stocking-import-preview-modal {
  width: 100%;
  height: min(92vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal.product-import-preview-modal {
  height: min(92vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-import-preview-modal .modal-header,
.product-import-preview-modal .modal-actions,
.stocking-import-preview-modal > .modal-header,
.stocking-import-preview-modal > .modal-actions {
  flex: 0 0 auto;
}
.product-import-preview-modal .modal-body,
.stocking-import-preview-modal > .modal-body {
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
}
.modal.draggable {
  position: relative;
}
.modal.draggable > .modal-header {
  cursor: -webkit-grab;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.modal.draggable.dragging > .modal-header {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}
.modal.draggable > .modal-header .modal-close {
  cursor: pointer;
}
.modal-header h2 {
  margin: 0;
  font-size: 20px;
}
.modal-header p {
  margin: 7px 0 0;
  color: var(--muted);
}
.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.modal-body {
  padding: 8px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.modal-actions {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.preprocess-table {
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.preprocess-table > .data-list {
  height: 100%;
}
.preprocess-table input,
.preprocess-table select {
  height: 40px;
  border-color: transparent;
  background: transparent;
}
.preprocess-table input:focus,
.preprocess-table select:focus {
  border-color: var(--green);
  background: #fff;
}
.preprocess-summary {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
}
.product-import-context {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
}
.product-import-context span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-import-context span:nth-child(2) {
  flex: 1 1;
}
.product-import-context span:last-child {
  flex: 0 0 auto;
}
.product-import-context strong {
  color: var(--ink);
}
.product-import-file-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #333a36;
  font-size: 12px;
  font-weight: 650;
}
.product-import-file-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.product-import-file-picker {
  height: 48px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border: 1px solid #d6dcda;
  border-radius: 7px;
  background: #fff;
}
.product-import-file-picker .button {
  min-height: 38px;
  flex: 0 0 auto;
}
.product-import-file-picker > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 500;
}
.product-import-file-picker > span.selected {
  color: var(--ink);
}
.product-import-batch-selection {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.product-import-batch-selection-header,
.product-import-batch-selection-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(190px, 0.8fr) 100px 34px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  padding: 8px 10px;
}
.product-import-batch-selection-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: #f5f7f6;
  font-size: 11px;
  font-weight: 750;
}
.product-import-batch-selection-row {
  border-bottom: 1px solid #edf1ef;
}
.product-import-batch-selection-row:last-child {
  border-bottom: 0;
}
.product-import-batch-selection-row input {
  width: 100%;
  height: 36px;
}
.batch-filename {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}
.batch-file-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.batch-file-status.ready,
.batch-file-status.imported {
  color: var(--green-dark);
}
.batch-file-status.error {
  color: #b42318;
}
.batch-file-status.preprocessing,
.batch-file-status.importing {
  color: #1769aa;
}
.batch-file-error {
  grid-column: 1 / -1;
  color: #b42318;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.product-import-batch-overall {
  color: var(--muted);
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.product-import-batch-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.product-import-batch-tab {
  display: flex;
  min-width: 230px;
  max-width: 330px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.product-import-batch-tab.active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: #f5fbf7;
}
.product-import-batch-tab > button:first-child {
  display: flex;
  min-width: 0;
  flex: 1 1;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  border: 0;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.product-import-batch-tab > button:first-child:disabled {
  cursor: default;
}
.product-import-batch-tab > button:first-child span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.product-import-batch-tab small {
  color: var(--muted);
}
.product-import-batch-tab small.ready,
.product-import-batch-tab small.imported {
  color: var(--green-dark);
}
.product-import-batch-tab small.error {
  color: #b42318;
}
.batch-tab-remove {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.product-import-progress {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid #cfe4d7;
  border-radius: 7px;
  background: #f6fbf8;
}
.product-import-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--green-dark);
  font-size: 13px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.product-import-progress-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9e3;
}
.product-import-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 120ms ease-out;
}
.product-import-progress-track.indeterminate > span {
  width: 34%;
  animation: product-import-progress 1.1s ease-in-out infinite;
}
.product-import-skipped {
  border: 1px solid #f0d59d;
  border-radius: 7px;
  background: #fffbf2;
}
.product-import-skipped > summary {
  padding: 11px 14px;
  color: #8c5c0d;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.product-import-skipped-table {
  max-height: 230px;
  overflow: auto;
  border-top: 1px solid #f0d59d;
  background: #fff;
}
@keyframes product-import-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}
.preprocess-product-name {
  display: block;
  line-height: 1.45;
  white-space: normal;
}
.preprocess-product-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.preprocess-product-summary select {
  width: 100%;
  border-color: var(--border);
  background: #fff;
}
.preprocess-product-total {
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: #58625c;
  background: #edf1ef;
  font-size: 11px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.preprocess-spec-cell {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  white-space: normal;
}
.preprocess-spec-cell small,
.preprocess-spec-cell .preprocess-external-id {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.preprocess-spec-cell select,
.code-options select {
  height: 38px;
  border-color: var(--border);
  background: #fff;
}
.code-options {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: visible;
}
.current-pickup-code {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 750;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.current-pickup-code small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.unbound-code {
  width: -moz-fit-content;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 5px;
  color: #96630d;
  background: #fff1d7;
  font-weight: 700;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.code-options label {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--green-dark);
  font-weight: 750;
  cursor: pointer;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}
.code-options label.selected {
  background: var(--green-soft);
}
.code-options input[type="radio"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--green);
}
.code-error,
.preprocess-blocker {
  color: var(--danger);
  font-weight: 650;
}
.quantity-editor {
  height: 38px !important;
  text-align: right;
}
.stocking-inline-quantity {
  width: 68px;
  min-width: 68px;
  height: 36px !important;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.stocking-demand-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 28px;
  white-space: nowrap;
}
.stocking-manual-demand-marker {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #a35b00;
  font-size: 11px;
  font-weight: 750;
}
.stocking-manual-demand-marker button {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--danger);
  background: #fff0ef;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.stocking-manual-demand-marker:hover button,
.stocking-manual-demand-marker:focus-within button {
  opacity: 1;
  pointer-events: auto;
}
.stocking-manual-demand-marker button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.stocking-report-check {
  width: 100%;
  min-height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.stocking-report-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.stocking-report-check input:disabled {
  cursor: wait;
}
.pickup-item-note-modal textarea {
  min-height: 118px;
  resize: vertical;
}
.pickup-preview-dialog {
  width: min(520px, 100%);
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}
.pickup-preview-phone {
  position: relative;
  flex: 0 0 auto;
  width: min(454px, calc(100cqw - 32px), calc(46.804cqh - 15px));
  aspect-ratio: 454 / 970;
  padding: 1.3216%;
  border: 1px solid #3f4441;
  border-radius: 11.46% / 5.37%;
  background: #101311;
  box-shadow: 0 20px 48px rgba(14, 27, 20, 0.26);
  cursor: -webkit-grab;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.pickup-preview-phone.dragging {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}
.pickup-preview-phone.dragging .pickup-preview-frame {
  pointer-events: none;
}
.pickup-preview-close {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #d6dcd8;
  border-radius: 50%;
  color: #26312b;
  background: #fff;
  box-shadow: 0 5px 16px rgba(14, 27, 20, 0.2);
  font-size: 20px;
}
.pickup-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10.46% / 4.82%;
  background: #f3f5f0;
}
.group-total {
  font-size: 16px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.preprocess-remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: auto;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 18px;
}
.preprocess-remove:hover {
  color: var(--danger);
  background: #fff0ef;
}

.cart {
  min-height: 156px;
  margin-top: 12px;
  border: 1px dashed #d5dbd7;
  border-radius: 7px;
}
.cart-line {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.cart-line:last-child {
  border-bottom: 0;
}
.segment-tabs {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f4f6f5;
}
.segment-tabs button {
  min-width: 110px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}
.segment-tabs button.active {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 22, 19, 0.12);
  font-weight: 750;
}
.selected-template-note,
.muted-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.template-editor {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 360px;
  grid-gap: 28px;
  gap: 28px;
  align-items: start;
}
.template-form h3 {
  margin: 24px 0 4px;
  font-size: 16px;
}
.template-field-list {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}
.template-field {
  min-height: 52px;
  padding: 5px 9px 5px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.template-field[role="option"] {
  cursor: pointer;
}
.template-field[role="option"]:hover {
  background: #f7fbf9;
}
.template-field.selected {
  background: var(--green-soft);
  box-shadow: inset 3px 0 0 var(--green);
}
.template-field[role="option"]:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.template-field:last-child {
  border-bottom: 0;
}
.template-field-main {
  flex: 1 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}
.template-field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.template-field.disabled-field {
  color: var(--muted);
  background: #f8faf9;
}
.template-preview-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f4f6f5;
}
.template-preview-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.template-preview-title strong {
  font-size: 14px;
}
.template-preview-title .button {
  min-height: 34px;
  padding: 6px 11px;
}
.template-test-printer {
  width: 100%;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}
.template-test-printer > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.template-test-printer select {
  width: 100%;
}
.template-test-empty {
  width: 100%;
  color: var(--warning) !important;
}
.template-test-result {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
}
.template-test-result.success {
  color: var(--green-dark);
  background: var(--green-soft);
}
.template-test-result.error {
  color: var(--danger);
  background: #fff0ef;
}
.template-preview-wrap small {
  color: var(--muted);
}
.template-preview-source {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.template-preview-source strong {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 11px;
}
.template-preview-source span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-preview-page {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfd5d1;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 22, 19, 0.1);
}
.free-layout-canvas {
  position: absolute;
  inset: 0;
  transform-origin: center;
  touch-action: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  container-type: size;
}
.free-layout-item {
  position: absolute;
  display: flex;
  align-items: center;
  min-width: 3%;
  min-height: 3%;
  overflow: hidden;
  border: 1px dashed transparent;
  color: #000;
  font-weight: 600;
  line-height: 1;
  white-space: normal;
  cursor: move;
  touch-action: none;
}
.free-layout-value {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  align-items: flex-start;
  overflow: hidden;
  line-height: 1.1;
  white-space: normal;
}
.free-layout-text {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.1;
}
.free-layout-item.merchant-code-field .free-layout-text,
.template-preview-field.merchant-code-field {
  overflow-wrap: normal;
  word-break: normal;
}
.free-layout-arrow {
  display: block;
  width: 100%;
  height: 100%;
}
.free-layout-arrow polygon {
  fill: #000;
}
.template-preview-inline-arrow {
  display: block;
  width: 84px;
  height: 30px;
}
.template-preview-inline-arrow polygon {
  fill: #000;
}
.free-layout-item.selected {
  overflow: visible;
  border-color: var(--green);
  background: rgba(17, 145, 79, 0.06);
}
.free-layout-qr {
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
}
.free-layout-resizer {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 2px;
  background: var(--green);
  cursor: nwse-resize;
  touch-action: none;
}
.free-layout-item.selected .free-layout-resizer {
  display: block;
}
.free-font-editor {
  display: grid;
  width: 100%;
  grid-template-columns: auto auto minmax(90px, 1fr) 82px;
  align-items: center;
  grid-gap: 8px 12px;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.free-font-editor > strong {
  color: var(--green-dark);
}
.free-font-editor input[type="range"] {
  width: 100%;
}
.free-font-number {
  display: flex;
  align-items: center;
  gap: 4px;
}
.free-font-number input {
  width: 58px;
  height: 34px;
  padding: 4px 6px;
}
.free-font-editor > small {
  grid-column: 1 / -1;
}
.free-text-alignment {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.free-text-alignment > div {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.free-text-alignment button {
  min-width: 58px;
  height: 32px;
  border: 0;
  border-right: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.free-text-alignment button:last-child {
  border-right: 0;
}
.free-text-alignment button.active {
  background: var(--green);
  color: #fff;
}
.template-preview-content {
  position: absolute;
  inset: 8%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  transform-origin: center;
  color: #000;
}
.template-preview-content.qr-right {
  flex-direction: row;
  align-items: center;
}
.template-preview-text {
  min-width: 0;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  overflow: hidden;
}
.template-preview-field {
  display: block;
  width: 100%;
  margin: 0;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  white-space: pre-line;
  overflow: hidden;
  text-overflow: ellipsis;
}
.template-preview-field:hover,
.template-preview-field.selected,
.template-preview-qr-button:hover,
.template-preview-qr-button.selected {
  border-color: var(--green);
  background: rgba(17, 145, 79, 0.08);
}
.template-preview-field:focus-visible,
.template-preview-qr-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.template-preview-text .strong {
  font-size: 14px;
  font-weight: 800;
}
.template-preview-qr-button {
  width: 42%;
  max-height: 68%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #000;
  cursor: pointer;
}
.template-preview-qr {
  display: block;
  width: 100%;
  height: 100%;
}
.toast {
  position: fixed;
  left: 15px;
  right: 15px;
  bottom: 10px;
  z-index: 500;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #121814;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #f7f8f7;
}
.login-visual {
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: #101613;
}
.login-visual h1 {
  margin: 24px 0 12px;
  font-size: 40px;
}
.login-visual p {
  max-width: 540px;
  color: #c7cec9;
  font-size: 16px;
  line-height: 1.75;
}
.login-features {
  margin-top: 28px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e7ebe8;
}
.login-card-wrap {
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(16, 22, 19, 0.12);
}
.login-card h2 {
  margin: 18px 0 6px;
  font-size: 26px;
}
.login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
}
.login-card form {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}
.login-card .button {
  width: 100%;
  height: 46px;
  margin-top: 4px;
}

@media (max-width: 980px) {
  :root {
    --nav-width: 76px;
  }
  .brand-name,
  .top-divider,
  .shop-context,
  .today,
  .account-name {
    display: none;
  }
  .page {
    padding: 22px 18px 26px;
  }
  .nav-item {
    height: 78px;
    font-size: 12px;
  }
  .split-settings {
    grid-template-columns: 1fr;
  }
  .template-editor {
    grid-template-columns: 1fr;
  }
  .template-preview-wrap {
    position: static;
  }
  .form-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .span-2,
  .span-3 {
    grid-column: span 3;
  }
  .span-4,
  .span-6,
  .span-9 {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-width: 64px;
  }
  .erp-topbar {
    padding: 0 12px;
  }
  .nav-item {
    height: 68px;
    gap: 4px;
    font-size: 10px;
  }
  .nav-item svg {
    font-size: 19px;
  }
  .page {
    padding: 16px 12px 20px;
  }
  .page-header {
    flex-direction: column;
  }
  .page-header h1 {
    font-size: 22px;
  }
  .page-actions,
  .toolbar {
    width: 100%;
  }
  .search-box {
    width: 100%;
  }
  .stocking-summary-bar > .search-box {
    width: 220px;
    flex-basis: 220px;
  }
  .stats-grid,
  .stats-grid.four {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid > * {
    grid-column: 1 !important;
  }
  .settings-tabs {
    overflow-x: auto;
    padding: 0 10px;
  }
  .settings-title {
    display: none;
  }
  .settings-tabs button {
    white-space: nowrap;
    padding: 0 12px;
  }
  .modal-backdrop {
    padding: 6px;
  }
  .modal {
    max-height: 98vh;
  }
  .modal.product-import-preview-modal {
    height: 98vh;
  }
  .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
}

.bundle-standard-member-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.bundle-standard-member-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--success, #16a34a);
}

.inventory-size-scheme-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.inventory-size-scheme-item {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}

.inventory-size-scheme-item > div:first-child {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.inventory-size-scheme-item small {
  color: var(--muted, #64748b);
}

.inventory-size-mapping-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.inventory-size-mapping-preview span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 5px;
  color: #31533f;
  background: #edf7f0;
  font-size: 12px;
  white-space: nowrap;
}

.inventory-size-short-label {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  color: #168252;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.inventory-size-short-label.bundle-kind-standard,
.bundle-icon-button.configured.bundle-kind-standard {
  color: #168252;
}

.inventory-size-short-label.bundle-kind-custom,
.bundle-icon-button.configured.bundle-kind-custom {
  color: #a16207;
}

button.sales-bundle-edit-badge {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

button.sales-bundle-edit-badge:hover,
button.sales-bundle-edit-badge:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

button.sales-bundle-edit-badge:disabled {
  cursor: wait;
  opacity: 0.65;
}

button.sales-bundle-create-badge {
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.sales-warehouse-spec-cell:hover button.sales-bundle-create-badge,
.sales-warehouse-spec-cell:focus-within button.sales-bundle-create-badge,
button.sales-bundle-create-badge:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.bundle-icon-button.configured.bundle-kind-custom {
  border-color: rgba(202, 138, 4, 0.45);
  background: rgba(234, 179, 8, 0.10);
}

.inventory-size-config-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease;
}

.warehouse-size-config-link {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a16207;
  font: inherit;
  cursor: pointer;
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.warehouse-size-config-link:hover,
.warehouse-size-config-link:focus-visible {
  -webkit-text-decoration-style: solid;
          text-decoration-style: solid;
}
.warehouse-size-config-link:disabled {
  cursor: default;
  text-decoration: none;
}
.warehouse-size-repair-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.warehouse-size-repair-summary p {
  margin: 0;
}
.inventory-size-config-button svg {
  width: 14px;
  height: 14px;
}
.inventory-size-config-button.configured {
  color: #168252;
  font-size: 11px;
  font-weight: 700;
  opacity: 1;
}
.color-name-inline-editable:hover .inventory-size-config-button,
.color-name-inline-editable:focus-within .inventory-size-config-button,
.inventory-size-config-button:focus-visible {
  opacity: 1;
}
.inventory-size-config-button:hover,
.inventory-size-config-button:focus-visible {
  background: rgba(18, 162, 84, 0.1);
}

.inventory-size-assignment-dialog {
  width: min(760px, calc(100vw - 32px));
}
.inventory-size-assignment-context {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-gap: 5px 14px;
  gap: 5px 14px;
  padding: 12px 14px;
  border: 1px solid #dce7e0;
  border-radius: 7px;
  background: #f8fbf9;
}
.inventory-size-assignment-context > span,
.inventory-size-assignment-context > small {
  color: var(--muted, #64748b);
}
.inventory-size-assignment-context > small {
  grid-column: 1 / -1;
}
.inventory-size-scheme-choices {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 12px;
}
.inventory-size-scheme-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-gap: 9px;
  gap: 9px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.inventory-size-scheme-choice.selected {
  border-color: #33a169;
  box-shadow: 0 0 0 2px rgba(22, 130, 82, 0.08);
  background: #f5fbf7;
}
.inventory-size-scheme-choice.disabled {
  color: #8b948f;
  background: #f7f8f7;
  cursor: not-allowed;
}
.inventory-size-scheme-choice.historical {
  grid-template-columns: 1fr max-content;
  border-color: #e2c270;
  background: #fff9e8;
}
.inventory-size-scheme-choice > div {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}
.inventory-size-scheme-choice small {
  color: var(--muted, #64748b);
  line-height: 1.45;
}
.inventory-size-assignment-preview {
  display: grid;
  grid-gap: 0;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 7px;
}
.inventory-size-assignment-preview > strong {
  padding: 10px 12px;
  background: #f7f9f8;
}
.inventory-size-assignment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  border-top: 1px solid #edf1ef;
}
.inventory-size-assignment-grid > * {
  padding: 8px 12px;
  border-right: 1px solid #edf1ef;
}
.inventory-size-assignment-grid > *:last-child {
  border-right: 0;
}
.inventory-size-assignment-grid.head {
  color: var(--muted, #64748b);
  background: #fbfcfb;
  font-size: 12px;
  font-weight: 650;
}

.modal.inventory-size-scheme-dialog {
  width: min(840px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.inventory-size-scheme-dialog > .modal-header,
.inventory-size-scheme-dialog > .modal-actions {
  flex-shrink: 0;
}
.inventory-size-scheme-dialog > .modal-body {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
.inventory-size-scheme-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
}
.inventory-size-scheme-fields > *,
.inventory-size-mapping-field,
.inventory-size-mapping-field input {
  min-width: 0;
  max-width: 100%;
}
.inventory-size-mapping-field {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}
.inventory-size-mapping-field > span {
  display: none;
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 650;
}
.inventory-size-mapping-field input {
  width: 100%;
}
.sales-warehouse-size-mapping-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.sales-size-mapping-editor {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.sales-size-mapping-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px;
  background: var(--green-soft);
}
.sales-size-mapping-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.sales-size-mapping-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.sales-size-mapping-table th,
.sales-size-mapping-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  overflow-wrap: anywhere;
}
.sales-size-mapping-table select {
  min-width: 0;
  width: 100%;
}
.sales-size-mapping-editor > .warning-text {
  padding: 0 12px 12px;
}
.inventory-size-mapping-editor {
  display: grid;
  min-width: 0;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 4px;
}

.inventory-size-mapping-head,
.inventory-size-mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.5fr) 34px;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
}

.inventory-size-mapping-head {
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 650;
}

.inventory-size-mapping-row button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
}

.inventory-size-mapping-row button:hover {
  color: #b42318;
  background: #fff1f0;
}

@media (max-width: 600px) {
  .inventory-size-scheme-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .inventory-size-mapping-head {
    display: none;
  }
  .inventory-size-mapping-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }
  .inventory-size-mapping-field {
    grid-column: 1;
  }
  .inventory-size-mapping-field > span {
    display: block;
  }
  .inventory-size-mapping-row > button {
    grid-column: 2;
    grid-row: 1 / 4;
  }
}

.warning-text {
  display: block;
  margin-top: 7px;
  color: #9a6700;
}

@media (max-width: 720px) {
  .inventory-size-scheme-item {
    grid-template-columns: 1fr;
  }
}

