/* Update 6: scoped student portal and bulk attendance */
.attendance-list{display:grid;gap:12px}.attendance-student{border:1px solid #e4eaf2;border-radius:14px;padding:17px;background:#fbfcff}.attendance-student-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.attendance-index{background:#e6effb;color:#225b94;min-width:31px;height:31px;display:grid;place-items:center;border-radius:9px;font-weight:800}.attendance-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.attendance-event{border:1px solid #e7edf5;background:#fff;border-radius:11px;padding:10px}.attendance-option{display:flex;align-items:center;gap:8px;margin:0 0 8px;cursor:pointer}.attendance-option input{width:19px;height:19px;accent-color:#2364a0}.attendance-event input[type=text]{padding:9px;font-size:13px}.attendance-save{position:sticky;bottom:8px;background:#fff;border:1px solid #e5eaf2;border-radius:13px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 5px 25px #12243c12;margin-top:20px}.attendance-save .btn{margin:0}
.student-portal{max-width:1100px;margin:auto}.student-welcome{background:linear-gradient(120deg,#123c6b,#2675b2);color:white;padding:30px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:16px}.student-welcome h1{margin:10px 0 5px;color:white}.student-welcome p{color:#e1effb;margin:0}.student-welcome-tag{font-size:12px;font-weight:800;background:#ffffff24;border:1px solid #ffffff35;border-radius:99px;padding:5px 13px}.student-logout{background:white;color:#194c7c;margin:0;white-space:nowrap}.student-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:20px 0 30px}.student-overview article,.student-grades article{background:white;border:1px solid #e5eaf2;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:7px}.student-overview span,.student-grades span{color:#65758b;font-size:13px}.student-overview strong,.student-grades strong{font-size:29px;color:#205f9d}.student-overview small,.student-grades small{color:#8290a2}.student-section-title h2{margin:28px 0 3px}.student-section-title p{color:#738299;margin:0 0 15px}.student-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.student-task{background:white;border:1px solid #e5eaf2;border-radius:17px;padding:22px;display:flex;flex-direction:column;min-height:220px}.student-task-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.student-status{border-radius:99px;padding:5px 11px;font-size:12px;font-weight:800}.student-done{background:#e2f6e9;color:#137247}.student-waiting{background:#fff3db;color:#97631b}.student-type{color:#8492a4;font-size:12px}.student-task h3{margin:0 0 8px}.student-task>p{color:#66778d;line-height:1.9;flex:1}.student-task-bottom{border-top:1px solid #eef1f5;padding-top:12px;color:#285c8c;font-weight:700}.student-task-bottom .btn{margin:0}.student-grades{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:13px}.student-privacy{margin-top:26px;background:#edf4fb;border:1px solid #dce9f6;border-radius:12px;padding:16px;color:#42627f;font-size:13px}@media(max-width:750px){.attendance-options,.student-task-grid{grid-template-columns:1fr}.student-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.student-welcome{flex-direction:column;align-items:stretch;padding:23px}.attendance-save{flex-direction:column;align-items:stretch}.attendance-save .btn{width:100%}}
/* Patch 7: attendance matrix */
.attendance-table-wrap{overflow-x:auto;margin:18px 0}.attendance-grid{width:100%;border-collapse:collapse;min-width:520px}.attendance-grid th,.attendance-grid td{padding:14px 10px;border-bottom:1px solid #e7eaf1;text-align:right}.attendance-grid th{background:#f3f6fc}.attendance-grid tr:hover td{background:#f8faff}.check-cell{display:flex;align-items:center;gap:8px;cursor:pointer}.check-cell input{width:19px;height:19px;accent-color:#3563a1}@media(max-width:650px){.attendance-grid th,.attendance-grid td{padding:10px 6px;font-size:12px}.check-cell span{display:none}}
