/* 토큰: ../styles/workspace-module-tokens.css */
:root {
  --font: var(--font-sans);
  --display: var(--font-sans);
  --mono: var(--font-mono);
  --sidebar-w: 268px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  overflow: hidden;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  height: 100vh;
  width: 100vw;
}
.shell.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.shell.is-sidebar-collapsed .sidebar {
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  border: 0;
}

.sidebar {
  background: linear-gradient(180deg, var(--dark-lift) 0%, var(--sidebar) 50%, var(--dark-2) 100%);
  color: var(--sidebar-ink);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--dark-2);
  min-height: 0;
}
.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 14px;
  border-bottom: 1px solid var(--sidebar-line);
}
.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar-brand strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}
.sidebar-brand em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--sidebar-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.sidebar-nav {
  flex: 1;
  overflow: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-label {
  margin: 14px 10px 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: #9aabbf;
  letter-spacing: 0.1em;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
.nav-fold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.nav-fold:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav-fold__name {
  min-width: 0;
}
.nav-fold__btn {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #9aabbf;
}
.nav-group__kids {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-left: 4px;
}
.nav-group.is-open > .nav-group__kids {
  display: flex;
}
.nav-sub {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-sub .nav-item {
  flex: 1;
  min-width: 0;
  width: auto;
  overflow: hidden;
  white-space: nowrap;
}
.nav-barcode {
  flex-shrink: 0;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}
.nav-barcode:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}
.nav-item--combo + .nav-barcode:hover,
.nav-sub:has(.nav-item--combo.is-active) .nav-barcode {
  color: #fed7aa;
}
.nav-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  flex-shrink: 0;
}
.nav-item:first-child { margin-top: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); }
.nav-item.is-active {
  background: var(--sidebar-active);
  color: #bbf7d0;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-item--combo.is-active {
  background: rgba(234, 88, 12, 0.22);
  color: #ffd7a8;
  box-shadow: inset 3px 0 0 #f97316;
}
.sidebar-foot {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--sidebar-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(46, 172, 57, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 42%, var(--bg-deep) 100%);
}
.main.is-combo-view {
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(249, 115, 22, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 42%, var(--bg-deep) 100%);
}
.main.is-combo-view .topbar::before {
  background: #f97316;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 18px 24px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  flex-shrink: 0;
  position: relative;
}
.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}
.topbar__title-block { min-width: 0; padding-left: 10px; }
.eyebrow {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.topbar h1 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 750;
  letter-spacing: -0.03em;
}
.topbar-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.topbar__end {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}
.save-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.topbar__end > .btn {
  white-space: nowrap;
  height: 36px;
  align-self: center;
}
.scan-invite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  align-self: center;
}
.scan-invite__emo {
  font-size: 1.15rem;
  line-height: 1;
}
.scan-invite__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.scan-invite__copy em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scan-invite__copy strong {
  font-size: 12.5px;
  font-weight: 650;
}
.scan-invite.is-on {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-ink);
}
.tool-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tool-frame > iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #10141c;
}
.tool-frame .claim-gun-sim {
  flex: 1;
  border-right: 0;
}
.claim-gun-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(380px, 0.85fr);
}
.claim-gun-sim {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #0e141b;
}
.claim-gun-sim__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  color: #f4f7fb;
  font-size: 13px;
  flex-shrink: 0;
}
.claim-gun-sim__bar a {
  color: #d7e3f2;
  font-size: 12px;
}
.claim-gun-sim iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
.claim-gun-split .claim-gun-board {
  min-width: 0;
  min-height: 0;
}
.claim-gun {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 8px 28px;
}
.claim-gun__dock {
  padding: 22px 24px 20px;
  border: 1px solid #1c2430;
  background: linear-gradient(180deg, #121820 0%, #1a222c 100%);
  color: #f4f7fb;
}
.claim-gun__kicker {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa7b8;
}
.claim-gun__dock h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.claim-gun__dock > p {
  margin: 0 0 16px;
  color: #c5ced8;
  font-size: 13px;
}
.claim-gun__scan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #9aa7b8;
}
.claim-gun__scan input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #3d4a5c;
  background: #0d1218;
  color: #fff;
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.08em;
}
.claim-gun__idle,
.claim-gun__card {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--card);
}
.claim-gun__idle {
  color: var(--muted-2);
}
.claim-gun__badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}
.claim-gun__invoice {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 28px;
  letter-spacing: 0.06em;
}
.claim-gun__card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 14px;
}
.claim-gun__card dt {
  font-size: 11px;
  color: var(--muted-2);
}
.claim-gun__card dd {
  margin: 2px 0 0;
  font-weight: 650;
}
.claim-gun__sheet {
  width: 100%;
  margin: 0 0 16px;
}
.claim-gun__place {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}
.claim-gun__place label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  font-size: 12px;
}
.claim-gun__place select {
  height: 36px;
}
.claim-gun__grades {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
  margin: 10px 0 12px;
}
.claim-gun__grades label {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}
.claim-gun__grades input {
  width: 5.5rem;
  padding: 6px 8px;
}
.claim-gun__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.scan-share__url {
  margin: 0 22px 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  word-break: break-all;
}
.btn-kakao {
  border-color: #191919;
  background: #fee500;
  color: #191919;
}
.session-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  max-width: min(280px, 46vw);
}
.session-chip__role {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
}
.session-chip__email {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.toolbar[hidden] { display: none !important; }
.toolbar select[hidden] { display: none !important; }
.toolbar--list {
  background: #f8fafc;
}
.toolbar--list select { min-width: 140px; }
.toolbar select,
.toolbar input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
}
.toolbar select { min-width: 140px; }
#skuMaster,
.oms-pick--wide { min-width: 280px; max-width: 520px; flex: 1 1 280px; }
.toolbar--combo {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  background: #fff7ed;
  border-bottom-color: #fed7aa;
}
.toolbar--combo .btn-primary {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}
.toolbar--combo .combo-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
#comboBar .oms-pick--combo {
  min-width: 220px;
  width: 240px;
  max-width: 280px;
}
#comboBar input[type="number"] {
  width: 52px;
  flex: none;
  padding: 0 6px;
}
#comboBar input[type="text"] {
  min-width: 112px;
  width: 148px;
  flex: 0 0 auto;
}
#comboBar .btn,
#comboBar .toolbar-note {
  flex: 0 0 auto;
  white-space: nowrap;
}
.toolbar--inbound {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: flex-end;
  align-content: flex-end;
  overflow-x: auto;
  gap: 8px;
}
.toolbar--inbound .field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  flex: none;
  min-width: 0;
}
.toolbar--inbound .field > span {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
.toolbar--inbound .field--kind { width: 88px; }
.toolbar--inbound .field--wh { width: 168px; }
.toolbar--inbound .field--item { width: 260px; }
.toolbar--inbound .field--date { width: 148px; }
.toolbar--inbound .field--qty { width: 88px; }
.toolbar--inbound .field--supplier { width: 168px; }
.toolbar--inbound .field--price { width: 120px; }
.toolbar--inbound select,
.toolbar--inbound input,
.toolbar--inbound .oms-pick,
.toolbar--inbound .oms-pick__query {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
  height: 36px;
}
.toolbar--inbound .btn,
.toolbar--inbound .toolbar-note {
  flex: none;
  white-space: nowrap;
}
.toolbar--inbound .toolbar-note { padding-bottom: 8px; }
.btn-danger {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.row-modal__panel--confirm {
  width: min(420px, calc(100vw - 32px));
}
#brandName { min-width: 220px; }
.toolbar-count,
.toolbar-note {
  font-size: 12px;
  color: var(--muted);
}
.oms-sheet-more {
  margin: 12px 0 0;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.btn:disabled,
.btn:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.toolbar.is-readonly #rowEditBtn,
.toolbar.is-readonly #rowDeleteBtn {
  display: none !important;
}
.form-panel {
  display: grid;
  gap: 10px;
  padding: 12px 20px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.form-panel[hidden] { display: none !important; }
.form-panel__id {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.form-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 12px;
}
.form-panel__grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.form-panel__grid input,
.form-panel__grid select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: inherit;
}
.form-panel__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dash-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 28px;
  background: #f8fafc;
}

.hold-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 28px;
  background: #f8fafc;
}

