/* Herd access management (herds#edit): an "Everyone has access" toggle above a table of all
 * account users, each with an access switch and a superuser switch. Mirrors Fizzy's board#edit. */
@layer components {
  .herd-access-table {
    --avatar-size: 2rem;

    width: 100%;
  }

  .herd-access-table__switch {
    width: 1%;
    text-align: center;
    white-space: nowrap;
  }

  .herd-access__identity {
    display: flex;
    align-items: center;
    gap: var(--inline-space-half);
    min-width: 0;
  }

  .herd-access__avatar {
    flex-shrink: 0;
  }

  .herd-access__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .herd-access__name,
  .herd-access__email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .herd-access__email {
    font-size: var(--text-small);
    color: var(--color-faint);
  }

  .herd-access__actions {
    display: flex;
    justify-content: flex-end;
  }
}
