/* What is stuck on a caseload, and the caseload by owner (UC of the CARE and TAG UX fixes: VIC-4, DANTE-11; CaseloadComponent). Each owner's name is a heading over their cases with a
   count after it; the source of the next review date ("the case review", "set at the last assessment") follows the date in the secondary color; "Past due" is a word in a badge, never a color
   alone. Tokens only and logical properties only (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads in light and dark, on the shell and the console, and mirrors in a
   right-to-left language; everything wraps, so a longer language never widens the page (WCAG 1.4.10). */

.caseload__owner {
  margin-block: var(--density-gap) 0;
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}

.caseload__owner-count,
.caseload__source {
  color: var(--fg2);
  font-weight: 400;
}

.caseload__source {
  font-size: var(--text-sm);
}

/* The referral's accept sheet (app/views/referrals/show.html.erb; UC of the CARE and TAG UX fixes, LENA-13 and VIC-6): once "Open a new case" or "Add it to an open case" is chosen, only that
   answer's field is shown. No script: the form is read with :has. With no answer chosen, or in a browser without :has, both fields stay shown and labeled, and the server still says which one
   is needed. Nothing here is a color; display only. */

#referral-accept:has(input[name="decision[how]"][value="open"]:checked) .referral-accept__attach,
#referral-accept:has(input[name="decision[how]"][value="attach"]:checked) .referral-accept__open {
  display: none;
}
