.opportunity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
}

.opportunity-bar h3,
.opportunity-bar p {
  margin: 0;
}

.opportunity-customer {
  margin-block: 1rem;
  padding-block: 1rem 0;
  border-top: 1px solid var(--line);
}

.opportunity-list {
  padding: 0;
  margin: 0.8rem 0;
  list-style: none;
}

.opportunity-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(7rem, 1fr) minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  align-items: center;
  padding: 0.75rem 0;
  border-block-end: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.opportunity-row a {
  font-weight: 650;
}

.opportunity-row small {
  display: block;
  color: var(--muted);
}

.opportunity-phase {
  width: fit-content;
  padding: 0.18rem 0.45rem;
  border-radius: 0.4rem;
  color: var(--ink);
  background: #e5eff3;
  font-size: 0.86rem;
}

.opportunity-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}

.opportunity-facts dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.opportunity-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.erpform [data-loss-reason][hidden] {
  display: none;
}

@media (max-width: 620px) {
  .opportunity-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
