/* Vendor Lookup: Corporate Minimal high-volume purchasing workspace. */
body:not(.register-mode) #vendors.view.active {
  overflow: hidden;
}

.vendor-lookup-page {
  --vendor-blue: var(--accent);
  --vendor-blue-dark: var(--accent-dark);
  --vendor-blue-soft: #edf4fd;
  --vendor-border: #d5dde7;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: #14243a;
}

.vendor-bills-page .vendor-lookup-command {
  align-items: stretch;
  background: var(--surface, #ffffff);
}

.vendor-bills-page .vendor-lookup-results-panel {
  min-height: 0;
}

.vendor-lookup-command {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--vendor-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 36, 58, 0.04);
}

.vendor-lookup-primary-row,
.vendor-filter-footer,
.vendor-results-header,
.vendor-results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.vendor-primary-search {
  position: relative;
  flex: 1 1 680px;
  min-width: 300px;
}

.vendor-primary-search input {
  width: 100%;
  height: 46px;
  padding: 10px 42px 10px 45px;
  border-color: #c7d2df;
  border-radius: 5px;
  color: #17263a;
  font-size: 15px;
  font-weight: 550;
}

.vendor-primary-search input::placeholder {
  color: #718097;
  opacity: 1;
}

.vendor-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid #65788f;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.vendor-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #65788f;
  transform: rotate(45deg);
  transform-origin: left center;
}

.vendor-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #66778d;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.vendor-search-clear:hover {
  background: #edf2f7;
  color: #20354e;
}

.vendor-lookup-top-actions,
.vendor-filter-actions,
.vendor-selection-actions,
.vendor-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.vendor-lookup-page .primary,
.vendor-profile-drawer .primary {
  border-color: var(--vendor-blue);
  background: var(--vendor-blue);
  color: #ffffff;
}

.vendor-lookup-page .primary:hover,
.vendor-profile-drawer .primary:hover {
  border-color: var(--vendor-blue-dark);
  background: var(--vendor-blue-dark);
}

.vendor-lookup-page .secondary,
.vendor-lookup-page .ghost,
.vendor-profile-drawer .secondary,
.vendor-profile-drawer .ghost {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #23364d;
}

.vendor-lookup-page .secondary:hover,
.vendor-lookup-page .ghost:hover,
.vendor-profile-drawer .secondary:hover,
.vendor-profile-drawer .ghost:hover {
  border-color: #9fb0c3;
  background: #f4f7fa;
}

.vendor-lookup-page button:focus-visible,
.vendor-lookup-page input:focus-visible,
.vendor-lookup-page select:focus-visible,
.vendor-lookup-page tr:focus-visible,
.vendor-profile-drawer button:focus-visible {
  outline: 2px solid var(--vendor-blue);
  outline-offset: 2px;
}

.vendor-lookup-page input:focus,
.vendor-lookup-page select:focus {
  border-color: var(--vendor-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 187, 0.12);
}

.vendor-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}

.vendor-bills-filter-grid {
  grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(120px, 1fr)) minmax(130px, 1fr);
}

.vendor-bills-results th:nth-child(1) { width: 16%; }
.vendor-bills-results th:nth-child(2) { width: 29%; }
.vendor-bills-results th:nth-child(3),
.vendor-bills-results th:nth-child(4) { width: 15%; }
.vendor-bills-results th:nth-child(5) { width: 13%; }
.vendor-bills-results th:nth-child(6) { width: 12%; }

.vendor-bill-number {
  font-weight: 750;
}

.vendor-filter-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #40536b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.vendor-filter-grid input,
.vendor-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border-color: #cbd5e1;
  border-radius: 5px;
  color: #1c2f47;
  font-size: 13px;
}

.vendor-filter-footer {
  min-height: 34px;
}

.vendor-active-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: #56677d;
  font-size: 11px;
  white-space: nowrap;
}

.vendor-active-filters strong {
  color: #33475f;
  font-variant-numeric: tabular-nums;
}

