.members-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.page-header p,
h1,
h2 {
  margin: 0;
}
.page-header p {
  color: var(--mat-sys-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.create-card {
  margin: 1rem 0;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}
.filters mat-form-field {
  flex: 1;
}
.member-list {
  display: flex;
  flex-direction: column;
}
.member {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--mat-sys-outline-variant);
}
.member.inactive {
  opacity: 0.6;
}
.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  // background: var(--mat-sys-primary-container);
  color: var(--mat-sys-on-primary-container);
  font-weight: 700;
  background: var(--mat-sys-secondary-container);
}
.member__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.member__copy span {
  color: var(--mat-sys-on-surface-variant);
}
.balance {
  color: var(--mat-sys-primary);
}
.balance.negative {
  color: var(--mat-sys-error);
}
.empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5rem;
  color: var(--mat-sys-on-surface-variant);
}
@media (max-width: 520px) {
  .name-row {
    grid-template-columns: 1fr;
  }
  .filters {
    align-items: stretch;
    flex-direction: column;
  }
  .filters mat-form-field {
    width: 100%;
  }
}
