/*
 * Team admin pages: Members (invite form, pending and active lists) and
 * New team, plus the Directory's "Invited" badge. Builds on the tokens in
 * application.css and the dir-* classes in directory.css.
 */

/* Visible to screen readers only. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.members-group { margin-top: 24px; }
.members-submit { margin-top: 14px; }
.members-card-help { margin: -4px 0 14px; }
.members-count {
  display: inline-block;
  min-width: 24px;
  padding: 1px 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.members-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
}
.members-person {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 0;
}
.members-name {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--color-text);
}
.members-name:hover { color: var(--color-primary); }
.members-email,
.members-invited {
  display: block;
  font-size: 13px;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}
.members-invited { color: var(--color-warning); font-weight: 600; }

.members-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.members-role-form,
.members-inline { display: flex; align-items: center; gap: 6px; margin: 0; }
.members-role-form .form-control { width: auto; }
.members-remove { color: var(--color-alert); }
.members-remove:hover { color: var(--color-alert); }
.btn:disabled,
.form-control:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { background: inherit; text-decoration: none; }
.members-only-admin {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
}

@media (max-width: 600px) {
  /* Controls drop under the name, lined up with it. */
  .members-actions { flex-basis: 100%; padding-left: 52px; }
}

/* Directory row badge for team admins: hasn't set a password yet. */
.dir-invited {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid #e0b072;
  background: #fff4e5;
  color: var(--color-warning);
  font-size: 12px;
  font-weight: 600;
}