.vendor-filter-chip {
  max-width: 190px;
  min-height: 26px;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid #bfd2e9;
  border-radius: 999px;
  background: #f2f7fd;
  color: #214a79;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-filter-chip:hover {
  border-color: #91b2d7;
  background: #e6f0fb;
}

.vendor-lookup-results-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-color: var(--vendor-border);
  border-radius: 6px;
  box-shadow: none;
}

.vendor-results-header {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--vendor-border);
  background: #ffffff;
}

.vendor-results-header > div {
  min-width: 0;
}

.vendor-results-header h3 {
  margin: 0;
  color: #17283e;
  font-size: 15px;
  line-height: 1.2;
}

.vendor-results-header h3 span {
  margin-left: 4px;
  color: #3d526b;
  font-variant-numeric: tabular-nums;
}

.vendor-results-header .muted {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-keyboard-hint {
  color: #5d6f85;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.vendor-selection-bar {
  display: grid;
  grid-template-columns: minmax(175px, 1fr) auto auto auto;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 56px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--vendor-border);
  background: #f7f9fc;
}

.vendor-selection-identity,
.vendor-selection-balance {
  min-width: 0;
}

.vendor-selection-identity strong,
.vendor-selection-identity span,
.vendor-selection-balance span,
.vendor-selection-balance strong {
  display: block;
}

.vendor-selection-identity strong {
  overflow: hidden;
  color: #152840;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-selection-identity span {
  margin-top: 2px;
  overflow: hidden;
  color: #617188;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-selection-balance {
  min-width: 86px;
  text-align: right;
}

.vendor-selection-balance span {
  color: #64748a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.vendor-selection-balance strong {
  margin-top: 2px;
  color: #17283e;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.vendor-selection-bar .status {
  min-height: 24px;
  border-radius: 999px;
  font-size: 11px;
}

.vendor-selection-actions button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 11px;
  white-space: nowrap;
}

.vendor-results {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border: 0;
  border-radius: 0;
  scrollbar-gutter: stable;
}

.vendor-results table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  color: #1e3148;
  font-size: 12.5px;
}

.vendor-results th,
.vendor-results td {
  height: 43px;
  padding: 7px 10px;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #dde4ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-results th:last-child,
.vendor-results td:last-child {
  border-right: 0;
}

.vendor-results th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 40px;
  background: #f3f6f9;
  color: #3c5068;
  font-size: 11px;
  font-weight: 800;
}

.vendor-results .table-sort {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.vendor-results .table-sort:hover {
  color: var(--vendor-blue);
}

.vendor-results tbody tr {
  cursor: default;
}

.vendor-results tbody tr:hover td {
  background: #f5f8fc;
}

.vendor-results tbody tr.selected-row td {
  background: var(--vendor-blue-soft);
}

.vendor-results tbody tr.selected-row td:first-child {
  box-shadow: inset 3px 0 0 var(--vendor-blue);
}

.vendor-results tbody tr:focus {
  outline-offset: -3px;
}

.vendor-code-column { width: 9%; }
.vendor-name-column { width: 18%; }
.vendor-phone-column { width: 13%; }
.vendor-email-column { width: 19%; }
.vendor-type-column { width: 11%; }
.vendor-balance-column { width: 11%; }
.vendor-status-column { width: 9%; }
.vendor-purchase-column { width: 10%; }

.vendor-code-cell strong,
.vendor-name-cell strong,
.vendor-balance-cell strong {
  color: #19334f;
  font-weight: 750;
}

.vendor-code-cell strong,
.vendor-name-cell strong {
  color: #174f91;
}

.vendor-phone-cell strong,
.vendor-compact-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-compact-email {
  display: none;
  margin-top: 1px;
  color: #6a7a8d;
  font-size: 10.5px;
}

.vendor-grid-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-grid-status i {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8795a6;
}

.vendor-grid-status.good i { background: #159447; }
.vendor-grid-status.warn i { background: #e7a117; }

.vendor-empty-row td {
  height: 150px;
  text-align: center;
}

.vendor-empty-row strong,
.vendor-empty-row span {
  display: block;
}

.vendor-empty-row span {
  margin-top: 5px;
  color: #66768a;
  font-size: 12px;
}

.vendor-results-footer {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  border-top: 1px solid var(--vendor-border);
  background: #fbfcfd;
  color: #586a80;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.vendor-profile-drawer[hidden] {
  display: none;
}

.vendor-profile-drawer {
  --vendor-blue: #185fbb;
  --vendor-blue-dark: #114b96;
  position: fixed;
  inset: 0 0 0 224px;
  z-index: 1300;
}

/* A bill opened from the vendor workspace must sit above that workspace. */
#itemModal:has(.vendor-invoice-readonly-modal) {
  z-index: 1300;
}

/* Fallback for browsers where :has() is unavailable or disabled. */
#itemModal.modal-over-vendor {
  z-index: 1300;
}

/* Purchase documents opened from Vendor Profile use transactionModal. */
#transactionModal.modal-over-vendor {
  z-index: 1300;
}

