.referral-report {
  min-width: 0;
}
.referral-report-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.referral-report-heading h2 {
  margin: 0 0 5px;
}
.referral-report-heading p,
.referral-report-note {
  color: var(--muted, #66706b);
  font-size: 13px;
}
.referral-report-note {
  max-width: 90ch;
  line-height: 1.5;
  margin: 18px 0;
}
.referral-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.referral-report-metrics > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d9dfdc;
  border-radius: 10px;
}
.referral-report-metrics span {
  font-size: 12px;
  color: #626e69;
}
.referral-report-metrics strong {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.referral-report-search {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 22px 0;
}
.referral-report-search label {
  flex: 1;
  max-width: 440px;
  font-size: 12px;
}
.referral-report-search input {
  display: block;
  width: 100%;
  margin-top: 7px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #d9dfdc;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.referral-report td a {
  color: #0f766e;
  font-weight: 500;
  text-decoration: none;
}
.referral-report td a:hover {
  text-decoration: underline;
}
.referral-report-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #d9dfdc;
  border-radius: 10px;
  background: #fff;
}
.referral-report table {
  border-collapse: collapse;
  width: 100%;
  min-width: 820px;
}
.referral-report th,
.referral-report td {
  padding: 14px;
  border-bottom: 1px solid #e6e9e7;
  text-align: left;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.referral-report th {
  color: #626e69;
  font-weight: 500;
}
.referral-report td:first-child {
  min-width: 180px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.referral-report td small {
  display: block;
  margin-top: 4px;
  color: #626e69;
}
.referral-report-pages {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 12px;
}
.referral-report-pages span {
  margin-right: auto;
}
@media (max-width: 700px) {
  .referral-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .referral-report-heading {
    flex-wrap: wrap;
  }
}
