/* Shared V1 workbench components used across business tabs. */
.workbench-svg-icon,
.workbench-image-icon,
.workbench-action-icon,
.workbench-title-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.workbench-action-icon {
  width: 16px;
  height: 16px;
}

.workbench-title-icon {
  width: 18px;
  height: 18px;
}

/* Shared skeleton classes for cross-tab layout and maintenance panels. */
#tab-today.is-active,
#tab-sku.is-active,
#tab-bom.is-active,
#tab-inbound.is-active,
#tab-rules.is-active {
  display: grid;
  gap: var(--workbench-section-gap);
}

.workbench-split-layout {
  display: grid;
  min-width: 0;
  align-items: start;
}

.workbench-main {
  display: grid;
  min-width: 0;
  gap: var(--workbench-section-gap);
}

.workbench-overview-panel,
.workbench-task-panel,
.workbench-maintenance-panel {
  min-width: 0;
}

.workbench-maintenance-panel {
  overflow: hidden;
  border: 1px solid var(--v1-line);
  border-radius: var(--workbench-panel-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 30, 34, 0.035);
}

.workbench-maintenance-panel > .section-head {
  min-height: 64px;
  align-items: center;
  padding: 12px 14px;
}

.workbench-panel-grid {
  display: grid;
  min-width: 0;
  gap: var(--workbench-section-gap);
}

.workbench-panel-grid--maintenance {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.workbench-panel-wide {
  grid-column: 1 / -1;
}

.workbench-filter-grid {
  min-width: 0;
}

.workbench-button-row {
  min-width: 0;
}

/* Search foundation: Tab 2 is the visual reference; modifiers only change composition. */
label.workbench-search-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #74737c;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.1;
}

input.workbench-search-input {
  box-sizing: border-box;
  width: 100%;
  height: var(--workbench-control-height);
  border: 1px solid var(--v1-line);
  border-radius: var(--workbench-control-radius);
  background: #fff;
  box-shadow: none;
  color: #34343b;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 550;
}

input.workbench-search-input::placeholder {
  color: #9998a0;
  font-weight: 500;
}

input.workbench-search-input:focus {
  border-color: var(--v1-primary);
  outline: 2px solid rgba(98, 104, 241, 0.18);
  outline-offset: 1px;
}

.workbench-search {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.workbench-search--submit .workbench-search-field > span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.workbench-search-button {
  display: inline-flex;
  width: auto;
  min-width: 82px;
  min-height: var(--workbench-control-height);
  height: var(--workbench-control-height);
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--v1-primary);
  border-radius: var(--workbench-control-radius);
  background: var(--v1-primary);
  box-shadow: none;
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.workbench-search-button:hover:not(:disabled) {
  border-color: var(--v1-primary-2);
  background: var(--v1-primary-hover);
  box-shadow: none;
  color: #fff;
}

.workbench-search-button:focus-visible {
  outline: 2px solid rgba(98, 104, 241, 0.28);
  outline-offset: 2px;
}

.workbench-search-button .workbench-action-icon {
  width: 16px;
  height: 16px;
}

.workbench-search--today {
  grid-area: search;
}

.workbench-filter-panel {
  min-width: 0;
  border: 1px solid var(--v1-line);
  border-radius: var(--workbench-panel-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 30, 34, 0.035);
  padding: 12px 14px;
}

.workbench-filter-panel--catalog .workbench-filter-grid {
  grid-template-columns: minmax(360px, 1.6fr) repeat(4, minmax(132px, 0.72fr)) 150px;
  gap: 10px;
  align-items: end;
}

.workbench-filter-panel--catalog .workbench-filter-grid--sku {
  grid-template-columns: minmax(260px, 1.35fr) repeat(5, minmax(112px, 0.68fr)) 150px;
}

.workbench-filter-panel--catalog .workbench-filter-grid--today {
  grid-template-columns: minmax(180px, 0.72fr) minmax(190px, 0.78fr) minmax(360px, 1.5fr) 150px;
}

.workbench-filter-panel--catalog .workbench-filter-grid--inbound {
  grid-template-columns: minmax(180px, 0.72fr) minmax(190px, 0.78fr) minmax(360px, 1.5fr) 150px;
}

.workbench-filter-grid--inbound .workbench-button-row {
  grid-column: -2 / -1;
}

.workbench-filter-panel--catalog .workbench-filter-grid label:not(.workbench-search-field) {
  display: grid;
  gap: 6px;
  color: #74737c;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.1;
}

.workbench-filter-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #74737c;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.1;
}

.workbench-filter-field > span {
  display: block;
}

.workbench-filter-field--category .workbench-filter-tabs {
  min-height: 36px;
  align-items: center;
}

.workbench-filter-field--category {
  min-width: max-content;
}







.workbench-filter-panel--catalog .workbench-filter-grid select {
  height: var(--workbench-control-height);
  border-color: var(--v1-line);
  border-radius: var(--workbench-control-radius);
  background: #fff;
  color: #34343b;
  font-size: 13px;
  font-weight: 550;
}

.workbench-filter-panel--catalog .workbench-button-row {
  gap: 7px;
}

.workbench-filter-panel--catalog .workbench-button-row button {
  height: var(--workbench-control-height);
  border-radius: var(--workbench-control-radius);
  border-color: var(--v1-line);
  color: #4d4c54;
  font-size: 13px;
  font-weight: 600;
}

.workbench-filter-panel--catalog .workbench-button-row .primary {
  border-color: var(--v1-primary);
  background: var(--v1-primary);
  color: #fff;
}

.workbench-filter-primary {
  display: grid;
  min-width: 0;
  gap: 0;
}

.workbench-filter-row {
  min-width: 0;
}

.workbench-filter-row--quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  margin-top: 10px;
  border-top: 1px solid #e8e7e2;
  padding-top: 10px;
}

.workbench-filter-row--quick > span,
.workbench-filter-row > span {
  padding-top: 6px;
  color: #74737c;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

.workbench-filter-more {
  border-top: 1px solid #e8e7e2;
  margin-top: 10px;
  padding-top: 0;
}

.workbench-filter-more[hidden] {
  display: none;
}

.workbench-filter-more .workbench-filter-row--quick {
  margin-top: 0;
  border-top: 0;
}

.workbench-filter-footer {
  display: flex;
  min-width: 0;
  min-height: 31px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 10px;
  border-top: 1px solid #e8e7e2;
  padding-top: 6px;
}

#tab-today .workbench-filter-footer .filter-status-toggle {
  min-height: 24px;
  line-height: 1.2;
}

.workbench-filter-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  border: 1px solid #e1e0da;
  border-radius: 8px;
  background: #f4f3ef;
  padding: 3px;
}

.workbench-filter-tabs button {
  min-height: 28px;
  border: 1px solid #e7e5df;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: #6f6e77;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.workbench-filter-tabs button:hover:not(:disabled) {
  border-color: #d8d6d0;
  background: #fff;
  color: #4f4e57;
}

.workbench-filter-tabs button.is-active,
.workbench-filter-tabs button[aria-selected="true"] {
  border-color: #d2d2f5;
  background: #f5f5ff;
  box-shadow: 0 1px 2px rgba(67, 65, 150, 0.08);
  color: #514fb7;
}

.workbench-filter-panel .workbench-filter-row[hidden] {
  display: none !important;
}

.workbench-filter-panel--today .workbench-chip-list,
.workbench-chip-list--quick,
.workbench-chip-list--inbound {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}

.workbench-chip-list.risk-segmented {
  width: auto;
  gap: 6px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workbench-chip-list button.task-filter-chip {
  display: inline-flex;
  position: static;
  min-width: auto;
  min-height: var(--workbench-chip-height);
  transform: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #deddd7;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: #5d5c65;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.workbench-chip-list button.task-filter-chip:hover {
  border-color: #bab8ef;
  background: #f6f6ff;
  box-shadow: none;
  transform: none;
}

.workbench-chip-list button.task-filter-chip strong {
  position: static;
  top: auto;
  right: auto;
  display: inline;
  align-items: center;
  min-width: auto;
  min-height: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #77767f;
  font-size: 12px;
  line-height: inherit;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.workbench-chip-list button.task-filter-chip.is-active {
  border-color: #b9bbf5;
  background: var(--v1-primary-soft);
  box-shadow: none;
  color: var(--v1-primary-2);
  transform: none;
}

.workbench-chip-list button.task-filter-chip.is-active strong {
  background: transparent;
  color: var(--v1-primary-2);
}

#tab-today .workbench-chip-list button.task-filter-chip.risk-chip.is-high:not(.is-active),
#tab-sku .workbench-chip-list button.task-filter-chip.risk-chip.is-high:not(.is-active),
#tab-inbound .workbench-chip-list button.inbound-filter-chip.tag-danger:not(.is-active),
#tab-bom .workbench-chip-list button.task-filter-chip.tag-danger:not(.is-active) {
  border-color: rgba(184, 66, 50, 0.22);
  background: #fff8f6;
  color: #874135;
}

#tab-today .workbench-chip-list button.task-filter-chip.risk-chip.is-high:not(.is-active) strong {
  color: #b84232;
}

