:root{font-family:"Segoe UI",Arial,sans-serif;color:#1b293b;background:#fafbfd;font-size:14px;--line:#c8d0dc;--blue:#216bbf;--muted:#64748b}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:1px solid #bbc5d2;border-radius:5px;padding:8px 15px;background:linear-gradient(#fff,#f0f3f7);color:#182b43;cursor:pointer;min-height:35px;white-space:nowrap}button:hover:not(:disabled){border-color:#216bbf;background:#edf5ff}button:disabled{opacity:.5;cursor:default}.primary,button.active{background:#216bbf;color:white;border-color:#216bbf}.primary:hover:not(:disabled),button.active:hover{background:#18589e}.danger{color:#b4232d}.quiet{background:#fff}input,select{padding:8px 10px;border:1px solid #aebccd;border-radius:4px;background:#fff;color:inherit;max-width:100%;min-height:36px}input:focus,select:focus,button:focus-visible{outline:2px solid #216bbf;outline-offset:2px}h1{font-size:27px;font-weight:600;margin:0}h2{font-size:20px;font-weight:600;margin:0 0 15px}p{line-height:1.55}a{color:#216bbf}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:21px}.shell{padding:21px 23px 0;max-width:2000px;margin:auto}.subtitle{color:var(--muted);margin-top:5px}.top-actions,.row,.tabs,.toolbar,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row{margin-bottom:12px}.row>label{font-weight:600;min-width:125px}.row select.plan{min-width:310px;max-width:420px}.row select.year{min-width:160px}.spacer{flex:1}.tag{background:#e8eef6;color:#375270;font-size:12px;padding:5px 10px;border-radius:4px}.tag.published{background:#e2f3e6;color:#226438}.tag.draft{background:#fff0ce;color:#795513}.tabs{margin:18px 0 12px}.toolbar{margin-bottom:12px}.note{color:var(--muted);font-size:13px;line-height:1.6}.legend{display:flex;flex-wrap:wrap;gap:15px;margin:10px 0;font-size:12px;color:#536276}.legend span:before{content:"";display:inline-block;width:11px;height:11px;margin-right:6px;border:1px solid #a8b3c2;background:var(--swatch)}.grid-wrap{border:1px solid #bbc6d4;overflow:auto;max-height:calc(100vh - 335px);min-height:270px;background:#fff}.grid{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1350px;font-size:13px}.grid th,.grid td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 7px;line-height:1.3;overflow-wrap:anywhere}.grid thead th{position:sticky;top:0;z-index:3;background:#edf1f7;height:28px;font-weight:600;text-align:left}.grid thead tr:nth-child(2) th{top:31px;font-size:12px;height:27px;background:#f6f8fb}.grid .time{position:sticky;left:0;z-index:2;background:#f4f7fb;text-align:center;font-weight:600;width:112px}.grid .mins{position:sticky;left:112px;z-index:2;width:39px;text-align:center;background:#f7f9fc}.grid thead .time,.grid thead .mins{z-index:5;background:#ebf0f7}.grid .time small{display:block;font-size:12px;font-weight:400;margin-top:4px;white-space:nowrap}.grid tbody td{height:28px;cursor:default}.grid tbody tr.lesson-end td{border-bottom:2px solid #aebdce}.grid td.teacher{font-weight:600}.grid .selected{box-shadow:inset 0 2px #216bbf,inset 0 -2px #216bbf}.grid .selected.first{box-shadow:inset 2px 0 #216bbf,inset 0 2px #216bbf,inset 0 -2px #216bbf}.grid .selected.last{box-shadow:inset -2px 0 #216bbf,inset 0 2px #216bbf,inset 0 -2px #216bbf}.grid .closed,.grid .outside{background:#ebeef2!important;color:#636d79;text-align:center}.grid .missing,.grid .duplicate{background:#ffe0e1!important}.grid .incomplete{background:#ffefc5!important}.day-0{background:#e5eefa!important}.day-1{background:#fceada!important}.day-2{background:#e6f3e2!important}.day-3{background:#f4e6f6!important}.day-4{background:#fcf6d9!important}.data-table{border-collapse:collapse;width:100%;min-width:780px;background:#fff}.data-table th,.data-table td{border:1px solid var(--line);padding:11px 13px;text-align:left;vertical-align:top}.data-table th{background:#e8eef6;position:sticky;top:0;z-index:1;font-weight:600}.data-table tr:nth-child(even){background:#f6f9fc}.data-table tr.pick{outline:2px solid #216bbf;outline-offset:-2px}.data-table .good{background:#e1f4e6}.data-table .bad{background:#ffe8e2}.number{text-align:right!important;font-variant-numeric:tabular-nums}.empty{padding:45px 25px;text-align:center;color:var(--muted)}.summary{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.summary>div{background:white;border:1px solid #d2dce7;padding:12px 18px;min-width:155px;border-radius:5px}.summary strong{display:block;font-size:23px;font-weight:600;margin-top:4px}.summary span{font-size:12px;color:var(--muted)}footer{padding:13px 0;display:flex;align-items:center;gap:12px;font-size:12px;color:#60718a}footer .status{flex:1}.status.error{color:#b4232d;font-weight:600}.account{font-size:12px;color:#64748b}.login-card{width:min(440px,calc(100% - 32px));margin:9vh auto 0;background:white;border:1px solid #d4deea;border-radius:8px;padding:32px;box-shadow:0 8px 30px #203e6b0a}.login-card h1{margin-bottom:8px}.login-card label{display:block;margin-top:18px}.login-card input{display:block;width:100%;margin-top:7px}.login-card .actions{margin-top:23px}.login-card .actions button{flex:1}.backlink{display:block;text-align:center;margin-top:18px;font-size:13px}.error-message{color:#aa2430;background:#fff0f1;padding:10px;border-radius:4px;line-height:1.5;margin-top:14px}.loading{padding:60px;text-align:center;color:#60718a}dialog{border:1px solid #b6c3d3;border-radius:8px;padding:0;width:570px;max-width:calc(100vw - 24px);max-height:92vh;box-shadow:0 18px 70px #0c274c38;color:inherit}dialog::backdrop{background:#17325166}.dialog-body{padding:24px}.dialog-body label{display:block;font-weight:600;margin-top:16px}.dialog-body input:not([type=checkbox]),.dialog-body select{display:block;width:100%;margin-top:7px}.dialog-body .actions{justify-content:flex-end;margin-top:24px}.dialog-body .actions button{min-width:105px}.dialog-body .note{margin:0 0 12px}.check{display:flex!important;gap:10px;align-items:center}.check input{min-height:auto}.readonly{background:#f0f4fa;border:1px solid #c8d8e9;padding:10px 14px;margin-bottom:13px;border-radius:4px;color:#405b7a}.period{font-size:13px;color:#53657b}.badge-count{background:#fff;border:1px solid #c6d2e0;border-radius:10px;font-size:11px;padding:1px 5px;margin-left:5px;color:#324d6d}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1c3554;color:white;border-radius:6px;padding:12px 20px;max-width:90%;z-index:20;display:none;box-shadow:0 4px 25px #152e4b33}.staff-shell{max-width:1100px;padding-bottom:30px}.staff-shell .week-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.day-card{background:#fff;border:1px solid #cfdae7;border-radius:6px;overflow:hidden}.day-card h3{font-size:14px;padding:13px;margin:0;background:#e9f1fc}.duty{padding:12px;border-bottom:1px solid #e4eaf1;line-height:1.6}.duty strong{display:block}.staff-shell .row>label{min-width:auto}.staff-shell header a{text-decoration:none}.intro{margin:15px 0 25px;color:#65748a}.change-title{padding:10px 0;font-weight:600}.grid button{padding:3px 6px;min-height:24px;font-size:12px}.hidden{display:none!important}@media(max-width:800px){.shell{padding:16px 12px 0}header{align-items:flex-start;flex-wrap:wrap;gap:14px}.top-actions{gap:6px}.top-actions button{padding:7px 10px}.row>label{min-width:95px}.row select.plan{min-width:0;flex:1;max-width:none}.tabs{gap:5px}.tabs button{padding:8px 11px}.grid-wrap{max-height:65vh}.staff-shell .week-grid{grid-template-columns:1fr}.staff-shell header{align-items:center}.summary>div{min-width:135px;flex:1}.grid-wrap{min-height:250px}.account{display:none}.dialog-body{padding:20px}}@media print{header,.tabs,.toolbar,footer,.legend{display:none}.grid-wrap{max-height:none;border:0}.shell{padding:0}.grid{min-width:100%;font-size:8px}}
/* Public staff view: clear hierarchy, compact shifts and mobile day selection. */
.staff-shell{max-width:1440px;padding:28px 32px 20px;color:#20354b}.staff-header{margin:0 0 32px}.school-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#20354b}.school-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#203e53;color:white;font-size:17px;font-weight:700}.school-brand strong{display:block;font-size:22px;font-weight:650}.school-brand small{display:block;margin-top:3px;font-size:12px;color:#6b7d8c}.admin-link{padding:10px 14px;border:1px solid #d9e2e9;border-radius:8px;background:white;font-size:12px;color:#4a6174}.admin-link:hover{background:#edf3f7}.staff-hero{border-radius:20px;background:#eaf2f3;padding:30px 32px;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px;border:1px solid #dce8e8}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#467475;margin-bottom:12px}.staff-hero h1{font-size:30px;letter-spacing:-.7px;font-weight:650}.staff-hero p{color:#57717e;margin:10px 0 0;font-size:14px}.week-total{text-align:right}.week-total strong{display:block;font-size:36px;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:#285b60}.week-total span{display:block;font-size:12px;color:#58747c;margin-top:4px}.hero-note{font-size:14px;line-height:1.7;color:#54727a}.staff-filters{display:flex;align-items:end;gap:12px;padding:18px;background:white;border:1px solid #e0e6ed;border-radius:12px;margin-bottom:24px;flex-wrap:wrap}.staff-filters label{font-size:11px;letter-spacing:.2px;font-weight:600;color:#5c7082;flex:1;min-width:130px}.staff-filters label:first-child{flex:1.3}.staff-filters .filter-plan{flex:1.5}.staff-filters select{display:block;width:100%;margin-top:7px;border-color:#d6dfe8;border-radius:7px;font-size:13px;color:#243f56;min-height:41px}.pdf-download{min-height:41px;border-radius:7px;font-size:12px;background:#f4f7fa}.staff-shell .week-grid{gap:14px;align-items:start}.staff-shell .day-card{border:1px solid #dce3e9;border-radius:12px;box-shadow:0 4px 12px #19385004;overflow:hidden}.day-heading{border-top:4px solid var(--day-accent);padding:16px 14px;display:flex;justify-content:space-between;align-items:center;gap:5px;background:#fff;border-bottom:1px solid #e6ebf0}.staff-shell .day-heading h3{background:none;padding:0;font-size:14px;margin:0 0 5px;color:#263e54;font-weight:650}.day-heading span{font-size:12px;color:#728393}.day-heading>small{font-size:11px;background:#f0f4f6;padding:4px 6px;border-radius:5px;color:#526b7d}.is-today{box-shadow:0 0 0 2px #5d9396!important}.shift{display:flex;gap:12px;padding:15px 13px;border-bottom:1px solid #edf0f3;align-items:start}.shift:last-child{border-bottom:0}.shift-time{flex:0 0 48px;font-variant-numeric:tabular-nums}.shift-time strong{display:block;font-size:15px;color:#213d53;line-height:1.3;letter-spacing:-.3px}.shift-time>span{display:block;font-size:11px;color:#6f8293;white-space:nowrap;margin-top:3px}.shift-time small{display:block;font-size:10px;color:#8898a5;margin-top:7px}.shift-details{min-width:0;flex:1}.lesson-label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#778b9b;margin-bottom:8px}.room-pill{display:inline-block;background:#edf4f5;color:#2c6266;padding:4px 7px;border-radius:5px;font-size:11px;line-height:1.3;white-space:nowrap}.shift-classes{display:block;font-size:12px;color:#536b7c;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}.shift-teacher{display:block;font-size:12px;margin:6px 0}.shift-assignment+.shift-assignment{border-top:1px solid #edf1f4;margin-top:10px;padding-top:4px}.day-off{padding:35px 16px;text-align:center;color:#7e8e9c;min-height:140px}.day-off>span{display:block;margin-bottom:12px;font-size:25px;color:#c0ccd5}.day-off strong{font-size:12px;font-weight:500}.calendar-bar{margin-top:26px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 24px;background:#fff;border:1px solid #dce5ec;border-radius:12px}.calendar-bar strong{display:block;font-size:16px}.calendar-bar span{display:block;font-size:12px;color:#718494;margin-top:6px;line-height:1.5}.calendar-buttons{display:flex;gap:8px;flex-wrap:wrap}.calendar-buttons button{border-radius:7px;font-size:12px;min-height:40px}.calendar-buttons .primary{background:#2d6469;border-color:#2d6469}.calendar-note{font-size:11px;color:#84929e;text-align:center;line-height:1.5;margin:12px 0 24px}.staff-footer{justify-content:space-between;border-top:1px solid #e0e6eb;font-size:11px;color:#778b99;padding-top:18px}.no-plan{text-align:center;padding:80px 24px;background:white;border:1px solid #e0e7ed;border-radius:16px;margin-top:40px}.no-plan h1{font-size:24px}.no-plan p{font-size:14px;color:#718494}.empty-calendar{display:block;font-size:45px;color:#7c9b9f;margin-bottom:20px}.mobile-day-nav{display:none}.account-row{display:flex;align-items:center;gap:8px;padding:13px 0;border-bottom:1px solid #e1e7ed}.account-row>div{flex:1}.account-row small{display:block;color:#708394;margin-top:4px}.account-row button{font-size:12px;padding:6px 10px}.calendar-events{max-height:55vh;overflow:auto}.calendar-events a{display:flex;justify-content:space-between;align-items:center;text-decoration:none;border:1px solid #dce5eb;border-radius:8px;padding:12px;margin-bottom:8px;gap:12px;font-size:12px}.calendar-events small{display:block;margin-top:6px;color:#6f8292}.calendar-events a:hover{background:#edf5f5}
@media(min-width:801px) and (max-width:1100px){.staff-shell{padding:24px 18px}.staff-shell .week-grid{gap:8px}.shift{gap:7px;padding:13px 9px}.day-heading{padding:13px 9px}.day-heading>small{display:none}}
@media(max-width:800px){.staff-shell{padding:18px 15px}.staff-header{gap:8px;margin-bottom:22px;flex-wrap:nowrap}.school-mark{width:40px;height:40px;border-radius:11px;font-size:14px}.school-brand{gap:9px}.school-brand strong{font-size:19px}.school-brand small{font-size:11px}.admin-link{font-size:10px;padding:9px}.staff-hero{padding:22px 20px;border-radius:15px;align-items:flex-start;gap:15px}.staff-hero h1{font-size:24px;line-height:1.25}.staff-hero p{font-size:12px}.eyebrow{font-size:9px;letter-spacing:1px}.week-total strong{font-size:26px}.week-total span{max-width:100px;font-size:10px;line-height:1.5}.hero-note{display:none}.staff-filters{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:12px;margin-bottom:18px}.staff-filters label{min-width:0}.staff-filters label:first-child,.staff-filters .filter-plan{grid-column:1 / -1}.staff-filters label:nth-child(2){grid-column:1}.staff-filters .filter-plan{grid-row:3}.staff-filters label:nth-child(4){grid-column:2;grid-row:2}.staff-filters button{grid-column:1 / -1}.staff-filters select{font-size:13px}.mobile-day-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:0 0 14px;position:sticky;top:0;padding:9px 0;background:#fafbfd;z-index:6}.mobile-day-nav button{display:block;padding:9px 3px;border-radius:9px;background:white;border-color:#dbe4ea;color:#687f91;white-space:normal}.mobile-day-nav span{display:block;font-size:10px;font-weight:500;margin-bottom:4px}.mobile-day-nav strong{font-size:13px}.mobile-day-nav .active{background:#2d6469;color:white;border-color:#2d6469}.staff-shell .week-grid{display:block}.staff-shell .day-card{display:none}.staff-shell .day-card.mobile-current{display:block}.staff-shell .day-heading{padding:17px 18px}.staff-shell .day-heading h3{font-size:17px}.shift{padding:18px 20px;gap:22px}.shift-time{flex-basis:57px}.shift-time strong{font-size:20px}.shift-time>span{font-size:13px}.shift-time small{font-size:11px}.lesson-label{font-size:11px}.room-pill{font-size:13px}.shift-classes,.shift-teacher{font-size:14px}.calendar-bar{flex-direction:column;align-items:stretch;padding:20px;margin-top:20px;gap:16px}.calendar-buttons{display:grid;grid-template-columns:1fr}.calendar-buttons button{min-height:46px;font-size:13px}.calendar-note{text-align:left;font-size:11px}.no-plan{padding:55px 18px;margin-top:28px}.no-plan h1{font-size:22px}}

@media(max-width:800px){.week-total{flex:0 0 78px}.staff-hero>div:first-child{min-width:0}.staff-hero h1{overflow-wrap:anywhere}}

.school-logo{display:block;width:56px;height:56px;object-fit:contain;background:transparent;border-radius:50%;flex-shrink:0}.panel-brand{display:flex;gap:13px;align-items:center}.login-logo{width:64px;height:64px;margin-bottom:18px}@media(max-width:800px){.staff-header .school-logo{width:44px;height:44px}}
.shift-time .shift-end{font-size:15px;font-weight:700;line-height:1.3;letter-spacing:-.3px;margin-top:3px}.shift-time .shift-end:before{content:'– ';font-weight:400}.staff-filters .filter-plan{display:none}.week-grid{touch-action:pan-y}.substitution-dialog{min-width:0}.substitution-table{overflow:auto;max-height:58vh}.substitution-table table{border-collapse:collapse;width:100%;min-width:460px;font-size:12px}.substitution-table th,.substitution-table td{padding:10px 7px;text-align:left;border-bottom:1px solid #dce4eb;line-height:1.5}.substitution-table select{min-width:130px;max-width:170px;padding:7px}.substitution-table input{min-height:0}.substitution-dialog .actions{position:sticky;bottom:0;background:white;padding-top:12px}.report-controls{padding:12px;background:#f0f4f8;border-radius:7px}.report-controls label{min-width:0}.report-controls select{margin-left:7px}.payroll-coverage{padding:12px}.grid-wrap>p.note{padding:8px 14px}.substitution-dialog h2{font-size:18px}@media(max-width:800px){.shift-time .shift-end{font-size:20px}.staff-filters label:nth-child(3){grid-column:2;grid-row:2}.staff-filters button{grid-row:3}.report-controls label{width:100%}}

.shift-time{flex-basis:60px}.shift-time .shift-end{white-space:nowrap}@media(max-width:800px){.shift-time{flex-basis:76px}}

/* Collective overview shares the hours column and avoids tall assignment cards. */
.staff-overview{overflow:auto;max-height:max(260px,calc(100dvh - 410px));border:1px solid #dce3e9;border-radius:12px;background:white;scrollbar-gutter:stable}.staff-overview table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}.staff-overview caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.staff-overview th,.staff-overview td{padding:8px 10px;border-right:1px solid #e4eaf0;border-bottom:1px solid #e4eaf0;vertical-align:top;text-align:left;overflow-wrap:anywhere}.staff-overview thead th{position:sticky;top:0;background:#edf4f5;z-index:2;padding:12px 10px}.staff-overview th:first-child{width:106px}.staff-overview th small{display:block;margin-top:4px;font-weight:400;color:#627b8b}.staff-overview tbody th{background:#f6f9fb;font-size:10px;font-weight:400}.staff-overview tbody th strong{display:block;font-size:11px;margin-top:5px;white-space:nowrap}.overview-duty{line-height:1.3;padding:3px 0}.overview-duty+.overview-duty{border-top:1px solid #edf1f4}.overview-duty strong{font-size:12px;font-weight:600}.overview-duty small{display:block;font-size:10px;color:#60768a;margin-top:2px}.overview-empty{color:#80909d;font-size:11px}.staff-all .staff-hero{padding:18px 24px;margin-bottom:14px}.staff-all .staff-hero h1{font-size:25px}.staff-all .staff-header{margin-bottom:18px}.staff-all .staff-filters{margin-bottom:16px;padding:12px 16px}.staff-all .calendar-bar{display:none}.delete-plan-button{margin-right:auto}.font-help{margin-top:12px!important}.dialog-body details{margin-top:18px;border-top:1px solid #dce4eb;padding-top:16px}.dialog-body summary{cursor:pointer;color:#216bbf}.dialog-body details button{margin-top:12px}
@media(min-width:801px){.staff-all .week-grid{display:none}}
@media(max-width:800px){.staff-overview{display:none}.staff-all .shift{padding:10px 13px;gap:12px}.staff-all .shift-time{flex-basis:62px}.staff-all .shift-time strong,.staff-all .shift-time .shift-end{font-size:16px}.staff-all .shift-teacher{font-size:13px;margin:2px 0}.staff-all .shift-assignment+.shift-assignment{margin-top:5px;padding-top:5px}.staff-all .room-pill{font-size:11px;padding:2px 5px}.staff-all .shift-classes{display:inline;font-size:11px;margin:0 0 0 5px}.staff-all .lesson-label{margin-bottom:4px}.staff-all .day-heading{padding:12px 14px}}

/* Superadmin archive and authenticated activity log. */
dialog:has(.history-dialog){width:1160px}.history-dialog .history-table{overflow:auto;max-height:54vh;border:1px solid #dce4eb;margin-top:16px}.history-dialog .data-table{min-width:760px;font-size:12px}.history-dialog .data-table th,.history-dialog .data-table td{padding:10px;overflow-wrap:anywhere}.history-dialog td small{display:block;margin-top:6px;color:#687e90}.history-dialog td button{font-size:12px;padding:6px 10px;margin:2px}.history-search{display:flex;gap:15px;align-items:end;flex-wrap:wrap}.history-search label:first-child{flex:1;min-width:200px}.history-search .check{font-size:12px;align-self:center}.history-duty+.history-duty{border-top:1px solid #dce4eb;padding-top:6px;margin-top:6px}.history-dialog .actions{position:sticky;bottom:0;background:white;padding-top:10px}.history-dialog [data-preview-week]{max-width:260px}@media(max-width:800px){.history-dialog .actions{gap:6px}.history-dialog .actions button{min-width:0;font-size:12px}.history-dialog h2{font-size:18px}.history-dialog .history-table{max-height:48vh}}

/* Only the signed-in administration panel changes on phones. */
.admin-mobile-only{display:none}
@media(max-width:800px){
 .admin-shell{padding:14px 12px 0;max-width:100vw}.admin-shell .admin-desktop-header{display:none}.admin-shell .admin-mobile-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;margin:0 0 15px}.admin-mobile-header .school-logo{width:42px;height:42px}.admin-mobile-header .panel-brand{gap:9px;min-width:0}.admin-mobile-header .panel-brand strong{display:block;font-size:21px}.admin-mobile-header .panel-brand small{display:block;margin-top:4px;color:#64748b;font-size:11px;overflow-wrap:anywhere}.admin-mobile-header>button{min-height:42px;border-radius:8px;background:white}.admin-shell .admin-mobile-only{display:flex}.mobile-quick-actions{gap:8px;margin:0 0 14px}.mobile-quick-actions button{flex:1;min-height:42px;border-radius:8px;padding:8px}.mobile-context-toggle{width:100%;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:13px 14px;border:1px solid #d5e0e9;border-radius:10px;background:white;margin-bottom:12px;white-space:normal}.mobile-context-toggle strong{display:block;font-size:16px;color:#25465d}.mobile-context-toggle small{display:block;margin-top:5px;color:#6a7f90;font-size:11px;overflow-wrap:anywhere;max-width:220px}.mobile-context-toggle>span:last-child{font-size:11px;flex-shrink:0;color:#216bbf}.admin-context{display:none;padding:14px;background:#edf3f8;border:1px solid #d5e0e9;border-radius:9px;margin-bottom:14px}.admin-context.mobile-context-open{display:block}.admin-context .row{display:grid;grid-template-columns:1fr;gap:7px;margin-bottom:12px}.admin-context .row label{font-size:11px;min-width:0}.admin-context .row select.year,.admin-context .row select.plan,.admin-context .row select{width:100%;min-width:0;max-width:100%;min-height:43px}.admin-context .row>button,.admin-context .row>.spacer{display:none}.admin-context .period{font-size:11px;line-height:1.6}.admin-shell .admin-tabs{display:flex;flex-wrap:nowrap;overflow:auto;gap:6px;margin:0 0 12px;padding-bottom:4px;scrollbar-width:thin}.admin-tabs>button{min-height:40px;font-size:12px;padding:8px 13px;border-radius:8px;flex-shrink:0}.admin-tabs>.spacer,.admin-tabs>[data-action=edit],.admin-tabs>[data-action=day-state],.admin-tabs>[data-action=add],.admin-tabs>[data-action=remove]{display:none}.admin-shell .admin-day-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:12px}.admin-day-nav button{padding:9px 2px;border-radius:9px;min-height:50px;background:white;border-color:#d6e0e9}.admin-day-nav span,.admin-day-nav strong{display:block}.admin-day-nav span{font-size:10px;margin-bottom:4px;color:#637c8d}.admin-day-nav strong{font-size:12px}.admin-day-nav [aria-pressed=true]{background:#216bbf;color:white;border-color:#216bbf}.admin-day-nav [aria-pressed=true] span{color:white}.mobile-edit-actions{gap:7px;margin-bottom:12px}.mobile-edit-actions>button{flex:1;min-width:0;font-size:12px;padding:8px;min-height:40px;border-radius:7px}.admin-shell .legend{font-size:10px;gap:8px 12px;line-height:1.4;margin-bottom:12px}.admin-shell .legend span:before{width:9px;height:9px;margin-right:4px}.admin-shell .grid-wrap{min-height:0;max-height:none;border-radius:9px;border-color:#cfdae5}.admin-desktop-grid{display:none}.admin-shell table.mobile-admin-grid{display:table;min-width:0;width:100%;font-size:12px;table-layout:fixed}.mobile-admin-grid .mobile-time-col{width:73px}.mobile-admin-grid .mobile-classes-col{width:27%}.mobile-admin-grid .mobile-room-col{width:37px}.admin-shell .mobile-admin-grid th,.admin-shell .mobile-admin-grid td{padding:8px 5px;line-height:1.4;overflow-wrap:anywhere}.admin-shell .mobile-admin-grid thead th{height:auto;padding:10px 5px;font-size:11px;background:#eaf1f7;position:static}.admin-shell .mobile-admin-grid .time{width:auto;position:static;vertical-align:top;text-align:center;font-size:11px;padding:10px 4px}.admin-shell .mobile-admin-grid .time small{font-size:11px;margin-top:5px;white-space:normal;font-weight:600;line-height:1.5}.admin-shell .mobile-admin-grid .time small:last-child{font-size:10px;color:#708090;font-weight:400}.admin-shell .mobile-admin-grid tbody td{height:40px}.admin-shell .mobile-admin-grid td:last-child{text-align:center}.admin-shell .data-table{min-width:0;font-size:12px}.admin-shell .data-table th,.admin-shell .data-table td{padding:10px 7px;overflow-wrap:anywhere}.admin-shell .summary{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.admin-shell .summary>div{min-width:0;padding:10px 8px}.admin-shell .summary strong{font-size:20px}.admin-shell .summary span{font-size:10px}.admin-shell footer{padding:14px 0 20px;flex-wrap:wrap;font-size:11px}.admin-shell footer .status{flex-basis:100%;line-height:1.5}.admin-shell footer>button{min-height:40px;font-size:12px;flex:1}.admin-shell footer>[data-action=delete-plan]{display:none}.mobile-menu-dialog h3{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#697f91;margin:20px 0 10px}.mobile-menu-items{display:grid;gap:6px}.mobile-menu-items>button{display:flex;align-items:center;justify-content:space-between;white-space:normal;min-height:44px;background:white;text-align:left;font-size:13px;border-radius:7px}.mobile-menu-items>button>span{color:#8095a6;font-size:20px}.mobile-menu-dialog .actions{position:sticky;bottom:0;padding-top:12px;background:white}.mobile-menu-dialog .actions>button{width:100%;min-height:44px}
}
@media print{.admin-mobile-only{display:none!important}}

@media(max-width:800px){.admin-shell .admin-day-nav{position:sticky;top:0;z-index:7;background:#fafbfd;padding:6px 0}.admin-shell .mobile-edit-actions{position:sticky;top:0;z-index:7;background:#fafbfd;padding:6px 0}.admin-shell:has(.admin-day-nav) .mobile-edit-actions{top:68px}}
