.select-panel-table .col-item-quantity {
  width: 120px;
  min-width: 120px;
  text-align: right;
}

.select-panel-table .col-bidder-type {
  width: 155px;
  min-width: 155px;
}

.item-name-link,
.vendor-name-link {
  display: inline-block;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.item-name-link:hover,
.vendor-name-link:hover {
  color: var(--bs-primary, #0d6efd);
  text-decoration: underline;
}

.item-name-link:focus-visible,
.vendor-name-link:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.32);
  outline-offset: 2px;
  border-radius: 4px;
}

.col-item-quantity .item-qty-field {
  width: 96px;
  justify-content: flex-end;
  margin-left: 0;
}

.col-item-quantity .item-qty-input {
  width: 78px;
}

.item-qty-field.is-disabled {
  background: #f1f3f5;
  border-color: #d7dde5;
  cursor: not-allowed;
  opacity: 0.72;
}

.item-qty-field.is-disabled .item-qty-input {
  color: #98a2b3;
  cursor: not-allowed;
}

.bidder-type-container-new {
  display: flex;
  align-items: center;
  min-height: 22px;
}

.bidder-type-placeholder {
  color: #98a2b3;
  font-size: 12px;
}

.vpi-expand-title {
  font-size: 13px;
  color: #1f2937;
}

#vendorParticipationWidget .vpi-suggestion-enhanced {
  border-left-color: #12b76a;
  background: linear-gradient(180deg, #f7fffb 0%, #ffffff 100%);
  border-radius: 8px;
  padding: 14px 16px 16px;
}

#vendorParticipationWidget .vpi-suggestion-enhanced .vpi-head {
  margin-bottom: 2px;
}

#vendorParticipationWidget .vpi-suggestion-enhanced .vpi-head::before {
  content: "history";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #dcfae6;
  color: #027a48;
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

#vendorParticipationWidget .vpi-suggestion-enhanced .vpi-headline {
  font-size: 14px;
  font-weight: 800;
  color: #101828;
}

.vpi-suggestion-subtitle {
  margin: 0 0 10px 40px;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.vpi-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vpi-suggestion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d6e7dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.vpi-suggestion-card:hover {
  border-color: #86d5a7;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.vpi-suggestion-profile {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.vpi-suggestion-profile:hover .vpi-suggestion-name {
  color: #027a48;
  text-decoration: underline;
}

.vpi-suggestion-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #027a48;
  font-size: 12px;
  font-weight: 700;
}

.vpi-suggestion-card.is-best {
  border-color: #86d5a7;
  background: #f6fef9;
}

.vpi-suggestion-best {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #027a48;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.vpi-suggestion-why {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vpi-suggestion-empty {
  grid-column: 1 / -1;
  padding: 10px 12px;
  color: #667085;
  font-size: 12px;
  background: #f9fafb;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
}

.vpi-suggestion-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vpi-suggestion-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #101828;
  line-height: 1.25;
}

.vpi-suggestion-code {
  color: #667085;
  font-size: 11px;
  line-height: 1.2;
}

.vpi-suggestion-add {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  align-self: center;
  border: 1px solid #12b76a;
  border-radius: 6px;
  background: #12b76a;
  color: #fff;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.vpi-suggestion-add:hover {
  background: #039855;
  border-color: #039855;
}

.vpi-suggestion-add.is-added {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #027a48;
}

@media (max-width: 1400px) {
  .vpi-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .vpi-chips {
    grid-template-columns: 1fr;
  }
}

#vendorSelectTable .col-actions,
#vendorSelectTable .vendor-action-btn {
  display: none !important;
}

#vendorSelectTable .col-industry {
  display: none !important;
}

#vendorPreviewModal .modal-dialog,
#itemPricingHistoryModal .modal-dialog,
#vendorCompareModal .modal-dialog {
  max-height: calc(100vh - 2rem);
}

#vendorPreviewModal .modal-content,
#itemPricingHistoryModal .modal-content,
#vendorCompareModal .modal-content {
  max-height: calc(100vh - 2rem);
}

#vendorPreviewModal .modal-body,
#itemPricingHistoryModal .modal-body,
#vendorCompareModal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

#vendorPreviewModal .modal-body {
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overflow-x: hidden;
}

#itemPricingHistoryModal .modal-body,
#vendorCompareModal .modal-body {
  max-height: calc(100vh - 150px);
}
