/* Approved business workspace v3.0: focused, task-first business pages. */
:root {
  --bv-bg: #f4f7fb;
  --bv-panel: #ffffff;
  --bv-line: #dbe3ee;
  --bv-line-strong: #cbd7e6;
  --bv-text: #10233f;
  --bv-muted: #66758a;
  --bv-blue: #1268df;
  --bv-blue-soft: #edf5ff;
  --bv-green: #14945f;
  --bv-green-soft: #eaf8f2;
  --bv-orange: #e88711;
  --bv-orange-soft: #fff5e8;
  --bv-red: #d64545;
  --bv-shadow: 0 8px 24px rgba(31, 60, 96, 0.06);
}

/* V55: stable, mature management console. Management keeps one expanded
   navigation rail and never inherits the business workspace collapse state. */
body.vnext-management-shell {
  --vnext-management-sidebar: 248px;
  --vnext-management-header: 70px;
  background: #f4f7fb;
}

body.vnext-management-shell .opc-topbar {
  min-height: var(--vnext-management-header);
  height: var(--vnext-management-header);
  padding: 0 28px;
  border-bottom: 1px solid #dce5f0;
  background: #fff;
  box-shadow: none;
}

body.vnext-management-shell .opc-brand {
  width: var(--vnext-management-sidebar);
  min-width: var(--vnext-management-sidebar);
}

body.vnext-management-shell .vnext-sidebar {
  top: var(--vnext-management-header);
  bottom: 0;
  width: var(--vnext-management-sidebar);
  padding: 20px 12px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid #dce5f0;
  background: #fff;
}

body.vnext-management-shell .vnext-sidebar-title {
  display: none;
}

body.vnext-management-shell .vnext-nav-group {
  margin: 1px 0;
}

body.vnext-management-shell .vnext-nav-group-row {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: stretch;
}

body.vnext-management-shell .vnext-side-link {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 42px 0 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  border: 0;
  border-radius: 7px;
  color: #263950;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.vnext-management-shell .vnext-side-link:hover {
  color: #1769e0;
  background: #f3f7fc;
}

body.vnext-management-shell .vnext-side-link.is-active {
  color: #1769e0;
  background: #edf5ff;
  box-shadow: none;
}

body.vnext-management-shell .vnext-side-link.is-active::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -12px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: #1769e0;
  content: "";
}

body.vnext-management-shell .vnext-side-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: currentColor;
}

body.vnext-management-shell .vnext-side-label {
  display: inline !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.vnext-management-shell .vnext-side-expander {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  display: grid !important;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #718096;
  background: transparent;
  cursor: pointer;
}

body.vnext-management-shell .vnext-side-expander:hover {
  color: #1769e0;
  background: #eaf3ff;
}

body.vnext-management-shell .vnext-side-expander span {
  display: block;
  transform: rotate(-90deg);
  transition: transform 150ms ease;
}

body.vnext-management-shell .vnext-side-expander[aria-expanded="true"] span {
  transform: rotate(0deg);
}

body.vnext-management-shell .vnext-subnav,
body.vnext-management-shell.vnext-sidebar-collapsed .vnext-subnav {
  margin: 0 8px 8px 40px;
  padding: 2px 0 2px 10px;
  display: grid;
  gap: 2px;
  border-left: 1px solid #d9e3ef;
}

body.vnext-management-shell .vnext-subnav[hidden],
body.vnext-management-shell.vnext-sidebar-collapsed .vnext-subnav[hidden] {
  display: none !important;
}

body.vnext-management-shell .vnext-sub-link {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  color: #5f6f84;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.vnext-management-shell .vnext-sub-link:hover,
body.vnext-management-shell .vnext-sub-link.is-active {
  color: #1769e0;
  background: #f0f6ff;
}

body.vnext-management-shell .vnext-sub-link.is-active {
  font-weight: 700;
}

body.vnext-management-shell .vnext-sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  display: grid;
  gap: 2px;
  border-top: 1px solid #e1e8f1;
}

body.vnext-management-shell.vnext-sidebar-collapsed {
  --vnext-sidebar-width: var(--vnext-management-sidebar);
}

body.vnext-management-shell.vnext-sidebar-collapsed .vnext-sidebar,
body.vnext-management-shell.vnext-sidebar-collapsed .vnext-side-link {
  width: auto;
}

body.vnext-management-shell.vnext-sidebar-collapsed .vnext-side-link {
  min-width: 0;
  padding: 0 42px 0 15px;
  justify-content: flex-start;
}

body.vnext-management-shell.vnext-sidebar-collapsed .vnext-side-link > span:not(.vnext-side-icon),
body.vnext-management-shell.vnext-sidebar-collapsed .vnext-side-expander {
  display: initial;
}

body.vnext-management-shell main.opc-shell {
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: calc(100vh - var(--vnext-management-header));
  margin: 0 0 0 var(--vnext-management-sidebar) !important;
  padding: 26px 30px 42px;
}

body.vnext-management-shell .vnext-module-heading {
  min-height: auto;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.vnext-management-shell .vnext-module-heading strong {
  color: #10213b;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.2;
}

body.vnext-management-shell .vnext-module-heading span {
  color: #66758b;
  font-size: 14px;
}

body.vnext-management-shell.vnext-management .opc-pagehead {
  display: none !important;
}

body.vnext-management-shell .opc-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

body.vnext-management-shell .opc-metric {
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 18px 48px 18px 20px;
  display: grid;
  align-content: center;
  justify-items: start;
  border: 1px solid #dce5f0;
  border-radius: 9px;
  color: #10213b;
  background: #fff;
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.vnext-management-shell .opc-metric:hover,
body.vnext-management-shell .opc-metric:focus-visible {
  border-color: #9fc2f3;
  box-shadow: 0 5px 16px rgba(35, 76, 128, .07);
  transform: translateY(-1px);
  outline: none;
}

body.vnext-management-shell .opc-metric-label {
  color: #66758b;
  font-size: 14px;
  font-weight: 500;
}

body.vnext-management-shell .opc-metric-value {
  margin: 3px 0 1px;
  color: #10213b;
  font-size: 31px;
  line-height: 1;
}

body.vnext-management-shell .opc-metric-sub {
  color: #66758b;
  font-size: 12px;
}

body.vnext-management-shell .opc-metric-go {
  position: absolute;
  top: 50%;
  right: 20px;
  color: #748398;
  font-size: 22px;
  transform: translateY(-50%);
}

body.vnext-management-shell .opc-panel,
body.vnext-management-shell .opc-metric {
  border-color: #dce5f0;
  border-radius: 9px;
}

body.vnext-management-shell .opc-panel {
  box-shadow: none;
}

body.vnext-management-shell .opc-panel-head {
  min-height: 62px;
  padding: 12px 18px;
  border-bottom: 1px solid #dce5f0;
}

body.vnext-management-shell .opc-panel-head h2,
body.vnext-management-shell .opc-panel > h2 {
  font-size: 18px;
}

body.vnext-management-shell .opc-grid-main-side {
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr);
  gap: 16px;
}

body.vnext-management-shell .opc-grid-main-side > div,
body.vnext-management-shell .opc-grid-main-side > aside {
  gap: 16px;
}

body.vnext-management-shell .opc-table th {
  height: 44px;
  padding: 0 12px;
  color: #506078;
  background: #f7f9fc;
  font-size: 12px;
}

body.vnext-management-shell .opc-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

body.vnext-management-shell .opc-table tbody tr:hover td {
  background: #f5f9ff;
}

body.vnext-management-shell .opc-btn {
  min-height: 40px;
  border-radius: 7px;
}

body.vnext-management-shell .opc-btn-sm {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

body.vnext-management-shell #activityZone .opc-timeline-item,
body.vnext-management-shell #activityZone li {
  padding-block: 12px;
}

body.vnext-management-shell[data-vnext-module="matching"] .opc-grid-main-side > div,
body.vnext-management-shell[data-vnext-module="transactions"] .opc-grid-main-side > div,
body.vnext-management-shell[data-vnext-module="governance"] .opc-grid-main-side > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.vnext-management-shell[data-vnext-module="matching"] #secMatches,
body.vnext-management-shell[data-vnext-module="transactions"] #secFunds {
  grid-column: 1 / -1;
}

body.vnext-management-shell[data-vnext-module="governance"] #secExceptions,
body.vnext-management-shell[data-vnext-module="governance"] #secActivity,
body.vnext-management-shell[data-vnext-module="governance"] #secAccounts,
body.vnext-management-shell[data-vnext-module="governance"] #secEntries {
  min-width: 0;
}

@media (max-width: 1180px) {
  body.vnext-management-shell .opc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.vnext-management-shell .opc-grid-main-side {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body.vnext-management-shell {
    min-width: 0;
  }
  body.vnext-management-shell .opc-topbar {
    min-height: 64px;
    height: 64px;
    padding: 0 14px;
  }
  body.vnext-management-shell .vnext-sidebar {
    display: none !important;
  }
  body.vnext-management-shell main.opc-shell {
    width: auto;
    margin-left: 0 !important;
    padding: 14px 12px 28px;
  }
  body.vnext-management-shell .vnext-module-heading strong {
    font-size: 24px;
  }
  body.vnext-management-shell .opc-metrics,
  body.vnext-management-shell[data-vnext-module="matching"] .opc-grid-main-side > div,
  body.vnext-management-shell[data-vnext-module="transactions"] .opc-grid-main-side > div,
  body.vnext-management-shell[data-vnext-module="governance"] .opc-grid-main-side > div {
    grid-template-columns: minmax(0, 1fr);
  }
  body.vnext-management-shell[data-vnext-module="matching"] #secMatches,
  body.vnext-management-shell[data-vnext-module="transactions"] #secFunds {
    grid-column: 1;
  }
}

