/* Monthly record lookup only. No typography or layout rules escape this card. */
.classroomFlow[data-classroom-view="history"] .classroomMonthlyRecordCard{
  container-type:inline-size;container-name:classroom-monthly;
  padding:22px 26px 26px;background:#f3f8fc;border:1px solid #d8e5ef;border-radius:16px;
  min-width:0;max-width:100%;box-sizing:border-box;
}
.classroomMonthlyRecordCard *{box-sizing:border-box}
.classroomMonthlyRecordCard .classroomMonthlyToolbar{
  display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:14px;
  margin:0 0 22px;padding:0;min-width:0;
}
.classroomMonthlyRecordCard .classroomMonthlyControls{
  display:grid;grid-template-columns:42px 135px 110px 42px;align-items:center;gap:8px;
  justify-self:center;width:353px;max-width:100%;min-width:0;
}
.classroomMonthlyRecordCard .classroomMonthlyControls label{display:block;min-width:0;margin:0;padding:0}
.classroomMonthlyRecordCard .classroomMonthlyControlLabel{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.classroomMonthlyRecordCard .classroomMonthlyControls :is(button,select){
  box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;
  height:44px;min-height:44px;max-height:44px;margin:0;border:1px solid #cbdde9;border-radius:10px;
  background-color:#fff;color:#243f54;font:inherit;font-size:16px;font-weight:800;line-height:normal;
  text-align:center;text-align-last:center;white-space:nowrap;word-break:normal;overflow-wrap:normal;
}
.classroomMonthlyRecordCard .classroomMonthlyControls button{
  display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:22px;
}
.classroomMonthlyRecordCard .classroomMonthlyControls button:disabled{opacity:.35;cursor:default}
.classroomMonthlyRecordCard .classroomMonthlyControls select{
  appearance:none;-webkit-appearance:none;padding:0 24px 0 8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M2 2l4 4 4-4' fill='none' stroke='%23597185' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-size:12px 8px;background-position:right 8px center;
}
.classroomMonthlyRecordCard .classroomMonthlySummary{
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;
  min-width:0;color:#647f92;font-size:13px;font-weight:700;line-height:1.5;white-space:nowrap;
}
.classroomMonthlyRecordCard .classroomMonthlySummary strong{font-size:15px;font-weight:800;color:#243f54}
.classroomMonthlyRecordCard .classroomMonthlySummary>span[data-history-status]{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.classroomMonthlyRecordCard .classroomMonthlySummary>span[data-history-status]::before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:#91a3b2}
.classroomMonthlyRecordCard .classroomMonthlySummary>span[data-history-status="in_progress"]::before{background:#168dd1}
.classroomMonthlyRecordCard .classroomMonthlySummary>span[data-history-status="completed"]::before{background:#20a46a}
.classroomMonthlyRecordCard #classroomCompletedHistory{display:block;min-width:0;gap:0}
.classroomMonthlyRecordCard .classroomHistoryDay+.classroomHistoryDay{margin-top:21px}
.classroomMonthlyRecordCard .classroomHistoryDayHeading{
  display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:0;
  color:#243f54;font-size:15px;font-weight:800;line-height:1.5;text-align:left;
}
.classroomMonthlyRecordCard .classroomHistoryDayHeading span{font-size:12px;font-weight:700;color:#708696;white-space:nowrap}
.classroomMonthlyRecordCard .classroomHistoryDayHeading h3{margin:0;padding:0;font:inherit;line-height:inherit;text-align:left}
.classroomMonthlyRecordCard .classroomHistoryDayHeading time{white-space:nowrap}
.classroomMonthlyRecordCard .classroomHistoryDayHeading::after{content:'';height:1px;flex:1;background:#dfe8ef;margin-left:2px}
.classroomMonthlyRecordCard .classroomHistoryDayRows{border:1px solid #dbe6ed;border-radius:14px;background:#fff;overflow:hidden}
.classroomMonthlyRecordCard .classroomMonthlyLesson{
  display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:15px;
  width:100%;min-width:0;margin:0;padding:15px 18px;text-align:left;
}
.classroomMonthlyRecordCard .classroomMonthlyLesson+.classroomMonthlyLesson{border-top:1px solid #eaf0f5}
.classroomMonthlyRecordCard .classroomMonthlyPeriod{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  width:45px;min-height:48px;padding:5px 2px;border-radius:10px;background:#f0f6fb;color:#39789f;
  font-size:18px;font-weight:800;line-height:1.2;text-align:center;
}
.classroomMonthlyRecordCard .classroomMonthlyPeriod small{font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap}
.classroomMonthlyRecordCard .classroomMonthlyIdentity{min-width:0;text-align:left}
.classroomMonthlyRecordCard .classroomMonthlyMainline{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px;min-width:0;text-align:left}
.classroomMonthlyRecordCard .classroomMonthlyClass{color:#637f94;font-size:14px;font-weight:700;line-height:1.5;white-space:nowrap}
.classroomMonthlyRecordCard .classroomMonthlyTopic{color:#243f54;font-size:16px;font-weight:800;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;text-align:left}
.classroomMonthlyRecordCard .classroomMonthlyMeta{display:block;margin:3px 0 0;color:#708696;font-size:12px;font-weight:700;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;text-align:left}
.classroomMonthlyRecordCard .classroomMonthlyActions{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0}
.classroomMonthlyRecordCard .classroomMonthlyStatus{
  display:inline-flex;align-items:center;justify-content:center;min-width:59px;padding:4px 10px;
  border:0;border-radius:999px;background:#f0f3f6;color:#6c7b89;font-size:12px;font-weight:800;line-height:1.4;white-space:nowrap;
}
.classroomMonthlyRecordCard .classroomMonthlyStatus[data-history-status="in_progress"]{color:#167abb;background:#eaf5ff}
.classroomMonthlyRecordCard .classroomMonthlyStatus[data-history-status="completed"]{color:#397a56;background:#edf7f0}
.classroomMonthlyRecordCard #classroomCompletedHistory .classroomMonthlyAction{
  display:inline-flex;align-items:center;justify-content:center;flex:none;width:112px;max-width:112px;min-width:0;
  min-height:44px;margin:0;padding:7px 10px;border:1px solid #d1e2ec;border-radius:10px;
  background:#fff;color:#33769f;font:inherit;font-size:13px;font-weight:800;line-height:1.4;
  white-space:nowrap;text-align:center;word-break:normal;overflow-wrap:normal;
}
.classroomMonthlyRecordCard #classroomCompletedHistory .classroomMonthlyAction[data-classroom-history-status="not_started"]{background:#128ed6;border-color:#128ed6;color:#fff}
.classroomMonthlyRecordCard #classroomCompletedHistory .classroomMonthlyAction[data-classroom-history-status="in_progress"]{background:#f5fbff;border-color:#bddef3;color:#1482bd}
.classroomMonthlyRecordCard #classroomCompletedHistory .classroomMonthlyAction:disabled{opacity:.6;cursor:wait}
.classroomMonthlyRecordCard :is(button,select):focus-visible{outline:3px solid #358bd0;outline-offset:2px}
.classroomMonthlyRecordCard .classroomMonthlyEmpty{padding:34px 12px;color:#708696;font-size:14px;line-height:1.6;text-align:center}
.classroomMonthlyRecordCard .classroomMonthlyMessage{padding:18px 0;color:#708696;font-size:13px;line-height:1.5;text-align:center}
.classroomMonthlyRecordCard .classroomMonthlyMessage button{margin:12px auto 0}
/* The card, not the viewport, determines whether the centered controls and
   right-aligned totals fit. Neither can push the other off-center or overlap. */
@container classroom-monthly (min-width:760px){
  .classroomMonthlyToolbar{grid-template-columns:minmax(0,1fr) 280px minmax(0,1fr)!important;column-gap:14px!important}
  .classroomMonthlyControls{grid-column:2;grid-row:1;width:280px!important;grid-template-columns:38px 104px 76px 38px!important}
  .classroomMonthlyControls :is(button,select){font-size:15px!important}
  .classroomMonthlyControls select{padding-left:5px!important;padding-right:22px!important}
  .classroomMonthlySummary{grid-column:3;grid-row:1;justify-self:end;flex-wrap:nowrap!important;gap:6px!important;font-size:11px!important}
  .classroomMonthlySummary strong{font-size:12px!important}
  .classroomMonthlySummary>span[data-history-status]{gap:4px!important}
}
@container classroom-monthly (min-width:900px){
  .classroomMonthlyToolbar{grid-template-columns:minmax(0,1fr) 353px minmax(0,1fr)!important}
  .classroomMonthlyControls{width:353px!important;grid-template-columns:42px 135px 110px 42px!important}
  .classroomMonthlyControls select{font-size:16px!important;padding-left:8px!important;padding-right:24px!important}
  .classroomMonthlySummary{gap:10px!important;font-size:12px!important}
  .classroomMonthlySummary strong{font-size:14px!important}
}
@media(max-width:699px){
  .classroomFlow[data-classroom-view="history"] .classroomMonthlyRecordCard{padding:17px 14px 20px}
}
@container classroom-monthly (max-width:560px){
  .classroomMonthlyRecordCard .classroomMonthlyToolbar{gap:14px;margin-bottom:20px}
  .classroomMonthlyRecordCard .classroomMonthlyControls{width:100%;grid-template-columns:44px minmax(0,1.45fr) minmax(0,1fr) 44px;gap:5px}
  .classroomMonthlyRecordCard .classroomMonthlyControls select{padding-left:4px;padding-right:18px;background-position:right 5px center;background-size:10px 7px;font-size:clamp(13px,4.4cqi,15px)}
  .classroomMonthlyRecordCard .classroomMonthlySummary{justify-content:center;gap:10px;font-size:12px}
  .classroomMonthlyRecordCard .classroomMonthlySummary strong{font-size:13px}
  .classroomMonthlyRecordCard .classroomHistoryDayHeading{font-size:14px;gap:8px}
  .classroomMonthlyRecordCard .classroomMonthlyLesson{grid-template-columns:33px minmax(0,1fr) auto;padding:13px 12px;gap:9px}
  .classroomMonthlyRecordCard .classroomMonthlyPeriod{width:33px;min-height:42px;font-size:17px;border-radius:8px}
  .classroomMonthlyRecordCard .classroomMonthlyMainline{flex-direction:column;align-items:flex-start;gap:1px}
  .classroomMonthlyRecordCard .classroomMonthlyClass{font-size:12px}
  .classroomMonthlyRecordCard .classroomMonthlyTopic{font-size:14px}
  .classroomMonthlyRecordCard .classroomMonthlyMeta{font-size:11px;margin-top:2px}
  .classroomMonthlyRecordCard .classroomMonthlyActions{flex-direction:column;align-items:flex-end;gap:5px}
  .classroomMonthlyRecordCard .classroomMonthlyStatus{min-width:47px;padding:3px 8px;font-size:11px}
  .classroomMonthlyRecordCard #classroomCompletedHistory .classroomMonthlyAction{width:86px;max-width:86px;min-height:44px;font-size:12px;border-radius:9px;padding:5px 7px}
}
@container classroom-monthly (max-width:270px){
  .classroomMonthlyRecordCard .classroomMonthlyControls{gap:4px}
  .classroomMonthlyRecordCard .classroomMonthlySummary{gap:6px;font-size:11px}
  .classroomMonthlyRecordCard .classroomMonthlySummary strong{font-size:12px}
  .classroomMonthlyRecordCard .classroomMonthlyLesson{padding-inline:8px;gap:6px}
}
