/* Collaboration Teams, from the practitioner deck's .mcard: one panel holding the caller's teams. */
#akashic-health-records-patient-portal-root .ahr-teams-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
}

#akashic-health-records-patient-portal-root .ahr-teams-page h1.ahr-view-title {
  margin: 0;
  line-height: 1.55;
}

#akashic-health-records-patient-portal-root p.ahr-teams-page__sub,
#akashic-health-records-patient-portal-root p.ahr-teams-page__empty {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 13.5px;
}

#akashic-health-records-patient-portal-root p.ahr-teams-page__empty {
  margin: 0;
}

#akashic-health-records-patient-portal-root h3.ahr-teams-page__label {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* A team is a thing in a list, so it takes the list card; its initials as the messenger rows draw them. */
#akashic-health-records-patient-portal-root .ahr-list-card.ahr-team-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
}

#akashic-health-records-patient-portal-root .ahr-team-row .ahr-inbox-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 11.5px;
  font-weight: 600;
}

#akashic-health-records-patient-portal-root p.ahr-team-row__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-strong);
  font-size: 13.5px;
  font-weight: 500;
}

#akashic-health-records-patient-portal-root .ahr-team-row p.text-sm {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11.5px;
}

#akashic-health-records-patient-portal-root .ahr-team-row__joined {
  flex: none;
  color: var(--ink-muted);
  font-size: 11px;
}

@media (max-width: 640px) {
  #akashic-health-records-patient-portal-root .ahr-list-card.ahr-team-row {
    flex-wrap: wrap;
  }

  /* On a phone the team's actions take their own line and wrap inside the card. */
  #akashic-health-records-patient-portal-root .ahr-team-row__actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
}

/* An unbound invitee is named by email alone; a long address wraps inside its row instead of widening the page. */
#akashic-health-records-patient-portal-root .ahr-emailed-invitees {
  overflow-wrap: anywhere;
}
#akashic-health-records-patient-portal-root .ahr-emailed-invitees .team-member-identity {
  min-width: 0;
}