body[data-vnext-business-layer="1"] {
  background: var(--bv-bg);
  color: var(--bv-text);
}

body[data-vnext-business-layer="1"] main.opc-shell > .opc-pagehead,
body[data-vnext-business-layer="1"] main.opc-shell > .opc-modnav,
body[data-vnext-business-layer="1"] main.opc-shell > .opc-notice,
body[data-vnext-business-layer="1"] main.opc-shell > #vnextCockpit,
body[data-vnext-business-layer="1"] main.opc-shell > #workZone {
  display: none !important;
}

body[data-vnext-business-layer="1"] main.opc-shell {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 28px 32px 48px;
  scroll-margin-top: 82px;
  overflow: visible;
}

body[data-vnext-business-layer="1"] .opc-topbar {
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--bv-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

body[data-vnext-business-layer="1"] .opc-brand {
  min-width: 238px;
  color: var(--bv-text);
  font-size: 22px;
  font-weight: 800;
}

body[data-vnext-business-layer="1"] .opc-brand small {
  margin-top: 2px;
  color: var(--bv-muted);
  font-size: 12px;
  font-weight: 500;
}

body[data-vnext-business-layer="1"] .vnext-global-search {
  width: min(100%, 620px);
  height: 42px;
  border: 1px solid var(--bv-line-strong);
  border-radius: 6px;
  background: #fff;
}

body[data-vnext-business-layer="1"] .vnext-global-search:focus-within {
  border-color: var(--bv-blue);
  box-shadow: 0 0 0 3px rgba(18, 104, 223, 0.1);
}

body[data-vnext-business-layer="1"] .vnext-search-submit {
  color: var(--bv-blue);
  font-weight: 700;
}

body[data-vnext-business-layer="1"] .opc-rolebadge,
body[data-vnext-business-layer="1"] .opc-btn,
body[data-vnext-business-layer="1"] .vnext-utility-link {
  border-radius: 6px;
}

body[data-vnext-business-layer="1"] .vnext-sidebar {
  width: 244px;
  padding: 24px 16px;
  border-right: 1px solid var(--bv-line);
  background: #fff;
}

body[data-vnext-business-layer="1"] .vnext-sidebar-title {
  padding: 0 14px 14px;
  color: #8a98ab;
  font-size: 12px;
  font-weight: 700;
}

body[data-vnext-business-layer="1"] .vnext-side-link,
body[data-vnext-business-layer="1"] .vnext-side-group > button {
  min-height: 46px;
  margin: 2px 0;
  padding: 0 14px;
  border-radius: 6px;
  color: #243650;
  font-weight: 650;
}

body[data-vnext-business-layer="1"] .vnext-side-link:hover,
body[data-vnext-business-layer="1"] .vnext-side-group > button:hover {
  background: #f4f7fb;
}

body[data-vnext-business-layer="1"] .vnext-side-link.is-active,
body[data-vnext-business-layer="1"] .vnext-side-group.is-active > button {
  color: var(--bv-blue);
  background: var(--bv-blue-soft);
  box-shadow: inset 3px 0 var(--bv-blue);
}

body[data-vnext-business-layer="1"] .vnext-side-children {
  margin: 2px 0 8px 34px;
  padding-left: 12px;
  border-left: 1px solid var(--bv-line);
}

body[data-vnext-business-layer="1"] .vnext-side-children a {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--bv-muted);
}

#vnextBusinessView {
  display: block;
  width: min(100%, 1480px);
  margin: 0 auto;
  color: var(--bv-text);
  letter-spacing: 0;
}

#vnextBusinessView[hidden] {
  display: none !important;
}

.bv-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.bv-page-head > div:first-child > span {
  display: block;
  margin-bottom: 8px;
  color: #8492a6;
  font-size: 13px;
}

.bv-page-head h1 {
  margin: 0;
  color: var(--bv-text);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.bv-page-head p {
  margin: 8px 0 0;
  color: var(--bv-muted);
  font-size: 14px;
}

.bv-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.bv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--bv-line-strong);
  border-radius: 6px;
  background: #fff;
  color: #243650;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.bv-btn:hover {
  border-color: #9db8dc;
  color: var(--bv-blue);
}

.bv-btn.is-primary {
  border-color: var(--bv-blue);
  background: var(--bv-blue);
  color: #fff;
}

.bv-btn.is-primary:hover {
  border-color: #0f5fcf;
  background: #0f5fcf;
  color: #fff;
}

.bv-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

body[data-vnext-business-layer="1"] .opc-modal .opc-btn:disabled {
  border-color: #d8e0eb;
  background: #eef2f7;
  color: #8b98aa;
  cursor: not-allowed;
  opacity: 1;
}

body[data-vnext-business-layer="1"] .opc-modal .opc-btn:disabled:hover {
  border-color: #d8e0eb;
  background: #eef2f7;
  color: #8b98aa;
}

.bv-link {
  border: 0;
  background: transparent;
  color: var(--bv-blue);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.bv-metrics,
.bv-order-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.bv-metric {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--bv-line);
  border-top: 3px solid var(--bv-blue);
  border-radius: 7px;
  background: var(--bv-panel);
  box-shadow: var(--bv-shadow);
}

.bv-metric.is-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bv-metric.is-link:hover {
  border-color: #b9cee8;
  box-shadow: 0 10px 24px rgba(34, 91, 164, 0.10);
  transform: translateY(-2px);
}

.bv-metric.is-link:focus-visible {
  outline: 3px solid rgba(22, 107, 226, 0.24);
  outline-offset: 3px;
}

.bv-metric.is-link:active {
  transform: translateY(0);
}

.bv-metric.is-green { border-top-color: var(--bv-green); }
.bv-metric.is-orange,
.bv-metric.is-amber { border-top-color: var(--bv-orange); }
.bv-metric.is-indigo { border-top-color: #6757d9; }

.bv-metric-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-right: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--bv-blue-soft);
  color: var(--bv-blue);
  font-size: 22px;
  font-weight: 800;
}

.bv-metric.is-green .bv-metric-icon { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-metric.is-orange .bv-metric-icon,
.bv-metric.is-amber .bv-metric-icon { background: var(--bv-orange-soft); color: var(--bv-orange); }
.bv-metric.is-indigo .bv-metric-icon { background: #f0edff; color: #6757d9; }

.bv-metric div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.bv-metric span:not(.bv-metric-icon),
.bv-metric small {
  color: var(--bv-muted);
  font-size: 12px;
}

.bv-metric strong {
  color: var(--bv-text);
  font-size: 28px;
  line-height: 1.1;
}

.bv-panel {
  min-width: 0;
  border: 1px solid var(--bv-line);
  border-radius: 7px;
  background: var(--bv-panel);
  box-shadow: var(--bv-shadow);
  overflow: hidden;
}

.bv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--bv-line);
}

.bv-panel-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.bv-panel-head p {
  margin: 4px 0 0;
  color: var(--bv-muted);
  font-size: 12px;
}

.bv-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-bottom: 18px;
}

.bv-table {
  width: 100%;
  overflow-x: auto;
}

.bv-table-head,
.bv-table-row {
  display: grid;
  align-items: center;
  min-width: 760px;
  border-bottom: 1px solid var(--bv-line);
}

.bv-table-head {
  min-height: 46px;
  background: #f7f9fc;
  color: #526278;
  font-size: 12px;
  font-weight: 800;
}

.bv-table-row {
  min-height: 64px;
  background: #fff;
  color: #293a52;
  font-size: 13px;
}

.bv-table-row:hover,
.bv-table-row.is-selected {
  background: #f6faff;
}

.bv-table-head > span,
.bv-table-row > span {
  min-width: 0;
  padding: 10px 14px;
}

.bv-table-row strong {
  display: block;
  overflow: hidden;
  color: var(--bv-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bv-table-row small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #8794a7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bv-todo-row {
  grid-template-columns: 120px minmax(260px, 1fr) 160px 90px;
}

.bv-table-empty {
  padding: 36px 22px;
  color: var(--bv-muted);
  text-align: center;
}

.bv-activity {
  margin: 0;
  padding: 18px 22px 22px;
  list-style: none;
}

.bv-activity li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 20px 16px;
  border-left: 2px solid #d8e6f8;
}

.bv-activity li::before {
  position: absolute;
  top: 3px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bv-blue);
  content: "";
}

.bv-activity time,
.bv-activity span {
  color: var(--bv-muted);
  font-size: 12px;
}

.bv-activity strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bv-text);
  font-size: 13px;
}

.bv-smart {
  display: grid;
  grid-template-columns: minmax(320px, 1.6fr) .7fr .7fr auto;
  align-items: center;
  gap: 20px;
  min-height: 128px;
  padding: 20px 24px;
  border: 1px solid var(--bv-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--bv-shadow);
}

