/* Mobile-first roll-call page styles. Designed for the teacher to use on a
   phone in the studio: large tap targets, high contrast, no decoration. */

.acnb-rollcall {
	max-width: 560px;
	margin: 0 auto;
	padding: 16px;
	font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #1a1a1a;
}

.acnb-rollcall__header {
	margin-bottom: 16px;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 12px;
}

.acnb-rollcall__header h1 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
}

.acnb-rollcall__pretty {
	margin: 4px 0 0;
	color: #555;
}

.acnb-rollcall__date {
	display: flex;
	gap: 8px;
	align-items: center;
}

.acnb-rollcall__date input[type="date"] {
	padding: 8px;
	font-size: 16px;
	border: 1px solid #bbb;
	border-radius: 6px;
	flex: 1;
}

.acnb-rollcall__date button {
	padding: 8px 14px;
	font-size: 16px;
	border-radius: 6px;
	border: 1px solid #1a1a1a;
	background: #1a1a1a;
	color: #fff;
}

.acnb-rollcall__empty {
	margin: 24px 0;
	padding: 16px;
	background: #f7f7f7;
	border-radius: 8px;
	text-align: center;
	color: #555;
}

.acnb-rollcall__slot {
	margin: 24px 0;
}

.acnb-rollcall__slot h2 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
}

.acnb-rollcall__count {
	color: #888;
	font-weight: 400;
}

.acnb-rollcall__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.acnb-rollcall__item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	padding: 14px;
	margin: 0 0 10px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.acnb-rollcall__item.is-present {
	background: #f0fdf4;
	border-color: #86efac;
}

.acnb-rollcall__name {
	font-size: 18px;
	font-weight: 600;
}

.acnb-rollcall__guardian {
	color: #666;
	font-weight: 400;
	font-size: 14px;
}

.acnb-rollcall__meta {
	font-size: 14px;
	color: #444;
}

.acnb-rollcall__balance strong {
	color: #1a1a1a;
}

.acnb-rollcall__btn {
	-webkit-tap-highlight-color: transparent;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	background: #1a1a1a;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.acnb-rollcall__btn:active {
	transform: scale(.98);
}

.acnb-rollcall__btn.is-done,
.acnb-rollcall__btn:disabled {
	background: #d1fae5;
	color: #065f46;
	cursor: default;
}

.acnb-rollcall__btn.is-error {
	background: #fee2e2;
	color: #991b1b;
}

.acnb-rollcall--gate {
	text-align: center;
	padding: 40px 16px;
}
