:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --card: #ffffff;
  --line: #e2e8f0;
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --text: #0f172a;
  --text-soft: #64748b;
  --warn: #a95b34;
  --blue: #2b8fff;
  --green: #22c55e;
  --yellow: #eab308;
  --orange: #f97316;
  --red: #ef4444;
  --grey: #94a3b8;
  --radius: 14px;
}

* { box-sizing: border-box; }
/* Full-page standalone or FAOS shell — dark industrial workspace */
body.bm-enterprise-shell:not(:has(#faos-shell-root)) {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
}
body.bm-enterprise-shell:has(#faos-shell-root) {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
}
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content.faos-shell__main .page {
  background: transparent;
}
/* Orbita unify + shell: dark industrial panels */
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .header .title-block h1 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .header .subtitle {
  color: #64748b !important;
}
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .header .mode-line {
  color: #475569 !important;
}
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .header,
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .conflict-box,
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .tab-panel,
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .tabs,
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .split .left,
html.orbita-wms-v2-unify #faos-shell-root.faos-shell #main-content .split .right {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html.orbita-wms-v2-unify .faos-shell--immersive #main-content .page {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.bm-label-identity-host {
  min-height: 120px;
}
.bm-id-card {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.bm-id-card--bound {
  border-color: #6ee7b7;
  background: #ecfdf5;
}
.bm-id-card--unbound {
  border-color: #fcd34d;
  background: #fffbeb;
}
.bm-id-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.bm-id-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 6px;
}
.bm-id-card__row b {
  color: #64748b;
  font-weight: 600;
}
.bm-id-card__timeline {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.bm-id-card__timeline h4 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.bm-id-card__tl-item {
  font-size: 0.78rem;
  line-height: 1.45;
  margin-bottom: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(13, 148, 136, 0.45);
  color: #0f172a;
}
.bm-id-card__tl-time {
  color: #0d9488;
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}
.bm-id-card__raw {
  display: none !important;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 18px 50px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.lg-scan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
#lg_scanVideo {
  display: none;
  width: 100%;
  max-height: 200px;
  margin-top: 10px;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--line);
}
.back-link {
  color: #9fe0ff;
  text-decoration: none;
  font-weight: 700;
}
.back-link:hover { text-decoration: underline; }