.bv-smart-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bv-molecule {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: var(--bv-blue-soft);
  color: var(--bv-blue);
  font-size: 28px;
}

.bv-smart small,
.bv-smart p {
  margin: 0;
  color: var(--bv-muted);
  font-size: 12px;
}

.bv-smart strong {
  display: block;
  margin: 4px 0;
  color: var(--bv-text);
  font-size: 16px;
}

.bv-demand-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(5, minmax(110px, .7fr));
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid var(--bv-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--bv-shadow);
}

.bv-demand-strip > div {
  min-width: 0;
  padding: 16px 20px;
  border-right: 1px solid var(--bv-line);
}

.bv-demand-strip > div:last-child { border-right: 0; }
.bv-demand-strip small { display: block; margin-bottom: 7px; color: var(--bv-muted); font-size: 12px; }
.bv-demand-strip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bv-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 18px;
  padding: 20px 28px;
  border: 1px solid var(--bv-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--bv-shadow);
}

.bv-stepper span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #95a1b1;
  font-weight: 800;
}

.bv-stepper span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: 34px;
  right: 18px;
  height: 2px;
  background: #dce5f0;
  content: "";
}

.bv-stepper i {
  position: relative;
  z-index: 1;
  padding-right: 12px;
  background: #fff;
  font-style: normal;
  font-size: 13px;
}

.bv-stepper .is-done { color: var(--bv-green); }
.bv-stepper .is-current { color: var(--bv-blue); }
.bv-stepper .is-done::after { background: var(--bv-green); }

.bv-match-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.bv-selection-count {
  color: var(--bv-muted);
  font-size: 13px;
}

.bv-selection-count strong { color: var(--bv-blue); }

.bv-candidate-table {
  overflow-x: auto;
}

.bv-candidate-row {
  grid-template-columns: 42px minmax(174px, 1.25fr) minmax(92px, .68fr) minmax(76px, .58fr) minmax(150px, 1fr) minmax(138px, .92fr) minmax(126px, .86fr) minmax(76px, .56fr);
  min-width: 1030px;
}

.bv-check {
  display: inline-grid;
  width: 19px;
  height: 19px;
  padding: 0;
  place-items: center;
  border: 1px solid #aebbd0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.bv-check i {
  width: 9px;
  height: 5px;
  transform: translateY(-1px) rotate(-45deg);
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
}

.bv-check[aria-checked="true"] {
  border-color: var(--bv-blue);
  background: var(--bv-blue);
}

.bv-check[aria-checked="true"] i {
  border-color: #fff;
}

.bv-candidate-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--bv-blue);
}

.bv-score {
  color: var(--bv-green) !important;
}

.bv-cell-primary {
  display: block;
  color: var(--bv-text);
  font-size: 13px;
}

.bv-candidate-row > span > small {
  display: block;
  margin-top: 4px;
  color: var(--bv-muted);
  font-size: 11px;
  line-height: 1.45;
}

.bv-sticky-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 20px;
  border-top: 1px solid var(--bv-line);
  background: #fbfcfe;
}

.bv-sticky-actions span {
  color: var(--bv-muted);
  font-size: 12px;
}

.bv-basis {
  align-self: start;
}

.bv-basis dl,
.bv-detail dl {
  margin: 0;
  padding: 12px 22px;
}

.bv-basis dl > div,
.bv-detail dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--bv-line);
}

.bv-basis dt,
.bv-detail dt {
  color: var(--bv-muted);
  font-size: 12px;
}

.bv-basis dd,
.bv-detail dd {
  margin: 0;
  color: var(--bv-text);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.bv-basis > p,
.bv-detail > p {
  margin: 0;
  padding: 16px 22px;
  color: var(--bv-muted);
  font-size: 12px;
  line-height: 1.7;
}

.bv-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #5f6f83;
  font-size: 12px;
  font-weight: 700;
}

.bv-badge i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.bv-badge.is-ok { background: var(--bv-green-soft); color: var(--bv-green); }
.bv-badge.is-pending { background: var(--bv-orange-soft); color: #b56b0b; }
.bv-badge.is-danger { background: #fff0f0; color: var(--bv-red); }

.bv-supply-layout,
.bv-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.bv-supply-layout.is-single { grid-template-columns: minmax(0, 1fr); }

.bv-tabs {
  display: flex;
  gap: 26px;
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid var(--bv-line);
}

.bv-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #526278;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bv-tabs button.is-active {
  color: var(--bv-blue);
}

.bv-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--bv-blue);
  content: "";
}

.bv-supply-row {
  grid-template-columns: minmax(160px, 1.3fr) .62fr .78fr .72fr .78fr .85fr;
  min-width: 720px;
}

.bv-supply-row.is-capability {
  grid-template-columns: 1.1fr 1fr .9fr .8fr .85fr .55fr;
}

.bv-chemistry-row {
  grid-template-columns: minmax(210px, 1.5fr) minmax(130px, .85fr) minmax(135px, .9fr) minmax(190px, 1.15fr) minmax(110px, .65fr);
  min-width: 820px;
}

.bv-equipment-summary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--bv-line);
  background: #f6f9fd;
}

.bv-equipment-summary > div { display: grid; min-width: 150px; }
.bv-equipment-summary strong { color: var(--bv-blue); font-size: 26px; }
.bv-equipment-summary span,
.bv-equipment-summary p { margin: 0; color: var(--bv-muted); font-size: 12px; line-height: 1.6; }

.bv-equipment-row {
  grid-template-columns: 1.15fr 1.2fr .8fr 1fr .72fr .55fr;
  min-width: 920px;
}

.bv-equipment-row strong,
.bv-equipment-row small { display: block; }
.bv-equipment-row small { margin-top: 4px; color: var(--bv-muted); font-size: 11px; line-height: 1.45; }

button.bv-table-row {
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--bv-line);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bv-detail {
  align-self: start;
  padding-bottom: 18px;
}

.bv-detail header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--bv-line);
}

.bv-detail header span {
  color: var(--bv-muted);
  font-size: 12px;
}

.bv-detail header h2 {
  margin: 5px 0 0;
  font-size: 19px;
  letter-spacing: 0;
}

.bv-order-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.bv-order-current small {
  color: var(--bv-muted);
  font-size: 11px;
}

.bv-order-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 14px 22px 6px;
  gap: 12px;
}

.bv-order-facts > div:first-child { grid-column: 1 / -1; }

/* Order facts use full-width rows, never four squeezed label/value columns. */
.bv-order-detail.bv-detail { display: block; min-width: 0; }
.bv-order-detail.bv-detail .bv-order-facts { grid-template-columns: minmax(0, 1fr); }
.bv-order-detail.bv-detail .bv-order-facts > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}
.bv-order-detail.bv-detail .bv-order-facts dt {
  margin: 0;
  line-height: 1.7;
  word-break: normal;
}
.bv-order-detail.bv-detail .bv-order-facts dd {
  text-align: left;
  min-width: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.bv-order-layout .bv-order-row {
  min-width: 690px;
  grid-template-columns: minmax(100px, 1fr) minmax(140px, 1.4fr) 64px 100px 116px 76px;
  column-gap: 10px;
}
.bv-order-layout .bv-order-row > span { padding: 12px 8px; }
.bv-order-layout .bv-order-row .bv-badge,
.bv-order-layout .bv-order-row em,
.bv-order-layout .bv-order-row > span:last-child { white-space: nowrap; }
.bv-order-facts dt { margin-bottom: 4px; color: var(--bv-muted); font-size: 11px; }
.bv-order-facts dd { margin: 0; color: var(--bv-text); font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }

.bv-detail > .bv-btn {
  width: calc(100% - 44px);
  margin: 16px 22px 0;
}

.bv-order-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 16px 22px 0;
}

.bv-order-actions .bv-btn {
  width: 100%;
}

.bv-order-switch {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid var(--bv-line-strong);
  border-radius: 6px;
  overflow: hidden;
}

.bv-order-switch a {
  min-width: 128px;
  padding: 11px 18px;
  background: #fff;
  color: #526278;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.bv-order-switch a.is-active {
  background: var(--bv-blue);
  color: #fff;
}

.bv-current-section {
  align-self: center;
  padding: 8px 13px;
  border: 1px solid #b9d1f2;
  border-radius: 999px;
  background: #edf5ff;
  color: #1268d4;
  font-size: 13px;
  font-weight: 800;
}

.bv-order-row {
  grid-template-columns: 1.05fr 1.35fr .62fr .9fr .9fr .65fr;
  min-width: 820px;
}

.bv-quote-context {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  overflow-wrap: anywhere;
}
.bv-quote-context[open] {
  padding: 12px 16px;
  background: #f5f8fc;
  border: 1px solid #dce5f2;
  border-radius: 8px;
}
.bv-quote-context summary { cursor: pointer; color: #1264d6; }
.bv-quote-context > div { margin-top: 8px; line-height: 1.7; }
.bv-order-row em {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bv-blue-soft);
  color: var(--bv-blue);
  font-style: normal;
  font-size: 12px;
}

.bv-order-row em.is-sale {
  background: var(--bv-green-soft);
  color: var(--bv-green);
}

.bv-progress {
  margin: 0;
  padding: 12px 24px 6px 44px;
  list-style: none;
}

