/* Isolated student-detail addition. Existing desktop/mobile scroll owners and
 * all student information/editing controls remain unchanged. */
#app.studentScreen #studentDetail > .studentAttendance12220 {
  display: block !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 22px !important;
  padding: 16px !important;
  border: 1px solid #b9d9ef !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #294157;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  container-type: inline-size;
}
#studentAttendance12220 *,
#studentAttendance12220 *::before,
#studentAttendance12220 *::after { box-sizing: border-box; }
#studentAttendance12220 [hidden] { display: none !important; }
#studentAttendance12220 .studentAttendanceHeading,
#studentAttendance12220 .studentAttendanceToolbar,
#studentAttendance12220 .studentAttendanceMeta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}
#studentAttendance12220 .studentAttendanceHeading > h3 {
  display: block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #213c54 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  border: 0 !important;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
#studentAttendance12220 .studentAttendanceLinked {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 5px;
  background: #eef7ff;
  color: #1675af;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
#studentAttendance12220 .studentAttendanceToolbar { margin: 12px 0 !important; }
#studentAttendance12220 .studentAttendanceSemesters {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: 0 !important;
}
#app.studentScreen #studentDetail #studentAttendance12220 button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 38px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px 11px !important;
  border: 1px solid #cadbe9 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #34536d !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: manipulation;
}
#app.studentScreen #studentDetail #studentAttendance12220 button[aria-pressed="true"] {
  background: #288dcb !important;
  border-color: #288dcb !important;
  color: #fff !important;
}
#app.studentScreen #studentDetail #studentAttendance12220 button[hidden] { display: none !important; }
#studentAttendance12220 button:focus-visible,
#studentAttendance12220 summary:focus-visible { outline: 3px solid #176fb1 !important; outline-offset: 3px; }
#studentAttendance12220 .studentAttendanceTotal,
#studentAttendance12220 .studentAttendanceMeta {
  font-size: 12px !important;
  color: #657c90 !important;
}
#studentAttendance12220 .studentAttendanceTotal b,
#studentAttendance12220 .studentAttendanceMeta b { color: #294157; font-weight: 900; }
#studentAttendance12220 .studentAttendanceStats {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 7px !important;
  min-width: 0 !important;
  margin: 0 !important;
}
#studentAttendance12220 .studentAttendanceStat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  min-height: 77px;
  padding: 10px 3px !important;
  border: 1px solid #d6e3ed !important;
  border-radius: 8px !important;
  background: #f5f8fb !important;
  text-align: center !important;
}
#studentAttendance12220 .studentAttendanceStatLabel { font-size: 12px; color: #5b7388; white-space: nowrap; }
#studentAttendance12220 .studentAttendanceStatValue { display: inline-flex; align-items: baseline; justify-content: center; gap: 3px; min-width: 0; }
#studentAttendance12220 .studentAttendanceStatValue b { font-size: 25px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
#studentAttendance12220 .studentAttendanceStatValue > span { font-size: 11px; color: #708396; }
#studentAttendance12220 [data-attendance-status="present"] .studentAttendanceStatValue b { color: #28734f; }
#studentAttendance12220 [data-attendance-status="absent"] .studentAttendanceStatValue b { color: #b3494f; }
#studentAttendance12220 :is([data-attendance-status="late"], [data-attendance-status="injured"]) .studentAttendanceStatValue b { color: #916719; }
#studentAttendance12220 .studentAttendanceMeta { margin-top: 10px !important; }
#studentAttendance12220 .studentAttendanceFeedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  margin-top: 8px;
  color: #657c90;
  font-size: 12px;
}
#studentAttendance12220[data-state="error"] .studentAttendanceFeedback { color: #a03c3d; }
#studentAttendance12220 .studentAttendanceDates { margin-top: 12px; border-top: 1px solid #d6e3ed; min-width: 0; }
#studentAttendance12220 .studentAttendanceDates > summary {
  display: list-item !important;
  min-height: 44px;
  padding: 12px 0 8px;
  color: #176fab;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
  cursor: pointer;
  touch-action: manipulation;
}
#studentAttendance12220 .studentAttendanceHistoryNote,
#studentAttendance12220 .studentAttendanceEmpty { margin: 4px 0 8px; color: #657c90; font-size: 12px; line-height: 1.6; }
#studentAttendance12220 .studentAttendanceHistoryRow {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #e1eaf1;
  font-size: 12px;
}
#studentAttendance12220 .studentAttendanceHistoryRow:last-child { border-bottom: 0; }
#studentAttendance12220 .studentAttendanceWhen,
#studentAttendance12220 .studentAttendanceLesson { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#studentAttendance12220 .studentAttendanceWhen time { font-variant-numeric: tabular-nums; }
#studentAttendance12220 .studentAttendanceWhen > span,
#studentAttendance12220 .studentAttendanceLesson > span { color: #6b8092; font-size: 11px; }
#studentAttendance12220 .studentAttendanceLesson b { font-weight: 800; overflow-wrap: anywhere; word-break: keep-all; }
#studentAttendance12220 .studentAttendanceStatus { justify-self: end; padding: 3px 7px; border-radius: 5px; background: #edf6fe; color: #26658c; font-size: 11px; font-weight: 800; white-space: nowrap; }
#studentAttendance12220 .studentAttendanceStatus[data-status="absent"] { background: #fff0f1; color: #a44049; }
#studentAttendance12220 .studentAttendanceStatus:is([data-status="late"], [data-status="injured"]) { background: #fff6e5; color: #855e14; }
#studentAttendance12220 .studentAttendanceHistoryExtra { grid-column: 2 / -1; color: #6b8092; font-size: 11px; }
#studentAttendance12220 .studentAttendanceFootnote { margin: 7px 0 0 !important; padding: 0 !important; color: #718396; font-size: 11px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
@container (max-width: 510px) {
  #studentAttendance12220 .studentAttendanceStats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #studentAttendance12220 .studentAttendanceHistoryRow { grid-template-columns: 87px minmax(0, 1fr) max-content; gap: 4px 6px; }
}
@media (max-width: 768px) {
  #app.studentScreen #studentDetail > .studentAttendance12220 { padding: 12px !important; border-radius: 10px !important; margin-bottom: 18px !important; }
  #studentAttendance12220 .studentAttendanceStats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  #studentAttendance12220 .studentAttendanceHeading > h3 { font-size: 16px !important; }
  #app.studentScreen #studentDetail #studentAttendance12220 button { min-height: 44px !important; padding: 8px 11px !important; }
  #studentAttendance12220 .studentAttendanceHistoryRow { grid-template-columns: 85px minmax(0, 1fr) max-content; gap: 4px 6px; }
}
