/* Shared table / toast / form styles for the user-management pages
   (admin.html and parent.html). Loaded after index.css so these page-level
   rules keep overriding the global defaults, exactly as when they were inline.
   Page-specific and divergent rules (tabs, cards, .users-table-wrap radius,
   .badge-prereg margin) stay inline in each page. */

.users-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.users-hero { margin-bottom: 2rem; }

.users-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.users-hero p {
  color: var(--ink-muted);
  font-size: 1rem;
  margin: 0;
}

table.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.users-table thead { background: var(--paper-deep); }

.users-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 800;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.users-table td {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

.users-table tbody tr:hover { background: var(--card-soft); }

/* .field-label / .field-input (+ focus) base are in components.css. */

.btn-archive {
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--coral);
  border-radius: var(--r-sm);
  background: rgba(232, 81, 77, 0.08);
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-archive:hover { background: rgba(232, 81, 77, 0.16); }
.btn-archive:disabled { opacity: 0.5; cursor: not-allowed; }

/* Positive-action row button (e.g. resending a pending invite). */
.btn-resend {
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--mint-deep);
  border-radius: var(--r-sm);
  background: rgba(126, 206, 196, 0.14);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-right: 0.4rem;
}

.btn-resend:hover { background: rgba(126, 206, 196, 0.3); }
.btn-resend:disabled { opacity: 0.5; cursor: not-allowed; }

.users-error {
  background: rgba(232, 81, 77, 0.12);
  color: var(--coral-deep);
  border: 1.5px dashed var(--coral);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* .users-toast*, .spinner (+ keyframes), .muted, .is-hidden are in
   components.css. Empty states use the shared .empty-state--muted modifier
   in components.css. */
