/* Daily editor only: keep compact fields intrinsic and give spare room to notes. */
#recordsArea .dailytable{width:100%;min-width:0;table-layout:auto}
#recordsArea .dailytable th,#recordsArea .dailytable td{width:1%;white-space:nowrap;padding:8px 6px}
#recordsArea .dailytable th:first-child,#recordsArea .dailytable td:first-child{padding-left:12px}
#recordsArea .dailytable th:last-child,#recordsArea .dailytable td:last-child{width:auto;min-width:372px}
#recordsArea .dailytable td select{width:auto;min-width:0;max-width:none;box-sizing:border-box}
#recordsArea .dailytable .grammar-score-inputs{width:max-content;min-width:0}
#recordsArea .dailytable .daily-book-caption{max-width:150px;white-space:normal;overflow-wrap:anywhere}
#recordsArea .dailytable td input.memo{display:block;box-sizing:border-box;width:100%;min-width:360px;max-width:none}

.correction-result{flex-direction:column;align-items:center}.correction-note{display:block;margin-top:4px;font-size:11px!important;font-weight:400;color:#7888a0;line-height:1.5;white-space:normal}

.student-list-panel .parent-status{white-space:nowrap;min-width:108px}
.student-list-panel .parent-status small{font-size:11px;color:#7888a0;margin-top:5px}

.lesson-area-row{grid-template-columns:minmax(140px,1fr) auto auto}.lesson-area-row select{width:100%;min-width:0}

.daily-exam-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.daily-exam-option{padding:12px;border:1px solid #dce3f0;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.daily-exam-option label{display:flex;align-items:center;gap:6px}.daily-exam-option input{width:16px;height:16px;margin:0}.daily-exam-score{font-size:11px;color:#7888a0;white-space:nowrap}#todayExamChange{white-space:nowrap}@media(max-width:650px){.daily-exam-options{grid-template-columns:1fr}}

.daily-result-editor{display:grid;gap:5px;min-width:145px}.daily-result-editor select,.daily-result-editor input{box-sizing:border-box;max-width:190px;width:100%!important;min-width:145px!important}.daily-result-editor [hidden]{display:none!important}.daily-result-editor input{padding:7px 9px;font-size:13px}

/* Compact test columns and clear daily record actions. */
#recordsArea .dailytable .daily-result-editor{width:96px;min-width:96px;margin-inline:auto}
#recordsArea .dailytable .daily-result-editor select,#recordsArea .dailytable .daily-result-editor input{width:96px!important;min-width:96px!important;max-width:96px;font-size:12px;padding:6px 4px}
#recordsArea .dailytable .grammar-score-inputs{width:96px;min-width:0;margin-inline:auto}
#recordsArea .dailytable .grammar-score-inputs>span{font-size:10px;white-space:normal;line-height:1.3}
#recordsArea .dailytable .grammar-score-inputs>div{display:flex;align-items:center;justify-content:center;gap:3px}
#recordsArea .dailytable .grammar-score-inputs input{box-sizing:border-box;width:40px!important;min-width:0!important;max-width:40px;padding:5px 2px;font-size:12px}
#recordsArea .dailytable .daily-book-caption{max-width:96px;margin-inline:auto}
#recordsArea .dailytable thead th:nth-child(2),#recordsArea .dailytable thead th:nth-child(3),#recordsArea .dailytable thead th:nth-child(4),#recordsArea .dailytable thead th:last-child{font-weight:800;color:#23354e}
#recordsArea .dailytable .daily-report-button{display:block;margin:10px auto 0;background:#3458df;border:1px solid #3458df;color:#fff;font-weight:800;padding:9px 16px;border-radius:8px;box-shadow:0 3px 9px #3458df26}
#recordsArea .dailytable .daily-report-button:hover{background:#2545bf;border-color:#2545bf}
#recordsArea .dailytable .daily-report-button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
#recordsArea .dailytable td:nth-child(2)>select,#recordsArea .dailytable td:nth-child(3)>select,#recordsArea .dailytable td:nth-child(4)>select{font-weight:700}

/* Homework and test groups continue vertically through every student row. */
#recordsArea .dailytable th.daily-homework-col,#recordsArea .dailytable td.daily-homework-col{background:#eff9f0;border-left:1px solid #d4e8d7;border-right:1px solid #d4e8d7}
#recordsArea .dailytable th.daily-homework-col{background:#def1e2;color:#275d38;font-weight:800;white-space:normal;min-width:100px}
#recordsArea .dailytable td.daily-homework-col select{font-weight:700;min-width:96px}
#recordsArea .dailytable th.daily-test-col,#recordsArea .dailytable td.daily-test-col{background:#eff8ff;border-left:1px solid #d3e8f7;border-right:1px solid #d3e8f7}
#recordsArea .dailytable th.daily-test-col{background:#e0f0fc;color:#285675;font-weight:800}

#recordsArea .dailytable th:last-child,#recordsArea .dailytable td:last-child{min-width:430px}
.daily-today-notes{display:grid;grid-template-columns:repeat(2,minmax(170px,1fr));gap:10px;text-align:left}
.daily-today-notes>label{display:grid;gap:5px;margin:0;min-width:0;font-size:12px;color:#23354e}
#recordsArea .dailytable .daily-today-notes textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:none;min-height:76px;resize:vertical;padding:8px;font-size:13px;white-space:pre-wrap}
.daily-today-notes .parent-message{background:#f1f7ff;border-color:#bdcfee}

.daily-today-notes{align-items:start}.daily-today-notes label{display:grid;gap:5px;margin:0;min-width:0;font-size:12px;color:#23354e}.daily-parent-note{min-width:0}
#recordsArea .dailytable .daily-today-notes textarea::placeholder{color:#929aa7;font-size:11px;font-weight:400;line-height:1.5;opacity:1}
#recordsArea .dailytable .daily-today-notes textarea:focus::placeholder{color:transparent}
#recordsArea .dailytable .daily-parent-note .daily-report-button{margin:8px auto 0}

.daily-common-row .daily-apply-column{display:block;margin:6px auto 0;padding:3px 9px;min-height:24px;font-size:11px;line-height:1.4;border-radius:6px;white-space:nowrap}

#parentShareDaily,#parentShareWeekly,#parentPublish{background:#fce7f3!important;border:1px solid #f5a6c8!important;color:#9d174d!important}#parentShareDaily:hover,#parentShareWeekly:hover,#parentPublish:hover{background:#fbcfe8!important}

.daily-today-notes.with-progress {
  grid-template-columns: auto repeat(2,minmax(170px,1fr));
}
.daily-progress-link {
  writing-mode: vertical-rl;
  text-orientation: upright;
  align-self: stretch;
  min-width: 34px;
  padding: 7px 4px;
  border: 1px solid #a5b4fc;
  border-radius: 8px;
  background: #e0e7ff;
  color: #312e81;
  font-weight: 700;
}
.daily-progress-link:hover { background: #c7d2fe; }
.daily-progress-link:focus-visible { outline: 2px solid #3458df; outline-offset: 2px; }