body:not(.register-mode).sidebar-collapsed .vendor-profile-drawer {
  left: 68px;
}

.vendor-profile-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(16, 30, 45, 0.42);
}

.vendor-profile-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100% - 28px));
  max-height: none;
  overflow: hidden;
  border-color: #c9d4e0;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 30, 48, 0.22);
}

.vendor-profile-workspace-bar {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--vendor-border);
  background: #ffffff;
}

.vendor-profile-title-block h3 {
  margin: 0;
  color: #102443;
  font-size: 18px;
}

.vendor-profile-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.vendor-profile-actions button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  white-space: nowrap;
}

.vendor-profile-panel > .panel-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 13px;
  overflow: hidden;
  background: #ffffff;
}

#vendorProfile {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.vendor-profile-panel .customer-profile-head {
  flex: 0 0 auto;
  border-radius: 6px;
  background: #f6f8fb;
}

.vendor-profile-panel .tabs {
  flex: 0 0 auto;
  overflow-x: auto;
  scrollbar-width: thin;
}

.vendor-profile-panel #vendorProfileContent {
  overflow: hidden;
}

.vendor-profile-panel .vendor-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1500px) {
  .vendor-selection-actions {
    gap: 6px;
  }

  .vendor-selection-actions button {
    padding-inline: 7px;
    font-size: 10.5px;
  }

  .vendor-selection-bar {
    gap: 8px;
    padding-inline: 11px;
  }

  .vendor-results th,
  .vendor-results td {
    padding-inline: 8px;
  }
}

@media (max-width: 1250px) {
  .vendor-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vendor-bills-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vendor-selection-bar {
    grid-template-columns: minmax(175px, 1fr) auto auto;
  }

  .vendor-selection-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .vendor-email-column {
    display: none;
  }

  .vendor-compact-email {
    display: block;
  }

  .vendor-code-column { width: 10%; }
  .vendor-name-column { width: 21%; }
  .vendor-phone-column { width: 24%; }
  .vendor-type-column { width: 12%; }
  .vendor-balance-column { width: 12%; }
  .vendor-status-column { width: 10%; }
  .vendor-purchase-column { width: 11%; }
}

@media (max-height: 820px) {
  .vendor-lookup-page {
    gap: 8px;
  }

  .vendor-lookup-command {
    gap: 7px;
    padding-block: 8px;
  }

  .vendor-primary-search input {
    height: 41px;
  }

  .vendor-filter-grid input,
  .vendor-filter-grid select {
    min-height: 34px;
  }

  .vendor-filter-footer {
    min-height: 30px;
  }

  .vendor-results-header {
    min-height: 44px;
  }

  .vendor-selection-bar {
    min-height: 50px;
  }

  .vendor-results th,
  .vendor-results td {
    height: 38px;
    padding-block: 5px;
  }

  .vendor-results th {
    height: 36px;
  }
}

@media (max-width: 980px) {
  .vendor-profile-drawer {
    left: 0;
  }

  .vendor-lookup-primary-row {
    align-items: stretch;
    flex-direction: column;
  }

  .vendor-primary-search {
    flex-basis: auto;
    width: 100%;
  }

  .vendor-lookup-top-actions {
    justify-content: flex-end;
  }
}

