/*
 * The remaining departments (DEPARTMENTS_NOTES.md).
 *
 * Only what learning.css and the canonical components do not cover. Tokens
 * only, logical properties, gaps not margins. Scoped to .dp-screen (office
 * bearers) and .dp-member (members and parents).
 */

/* Roster tools above a grid of checkboxes. */
.dp-roster { display: flex; flex-direction: column; gap: var(--space-3); border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.dp-roster__tools { align-items: center; }

/* One row of a simple list (name on the left, actions on the right). */
.dp-screen .tt-list > .dp-row { padding-block: var(--space-3); border-block-end: var(--border-subtle); }
.dp-screen .tt-list > .dp-row:last-child { border-block-end: 0; }

/* Score inputs in fixtures. */
.dp-score { flex-wrap: nowrap; justify-content: flex-end; }
.dp-score .ap-input { inline-size: 4.5rem; min-inline-size: 0; }

/* Bulk entry tables: inputs fill the cell. */
.dp-bulk td .ap-input { inline-size: 100%; min-inline-size: 8rem; }
.dp-bulk th[scope="row"] .ap-check { min-block-size: var(--tap-target); }

/* Read-only answers (Sa'iq form). */
.dp-answers { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: var(--space-3) var(--space-5); margin: 0; }
.dp-answers dt { font-weight: var(--fw-semibold); color: var(--color-text); }
.dp-answers dd { margin: 0; color: var(--color-text-soft); }

/* Member and parent views. */
.dp-member { display: flex; flex-direction: column; gap: var(--space-5); }
.dp-member .tt-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--space-5); }
.dp-member .tt-cards > .ap-card { padding: var(--space-4); }

@media (max-width: 640px) {
	.dp-answers { grid-template-columns: 1fr; gap: var(--space-2); }
	.dp-answers dd { padding-block-end: var(--space-3); }
	.dp-bulk td .ap-input { min-inline-size: 0; }
}

@media print {
	.dp-roster__tools { display: none !important; }
}
