/* Presenze tablet — estende kiosk.css */
.ag-presenze { align-items: flex-start; }

.agp-screen {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	background: #fff;
	border-radius: 20px;
	padding: 24px 24px 30px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.agp-screen h2 { margin: 8px 0 16px; color: #0f2e2b; font-size: 22px; }

.agp-bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 8px;
	font-weight: 700; color: #0f2e2b;
}
.agp-logout, .agp-back {
	appearance: none; border: 1px solid #e3e8e6; background: #f6f8f7;
	color: #0f2e2b; font-size: 15px; font-weight: 600; padding: 8px 14px;
	border-radius: 10px; cursor: pointer;
}

.agp-list { display: grid; gap: 10px; }
.agp-lezione {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 18px; border: 1px solid #e3e8e6; border-radius: 14px;
	background: #f6f8f7; cursor: pointer; font-size: 17px; color: #0f2e2b;
	text-align: left; width: 100%;
}
.agp-lezione--oggi { border-color: #1f9d55; background: #eafaf0; }
.agp-lezione small { display: block; color: #5b6b69; font-weight: 400; }

.agp-count { font-size: 15px; color: #5b6b69; margin: 4px 0 14px; }

.agp-students { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.agp-student {
	appearance: none; text-align: left; width: 100%;
	border: 2px solid #e3e8e6; background: #fff; color: #0f2e2b;
	font-size: 17px; font-weight: 600; padding: 16px 16px;
	border-radius: 14px; cursor: pointer; touch-action: manipulation;
	display: flex; align-items: center; gap: 10px;
	transition: background .12s ease, border-color .12s ease;
}
.agp-student::before {
	content: ""; width: 22px; height: 22px; border-radius: 6px;
	border: 2px solid #c2ccca; flex: 0 0 auto;
}
.agp-student.is-present { border-color: #1f9d55; background: #eafaf0; }
.agp-student.is-present::before { background: #1f9d55; border-color: #1f9d55; content: "✓"; color: #fff; text-align: center; line-height: 20px; font-size: 15px; }

.agp-error { color: #c0392b; font-weight: 600; margin-top: 14px; }

@media (max-width: 480px) {
	.agp-students { grid-template-columns: 1fr; }
}