#tab-today .workbench-chip-list button.task-filter-chip.risk-chip.is-medium:not(.is-active),
#tab-sku .workbench-chip-list button.task-filter-chip.risk-chip.is-medium:not(.is-active),
#tab-inbound .workbench-chip-list button.inbound-filter-chip.tag-warning:not(.is-active),
#tab-bom .workbench-chip-list button.task-filter-chip.tag-warning:not(.is-active) {
  border-color: rgba(191, 124, 25, 0.24);
  background: #fffaf0;
  color: #84601f;
}

#tab-today .workbench-chip-list button.task-filter-chip.risk-chip.is-medium:not(.is-active) strong {
  color: #a86412;
}

#tab-today .workbench-chip-list button.task-filter-chip.risk-chip.is-normal:not(.is-active),
#tab-sku .workbench-chip-list button.task-filter-chip.risk-chip.is-normal:not(.is-active),
#tab-inbound .workbench-chip-list button.inbound-filter-chip.tag-success:not(.is-active),
#tab-bom .workbench-chip-list button.task-filter-chip.tag-success:not(.is-active) {
  border-color: rgba(44, 111, 95, 0.2);
  background: #f6fbf8;
  color: #42685e;
}

#tab-today .workbench-chip-list button.task-filter-chip.product-chip.is-assembly:not(.is-active) {
  border-color: rgba(23, 79, 67, 0.22);
  background: #f4faf7;
  color: #315f53;
}

#tab-today .workbench-chip-list button.task-filter-chip.product-chip.is-soon:not(.is-active) {
  border-color: rgba(44, 111, 146, 0.22);
  background: #f3f9fd;
  color: #2f6f92;
}

#tab-today .workbench-chip-list button.task-filter-chip.product-chip.is-print3d:not(.is-active) {
  border-color: rgba(168, 100, 18, 0.2);
  background: #fffaf0;
  color: #946016;
}

.workbench-priority-overview {
  overflow: hidden;
  border: 1px solid var(--v1-line);
  border-radius: var(--workbench-panel-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 30, 34, 0.035);
}

.workbench-priority-overview > .section-head {
  display: none;
}

.workbench-priority-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.workbench-priority-metrics .metric-card {
  display: grid;
  position: relative;
  min-height: 72px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: visible;
  border: 0;
  border-right: 1px solid #e8e7e2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 10px 14px;
}

.workbench-priority-metrics .metric-card:last-child {
  border-right: 0;
}

.workbench-priority-metrics .metric-card > div:not(.metric-icon) {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
}

.workbench-priority-metrics .metric-card span {
  overflow: hidden;
  color: #6f6e78;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-priority-metrics .metric-card strong {
  justify-self: end;
  margin: 0;
  color: #27272d;
  font-size: 25px;
  font-weight: 680;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.workbench-priority-metrics .metric-card p {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 14px;
  z-index: 30;
  width: max-content;
  max-width: min(260px, calc(100vw - 48px));
  margin: 0;
  border: 1px solid var(--v1-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(30, 30, 34, 0.12);
  color: #5d5c65;
  opacity: 0;
  padding: 7px 9px;
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.3;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.workbench-priority-metrics .metric-card:hover p,
.workbench-priority-metrics .metric-card:focus-visible p {
  opacity: 1;
  transform: translateY(0);
}

.workbench-priority-metrics .metric-card:hover,
.workbench-priority-metrics .metric-card.is-active {
  border-color: #e8e7e2;
  background: #f8f8ff;
  box-shadow: inset 0 -2px 0 var(--v1-primary);
  transform: none;
}

.workbench-priority-metrics .metric-card .metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f6f5f1;
  box-shadow: none;
  opacity: 0.9;
}

.workbench-priority-metrics .metric-card .metric-icon .workbench-metric-icon {
  width: 20px;
  height: 20px;
}

.workbench-priority-metrics .metric-card.red .metric-icon {
  color: var(--v1-danger);
}

.workbench-priority-metrics .metric-card.orange .metric-icon {
  color: var(--v1-warning);
}

.workbench-priority-metrics .metric-card.blue .metric-icon {
  color: var(--v1-primary-2);
}

.workbench-priority-metrics .metric-card.purple .metric-icon {
  color: var(--v1-info);
}

.workbench-priority-metrics .metric-card.teal .metric-icon {
  color: #2c6f5f;
}

#tab-inbound .inbound-priority-panel > .section-head {
  display: none;
}

#tab-inbound .workbench-main > .panel.inbound-priority-panel {
  display: block;
}

#tab-inbound .workbench-chip-list button.inbound-filter-chip.tag-info:not(.is-active),
#tab-bom .workbench-chip-list button.task-filter-chip.tag-info:not(.is-active) {
  border-color: rgba(47, 111, 146, 0.22);
  background: #f3f9fd;
  color: #2f6f92;
}

#tab-sku .workbench-chip-list button.sku-quick-view.tag-danger:not(.is-active) {
  border-color: rgba(184, 66, 50, 0.22);
  background: #fff8f6;
  color: #874135;
}

#tab-sku .workbench-chip-list button.sku-quick-view.tag-warning:not(.is-active) {
  border-color: rgba(191, 124, 25, 0.24);
  background: #fffaf0;
  color: #84601f;
}

#tab-sku .workbench-chip-list button.sku-quick-view.tag-info:not(.is-active) {
  border-color: rgba(47, 111, 146, 0.22);
  background: #f3f9fd;
  color: #2f6f92;
}

#tab-sku .workbench-chip-list button.sku-quick-view.tag-purple:not(.is-active) {
  border-color: rgba(112, 86, 183, 0.22);
  background: #f7f4fc;
  color: #6b55a5;
}

#tab-sku .workbench-chip-list button.sku-quick-view.tag-success:not(.is-active) {
  border-color: rgba(44, 111, 95, 0.2);
  background: #f6fbf8;
  color: #42685e;
}

#tab-sku .workbench-chip-list button.sku-quick-view.tag-neutral:not(.is-active) {
  border-color: #dfe1e8;
  background: #f6f7f9;
  color: #6d7180;
}

#tab-sku .workbench-chip-list button.sku-quick-view:not(.is-active) strong {
  color: currentColor;
}


























































































































































































@media (max-width: 1080px) {
  .workbench-filter-panel--catalog .workbench-filter-grid--sku,
  .workbench-filter-panel--catalog .workbench-filter-grid--today,
  .workbench-filter-panel--catalog .workbench-filter-grid--inbound {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-filter-grid--inbound .workbench-button-row {
    grid-column: 1 / -1;
  }

  .workbench-priority-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .workbench-search--submit {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-search--submit .workbench-search-button {
    width: 100%;
  }

  .workbench-priority-metrics {
    grid-template-columns: 1fr;
  }
}

.workbench-table-panel,
#tab-sku .workbench-table-panel {
  overflow: hidden;
  border-color: var(--v1-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 30, 34, 0.04);
}

.workbench-table-wrap,
#tab-sku .workbench-table-wrap {
  scrollbar-color: rgba(98, 104, 241, 0.28) #efeee9;
  scrollbar-width: thin;
}

.workbench-table-wrap--compact {
  border: 1px solid var(--v1-line);
  border-radius: 8px;
  margin: 0 16px 16px;
  overflow: auto;
}

.workbench-table-wrap::-webkit-scrollbar,
#tab-sku .workbench-table-wrap::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.workbench-table-wrap::-webkit-scrollbar-track,
#tab-sku .workbench-table-wrap::-webkit-scrollbar-track {
  background: #efeee9;
}

.workbench-table-wrap::-webkit-scrollbar-thumb,
#tab-sku .workbench-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #efeee9;
  border-radius: 999px;
  background: rgba(98, 104, 241, 0.28);
}

#tab-bom.is-active {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

#tab-bom .bom-list-panel {
  --bom-finished-column: 330px;
  --bom-component-columns: minmax(210px, 1fr) 58px 78px 78px 94px 104px 112px;
  width: 100%;
  min-height: 0;
}

#tab-bom .workbench-filter-grid--bom {
  grid-template-columns: minmax(360px, 1fr) 220px 180px 90px;
  gap: 10px;
}

#tab-bom .workbench-filter-tabs {
  width: 100%;
  justify-content: stretch;
}

#tab-bom .workbench-filter-tabs button {
  flex: 1 1 0;
}

#tab-bom .workbench-button-row {
  grid-template-columns: 1fr;
}

#tab-bom #bomClearPin {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #5c4fc1;
  padding: 4px 0;
  font-size: 11.5px;
  font-weight: 680;
}

#tab-bom #bomClearPin:hover,
#tab-bom #bomClearPin:focus-visible {
  text-decoration: underline;
}

#tab-bom .bom-ledger-content {
  min-height: 0;
  overflow: auto;
}

#tab-bom .bom-relation-summary {
  color: var(--v1-muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  white-space: nowrap;
}

#tab-bom .bom-ledger-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  min-height: 42px;
  grid-template-columns: var(--bom-finished-column) var(--bom-component-columns);
  align-items: center;
  border-bottom: 1px solid var(--v1-line);
  background: #f4f3ef;
  color: var(--workbench-table-head-text);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

#tab-bom .bom-ledger-head span {
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1px solid #e5e3de;
  padding: 0 10px;
}

