.teacher-schedule-page .curriculum-page-heading{display:block}
.teacher-schedule-page .public-filters.teacher-schedule-form{grid-template-columns:repeat(3,minmax(0,1fr))}
.schedule-week-filter{grid-column:span 2}
.teaching-grid-panel{border:1px solid #e3dce1;border-radius:18px;background:#fff;box-shadow:0 8px 24px #26334d0c;overflow:hidden;margin-bottom:26px}
.teaching-grid-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:22px 24px}
.teaching-grid-heading h2{font-size:18px;font-weight:600;line-height:1.7}
.teaching-grid-heading p{font-size:12px;line-height:1.8;color:#526176;margin-top:4px}
.schedule-week-navigation{display:flex;gap:8px;flex-wrap:wrap;font-size:12px}
.schedule-week-navigation a,.schedule-week-navigation>span{padding:10px 12px;min-height:40px;border:1px solid #d9c6cd;border-radius:10px;color:var(--wine);background:#fff}
.schedule-week-navigation a:hover{background:#fcf1f5;border-color:var(--wine)}
.schedule-week-navigation>span{color:#657184;background:#f4f6f9;border-color:#e1e5eb}
.teaching-week-table{table-layout:fixed;font-size:12px}
.teaching-week-table thead th{width:100px;padding:12px 6px;background:var(--wine);color:#fff;border:1px solid #ffffff40;text-align:center;font-size:12px;font-weight:500;line-height:1.5}
.teaching-week-table thead th:first-child{width:110px}
.teaching-week-table thead th span{display:block;color:#f4dce3;font-size:11px}
.teaching-week-table tbody .schedule-day{background:#faf2f5;color:var(--wine);font-size:13px;font-weight:600;text-align:center;vertical-align:middle;border:1px solid #e4dde1;padding:14px 8px}
.teaching-week-table tbody td{padding:6px;border:1px solid #e4e7ed;vertical-align:top;min-width:0;height:76px}
.teaching-week-table .schedule-free{background:repeating-linear-gradient(90deg,#fff 0,#fff 99px,#f1f3f6 99px,#f1f3f6 100px)}
.teaching-week-table .schedule-lesson{background:#fff}
.schedule-table-note{padding:13px 20px;font-size:12px;color:#526176;line-height:1.8;background:#fcfdfe;border-top:1px solid #e5e9ef}
.schedule-empty{padding:28px 24px;color:#526176;font-size:14px;line-height:1.8;border-top:1px solid #e5e9ef}
.teacher-exam-table{min-width:760px;font-size:13px}
.teacher-exam-table thead th{padding:13px 20px;background:var(--wine);color:#fff;font-size:12px;border:0}
.teacher-exam-table tbody td{padding:16px 20px;border-top:1px solid #e9e3e7;vertical-align:top;line-height:1.8}
.teacher-exam-table tbody tr:nth-child(even){background:#fcf8f9}
.teacher-exam-table tbody td>span{display:block;font-size:12px;color:#526176}
.teacher-exam-table tbody td strong{color:var(--wine);font-size:12px}
.teacher-exam-table tbody td p{font-size:13px;color:#243247;margin-top:3px}
@media(max-width:900px){.teacher-schedule-page .public-filters.teacher-schedule-form{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-week-filter{grid-column:auto}.teacher-schedule-page .filter-actions{grid-column:1/-1}}
@media(max-width:540px){.teacher-schedule-page .public-filters.teacher-schedule-form{grid-template-columns:minmax(0,1fr)}.teaching-grid-heading{padding:18px 16px}.teaching-grid-heading h2{font-size:16px}.schedule-week-navigation{width:100%;justify-content:space-between}.schedule-table-note{padding-inline:16px}}
@media print{.teaching-grid-panel{box-shadow:none}.schedule-week-navigation{display:none}.teaching-week-table thead th,.teacher-exam-table thead th{background:#fff;color:#000}.teaching-week-table thead th span{color:#333}}

/* Quiet timetable with accessible, top-layer lesson details. */
.teacher-schedule-page .public-filters label{min-width:0}
.curricula-page.teacher-schedule-page .public-filters input[type="text"],.curricula-page.teacher-schedule-page .public-filters select{box-sizing:border-box;width:100%;max-width:100%;height:46px;min-height:46px;border:1px solid #ccd3dd;border-radius:10px;background:#fff;color:#243247;font:inherit;font-size:14px;padding:10px 12px;box-shadow:none}
.curricula-page.teacher-schedule-page .public-filters select{padding-right:30px}
.curricula-page.teacher-schedule-page .public-filters input::placeholder{color:#626e80;opacity:1}
.curricula-page.teacher-schedule-page .public-filters input:hover,.curricula-page.teacher-schedule-page .public-filters select:hover{border-color:#a58a94}
.curricula-page.teacher-schedule-page .public-filters input:focus,.curricula-page.teacher-schedule-page .public-filters select:focus{outline:2px solid #800d2540;outline-offset:2px;border-color:var(--wine)}
.teaching-grid-panel{border-radius:12px;box-shadow:none;border-color:#dce1e7}
.teaching-week-table thead th{background:#f5f6f8;color:#344155;border-color:#dce1e7;font-weight:600}
.teaching-week-table thead th span{color:#536174}
.teaching-week-table tbody .schedule-day{background:#fafafb;color:#344155;border-color:#dce1e7;font-weight:500}
.teaching-week-table tbody td{height:64px;padding:4px;border-color:#e0e4ea}
.teaching-week-table .schedule-free{background:#fff}
.lesson-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-height:72px;height:100%;padding:9px 7px;border:0;border-radius:5px;background:#f7f3f5;color:#243247;font:inherit;text-align:center;cursor:pointer;overflow-wrap:anywhere}
.lesson-preview strong{color:var(--wine);font-size:12px;font-weight:600;line-height:1.5}
.lesson-preview-name{font-size:11px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lesson-preview-time{font-size:10px;color:#526176;font-variant-numeric:tabular-nums}
.lesson-preview:hover{background:#eee4e9}
.lesson-preview:focus-visible{outline:2px solid var(--wine);outline-offset:1px}
.schedule-detail-popover{display:none;position:fixed;inset:auto;margin:0;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;border:0;border-radius:12px;background:#fff;color:#243247;padding:18px;box-shadow:0 6px 24px #1f293735;font-family:inherit;text-align:left;box-sizing:border-box}
.schedule-detail-popover:popover-open{display:block}
.schedule-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--wine);font-size:13px}
.schedule-detail-heading button{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border:0;border-radius:6px;background:#f3f4f6;color:#344155;font-size:22px;cursor:pointer}
.schedule-detail-popover h3{font-size:14px;line-height:1.7;font-weight:600;margin:8px 0 14px}
.schedule-detail-popover dl{margin:0;font-size:12px;line-height:1.8}
.schedule-detail-popover dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:6px 0;border-top:1px solid #edf0f3}
.schedule-detail-popover dt{color:#586577}.schedule-detail-popover dd{margin:0;overflow-wrap:anywhere}
.teacher-exam-table thead th{background:#f5f6f8;color:#344155;border-bottom:1px solid #dce1e7}
.teacher-exam-table tbody tr:nth-child(even){background:#fafafb}
@media print{.lesson-preview{background:#fff}.lesson-preview-name{display:block;overflow:visible}.schedule-detail-popover{display:block!important;position:static;width:auto;max-height:none;box-shadow:none;border-radius:0;padding:6px;font-size:10px}.schedule-detail-heading button{display:none}.schedule-detail-popover h3{font-size:11px}.schedule-detail-popover dl{font-size:10px}}