/* Corporate Minimal vendor record workspace */
.vendor-profile-drawer {
  --vendor-profile-blue: var(--accent);
  --vendor-profile-blue-dark: var(--accent-dark);
  --vendor-profile-border: #d5dee9;
  --vendor-profile-surface: #f5f7fa;
  background: var(--vendor-profile-surface);
}

.vendor-profile-backdrop {
  background: var(--vendor-profile-surface);
}

.vendor-profile-drawer .vendor-profile-panel {
  inset: 0;
  width: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: var(--vendor-profile-surface);
  box-shadow: none;
}

.vendor-profile-drawer .vendor-profile-panel > .panel-header.vendor-profile-workspace-bar {
  min-height: 58px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--vendor-profile-border);
  background: #ffffff;
}

.vendor-profile-title-block {
  display: grid;
  gap: 1px;
}

.vendor-profile-title-block h3 {
  margin: 0;
  color: #102443;
  font-size: 20px;
  line-height: 1.2;
}

.vendor-profile-drawer .vendor-profile-actions {
  flex-wrap: nowrap;
  gap: 8px;
}

.vendor-profile-drawer .vendor-profile-actions button {
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 11.5px;
  white-space: nowrap;
}

.vendor-profile-drawer .vendor-profile-panel > .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 22px 14px;
  overflow: hidden;
  background: var(--vendor-profile-surface);
}

.vendor-profile-drawer #vendorProfile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.vendor-profile-identity {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(440px, 1.28fr) minmax(470px, 1fr);
  min-width: 0;
  width: min(100%, 1500px);
  margin: 12px auto 0;
  border: 1px solid var(--vendor-profile-border);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.vendor-profile-person {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 15px;
  padding: 13px 18px;
}

.vendor-profile-avatar {
  flex: 0 0 58px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #d7e1ed;
  border-radius: 50%;
  background: #eef4fc;
  color: #123d76;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.vendor-profile-person-copy {
  min-width: 0;
}

.vendor-profile-name-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.vendor-profile-name-row h2 {
  min-width: 0;
  margin: 0;
  color: #102443;
  font-size: 22px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-profile-name-row .status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
}

.vendor-profile-name-row .status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.vendor-profile-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0;
  margin-top: 7px;
  color: #53657a;
  font-size: 11px;
}

.vendor-profile-meta > span {
  min-width: 0;
  padding: 0 11px;
  border-left: 1px solid #dce3eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-profile-meta > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.vendor-profile-meta strong {
  color: #17375f;
  font-weight: 700;
}

.vendor-profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  border-left: 1px solid var(--vendor-profile-border);
}

.vendor-profile-metric {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 6px;
  padding: 13px 14px;
  border-left: 1px solid #e2e7ed;
}

.vendor-profile-metric:first-child {
  border-left: 0;
}

.vendor-profile-metric span {
  color: #5b6d82;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.vendor-profile-metric strong {
  min-width: 0;
  color: #102443;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-profile-tabs.tabs {
  flex: 0 0 auto;
  width: min(100%, 1500px);
  min-height: 43px;
  gap: 22px;
  margin: 0 auto 10px;
  padding: 0 3px;
  border-bottom-color: #cfd9e5;
  overflow-x: auto;
  scrollbar-width: thin;
}

.vendor-profile-tabs .tab-btn {
  min-height: 42px;
  padding: 8px 2px 7px;
  border-bottom-width: 2px;
  border-radius: 0;
  color: #41536a;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.vendor-profile-tabs .tab-btn.active {
  color: var(--vendor-profile-blue);
  border-bottom-color: var(--vendor-profile-blue);
}

#vendorProfileContent.vendor-profile-content {
  flex: 1 1 auto;
  width: min(100%, 1500px);
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  padding: 0 2px 4px;
  overflow: auto;
  outline: none;
  scrollbar-gutter: stable;
}

#vendorProfileContent.vendor-profile-content:focus-visible {
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(23, 103, 197, 0.4);
}

.vendor-profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.vendor-profile-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.vendor-profile-section {
  min-width: 0;
  padding: 0 14px 1px;
  border: 1px solid var(--vendor-profile-border);
  border-radius: 6px;
  background: #ffffff;
}