#tab-bom .bom-ledger-head span:first-child {
  border-left: 0;
  padding-left: 16px;
}

#tab-bom .bom-ledger-list {
  display: grid;
  min-height: 0;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 9px;
  padding: 9px 0 12px;
}

@media (min-width: 1181px) {
  #tab-bom.is-active {
    --daily-workbench-main-block-padding: 44px;
    height: calc(100vh - var(--daily-workbench-main-block-padding));
    height: calc(100dvh - var(--daily-workbench-main-block-padding));
  }

  #tab-bom .workbench-split-layout--detail,
  #tab-bom .bom-list-panel {
    height: 100%;
    min-height: 0;
  }

  #tab-bom .workbench-split-layout--detail {
    align-items: stretch;
    overflow: hidden;
  }
}

#tab-bom .bom-ledger-group {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: var(--bom-finished-column) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dcdad5;
  background: #fff;
}

#tab-bom .bom-ledger-group::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #77a58d;
  content: "";
}

#tab-bom .bom-ledger-group.is-warning::before { background: #d69b36; }
#tab-bom .bom-ledger-group.is-danger::before { background: #ce6859; }
#tab-bom .bom-ledger-group.is-info::before { background: #719bb2; }

#tab-bom .bom-ledger-group.is-selected {
  border-color: rgba(98, 81, 213, 0.58);
  box-shadow: 0 0 0 2px rgba(98, 81, 213, 0.08);
}

#tab-bom .bom-ledger-finished {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 9px;
  border-right: 1px solid #dcdad5;
  background: #fbfaf7;
  padding: 12px 14px 11px 17px;
}

#tab-bom .bom-ledger-finished-top {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

#tab-bom .bom-ledger-finished-icon,
#tab-bom .bom-ledger-component-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfddd7;
  border-radius: 8px;
  background: #fff;
  color: #6253c9;
}

#tab-bom .bom-ledger-finished-icon {
  width: 34px;
  height: 34px;
}

#tab-bom .bom-ledger-finished-icon svg {
  width: 17px;
  height: 17px;
}

#tab-bom .bom-ledger-finished-top > div,
#tab-bom .bom-ledger-component-name > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

#tab-bom .bom-ledger-finished-top strong {
  display: -webkit-box;
  overflow: hidden;
  color: #2d2c33;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#tab-bom .bom-ledger-finished-top small,
#tab-bom .bom-ledger-component-name small {
  color: #85838b;
  font-size: 11.5px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

#tab-bom .bom-ledger-finished-stock {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 6px;
  color: #74727b;
  font-size: 11.5px;
}

#tab-bom .bom-ledger-finished-stock strong {
  color: #29282f;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

#tab-bom .bom-ledger-finished-stock small {
  justify-self: end;
  color: #77757e;
  font-size: 11.5px;
  font-weight: 550;
}

#tab-bom .bom-ledger-finished-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

#tab-bom .bom-ledger-decision {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid #d8e3da;
  border-radius: 999px;
  background: #f7fbf7;
  color: #36705d;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

#tab-bom .bom-ledger-decision.is-warning {
  border-color: #e7d3ab;
  background: #fff9ec;
  color: #8d651e;
}

#tab-bom .bom-ledger-decision.is-danger {
  border-color: #e8c4bd;
  background: #fff6f3;
  color: #a94c3f;
}

#tab-bom .bom-ledger-decision.is-info {
  border-color: #cbdce5;
  background: #f5fafc;
  color: #49768d;
}

#tab-bom .bom-ledger-primary,
#tab-bom .bom-ledger-detail {
  min-height: 24px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  padding: 4px 3px;
  font-size: 11.5px;
  font-weight: 600;
}

#tab-bom .bom-ledger-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5d4fc3;
}

#tab-bom .bom-ledger-primary svg {
  width: 13px;
  height: 13px;
}

#tab-bom .bom-ledger-detail {
  color: #77757e;
}

#tab-bom .bom-ledger-primary:hover,
#tab-bom .bom-ledger-detail:hover,
#tab-bom .bom-ledger-primary:focus-visible,
#tab-bom .bom-ledger-detail:focus-visible {
  background: #f1effb;
  box-shadow: none;
  transform: none;
}

#tab-bom .bom-ledger-components {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#tab-bom .bom-ledger-component {
  display: grid;
  min-height: 104px;
  grid-template-columns: var(--bom-component-columns);
  align-items: center;
  border-bottom: 1px solid #e6e4df;
  color: #3f3e46;
  font-size: 11.5px;
  flex: 1 0 104px;
}

#tab-bom .bom-ledger-component:last-child {
  border-bottom: 0;
}

#tab-bom .bom-ledger-component > * {
  min-width: 0;
  padding: 10px;
}

#tab-bom .bom-ledger-component > * + * {
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1px solid #eeece8;
}

#tab-bom .bom-ledger-component.is-limiting {
  background: linear-gradient(90deg, rgba(250, 241, 220, 0.6), rgba(255, 255, 255, 0) 55%);
}

#tab-bom .bom-ledger-component-name {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

#tab-bom .bom-ledger-component-icon {
  width: 32px;
  height: 32px;
  color: #77757e;
}

#tab-bom .bom-ledger-component-icon svg {
  width: 15px;
  height: 15px;
}

#tab-bom .bom-ledger-component-name strong {
  display: -webkit-box;
  overflow: hidden;
  color: #302f36;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#tab-bom .bom-ledger-component-name small {
  display: flex;
  align-items: center;
  gap: 6px;
}

#tab-bom .bom-ledger-limit-tag {
  border-radius: 999px;
  background: #f3e5c7;
  color: #8d651e;
  padding: 2px 5px;
  font-size: 9.5px;
  font-weight: 740;
  white-space: nowrap;
}

#tab-bom .bom-ledger-qty {
  color: #2f2e35;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#tab-bom .bom-ledger-component .bom-number {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#tab-bom .bom-ledger-muted {
  color: #aaa8ae;
}

#tab-bom .bom-ledger-status {
  display: flex;
  min-height: 100%;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  border-left: 1px solid #eeece8;
  color: #39755f;
  padding: 10px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
}

#tab-bom .bom-ledger-status.is-warning { color: #8c651f; }
#tab-bom .bom-ledger-status.is-danger { color: #aa4d40; }
#tab-bom .bom-ledger-status.is-info { color: #477a93; }

#tab-bom .bom-ledger-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

#tab-bom .bom-ledger-related-link {
  display: -webkit-box;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #302f36;
  padding: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#tab-bom .bom-ledger-related-link:hover,
#tab-bom .bom-ledger-related-link:focus-visible {
  color: #594cc0;
  text-decoration: underline;
}

#tab-bom .bom-ledger-finished--component .bom-ledger-finished-icon {
  color: #6f7f89;
}

#tab-bom .bom-ledger-more {
  border-bottom: 1px solid #e6e4df;
}

#tab-bom .bom-ledger-more > summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: #faf9f6;
  color: #6253c9;
  font-size: 10.5px;
  font-weight: 690;
  list-style: none;
}

#tab-bom .bom-ledger-more > summary::-webkit-details-marker {
  display: none;
}

#tab-bom .bom-ledger-more > summary svg {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

#tab-bom .bom-ledger-more[open] > summary svg {
  transform: rotate(180deg);
}

#tab-bom .bom-ledger-more > div {
  border-top: 1px solid #e6e4df;
}

#tab-bom .bom-ledger-empty {
  display: grid;
  min-height: 96px;
  place-content: center;
  gap: 5px;
  color: #777680;
  padding: 20px;
  font-size: 12px;
  text-align: center;
}

#tab-bom .bom-ledger-empty strong {
  color: #3e3d45;
  font-size: 14px;
}
#tab-bom .bom-action-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid #d8e0d7;
  border-radius: 999px;
  background: #fbfcf8;
  color: #44544d;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

#tab-bom .bom-action-pill.is-danger {
  border-color: rgba(184, 66, 50, 0.24);
  background: #fff2ef;
  color: #9b4236;
}

#tab-bom .bom-action-pill.is-warning {
  border-color: rgba(191, 124, 25, 0.28);
  background: #fff7dc;
  color: #8a5d14;
}

#tab-bom .bom-action-pill.is-info {
  border-color: rgba(47, 111, 146, 0.24);
  background: #f0f8fc;
  color: #2f6f92;
}

#tab-bom .bom-action-pill.is-success {
  border-color: rgba(44, 111, 95, 0.22);
  background: #f4faf7;
  color: #315f53;
}

#tab-bom .bom-number {
  color: #1d2b25;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

#tab-bom .bom-number.is-danger {
  color: #b84232;
}

#tab-bom .bom-number.is-warning {
  color: #a26600;
}

#tab-bom .bom-number.is-info {
  color: #2f6f92;
}

#tab-bom .bom-inspector .bom-action-brief > strong {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

#tab-bom .bom-inspector .detail-block {
  margin-top: 12px;
}

#tab-bom .bom-component-matrix,
#tab-bom .bom-shared-usage {
  display: grid;
  gap: 8px;
}

