/* Roster operations use the same blue icon language and compact school forms. */
.ops-table-panel [data-table-page-size]{min-height:44px}
.ops-page{max-width:1600px;margin:auto}.ops-page textarea,.ops-dialog textarea{font:inherit;color:inherit;border:1px solid #aebfc9;border-radius:5px;padding:7px;resize:vertical;max-width:100%;width:100%;background:white}.ops-page [data-ops-message]:empty{display:none}.ops-page [data-ops-message].error{border-left:3px solid #aa3434;padding:10px;background:#fff0f0}.ops-page hr{border:0;border-top:1px solid var(--border);margin:12px 0}.ops-form-top{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:start}.ops-form-top>*{flex:0 1 auto;min-width:0}.ops-form-top select{width:auto;max-width:100%}.ops-form-top input[type=date]{width:10.5em}.ops-form-top>[data-absence-teacher]>select,.ops-form-top>[data-adhoc-picker]>select{margin-top:5px}.ops-toolbar{display:flex;justify-content:flex-start;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}.ops-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.ops-type-field{width:fit-content;max-width:100%}.ops-periods{display:flex;gap:4px;flex-wrap:wrap;padding:4px 0 6px;max-width:100%}.ops-period{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;min-width:54px;flex:0 0 auto;padding:6px;font-weight:500;min-height:74px;border-color:#d5dfe7}.ops-period small{font-size:12px;line-height:1.5;font-weight:400}.ops-period.selected{background:#087af0;border-color:#087af0;color:white}.ops-period.unavailable{background:#f1f3f5;color:#737c85;opacity:1}.ops-period.selected:hover{background:#086bd0}.ops-page .banner{padding:16px;background:#d5e9ff;border:1px solid #bcdcff}.ops-warning,.ops-pending{padding:12px 16px;border:1px solid #edcf91;border-left:4px solid #b4771d;background:#fff9e9;border-radius:5px;margin:12px 0}.ops-warning p{margin:4px 0}.ops-warning-text{color:#855711}.ops-notification-note{font-size:13px;padding:10px 12px;background:#eff3f7;border-left:3px solid #7c91a4}.ops-page button.ops-danger,.ops-dialog button.ops-danger{background:#aa3541;color:white;border-color:#aa3541}.ops-danger-text{color:#a82b35}.ops-date-heading{display:flex;justify-content:flex-end;margin:6px 0 18px}.ops-date-heading input{min-width:0}.ops-search{flex-direction:row;align-items:center}.ops-search input{min-width:200px}.ops-record-table{font-size:14px;min-width:880px;border-collapse:separate;border-spacing:0}.ops-record-table th,.ops-record-table td{border:0;border-bottom:1px solid #e9edf2;padding:7px 8px;overflow-wrap:anywhere}.ops-record-table th{background:white;color:#263d50;vertical-align:bottom;font-weight:600}.ops-record-table th button{padding:0;min-height:34px;background:transparent;border:0;font-size:14px;font-weight:600;text-align:left;display:flex;gap:8px}.ops-record-table th button span{color:#8695a4}.ops-record-table tbody tr:nth-child(odd){background:#f0f3f8}.ops-record-table .ops-filter-row th{padding-top:0;padding-bottom:9px}.ops-record-table .ops-filter-row input{font-size:12px;min-width:75px;max-width:155px;width:100%;padding:6px}.ops-record-table td input[type=checkbox]{width:18px;height:18px;cursor:pointer}.ops-record-table tr.ops-past{color:#66717d;background:#edf0f2}.ops-record-table tr.ops-past td{font-style:normal}.ops-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 0;font-size:14px}.ops-pagination>div{display:flex;align-items:center;gap:8px}.ops-pagination button{min-height:36px;font-size:14px}.ops-selection-bar{font-size:13px;padding:8px 0;border-top:1px solid #e7edf2}.ops-selection-bar button{min-height:34px;font-size:13px;padding:6px 9px}.ops-row-menu{border:0;background:transparent;padding:0;margin:0;position:relative}.ops-row-menu summary{list-style:none;min-width:36px;min-height:36px;text-align:center;font-size:22px;line-height:26px}.ops-row-menu summary::-webkit-details-marker{display:none}.ops-row-menu>div{display:grid;gap:4px;padding:8px;background:white;border:1px solid var(--border);border-radius:5px;min-width:125px}.ops-row-menu button{min-height:32px;padding:4px 8px;text-align:left;font-size:13px}.ops-row-menu span{font-size:12px}.ops-instructions>button{margin:4px 0 12px}.ops-instruction-table{min-width:690px;table-layout:fixed}.ops-instruction-table th:first-child{width:110px}.ops-instruction-table th:nth-child(2){width:30%}.ops-instruction-table th:nth-child(3){width:auto}.ops-instruction-table th small{display:block;font-size:12px;line-height:1.35;font-weight:400;margin-top:10px}.ops-instruction-table td small,.ops-instruction-table td span,.ops-duty-table td small,.ops-duty-table td span{display:block}.ops-instruction-table td{padding:7px;vertical-align:middle}.ops-instruction-table tr:nth-child(even){background:#f5f8fa}.ops-instruction-table td:first-child{text-align:center;background:#dceff1}.ops-instruction-table textarea{min-height:72px;height:100%}.ops-badge{display:inline-block;border-radius:4px;padding:3px 7px;font-size:12px;background:#e7eff8;color:#32577a;width:max-content}.ops-badge.mutual{background:#d9eeec;color:#23605b}.ops-badges{display:flex;gap:5px;flex-wrap:wrap}.ops-dialog{width:min(1250px,95vw);max-height:90vh;padding:14px;border:1px solid #aebfc9;border-radius:8px;color:#304a5c;box-shadow:0 14px 55px #1e354647;overflow:auto}.ops-dialog::backdrop{background:#1d304c88}.ops-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;position:sticky;top:-14px;background:white;z-index:2;border-bottom:1px solid var(--border);padding:0 0 12px;margin-bottom:10px}.ops-dialog-heading>button{font-size:25px;min-width:42px;border:0}.ops-dialog [data-dialog-message]:empty{display:none}.ops-dialog label{margin:10px 0}.ops-dialog .fields label{margin:0}.ops-dialog small{display:block}.ops-lesson-choices{display:flex;gap:8px;overflow:auto;padding:5px 0}.ops-lesson-choices button{min-width:145px;text-align:left}.ops-lesson-choices button[aria-pressed=true]{background:#087af0;color:white;border-color:#087af0}.ops-colleague-table{font-size:12px;min-width:100%;width:max-content}.ops-colleague-table th{font-size:12px;min-width:72px;text-align:center}.ops-colleague-table th:first-child{min-width:155px;text-align:left;position:sticky;left:0;z-index:1}.ops-colleague-table td{min-width:72px;max-width:110px;white-space:pre-line;overflow-wrap:anywhere}.ops-colleague-table th small{display:block;font-weight:400}.ops-colleague-table td.ops-free{background:#deefed;padding:0}.ops-colleague-table .ops-free button{border:0;width:100%;height:100%;background:transparent;color:#206c5b;font-size:12px;padding:8px;min-height:68px}.ops-facts{display:grid;grid-template-columns:135px 1fr;gap:12px}.ops-facts dt{color:var(--muted)}.ops-facts dd{margin:0;white-space:pre-wrap}.ops-instruction-record{border-top:1px solid var(--border);padding:12px 0}.ops-instruction-record p{white-space:pre-wrap}.ops-duty-table{min-width:650px}.ops-duty-table td{padding:12px}.ops-duty-table td.ops-text{white-space:pre-wrap;max-width:650px}.ops-duty-table td:first-child{min-width:150px}.ops-duty-table td:nth-child(2){width:110px}.ops-duty-table .ops-badge{margin-top:5px}.ops-request{padding:16px;border:1px solid var(--border);border-radius:5px;margin:12px 0}.ops-request>div:first-child{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ops-request>span{display:block;margin:6px 0}.ops-request p{white-space:pre-wrap}.ops-request p span{display:block}.ops-duplicate{display:flex;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--border);border-radius:5px;margin:8px 0;background:#f6f9fd}.ops-duplicate>div{display:flex;flex-direction:column;gap:4px}.ops-type-card{padding:12px 18px;margin:10px 0}.ops-type-card .ops-toolbar{margin:0}.ops-type-card .ops-actions{margin:0}.ops-type-card>details{margin:12px 0 0;padding:12px;background:#f8fafc}.ops-type-card.dragging{opacity:.45}.ops-drag-handle{font-size:25px;color:#8295a6;cursor:grab}.ops-type-card .ops-periods{padding-top:8px}.ops-type-list label.wide{min-width:200px}.ops-page textarea:focus-visible,.ops-dialog textarea:focus-visible{outline:3px solid #c07c00;outline-offset:3px}
@media(max-width:950px){.ops-form-top{grid-template-columns:1fr 1fr;gap:16px}.ops-period{min-width:54px}.ops-toolbar{align-items:flex-start}.ops-type-card .ops-toolbar{flex-wrap:wrap}.ops-type-card .wide{width:75%}}
@media(max-width:620px){.ops-form-top{grid-template-columns:1fr}.ops-dialog{padding:16px;width:98vw;max-height:96vh}.ops-dialog-heading{top:-16px}.ops-search{width:100%;flex-direction:column;align-items:stretch}.ops-pagination{align-items:flex-start;flex-direction:column}.ops-date-heading{justify-content:stretch}.ops-date-heading label,.ops-date-heading input{width:100%}.ops-type-card{padding:10px}.ops-type-card button{font-size:12px;padding:6px}.ops-type-card .ops-period{font-size:14px}.ops-facts{grid-template-columns:110px 1fr}.ops-dialog .ops-colleague-table{max-height:60vh}}
@media print{.ops-page button,.ops-filter-row,.ops-selection-bar,.ops-pagination,.ops-row-menu,.ops-notification-note{display:none!important}.ops-page section{border:0;padding:0}.ops-record-table{min-width:0}.ops-record-table th,.ops-record-table td{font-size:9pt;padding:5px}.ops-page .table-scroll{overflow:visible}}

/* R03: content-sized forms; keep text entry useful and touch actions reachable. */
.ops-page section,.ops-page form{padding:12px;margin:10px 0}.ops-page label{gap:3px}.ops-page input,.ops-page select,.ops-page button{padding:6px 9px}.ops-page textarea{min-height:66px}.ops-page button{min-height:36px}.ops-page .ops-period{min-height:74px}.ops-page .ops-form-top{gap:10px 14px}.ops-page .ops-form-top>[data-absence-teacher]{max-width:min(320px,100%)}.ops-page .ops-date-heading input{width:auto}
@media(max-width:800px){.ops-page button,.ops-dialog button{min-height:44px}.ops-page .ops-period{min-height:74px}.ops-page .ops-form-top>*{max-width:100%}.ops-page .ops-form-top input,.ops-page .ops-form-top select{min-width:0}.ops-page .ops-form-top label{flex:none;min-width:0}}

/* R04: one compact searchable field; options never resize the form. */
.ops-teacher-picker{position:relative;width:20em;max-width:100%}.ops-combo-control{display:flex}.ops-combo-control input{width:100%;min-width:0;border-radius:5px 0 0 5px}.ops-combo-control button{border-radius:0 5px 5px 0;border-left:0;min-width:32px}.ops-teacher-options{position:absolute;top:100%;left:0;right:0;z-index:12;max-height:260px;overflow:auto;background:white;border:1px solid #aebfc9;box-shadow:0 4px 12px #203a4d26;border-radius:5px;padding:3px}.ops-teacher-options [role=option]{display:block;width:100%;text-align:left;border:0;border-radius:3px;font-size:14px}.ops-teacher-options .highlighted{background:#e9f2fb}

.ops-instructions-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.ops-instructions-heading h3{margin:0 8px 0 0}.ops-instructions-heading label{flex-direction:row;align-items:center}.ops-instructions-heading select{max-width:20em}.ops-instructions-heading [data-own-arrangements]{order:3}
@media(max-width:800px){.ops-instructions-heading{gap:6px}.ops-instructions-heading h3{width:100%}.ops-instructions-heading label{flex-wrap:wrap}}

/* R08: one table, blank free cells and a single shared period header. */
.ops-mutual-matrix td{height:68px;padding:3px}.ops-mutual-matrix .ops-own-row>th{background:#7c243b;color:white}.ops-mutual-matrix .ops-own-row button{font-size:12px;white-space:pre-line;min-height:62px;width:100%;padding:4px;border:1px solid #b8c8d7}.ops-mutual-matrix [data-own-period][aria-pressed=true]{outline:2px solid #087af0;outline-offset:-2px;background:#eef6ff}.ops-mutual-matrix td.ops-mutual-free{padding:3px;background:white}.ops-mutual-free button{display:block;min-height:62px;width:100%;background:transparent;border:2px solid #26835e}.ops-mutual-free button[aria-pressed=true]{border-width:4px}.ops-mutual-matrix th:first-child{z-index:2}

.ops-spinner{opacity:1;display:inline-block;width:18px;height:18px;border:2px solid #cfdae4;border-top-color:#0873da;border-radius:50%;animation:ops-spin .7s linear infinite}@keyframes ops-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.ops-spinner{animation:ops-spin 1.8s linear infinite}}

.ops-known-contact{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.ops-new-contact{display:flex;flex-direction:column;gap:4px;border-left:1px solid #cbd5df;padding-left:16px;align-self:stretch;justify-content:end}.ops-new-contact>span{font-size:13px;color:var(--muted)}.ops-page .ops-add-contact{background:#7c243b;color:white;border-color:#7c243b}.ops-page .ops-add-contact:hover{background:#651b30}@media(max-width:620px){.ops-new-contact{border-left:0;border-top:1px solid #cbd5df;padding:10px 0 0}.ops-contact-workflows{flex-direction:column}}

/* R17: capacity opportunities, never presented as independent quota units. */
.ops-health{border:1px solid #cbd5e1;border-radius:8px;padding:8px;margin:8px 0}.ops-health-heading{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}.ops-health-heading h3{margin:0}.ops-health-heading strong{font-size:1.5rem}.ops-health-scroll{overflow-x:auto;max-width:100%}.ops-health-periods{display:grid;grid-template-columns:repeat(var(--ops-health-periods,17),minmax(64px,1fr));gap:4px;min-width:calc(var(--ops-health-periods,17)*68px);align-items:stretch}.ops-health-period{border:1px solid #cbd5e1;border-radius:4px;padding:3px;text-align:center}.ops-health-period header small{display:block;font-size:.7rem;line-height:1.15}.ops-health-count{display:block;font-size:.72rem;margin:3px 0}.ops-health-bars{height:calc(var(--ops-health-rows,1)*7px + 8px);display:flex;flex-direction:column-reverse;gap:3px;padding:4px 0;box-sizing:border-box;border-bottom:1px solid #8295a4}.ops-capacity-row{display:grid;grid-template-columns:1fr 1fr;gap:3px;flex:0 0 4px;min-height:4px}.ops-capacity-bar.not-eligible{background:#e4e9ed;border:1px solid #8295a4;box-sizing:border-box}.ops-capacity-bar.vacant{background:transparent}.ops-health-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:6px 0;font-size:12px}.ops-health-legend>span{display:inline-flex;gap:5px;align-items:center}.ops-health-legend i{display:inline-block;width:20px;height:5px;border-radius:2px}.ops-health-legend .eligible{background:#178249}.ops-health-legend .assigned{background:#a42c39}.ops-health-legend .not-eligible{background:#e4e9ed;border:1px solid #8295a4}.ops-health-scroll:focus-visible{outline:2px solid #087af0;outline-offset:2px}.ops-capacity-bar{display:block;height:4px;border-radius:2px}.ops-capacity-bar.eligible{background:#178249}.ops-capacity-bar.assigned{background:#a42c39}.ops-health-period.warning-low header{outline:2px solid #ac6b00}.ops-health-period.warning-very-low header,.ops-health-period.warning-critical header{outline:2px solid #a42c39}.ops-health-controls{margin-top:8px}.ops-inline-checks{display:flex;gap:8px;flex-wrap:wrap}.ops-inline-checks label{display:inline-flex;align-items:center;gap:4px}.ops-inline-checks input{width:auto}.ops-alert-list{max-height:140px;overflow:auto}.ops-alert-list p{margin:4px 0;font-size:.8rem}

.ops-custom-form{display:grid;gap:8px;max-width:820px}.ops-custom-form fieldset{border:1px solid #d1d5db;padding:6px}.ops-custom-form label{display:grid;gap:4px}.ops-custom-form .ops-inline-checks label{display:flex}.ops-custom-form textarea{width:100%;box-sizing:border-box}.ops-custom-list{margin-top:12px;width:100%;border-collapse:collapse}.ops-custom-list td,.ops-custom-list th{padding:5px;text-align:left;border-bottom:1px solid #ddd}

.ops-revision-summary{border:1px solid #a26b18;border-radius:6px;padding:8px;margin-bottom:8px}.ops-revision-summary h3,.ops-acknowledgements h3{margin:0 0 6px}.ops-revision-summary td,.ops-revision-summary th,.ops-ack-monitor td,.ops-ack-monitor th{padding:4px 8px;text-align:left}.ops-notice-list{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.ops-notice-list article{display:grid;gap:3px;border:1px solid #ccc;padding:7px;border-radius:5px}.ops-notice-list .urgent{border:2px solid #a21e32}.ops-teacher-overlay{table-layout:fixed;border-collapse:collapse}.ops-teacher-overlay th,.ops-teacher-overlay td{min-width:76px;max-width:112px;border:1px solid #d1d5db;padding:4px;vertical-align:top;font-size:12px}.ops-teacher-overlay small{display:block}.published-overlay{background:#f4f8ed}.ops-actual-relief form{display:flex;flex-wrap:wrap;gap:8px}.ops-actual-relief label{display:grid;gap:3px}.ops-actual-relief textarea{min-width:200px}.ops-notification-history{margin:10px 0}.ops-notification-history details{padding:5px 0}.ops-notification-history .ops-text{max-width:850px;overflow-wrap:anywhere}.ops-ack-monitor,.ops-actual-relief{margin:10px 0;overflow-x:auto}

.ops-recess-form{display:grid;gap:10px;max-width:680px}.ops-recess-level{display:flex;gap:16px;align-items:center;margin:6px 0}.ops-recess-level label{min-width:120px}.ops-recess-level span{font-size:12px}.ops-recess-form input[type=date]{width:auto}.ops-table-scroll{max-width:100%;overflow:auto}

/* Updated and baseline use one aligned table; no duplicated full-page grids. */
.ops-teacher-overlay {border-collapse:collapse;font-size:11px;table-layout:fixed;width:max-content;min-width:100%}
.ops-teacher-overlay th,.ops-teacher-overlay td {border:1px solid #bcc4cb;min-width:72px;max-width:105px;padding:4px;vertical-align:top;overflow-wrap:anywhere}
.ops-teacher-overlay small {display:block;font-size:10px;font-weight:normal}
.ops-teacher-overlay .timetable-day {position:sticky;left:0;background:#f3f4f6;z-index:1;min-width:95px;text-align:left}
.ops-teacher-overlay .timetable-section th {background:#e7edf3;text-align:left;padding:7px}
.ops-teacher-overlay .published-overlay {background:#fff4d6}
.ops-teacher-overlay caption {text-align:left;font-weight:bold;padding:6px 0}

/* Preserve readable labels when the school table theme supplies white header text. */
.ops-teacher-overlay .timetable-day,.ops-teacher-overlay .timetable-section th{color:#23465b}
.ops-teacher-overlay .timetable-day small{color:#405d70}

.ops-recess-level label{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}.ops-recess-level label input[type=checkbox]{width:18px;min-height:18px;height:18px;margin:0}



/* v0.7.02: STapler Module 3 document flow; one persistent card per absence entry. */
.ops-freshness{display:flex;justify-content:flex-end;align-items:center;gap:8px;font-size:12px;color:#536b7c;margin:0 0 8px}.ops-freshness button{font-size:12px;min-height:30px}.ops-school-name{margin:5px 0;color:#697f8e;font-size:17px}.ops-page .ops-relief-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:sticky;top:0;z-index:5;background:#fff;padding:7px 8px;border:1px solid #cbd5df;border-radius:5px;font-size:13px}.ops-relief-toolbar>strong{margin-right:auto}/* Compact absence cards follow the STapler Module 3 reference. */
.ops-page .ops-absence-bank{padding:14px 12px;border:1px solid #d7e1ec;border-radius:14px;margin:10px 0;background:white;box-shadow:0 2px 5px #213d5410}
.ops-absence-bank h3{margin:0 0 10px;font-size:24px;line-height:1.25;color:#20384d}.ops-absence-bank h3 small{font-weight:400;color:#607681;font-size:12px;margin-left:6px}
.ops-absence-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(166px,1fr));gap:9px;align-items:stretch;overflow:visible}
.ops-absence-card{position:relative;min-width:0;border:1px solid #dce6ef;border-radius:10px;background:white;box-shadow:0 3px 8px #203a4d12;overflow:hidden}
.ops-absence-card.unresolved{background:#f74e55;border-color:#f74e55}.ops-absence-card.partial{background:#ffd15c;border-color:#efbd37}.ops-absence-card.selected{outline:3px solid #176bd3;outline-offset:1px}
.ops-page .ops-absence-card>[data-select-absence]{display:flex;flex-direction:column;align-items:flex-start;width:100%;min-height:162px;background:transparent;text-align:left;border:0;padding:38px 10px 9px;color:#203448;border-radius:9px}
.ops-absence-card strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;min-height:38px;font-size:16px;line-height:19px;margin:0 0 6px}
.ops-absence-card button>span:not(.ops-absence-fraction){display:block;font-size:13px;line-height:1.3}.ops-absence-card .ops-absence-reason{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.ops-absence-card small{display:block;font-size:12px;line-height:1.35;margin-top:3px;color:#526e83}.ops-absence-card.unresolved small{color:#203448}
.ops-absence-card .ops-absence-fraction{position:absolute;right:7px;top:7px;float:none;min-width:58px;padding:5px 8px;border-radius:6px;background:#009b9e;color:white;text-align:center;font-size:24px;line-height:30px;font-weight:750;letter-spacing:-.5px}
.ops-absence-card.unresolved .ops-absence-fraction,.ops-absence-card.partial .ops-absence-fraction{background:#c52f3b}.ops-absence-card button>.ops-absence-state{display:block;width:max-content;max-width:100%;background:#ffbe24;color:#344250;border-radius:5px;padding:4px 6px;font-size:12px;font-weight:500;margin-top:9px}.ops-absence-card.no-relief button>.ops-absence-state{background:#f0f2f4;color:#344250}
.ops-absence-edit{position:absolute;top:5px;left:7px;display:flex;gap:1px;align-items:flex-start;max-width:calc(100% - 76px);z-index:1}.ops-page .ops-absence-edit button{border:0;border-radius:3px;background:transparent;padding:1px 3px;min-height:26px;font-size:12px;line-height:18px;color:#075aa3}.ops-page .ops-absence-edit [data-delete-entry]{color:#a8202c}.ops-page .ops-absence-edit button:hover{background:#ffffff90;text-decoration:underline}.ops-absence-card.unresolved .ops-absence-edit button{color:#203448}

.ops-relief-anchor{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;scroll-margin-top:70px;padding:6px 0}.ops-relief-anchor h3{margin:0;font-size:18px}.ops-relief-anchor>span{font-size:13px}.ops-full-day-scroll{overflow-x:auto;max-width:100%}.ops-full-day{display:grid;grid-template-columns:repeat(var(--ops-periods),minmax(67px,1fr));min-width:calc(var(--ops-periods)*67px);gap:4px}.ops-page .ops-day-period{display:flex;flex-direction:column;align-items:stretch;padding:0;text-align:left;color:#304a5c;border:1px solid #cbd5dc;border-radius:4px;background:#f1f4f6;overflow:hidden;opacity:1;min-width:0;min-height:173px;font-size:12px}.ops-day-period.affected{background:#fff;border:1px solid #859fba}.ops-day-period.selected{outline:3px solid #e6a52c;outline-offset:-3px;background:#fff8df}.ops-day-head{display:block;background:#e9eff4;border-bottom:1px solid #d2dbe3;text-align:center;padding:5px 2px;flex:0 0 58px;box-sizing:border-box}.ops-day-head>b{display:block;font-size:16px;line-height:1.25}.ops-day-head small{display:block;font-size:11px;line-height:1.25;font-weight:400}.ops-day-lesson{display:flex;flex-direction:column;gap:1px;padding:5px 3px;height:76px;overflow:hidden;box-sizing:border-box}.ops-day-lesson>span{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:16px;height:16px}.ops-day-lesson .subject{font-weight:600}.ops-day-decision{display:block;margin-top:auto;box-sizing:border-box;min-height:32px;background:#f5f7f9;padding:4px 3px;font-size:10px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ops-day-decision.resolved{background:#e5f3ee;color:#24634d}.ops-page .ops-day-period:focus-visible{outline:3px solid #176bb0;outline-offset:-3px}
.ops-page .ops-coteachers{margin:6px 0;padding:6px 8px;border:1px solid #d6e1e8;background:#f7fbfd;border-radius:5px}.ops-coteachers h4{font-size:14px;margin:0 0 5px}.ops-coteachers>div{display:flex;gap:6px;flex-wrap:wrap}.ops-coteachers p{font-size:12px;margin:2px 0}.ops-coteacher{display:grid;gap:2px;padding:4px 7px;background:#e8f4ee;border:1px solid #bad3c8;border-radius:4px;font-size:12px}.ops-coteacher small{font-size:11px}.ops-selected-relief{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 10px;font-size:13px}.ops-selected-relief>strong{margin-right:auto}.ops-page .ops-selected-relief button{min-height:35px}.ops-page .ops-selected-relief [data-no-relief]{background:#747e85;color:white;border-color:#747e85}.ops-page .ops-selected-relief [data-undo-assignment]{background:#ffce77;color:#523b1e;border-color:#e2b765}
.ops-page .ops-assign-panel{padding:9px;background:#304b5c;color:white;border-radius:5px;margin:8px 0}.ops-assign-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.ops-assign-heading h3{font-size:16px;margin:0 auto 0 0;color:white}.ops-assign-heading label{display:flex;gap:5px;font-size:12px;min-width:220px}.ops-assign-heading input{background:white;color:#304a5c;max-width:280px}.ops-assign-modes{display:flex}.ops-page .ops-assign-modes button{background:#eef3f5;color:#304a5c;border-color:#aabdc7;border-radius:0;min-height:32px;font-size:13px}.ops-assign-modes button:first-child{border-radius:4px 0 0 4px}.ops-assign-modes button:last-child{border-radius:0 4px 4px 0}.ops-page .ops-assign-modes [aria-pressed=true]{background:#1679c9;color:white;border-color:#1679c9}.ops-candidate-scroll{overflow:visible;max-width:100%}.ops-page .ops-candidate-tier{background:white;color:#304a5c;border:0;padding:7px;margin:7px 0;border-radius:4px}.ops-candidate-tier h4{font-size:13px;display:flex;align-items:baseline;justify-content:space-between;margin:0 0 6px}.ops-candidate-tier h4 small{font-size:11px;font-weight:400}
.ops-work-card{border:1px solid #c6d4dc;border-left:5px solid #359b6e;border-radius:4px;margin:6px 0;background:white;color:#304a5c;overflow:visible}.ops-work-card.ops-category-1{border-left-color:#b27a17}.ops-work-card.ops-category-2{border-left-color:#ae3447}.ops-work-card.ops-category-3{border-left-color:#7c4398}.ops-work-head{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:5px 7px}.ops-work-head>strong{font-size:15px}.ops-tier-badge{background:#e9f3f0;border-radius:4px;padding:3px 5px;font-size:11px}.ops-work-stats{font-size:11px;margin-left:auto;color:#506776}.ops-page .ops-assign-button{font-size:13px;background:#128297;color:white;border-color:#128297;border-radius:20px;min-width:74px;min-height:31px}.ops-why{position:relative;margin:0;padding:0;border:0;background:transparent;font-size:12px}.ops-why summary{border:1px solid #b7c5cd;border-radius:50%;width:17px;height:17px;text-align:center;list-style:none;line-height:16px;cursor:pointer}.ops-why summary::-webkit-details-marker{display:none}.ops-why p{position:absolute;z-index:8;top:16px;left:0;width:260px;max-width:70vw;padding:8px;background:#fffdf1;border:1px solid #cdbd83;border-radius:4px;box-shadow:0 4px 12px #203a4d26;font-size:12px;color:#304a5c;line-height:1.4}
.ops-candidate-day{display:grid;grid-template-columns:repeat(var(--ops-periods),minmax(52px,1fr));min-width:calc(var(--ops-periods)*52px);border-top:1px solid #d8e2e8}.ops-work-card{overflow-x:auto}.ops-candidate-period{display:flex;flex-direction:column;gap:1px;padding:3px;min-width:0;min-height:70px;border-right:1px solid #d9e2e8;font-size:10px;line-height:13px}.ops-candidate-period b{display:block;font-size:13px;text-align:center;color:#566e7e}.ops-candidate-period span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ops-candidate-period.target{background:#fff6d8;outline:2px solid #d8a32b;outline-offset:-2px}.ops-candidate-period.absent{background:#ffe9eb;color:#99384b}.ops-candidate-period .subject{font-weight:600}.ops-candidate-period small{font-size:9px;background:#e7f1eb;color:#266747}.ops-cell-absence{font-weight:600}.ops-page .ops-top-candidates{background:#f1f7f9;color:#304a5c;border:0;border-radius:4px;padding:6px 8px;margin:5px 0}.ops-top-candidates>strong{font-size:12px}.ops-top-candidates>div{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}.ops-page .ops-top-candidates button{font-size:12px;background:white;color:#304a5c;border:1px solid #b9cbd7;border-radius:18px;min-height:30px}.ops-combine-note{font-size:12px;line-height:1.4;background:#f1f6f9;color:#304a5c;padding:7px}.ops-candidate-tier[hidden],.ops-work-card[hidden],.ops-top-candidates[hidden],[data-candidate-name][hidden]{display:none!important}.ops-health-disclosure{margin-top:12px}.ops-health-disclosure>summary{font-size:14px;cursor:pointer}
/* Daily Absences follows the supplied table reference; detail tools stay in the row menu. */
.ops-daily-page>.page-heading{padding:0 12px}.ops-daily-page .page-heading h2{color:#087cf0;font-size:24px;font-weight:500}.ops-daily-page .ops-freshness{position:relative;z-index:1;margin:0 0 8px;justify-content:flex-start;padding-left:12px;max-width:50%}.ops-page .ops-daily-card{background:white;padding:16px 20px;border-radius:4px}.ops-daily-tabs{display:flex;gap:12px;padding:0;margin:0 0 22px}.ops-daily-tabs button{font-size:16px;padding:8px 16px;border:1px solid #c5c8cd;background:#f7f7f7;border-radius:5px;color:#304a5c}.ops-daily-tabs [aria-selected=true]{background:#087cf0;border-color:#087cf0;color:white}.ops-page .ops-daily-card .ops-table-panel{padding:0;margin:0;border:0;box-shadow:none}.ops-daily-card .ops-toolbar{justify-content:space-between;margin:12px 0 20px}.ops-daily-card .ops-toolbar>.primary{font-size:16px;min-height:36px;padding:6px 14px}.ops-daily-card .ops-search{margin-left:auto}.ops-daily-card .ops-search input{border:0;border-bottom:1px solid #abbac5;border-radius:0;min-width:190px}.ops-daily-card .ops-record-table{width:100%;min-width:1000px;font-size:14px;line-height:1.5}.ops-daily-card .ops-record-table th{padding:5px 12px 12px}.ops-daily-card .ops-record-table td{padding:16px 12px;vertical-align:top;border-bottom:0}.ops-daily-card .ops-record-table th:first-child,.ops-daily-card .ops-record-table td:first-child{width:30px;text-align:center}.ops-daily-card .ops-record-table tbody tr:nth-child(odd){background:#f0f2f8}.ops-daily-card .ops-record-table tr.ops-past{color:#304a5c}.ops-daily-card .ops-record-table .ops-row-menu>div{position:absolute;right:0;z-index:8;box-shadow:0 3px 12px #203a4d26}
@media(max-width:900px){.ops-daily-page .ops-freshness{max-width:none;padding:0;justify-content:flex-end}.ops-page .ops-daily-card{padding:12px}.ops-daily-tabs{margin-bottom:10px;gap:7px}.ops-daily-tabs button{font-size:14px}.ops-work-head .ops-work-stats{order:4;width:100%;margin-left:0}.ops-assign-heading label{min-width:0;flex:1}.ops-relief-anchor{scroll-margin-top:108px}.ops-absence-cards{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:620px){.ops-freshness{flex-wrap:wrap}.ops-assign-heading h3{width:100%}.ops-assign-heading label{width:100%;flex:none}.ops-relief-toolbar>strong{width:100%}.ops-full-day{grid-template-columns:repeat(var(--ops-periods),74px);min-width:calc(var(--ops-periods)*74px)}.ops-daily-card .ops-search{margin-left:0;width:auto}.ops-relief-anchor{scroll-margin-top:150px}}
@media print{.ops-freshness,.ops-relief-toolbar,.ops-assign-panel,.ops-health-disclosure{display:none!important}.ops-absence-cards{grid-template-columns:repeat(4,1fr)}.ops-full-day-scroll{overflow:visible}.ops-page .ops-daily-card{padding:0}}

.ops-heading-date{margin-left:auto}.ops-heading-date label{display:flex;flex-direction:row;gap:10px;align-items:center;font-size:14px;color:#617b8b;font-weight:400}.ops-heading-date input{width:240px;text-align:center;font-size:16px}.ops-heading-date .hint{display:none}.ops-daily-page .ops-freshness{max-width:none;padding-left:12px}.ops-daily-page .page-heading{padding-right:0}@media(max-width:620px){.ops-page .page-heading{flex-wrap:wrap}.ops-heading-date{margin-left:0;width:100%}.ops-heading-date input{width:auto}}
.ops-absence-range{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.ops-absence-range label{flex-direction:column;align-items:start;gap:4px}.ops-absence-range input{width:165px;min-height:44px}.ops-absence-range button{min-height:44px}.ops-absence-range [role=alert]{flex-basis:100%}.ops-absence-range [role=alert]:empty{display:none}@media(max-width:620px){.ops-absence-range label{flex:1;min-width:130px}.ops-absence-range input{width:100%;box-sizing:border-box}}
.ops-mutual-matrix td.ops-mutual-selected{box-shadow:inset 0 0 0 3px #26835e}

/* One viewport-level progress indicator; cached reads remain interactive. */
.ops-progress{position:fixed;inset:0;margin:auto;width:max-content;max-width:calc(100vw - 32px);padding:24px 32px;border:1px solid #aebfc9;border-radius:8px;background:white;color:#304a5c;box-shadow:0 14px 55px #1e354647}.ops-progress>div{display:flex;align-items:center;gap:14px}.ops-progress .ops-spinner{width:28px;height:28px;border-width:3px;flex:none}.ops-progress::backdrop{background:#1d304c66;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.ops-page [data-ops-message].ops-feedback:not(:empty),.ops-dialog [data-dialog-message].ops-feedback:not(:empty){position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:20;box-sizing:border-box;width:max-content;max-width:min(640px,calc(100vw - 32px));max-height:45vh;overflow:auto;padding:14px 18px;margin:0;border:1px solid #aebfc9;border-radius:6px;background:#fff;color:#304a5c;box-shadow:0 6px 25px #1e354633}.ops-page [data-ops-message].ops-feedback.error,.ops-dialog [data-dialog-message].ops-feedback.error{border-left:4px solid #aa3434;background:#fff0f0}.ops-feedback p{margin:8px 0}.ops-feedback button{min-height:44px}

.ops-feedback [data-dismiss-feedback]{float:right;margin:-6px -8px -6px 12px;border:0;background:transparent;color:inherit;font-size:22px;min-width:40px}

[data-absence-form]>.ops-toolbar{align-items:flex-end}
[data-absence-form]>.ops-toolbar>.ops-actions{margin:0}
[data-absence-form]>.ops-toolbar select,[data-absence-form]>.ops-toolbar button{min-height:44px}

/* Assign Relief uses reported absences and keeps allocation controls above the tiles. */
.ops-assign-page{max-width:none}
.ops-assign-page .ops-relief-toolbar{position:static;border:0;border-radius:8px;background:#e7edf4;padding:8px 10px;min-height:54px}
.ops-assign-page .ops-relief-toolbar button{min-height:38px;font-size:14px}
.ops-quick-adhoc{display:flex;align-items:center;gap:5px;flex-wrap:wrap;flex:1 1 240px;min-width:0;padding-bottom:2px;font-size:12px}
.ops-quick-adhoc-chip{display:inline-block;border:1px solid #aac9df;border-radius:18px;padding:4px 8px;background:#f0f7ff;color:#28567c;font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ops-quick-adhoc button{min-height:30px;border-radius:18px;border-color:#347fe3;color:#175fbf;padding:4px 9px;font-size:12px}
.ops-assign-page .ops-absence-view{position:absolute;top:25px;left:48px;min-height:24px;padding:1px 3px;border:0;border-radius:3px;font-size:12px;line-height:18px;color:#075aa3;background:transparent;z-index:1}
.ops-assign-page .ops-absence-edit{flex-direction:column;gap:0}.ops-assign-page .ops-absence-edit button{min-height:24px;line-height:20px;padding:0 2px}.ops-assign-page .ops-absence-card>[data-select-absence]{padding-top:51px}
@media(max-width:1100px){.ops-absence-cards{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}}
@media(max-width:600px){.ops-page .ops-absence-bank{padding:10px;border-radius:10px}.ops-absence-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ops-absence-bank h3{font-size:22px}.ops-assign-page .ops-absence-fraction{min-width:48px;font-size:21px;padding:4px 6px}.ops-assign-page .ops-absence-card strong{font-size:15px}}

.ops-assign-page .ops-quick-adhoc{flex:0 1 auto;margin-left:auto}.ops-assign-page [data-auto-allocate]{min-width:130px}.ops-assign-page .ops-allocation-hint{margin:6px 0}.ops-assign-page .ops-health{margin:8px 0;padding:10px;background:white}.ops-health-heading>span{font-size:13px}#status.ops-warning-text{color:#855711}

.ops-health .ops-health-period{margin:0;padding:3px}.ops-health-period>header{display:block;padding:4px 2px;background:#e9eff4;color:#304a5c;font-size:13px;line-height:1.3}.ops-health-period>header small{margin-top:3px}

.ops-recess-groups{display:flex;gap:8px;flex-wrap:wrap}.ops-recess-groups article{display:grid;gap:4px;border:1px solid #cbd5e1;border-radius:5px;padding:8px}.ops-recess-groups span{font-size:13px}[data-recess-demand][aria-pressed=true]{background:#e7eff8;border-color:#0873da}

/* v0.7.07: page-flow records and same-period planning controls. */
.ops-daily-page{max-width:none}.ops-record-scroll{max-height:none;overflow:visible}.ops-record-scroll .ops-record-table{width:100%;min-width:0;table-layout:auto}.ops-record-scroll .ops-record-table td{overflow-wrap:anywhere}.ops-daily-card .ops-record-table .ops-row-menu>div{z-index:15}.ops-record-scroll th:last-child,.ops-record-scroll td:last-child{min-width:48px}.ops-row-menu summary{cursor:pointer}.ops-row-menu[open] summary{background:#e8f2fb;border-radius:4px}.ops-row-menu>div{position:absolute;right:0;z-index:15;box-shadow:0 3px 12px #203a4d26}
.ops-period-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;margin:8px 0}.ops-period-actions .ops-coteachers{margin:0;min-width:0}.ops-period-actions>button,.ops-period-actions>[data-no-relief-action]>button{height:100%;min-height:48px;width:100%;border-radius:5px}.ops-page [data-clear-assignment]{background:#ffce77;color:#523b1e;border-color:#dca842}.ops-page [data-no-relief]{background:#737d86;color:white;border-color:#737d86}.ops-page [data-clear-assignment]:disabled,.ops-page [data-no-relief]:disabled{opacity:.5}.ops-assign-heading{align-items:flex-end}.ops-assign-heading h3{align-self:flex-end;margin-bottom:7px}.ops-assign-heading label{margin:0;display:flex;flex-direction:column;gap:4px;min-width:220px}.ops-assign-modes{margin-left:auto}.ops-page .ops-assign-modes [aria-pressed=true]{background:#087f87;border-color:#087f87}.ops-page .ops-candidate-tier{background:#e9f3ef}.ops-candidate-tier h4{color:#076b66}.ops-work-card{background:#e8f5e8}.ops-page .ops-assign-button{background:#1268c5;border-color:#1268c5;border-radius:4px;min-width:0;min-height:29px;width:100%;font-size:12px;padding:3px;margin-top:auto}.ops-candidate-period.target{background:#ffe77c}.ops-candidate-period .ops-assign-button{white-space:normal}.ops-assign-heading input{height:38px;box-sizing:border-box}.ops-page .ops-assign-modes button{height:38px}
.ops-mutual-matrix td.ops-mutual-combine{background:#edf4d5}.ops-mutual-combine button{display:block;min-height:62px;width:100%;white-space:pre-line;background:transparent;border:2px solid #9b791c;color:#304a5c;font-size:12px;padding:4px}.ops-mutual-combine button[aria-pressed=true]{border-width:4px}.ops-mutual-free button{font-size:12px;color:#246447}.ops-capacity-bar.unknown{background:#b1bbc4;grid-column:1/-1}.ops-audit-review{overflow-x:auto}.ops-audit-review table{width:100%;font-size:13px;border-collapse:collapse}.ops-audit-review td,.ops-audit-review th{text-align:left;vertical-align:top;padding:7px;border-bottom:1px solid #cbd5df}
@media(max-width:620px){.ops-period-actions{gap:4px;font-size:12px}.ops-period-actions button{padding:6px;font-size:12px}.ops-period-actions .ops-coteachers{padding:5px}.ops-coteachers h4{font-size:12px}.ops-coteacher{padding:3px;font-size:11px}.ops-assign-modes{margin-left:0}.ops-assign-heading label{min-width:0}.ops-daily-card .ops-record-table{font-size:12px}.ops-daily-card .ops-record-table td,.ops-daily-card .ops-record-table th{padding:6px 4px}}
.ops-daily-overlay .suspension-overlay{background:#e3e5e7}.ops-daily-overlay .published-overlay{box-shadow:inset 0 3px #e5af35}.ops-suspension-reason{font-style:italic;color:#4d5963}.ops-change-label{font-weight:600;color:#6b4d08}
.ops-adhoc-period-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.ops-adhoc-period-tools h4{margin:0 auto 0 0}.ops-contact-workflows{align-items:end}.ops-known-contact{align-items:end}.ops-known-contact>label{min-width:200px}.ops-heading-date>label{display:flex;flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap}.ops-heading-date .hint{font-size:13px}

/* Day publication and notification summaries share the selected date. */
.ops-page .page-heading{flex-wrap:wrap;gap:12px}.ops-day-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}.ops-day-actions button,.ops-notify-actions button{min-height:44px;white-space:normal}.ops-day-actions+[data-ops-title-date]{margin-left:0}.ops-notify-page{max-width:none}.ops-notify-actions{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}.ops-notify-scope{max-width:900px;color:#52677a;line-height:1.5}.ops-notify-publication{padding:10px 12px;border-left:3px solid #70a8bb;background:#edf6fa}.ops-notify-tabs{display:flex;gap:12px;margin:22px 0 16px}.ops-notify-tabs [aria-selected=true]{background:#0878dd;border-color:#0878dd;color:white}.ops-notify-search{display:block;max-width:460px}.ops-notify-search input{display:block;width:100%;box-sizing:border-box;margin-top:5px;min-height:44px}.ops-notify-card{border:1px solid #d4e1e8;border-radius:8px;background:white;margin:22px 0;overflow:hidden;box-shadow:0 4px 16px #263e5010}.ops-notify-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:#f6f8fa;border-bottom:1px solid #d4e1e8}.ops-notify-card h3{margin:0;font-size:18px;font-weight:500}.ops-notify-card button{border-radius:24px;min-height:44px;padding:8px 18px;color:#18798d;border-color:#76bdd3;background:white}.ops-notify-card table{width:100%;border-collapse:collapse;min-width:650px}.ops-notify-card td,.ops-notify-card th{padding:14px 12px;text-align:left;vertical-align:top}.ops-notify-card tbody tr:nth-child(odd){background:#f1f4f8}.ops-notify-card .table-scroll{padding:12px 20px 20px}.ops-notify-card small{display:block;color:#5d6b78;margin-top:4px}.ops-mutual-matrix td.ops-mutual-selected button{white-space:pre-line;line-height:1.25;font-weight:600;min-height:72px}.ops-mutual-matrix td.ops-mutual-selected{background:#d8f0dc}
@media(max-width:800px){.ops-day-actions{margin-left:0;width:100%}.ops-heading-date{margin-left:0}.ops-notify-actions{flex-direction:column;align-items:stretch}.ops-notify-card>header{padding:12px}.ops-notify-card .table-scroll{padding:8px}.ops-notify-tabs button{flex:1}.ops-day-actions>button,.ops-day-actions>[data-export-slot]{flex:1}.ops-day-actions [data-export-slot] button{width:100%}}
@media print{.ops-day-actions,.ops-notify-actions,.ops-notify-tabs,.ops-notify-search,.ops-notify-card button{display:none!important}.ops-notify-card{break-inside:avoid;box-shadow:none}}
.ops-notify-card>header,.ops-notify-card h3{color:#304a5c}.ops-notify-card th{background:white;color:#203a4c;border:0}.ops-notify-card td{border:0;border-bottom:1px solid #e2e8ee}

/* Quick own-absence entry reuses the report form and its save/retry owner. */



.ops-quick-report>.ops-actions{flex-wrap:wrap}.ops-quick-report>.ops-actions>button{white-space:normal}.ops-quick-report .banner{font-size:13px}.ops-report-page .ops-form-top{display:grid;grid-template-columns:minmax(0,35rem) repeat(2,minmax(0,10.5em))}.ops-report-page .ops-form-top>[data-absence-teacher]{max-width:100%;width:100%}.ops-report-page .ops-form-top>label:last-child{grid-column:1/-1;width:max-content}.ops-report-page [data-absence-teacher] input{max-width:100%}@media(max-width:620px){.ops-report-page .ops-form-top{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-report-page [data-absence-teacher]{grid-column:1/-1}.ops-quick-report input,.ops-quick-report select{min-width:0;width:100%}.ops-quick-report .ops-form-top input[type=date]{width:100%}.ops-quick-report>.ops-actions{flex-direction:column;align-items:stretch}}

/* Assign Relief: the offline Stapler v4.3 type scale and state colours.
   White schedule cells separate lessons from the green candidate headings. */
.ops-assign-page{font-family:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;color:#273c4a}
.ops-assign-page .ops-relief-anchor>span{font-size:18px;line-height:1.35}
.ops-assign-page .ops-day-period{background:#fff;color:#273c4a}
.ops-assign-page .ops-day-head{flex-basis:66px;background:#f8f9fa}
.ops-assign-page .ops-day-head>b{font-size:18px;line-height:20px;margin-bottom:3px}
.ops-assign-page .ops-day-head small{font-size:11px;line-height:14px}
.ops-assign-page .ops-day-period.affected .ops-day-head{background:#e64959;color:#29131a}
.ops-assign-page .ops-day-period.selected{outline-color:#c48c00}
.ops-assign-page .ops-day-period.selected .ops-day-head,.ops-assign-page .ops-day-period.selected .ops-day-lesson{background:#ffc115;color:#222233}
.ops-assign-page .ops-day-lesson{height:76px;font-size:12px;line-height:16px}
.ops-assign-page .ops-day-lesson .subject{font-size:14px;font-weight:700}
.ops-assign-page .ops-day-decision{font-size:11px;line-height:14px;color:#3b4d5b}
.ops-assign-page .ops-day-decision.resolved{background:#25cec8;color:#07323b}
.ops-assign-page .ops-period-actions>button,.ops-assign-page .ops-period-actions>[data-no-relief-action]>button{font-size:18px}
.ops-assign-page [data-clear-assignment]{background:#ffb229;color:#493207}
.ops-assign-page [data-no-relief]{background:#69737b;border-color:#69737b;color:#fff}
.ops-assign-page .ops-assign-panel{background:#2c3a4d;color:#fff}
.ops-assign-page .ops-assign-panel .ops-candidate-scroll>.hint{color:#e1e9f2}
.ops-assign-page .ops-assign-modes button{font-size:13.5px}
.ops-assign-page .ops-assign-modes [aria-pressed=true]{background:#25cec8;border-color:#25cec8;color:#07323b;font-weight:700}
.ops-assign-page .ops-candidate-tier{background:#fff;color:#273c4a}
.ops-assign-page .ops-candidate-tier h4{font-size:14px;color:#273c4a}
.ops-assign-page .ops-work-card{background:#e9ffec;color:#273c4a}
.ops-assign-page .ops-work-head>strong{font-size:16px}
.ops-assign-page .ops-work-stats{font-size:12px;color:#526976;line-height:1.4}
.ops-assign-page .ops-tier-badge{font-size:12px;background:#25cec8;color:#07323b}
.ops-assign-page .ops-candidate-day{grid-template-columns:repeat(var(--ops-periods),minmax(64px,1fr));min-width:calc(var(--ops-periods)*64px)}
.ops-assign-page .ops-candidate-period{background:#fff;color:#273c4a;line-height:14px}
.ops-assign-page .ops-candidate-period b{font-size:14px;color:#52606b}
.ops-assign-page .ops-candidate-period .subject{font-size:11px;font-weight:700}
.ops-assign-page .ops-candidate-period.target{background:#ffc115;outline-color:#c48c00}
.ops-assign-page .ops-candidate-period.absent{background:#fff1f1;color:#7e2734}
.ops-assign-page .ops-candidate-period small{font-size:10px;background:#ffb51b;color:#493207}
.ops-assign-page .ops-assign-button{font-size:15px;line-height:1.25;min-height:36px;background:#2469c5;border-color:#2469c5}
.ops-assign-page .ops-assign-button:hover{background:#1f57a4}
@media(max-width:800px){.ops-assign-page .ops-assign-button{min-height:44px}.ops-assign-page .ops-period-actions{grid-template-columns:1fr 1fr}.ops-assign-page .ops-period-actions .ops-coteachers{grid-column:1/-1}}

.ops-instructions [data-instructions-na][aria-pressed=true]{background:#e7eff8;border-color:#0873da;box-shadow:inset 0 0 0 1px #0873da}.ops-instructions [data-instructions-na-note]{max-width:100%;width:auto;white-space:normal}
.ops-page.ops-report-page [data-ops-message].ops-feedback:not(:empty){position:static;transform:none;width:auto;max-width:none;max-height:none;margin:14px 0;box-shadow:none}
.ops-page.ops-report-page [data-ops-message][data-state=success]:not(:empty){background:#e3f3e8;color:#185b32;border:1px solid #8fc6a0;border-left:4px solid #247d43;font-weight:600}
.ops-page.ops-report-page [data-ops-message][data-state=pending]:not(:empty){background:#edf2f7;color:#304a5c;border-left:4px solid #6d8396}

/* Relief tools follow the offline Stapler summary layout, scoped to Assign Relief. */
.ops-assign-page .ops-day-actions button,.ops-assign-page .ops-freshness button{height:40px;min-height:40px;padding:6px 12px;font-size:14px;line-height:1.2;white-space:nowrap}
.ops-assign-page .ops-day-actions [data-export-slot],.ops-relief-tools{display:flex;gap:8px;align-items:center}
.ops-assign-page .ops-freshness{flex-wrap:wrap;gap:8px}
.ops-assign-page [data-ops-checked]{margin-right:auto}
.ops-relief-summary{width:min(1100px,95vw)}
.ops-summary-context{color:#536b7c;line-height:1.5}
.ops-summary-scroll{max-height:60vh;overflow:auto;border:1px solid #d7e1ec;border-radius:6px}
.ops-summary-table{width:100%;min-width:680px;font-size:15px}
.ops-summary-table th,.ops-summary-table td{padding:12px;text-align:left;vertical-align:top}
.ops-summary-table thead th{position:sticky;top:0;background:#f1f5f9;z-index:1;overflow-wrap:normal;word-break:normal}
.ops-summary-table tbody th{background:inherit;font-weight:600}
@media(max-width:800px){
 .ops-assign-page .ops-day-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .ops-assign-page .ops-day-actions [data-export-slot]{display:contents}
 .ops-assign-page .ops-day-actions button,.ops-assign-page .ops-freshness button{height:44px;min-height:44px;padding:6px 8px;white-space:normal}
 .ops-assign-page .ops-freshness{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .ops-assign-page [data-ops-checked]{grid-column:1/-1;justify-self:end;margin:0}
 .ops-relief-tools{display:contents}
}
@media(pointer:coarse){.ops-assign-page .ops-day-actions button,.ops-assign-page .ops-freshness button{height:44px;min-height:44px}}
@media print{.ops-assign-page .ops-freshness{display:none}}

.ops-draft-status{display:flex;align-items:center;gap:.5rem;min-height:2rem;font-size:.875rem}.ops-draft-status .ops-spinner{width:1rem;height:1rem}.ops-day-period [data-draft-cell]{font-size:.75rem;font-weight:600}

/* Read feedback stays inline; published cards and navigation remain usable. */
.ops-read-status{display:inline-flex;align-items:center;gap:.5rem;margin-left:.65rem;vertical-align:middle}.ops-read-status .ops-spinner{width:1rem;height:1rem;flex:none}.ops-read-error{margin-left:.65rem;color:#8d2734}.ops-notify-page [data-ops-checked]{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.ops-notify-page [data-retry-records]{min-height:32px}
@media(prefers-reduced-motion:reduce){.ops-read-status .ops-spinner{animation:none}}

/* Status is text as well as colour; pending is not a disabled action. */
.ops-notify-recipient-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.ops-notify-ack{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border:1px solid #9ca8b3;font-size:13px;font-weight:600;white-space:nowrap}.ops-notify-ack.acknowledged{background:#146b65;color:#fff;border-color:#146b65;border-radius:999px}.ops-notify-ack.pending{background:#eef0f2;color:#526170;border-radius:4px}@media(max-width:550px){.ops-notify-card>header{align-items:flex-start;flex-wrap:wrap}.ops-notify-recipient-actions{justify-content:flex-start}}
.ops-notify-delivery{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;padding:12px 20px;background:#f8fafb;border-bottom:1px solid #e2e8ee;font-size:14px;color:#304a5c}.ops-notify-delivery span{color:#52677a;overflow-wrap:anywhere}.ops-notify-delivery.failed strong{color:#8d2734}.ops-notify-delivery.uncertain strong,.ops-notify-delivery.blocked strong{color:#7b5319}.ops-notify-detail{padding:0 20px 12px}[data-notify-corrections]{margin-top:28px}@media(max-width:800px){.ops-notify-delivery{padding:10px 12px}}

.ops-timetable-notice{border-top:1px solid var(--border);padding:16px 0}.ops-timetable-notice h4{font-size:17px;margin:0 0 10px}.ops-timetable-notice h5{font-size:15px;margin:12px 0 5px}.ops-timetable-notice .ops-text{margin-bottom:12px}

/* Local planning remains usable while an explicit online save is in flight. */
.ops-manual-protection{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid #a6bdcd;border-radius:4px;color:#28516e;background:#edf4f8;font-size:12px}
.ops-save-receipt{margin:8px 0;padding:8px 10px;border:1px solid #cbd8e1;border-radius:6px;background:#f6f9fb}.ops-save-receipt summary{cursor:pointer;overflow-wrap:anywhere}.ops-save-receipt th,.ops-save-receipt td{padding:8px;text-align:left;border-bottom:1px solid #d9e3e9;font-size:13px}
[data-conflict-cell] button[aria-pressed=true]{background:#e4f0fb;border-color:#1767a6;color:#174e78}[data-conflict-cell] th,[data-conflict-cell] td{padding:8px;vertical-align:top}[data-conflict-cell] button{min-height:44px;margin:2px}
@media(max-width:600px){.ops-day-actions{width:100%;gap:6px}.ops-day-actions>button{flex:1 1 150px;white-space:normal}.ops-save-receipt{font-size:12px}}

.ops-teacher-daily-group{margin-top:22px}.ops-teacher-daily-group .ops-record-table{min-width:680px}.ops-daily-tabs [data-daily-tab]{min-height:44px}.ops-teacher-daily-group h3{margin-bottom:10px}

/* Daily Notify: one teacher-level summary, independent of the list filters. */
.ops-notify-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:24px;align-items:start}.ops-notify-controls{min-width:0}.ops-ack-dashboard{padding:22px;border:1px solid #cbdce5;border-radius:12px;background:#f8fbfc;color:#304a5c}.ops-ack-dashboard h3{margin:0;font-size:19px;line-height:1.35}.ops-ack-date{margin:6px 0 20px;font-size:13px;color:#52677a}.ops-ack-total{display:flex;align-items:center;gap:12px;margin-bottom:18px}.ops-ack-total strong{font-size:36px;line-height:1}.ops-ack-total span{font-size:14px}.ops-ack-counts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ops-ack-metric{display:flex;flex-direction:column;gap:3px;padding:12px 16px;border:1px solid transparent}.ops-ack-metric strong{font-size:26px;line-height:1.2}.ops-ack-metric span{font-size:13px;font-weight:600}.ops-ack-metric.acknowledged{border-radius:24px;background:#146b65;color:#fff}.ops-ack-metric.pending{border-radius:6px;background:#eef0f2;border-color:#cbd2d8;color:#526170}.ops-ack-progress-label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:20px 0 8px;font-size:14px}.ops-ack-dashboard progress{display:block;appearance:none;width:100%;height:10px;border:0;border-radius:8px;background:#dce7eb;accent-color:#146b65;overflow:hidden}.ops-ack-dashboard progress::-webkit-progress-bar{background:#dce7eb;border-radius:8px}.ops-ack-dashboard progress::-webkit-progress-value{background:#146b65;border-radius:8px}.ops-ack-dashboard progress::-moz-progress-bar{background:#146b65;border-radius:8px}.ops-ack-explanation{margin:12px 0 0;font-size:13px;line-height:1.5;color:#52677a}@media(max-width:1000px){.ops-notify-overview{grid-template-columns:minmax(0,1fr);gap:18px}.ops-ack-dashboard{max-width:none}}@media(max-width:480px){.ops-ack-dashboard{padding:18px}.ops-ack-metric{padding:12px}.ops-ack-total strong{font-size:32px}}

/* Own arrangements keeps period selection and colleague actions usable on narrow screens. */
.ops-arrangements-dialog{width:min(1440px,95vw);max-height:calc(100dvh - 24px)}
.ops-mutual-scroll{max-height:52dvh;overflow:auto;border:1px solid #c5d2de;border-radius:5px}.ops-mutual-matrix{border-collapse:separate;border-spacing:0}.ops-mutual-matrix thead th{position:sticky;top:0;height:64px;box-sizing:border-box;z-index:4}.ops-mutual-matrix thead th:first-child{z-index:6}.ops-mutual-matrix .ops-own-row>th,.ops-mutual-matrix .ops-own-row>td{position:sticky;top:64px;z-index:3;background:#f7edf0}.ops-mutual-matrix .ops-own-row>th{left:0;z-index:5;background:#7c243b}.ops-mutual-matrix th:first-child{min-width:150px;width:150px;max-width:150px;white-space:normal}.ops-mutual-matrix td{min-width:88px;max-width:120px}.ops-mutual-matrix .ops-mutual-active{box-shadow:inset 2px 0 #087af0,inset -2px 0 #087af0}.ops-mutual-matrix button{min-height:62px}.ops-mutual-matrix button:disabled{cursor:wait;opacity:.6}.ops-mutual-matrix td>span{display:block;min-height:40px}.ops-mutual-matrix td>span[hidden],.ops-mutual-matrix button[hidden]{display:none}
.ops-arrangement-submit{display:flex;align-items:center;gap:12px;position:sticky;bottom:-14px;background:#fff;padding:12px 0;border-top:1px solid #dce3ed;z-index:2}.ops-arrangements-dialog [data-dialog-message].ops-feedback:not(:empty){position:static;transform:none;width:auto;margin-top:8px;max-width:none;max-height:none;box-shadow:none}
.ops-inline-spinner,.ops-loading-inline:before{display:inline-block;content:"";width:14px;height:14px;border:2px solid #c3d4e9;border-top-color:#2159a6;border-radius:50%;margin-right:8px;vertical-align:middle;animation:ops-inline-spin .8s linear infinite}@keyframes ops-inline-spin{to{transform:rotate(360deg)}}
@media(max-width:620px){.ops-arrangements-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px}.ops-arrangements-dialog .ops-dialog-heading{top:-12px}.ops-arrangements-dialog input{font-size:16px}.ops-mutual-matrix th:first-child{min-width:120px;width:120px;max-width:120px}.ops-arrangement-submit{bottom:-12px;flex-wrap:wrap}.ops-arrangement-submit button{width:100%}}
@media(prefers-reduced-motion:reduce){.ops-inline-spinner,.ops-loading-inline:before{animation:none}}

.ops-instruction-review{padding:12px;margin:12px 0;border:1px solid #b8c7da;background:#f4f8fd}.ops-instruction-review pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;background:#fff;padding:8px}.ops-instruction-review textarea{width:100%;box-sizing:border-box}

.ops-custom-toggle{display:flex;align-items:center;gap:6px;min-height:36px;padding:2px 6px;cursor:pointer}.ops-custom-toggle input{width:18px;height:18px;flex-shrink:0}.ops-custom-list .ops-text{min-width:160px;overflow-wrap:anywhere}

/* Timetable reads stay beside the action; the rest of the report remains usable. */
.ops-timetable-status{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%;padding:8px 12px;border:1px solid var(--status-pending-border);border-radius:5px;background:var(--status-pending-fill);color:var(--status-pending-text);font-size:14px}
.ops-timetable-status>span:not(.ops-spinner){flex:1;min-width:0}.ops-timetable-status[hidden]{display:none}.ops-timetable-status .ops-spinner{flex:none;width:16px;height:16px}.ops-timetable-status.error{background:#fff0f0;border-color:#c76565;color:#8d2734}.ops-timetable-status button{min-height:44px}
.ops-status-pending,.ops-read-status,.ops-progress{background:var(--status-pending-fill);color:var(--status-pending-text);border:1px solid var(--status-pending-border);border-radius:5px}
.ops-status-pending,.ops-read-status{padding:8px 12px}.ops-progress .ops-spinner,.ops-read-status .ops-spinner,.ops-timetable-status .ops-spinner,.ops-status-pending .ops-spinner{border-top-color:currentColor}
[data-settings-progress]:not([hidden]){padding:10px 14px;background:var(--status-pending-fill);color:var(--status-pending-text);border:1px solid var(--status-pending-border);border-radius:5px}
@media(prefers-reduced-motion:reduce){.ops-timetable-status .ops-spinner{animation:none}}

/* Retained manual choices stay visible when their online cell changed. */
.ops-day-period[data-conflict="true"]{outline:2px solid #a35e00;outline-offset:-2px}.ops-day-period[data-conflict="true"] [data-draft-cell]{background:#fff3bd;color:#654500;padding:2px 4px}

.ops-allocation-run{margin:12px 0;border:1px solid var(--status-pending-border,#c9ac58);border-radius:6px;background:var(--status-pending-fill,#fff8df);padding:12px}.ops-allocation-run header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ops-allocation-run header>div{flex:1;min-width:180px}.ops-allocation-run small{display:block;margin-top:4px}.ops-allocation-run button{min-height:44px}.ops-allocation-run [data-run-log]{max-height:220px;overflow:auto;line-height:1.6;padding-left:24px}.ops-allocation-run [data-run-feedback]{margin-bottom:0}.ops-allocation-run [data-run-action="cancel"]{color:#93341e;border-color:#b67b63}.ops-allocation-run [hidden]{display:none}

/* Immediate full-day absence action; matches the existing blue action palette. */

.ops-peer-pending{display:block;padding:5px 4px;background:#fff1cd;color:#684900;font-size:11px;line-height:1.3;white-space:normal}.ops-selected-relief .ops-peer-pending{font-size:13px}

.ops-peer-approved{display:block;padding:5px 4px;background:#e3f4e8;color:#17633b;font-size:11px;line-height:1.3;white-space:normal}.ops-selected-relief .ops-peer-approved{font-size:13px}
.ops-intake{margin:12px 0;padding:12px;border:1px solid #b8c5bd;border-radius:8px;background:#fafcfb;color:#244d33}.ops-intake-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.ops-intake-actions{display:flex;flex-wrap:wrap;gap:8px}.ops-intake details{padding:9px 0;border-top:1px solid #cce1d2;margin-top:8px}.ops-intake summary{cursor:pointer;overflow-wrap:anywhere}.ops-intake-state{display:block;margin:4px 0;font-size:13px}.ops-intake p{margin:6px 0;font-size:13px;overflow-wrap:anywhere}.ops-intake [data-intake-receipt]{padding:10px 12px;border:1px solid #cce1d2;border-radius:6px;background:#f4faf6}.ops-intake [data-intake-state="attention"]{border-color:#d8aa42;background:#fff8e5;color:#6d4800}.ops-intake .ops-intake-attention{display:inline-block;margin:12px 0 2px;padding:5px 9px;border:1px solid #d8aa42;border-radius:5px;background:#fff1c2;color:#6d4800;font-weight:650}.ops-intake-history>summary{font-weight:650;color:#3c4d44}.ops-intake .ops-intake-hint{margin-top:10px;color:#53635a}.ops-intake [data-dismiss-intake],.ops-intake [data-restore-intake]{margin-top:8px}.ops-intake summary:focus-visible{outline:3px solid var(--blue,#2563eb);outline-offset:3px}.ops-request:focus{outline:3px solid var(--blue,#2563eb);outline-offset:4px}

/* Source and publication are separate facts; source labels also cover protected empty choices. */
.ops-assignment-source{display:block;padding:4px;background:#e9eff6;color:#294760;font-size:11px;line-height:1.3;white-space:normal}
.ops-assignment-source[data-assignment-source="SMC"]{background:#f1e8fb;color:#654382}
.ops-assignment-source[data-assignment-source="Source not recorded"]{background:#f0f1f2;color:#535a60}
.ops-assignment-source.ops-peer-approved{background:#e3f4e8;color:#17633b}
.ops-selected-relief .ops-assignment-source{font-size:13px}.ops-assignment-provenance{font-size:12px;color:#526071;overflow-wrap:anywhere}

/* Unconfirmed work stays recoverable while its floating message is closed. */
.ops-page [data-ops-message].ops-feedback[data-state=pending]:not(:empty),.ops-dialog [data-dialog-message].ops-feedback[data-state=pending]:not(:empty){background:#fff9e9;border-left:4px solid #b4771d;padding-right:58px}
.ops-feedback [data-dismiss-pending]{position:absolute;top:6px;right:6px;min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;font-size:24px}
[data-ops-pending]:not(:empty){padding:8px 12px;border:1px solid #edcf91;background:#fff9e9;border-radius:5px}

/* Keep saving on the following toolbar row; publication stays an explicit action. */
.ops-assign-page .ops-day-actions [data-notify-mode=all]{max-width:245px;height:auto;min-height:40px;white-space:normal}.ops-assign-page .ops-freshness [data-save-online]{margin-left:0}.ops-assign-page .ops-day-actions{width:100%;justify-content:flex-end;margin-left:0}.ops-assign-page .ops-freshness{clear:both;margin-top:8px}