.hold-card {
  max-width: 520px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hold-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 750;
  color: var(--dark, #1e2640);
}

.hold-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.hold-card.zone-card,
.zone-card {
  max-width: none;
  width: 100%;
}
.zone-step {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.zone-actor + .zone-step {
  border-top: 0;
  padding-top: 10px;
}
.zone-step__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark, #1e2640);
  letter-spacing: -0.01em;
}
.zone-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
}
.zone-form .field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  flex: none;
  min-width: 0;
}
.zone-form .field > span {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
.zone-actor {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--dark, #1e2640);
}
.zone-form .field--reason,
.field--reason {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(100%, 720px);
}
.field--reason > span {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.field--reason textarea,
#zoneReason {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
.zone-form .field--item { width: min(100%, 240px); }
.zone-form .field--qty { width: 100px; }
.zone-form select,
.zone-form input,
.zone-form .oms-pick,
.zone-form .oms-pick__query {
  width: 100%;
  min-width: 0;
  height: 36px;
}
.zone-avail,
.zone-form .toolbar-note {
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.zone-confirm {
  margin-top: 22px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.zone-confirm .zone-step__label {
  margin-bottom: 10px;
}
.zone-preview {
  margin-top: 0;
  overflow: auto;
}
.zone-preview__empty,
.zone-preview__sum,
.zone-preview__ask {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.zone-preview__ask {
  color: var(--dark, #1e2640);
  font-weight: 700;
}
.zone-preview__sum strong {
  color: var(--dark, #1e2640);
  font-weight: 700;
}
.zone-confirm__act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-top: 12px;
}
.zone-preview__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.zone-preview__table th,
.zone-preview__table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
}
.zone-preview__table th {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.zone-preview__table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dash {
  display: grid;
  gap: 16px;
  max-width: 1320px;
}
.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
}
.dash-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.dash-filter select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}
.dash-toolbar__hint {
  margin: 0;
  flex: 1 1 220px;
  font-size: 12px;
  color: var(--muted);
}
.dash-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.dash-chart__body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  min-height: 0;
  padding: 16px;
}
.dash-donut {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
}
.dash-donut__svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dash-donut__center {
  position: absolute;
  inset: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.dash-donut__center strong {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dash-donut__center span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}
.dash-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-height: 220px;
  overflow: auto;
}
.dash-legend__btn {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 8px;
  width: 100%;
  align-items: center;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dash-legend__btn:hover,
.dash-legend__btn.is-on { background: #eef8ef; }
.dash-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 99px;
}
.dash-legend__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}
.dash-legend__qty {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.dash-legend__pct {
  font-size: 11px;
  color: var(--muted);
  min-width: 2.6em;
  text-align: right;
}
.dash-bars {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}
.dash-bar {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dash-bar__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 650;
}
.dash-bar__meta strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.dash-bar__track {
  height: 10px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.dash-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.dash-bar:hover .dash-bar__meta span { color: #15803d; }
.dash-group + .dash-group { border-top: 1px solid var(--line); }
.dash-group__head {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  background: #f8fafc;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.dash-group__head:hover { background: #eef8ef; }
.dash-group__head strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.dash-group__sub {
  padding: 8px 14px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
}
.dash-empty {
  margin: 0;
  padding: 18px 16px;
  font-size: 13px;
  color: var(--muted);
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.dash-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.dash-kpi:hover { border-color: #c7f0cc; background: #f7fdf8; }
.dash-kpi--combo { background: #fff7ed; border-color: #fed7aa; }
.dash-kpi--combo:hover { background: #ffedd5; border-color: #fdba74; }
.dash-kpi--warn { background: #fffbeb; border-color: #fcd34d; }
.dash-kpi--warn:hover { background: #fef3c7; }
.dash-kpi__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.dash-kpi__value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dash-kpi--combo .dash-kpi__value { color: #c2410c; }
.dash-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.dash-panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dash-panel__head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.dash-panel__head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.dash-table-wrap { overflow: auto; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th,
.dash-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-align: left;
}
.dash-table th {
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.dash-table .num { text-align: right; font-family: var(--mono); }
.dash-table tbody tr { cursor: pointer; }
.dash-table tbody td { background: #fff; }
.dash-table tbody tr:nth-child(even) td { background: #f3f4f6; }
.dash-table tbody tr:hover td { background: #ecece8; }
.dash-table tbody tr.is-combo td { background: #fff4ec; }
.dash-table tbody tr.is-combo:nth-child(even) td { background: #f6e4d4; }
.dash-table tbody tr.is-combo:hover td { background: #edd8c6; }
.dash-table tbody tr.is-empty { cursor: default; }
.dash-table tbody tr.is-empty td {
  text-align: left;
  color: var(--muted);
  padding: 20px 12px;
}
@media (max-width: 980px) {
  .dash-split { grid-template-columns: minmax(0, 1fr); }
  .dash-chart__body { grid-template-columns: minmax(0, 1fr); }
}

.sheet-stage {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  background: #fff;
  gap: 0;
}
.sheet-stage.has-lot-hist .sheet-wrap {
  flex: 1 1 0;
  min-width: 0;
  padding-bottom: 0;
}
.sheet-stage.has-lot-hist .lot-hist-dock {
  align-self: stretch;
}
.sheet-stage[hidden] { display: none !important; }
.sheet-wrap {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 0 0 24px;
  background: #fff;
}
.sheet {
  --oms-check-w: 36px;
  --oms-brand-w: 0px;
  --oms-seq-w: 32px;
  --oms-erp-w: 0px;
  --oms-name-w: 0px;
  --oms-seq-left: var(--oms-check-w);
  --oms-brand-left: calc(var(--oms-check-w) + var(--oms-seq-w));
  --oms-pin-code-left: calc(var(--oms-check-w) + var(--oms-seq-w) + var(--oms-brand-w));
  --oms-pin-name-left: calc(var(--oms-check-w) + var(--oms-seq-w) + var(--oms-brand-w) + var(--oms-erp-w));
  --oms-row: #ffffff;
  --oms-row-alt: #f3f4f6;
  --oms-row-combo: #fff4ec;
  --oms-row-combo-alt: #f6e4d4;
  --oms-row-hover: #ecece8;
  --oms-row-combo-hover: #edd8c6;
  border-collapse: collapse;
  table-layout: fixed;
  width: max-content;
  min-width: max-content;
  max-width: none;
  font-size: 12px;
}
.sheet--readonly {
  --oms-check-w: 0px;
}
.sheet--narrow {
  width: max-content;
  min-width: 0;
}
.sheet.is-frozen tbody tr { cursor: pointer; }
.sheet th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--dark);
  color: #fff;
  font-weight: 650;
  font-size: 11px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 6px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.sheet td {
  border: 1px solid var(--line);
  padding: 0;
  background: var(--oms-row);
  white-space: nowrap;
  overflow: visible;
  vertical-align: middle;
}
.sheet tbody tr:nth-child(even) td { background: var(--oms-row-alt); }
.sheet tbody tr.is-combo td { background: var(--oms-row-combo); }
.sheet tbody tr.is-combo:nth-child(even) td { background: var(--oms-row-combo-alt); }
.sheet tr.is-combo td.check input { accent-color: #ea580c; }
.sheet tr.is-combo input:focus,
.sheet tr.is-combo select:focus {
  outline-color: rgba(234, 88, 12, 0.4);
}
.sheet tr.is-miss td { box-shadow: inset 3px 0 0 #ea580c; }
.sheet tr.is-combo.is-miss td,
.sheet tr.is-combo.is-miss:nth-child(even) td { background: var(--oms-row-combo-hover); }
.sheet tbody tr.is-picked td,
.sheet.is-frozen tbody tr:hover td { background: var(--oms-row-hover); }
.sheet tbody tr.is-combo.is-picked td,
.sheet.is-frozen tbody tr.is-combo:hover td { background: var(--oms-row-combo-hover); }
.sheet th.check,
.sheet td.check {
  position: sticky;
  left: 0;
  z-index: 6;
  width: var(--oms-check-w);
  min-width: var(--oms-check-w);
  max-width: var(--oms-check-w);
  text-align: center;
  padding: 0;
}
.sheet th.check { z-index: 10; background: var(--dark); }
.sheet td.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}
.sheet th.brand,
.sheet td.brand {
  position: sticky;
  left: var(--oms-brand-left);
  z-index: 4;
  width: var(--oms-brand-w);
  min-width: var(--oms-brand-w);
  max-width: var(--oms-brand-w);
}
.sheet th.brand { z-index: 8; background: var(--dark); }
.sheet th.seq,
.sheet td.seq {
  position: sticky;
  left: var(--oms-seq-left);
  z-index: 5;
  width: var(--oms-seq-w);
  min-width: var(--oms-seq-w);
  max-width: var(--oms-seq-w);
  text-align: center;
}
.sheet th.seq { z-index: 9; }
.sheet td.seq {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.sheet--pin-id th.pin-code,
.sheet--pin-id td.pin-code {
  position: sticky;
  left: var(--oms-pin-code-left);
  z-index: 3;
  width: var(--oms-erp-w);
  min-width: var(--oms-erp-w);
  max-width: var(--oms-erp-w);
}
.sheet--pin-id th.pin-code { z-index: 7; background: var(--dark); }
.sheet--pin-id th.pin-name,
.sheet--pin-id td.pin-name {
  position: sticky;
  left: var(--oms-pin-name-left);
  z-index: 2;
  width: var(--oms-name-w);
  min-width: var(--oms-name-w);
  max-width: var(--oms-name-w);
  box-shadow: 2px 0 0 var(--line);
}
.sheet--pin-id th.pin-name { z-index: 6; background: var(--dark); }
.sheet td.check,
.sheet td.brand,
.sheet td.seq,
.sheet--pin-id td.pin-code,
.sheet--pin-id td.pin-name {
  overflow: hidden;
  background-clip: padding-box;
}
.sheet td.check .lock,
.sheet td.brand .lock,
.sheet td.seq .lock,
.sheet--pin-id td.pin-code .lock,
.sheet--pin-id td.pin-name .lock {
  overflow: hidden;
}
.sheet td.act {
  padding: 4px 6px;
  overflow: visible;
}
.sheet-detail {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.stock-lots__table td.act {
  vertical-align: middle;
}
.stock-lots__table td.act .sheet-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  box-sizing: border-box;
}
.pallet-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pallet-open input {
  width: 4.5rem;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  text-align: center;
}
.pallet-open .sheet-detail:disabled {
  opacity: 0.4;
  cursor: default;
}
.sheet-detail:hover { border-color: #c7f0cc; background: #f7fdf8; }
.sheet-detail[aria-expanded="true"] { background: #eef8ef; border-color: #86efac; }
.stock-lots > td {
  padding: 0;
  background: #f8fafc;
  overflow: visible;
  white-space: normal;
  vertical-align: top;
}
.stock-lots__wrap,
.zone-lots,
.zone-lots__wrap {
  overflow: visible;
  max-width: none;
  width: max-content;
}
.stock-lots__table,
.zone-lots__table {
  width: max-content;
  min-width: max-content;
  max-width: none;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
.stock-lots__table th,
.stock-lots__table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: visible;
  text-align: left;
}
.stock-lots__table th {
  background: #eef2f7;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}
.stock-lots__table .num { text-align: right; font-family: var(--mono); }
.stock-lots__table .seq { text-align: center; font-family: var(--mono); color: var(--muted); }
.stock-lots__table tr.is-empty td { color: var(--muted); }
.stock-lots__table tbody td { background: #fff; }
.stock-lots__table tbody tr:nth-child(even) td { background: #f3f4f6; }
.stock-lots__table tr.lot.is-hist td { box-shadow: inset 0 0 0 1px #86efac; }
.lot-hist-dock {
  flex: 0 0 460px;
  width: 460px;
  min-width: 460px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: #fff;
}
.lot-hist-dock[hidden] { display: none !important; }
.lot-hist-dock__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.lot-hist-dock__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  color: #15803d;
  letter-spacing: -0.02em;
}
.lot-hist-dock__head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.lot-hist-dock__head .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.lot-hist-dock__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.lot-hist-dock__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 22px;
}
.lot-hist-list {
  margin: 0;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 10px;
  min-height: 100%;
  align-content: start;
}
.lot-hist-card {
  position: relative;
  margin: 0;
  padding: 10px 12px 11px;
  background: #fff;
  border: 1px solid var(--line);
}
.lot-hist-card::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #15803d;
  box-shadow: 0 0 0 3px #fff;
}
.lot-hist-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 11px;
}
.lot-hist-card__kind {
  font-weight: 750;
  letter-spacing: 0.04em;
}
.lot-hist-card__meta time {
  color: var(--muted);
  font-family: var(--mono);
}
.lot-hist-card__flow {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}
.lot-hist-card__facts,
.lot-hist-card__who,
.lot-hist-card__reason {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.lot-hist-card__facts {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
}
.lot-hist-card__who,
.lot-hist-card__reason {
  white-space: nowrap;
}
.lot-hist-card__reason { word-break: keep-all; }
.lot-hist-flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  white-space: nowrap;
}
.lot-hist-flow__arrow {
  color: #15803d;
  font-weight: 750;
}
.lot-hist-empty {
  margin: 0;
  padding: 10px 8px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 980px) {
  .sheet-stage.has-lot-hist { flex-direction: column; }
  .sheet-stage.has-lot-hist .lot-hist-dock,
  .lot-hist-dock {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 48vh;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
.zone-lots__table tbody td { background: #fff; }
.zone-lots__table tbody tr:nth-child(even) td { background: #f3f4f6; }
.zone-lots__table tr.is-picked td { background: #ecece8; }
.zone-lots__table td.num input {
  width: 88px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.sheet input,
.sheet select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 5px 6px;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
}
.sheet .lock {
  display: block;
  padding: 5px 6px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.sheet input:focus,
.sheet select:focus {
  outline: 2px solid rgba(46, 172, 57, 0.35);
  outline-offset: -2px;
}
.sheet .num input { text-align: right; font-family: var(--mono); }
.sheet th.lot-lead,
.sheet td.lot-lead { box-shadow: inset 3px 0 0 rgba(15, 23, 42, 0.2); }
.sheet--narrow th.seq,
.sheet--narrow td.seq {
  position: sticky;
  left: var(--oms-seq-left, var(--oms-check-w));
}
.sheet--narrow th.label,
.sheet--narrow td.label { position: static; }
.oms-pick {
  position: relative;
  display: block;
  min-width: 160px;
}
.oms-pick__query {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.oms-pick__query:focus {
  outline: 2px solid rgba(46, 172, 57, 0.28);
  outline-offset: -1px;
}
.oms-pick__query:disabled {
  background: #f8fafc;
  color: var(--muted);
}
.oms-pick__list {
  z-index: 80;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  overflow: auto;
}
.oms-pick__opt {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
}
.oms-pick__opt:hover,
.oms-pick__opt.is-on { background: #eef8ef; }
.toolbar--combo .oms-pick__opt:hover,
.toolbar--combo .oms-pick__opt.is-on,
.row-modal__panel.is-combo .oms-pick__opt:hover,
.row-modal__panel.is-combo .oms-pick__opt.is-on { background: #ffedd5; }
.oms-pick__empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}
.oms-pick--toolbar { width: 200px; }
.oms-pick-field { min-width: 0; }
.oms-pick-field .oms-pick { width: 100%; min-width: 0; }

.row-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}
.row-modal[hidden] { display: none !important; }
.row-modal.work-modal { z-index: 60; }
.row-modal__panel--work {
  width: min(360px, calc(100vw - 32px));
  align-items: center;
  text-align: center;
  padding: 28px 24px 24px;
  gap: 0;
}
.work-modal__spinner {
  width: 28px;
  height: 28px;
  margin: 0 0 14px;
  border: 3px solid #e2e8f0;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: work-spin 0.7s linear infinite;
}
@keyframes work-spin {
  to { transform: rotate(360deg); }
}
.row-modal__panel--work h2 {
  margin: 0;
  font-size: 16px;
}
.row-modal__panel {
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 32px));
  max-height: 86vh;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  zoom: 0.9;
}
.row-modal__panel.is-combo {
  background: #fff7ed;
  box-shadow: 0 16px 40px rgba(154, 52, 18, 0.18);
}
.row-modal__head {
  flex: 0 0 auto;
  margin: 0 0 14px;
}
.row-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
}
.row-modal__panel.is-combo .row-modal__eyebrow { color: #c2410c; }
.row-modal__panel h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.row-modal__hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.row-modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.modal-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.row-modal__panel.is-combo .modal-sec { background: #fffdf9; border-color: #fed7aa; }
.modal-sec__title,
.modal-part__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.modal-part {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
}
.modal-part + .modal-part {
  border-top: 1px dashed #e7d5c4;
  margin-top: 4px;
  padding-top: 12px;
}
.row-modal .form-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.row-modal .form-panel__grid.modal-grid--parts {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) 88px;
}
.row-modal .form-panel__grid.modal-grid--lots {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.row-modal .form-panel__grid > label:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.row-modal .form-panel__grid.modal-grid--parts > label:last-child:nth-child(odd),
.row-modal .form-panel__grid.modal-grid--lots > label:last-child:nth-child(odd) {
  grid-column: auto;
}
.row-modal .form-panel__grid label {
  min-width: 0;
  width: 100%;
}
.row-modal .form-panel__grid input[type="hidden"] { display: none; }
.row-modal .form-panel__grid input,
.row-modal .form-panel__grid select,
.row-modal .form-panel__grid .oms-pick,
.row-modal .form-panel__grid .oms-pick__query {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.row-modal .form-panel__grid .lock {
  min-height: 36px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-modal__actions {
  flex: 0 0 auto;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .row-modal .form-panel__grid,
  .row-modal .form-panel__grid.modal-grid--parts,
  .row-modal .form-panel__grid.modal-grid--lots {
    grid-template-columns: minmax(0, 1fr);
  }
  .row-modal .form-panel__grid > label:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.main.is-dash-view .dash-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px 16px;
}
.wh-map {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wh-map--empty {
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.wh-map--empty p,
.wh-map__empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.wh-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wh-map__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wh-map__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.wh-map__tools .btn-primary {
  background: var(--ink, #1e2640);
  border-color: var(--ink, #1e2640);
  color: #fff;
}
.wh-map__tab {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.wh-map__tab.is-on {
  border-color: var(--ink, #1e2640);
  background: var(--ink, #1e2640);
  color: #fff;
}
.wh-map__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 12px;
}
.wh-map__floor {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  background: #f4f6f8;
  cursor: grab;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  outline: none;
}
.wh-map__floor:focus {
  box-shadow: inset 0 0 0 2px rgba(30, 38, 64, 0.18);
}
.wh-map__floor.is-edit {
  cursor: grab;
}
.wh-map__floor.is-place {
  cursor: crosshair;
}
.wh-map__floor.is-pan {
  cursor: grabbing;
}
.wh-map__world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  background:
    linear-gradient(#eef1f4 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, #eef1f4 1px, transparent 1px) 0 0 / 48px 48px,
    #f4f6f8;
}
.wh-map__nav {
  display: flex;
  gap: 6px;
}
.wh-map__zoom {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1e2640;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.wh-map__zoom:hover {
  background: #f4f6f8;
}
.wh-map__ghost {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
  background: rgba(30, 38, 64, 0.1);
  box-shadow: inset 0 0 0 2px #1e2640;
}
.wh-map__tip {
  position: absolute;
  z-index: 3;
  min-width: 140px;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(30, 38, 64, 0.12);
  pointer-events: none;
  font-size: 12px;
  line-height: 1.35;
}
.wh-map__tip strong,
.wh-map__tip em {
  display: block;
}
.wh-map__tip em {
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
}
.wh-map__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  color: #1e2640;
}
.wh-map__cell {
  position: absolute;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 2px 3px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  appearance: none;
  outline: none;
  background: var(--dot, #1e2640);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  line-height: 1.1;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
.wh-map.is-edit .wh-map__cell {
  cursor: grab;
}
.wh-map__cell span {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  font-size: 10px;
  font-weight: 750;
  pointer-events: none;
}
.wh-map__cell.is-set {
  background: var(--dot, #1e2640);
  color: #fff;
}
.wh-map__cell.is-on {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dot, #1e2640);
  z-index: 4;
}
.wh-map__cell:active,
.wh-map__cell:focus {
  transform: none;
  filter: none;
}
.wh-map__cell.is-drag {
  cursor: grabbing;
  z-index: 5;
  opacity: 0.92;
}
.wh-map__step {
  display: block;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 0;
  background: #fff;
  color: #1e2640;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
}
.wh-map__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.wh-map__swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
}
.wh-map__swatch.is-on {
  border-color: #1e2640;
  box-shadow: inset 0 0 0 2px #fff;
}
.wh-map__side {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
}
.wh-map__ask,
.wh-map__sum {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
}
.wh-map__sum strong {
  font-variant-numeric: tabular-nums;
}
.wh-map__zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.wh-map__zone {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.wh-map__zone.is-on {
  border-color: #1e2640;
  background: #1e2640;
  color: #fff;
}
.wh-map__stock {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.wh-map__stock li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.wh-map__stock strong {
  display: block;
}
.wh-map__stock em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
}
.wh-map__stock b {
  font-variant-numeric: tabular-nums;
}
.audit-board { display: grid; gap: 16px; padding: 8px 4px 24px; }
.audit-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.audit-panel h2 { margin: 0; font-size: 15px; }
.audit-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.audit-scopes { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.audit-scope-line span { display: flex; gap: 6px; align-items: center; }
.audit-zone-add { min-width: 36px; height: 36px; padding: 0 10px; }
.audit-zone-add[hidden] { display: none !important; }
.audit-row label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.audit-row select,
.audit-row input {
  height: 36px;
  min-width: 140px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.audit-cards { display: grid; gap: 8px; }
.audit-card {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.audit-card.is-on { border-color: var(--accent); }
.audit-card em { font-style: normal; color: var(--muted); font-size: 12px; }
.audit-count { display: flex; flex-wrap: wrap; gap: 6px; align-items: end; }
.audit-count input { width: 72px; height: 32px; }
.audit-var--minus { color: #b91c1c; font-weight: 700; }
.audit-var--plus { color: #047857; font-weight: 700; }
.audit-meta { margin: 0; font-size: 13px; }
.audit-past { margin: 0; padding-left: 18px; font-size: 13px; }
.audit-past li { margin: 4px 0; }
@media (max-width: 900px) {
  .wh-map__body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(240px, 42vh) minmax(0, 1fr);
  }
}