.bv-progress li {
  position: relative;
  min-height: 52px;
  padding: 2px 0 18px 10px;
  border-left: 2px solid #dce5ef;
  color: #8290a3;
  font-size: 13px;
}

.bv-progress li strong,
.bv-progress li small { display: block; }

.bv-progress li small {
  margin-top: 4px;
  color: #8290a3;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.bv-progress li::before {
  position: absolute;
  top: 0;
  left: -8px;
  width: 12px;
  height: 12px;
  border: 2px solid #dce5ef;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.bv-progress li.is-done { color: var(--bv-green); }
.bv-progress li.is-current { color: var(--bv-blue); font-weight: 800; }
.bv-progress li.is-done::before { border-color: var(--bv-green); background: var(--bv-green); }
.bv-progress li.is-current::before { border-color: var(--bv-blue); background: #fff; }

.bv-next-step {
  margin: 4px 22px 12px;
  padding: 13px 14px;
  border: 1px solid #f2d3a8;
  border-radius: 6px;
  background: var(--bv-orange-soft);
  color: #9c5b08;
  font-size: 12px;
}

.bv-source-state,
.bv-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 166px;
  padding: 32px;
  gap: 16px;
  color: var(--bv-muted);
  text-align: left;
}

.bv-source-state strong,
.bv-empty strong {
  display: block;
  color: var(--bv-text);
  font-size: 16px;
}

.bv-source-state p,
.bv-empty p {
  margin: 5px 0 0;
  font-size: 13px;
}

.bv-loader {
  width: 28px;
  height: 28px;
  border: 3px solid #d7e6fa;
  border-top-color: var(--bv-blue);
  border-radius: 50%;
  animation: bv-spin .8s linear infinite;
}

.bv-source-state.is-delayed,
.bv-source-state.is-error {
  justify-content: space-between;
  min-height: 140px;
}

.bv-empty {
  flex-direction: column;
  text-align: center;
}

.bv-empty-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--bv-blue-soft);
  color: var(--bv-blue);
}

@keyframes bv-spin { to { transform: rotate(360deg); } }

@media (max-width: 1220px) {
  .bv-dashboard-grid,
  .bv-match-grid,
  .bv-supply-layout,
  .bv-order-layout {
    grid-template-columns: 1fr;
  }

  .bv-smart {
    grid-template-columns: minmax(280px, 1.4fr) .7fr .7fr;
  }

  .bv-smart > .bv-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .bv-detail {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr);
  }

  .bv-detail header { border-right: 1px solid var(--bv-line); }
  .bv-detail > .bv-btn { align-self: center; width: auto; }
}

@media (max-width: 980px) {
  body[data-vnext-business-layer="1"] main.opc-shell { padding: 22px 18px 88px; }
  .bv-metrics,
  .bv-order-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bv-demand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bv-demand-strip > div:nth-child(3) { border-right: 0; }
  .bv-demand-strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--bv-line); }
}

