/* Applicants (People > Applicants): the stage tabs, the checklist and the timeline. Colors come from the theme tokens, so light and dark follow. */
.ap-stages ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 var(--space-4); }
.ap-checklist { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.ap-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.ap-mark { flex: 0 0 1.4rem; width: 1.4rem; height: 1.4rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border: 1px solid var(--color-border); background: var(--color-surface-2); color: var(--color-text); }
.ap-item.done .ap-mark { background: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface)); border-color: var(--color-accent); }
.ap-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.ap-timeline li { border-left: 3px solid var(--color-border); padding-left: var(--space-3); }
.ap-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem var(--space-4); margin: 0 0 var(--space-3); }
.ap-facts dt { color: var(--color-text-muted); }
.ap-facts dd { margin: 0; overflow-wrap: anywhere; }
.ap-private { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); margin: var(--space-4) 0; }
.ap-private legend { padding: 0 .4rem; font-weight: 600; }
.pager .btn.disabled { opacity: .55; pointer-events: none; }
/* a long option in a select (a template name, a physician with their license) must not push the page wider than a phone */
.ap-page .select-field, .ap-page .field { min-width: 0; }
.ap-page .select-field { grid-template-columns: minmax(0, 1fr); }
.ap-page .select-field select { max-width: 100%; min-width: 0; width: 100%; text-overflow: ellipsis; }
.ap-page .rt-actions { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: flex-end; margin-top: .6rem; }
.ap-page .rt-actions > * { min-width: 0; max-width: 100%; }

/* The training stage (LMS wiring): the progress beside the stage on the list, and the required courses on the applicant's page */
.ap-pct { display: inline-flex; align-items: center; gap: .4rem; margin-left: .4rem; font-size: .85rem; }
.ap-pct progress, .ap-card-train progress, .ap-training progress { width: 6rem; height: .55rem; accent-color: var(--accent); vertical-align: middle; }
.ap-training { margin: .5rem 0 1rem; }
.ap-train-list { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .35rem; }
.ap-train-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ap-files { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.ap-files li { margin: .25rem 0; }