#tab-bom .bom-component-card {
  overflow: hidden;
  border: 1px solid #e3e1e7;
  border-left: 3px solid var(--v1-success);
  border-radius: 9px;
  background: #fbfbfa;
  padding: 11px 12px;
}

#tab-bom .bom-component-card.is-warning {
  border-left-color: var(--v1-warning);
  background: #fffdf8;
}

#tab-bom .bom-component-card.is-danger {
  border-left-color: var(--v1-danger);
  background: #fffafa;
}

#tab-bom .bom-component-card.is-info {
  border-left-color: var(--v1-info);
  background: #fafbff;
}

#tab-bom .bom-component-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

#tab-bom .bom-component-card-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#tab-bom .bom-component-card-head strong {
  color: #343139;
  font-size: 12px;
  line-height: 1.4;
}

#tab-bom .bom-component-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 11px 0 0;
}

#tab-bom .bom-component-card dl div {
  min-width: 0;
  border-top: 1px solid #e8e6eb;
  padding-top: 7px;
}

#tab-bom .bom-component-card dt,
#tab-bom .bom-component-card dd {
  margin: 0;
}

#tab-bom .bom-component-card dt {
  color: #85808a;
  font-size: 10.5px;
}

#tab-bom .bom-component-card dd {
  margin-top: 3px;
  color: #2d2931;
  font-size: 12px;
  font-weight: 750;
}

#tab-bom .bom-shared-usage button {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  border: 1px solid #e4e2e7;
  border-radius: 8px;
  background: #fff;
  color: #343139;
  padding: 8px 10px;
  text-align: left;
}

#tab-bom .bom-shared-usage button:hover,
#tab-bom .bom-shared-usage button:focus-visible {
  border-color: #c9c4e5;
  background: #f8f7ff;
  transform: none;
}

#tab-bom .bom-shared-usage span,
#tab-bom .bom-shared-usage small {
  color: #716b77;
  font-size: 10.5px;
  font-weight: 650;
}

#tab-bom .bom-shared-usage strong {
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tab4 local BOM snapshot maintenance */
#tab-bom .bom-maintenance-head-actions,
.bom-maintenance-toolbar,
.bom-preview-title,
.bom-history-shell > header,
.bom-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#tab-bom .bom-maintenance-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #77747d;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

#tab-bom .bom-maintenance-availability > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa7ae;
}

#tab-bom .bom-maintenance-availability.is-ready > span { background: #51906f; }
#tab-bom .bom-maintenance-availability.is-offline > span { background: #c28a2f; }
#tab-bom .bom-maintenance-availability.is-checking > span { animation: bom-status-pulse 1.1s ease-in-out infinite; }

@keyframes bom-status-pulse { 50% { opacity: 0.35; } }

#tab-bom .bom-maintenance-open,
.bom-maintenance-primary,
.bom-maintenance-secondary,
.bom-maintenance-text-button {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 12.5px;
  font-weight: 720;
  cursor: pointer;
}

#tab-bom .bom-maintenance-open,
.bom-maintenance-primary {
  border: 1px solid #5547bd;
  background: #6253c9;
  box-shadow: 0 4px 12px rgba(87, 72, 190, 0.14);
  color: #fff;
}

#tab-bom .bom-maintenance-open:hover,
#tab-bom .bom-maintenance-open:focus-visible,
.bom-maintenance-primary:hover:not(:disabled),
.bom-maintenance-primary:focus-visible:not(:disabled) {
  border-color: #4639a8;
  background: #5547bd;
  color: #fff;
  transform: translateY(-1px);
}

#tab-bom .bom-maintenance-open svg,
.bom-maintenance-primary svg,
.bom-maintenance-secondary svg { width: 15px; height: 15px; }

#tab-bom .bom-maintenance-open > span,
#tab-bom .bom-maintenance-open > svg {
  color: #fff;
  font-size: 12.5px;
  font-weight: 740;
}

.bom-maintenance-backdrop { z-index: 96; background: rgba(33, 32, 39, 0.48); }

.bom-maintenance-modal {
  width: min(1120px, calc(100vw - 80px));
  max-height: min(860px, calc(100vh - 64px));
  border-color: #d8d5cf;
  border-radius: 10px;
  background: #f7f6f2;
  box-shadow: 0 30px 90px rgba(26, 25, 33, 0.28);
}

.bom-maintenance-modal-head { min-height: 70px; background: rgba(252, 251, 248, 0.98); padding: 14px 20px; }
.bom-maintenance-modal-head h2 { font-size: 20px; }
.bom-maintenance-body { max-height: calc(min(860px, 100vh - 64px) - 70px); padding: 0; }

.bom-maintenance-toolbar {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid #dfddd7;
  background: rgba(247, 246, 242, 0.96);
  padding: 11px 20px;
  backdrop-filter: blur(12px);
}

.bom-maintenance-tabs {
  display: inline-flex;
  gap: 4px;
  border: 1px solid #d9d6d0;
  border-radius: 8px;
  background: #efede8;
  padding: 3px;
}

.bom-maintenance-tabs button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #6e6b73;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 680;
  cursor: pointer;
}

