.hours-head,.hours-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.hours-head h2{margin:0}.hours-head p:last-child{color:var(--muted);margin:.5rem 0 0}.hours-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin:24px 0 8px}.hours-filters label,.hours-form-grid label{display:grid;gap:8px;font-size:.9rem;font-weight:700;min-width:0}.hours-filters input,.hours-filters select{min-width:170px}.hours-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.hours-summary article{padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;display:grid;align-content:start;gap:12px;min-width:0}.hours-summary article:last-child{background:var(--green);border-color:var(--ink)}.hours-summary span{font-weight:700;font-size:.9rem}.hours-summary strong{font-size:1.5rem;overflow-wrap:anywhere}.hours-summary small,.hours-note,.hours-record p,.hours-record-end small{font-size:.875rem;line-height:1.5;color:var(--muted)}.hours-note{margin:12px 0 20px}.hours-list{display:grid;gap:12px}.hours-record{display:flex;justify-content:space-between;gap:24px;padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff}.hours-record-main{min-width:0}.hours-record-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.875rem}.hours-record h3{margin:12px 0 6px;font-size:1.1rem;overflow-wrap:anywhere}.hours-record p{margin:4px 0;overflow-wrap:anywhere}.hours-record .hours-record-notes,.hours-record .hours-review-note{white-space:pre-wrap;margin-top:12px}.hours-record .hours-review-note{border-left:3px solid var(--blue);padding-left:10px}.hours-record-end{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:14px;min-width:135px}.hours-record-end strong{font-size:1rem}.hours-badge{padding:5px 10px;border-radius:999px;background:#f0f1f4;font-size:.8125rem;font-weight:700}.hours-badge[data-state=confirmed]{background:var(--green);color:#152000}.hours-badge[data-state=rejected]{background:#ffe6e2;color:#8a251c}.hours-badge[data-state=withdrawn]{background:#e7e7e7;color:#4d4d4d}.hours-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--ink);overflow:auto}.hours-dialog::backdrop{background:rgba(10,20,40,.5)}.hours-dialog-head{margin-bottom:22px}.hours-dialog-head h3{margin:0;font-size:1.5rem}.hours-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hours-form-grid input,.hours-form-grid select,.hours-form-grid textarea{width:100%;min-width:0;box-sizing:border-box}.hours-form-grid small{font-weight:400;color:var(--muted)}.hours-wide{grid-column:1/-1}.hours-review{margin:0;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}.hours-review legend{font-weight:700;padding:0 8px}.hours-review .hours-note{margin-bottom:0}.hours-dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.hours-dialog .feedback{white-space:normal;line-height:1.5}.hours-filters button,.hours-record button,.hours-dialog button{min-height:42px}.is-withdrawn{background:#f5f5f5}@media(max-width:1100px){.hours-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.hours-head{align-items:flex-start;flex-direction:column}.hours-head .primary{width:100%}.hours-summary{grid-template-columns:1fr 1fr;gap:10px}.hours-summary article{padding:14px}.hours-summary strong{font-size:1.2rem}.hours-filters{display:grid;grid-template-columns:1fr 1fr}.hours-filters input,.hours-filters select{min-width:0;width:100%}.hours-record{flex-direction:column;gap:16px;padding:16px}.hours-record-end{flex-direction:row;align-items:center;justify-content:space-between;min-width:0}.hours-form-grid{grid-template-columns:1fr}.hours-wide{grid-column:auto}.hours-dialog{padding:18px}.hours-dialog-actions>*{width:100%}}

.hours-section-switch{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.hours-section-switch button{min-height:44px;border:1px solid var(--line);border-radius:999px;padding:10px 18px;font:inherit;background:#fff;color:var(--ink);cursor:pointer}.hours-section-switch button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}.hours-absence-tools{margin:22px 0}.hours-absence-tools h3{font-size:1.5rem;margin:0}.hours-absence-tools label{display:grid;gap:8px;font-weight:700;max-width:520px}.hours-absence-tools input{width:100%;border:1px solid var(--line);border-radius:999px;padding:12px 16px;font:inherit;background:#fff;color:var(--ink)}.hours-absence-tools [data-hours-absence-count]{font-size:.9rem;color:var(--muted);margin-bottom:0}

.hours-attendance{border:1px solid var(--line);border-radius:16px;padding:16px;min-width:0}.hours-attendance legend{font-weight:700}.hours-attendance [data-hours-attendance-list]{display:grid;gap:8px;max-height:260px;overflow:auto}.hours-form-grid .hours-attendee{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;font-weight:400}.hours-form-grid .hours-attendee input{width:20px;height:20px;flex:none}.hours-details summary{cursor:pointer;font-weight:700;padding:12px 0}.hours-details>.hours-form-grid{padding:12px 0}.hours-attendance[hidden]{display:none}

[data-hours-future-topic][hidden]{display:none!important}
.teacher-future-topics{padding:1rem;margin-block:1rem;border:1px solid var(--line);border-radius:1rem;background:var(--paper)}
.teacher-future-topics h4{margin:0 0 .45rem}
.teacher-future-topics [role=status]{margin:.45rem 0}
.teacher-future-topics [role=status]:empty,.teacher-future-topics ul:empty{display:none}
.teacher-future-topics-list{display:grid;gap:.45rem;padding:0;list-style:none;margin:.4rem 0}
.teacher-future-topics-list li{display:flex;align-items:baseline;justify-content:space-between;gap:.65rem;flex-wrap:wrap;padding:.65rem;border-radius:.65rem;border:1px solid var(--line)}
.teacher-future-topics-list strong{overflow-wrap:anywhere;white-space:pre-wrap}
.teacher-future-topics-list small{color:var(--muted)}
.hours-dialog [data-hours-future-topic]{display:grid;gap:.45rem;margin-top:.85rem}
.hours-dialog [data-hours-future-topic] textarea{width:100%;box-sizing:border-box}