.header {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: minmax(0,1fr) 1.2fr;
  gap: 16px;
  align-items: center;
}
.title-block h1 { margin: 0; font-size: 30px; letter-spacing: .01em; color: #0f172a; }
.subtitle { margin: 8px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.mode-line { margin: 8px 0 0; color: #b9d7f0; font-size: 12px; }

.summary-wrap {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.header-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.summary { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.kpi {
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 10px 12px;
}
.kpi-label { color: var(--text-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.kpi-value { font-size: 38px; font-weight: 900; margin-top: 6px; line-height: 1; letter-spacing: 0.01em; color: #f8fafc; }

.conflict-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px;
}
.conflict-box h2 { color: #0f172a; }
.conflict-box.is-collapsed {
  padding: 0;
  border: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
}
.conflict-box.state-red { border-color: var(--red); background: rgba(239, 68, 68, 0.08); }
.conflict-box.state-green { border-color: var(--green); background: rgba(34, 197, 94, 0.08); }
.conflicts { margin-top: 10px; color: #fca5a5; font-size: 13px; white-space: pre-wrap; }

.tabs {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  padding-bottom: 2px;
}
.tab {
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .01em;
  border-bottom: 2px solid transparent;
}
.tab.active { border-color: #e2e8f0; color: #0d5c63; background: var(--card); border-bottom-color: var(--accent); }
.tab:hover { border-color: #64748b; }

.tab-panel { margin-top: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 14px; }
.left, .right { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 14px; min-width: 0; color: var(--text); }
.right--floating {
  position: sticky;
  top: 12px;
  align-self: start;
}
.right--floating.is-empty {
  display: none;
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters--labels-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.bm-input-group {
  display: flex;
  gap: 0;
  min-width: 0;
}
.bm-input-group input {
  flex: 1 1 auto;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.bm-input-group button {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.bm-advanced-options {
  grid-column: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 8px 12px;
}
.bm-advanced-options > summary {
  cursor: pointer;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}
.bm-advanced-options .inline-check {
  color: #475569;
}
.bm-advanced-options .inline-check span {
  color: #475569;
}
.bm-advanced-options input:not([type='checkbox']) {
  background: var(--panel);
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
.bm-advanced-options__body {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.bm-filter-grow {
  flex: 1 1 200px;
  min-width: 160px;
}
.bm-cmd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: var(--card);
  color: #0f172a;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.bm-cmd-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: none;
}
.bm-cmd-btn--create {
  border-color: #0d9488;
  background: #f0fdfa;
  color: #0f766e;
}
.bm-cmd-btn--create:hover {
  border-color: #2dd4bf;
  background: rgba(13, 148, 136, 0.28);
}
.bm-cmd-btn--map {
  border-color: #cbd5e1;
  background: var(--card);
  color: #0f172a;
}
.bm-cmd-btn--map:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.bm-cmd-btn--primary {
  border-color: #14b8a6;
  background: #0d9488;
  color: #ffffff;
}
.bm-cmd-btn--primary:hover {
  border-color: #0f766e;
  background: #0f766e;
}
.bm-cmd-btn--ghost {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.filters input, .filters select {
  background: var(--panel);
  border: 1px solid #cbd5e1;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 10px;
  outline: none;
}
.filters button:not(.bm-cmd-btn) {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 900;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.filters button:not(.bm-cmd-btn):hover {
  border-color: #0d9488;
  background: #f0fdfa;
}
.small-btn {
  background: var(--card);
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 900;
}
.small-btn:hover {
  border-color: var(--accent);
}
.filters button.primary:not(.bm-cmd-btn),
button.primary:not(.bm-cmd-btn) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #0f766e;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}
.labels-subviews {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab.small {
  padding: 6px 10px;
  font-size: 12px;
}
.scope-chip {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}
.label-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: 12px;
}
.label-info-grid b {
  color: #0d5c63;
  font-weight: 800;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: var(--card);
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  margin-right: 6px;
}
.icon-btn:hover {
  border-color: var(--accent);
}
.group-row td {
  background: #f8fafc !important;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

/* Internal Labels: scroll long binding lists; filters stay visible */
.bm-table-scroll {
  margin-top: 12px;
  max-height: min(62vh, 560px);
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.bm-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(248, 250, 252, 0.97);
  box-shadow: 0 1px 0 rgba(36, 54, 79, 0.85);
}

.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.bm-table-scroll .table { margin-top: 0; }
.table {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}
.table th, .table td { padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; color: var(--text); }
.table th { color: var(--text-soft); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; background: var(--panel); }
.table tbody tr { background: var(--card); }
.table tbody tr:hover { background: #f8fafc; }
.table.small td, .table.small th { padding: 8px 6px; }
.table tr.state-green td { background: rgba(34, 197, 94, 0.06); }
.table tr.state-blue td { background: rgba(43, 143, 255, 0.06); }
.table tr.state-yellow td { background: rgba(234, 179, 8, 0.08); }
.table tr.state-orange td { background: rgba(249, 115, 22, 0.08); }
.table tr.state-red td { background: rgba(239, 68, 68, 0.08); }
.table tr.state-grey td { background: rgba(148, 163, 184, 0.07); }

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid rgba(73, 103, 130, 0.9);
  background: rgba(22,42,66,0.8);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}
.badge.active { border-color: var(--accent); color: #9fe0ff; }
.badge.active { border-color: var(--blue); background: rgba(43, 143, 255, 0.15); color: #b8dcff; }
.badge.draft { border-color: var(--grey); background: rgba(148, 163, 184, 0.12); color: #d4deec; }
.badge.pending_approval { border-color: var(--yellow); background: rgba(234, 179, 8, 0.14); color: #fde68a; }
.badge.approved { border-color: var(--green); background: rgba(34, 197, 94, 0.14); color: #bbf7d0; }
.badge.rejected { border-color: var(--red); background: rgba(239, 68, 68, 0.14); color: #fecaca; }
.badge.inactive, .badge.rolled_back { border-color: var(--grey); background: rgba(148, 163, 184, 0.12); color: #d4deec; }
.badge.quarantined, .badge.invalid, .badge.conflict { border-color: var(--orange); background: rgba(249, 115, 22, 0.14); color: #fed7aa; }
.badge.closed { border-color: var(--green); background: rgba(34, 197, 94, 0.14); color: #bbf7d0; }
.badge.under_review, .badge.awaiting_approval { border-color: var(--yellow); background: rgba(234, 179, 8, 0.14); color: #fde68a; }
.badge.mode-normal { border-color: var(--blue); background: rgba(43, 143, 255, 0.14); color: #cfe6ff; }
.badge.mode-admin { border-color: var(--orange); background: rgba(249, 115, 22, 0.14); color: #ffddb7; }
.admin-only[hidden] { display: none !important; }

.detail h3 { margin: 0; font-size: 16px; letter-spacing: .01em; }
.hint { margin: 6px 0 10px; color: var(--text-soft); font-size: 13px; line-height: 1.5; }
.detail-pre { margin: 0; background: rgba(5,15,26,0.45); border: 1px solid #2e4766; border-radius: 12px; padding: 10px; min-height: 220px; color: #d6e2f3; font-size: 12px; overflow: auto; }
.status-floating-panel {
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: rgba(7, 16, 27, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.status-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}
.state-blue { border-color: var(--blue); background: rgba(43, 143, 255, 0.12); }
.state-green { border-color: var(--green); background: rgba(34, 197, 94, 0.12); }
.state-yellow { border-color: var(--yellow); background: rgba(234, 179, 8, 0.12); }
.state-orange { border-color: var(--orange); background: rgba(249, 115, 22, 0.12); }
.state-red { border-color: var(--red); background: rgba(239, 68, 68, 0.12); }
.state-grey { border-color: var(--grey); background: rgba(148, 163, 184, 0.12); }

dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6,18,30,.96);
  color: var(--text);
}
.modal-form {
  padding: 16px;
  display: grid;
  gap: 12px;
  min-width: 360px;
}
.modal-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 800;
}
.modal-form .modal-hint {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
  font-weight: 600;
}
.modal-form .req { color: #f87171; }
.modal-form .label-muted { font-weight: 600; color: #64748b; font-size: 11px; }
/* Field colors for <dialog class="modal-form"> are overridden in wms-orbita-v2-visual-contract.css
   (global form rules use !important; dialog needs light bg + dark text). */
.modal-form input, .modal-form select, .modal-form textarea {
  border-radius: 10px;
  padding: 9px 10px;
  outline: none;
}
.modal-form menu { display: flex; gap: 10px; justify-content: flex-end; }
.modal-form button {
  background: rgba(16, 32, 53, 0.9);
  border: 1px solid var(--line);
  color: #c3ebff;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 900;
}

.subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 980px) {
  .header { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .subgrid { grid-template-columns: 1fr; }
  .filters--labels-hub { grid-template-columns: 1fr; }
  .summary-wrap { justify-items: stretch; }
  .summary { justify-content: flex-start; }
  .header-actions { justify-content: flex-start; flex-wrap: wrap; }
}

/* Pallet human dashboard (Barcode Management — right panel) */
.bm-pallet-dashboard {
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.bm-pallet-dashboard--loading {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 700;
}
.bm-pallet-dashboard__id {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 4px;
}
.bm-pallet-dashboard__id-value {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  word-break: break-all;
  margin-bottom: 14px;
  color: #0f172a;
}
.bm-pallet-dashboard__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.bm-pallet-dashboard__lamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.bm-pallet-dashboard__lamp--avail {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.bm-pallet-dashboard__lamp--busy {
  color: #bfdbfe;
  background: rgba(43, 143, 255, 0.18);
  border-color: rgba(43, 143, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(43, 143, 255, 0.1);
}
.bm-pallet-dashboard__meta {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.bm-pallet-dashboard__hint {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 4px;
  line-height: 1.45;
}
.bm-pallet-dashboard__sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.45;
}
.bm-pallet-dashboard__timeline {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.bm-pallet-dashboard__timeline h4 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 900;
}
.bm-pallet-dashboard__tl-item {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) 1fr;
  gap: 10px 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(36, 54, 79, 0.55);
  font-size: 0.82rem;
  line-height: 1.45;
}
.bm-pallet-dashboard__tl-item:last-child {
  border-bottom: none;
}
.bm-pallet-dashboard__tl-time {
  color: #64748b;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.bm-pallet-dashboard__tl-msg {
  color: #0f172a;
}
/* Raw JSON host removed from product UI — keep class as no-op if legacy HTML references it */
.bm-pallet-dashboard__raw {
  display: none !important;
}

.bm-pallet-dashboard__id-value--hero {
  font-size: 2.45rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 22px rgba(56, 189, 248, 0.22);
}
.bm-pallet-dashboard__lamp--emptylp {
  color: #475569;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.12);
}
.bm-pallet-dashboard__lamp--staging {
  color: #fef9c3;
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.48);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.12);
}
.bm-pallet-dashboard__lamp--racked {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.bm-pallet-dashboard__timeline--logistics {
  border-top-color: rgba(148, 163, 184, 0.2);
}

/* Logistics / courier-style timeline (dots + vertical rail) */
.bm-logistics-tl {
  margin: 6px 0 0;
  padding: 0;
}
.bm-logistics-tl__step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0 12px;
  align-items: flex-start;
  padding-bottom: 16px;
}
.bm-logistics-tl__step:last-child {
  padding-bottom: 2px;
}
.bm-logistics-tl__track {
  position: relative;
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
}
.bm-logistics-tl__rail {
  position: absolute;
  left: 50%;
  top: 20px;
  bottom: -18px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.15));
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}
.bm-logistics-tl__step:last-child .bm-logistics-tl__rail {
  display: none;
}
.bm-logistics-tl__dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, #f0f9ff, #38bdf8 48%, #0369a1);
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.38);
  flex-shrink: 0;
}
.bm-logistics-tl__body {
  min-width: 0;
  padding-top: 0;
}
.bm-logistics-tl__row3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #0f172a;
}
.bm-logistics-tl__evglyph {
  font-size: 1.08rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.bm-logistics-tl__desc {
  flex: 1 1 200px;
  min-width: 0;
}
.bm-logistics-tl__desc strong {
  color: #0f172a;
  font-weight: 800;
}
.bm-logistics-tl--compact .bm-logistics-tl__row3 {
  font-size: 0.8rem;
}
.bm-logistics-tl__time-row {
  margin-bottom: 6px;
}
.bm-logistics-tl__clock {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: #0369a1;
  text-shadow: none;
}
.bm-logistics-tl__clock--empty {
  opacity: 0.4;
  font-weight: 600;
}
.bm-logistics-tl__bankrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #0f172a;
}
.bm-logistics-tl__tglyph {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.bm-logistics-tl__pipe {
  color: #475569;
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}
.bm-logistics-tl__action,
.bm-logistics-tl__detail {
  min-width: 0;
}
.bm-logistics-tl__action strong,
.bm-logistics-tl__detail strong {
  color: #0f172a;
  font-weight: 800;
}
.bm-logistics-tl__muted {
  color: #64748b;
  font-weight: 500;
}
.bm-logistics-tl__bankrow--legacy .bm-logistics-tl__action {
  flex: 1 1 220px;
}
.bm-logistics-tl__msgrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bm-logistics-tl__glyph {
  flex-shrink: 0;
  font-size: 1.22rem;
  line-height: 1.35;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.bm-logistics-tl__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #0f172a;
}
.bm-logistics-tl--compact .bm-logistics-tl__text {
  font-size: 0.8rem;
  line-height: 1.45;
}
.bm-logistics-tl--compact .bm-logistics-tl__clock {
  font-size: 0.78rem;
}
.bm-logistics-tl--compact .bm-logistics-tl__glyph {
  font-size: 1.05rem;
}
.bm-logistics-tl--compact .bm-logistics-tl__step {
  padding-bottom: 11px;
}
.bm-logistics-tl__empty {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.bm-history-drawer-tl {
  max-height: 56vh;
  overflow: auto;
  padding-right: 6px;
}
.bm-id-card__timeline--logistics {
  border-top-color: rgba(148, 163, 184, 0.28);
}

.bm-detail-host {
  min-height: 72px;
  font-family: inherit;
  white-space: normal;
}

/* -------------------------------------------------------------------------- */
/* FIX: Ensure Operational status panel text never disappears (light overrides) */
/* Scope: Barcode Command Center v2 right detail panel only.                   */
/* -------------------------------------------------------------------------- */
.bm-command-center-page .split .right .list-detail-card,
.bm-command-center-page .split .right .detail.list-detail-card {
  color: #0f172a;
}
.bm-command-center-page .split .right .list-detail-card .detail-pre,
.bm-command-center-page .split .right .detail.list-detail-card .detail-pre,
.bm-command-center-page .split .right .list-detail-card .bm-detail-host {
  background: rgba(5, 15, 26, 0.92) !important;
  color: #e2e8f0 !important;
  border-color: rgba(46, 71, 102, 0.95) !important;
}
.bm-command-center-page .split .right .list-detail-card .bm-detail-host * {
  color: inherit;
}
.bm-kv-card {
  border-radius: 12px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.92) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.bm-kv-card--green {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.bm-kv-card--blue {
  border-color: rgba(59, 130, 246, 0.45);
}
.bm-kv-card--yellow {
  border-color: rgba(234, 179, 8, 0.45);
}
.bm-kv-card--red {
  border-color: rgba(239, 68, 68, 0.5);
}
.bm-kv-card--orange {
  border-color: rgba(249, 115, 22, 0.45);
}
.bm-kv-card--grey {
  border-color: rgba(148, 163, 184, 0.25);
}
.bm-kv-card__title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  color: #64748b;
}
.bm-kv-row {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) 1fr;
  gap: 8px 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(36, 54, 79, 0.45);
  font-size: 0.86rem;
  line-height: 1.45;
}
.bm-kv-row:last-child {
  border-bottom: none;
}
.bm-kv-k {
  color: #64748b;
  font-weight: 600;
}
.bm-kv-v {
  color: #0f172a;
  word-break: break-word;
}
.bm-kv-empty {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.bm-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bm-timeline__item {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) 1fr;
  gap: 10px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(36, 54, 79, 0.45);
  font-size: 0.84rem;
  line-height: 1.45;
}
.bm-timeline__item:last-child {
  border-bottom: none;
}
.bm-timeline__time {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.bm-tl-sub {
  margin-top: 4px;
  color: #475569;
  font-size: 0.8rem;
}
.bm-timeline__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f97316;
  margin-right: 8px;
  vertical-align: middle;
}
.bm-conflict-list .bm-timeline__item {
  grid-template-columns: 12px 1fr;
}
.bm-conflict-list .bm-timeline__dot {
  margin-top: 6px;
}

/* Product / Carton Bridge — merged codes + print flyout */
.bm-bridge-codes {
  line-height: 1.55;
}
.bm-bridge-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 2px 6px 2px 0;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  vertical-align: middle;
}
.bm-bridge-chip__text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
  word-break: break-all;
}
.bm-bridge-chip__kind {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e2e8f0;
}
.bm-bridge-chip--sku {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.bm-bridge-chip--numeric {
  border-color: rgba(56, 189, 248, 0.45);
}
.bm-bridge-chip--prd {
  border-color: rgba(167, 139, 250, 0.5);
}
.bm-bridge-chip--carton {
  border-color: rgba(251, 191, 36, 0.45);
}
.bm-bridge-chip--other {
  border-color: rgba(148, 163, 184, 0.3);
}
.bm-bridge-actions {
  white-space: nowrap;
  vertical-align: middle;
}
.bm-print-menu {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.bm-print-menu__summary {
  list-style: none;
  cursor: pointer;
}
.bm-print-menu__summary::-webkit-details-marker {
  display: none;
}
.bm-print-menu__panel {
  position: absolute;
  right: 0;
  z-index: 40;
  min-width: 220px;
  margin-top: 4px;
  padding: 6px 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.bm-print-menu__item {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0d5c63;
  text-decoration: none;
}
.bm-print-menu__item:hover {
  background: #f0fdfa;
  color: #0f766e;
}
.bm-print-menu__empty {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: #64748b;
}

.bm-bridge-admin-sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #0369a1;
}
.bm-bridge-bracket {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #d1d5db;
  margin: 3px 6px 3px 0;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.16);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.bm-same-origin-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5f3fc;
  background: rgba(6, 78, 59, 0.55);
  border: 1px solid rgba(45, 212, 191, 0.35);
  vertical-align: middle;
}

/* -------------------------------------------------------------------------- */
/* FAOS shell + dark industrial workspace (Barcode Command Center)            */
/* -------------------------------------------------------------------------- */
body.bm-enterprise-shell {
  font-family: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: #f4f6f8 !important;
  color: #0f172a !important;
}

/* Shell: Office-only sidebar gutter. WMS/scan immersive must stay full-width (see faos-shell.css). */
.faos-shell.bm-enterprise-shell {
  --faos-sidebar-w: 250px;
}
.faos-shell.bm-enterprise-shell:not(.faos-shell--immersive) #main-content.faos-shell__main {
  margin-left: var(--faos-sidebar-w) !important;
  margin-top: var(--faos-topbar-h) !important;
}

.faos-shell--immersive.bm-enterprise-shell #main-content.faos-shell__main {
  background: #f4f6f8 !important;
  color: #0f172a !important;
}

/*
 * office-unified-lite.css applies content-visibility:auto to main>section and main>div.
 * Nested <main class="page"> matches — keep panels painted.
 */
.faos-shell.bm-enterprise-shell .faos-shell__main main.page > section,
.faos-shell.bm-enterprise-shell .faos-shell__main main.page > div {
  content-visibility: visible !important;
  contain: style layout !important;
}

.bm-edition-row {
  margin-bottom: 8px;
}
.bm-edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #99f6e4;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: none;
}
.bm-edition-pill::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(145deg, #14b8a6, #0d9488);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.4);
}

.faos-shell.bm-enterprise-shell .faos-shell__main .page {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --card: #ffffff;
  --line: #e2e8f0;
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --text: #0f172a;
  --text-soft: #64748b;
  --warn: #b45309;
  --blue: #0284c7;
  --green: #059669;
  --yellow: #ca8a04;
  --orange: #ea580c;
  --red: #dc2626;
  --grey: #64748b;
}

.faos-shell.bm-enterprise-shell .back-link {
  color: #0d5c63;
}
.faos-shell.bm-enterprise-shell .back-link:hover {
  color: #0f766e;
}

body.bm-enterprise-shell .bm-page-back {
  margin: 0 0 14px;
  padding: 0;
}
body.bm-enterprise-shell .bm-page-back__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d5c63;
  text-decoration: none;
}
body.bm-enterprise-shell .bm-page-back__link:hover {
  color: #0f766e;
  text-decoration: underline;
}

.faos-shell.bm-enterprise-shell .header {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.faos-shell.bm-enterprise-shell .header .bm-edition-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.faos-shell.bm-enterprise-shell .header .bm-edition-pill {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #6ee7b7;
  box-shadow: none;
}
.faos-shell.bm-enterprise-shell .title-block h1 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
.faos-shell.bm-enterprise-shell .subtitle {
  color: #64748b !important;
}
.faos-shell.bm-enterprise-shell .mode-line {
  color: #475569 !important;
}

.faos-shell.bm-enterprise-shell .kpi.stat-card,
.faos-shell.bm-enterprise-shell .stat-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.faos-shell.bm-enterprise-shell .kpi-value,
.faos-shell.bm-enterprise-shell .stat-card .number {
  color: #0f172a !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
}
.faos-shell.bm-enterprise-shell .kpi-label {
  color: #64748b !important;
}

.faos-shell.bm-enterprise-shell .status-badges-panel {
  background: #f0fdf4 !important;
  border-left: 2px solid #34d399 !important;
  padding: 1.5rem !important;
  border-radius: 0 12px 12px 0;
}

.faos-shell.bm-enterprise-shell .conflict-box {
  background: #ffffff;
  border-color: #e2e8f0;
}
.faos-shell.bm-enterprise-shell .conflict-box h2 {
  color: #0f172a !important;
}
.faos-shell.bm-enterprise-shell .conflicts {
  color: #b91c1c;
}

.faos-shell.bm-enterprise-shell .list-detail-card,
.faos-shell.bm-enterprise-shell .split .right .detail {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a;
}
.faos-shell.bm-enterprise-shell .list-detail-card h3,
.faos-shell.bm-enterprise-shell .split .right .detail h3 {
  color: #0f172a !important;
}

.faos-shell.bm-enterprise-shell .btn-reprint,
.faos-shell.bm-enterprise-shell .btn-preview {
  background: #0369a1 !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  border: 1px solid #075985 !important;
  text-decoration: none !important;
  font-weight: 700;
}
.faos-shell.bm-enterprise-shell .btn-generate,
.faos-shell.bm-enterprise-shell #lg_save.primary,
.faos-shell.bm-enterprise-shell #l_btnNew.bm-cmd-btn--primary {
  background: #0d9488 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: #0f766e !important;
  box-shadow: none !important;
}
.faos-shell.bm-enterprise-shell .btn-generate:hover,
.faos-shell.bm-enterprise-shell #l_btnNew.bm-cmd-btn--primary:hover {
  background: #0f766e !important;
  border-color: #115e59 !important;
}
.faos-shell.bm-enterprise-shell .bm-advanced-options {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
.faos-shell.bm-enterprise-shell .bm-advanced-options > summary {
  color: #0f172a !important;
  font-size: 13px !important;
}
.faos-shell.bm-enterprise-shell .bm-advanced-options .inline-check,
.faos-shell.bm-enterprise-shell .bm-advanced-options .inline-check span {
  color: #475569 !important;
  font-weight: 600 !important;
}

.faos-shell.bm-enterprise-shell .filters input,
.faos-shell.bm-enterprise-shell .filters select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
.faos-shell.bm-enterprise-shell .filters button:not(.bm-cmd-btn) {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.faos-shell.bm-enterprise-shell .tabs {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 8px 8px 0;
  border-radius: 10px 10px 0 0;
  gap: 6px;
}
.faos-shell.bm-enterprise-shell .tab {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}
.faos-shell.bm-enterprise-shell .tab.active {
  background: #ffffff;
  border-color: #0d9488;
  color: #0d5c63;
  border-bottom: 2px solid #0d9488;
}
.faos-shell.bm-enterprise-shell .tab:hover {
  border-color: #94a3b8;
}

.faos-shell.bm-enterprise-shell .table th,
.faos-shell.bm-enterprise-shell .table td {
  border-bottom-color: #e2e8f0;
}
.faos-shell.bm-enterprise-shell .table th {
  color: #64748b;
  background: #f8fafc;
}
.faos-shell.bm-enterprise-shell .table tbody tr {
  background: #ffffff !important;
}
.faos-shell.bm-enterprise-shell .table tbody tr:hover {
  background: #f8fafc !important;
}
.faos-shell.bm-enterprise-shell .table td {
  color: #0f172a !important;
}

.bm-shell-footer {
  margin-top: 28px;
  padding: 18px 4px 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.faos-shell.bm-enterprise-shell .bm-shell-footer {
  border-top-color: #e2e8f0;
  color: #64748b;
}
.bm-shell-footer__mark {
  color: #059669;
  font-size: 11px;
}
.bm-shell-footer__brand {
  font-weight: 700;
  color: #0f172a;
}
.faos-shell.bm-enterprise-shell .bm-shell-footer__brand {
  color: #0f172a;
}
.faos-shell.bm-enterprise-shell .bm-shell-footer__link {
  color: #0d5c63;
}
.faos-shell.bm-enterprise-shell .bm-shell-footer__link:hover {
  color: #0f766e;
}
.bm-shell-footer__sep {
  color: #94a3b8;
  user-select: none;
}
.bm-shell-footer__link {
  color: #0d5c63;
  font-weight: 600;
  text-decoration: none;
}
.bm-shell-footer__link:hover {
  text-decoration: underline;
  color: #0f766e;
}

/* Feature-table style: primary command actions as elevated rounded cards */
.faos-shell.bm-enterprise-shell .header-actions .bm-cmd-btn {
  border-radius: 14px;
  padding: 12px 18px;
  min-height: 44px;
}
.faos-shell.bm-enterprise-shell .header-actions .bm-cmd-btn--create {
  border: 1px solid #0d9488 !important;
  background: #f0fdfa !important;
  color: #0f766e !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.faos-shell.bm-enterprise-shell .header-actions .bm-cmd-btn--create:hover {
  background: #ccfbf1 !important;
  border-color: #0f766e !important;
  box-shadow: none !important;
}
.faos-shell.bm-enterprise-shell .header-actions .bm-cmd-btn--map {
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
.faos-shell.bm-enterprise-shell .header-actions .bm-cmd-btn--map:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/* Barcode Command Center v2 — compact header/tabs + ~10-row table viewport   */
/* Scoped to main.bm-command-center-page (barcode-management-v2.html only).   */
/* -------------------------------------------------------------------------- */
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header.command-center__header {
  padding: 1rem 1.1rem !important;
  margin-bottom: 0.75rem !important;
  border-radius: 12px !important;
  gap: 10px !important;
  align-items: start !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header .bm-edition-row {
  margin-bottom: 0.3rem !important;
  gap: 0.4rem !important;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header .kpi.stat-card,
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header .stat-card {
  padding: 0.65rem 0.75rem !important;
  border-radius: 10px !important;
  min-width: 112px !important;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header .kpi-label {
  font-size: 10px !important;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header .kpi-value,
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header .stat-card .number {
  font-size: 1.45rem !important;
  margin-top: 2px !important;
  line-height: 1.05 !important;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header .status-badges-panel {
  padding: 0.75rem 0.9rem !important;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page > .header .summary {
  gap: 8px !important;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page .header-actions .bm-cmd-btn {
  padding: 7px 12px !important;
  min-height: 36px !important;
  font-size: 0.8rem !important;
  border-radius: 10px !important;
}

.bm-command-center-page .bm-page-back {
  margin-bottom: 8px;
}
.bm-command-center-page .tabs {
  margin-top: 8px;
  gap: 6px;
  padding-bottom: 0;
}
.bm-command-center-page .tab {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
}
.bm-command-center-page .tab-panel {
  margin-top: 8px;
}
.bm-command-center-page .split {
  gap: 10px;
}
.bm-command-center-page .split .left,
.bm-command-center-page .split .right {
  padding: 10px 12px;
}
.bm-command-center-page .filters {
  gap: 8px;
  row-gap: 6px;
}
.bm-command-center-page .filters > input:not([type='checkbox']):not([type='hidden']),
.bm-command-center-page .filters > select,
.bm-command-center-page .filters > button,
.bm-command-center-page .filters .bm-input-group input,
.bm-command-center-page .filters .bm-input-group button {
  min-height: 34px;
  font-size: 12px;
}
.bm-command-center-page .labels-subviews {
  margin-top: 8px;
  margin-bottom: 4px;
  gap: 6px;
}
.bm-command-center-page .labels-subviews .tab.small {
  padding: 4px 8px;
  font-size: 11px;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page .conflict-box {
  margin-top: 8px;
  padding: 10px 12px;
}

/* ~10 data rows + sticky thead; overrides v2 inline table spacing */
.bm-table-scroll.bm-table-scroll--ten-rows {
  max-height: calc(2.55rem * 10 + 2.75rem);
  margin-top: 8px;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page .bm-table-scroll--ten-rows table.table,
.bm-command-center-page .bm-table-scroll--ten-rows table.table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}
.faos-shell.bm-enterprise-shell main.bm-command-center-page .bm-table-scroll--ten-rows table.table td,
.faos-shell.bm-enterprise-shell main.bm-command-center-page .bm-table-scroll--ten-rows table.table th,
.bm-command-center-page .bm-table-scroll--ten-rows table.table td,
.bm-command-center-page .bm-table-scroll--ten-rows table.table th {
  padding: 7px 9px !important;
}
.bm-table-scroll--ten-rows .table th,
.bm-table-scroll--ten-rows .table td {
  font-size: 12px;
  line-height: 1.35;
}
.bm-table-scroll--ten-rows .table th {
  font-size: 10px;
}

/* Pallet Hub → Pallet Settings */
.bm-pallet-settings {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.bm-pallet-settings__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.bm-pallet-settings__product {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  flex: 1 1 220px;
}
.bm-pallet-settings__product select,
.bm-pallet-settings__section input,
.bm-pallet-settings__section select {
  width: 100%;
  max-width: 200px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.bm-pallet-settings__status {
  font-size: 12px;
  color: var(--text-soft);
}
.bm-pallet-settings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 14px;
}
.bm-pallet-settings__section {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.bm-pallet-settings__section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bm-pallet-settings__section label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 12px;
}
.bm-pallet-settings__section label:last-child {
  margin-bottom: 0;
}
.bm-pallet-settings__readonly output {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}
.bm-pallet-settings__preview {
  grid-column: 1 / -1;
}
.bm-pallet-settings__preview-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.bm-pallet-settings__preview-out {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, Consolas, monospace;
}

.bm-pallet-hub-chrome {
  margin-top: 8px;
}
.bm-pallet-hub-subnav {
  margin-bottom: 8px;
}
.bm-product-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 220px;
}
.bm-product-search__label {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.bm-product-search input[type='search'] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.bm-product-search__results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.bm-product-search__results li {
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.bm-product-search__results li:hover,
.bm-product-search__results li:focus {
  background: #f0fdfa;
}
.bm-product-search__picked {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
}
.bm-pallet-settings__capacity-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}
.bm-pallet-database {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.bm-pallet-database__toolbar {
  margin-bottom: 8px;
}
.bm-pallet-database__inspector {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.bm-pallet-database__inspector h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.bm-pallet-database__inspector-body {
  font-size: 12px;
  line-height: 1.5;
}
.bm-pallet-database__inspector-actions {
  margin-top: 10px;
}

.bm-rack-signal {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
}
.bm-rack-signal--empty {
  color: #64748b;
}
.bm-rack-inspector {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
}
.bm-rack-inspector__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.bm-rack-inspector__title--empty {
  color: #64748b;
  letter-spacing: 0.04em;
}
.bm-rack-inspector__hint,
.bm-rack-inspector__note {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}
.bm-rack-inspector__grid {
  display: grid;
  gap: 4px;
}
.bm-rack-inspector__row b {
  display: inline-block;
  min-width: 7.5rem;
  color: #475569;
}
.bm-rack-inspector__pallets h4 {
  margin: 10px 0 6px;
  font-size: 12px;
}
.bm-rack-inspector__pallet {
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.bm-rack-inspector__pallet-id {
  margin: 0 0 4px;
  font-weight: 700;
}
.bm-rack-inspector__err {
  color: #b91c1c;
  font-size: 12px;
}