.bom-maintenance-tabs button:hover,
.bom-maintenance-tabs button:focus-visible { background: rgba(255,255,255,.72); color: #38363f; transform: none; }
.bom-maintenance-tabs button.is-active { background: #fff; box-shadow: 0 1px 4px rgba(38,36,44,.1); color: #4f42b6; }
.bom-maintenance-tabs svg,
.bom-maintenance-text-button svg { width: 14px; height: 14px; }

.bom-maintenance-toolbar-side {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bom-maintenance-help-button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  border: 1px solid #d3d0ca;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: #5b5861;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.bom-maintenance-help-button:hover,
.bom-maintenance-help-button:focus-visible,
.bom-maintenance-help-button.is-active {
  border-color: #aaa3ce;
  background: #f3f1ff;
  color: #5145b2;
  transform: none;
}

.bom-maintenance-help-button svg { width: 14px; height: 14px; }

.bom-maintenance-help {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #ddd9d2;
  background: #f5f3ff;
  color: #595469;
  padding: 12px 20px 13px;
}

.bom-maintenance-help > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bom-maintenance-help strong { color: #3f395c; font-size: 12.5px; }
.bom-maintenance-help button { border: 0; background: transparent; box-shadow: none; color: #6253c9; padding: 0; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.bom-maintenance-help ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 24px; margin: 0; padding-left: 18px; }
.bom-maintenance-help li { color: #696475; font-size: 11.5px; line-height: 1.5; }

.bom-maintenance-scope { display: inline-flex; align-items: center; gap: 9px; color: #6f6c75; font-size: 11.5px; font-weight: 650; }
.bom-maintenance-scope select { width: 92px; height: 32px; border: 1px solid #d5d2cc; border-radius: 7px; background: #fff; color: #34323a; padding: 0 28px 0 10px; font-size: 12.5px; font-weight: 680; }
.bom-maintenance-content { min-height: 470px; padding: 18px 20px 22px; }
.bom-maintenance-content.is-busy { display: grid; place-items: center; }
.bom-maintenance-loading { display: inline-flex; align-items: center; gap: 10px; color: #6e6b73; font-size: 13px; font-weight: 650; }
.bom-maintenance-loading span { width: 18px; height: 18px; border: 2px solid #d5d1e8; border-top-color: #6253c9; border-radius: 50%; animation: bom-loading-spin .8s linear infinite; }
@keyframes bom-loading-spin { to { transform: rotate(360deg); } }

.bom-maintenance-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  border-bottom: 1px solid #e1ded7;
  background: #fff7e7;
  color: #805d22;
  padding: 12px 20px;
}

.bom-maintenance-notice.is-danger { background: #fff1ef; color: #9b483e; }
.bom-maintenance-notice.is-success { background: #edf7f0; color: #397454; }
.bom-maintenance-notice > svg { width: 21px; height: 21px; margin: 2px auto 0; }
.bom-maintenance-notice > div { display: grid; gap: 3px; }
.bom-maintenance-notice strong { font-size: 13px; }
.bom-maintenance-notice span { font-size: 12px; line-height: 1.5; }
.bom-maintenance-notice button { width: max-content; border: 0; background: transparent; box-shadow: none; color: inherit; padding: 4px 0 0; font-size: 12px; font-weight: 760; text-decoration: underline; cursor: pointer; }

.bom-maintenance-workflow,
.bom-preview-shell,
.bom-history-shell { display: grid; gap: 16px; }
.bom-maintenance-workflow > header { max-width: 760px; }
.bom-maintenance-workflow > header > span,
.bom-preview-title > div > span,
.bom-history-shell > header > div > span { color: #6253c9; font-size: 11px; font-weight: 780; letter-spacing: .08em; }
.bom-maintenance-workflow h3,
.bom-preview-title h3,
.bom-history-shell h3 { margin: 4px 0 0; color: #2d2b33; font-size: 18px; font-weight: 760; line-height: 1.35; }
.bom-maintenance-workflow header p,
.bom-preview-title p { margin: 7px 0 0; color: #77747d; font-size: 12.5px; line-height: 1.55; }

.bom-maintenance-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }

.bom-maintenance-choice {
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid #ddd9d2;
  border-radius: 9px;
  background: #fff;
  padding: 15px;
}

.bom-maintenance-choice.is-import { border-color: #c9c3eb; background: #fbfaff; }
.bom-maintenance-choice > div { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; }
.bom-maintenance-choice > div > svg { width: 19px; height: 19px; margin: 3px auto 0; color: #6253c9; }
.bom-maintenance-choice > div > span { display: grid; gap: 4px; }
.bom-maintenance-choice strong { color: #34313a; font-size: 13.5px; }
.bom-maintenance-choice small { color: #7c7981; font-size: 11.5px; line-height: 1.45; }
.bom-maintenance-choice > button { width: max-content; }

.bom-export-name-field { display: grid; gap: 6px; }
.bom-export-name-field > span { color: #5e5b64; font-size: 11.5px; font-weight: 700; }
.bom-export-name-field > span b { margin-left: 4px; color: #8d8992; font-size: 10.5px; font-weight: 600; }
.bom-export-name-field input { width: 100%; height: 34px; border: 1px solid #d5d2cc; border-radius: 7px; background: #fff; color: #35323a; padding: 0 10px; font-size: 12.5px; }
.bom-export-name-field input:focus { border-color: #8d82d9; box-shadow: 0 0 0 2px rgba(98,83,201,.1); outline: 0; }
.bom-export-name-field > small { color: #96929b; font-size: 10.5px; }
.bom-maintenance-secondary { border: 1px solid #cbc7d6; background: #fff; color: #51478e; }
.bom-maintenance-secondary:hover:not(:disabled),
.bom-maintenance-secondary:focus-visible:not(:disabled) { border-color: #a9a1d3; background: #f5f3ff; color: #493ba8; }
.bom-maintenance-primary:disabled,
.bom-maintenance-secondary:disabled { border-color: #d8d5d0; background: #e9e7e3; box-shadow: none; color: #99969d; cursor: not-allowed; opacity: 1; }
.bom-maintenance-text-button { height: 32px; border: 1px solid #ddd9d3; background: #fff; box-shadow: none; color: #696670; padding: 0 10px; }
.bom-maintenance-text-button:hover,
.bom-maintenance-text-button:focus-visible { border-color: #bdb7ce; background: #f5f3ff; color: #5145b2; transform: none; }

.bom-maintenance-baseline { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #dfdcd6; color: #77747d; padding-top: 13px; font-size: 11.5px; }
.bom-maintenance-baseline strong { overflow: hidden; color: #3d3948; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }

.bom-preview-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.bom-preview-summary button { display: grid; gap: 7px; border: 1px solid #ddd9d3; border-radius: 8px; background: #fff; box-shadow: none; color: #74717a; padding: 10px 11px; text-align: left; cursor: pointer; }
.bom-preview-summary button > span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 680; }
.bom-preview-summary button svg { width: 13px; height: 13px; }
.bom-preview-summary button strong { color: #37343d; font-size: 19px; font-weight: 740; }
.bom-preview-summary button.is-active { border-color: #8d82d9; box-shadow: 0 0 0 2px rgba(98,83,201,.09); }
.bom-preview-summary button.is-success > span { color: #397454; }
.bom-preview-summary button.is-warning > span { color: #9b6a1c; }
.bom-preview-summary button.is-danger > span { color: #a24d42; }

.bom-large-change { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; border: 1px solid #e1c48e; border-radius: 8px; background: #fff8e9; color: #835e20; padding: 12px 14px; }
.bom-large-change > svg { width: 20px; height: 20px; margin-top: 2px; }
.bom-large-change > div { display: grid; gap: 3px; }
.bom-large-change strong { font-size: 12.5px; }
.bom-large-change span { font-size: 11.5px; line-height: 1.5; }
.bom-large-change label { display: flex; align-items: center; justify-content: flex-start; gap: 7px; margin-top: 5px; font-size: 12px; font-weight: 720; cursor: pointer; }
.bom-large-change input { width: 14px; height: 14px; flex: 0 0 auto; margin: 0; accent-color: #6253c9; }

.bom-preview-list { overflow: hidden; border: 1px solid #dbd8d2; border-radius: 8px; background: #fff; }
.bom-preview-list > header { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e3e0da; background: #fbfaf7; padding: 8px 12px; }
.bom-preview-list > header > div { display: flex; align-items: center; gap: 8px; }
.bom-preview-list > header span { border-radius: 999px; background: #efedf5; color: #5f5b68; padding: 4px 8px; font-size: 11px; font-weight: 760; }
.bom-preview-list > header span.is-success { background: #e9f4ed; color: #397454; }
.bom-preview-list > header span.is-warning { background: #fbf0d9; color: #946419; }
.bom-preview-list > header span.is-danger { background: #fbe9e6; color: #a14d42; }
.bom-preview-list > header strong { color: #403d46; font-size: 12px; }
.bom-preview-list > header small { color: #85828a; font-size: 11px; }
.bom-preview-table-wrap { max-height: 250px; overflow: auto; }
.bom-preview-table-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bom-preview-table-wrap th,
.bom-preview-table-wrap td { border-right: 1px solid #ebe8e2; border-bottom: 1px solid #ebe8e2; padding: 8px 10px; color: #55525c; font-size: 11.5px; line-height: 1.45; text-align: left; vertical-align: top; word-break: break-word; }
.bom-preview-table-wrap th { position: sticky; z-index: 1; top: 0; background: #f5f3ef; color: #706d75; font-size: 11px; font-weight: 720; }
.bom-preview-table-wrap th:nth-child(-n+2) { width: 15%; }
.bom-preview-table-wrap th:nth-child(3),
.bom-preview-table-wrap th:nth-child(4) { width: 23%; }
.bom-preview-table-wrap th:last-child { width: 24%; }
.bom-preview-empty { display: grid; min-height: 150px; place-items: center; align-content: center; gap: 5px; color: #8b8890; text-align: center; }
.bom-preview-empty svg { width: 24px; height: 24px; color: #aaa5bd; }
.bom-preview-empty strong { color: #55515e; font-size: 13px; }
.bom-preview-empty span { font-size: 11.5px; }
.bom-preview-footer { border-top: 1px solid #ddd9d3; padding-top: 13px; }
.bom-preview-footer > div { display: grid; gap: 3px; }
.bom-preview-footer strong { color: #3c3943; font-size: 12.5px; }
.bom-preview-footer span { color: #7d7a82; font-size: 11.5px; }

.bom-history-list,
.bom-audit-list { display: grid; overflow: hidden; border: 1px solid #ddd9d2; border-radius: 8px; background: #fff; }
.bom-history-list article,
.bom-audit-list article { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #e8e5df; padding: 11px 13px; }
.bom-history-list article:last-child,
.bom-audit-list article:last-child { border-bottom: 0; }
.bom-history-list article.is-current { background: #f4f2ff; }
.bom-history-mark,
.bom-audit-event { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #ddd9e8; border-radius: 8px; background: #faf9ff; color: #6253c9; }
.bom-history-mark svg,
.bom-audit-event svg { width: 15px; height: 15px; }
.bom-history-list article > div:nth-child(2),
.bom-audit-list article > div:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.bom-history-list article strong,
.bom-audit-list article strong { overflow: hidden; color: #3a3741; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.bom-history-list article span,
.bom-audit-list article span { color: #77747d; font-size: 11.5px; }
.bom-history-list article small,
.bom-audit-list article small { overflow: hidden; color: #96939a; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.bom-history-side,
.bom-audit-result { display: grid; min-width: 150px; justify-items: end; gap: 3px; }
.bom-history-side b,
.bom-audit-result b { color: #397454; font-size: 11.5px; }
.bom-history-side button { height: 30px; border: 1px solid #cfcbd7; border-radius: 7px; background: #fff; color: #544a8f; padding: 0 9px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.bom-history-side button:hover,
.bom-history-side button:focus-visible { border-color: #a9a1d3; background: #f5f3ff; color: #493ba8; }
.bom-audit-result span { max-width: 330px; text-align: right; }
.bom-audit-result.is-warning b { color: #a06617; }

.workbench-table-wrap .workbench-data-table--compact {
  min-width: 720px;
  table-layout: auto;
  font-size: 12px;
}

.workbench-table-wrap .workbench-data-table--compact th,
.workbench-table-wrap .workbench-data-table--compact td {
  padding: 9px 10px;
  line-height: 1.45;
  vertical-align: top;
}

.workbench-table-wrap .workbench-data-table--compact th {
  white-space: nowrap;
}

.workbench-table-wrap .workbench-data-table--compact td {
  white-space: normal;
}

@media (max-width: 980px) {
  .workbench-panel-grid--maintenance {
    grid-template-columns: 1fr;
  }

  .workbench-panel-wide {
    grid-column: auto;
  }
}

.inline-copy:not(.inbound-order-copy),
#tab-today .inline-copy:not(.inbound-order-copy),
#tab-sku .inline-copy:not(.inbound-order-copy) {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--v1-primary);
  padding: 0;
  font-size: inherit;
  font-weight: 850;
  line-height: 1.1;
}

.inline-copy:not(.inbound-order-copy):hover,
#tab-today .inline-copy:not(.inbound-order-copy):hover,
#tab-sku .inline-copy:not(.inbound-order-copy):hover {
  color: var(--v1-primary-2);
  box-shadow: none;
  text-decoration: underline;
  transform: none;
}

.workbench-metric-pairs {
  display: grid;
  gap: 4px;
  min-width: 86px;
}

.workbench-metric-pairs .metric-pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  min-height: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  padding: 3px 7px;
}

.workbench-metric-pairs .metric-pair em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.workbench-metric-pairs .metric-pair strong {
  color: #1f2937;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.workbench-metric-pairs .metric-pair.is-danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.workbench-metric-pairs .metric-pair.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.workbench-metric-pairs .metric-pair.is-info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

#tab-sku .workbench-table-panel .workbench-metric-pairs {
  gap: 2px;
  min-width: 104px;
}

#tab-sku .workbench-table-panel .workbench-metric-pairs .metric-pair {
  min-height: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

#tab-sku .workbench-table-panel .workbench-metric-pairs .metric-pair em {
  width: 40px;
  color: #718077;
  font-size: 11px;
  font-weight: 780;
}

#tab-sku .workbench-table-panel .workbench-metric-pairs .metric-pair strong {
  min-width: 42px;
  color: #17231f;
  font-size: 12.5px;
  font-weight: 880;
  text-align: right;
}

#tab-sku .workbench-table-panel .workbench-metric-pairs .metric-pair.is-danger strong {
  color: var(--v1-danger);
}

#tab-sku .workbench-table-panel .workbench-metric-pairs .metric-pair.is-info strong {
  color: #245f89;
}



.workbench-row-action,
#tab-sku .workbench-row-action {
  min-height: 26px;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #4f55d6;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.workbench-row-action:hover,
#tab-sku .workbench-row-action:hover {
  background: #f4f4ff;
  box-shadow: none;
  color: var(--v1-primary-2);
  text-decoration-thickness: 2px;
  transform: none;
}

.workbench-list-head h2 .workbench-result-summary strong {
  display: inline-block;
  color: #5b5a64;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.workbench-list-head h2 small.workbench-result-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-left: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #67666f;
  padding: 0;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
}

.workbench-list-head h2 .workbench-result-summary span {
  color: var(--v1-muted);
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.2;
}

#tab-today .summary-pill strong {
  min-width: 24px;
  min-height: 22px;
  padding: 0 7px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 22px;
}

.inbound-modal .modal-head {
  padding: 12px 18px;
}

.inbound-modal .modal-head h2 {
  font-size: 20px;
  line-height: 1.15;
}

.inbound-modal .modal-body {
  padding: 12px 18px 0;
}

.inbound-modal-summary--compact {
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, 1fr);
  gap: 12px;
  padding: 12px;
}

.inbound-modal-sku {
  min-width: 0;
}

.inbound-modal-summary--compact h3 {
  margin: 2px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.inbound-modal-sku-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inbound-modal-summary--compact .copy-code-link {
  min-height: 26px;
  border-radius: 7px;
  padding: 3px 7px;
  font-size: 11.5px;
}

.inbound-modal-summary--compact .inbound-modal-verdict {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.35;
}

.inbound-modal-summary--compact .inbound-modal-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.inbound-modal-summary--compact .inbound-modal-kpis div,
.inbound-order-card--compact .inbound-order-facts div {
  min-height: 44px;
  border-radius: 7px;
  padding: 6px 8px;
}

.inbound-modal-summary--compact .inbound-modal-kpis dt,
.inbound-order-card--compact .inbound-order-facts dt {
  font-size: 10.5px;
  line-height: 1.2;
}

.inbound-modal-summary--compact .inbound-modal-kpis dd,
.inbound-order-card--compact .inbound-order-facts dd {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.15;
}

.inbound-modal-list {
  gap: 10px;
  margin-top: 10px;
}

.inbound-order-card--compact {
  padding: 12px;
}

.inbound-order-card--compact header {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.inbound-order-card--compact header strong {
  font-size: 18px;
  line-height: 1.1;
}

.inbound-order-card--compact .inbound-order-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.inbound-order-card--compact .inbound-order-copy {
  min-height: 24px;
  border-radius: 7px;
  padding: 2px 6px;
  font-size: 13px;
  line-height: 1.15;
}

.inbound-order-advice--compact,
.inbound-order-memo--compact {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 12.5px;
  line-height: 1.35;
}

.inbound-order-advice--compact strong,
.inbound-order-memo--compact strong {
  padding: 2px 7px;
  font-size: 12px;
}

.inbound-modal .inbound-modal-actions {
  margin-top: 10px;
  padding: 10px 18px;
}

.inbound-modal .inbound-modal-actions button {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 12.5px;
}

.rules-guide-head { align-items: center; }

.rules-guide-open {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #b9c9c2;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: #275d4f;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 760;
}

.rules-guide-open:hover,
.rules-guide-open:focus-visible {
  border-color: #6b9385;
  background: #edf6f1;
  box-shadow: none;
  color: #174f43;
  transform: none;
}

.rules-guide-open svg { width: 16px; height: 16px; }

.usage-guide-backdrop { z-index: 98; }

.usage-guide-modal {
  width: min(900px, calc(100vw - 80px));
  max-height: min(860px, calc(100vh - 64px));
}

.usage-guide-modal-head { padding: 14px 20px; }
.usage-guide-modal-head h2 { font-size: 20px; }

.usage-guide-body {
  max-height: calc(min(860px, 100vh - 64px) - 70px);
  color: #46434c;
  padding: 22px 28px 30px;
}

.usage-guide-body h2,
.usage-guide-body h3,
.usage-guide-body h4 { color: #29272e; }
.usage-guide-body h2 { margin: 0 0 18px; font-size: 22px; }
.usage-guide-body h3 { margin: 26px 0 10px; border-top: 1px solid #e4e1db; padding-top: 22px; font-size: 17px; }
.usage-guide-body h4 { margin: 18px 0 8px; font-size: 14px; }
.usage-guide-body p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; }
.usage-guide-body ol,
.usage-guide-body ul { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 22px; font-size: 13px; line-height: 1.65; }
.usage-guide-body li { padding-left: 2px; }
.usage-guide-body strong { color: #275d4f; font-weight: 780; }
.usage-guide-body code { border-radius: 4px; background: #eff1ef; color: #504e58; padding: 1px 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; overflow-wrap: anywhere; }
.usage-guide-loading,
.usage-guide-error { color: #74717a; }
.usage-guide-error { color: #a24e45; }

@media (max-width: 900px) {
  .inbound-modal-summary--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .inbound-modal .modal-head {
    padding: 10px 12px;
  }

  .inbound-modal .modal-body {
    padding: 10px 12px 0;
  }

  .inbound-modal-summary--compact .inbound-modal-kpis,
  .inbound-order-card--compact .inbound-order-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbound-order-card--compact header {
    align-items: flex-start;
  }

  .inbound-order-advice--compact,
  .inbound-order-memo--compact {
    grid-template-columns: 1fr;
  }

  .inbound-modal .inbound-modal-actions {
    margin-right: -12px;
    margin-left: -12px;
    padding: 10px 12px;
  }
}

#tab-inbound .workbench-split-layout--actions {
  grid-template-columns: minmax(0, 1fr);
}

.workbench-list-panel {
  --workbench-table-head-text: #6f6e78;

  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-color: var(--v1-line);
  border-radius: var(--workbench-panel-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(30, 30, 34, 0.04);
}

#tab-today .workbench-list-panel,
#tab-sku .workbench-list-panel,
#tab-inbound .workbench-list-panel {
  border-radius: var(--workbench-panel-radius);
}

.workbench-count-summary {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.workbench-list-panel > .workbench-list-head {
  display: grid;
  min-height: 64px;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid var(--v1-line);
  padding: 12px 14px;
}

.workbench-list-panel > .workbench-list-head h2 {
  display: grid;
  align-items: start;
  gap: 4px;
  margin: 0;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.workbench-list-panel > .workbench-list-head .workbench-list-title {
  color: #29292f;
  font-size: 18px;
  font-weight: 680;
  line-height: 1.2;
}

.workbench-list-tools {
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.workbench-tracking-view {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9d6e2;
  border-radius: 7px;
  background: #f7f6fa;
  color: #67646f;
  padding: 0 4px 0 9px;
  font-size: 11.5px;
  font-weight: 620;
  white-space: nowrap;
}

.workbench-tracking-view > svg {
  width: 14px;
  height: 14px;
  color: #6559c5;
  stroke-width: 1.8;
}

.workbench-tracking-view select {
  width: 210px;
  height: 26px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #34323b;
  padding: 0 25px 0 8px;
  font-size: 12px;
  font-weight: 660;
  line-height: 26px;
}

.workbench-tracking-view:hover {
  border-color: #c8c3dc;
  background: #f3f1f8;
}

.workbench-tracking-view:focus-within {
  border-color: var(--v1-primary);
  outline: 2px solid rgba(100, 88, 214, 0.14);
  outline-offset: 1px;
}

.workbench-list-tool-button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 5px;
  border: 1px solid #d9d6e2;
  border-radius: 7px;
  background: #fff;
  color: #595762;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.workbench-list-tool-button > svg {
  width: 14px;
  height: 14px;
  color: #6559c5;
}

.workbench-list-tool-button[aria-pressed="true"] {
  border-color: #b8b0e4;
  background: #f3f1ff;
  color: #4f46a3;
}

.workbench-list-tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.workbench-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6d6c75;
  font-size: 11.5px;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
}

.workbench-page-size select {
  width: 76px;
  height: 32px;
  border: 1px solid #dddbe4;
  border-radius: 7px;
  background: #fff;
  color: #34333a;
  padding: 0 26px 0 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
  line-height: 32px;
}

.workbench-page-size select:hover {
  border-color: #c9c5d8;
  background: #faf9fc;
}

.workbench-page-size select:focus-visible {
  border-color: var(--v1-primary);
  outline: 2px solid rgba(100, 88, 214, 0.16);
  outline-offset: 1px;
}

.workbench-pagination {
  display: flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--v1-line);
  background: #fff;
  padding: 6px 14px;
}

.workbench-pagination-summary {
  color: #77757e;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.workbench-pagination-summary strong {
  color: #4b4a52;
  font-size: 12px;
  font-weight: 680;
}

.workbench-pagination-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.workbench-pagination-buttons button {
  min-width: 30px;
  height: 30px;
  border: 1px solid #dedce5;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: #55545c;
  padding: 0 8px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 28px;
}

.workbench-pagination-buttons button:hover:not(:disabled) {
  border-color: #c9c5dc;
  background: #f7f5fc;
  color: #4e46bc;
  transform: none;
}

.workbench-pagination-buttons button.is-active {
  border-color: #bcb6ee;
  background: #efedff;
  color: #5148c6;
}

.workbench-pagination-buttons button:disabled {
  opacity: 0.42;
  cursor: default;
}

.workbench-pagination-ellipsis {
  min-width: 22px;
  color: #92909a;
  text-align: center;
}

.tracking-view-backdrop { z-index: 97; background: rgba(33, 32, 39, 0.46); }

.tracking-view-modal {
  width: min(980px, calc(100vw - 80px));
  max-height: min(800px, calc(100vh - 64px));
  border-color: #d8d5cf;
  border-radius: 10px;
  background: #f7f6f2;
  box-shadow: 0 30px 90px rgba(26, 25, 33, 0.26);
}

.tracking-view-modal-head {
  min-height: 70px;
  border-bottom: 1px solid #dedbd5;
  background: rgba(252, 251, 248, 0.98);
  padding: 14px 20px;
}

.tracking-view-modal-head h2 { font-size: 20px; }
.tracking-view-body { max-height: calc(min(800px, 100vh - 64px) - 70px); padding: 0; }

.tracking-view-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #dedbd5;
  background: #f8f6ed;
  color: #755f25;
  padding: 11px 20px;
}

.tracking-view-notice.is-danger { background: #fff3f1; color: #9b3d34; }
.tracking-view-notice.is-success { background: #eff8f3; color: #2f7652; }
.tracking-view-notice > svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.tracking-view-notice > div { display: grid; gap: 2px; }
.tracking-view-notice strong { font-size: 12.5px; }
.tracking-view-notice span { font-size: 11.5px; line-height: 1.45; }

.tracking-view-manager-shell {
  display: grid;
  min-height: 540px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.tracking-view-manager-shell.is-busy { opacity: 0.78; pointer-events: none; }

.tracking-view-list-panel {
  border-right: 1px solid #dedbd5;
  background: #f0eee9;
  padding: 16px 12px;
}

.tracking-view-list-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 12px;
}

.tracking-view-list-panel > header > div { display: grid; gap: 2px; }
.tracking-view-list-panel > header span { color: #77747d; font-size: 11px; font-weight: 620; }
.tracking-view-list-panel > header strong { color: #34323a; font-size: 13px; }

.tracking-view-list-panel > header button,
.tracking-view-secondary {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d1cec7;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: #55515a;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 680;
}

.tracking-view-list-panel > header button svg,
.tracking-view-secondary svg { width: 14px; height: 14px; }
.tracking-view-list-panel > header button:hover,
.tracking-view-secondary:hover { border-color: #bfb9d4; background: #faf9fc; color: #4f45a7; transform: none; }

.tracking-view-list { display: grid; gap: 6px; }
.tracking-view-list-item {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #37353c;
  padding: 8px 9px;
  text-align: left;
}

.tracking-view-list-item > span { display: grid; min-width: 0; gap: 3px; }
.tracking-view-list-item strong { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.tracking-view-list-item small { color: #7c7981; font-size: 10.5px; }
.tracking-view-list-item > svg { width: 14px; height: 14px; flex: 0 0 auto; color: #96929b; }
.tracking-view-list-item:hover { border-color: #d6d2df; background: rgba(255,255,255,.68); color: #37353c; transform: none; }
.tracking-view-list-item.is-active { border-color: #c7c1e8; background: #f7f5ff; color: #5146b4; }

.tracking-view-list-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px dashed #d4d0c8;
  border-radius: 8px;
  color: #77747c;
  padding: 26px 14px;
  text-align: center;
}

.tracking-view-list-empty svg { width: 22px; height: 22px; color: #8a82ca; }
.tracking-view-list-empty strong { color: #4b4851; font-size: 12px; }
.tracking-view-list-empty span { font-size: 11px; line-height: 1.5; }

.tracking-view-workspace { background: #fff; padding: 24px; }
.tracking-view-workspace-head { display: grid; gap: 5px; border-bottom: 1px solid #e5e2dd; padding-bottom: 18px; }
.tracking-view-workspace-head > span { color: #6a5ec1; font-size: 11px; font-weight: 720; }
.tracking-view-workspace-head h3 { margin: 0; color: #302e35; font-size: 19px; letter-spacing: -.015em; }
.tracking-view-workspace-head p { max-width: 620px; margin: 0; color: #74717a; font-size: 11.5px; line-height: 1.55; }

.tracking-view-import-form { display: grid; gap: 16px; padding-top: 20px; }
.tracking-view-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
.tracking-view-form-grid label { display: grid; gap: 7px; }
.tracking-view-form-grid label > span { color: #595660; font-size: 11.5px; font-weight: 680; }
.tracking-view-form-grid input,
.tracking-view-form-grid select { height: 36px; border: 1px solid #d8d5dd; border-radius: 7px; background: #fff; color: #34323a; padding: 0 10px; font-size: 12.5px; }

.tracking-view-file-field {
  display: grid;
  min-height: 128px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px dashed #c9c4d6;
  border-radius: 9px;
  background: #faf9fc;
  padding: 18px;
  cursor: pointer;
}

.tracking-view-file-field:hover { border-color: #8176cf; background: #f7f5fd; }
.tracking-view-file-field > svg { width: 28px; height: 28px; color: #6a5ec1; }
.tracking-view-file-field > span { display: grid; gap: 4px; }
.tracking-view-file-field strong { color: #38353e; font-size: 13.5px; }
.tracking-view-file-field small { color: #77747c; font-size: 11.5px; }
.tracking-view-file-field input { grid-column: 1 / -1; color: #5b5862; font-size: 11.5px; }
.tracking-view-file-field.is-disabled { cursor: not-allowed; opacity: .58; }

.tracking-view-form-actions,
.tracking-view-preview-footer,
.tracking-view-preview-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tracking-view-form-actions > span,
.tracking-view-preview-footer span { color: #77747c; font-size: 11px; }

.tracking-view-primary {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #5547bd;
  border-radius: 8px;
  background: #6253c9;
  box-shadow: 0 4px 12px rgba(87, 72, 190, 0.14);
  color: #fff;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.tracking-view-primary svg { width: 15px; height: 15px; }
.tracking-view-primary:hover:not(:disabled) { border-color: #4639a8; background: #5547bd; color: #fff; transform: translateY(-1px); }
.tracking-view-primary:disabled { cursor: not-allowed; opacity: .5; }

.tracking-view-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 20px 0 14px; }
.tracking-view-summary-item { display: grid; gap: 5px; border: 1px solid #e1ded8; border-radius: 8px; background: #faf9f7; padding: 11px 12px; }
.tracking-view-summary-item span { color: #77747d; font-size: 10.5px; }
.tracking-view-summary-item strong { color: #343139; font-size: 20px; font-variant-numeric: tabular-nums; }
.tracking-view-summary-item.is-success strong { color: #347759; }
.tracking-view-summary-item.is-info strong { color: #5a4fc0; }
.tracking-view-summary-item.is-warning strong { color: #a16721; }
.tracking-view-summary-item.is-danger strong { color: #ba4940; }

.tracking-view-inline-note { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; color: #67636c; font-size: 11.5px; }
.tracking-view-inline-note svg { width: 14px; height: 14px; }
.tracking-view-unmatched { border: 1px solid #ead6d2; border-radius: 8px; background: #fff8f6; margin-bottom: 16px; }
.tracking-view-unmatched summary { cursor: pointer; color: #98473f; padding: 10px 12px; font-size: 11.5px; font-weight: 680; }
.tracking-view-unmatched > div { display: flex; max-height: 100px; flex-wrap: wrap; gap: 5px; overflow: auto; border-top: 1px solid #ead6d2; padding: 10px 12px; }
.tracking-view-unmatched code { border-radius: 4px; background: #fff; color: #7c4944; padding: 3px 5px; font-size: 10.5px; }
.tracking-view-preview-footer { border-top: 1px solid #e5e2dd; margin-top: 8px; padding-top: 16px; }

@media (max-width: 1280px) {
  .workbench-tracking-view select { width: 168px; }
  #tab-today .workbench-tracking-view > span,
  #tab-inbound .workbench-tracking-view > span { display: none; }
}

#tab-today .workbench-chip-list button.task-filter-chip.risk-chip.is-normal:not(.is-active) strong {
  color: #2d6b5d;
}

.workbench-queue-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.workbench-list-panel > .workbench-list-body {
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.workbench-list-panel .workbench-data-table th {
  height: 42px;
  background: #f4f3ef;
  color: var(--workbench-table-head-text);
  font-size: 11.5px;
  font-weight: 650;
  text-align: center;
}

.workbench-list-panel .today-task-head > span {
  justify-items: center;
  text-align: center;
}

.workbench-scroll-surface {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(98, 104, 241, 0.28) #efeee9;
  scrollbar-gutter: auto;
  scrollbar-width: thin;
}

.workbench-scroll-surface::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.workbench-scroll-surface::-webkit-scrollbar-track {
  background: #efeee9;
}

.workbench-scroll-surface::-webkit-scrollbar-thumb {
  border: 2px solid #efeee9;
  border-radius: 999px;
  background: rgba(98, 104, 241, 0.28);
}

.workbench-scroll-surface .workbench-data-table thead th,
.workbench-scroll-surface .today-task-head {
  position: sticky;
  top: 0;
  z-index: 4;
}

.workbench-list-panel .today-task-head {
  min-height: 42px;
  background: #f4f3ef;
  color: var(--workbench-table-head-text);
  font-size: 11.5px;
  font-weight: 650;
}

.workbench-list-panel .workbench-data-table th + th,
.workbench-list-panel .workbench-data-table td + td {
  border-left: 1px solid #e8e7e2;
}

/* Daily workbench lists consume the remaining desktop viewport and scroll internally. */
@media (min-width: 1181px) {
  #tab-today.is-active,
  #tab-sku.is-active,
  #tab-inbound.is-active {
    --daily-workbench-main-block-padding: 44px;
    height: calc(100vh - var(--daily-workbench-main-block-padding));
    height: calc(100dvh - var(--daily-workbench-main-block-padding));
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  #tab-today .workbench-split-layout--actions,
  #tab-inbound .workbench-split-layout--actions,
  #tab-sku .workbench-split-layout--detail {
    height: 100%;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }

  #tab-today .workbench-main,
  #tab-inbound .workbench-main {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
  }

  #tab-today .today-queue-panel,
  #tab-inbound .inbound-queue-panel,
  #tab-sku .workbench-list-panel {
    height: 100%;
    max-height: none;
  }

  #tab-sku .workbench-table-wrap {
    max-height: none;
  }

  #tab-today .today-task-table.workbench-scroll-surface {
    overflow: auto;
  }
}

#tab-sku .workbench-data-table--sku .sku-number-cell,
#tab-sku .workbench-data-table--sku .stockout-cell,
#tab-sku .workbench-data-table--sku td.strong,
#tab-sku .workbench-data-table--sku .reason-cell,
#tab-sku .workbench-data-table--sku .status-cell {
  text-align: center;
}

#tab-sku .workbench-data-table--sku td {
  vertical-align: middle;
}

#tab-sku .workbench-data-table--sku .status-cell {
  min-width: 104px;
  white-space: normal;
}

#tab-sku .workbench-data-table--sku .status-cell small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

#tab-sku .workbench-data-table--sku .sku-view-membership-cell {
  min-width: 78px;
  text-align: center;
  white-space: nowrap;
}

#tab-sku .sku-view-membership-action {
  min-width: 36px;
  border: 1px solid #c9c5df;
  border-radius: 5px;
  background: #f7f6ff;
  padding: 2px 8px;
  text-decoration: none;
}

#tab-sku .sku-view-membership-action.is-included {
  border-color: #ded2c0;
  background: #fffaf2;
  color: #8b5d18;
}

#tab-sku .sku-view-membership-disabled {
  color: #98959d;
  font-size: 11px;
}

#tab-sku .workbench-data-table--sku .sku-name-cell > strong {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
}

.workbench-filter-footer .current-filter-line {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--v1-muted);
  padding: 0;
  font-size: 12px;
  line-height: 1.45;
}

.workbench-filter-footer .current-filter-line strong,
.workbench-filter-footer .current-filter-line span {
  margin-left: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--v1-primary);
  padding: 0;
  font-weight: 900;
}

#tab-inbound .workbench-main,
#tab-inbound .workbench-table-panel,
#tab-inbound .workbench-table-wrap,
#tab-inbound .workbench-data-table--inbound {
  width: 100%;
  max-width: none;
}

#tab-inbound .inbound-queue-grid {
  flex: 1 1 auto;
}

#tab-inbound .workbench-chip-list--inbound {
  padding: 0;
}

#tab-inbound .inbound-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
}

#tab-inbound .workbench-data-table--inbound {
  min-width: 960px;
}

#tab-inbound .workbench-data-table--inbound th:nth-child(1) {
  width: 14%;
}

#tab-inbound .workbench-data-table--inbound th:nth-child(2) {
  width: 25%;
}

#tab-inbound .workbench-data-table--inbound th:nth-child(3) {
  width: 15%;
}

#tab-inbound .workbench-data-table--inbound th:nth-child(4),
#tab-inbound .workbench-data-table--inbound th:nth-child(5),
#tab-inbound .workbench-data-table--inbound th:nth-child(6) {
  width: 7%;
  text-align: center;
}

#tab-inbound .workbench-data-table--inbound th:nth-child(7) {
  width: 25%;
}

#tab-inbound .inbound-number-cell {
  text-align: center;
}

#tab-inbound .inbound-number-cell strong {
  display: inline;
  color: #29292f;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1;
}

#tab-inbound .workbench-data-table--inbound th {
  height: 42px;
  background: #f4f3ef;
  color: var(--workbench-table-head-text);
  font-size: 11.5px;
  font-weight: 650;
}

#tab-inbound .workbench-data-table--inbound td {
  padding: 11px 12px;
}

#tab-inbound .inbound-batch-row.is-critical {
  background: #fffdfb;
}

#tab-inbound .inbound-batch-row.is-warning {
  background: #fffefa;
}

#tab-inbound .inbound-batch-row:hover,
#tab-inbound .inbound-batch-row:focus-within {
  background: var(--workbench-row-hover);
}

#tab-inbound .inbound-batch-row.is-critical > td:first-child {
  box-shadow: inset 3px 0 0 #b84232;
}

#tab-inbound .inbound-batch-row.is-warning > td:first-child {
  box-shadow: inset 3px 0 0 #bf7c19;
}

#tab-inbound .inbound-delay-cell,
#tab-inbound .inbound-date-cell,
#tab-inbound .inbound-order-cell,
#tab-inbound .inbound-follow-up-cell {
  display: grid;
  gap: 4px;
}

#tab-inbound .inbound-date-cell {
  justify-items: center;
  text-align: center;
}

#tab-inbound .inbound-delay-cell strong {
  color: #34343b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

#tab-inbound .inbound-delay-cell.is-critical strong {
  color: #a23d30;
}

#tab-inbound .inbound-delay-cell.is-warning strong {
  color: #976512;
}

#tab-inbound .inbound-delay-cell span,
#tab-inbound .inbound-date-cell span,
#tab-inbound .inbound-date-cell small,
#tab-inbound .inbound-order-cell small {
  color: var(--v1-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

#tab-inbound .inbound-order-cell > strong,
#tab-inbound .inbound-date-cell > strong {
  color: #29292f;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
}

#tab-inbound .inbound-table-order-copy {
  width: max-content;
  min-height: 0;
  border: 0;
  border-bottom: 1px dashed rgba(98, 104, 241, 0.42);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #29292f;
  cursor: copy;
  padding: 0 0 1px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
}

#tab-inbound .inbound-table-order-copy:hover,
#tab-inbound .inbound-table-order-copy:focus-visible {
  border-bottom-color: var(--v1-primary);
  background: transparent;
  box-shadow: none;
  color: var(--v1-primary);
  transform: none;
}

#tab-inbound .inbound-order-cell > span {
  color: #4d4c54;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
}

#tab-inbound .inbound-follow-up-cell > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#tab-inbound .inbound-follow-up-cell > strong {
  color: #4d4c54;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.4;
}

.workbench-inspector .inbound-record-facts .inbound-record-alert {
  border-color: rgba(184, 66, 50, 0.24);
  background: #fff8f6;
}

.workbench-inspector .inbound-record-facts .inbound-record-alert dd {
  color: #a23d30;
}

@media (max-width: 860px) {
  .workbench-queue-panel > .section-head {
    grid-template-columns: 1fr;
  }

  .workbench-filter-row--quick {
    grid-template-columns: 1fr;
  }

  .workbench-filter-row--quick > span {
    padding-top: 0;
  }
}