.vendor-profile-section-title {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 0;
  border-bottom: 1px solid #dce3eb;
}

.vendor-profile-section-title h4 {
  margin: 0;
  color: #152b49;
  font-size: 13.5px;
  font-weight: 800;
}

.vendor-profile-facts {
  min-width: 0;
}

.vendor-profile-fact {
  display: grid;
  grid-template-columns: minmax(145px, 42%) minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 4px 0;
  border-bottom: 1px solid #e2e7ed;
}

.vendor-profile-fact:last-child {
  border-bottom: 0;
}

.vendor-profile-fact > span {
  color: #53677f;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.vendor-profile-fact > strong {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #142947;
  font-size: 12.25px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.vendor-profile-fact-link {
  color: var(--vendor-profile-blue) !important;
}

.vendor-profile-fact-indicator {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ba9b9;
}

.vendor-profile-fact-indicator.good { background: #14964c; }
.vendor-profile-fact-indicator.warn { background: #e5a21a; }
.vendor-profile-fact-indicator.bad { background: #bd3f4b; }

.vendor-profile-content .history-toolbar,
.vendor-profile-content .vendor-history-results,
.vendor-profile-content .detail-box,
.vendor-profile-content > .panel {
  border-color: var(--vendor-profile-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.vendor-profile-content table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 1450px) {
  .vendor-profile-drawer .vendor-profile-panel > .panel-header.vendor-profile-workspace-bar {
    padding-inline: 18px;
  }

  .vendor-profile-drawer .vendor-profile-actions {
    gap: 6px;
  }

  .vendor-profile-drawer .vendor-profile-actions button {
    padding-inline: 9px;
    font-size: 10.75px;
  }

  .vendor-profile-drawer .vendor-profile-panel > .panel-body {
    padding-inline: 18px;
  }

  .vendor-profile-identity {
    grid-template-columns: minmax(420px, 1.18fr) minmax(430px, 1fr);
  }

  .vendor-profile-person {
    gap: 12px;
    padding-inline: 14px;
  }

  .vendor-profile-meta > span {
    padding-inline: 8px;
  }

  .vendor-profile-metric {
    padding-inline: 10px;
  }
}

@media (max-width: 1180px) {
  .vendor-profile-identity {
    grid-template-columns: 1fr;
  }

  .vendor-profile-meta {
    flex-wrap: wrap;
    row-gap: 5px;
  }

  .vendor-profile-metrics {
    border-top: 1px solid var(--vendor-profile-border);
    border-left: 0;
  }

  .vendor-profile-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 820px) {
  .vendor-profile-drawer .vendor-profile-panel > .panel-header.vendor-profile-workspace-bar {
    min-height: 54px;
    padding-block: 6px;
  }

  .vendor-profile-title-block h3 {
    font-size: 18px;
  }

  .vendor-profile-drawer .vendor-profile-actions button {
    min-height: 34px;
    padding-block: 5px;
  }

  .vendor-profile-identity {
    margin-top: 9px;
  }

  .vendor-profile-person {
    padding-block: 9px;
  }

  .vendor-profile-avatar {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .vendor-profile-name-row h2 {
    font-size: 19px;
  }

  .vendor-profile-metric {
    gap: 4px;
    padding-block: 8px;
  }

  .vendor-profile-metric strong {
    font-size: 15px;
  }

  .vendor-profile-tabs.tabs {
    min-height: 37px;
    margin-bottom: 8px;
  }

  .vendor-profile-tabs .tab-btn {
    min-height: 36px;
    padding-block: 5px;
  }

  .vendor-profile-section-title {
    min-height: 32px;
    padding-block: 4px;
  }

  .vendor-profile-fact {
    min-height: 30px;
    padding-block: 2px;
  }

  .vendor-profile-column {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .vendor-profile-drawer .vendor-profile-panel > .panel-header.vendor-profile-workspace-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .vendor-profile-drawer .vendor-profile-actions {
    width: 100%;
    overflow-x: auto;
  }
}
