/* LAMA teacher daily summary – mobile first, scoped to teacher portal. */
.teacher-daily-report{padding:18px;border-radius:18px}
.report-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.report-head h2{font-size:clamp(16px,2.8vw,20px);font-weight:850;color:#f0fffb}
.report-caption{font-size:12px;color:#bed0d1;margin-top:3px}
.report-hint{font-size:11px;color:#abc0c2;margin-top:12px}
.report-state{font-size:12px;font-weight:800;border:1px solid #9bb9b955;background:#ffffff10;border-radius:9px;padding:7px 10px}
.report-state.complete{color:#92eabd;border-color:#3e976c}
.report-state.pending{color:#ffd68a;border-color:#b58740}
.breakdown-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.breakdown-card{background:#0b2230;border:1px solid #527b8057;border-radius:13px;padding:13px;min-width:0}
.breakdown-card strong{display:block;font-size:clamp(21px,4vw,29px);line-height:1.2;color:#fff}
.breakdown-card span{display:block;font-size:11px;font-weight:800;color:#c7d9db}
.breakdown-card small{display:block;font-size:11px;color:#bacfd1;line-height:1.6;margin-top:6px}
.breakdown-card.present{border-left:4px solid #31c888}
.breakdown-card.absent{border-left:4px solid #ff7284}
.breakdown-card.leave{border-left:4px solid #e8bd4d}
.breakdown-card.unmarked{border-left:4px solid #8392aa}
.subjects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}
.subject-chip{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;min-height:56px;border-radius:12px;border:1px solid #627780;padding:10px 12px;background:#102736;color:white;font-weight:800;overflow-wrap:anywhere}
.subject-chip .status{font-weight:900;white-space:nowrap;font-size:11px;flex-shrink:0}
.subject-chip.done{background:#104e3d;border-color:#409b76;color:#d9ffeb}
.subject-chip.missing{background:#572733;border-color:#aa5d68;color:#ffe8ea}
.subject-chip.unknown{background:#283544;border-color:#66788a;color:#ccdae8}
.subject-chip:focus-visible{outline:3px solid #fbe9ad;outline-offset:2px}
.report-date-label{display:grid;gap:5px;font-weight:750;font-size:11px;color:#bdd5d6}
.report-date-label input{background:#0e2331;color:white;border:1px solid #66878d;border-radius:9px;padding:9px;font:inherit;font-size:13px}
.report-secondary,.config-actions button{background:#204c51;color:#e6fff7;border:1px solid #6eaba1;border-radius:9px;padding:9px 11px;font-weight:750;font-size:12px}
.subject-config{margin:12px 0;padding:13px;background:#112836;border:1px solid #507b80;border-radius:12px}
.subject-config label{font-size:12px;font-weight:800}
.subject-config textarea{display:block;width:100%;background:#0a1d2b;border:1px solid #68898e;border-radius:8px;padding:9px;margin-top:8px;color:white;font:inherit;font-size:13px}
.subject-config p{font-size:11px;color:#adcbcd;margin:8px 0}
.config-actions{display:flex;gap:9px;flex-wrap:wrap}
.teacher-history{width:100%;max-width:none}
.teacher-history .day{min-width:0;overflow:hidden;padding:6px 1px;font-variant-numeric:tabular-nums}
.teacher-history .day small{font-size:10px}
.attendance-status{display:inline-block;font-size:11px;font-weight:800;margin-top:6px;padding:5px 8px;border-radius:7px;background:#233647;color:#ccdae0}
.attendance-status.present{background:#145641;color:#cbffe8}
.attendance-status.absent{background:#642c39;color:#ffe5e8}
.attendance-status.leave{background:#6b5224;color:#fff1c4}
@media(max-width:780px){.breakdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-daily-report{padding:14px}}
@media(max-width:400px){.subjects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-chip{font-size:12px;padding:8px}.teacher-history .day{padding:5px 0}}

/* Keep each seven-day strip readable on small teacher phones: use a full-width student row. */
#attendanceList .teacher-attendance-row{display:flex;flex-direction:column;align-items:stretch;gap:10px}
#attendanceList .teacher-attendance-row>div:first-child{min-width:0;width:100%;flex:auto}
#attendanceList .teacher-attendance-row .teacher-history{width:100%;max-width:500px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
#attendanceList .teacher-attendance-row .teacher-history .day{min-width:0;padding:7px 2px;border-radius:8px;white-space:nowrap}
#attendanceList .teacher-attendance-row .teacher-history .day small{font-size:10px;white-space:nowrap}
#attendanceList .teacher-attendance-row .teacher-attendance-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
#attendanceList .teacher-attendance-row .teacher-attendance-actions>.att-btn{flex:1 1 22%;min-height:42px;font-size:12px}
@media(max-width:440px){#attendanceList .teacher-attendance-row .teacher-history{max-width:none;gap:4px}#attendanceList .teacher-attendance-row .teacher-history .day{padding:7px 1px}#attendanceList .teacher-attendance-row .teacher-attendance-actions>.att-btn{flex-basis:25%}}
