/* assignees_tab_html (HTML form): the Assignees tab of a test's detail page.
   Loaded eagerly from anvil.yaml native_deps.head_html.

   Every rule is scoped :where(.ast-container), which adds zero specificity;
   the root rule stays a bare class. The two rules at the foot are the
   role-change banner's look and .ast-hidden for each block the template ships
   hidden. The module shows and hides those blocks by writing style.display,
   which beats the class. */

.ast-container { font-family: var(--ch-font-primary); }
:where(.ast-container) .ast-toolbar {
  display: flex; align-items: center; gap: var(--ch-space-sm);
  flex-wrap: wrap; margin-bottom: var(--ch-space-md);
}
:where(.ast-container) .ast-action-btn {
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  background: var(--ch-accent-primary); color: var(--ch-text-inverse);
  border: 1px solid var(--ch-accent-primary);
  border-radius: var(--ch-radius-md); cursor: pointer;
  font-family: var(--ch-font-primary); min-height: 36px;
}
:where(.ast-container) .ast-action-btn:hover { background: var(--ch-accent-primary-hover); }
:where(.ast-container) .ast-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
:where(.ast-container) .ast-action-btn--ghost {
  background: transparent; color: var(--ch-text-secondary);
  border: 1px solid var(--ch-border);
}
:where(.ast-container) .ast-action-btn--ghost:hover {
  color: var(--ch-accent-primary-text, #b45309); border-color: var(--ch-accent-primary);
}
:where(.ast-container) .ast-toolbar-spacer { flex: 1; }
:where(.ast-container) .ast-result-count {
  font-size: 12px; color: var(--ch-text-muted); white-space: nowrap;
}

:where(.ast-container) .ast-card {
  background: var(--ch-bg-card); border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius-lg); box-shadow: var(--ch-shadow-sm);
  overflow: hidden;
}
:where(.ast-container) .ast-table { width: 100%; border-collapse: collapse; font-size: 14px; }
:where(.ast-container) .ast-table th, :where(.ast-container) .ast-table td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--ch-border);
}
:where(.ast-container) .ast-table th {
  font-size: 12px; font-weight: 600; color: var(--ch-text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--ch-bg-secondary);
}
:where(.ast-container) .ast-name {
  color: var(--ch-text-primary); font-weight: 500;
}
:where(.ast-container) .ast-email {
  color: var(--ch-text-secondary); font-size: 12px;
}
:where(.ast-container) .ast-home {
  color: var(--ch-text-primary);
}
:where(.ast-container) .ast-checkbox {
  width: 16px; height: 16px; cursor: pointer; vertical-align: middle;
}
:where(.ast-container) .ast-row-unassign-btn {
  background: transparent; border: 1px solid var(--ch-border);
  color: var(--ch-danger); border-radius: var(--ch-radius-sm);
  padding: 4px 10px; font-size: 12px; cursor: pointer;
  font-family: var(--ch-font-primary);
}
:where(.ast-container) .ast-row-unassign-btn:hover {
  border-color: var(--ch-danger); background: var(--ch-danger-bg);
}
:where(.ast-container) .ast-empty, :where(.ast-container) .ast-loading, :where(.ast-container) .ast-error {
  text-align: center; padding: 48px var(--ch-space-md);
  color: var(--ch-text-muted); font-size: 14px;
}
:where(.ast-container) .ast-error { color: var(--ch-danger); }
:where(.ast-container) .ast-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--ch-border); border-top-color: var(--ch-accent-primary);
  border-radius: 50%; animation: ast-spin 1s linear infinite;
  margin: 0 auto var(--ch-space-md);
}
@keyframes ast-spin { to { transform: rotate(360deg); } }

:where(.ast-container) .ast-role-change-banner {
  margin-bottom: var(--ch-space-md); padding: 12px 14px;
  background: var(--ch-danger-bg); color: var(--ch-danger);
  border: 1px solid var(--ch-danger-border);
  border-radius: var(--ch-radius-md); font-size: 14px;
}
:where(.ast-container) .ast-hidden { display: none; }