@media (max-width: 720px) {
  body[data-vnext-business-layer="1"] main.opc-shell { padding: 18px 12px 88px; }
  .bv-page-head { align-items: stretch; flex-direction: column; }
  .bv-page-head h1 { font-size: 25px; }
  .bv-head-actions { justify-content: stretch; }
  .bv-head-actions .bv-btn { flex: 1 1 140px; }
  .bv-metrics,
  .bv-order-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bv-metric { min-height: 96px; padding: 14px; }
  .bv-metric-icon { width: 38px; height: 38px; margin-right: 10px; font-size: 17px; }
  .bv-metric strong { font-size: 23px; }
  .bv-dashboard-grid { gap: 12px; }
  .bv-smart { grid-template-columns: 1fr 1fr; padding: 16px; }
  .bv-smart-main { grid-column: 1 / -1; }
  .bv-smart > .bv-btn { justify-self: stretch; }
  .bv-demand-strip { grid-template-columns: 1fr 1fr; }
  .bv-demand-strip > div:nth-child(3) { border-right: 1px solid var(--bv-line); }
  .bv-demand-strip > div:nth-child(2n) { border-right: 0; }
  .bv-demand-strip > div:nth-child(-n+4) { border-bottom: 1px solid var(--bv-line); }
  .bv-stepper { grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
  .bv-stepper span::after { display: none; }
  .bv-sticky-actions { align-items: stretch; flex-direction: column; }
  .bv-sticky-actions .bv-btn { width: 100%; }
  .bv-tabs { gap: 14px; overflow-x: auto; }
  .bv-tabs button { flex: 0 0 auto; }
  .bv-todo-table .bv-table-head { display: none; }
  .bv-todo-table .bv-todo-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    padding: 12px 14px;
    gap: 8px 12px;
  }
  .bv-todo-table .bv-todo-row > span { padding: 0; }
  .bv-todo-table .bv-todo-row > span:nth-child(1) {
    color: var(--bv-blue);
    font-size: 12px;
    font-weight: 800;
  }
  .bv-todo-table .bv-todo-row > span:nth-child(2) { grid-column: 1 / -1; }
  .bv-todo-table .bv-todo-row > span:nth-child(2) strong,
  .bv-todo-table .bv-todo-row > span:nth-child(2) small {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .bv-todo-table .bv-todo-row > span:nth-child(3) { grid-column: 1; }
  .bv-todo-table .bv-todo-row > span:nth-child(4) { grid-column: 2; grid-row: 1; }
  .bv-detail { display: block; }
  .bv-detail header { border-right: 0; }
  .bv-order-switch { width: 100%; }
  .bv-order-switch a { flex: 1; min-width: 0; }
  .bv-source-state.is-delayed,
  .bv-source-state.is-error { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .bv-loader { animation: none; }
}

/* V32: approved operational navigation and in-page registration drawer */
body[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar {
  width: 264px;
  padding: 18px 14px 22px;
  background: #fff;
  border-right: 1px solid #dfe6ef;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar-title {
  min-height: 44px;
  padding: 0 10px 12px;
  color: #718096;
  font-size: 14px;
  font-weight: 700;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-nav-group { margin: 2px 0; }
body[data-vnext-design="approved-business-workspace-v32"] .vnext-nav-group-row { min-height: 48px; }
body[data-vnext-design="approved-business-workspace-v32"] .vnext-side-link {
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #16233a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-side-link:hover,
body[data-vnext-design="approved-business-workspace-v32"] .vnext-side-link.is-active {
  color: #0868e9;
  background: #edf5ff;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-side-link.is-active::before {
  width: 3px;
  border-radius: 0 3px 3px 0;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-side-icon {
  width: 24px;
  color: currentColor;
  font-size: 18px;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-side-expander { right: 10px; color: #6c7b90; }
body[data-vnext-design="approved-business-workspace-v32"] .vnext-subnav {
  position: relative;
  margin: 0 0 7px 36px;
  padding: 2px 0 2px 14px;
  border-left: 1px solid #d8e2ef;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-sub-link {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5e6c81;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-sub-link:hover,
body[data-vnext-design="approved-business-workspace-v32"] .vnext-sub-link.is-active {
  color: #0868e9;
  background: #eef5ff;
  font-weight: 700;
}
body[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e5eaf1;
}

/* V32 visual shell: faithful to the approved four-screen workspace. */
body[data-vnext-design="approved-business-workspace-v32"] .opc-topbar {
  min-height: 72px;
  height: 72px;
  gap: 22px;
  padding: 0 24px;
  border-bottom-color: #dde5ef;
  background: rgba(255, 255, 255, 0.98);
}

body[data-vnext-design="approved-business-workspace-v32"] .opc-brand {
  display: flex;
  width: 242px;
  min-width: 242px;
  align-items: center;
  gap: 11px;
  color: #14233a;
  text-decoration: none;
}

body[data-vnext-design="approved-business-workspace-v32"] .opc-brand::before { display: none; }

body[data-vnext-design="approved-business-workspace-v32"] .opc-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: #1268df;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

body[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy strong {
  color: #12223a;
  font-size: 21px;
  line-height: 1.15;
}

body[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy small {
  margin: 0;
  color: #68778c;
  font-size: 11px;
  line-height: 1.2;
}

body[data-vnext-design="approved-business-workspace-v32"] .vnext-global-search {
  display: flex;
  width: min(620px, 42vw);
  height: 42px;
  padding: 0 0 0 14px;
  align-items: center;
  gap: 9px;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  background: #fbfcfe;
}

body[data-vnext-design="approved-business-workspace-v32"] .vnext-global-search input {
  min-width: 0;
  height: 38px;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #18273e;
  font-size: 14px;
}

body[data-vnext-design="approved-business-workspace-v32"] .vnext-search-submit {
  align-self: stretch;
  min-width: 68px;
  height: auto;
  padding: 0 15px;
  border: 0;
  border-left: 1px solid #dbe3ee;
  background: transparent;
  color: #1268df;
  font-size: 14px;
  font-weight: 800;
}

body[data-vnext-design="approved-business-workspace-v32"] .opc-topbar-right {
  gap: 9px;
  white-space: nowrap;
}

body[data-vnext-design="approved-business-workspace-v32"] .opc-rolebadge {
  padding: 7px 12px;
  border-color: #bcd2f4;
  background: #edf5ff;
  color: #245ca9;
  font-size: 12px;
  font-weight: 800;
}

body[data-vnext-design="approved-business-workspace-v32"] .opc-btn-sm {
  min-height: 36px;
  padding: 0 13px;
  border-color: #d4deea;
  background: #fff;
  color: #2c3b50;
}

body[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar {
  top: 72px;
  width: 264px;
}

body[data-vnext-design="approved-business-workspace-v32"] main.opc-shell {
  min-height: calc(100vh - 72px);
  margin-left: 264px;
  padding: 26px 32px 48px;
}

body[data-vnext-design="approved-business-workspace-v32"] #vnextBusinessView {
  width: min(100%, 1480px);
}

body[data-vnext-design="approved-business-workspace-v32"] .bv-page-head {
  margin-bottom: 20px;
}

body[data-vnext-design="approved-business-workspace-v32"] .bv-page-head h1 {
  font-size: 31px;
}

body[data-vnext-design="approved-business-workspace-v32"] .bv-panel,
body[data-vnext-design="approved-business-workspace-v32"] .bv-detail,
body[data-vnext-design="approved-business-workspace-v32"] .bv-todo-table,
body[data-vnext-design="approved-business-workspace-v32"] .bv-metric {
  border-color: #d9e2ed;
  box-shadow: 0 6px 18px rgba(34, 59, 92, 0.045);
}

body[data-vnext-design="approved-business-workspace-v32"] .bv-panel-head {
  min-height: 62px;
  padding: 0 22px;
}

body[data-vnext-design="approved-business-workspace-v32"] .bv-table-row,
body[data-vnext-design="approved-business-workspace-v32"] .bv-table-head {
  min-height: 58px;
}

@media (max-width: 1120px) {
  body[data-vnext-design="approved-business-workspace-v32"] .opc-brand {
    width: 210px;
    min-width: 210px;
  }
  body[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy small { display: none; }
  body[data-vnext-design="approved-business-workspace-v32"] .vnext-global-search { width: min(470px, 38vw); }
}

@media (max-width: 900px) {
  body[data-vnext-design="approved-business-workspace-v32"] .opc-brand {
    width: auto;
    min-width: auto;
  }
  body[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy { display: none; }
  body[data-vnext-design="approved-business-workspace-v32"] .vnext-global-search { width: min(420px, 50vw); }
  body[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar { top: 72px; }
}

/* V53: mature management shell uses one navigation source: the sidebar. */
body.vnext-management-shell .opc-topbar .vnext-global-search {
  display: none;
}

body.vnext-portal .opc-topbar .vnext-header-space {
  display: none !important;
}

body.vnext-management-shell .opc-topbar .opc-topbar-right {
  margin-left: auto !important;
}

.vnext-portal-mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  body.vnext-portal .vnext-portal-mobile-menu {
    display: block;
    position: relative;
    margin: 0 0 14px;
  }

  body.vnext-portal .vnext-portal-mobile-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--bv-line);
    border-radius: 10px;
    color: var(--bv-ink);
    background: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
  }

  body.vnext-portal .vnext-portal-mobile-menu .vnext-mobile-nav {
    display: none;
    position: absolute;
    z-index: 80;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: min(68vh, 520px);
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--bv-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 44, 78, .14);
  }

  body.vnext-portal .vnext-portal-mobile-menu.is-open .vnext-mobile-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.vnext-portal .vnext-portal-mobile-menu .vnext-mobile-link {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    border: 0;
    border-radius: 8px;
    color: var(--bv-ink);
    background: transparent;
    text-align: left;
  }

  body.vnext-portal .vnext-portal-mobile-menu .vnext-mobile-link.is-active {
    color: var(--bv-blue);
    background: #eef5ff;
  }
}

/* Demand draft recognition is an explicit preview action.  Conflict styling
   warns without replacing anything the buyer already typed. */
.bv-demand-recognition {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -2px 0 4px;
  padding: 12px 14px;
  border: 1px solid #d9e7f8;
  border-radius: 12px;
  background: #f7fbff;
  color: #60748f;
  font-size: 13px;
  line-height: 1.6;
}

.bv-demand-recognition .bv-btn {
  flex: 0 0 auto;
}

.bv-drawer-form .is-recognition-conflict {
  border-color: #e2a72c !important;
  box-shadow: 0 0 0 3px rgba(226, 167, 44, 0.14) !important;
}

@media (max-width: 640px) {
  .bv-demand-recognition {
    align-items: stretch;
  }

  .bv-demand-recognition .bv-btn {
    width: 100%;
  }
}

/* Procurement workspace: one real list, one direct intake form, exact-record actions. */
.bv-procurement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.bv-demand-manager,
.bv-quick-demand {
  min-width: 0;
}

.bv-quick-demand {
  position: sticky;
  top: 88px;
  padding-bottom: 18px;
}

.bv-quick-demand .bv-drawer-form {
  padding: 0 20px;
}

.bv-quick-demand .bv-drawer-footer {
  position: static;
  margin: 4px 0 0;
  padding: 16px 0 0;
  box-shadow: none;
}

.bv-quick-demand .bv-drawer-footer .is-secondary {
  display: none;
}

.bv-quick-demand .bv-drawer-footer .is-primary {
  width: 100%;
}

.bv-agent-note[data-bv-supply-registration] small {
  display: block;
  margin-top: 8px;
  line-height: 1.65;
  color: #526b89;
}
.bv-agent-note[data-bv-supply-registration] {
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.bv-agent-note {
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  color: #36567f;
  background: #f3f7ff;
  font-size: 13px;
  line-height: 1.6;
}

.bv-preloaded-mark {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff3d6;
  color: #925600;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  vertical-align: middle;
}

.bv-preloaded-note,
.bv-completeness {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f0d398;
  border-radius: 8px;
  background: #fff9ed;
  color: #76501d;
  font-size: 13px;
  line-height: 1.55;
}

.bv-preloaded-note strong,
.bv-completeness strong { color: #6e450c; }
.bv-preloaded-note.is-drawer { margin-top: -12px; }
.bv-completeness {
  border-color: #cfe0f4;
  background: #f5f9fe;
  color: #49637f;
}
.bv-completeness strong { color: #194f8f; }
.bv-missing-fields { color: #9a5b00 !important; }

.bv-demand-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--bv-line);
  border-bottom: 1px solid var(--bv-line);
  background: #fbfcff;
}

.bv-demand-filters input,
.bv-demand-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cfdaea;
  border-radius: 7px;
  outline: none;
  color: #16243a;
  background: #fff;
  font: inherit;
}

.bv-demand-filters input:focus,
.bv-demand-filters select:focus {
  border-color: var(--bv-blue);
  box-shadow: 0 0 0 3px rgba(18, 105, 236, .10);
}

.bv-demand-filters > span {
  color: var(--bv-muted);
  font-size: 13px;
  white-space: nowrap;
}

.bv-demand-list-row {
  grid-template-columns: minmax(260px, 1.7fr) minmax(150px, .85fr) 125px 150px 150px;
}

.bv-demand-list .bv-table-row {
  min-height: 84px;
}

.bv-demand-list .bv-table-row > span:first-child small {
  margin-top: 7px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.bv-demand-title-link {
  display: block;
  overflow: hidden;
  color: var(--bv-text);
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bv-demand-title-link.is-product { font-size: 13px; }

.bv-demand-title-link:hover,
.bv-demand-title-link:focus-visible {
  color: var(--bv-blue);
  text-decoration: underline;
}

.bv-row-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.bv-row-actions .bv-link {
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.bv-pagination {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--bv-line);
  color: var(--bv-muted);
  font-size: 13px;
}

.bv-pagination > div {
  display: flex;
  gap: 8px;
}

.bv-pagination .bv-btn {
  min-height: 36px;
  padding: 0 14px;
}

.bv-pagination .bv-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.bv-order-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px auto;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--bv-line);
  border-bottom: 1px solid var(--bv-line);
  background: #fbfcff;
}

.bv-order-filters input,
.bv-order-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cfdaea;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #16243a;
  font: inherit;
}

.bv-order-filters input:focus,
.bv-order-filters select:focus {
  border-color: var(--bv-blue);
  box-shadow: 0 0 0 3px rgba(18, 105, 236, .10);
}

.bv-order-filters > span {
  color: var(--bv-muted);
  font-size: 13px;
  white-space: nowrap;
}

.bv-message-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.bv-message-nav {
  display: grid;
  padding: 10px;
}

.bv-message-nav button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #34445b;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.bv-message-nav button:hover,
.bv-message-nav button.is-active {
  color: #0868e9;
  background: #edf4ff;
}

.bv-message-nav strong {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e7eef8;
  font-size: 12px;
  text-align: center;
}

.bv-message-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 22px;
  border-top: 1px solid var(--bv-line);
}

.bv-message-dot {
  width: 9px;
  height: 9px;
  margin-top: 28px;
  border-radius: 50%;
  background: #1d70e8;
  box-shadow: 0 0 0 5px #eaf3ff;
}

.bv-message-item.is-todo .bv-message-dot {
  background: #e99519;
  box-shadow: 0 0 0 5px #fff3df;
}

.bv-message-item.is-read { background: #fbfcfe; }
.bv-message-item.is-read .bv-message-dot { background: #a8b4c3; box-shadow: 0 0 0 5px #eef2f6; }
.bv-message-item.is-read h3 { color: #617087; font-weight: 650; }

.bv-message-item h3 {
  margin: 4px 0 6px;
  color: #14243a;
  font-size: 16px;
}

.bv-message-item small,
.bv-message-item p {
  color: var(--bv-muted);
}

.bv-message-item p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.bv-message-item > div > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bv-message-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bv-message-head-actions .bv-link,
.bv-message-read {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bv-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.bv-message-head-actions button:disabled,
.bv-message-read:disabled { color: #9aa6b5; cursor: default; }

/* V49: top-level business navigation aligned with the approved desktop references. */
body[data-vnext-business-layer="1"] .opc-topbar .vnext-global-search,
body.vnext-business-subpage .opc-topbar .vnext-global-search {
  display: none;
}

body[data-vnext-business-layer="1"] .opc-topbar .opc-nav.vnext-business-primary-nav {
  display: flex !important;
  min-width: 520px;
  height: 72px;
  margin: 0;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 4px;
  overflow: visible;
}

body[data-vnext-business-layer="1"] .opc-topbar .vnext-primary-link {
  position: relative;
  display: inline-flex;
  min-height: 72px;
  padding: 0 17px;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #1f2937;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body[data-vnext-business-layer="1"] .opc-topbar .vnext-primary-link:hover {
  color: var(--bv-blue);
  background: transparent;
}

body[data-vnext-business-layer="1"] .opc-topbar .vnext-primary-link.is-active,
body[data-vnext-business-layer="1"] .opc-topbar .vnext-primary-link[aria-current="page"] {
  color: var(--bv-blue);
  border-bottom-color: var(--bv-blue);
  background: transparent;
}

body[data-vnext-business-layer="1"] .opc-topbar .opc-topbar-right {
  margin-left: auto !important;
}

@media (max-width: 1180px) and (min-width: 901px) {
  body[data-vnext-business-layer="1"] .opc-topbar .opc-brand {
    width: 190px !important;
    min-width: 190px !important;
  }
  body[data-vnext-business-layer="1"] .opc-topbar .opc-nav.vnext-business-primary-nav {
    min-width: 450px;
  }
  body[data-vnext-business-layer="1"] .opc-topbar .vnext-primary-link {
    padding-inline: 11px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  body[data-vnext-business-layer="1"] .opc-topbar .opc-nav.vnext-business-primary-nav {
    display: none !important;
  }
}

.bv-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--bv-line);
  border-radius: var(--bv-radius);
  background: #fff;
}

.bv-quick-actions .bv-btn {
  min-height: 50px;
  justify-content: center;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1280px) {
  .bv-procurement-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .bv-demand-list-row { grid-template-columns: minmax(230px, 1.5fr) 140px 115px 135px 130px; }
}

@media (max-width: 1080px) {
  .bv-procurement-layout { grid-template-columns: 1fr; }
  .bv-quick-demand { position: static; }
  .bv-demand-list { overflow-x: auto; }
  .bv-demand-list-row { min-width: 850px; }
}

@media (max-width: 720px) {
  .bv-demand-filters { grid-template-columns: 1fr; }
  .bv-demand-filters > span { justify-self: end; }
  /* The header action already opens the same real intake form.  Keeping a
     second full form below the list makes the mobile workspace unnecessarily
     long and gives the impression that there are two different workflows. */
  .bv-quick-demand { display: none; }
  .bv-demand-list { overflow: visible; padding: 10px 0; }
  .bv-demand-list .bv-table-head { display: none; }
  .bv-demand-list .bv-table-row {
    display: grid;
    min-width: 0;
    min-height: 0;
    margin: 0 12px 10px;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    border: 1px solid var(--bv-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(24, 55, 96, .04);
  }
  .bv-demand-list .bv-table-row > span {
    display: block;
    min-width: 0;
    padding: 0;
    overflow: visible;
  }
  .bv-demand-list .bv-table-row > span:first-child,
  .bv-demand-list .bv-table-row > span:nth-child(2),
  .bv-demand-list .bv-row-actions {
    grid-column: 1 / -1;
  }
  .bv-demand-list .bv-table-row > span:nth-child(3)::before,
  .bv-demand-list .bv-table-row > span:nth-child(4)::before {
    display: block;
    margin-bottom: 5px;
    color: var(--bv-muted);
    font-size: 11px;
  }
  .bv-demand-list .bv-table-row > span:nth-child(3)::before { content: "匹配状态"; }
  .bv-demand-list .bv-table-row > span:nth-child(4)::before { content: "更新时间"; text-align: right; }
  .bv-demand-list .bv-table-row > span:nth-child(4) { text-align: right; color: var(--bv-muted); font-size: 13px; }
  .bv-demand-list .bv-row-actions {
    padding-top: 11px;
    border-top: 1px solid var(--bv-line);
  }
  .bv-demand-list .bv-row-actions .bv-link {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #c6d8f4;
    border-radius: 6px;
    line-height: 20px;
  }
  .bv-demand-list .bv-row-actions .bv-link:first-child {
    color: #fff;
    border-color: var(--bv-blue);
    background: var(--bv-blue);
  }
  .bv-pagination { align-items: flex-start; flex-direction: column; }
  .bv-order-filters { grid-template-columns: 1fr; }
  .bv-message-layout { grid-template-columns: 1fr; }
  .bv-message-nav { grid-template-columns: 1fr 1fr; }
  .bv-message-item { padding: 16px; }
  .bv-quick-actions { grid-template-columns: 1fr 1fr; }
}

body.bv-drawer-open { overflow: hidden; }
.bv-drawer-layer[hidden] { display: none; }
.bv-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.bv-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 25, 45, 0.34);
  opacity: 0;
  cursor: default;
  transition: opacity 180ms ease;
  pointer-events: auto;
}
.bv-drawer {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  height: 100%;
  overflow: auto;
  background: #fff;
  box-shadow: -18px 0 48px rgba(17, 35, 62, 0.16);
  transform: translateX(100%);
  transition: transform 220ms ease;
  pointer-events: auto;
}
.bv-drawer-layer.is-open .bv-drawer-backdrop { opacity: 1; }
.bv-drawer-layer.is-open .bv-drawer { transform: translateX(0); }
.bv-drawer > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
  border-bottom: 1px solid #e6ebf2;
  background: rgba(255,255,255,0.96);
}
.bv-drawer-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #f3f6fa;
  color: #26364c;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.bv-drawer-body { padding: 30px 34px 36px; }
.bv-drawer-kicker {
  margin-bottom: 8px;
  color: #0868e9;
  font-size: 13px;
  font-weight: 800;
}
.bv-drawer-body h2 {
  margin: 0 0 10px;
  color: #10213a;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}
.bv-drawer-body > p {
  margin: 0 0 28px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}
.bv-drawer-form { display: grid; gap: 18px; }
.bv-weight-pricing {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  background: #f8fbff;
}
.bv-weight-pricing__head,
.bv-price-row__head,
.bv-price-actions,
.bv-price-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bv-weight-pricing__head > div { display: grid; gap: 4px; }
.bv-weight-pricing__head strong { color: #10243e; font-size: 17px; }
.bv-weight-pricing__head span,
.bv-price-actions span { color: #62758d; font-size: 13px; line-height: 1.6; }
.bv-price-rows { display: grid; gap: 12px; }
.bv-price-row { padding: 16px; border: 1px solid #d8e4f2; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(32, 75, 120, .045); }
.bv-price-row__head { margin-bottom: 10px; }
.bv-price-row__head > div { display: grid; gap: 3px; }
.bv-price-row__head strong { color: #17304f; }
.bv-price-row__head span { color: #73859a; font-size: 12px; font-weight: 500; line-height: 1.5; }
.bv-link.is-danger { color: #b13b3b; }
.bv-price-add-group { display: flex; flex-wrap: wrap; gap: 8px; }
.bv-price-actions { flex-wrap: wrap; justify-content: flex-start; }
.bv-price-actions > [data-bv-price-status] { flex: 1 1 100%; padding: 9px 11px; border-radius: 8px; background: #f5f8fc; color: #64768c; line-height: 1.55; }
.bv-price-row__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bv-price-row__grid label { display: grid; gap: 6px; color: #51657d; font-size: 12px; }
.bv-price-row__grid label.is-wide { grid-column: 1 / -1; }
.bv-price-row__grid [hidden] { display: none !important; }
.bv-price-row__grid input,
.bv-price-row__grid select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #d3dfed; border-radius: 7px; background: #fff; color: #10243e; }
.bv-price-customer-preview { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 12px; padding: 11px 12px; border-radius: 9px; background: #f2f7fd; }
.bv-price-customer-preview span { color: #64778e; font-size: 12px; }
.bv-price-customer-preview strong { color: #125fbf; font-size: 13px; line-height: 1.55; }
.bv-price-row[data-price-mode="range_unit"] { border-left: 4px solid #18a078; }
.bv-price-row[data-price-mode="inquiry"] { border-left: 4px solid #d49a32; background: #fffdf8; }
.bv-price-confirm { justify-content: flex-start; align-items: flex-start; color: #334b68; font-size: 13px; line-height: 1.6; }
.bv-price-confirm input { margin-top: 4px; }
.bv-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bv-field { display: grid; gap: 8px; }
.bv-field > span { color: #27364b; font-size: 14px; font-weight: 700; }
.bv-field b { color: #d92d20; }
.bv-field small {
  margin-left: 4px;
  color: #7a8798;
  font-size: 12px;
  font-weight: 500;
}
.bv-field input,
.bv-field select,
.bv-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd9e6;
  border-radius: 6px;
  background: #fff;
  color: #16233a;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}
.bv-field textarea { min-height: 118px; resize: vertical; }
.bv-field input:focus,
.bv-field select:focus,
.bv-field textarea:focus {
  border-color: #1473e6;
  box-shadow: 0 0 0 3px rgba(20,115,230,0.12);
}
.bv-cas-lookup {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  background: #f7f9fc;
  color: #607086;
  font-size: 13px;
  line-height: 1.55;
}
.bv-cas-lookup.is-pending { border-color: #bfd7f6; background: #f2f7fe; color: #315c9b; }
.bv-cas-lookup.is-ok { border-color: #b9e2cd; background: #f1faf6; color: #137a4b; }
.bv-cas-lookup.is-unresolved { border-color: #f1d3a5; background: #fff8ed; color: #93580c; }
.bv-cas-lookup.is-error { border-color: #f2c6bd; background: #fff4f1; color: #c4320a; }
.bv-name-lookup {
  padding: 9px 12px;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
  color: #607086;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.5;
}
.bv-name-lookup.is-ok { border-color: #b9e2cd; background: #f1faf6; color: #137a4b; }
.bv-name-lookup.is-pending { border-color: #bfd7f6; background: #f2f7fe; color: #315c9b; }
.bv-name-lookup.is-unresolved { border-color: #f1d3a5; background: #fff8ed; color: #93580c; }
.bv-name-lookup.is-error { border-color: #f2c6bd; background: #fff4f1; color: #c4320a; }
.bv-name-candidates { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; margin-top: 9px; }
.bv-name-candidate {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d6e5f5;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  color: #263e60;
  cursor: pointer;
}
.bv-name-candidate:hover, .bv-name-candidate:focus-visible { border-color: #2477e6; background: #f4f8ff; }
.bv-name-candidate strong { color: #1266cd; }
.bv-name-candidate small { margin-left: auto; color: #72839b; }
.bv-chemical-preview[hidden], .bv-chemical-reference[hidden], .bv-chemical-preview__identity-warning[hidden] { display: none !important; }
.bv-chemical-reference { padding: 12px 14px; border: 1px solid #d8e2ef; border-radius: 8px; background: #f6f8fb; overflow-wrap: anywhere; }
.bv-chemical-reference strong { color: #34465d; font-size: 13px; }
.bv-chemical-reference p { margin: 6px 0 0; color: #4f6076; font-size: 13px; }
.bv-chemical-preview {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: #fbfdff;
}
.bv-chemical-preview__visual {
  display: grid;
  min-height: 118px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce7f3;
  border-radius: 6px;
  background: #fff;
  color: #8391a3;
  font-size: 12px;
}
.bv-chemical-preview__visual img { display: block; width: 100%; height: 132px; object-fit: contain; }
.bv-chemical-preview__body { display: grid; align-content: start; gap: 8px; min-width: 0; }
.bv-chemical-preview__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bv-chemical-preview__head strong { color: #13243d; font-size: 16px; line-height: 1.4; }
.bv-chemical-preview__head span { padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.bv-chemical-preview__head .is-pending { background: #fff4dd; color: #9a5b00; }
.bv-chemical-preview__head .is-reviewed { background: #eaf8f0; color: #137a4b; }
.bv-chemical-preview__body p { margin: 0; color: #4f6076; font-size: 13px; }
.bv-chemical-preview__body .bv-chemical-preview__identity-warning { padding: 10px; border: 1px solid #edcf91; border-radius: 6px; background: #fff8e8; color: #805000; line-height: 1.6; overflow-wrap: anywhere; }
.bv-chemical-preview__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bv-chemical-preview__tags span { padding: 4px 8px; border-radius: 5px; background: #eef4fb; color: #315c86; font-size: 12px; }
.bv-chemical-preview__body small { color: #718096; font-size: 11px; line-height: 1.5; }
.bv-chemical-preview__body .bv-chemical-preview__guard { color: #8a5a17; }
.bv-structure-supplement {
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fbfcfe;
}
.bv-structure-supplement > summary {
  padding: 12px 14px;
  color: #1d5fae;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bv-structure-supplement > p { margin: 0; padding: 0 14px 12px; color: #66758a; font-size: 12px; line-height: 1.6; }
.bv-structure-supplement .bv-field-grid { padding: 0 14px 12px; }
.bv-structure-file small { display: block; color: #718096; font-size: 11px; line-height: 1.5; }
.bv-structure-actions { display: flex; align-items: center; gap: 12px; padding: 0 14px 14px; }
.bv-structure-actions span { color: #66758a; font-size: 12px; line-height: 1.5; }
.bv-structure-actions .is-ok { color: #137a4b; }
.bv-structure-actions .is-error { color: #c4320a; }
.bv-structure-actions .is-pending { color: #315c9b; }
.bv-spectrum-upload {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfe0f4;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbfdff 0%, #f5f9ff 100%);
}
.bv-spectrum-upload__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.bv-spectrum-upload__head > div { display: grid; gap: 4px; }
.bv-spectrum-upload__head strong { color: #27364b; font-size: 14px; }
.bv-spectrum-upload__head strong small { margin-left: 4px; color: #7a8798; font-size: 12px; font-weight: 500; }
.bv-spectrum-upload__head > div > span { color: #64768c; font-size: 12px; line-height: 1.5; }
.bv-spectrum-upload__badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #eaf8f0; color: #137a4b; font-size: 11px; font-weight: 700; }
.bv-spectrum-upload__control { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bv-spectrum-upload__picker { position: relative; min-width: 0; }
.bv-spectrum-upload__picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.bv-spectrum-upload__picker > span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 14px;
  border: 1px dashed #8fb8e8;
  border-radius: 7px;
  background: #fff;
  color: #155fae;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bv-spectrum-upload__picker:focus-within > span { border-color: #1473e6; box-shadow: 0 0 0 3px rgba(20,115,230,.12); }
.bv-spectrum-upload__status { padding: 9px 11px; border-radius: 7px; background: rgba(255,255,255,.78); color: #64768c; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.bv-spectrum-upload__status.is-ok { background: #edf9f2; color: #137a4b; }
.bv-spectrum-upload__status.is-error { background: #fff4f1; color: #c4320a; }
.bv-spectrum-upload__status.is-pending { background: #eef5fd; color: #315c9b; }
.bv-spectrum-upload > small { color: #718096; font-size: 11px; line-height: 1.55; }
.bv-drawer-note {
  padding: 12px 14px;
  border-left: 3px solid #1a8f5a;
  background: #f1faf6;
  color: #426353;
  font-size: 13px;
  line-height: 1.6;
}
.bv-form-result { min-height: 22px; color: #637083; font-size: 13px; line-height: 1.55; }
.bv-form-result.is-ok { color: #137a4b; }
.bv-form-result.is-error { color: #c4320a; }
.bv-form-result.is-pending { color: #315c9b; }
.bv-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.bv-drawer-footer .bv-btn { min-width: 112px; }

@media (max-width: 760px) {
  .bv-drawer { width: 100vw; }
  .bv-drawer-body { min-width: 0; padding: 24px 20px 30px; overflow-x: hidden; }
  .bv-drawer-form,
  .bv-weight-pricing,
  .bv-price-actions,
  .bv-price-add-group { min-width: 0; max-width: 100%; }
  .bv-field-grid { grid-template-columns: 1fr; }
  .bv-price-row__grid { grid-template-columns: 1fr; }
  .bv-price-row__grid label.is-wide { grid-column: auto; }
  .bv-weight-pricing__head,
  .bv-price-actions { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  .bv-price-add-group { width: 100%; }
  .bv-price-add-group .bv-btn { flex: 1 1 120px; min-width: 0; padding-inline: 10px; }
  .bv-price-actions > [data-bv-price-status] { flex: none; width: 100%; min-width: 0; overflow-wrap: anywhere; }
  .bv-chemical-preview { grid-template-columns: 1fr; }
  .bv-chemical-preview__visual { min-height: 150px; }
  .bv-chemical-preview__visual img { height: 160px; }
  .bv-drawer-footer { position: sticky; bottom: 0; padding: 12px 0 4px; background: #fff; }
}

/* Shared business chrome is independent of the content renderer. Legacy
   task/profile panels must not switch the header, rail or content offsets. */
body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .opc-topbar {
  height: 72px;
  min-height: 72px;
  padding: 0 24px 0 28px;
  gap: 24px;
  border-bottom: 1px solid #dfe6ef;
  box-shadow: 0 1px 2px rgba(20, 41, 74, 0.025);
}

body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand {
  display: flex;
  width: 250px;
  min-width: 250px;
  align-items: center;
  gap: 11px;
  padding: 0;
  color: #10213a;
  text-decoration: none;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .opc-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 2px solid #1473e6;
  border-radius: 50%;
  color: #1473e6;
  background: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy strong {
  color: #10213a;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy small {
  display: block;
  overflow: hidden;
  color: #68778c;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar {
  position: fixed;
  z-index: 30;
  top: 72px;
  bottom: 0;
  left: 0;
  display: flex;
  width: 264px;
  padding: 20px 12px 18px;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid #dfe6ef;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar-title {
  display: none;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-nav-group {
  position: relative;
  margin: 1px 0;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-nav-group-row {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: stretch;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 40px 0 17px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #24344b;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-link:hover {
  background: #f4f7fb;
  color: #1268df;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-link.is-active {
  background: #edf4ff;
  color: #1268df;
  box-shadow: none;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-link.is-active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: #1473e6;
  content: "";
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: currentColor;
  overflow: visible;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-icon::before {
  display: none;
  content: none;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-nav-group.is-open > .vnext-nav-group-row .vnext-side-link:not(.is-active) {
  color: #13233a;
  background: transparent;
  box-shadow: none;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-nav-group.has-children > .vnext-nav-group-row .vnext-side-link.is-active {
  color: #1473e6;
  background: transparent;
  box-shadow: none;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-nav-group.has-children > .vnext-nav-group-row .vnext-side-link.is-active::before {
  display: none;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-expander {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 5px;
  display: grid;
  width: 34px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #67758a;
  cursor: pointer;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-expander:hover {
  background: #edf2f8;
  color: #1268df;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-expander span {
  display: block;
  font-size: 17px;
  transform: rotate(-90deg);
  transition: transform 150ms ease;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-side-expander[aria-expanded="true"] span {
  transform: rotate(0deg);
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-subnav {
  position: relative;
  display: grid;
  margin: 0 8px 8px 41px;
  padding: 2px 0 2px 10px;
  gap: 1px;
  border-left: 1px solid #d9e2ed;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-subnav[hidden] {
  display: none;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-sub-link {
  display: flex;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
  align-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5e6c81;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-sub-link:hover {
  background: #f4f7fb;
  color: #1268df;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-sub-link.is-active {
  background: #eaf3ff;
  color: #1268df;
  font-weight: 700;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar-footer {
  display: grid;
  margin-top: auto;
  padding-top: 13px;
  gap: 1px;
  border-top: 1px solid #e3e9f1;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .vnext-sidebar-footer .vnext-side-link {
  min-height: 43px;
  color: #405169;
  font-size: 14px;
  font-weight: 650;
}

body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] main.opc-shell {
  min-height: calc(100vh - 72px);
  margin-left: 264px;
  padding: 28px 32px 48px;
}

/* Keep the approved 264px navigation rail and the content canvas on the same
   grid. Legacy shell rules use a 236px margin with !important, which otherwise
   lets the first 28px of the workspace slide underneath the sidebar. */
@media (min-width: 901px) {
  body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] main.opc-shell {
    width: calc(100% - 264px);
    margin-left: 264px !important;
  }
}

@media (max-width: 900px) {
  body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] main.opc-shell {
    width: auto;
    margin-left: 0 !important;
  }
}

@media (max-width: 1120px) {
  body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .opc-brand {
    width: 220px;
    min-width: 220px;
  }
  body.business-layout-unified[data-vnext-design="approved-business-workspace-v32"] .opc-brand-copy small {
    display: block;
  }
}

/* Official A09 brand lockup shared by every vNext workspace. */
body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand {
  display: grid !important;
  position: relative;
  width: 230px !important;
  min-width: 230px !important;
  height: 64px !important;
  padding: 0 !important;
  grid-template-rows: 50px 14px !important;
  align-content: center !important;
  align-items: start !important;
  justify-items: start !important;
  gap: 0 !important;
  overflow: visible !important;
  color: #10213a;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none;
}

body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand::before,
body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand::after {
  display: none !important;
  content: none !important;
}

body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand-logo-frame {
  display: block !important;
  position: relative;
  width: 145px !important;
  height: 50px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand-wordmark {
  display: block !important;
  position: absolute !important;
  top: -14px !important;
  left: -17px !important;
  width: 160px !important;
  max-width: none !important;
  height: auto !important;
}

body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand-tagline {
  display: block !important;
  width: max-content;
  margin: 0 0 0 2px !important;
  color: #68778d;
  font-size: 11.5px !important;
  font-weight: 500;
  line-height: 14px !important;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand {
    width: 200px !important;
    min-width: 200px !important;
  }
}

@media (max-width: 900px) {
  body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand {
    width: 142px !important;
    min-width: 142px !important;
    height: 56px !important;
    grid-template-rows: 43px 13px !important;
  }

  body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand-logo-frame {
    width: 126px !important;
    height: 43px !important;
  }

  body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand-wordmark {
    top: -12px !important;
    left: -14px !important;
    width: 136px !important;
  }

  body.vnext-portal[data-vnext-design] .opc-topbar .opc-brand-tagline {
    margin-left: 1px !important;
    font-size: 10px !important;
    line-height: 13px !important;
  }
}

/* V58: management navigation is deliberately immediate. Artificial opacity,
   transforms and View Transition snapshots caused a visible flash on every
   module click. Route prefetch remains in JavaScript, but rendering itself is
   synchronous and stable. */

html {
  background: #f4f7fb;
}

/* V59: traceable chemical-identity review. Structures remain images, never
   executable inline SVG, and compact cleanly on management mobile layouts. */
.opc-chemical-thumb,
.opc-chemical-review-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  background: #f8fbff;
  color: #71829a;
  text-align: center;
}

.opc-chemical-thumb {
  width: 92px;
  min-width: 92px;
  height: 64px;
  font-size: 12px;
}

.opc-chemical-thumb img,
.opc-chemical-review-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.opc-chemical-review-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.opc-chemical-review-image {
  min-height: 210px;
}

@media (max-width: 720px) {
  .opc-chemical-thumb {
    width: 72px;
    min-width: 72px;
    height: 54px;
  }

  .opc-chemical-review-grid {
    grid-template-columns: 1fr;
  }

  .opc-chemical-review-image {
    min-height: 180px;
  }
}

/* V60: legacy business modules (for example the supply opportunity inbox)
   intentionally keep their proven table/forms while the VNext canvas is off.
   The workspace search rule above must not re-enable a 320px header control on
   those narrower routes, otherwise the account actions push the whole document
   outside the viewport. */
@media (max-width: 1239px) {
  body.vnext-demand[data-vnext-business-layer="0"] .opc-topbar .vnext-global-search,
  body.vnext-supply[data-vnext-business-layer="0"] .opc-topbar .vnext-global-search {
    display: none;
  }
}

/* Mobile order cards retain the existing row selection and business actions. */
.bv-order-mobile-back { display: none; }
@media (max-width: 720px) {
  .bv-order-layout .bv-table { min-width: 0; overflow-x: visible; }
  .bv-order-layout .bv-table-head { display: none; }
  .bv-order-layout .bv-table-row.bv-order-row {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
    padding: 14px;
  }
  .bv-order-layout .bv-order-row > span { min-width: 0; padding: 0; overflow-wrap: anywhere; }
  .bv-order-layout .bv-order-row > span:nth-child(1),
  .bv-order-layout .bv-order-row > span:nth-child(2) { grid-column: 1 / -1; }
  .bv-order-layout .bv-order-row > span:nth-child(4),
  .bv-order-layout .bv-order-row > span:nth-child(6) { text-align: right; }
  .bv-order-layout .bv-order-row > span:nth-child(5) { font-size: 12px; }
  .bv-order-mobile-back { display: inline-flex; min-height: 44px; align-items: center; margin: 0 0 12px; }
  .bv-order-detail { scroll-margin-top: 76px; }
}

/* Quote-only mobile cards: retain the desktop table and all existing actions. */
@media (max-width: 720px) {
  .bv-quote-table { overflow: visible; min-width: 0; }
  .bv-quote-table .bv-table-head { display: none; }
  .bv-quote-table .bv-table-row.bv-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 16px;
  }
  .bv-quote-table .bv-order-row > span { min-width: 0; overflow-wrap: anywhere; }
  .bv-quote-table .bv-order-row > span:first-child { grid-column: 1 / -1; }
  .bv-quote-table .bv-order-row > span:nth-child(4)::before,
  .bv-quote-table .bv-order-row > span:nth-child(5)::before {
    display: block;
    margin-bottom: 4px;
    color: #6b7d95;
    font-size: 12px;
  }
  .bv-quote-table .bv-order-row > span:nth-child(4)::before { content: '价格 / 交期'; }
  .bv-quote-table .bv-order-row > span:nth-child(5)::before { content: '更新时间'; }
  .bv-quote-table .bv-order-row > span:nth-child(6) { grid-column: 1 / -1; text-align: right; }
  .bv-quote-table .bv-order-row > span:nth-child(6) .bv-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid #c9dbf3;
    border-radius: 6px;
  }
}
:root .bv-inventory-focused { outline: 2px solid #2563eb; outline-offset: -2px; background: #eff6ff; }
:root .bv-form-result.is-warn { color: #854d0e; background: #fff7e6; }

/* Keep enterprise profile actions readable when the title needs several lines. */
@media (max-width: 600px) {
  body.vnext-supply .vnext-profile-cockpit {
    flex-direction: column;
    align-items: stretch;
  }
  body.vnext-supply .vnext-profile-cockpit > .vnext-cockpit-actions {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body.vnext-supply .vnext-profile-cockpit .opc-btn {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}
