:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183042;background:#f4f7f8}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:10px 14px;background:#176879;color:#fff;font-weight:650}button:hover{background:#105363}button.secondary{background:#e7eff1;color:#175869}button.danger{background:#fbe8e5;color:#a7372e}button:disabled{opacity:.5;cursor:not-allowed}input,select{border:1px solid #c6d2d8;border-radius:8px;padding:9px 10px;background:#fff;color:#183042;min-width:0}input[type=file]{max-width:100%;border-style:dashed;padding:15px}label{display:grid;gap:5px;font-size:.84rem;font-weight:650;color:#465e69}h1,h2,h3,p{margin-top:0}h1{font-size:1.65rem;letter-spacing:-.035em}h2{font-size:1.15rem}h3{font-size:1rem}p{line-height:1.5}.muted{color:#607680}.shell{max-width:1380px;margin:auto;padding:20px}.topbar{background:#123c4a;color:#fff}.top-inner{max-width:1380px;margin:auto;padding:15px 20px;display:flex;align-items:center;gap:18px}.brand{font-weight:800;letter-spacing:-.03em;font-size:1.1rem}.topbar .spacer{flex:1}.topbar button{background:#2f5b68}.topbar small{color:#c2d5dc}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:20px 0}.tabs button{background:transparent;color:#45636e}.tabs button.active{background:#d7e9ec;color:#104e5c}.card{background:#fff;border:1px solid #dde7ea;border-radius:12px;padding:20px;box-shadow:0 2px 12px #123c4a08;margin-bottom:16px}.grid{display:grid;gap:15px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.row>*{flex:1}.row button,.row .auto{flex:0 0 auto}.pill{display:inline-block;background:#e5f1f1;color:#0d6270;border-radius:999px;padding:3px 9px;font-size:.75rem;font-weight:700}.pill.warn{background:#fff0d8;color:#8a5b05}.message{padding:12px 14px;border-radius:8px;margin-bottom:15px;background:#e5f3eb;color:#195f37}.message.error{background:#fbe9e7;color:#9c2f26}.empty{padding:18px;color:#71858d}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid #e5edef;font-size:.88rem}th{background:#f3f8f9;color:#49626b}td button{font-size:.75rem;padding:5px 8px}.login{max-width:420px;margin:8vh auto;padding:28px}.login form{display:grid;gap:15px}.login .brand{color:#176879;font-size:1.4rem}.loading{text-align:center;margin:15vh auto}.helper{font-size:.82rem;color:#607680}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-title h2{margin:0}.search-results{max-height:290px;overflow:auto;border:1px solid #dce7eb;border-radius:8px}.search-results button{display:block;width:100%;background:#fff;color:#173f4b;text-align:left;border-radius:0;border-bottom:1px solid #e8eef0}.search-results button:hover{background:#edf6f7}.search-results button.selected{background:#d9eef0}.notice{padding:11px 14px;border-left:4px solid #dca43d;background:#fffbf1;margin-bottom:16px;font-size:.9rem}@media(max-width:700px){.grid.two,.grid.three{grid-template-columns:1fr}.shell{padding:14px}.top-inner{padding:12px 14px}}

/* The schedule keeps one roster in view while the group list stays scannable. */
.schedule-top{max-width:1000px;margin:28px 0 18px}
.schedule-top h1{font-size:2rem;margin-bottom:5px}
.schedule-top p{color:#607680;margin:0}
.schedule-controls{display:grid;gap:12px;max-width:1100px;margin-bottom:25px}
.filter-line{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.filter-label{width:48px;color:#48636d;font-size:.82rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em}
.choice-row{display:flex;gap:7px;flex-wrap:wrap}
.choice{background:#fff;border:1px solid #d3e0e4;color:#3d5964;min-width:55px;padding:9px 14px}
.choice:hover{background:#eaf4f6;color:#174f5e}
.choice.chosen{background:#176879;border-color:#176879;color:#fff}
.schedule-caption{color:#607680;font-size:.85rem;margin:0 0 10px 66px}
.schedule-layout{display:grid;grid-template-columns:minmax(270px,335px) minmax(0,1fr);gap:18px;max-width:1100px;margin-left:66px;align-items:start}
.group-menu,.roster-panel{background:#fff;border:1px solid #dce6e9;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px #123c4a08}
.group-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;background:#fff;color:#183042;text-align:left;border-radius:0;padding:15px 16px;border-bottom:1px solid #e9eff1}
.group-option:last-child{border-bottom:0}
.group-option:hover{background:#f0f7f8;color:#183042}
.group-option.selected{background:#e3f1f3;box-shadow:inset 4px 0 #176879;color:#123c4a}
.group-option-main{min-width:0;display:grid;gap:4px}
.group-option-main strong{font-size:.93rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.group-option-main>span{font-size:.78rem;color:#607680;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.group-option-count{min-width:30px;height:30px;border-radius:50%;background:#edf4f5;color:#2e6471;display:grid;place-items:center;font-size:.78rem;font-weight:750;flex:none}
.group-option.selected .group-option-count{background:#cbe4e9}
.roster-heading{padding:24px 26px 19px;display:flex;align-items:start;justify-content:space-between;gap:15px;border-bottom:1px solid #e8eff1}
.roster-heading h2{font-size:1.4rem;margin:4px 0 3px}
.roster-heading p{font-size:.84rem;color:#607680;margin:0}
.eyebrow{font-size:.76rem;font-weight:750;letter-spacing:.065em;text-transform:uppercase;color:#176879}
.roster-total{white-space:nowrap;background:#edf4f5;color:#3b6570;border-radius:999px;font-size:.77rem;font-weight:700;padding:6px 10px}
.roster-list{list-style:none;margin:0;padding:0}
.roster-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 26px;border-bottom:1px solid #edf1f2}
.roster-list li:last-child{border-bottom:0}
.roster-name{font-weight:650}
.roster-list button{padding:6px 11px;font-size:.78rem}
.schedule-empty{max-width:850px;margin:36px 0 0 66px;padding:48px 20px;background:#fff;border:1px dashed #cbdce1;border-radius:12px;color:#607680;text-align:center;display:grid;gap:6px}
.schedule-empty strong{font-size:1.1rem;color:#183042}
.day-overview{max-width:880px;margin-left:66px;background:#fff;border:1px solid #dce6e9;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px #123c4a08}
.overview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;padding:19px 22px 13px}
.overview-heading h2{font-size:1.17rem;margin:0}
.overview-heading span{font-size:.82rem;color:#607680;white-space:nowrap}
.overview-row{width:100%;display:grid;grid-template-columns:110px minmax(110px,1fr) 180px 18px;gap:16px;align-items:center;background:#fff;color:#183042;text-align:left;border-radius:0;border-top:1px solid #e9eff1;padding:16px 22px}
.overview-row:hover{background:#f0f7f8;color:#183042}
.overview-row strong{font-size:.94rem}
.overview-time{font-size:.84rem;color:#607680}
.overview-count{font-size:.84rem;color:#385c68;text-align:right}
.overview-arrow{font-size:1.35rem;color:#6f8991;line-height:1;text-align:right}
.grade-wide{max-width:1100px;margin-left:66px;background:#fff;border:1px solid #dce6e9;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px #123c4a08}
.grade-wide-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #e5edef}
.grade-wide-heading h2{font-size:1.35rem;margin:4px 0}
.grade-wide-heading p{font-size:.85rem;color:#607680;margin:0}
.grade-area-legend{display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px 10px}
.area-legend-item{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--area-border);border-radius:999px;background:var(--area-bg);color:#31505a;padding:5px 10px;font-size:.78rem;white-space:nowrap}
.area-legend-item strong{font-size:.76rem;color:#183042}
.area-swatch{width:11px;height:11px;border-radius:50%;background:var(--area-border);flex:none}
.grade-wide-sort{display:flex;align-items:center;gap:6px;padding:0 20px 14px;color:#607680;font-size:.79rem}
.grade-wide-sort button{background:transparent;border:1px solid #d3e0e4;color:#45636e;padding:5px 10px;font-size:.78rem}
.grade-wide-sort button.selected{background:#e7f1f3;border-color:#bdd5db;color:#174f5e}
.area-tone-0{--area-bg:#edf5fb;--area-border:#aac9df}
.area-tone-1{--area-bg:#eef6ee;--area-border:#aacfae}
.area-tone-2{--area-bg:#f3f0fa;--area-border:#c7b9df}
.area-tone-3{--area-bg:#fbf3ed;--area-border:#e1c4ac}
.area-tone-4{--area-bg:#edf7f6;--area-border:#a7d1cb}
.area-tone-5{--area-bg:#fbf0f3;--area-border:#ddb9c6}
.area-tone-6{--area-bg:#f7f5e9;--area-border:#d8d0a6}
.area-tone-7{--area-bg:#eef1fa;--area-border:#bac5e2}
.area-tone-8{--area-bg:#edf8f3;--area-border:#acd6c1}
.area-tone-9{--area-bg:#f8f1ec;--area-border:#dec3b4}
.area-tone-10{--area-bg:#f5f2fa;--area-border:#d0c1e2}
.area-tone-11{--area-bg:#f0f5f5;--area-border:#b8d0d1}
.area-tone-12{--area-bg:#f3f7ed;--area-border:#c4d2a7}
.area-unplaced{--area-bg:#fffbf1;--area-border:#e3d4aa}
.grade-wide-table th:first-child{width:32%}
.grade-wide-table td,.grade-wide-table tbody th{vertical-align:top;padding:12px 16px}
.grade-wide-table tbody th{font-weight:650;background:transparent}
.grade-wide-table tbody tr[class^="area-tone-"]{background:var(--area-bg)}
.grade-wide-table tbody tr[class^="area-tone-"]>th{border-left:4px solid var(--area-border);padding-left:12px}
.grade-wide-table tbody tr.area-multiple{background:#f9fbfc}
.grade-wide-table .grade-unplaced th,.grade-wide-table .grade-unplaced td{background:#fffbf1}
.grade-wide-table .grade-unplaced th{border-left:4px solid #e3d4aa;padding-left:12px}
.grade-placement{display:grid;gap:2px;margin-bottom:7px;padding:6px 9px;border-left:3px solid var(--area-border);border-radius:4px;background:var(--area-bg)}
.grade-placement:last-child,.grade-time:last-child{margin-bottom:0}
.grade-placement span{font-size:.78rem;color:#607680}
.grade-time{margin-bottom:16px;white-space:nowrap}
.unplaced-label{font-weight:650;color:#8a5b05}
.overlap-label{display:block;color:#a7372e;font-size:.78rem;font-weight:750;margin-top:4px}
.grade-add-button{white-space:nowrap;font-size:.78rem;padding:7px 10px}
.grade-add-button+.grade-add-button{margin-top:6px}
.grade-add-row td{background:#f3f9fa!important;padding:16px 20px!important}
.grade-add-panel{display:grid;gap:12px;max-width:600px}
.grade-add-panel p{font-size:.82rem;color:#607680;margin:3px 0 0}
.grade-add-panel label{max-width:580px}
.grade-add-panel button{justify-self:start}
.grade-add-review{display:grid;gap:4px;padding:11px 13px;border:1px solid #cddfe3;border-radius:8px;background:#fff;font-size:.85rem}
.grade-add-review>span{color:#607680;font-size:.8rem}
.grade-add-review .overlap-label{margin:2px 0 0;color:#a7372e}
.grade-remove-actions{display:flex;gap:8px;flex-wrap:wrap}
.weekly-print,.teacher-grid-print,.routes-print{display:none}
.teacher-grid-view{max-width:1100px;margin-left:66px;background:#fff;border:1px solid #dce6e9;border-radius:12px;box-shadow:0 2px 12px #123c4a08;overflow:hidden}
.teacher-grid-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #e5edef}
.teacher-grid-toolbar h2{font-size:1.35rem;margin:4px 0}
.teacher-grid-toolbar p{font-size:.85rem;color:#607680;margin:0}
.teacher-grid-toolbar button{white-space:nowrap}
.teacher-grid-scroll{overflow-x:auto}
.teacher-grid-view .teacher-grid-print{display:block;min-width:900px;padding:20px 24px;font:12px/1.3 Arial,sans-serif}
.teacher-grid-view .teacher-grid-table th,.teacher-grid-view .teacher-grid-table td{padding:6px 7px}
.teacher-grid-view .teacher-grid-name{display:block}
.grade-report-view{max-width:1100px;margin-left:66px;background:#fff;border:1px solid #dce6e9;border-radius:12px;box-shadow:0 2px 12px #123c4a08;overflow:hidden}
.grade-report-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid #e5edef}
.grade-report-toolbar h2{font-size:1.35rem;margin:4px 0}
.grade-report-toolbar p{font-size:.85rem;color:#607680;margin:0}
.grade-report-toolbar button{white-space:nowrap}
.grade-report-scroll{overflow-x:auto}
.grade-report-view .weekly-print,.grade-report-view .routes-print{display:block;min-width:950px;padding:20px 24px;font:13px/1.25 Arial,sans-serif}
.student-routes-view .routes-grid{font-size:11px}
.student-routes-view .route-place,.student-routes-view .route-place strong{font-size:11px}
.student-routes-view .route-place small{font-size:10px}
.student-routes-view .routes-counts{font-size:12px}
@media(max-width:800px){.schedule-caption,.schedule-layout,.schedule-empty{margin-left:0}.schedule-layout{grid-template-columns:1fr}.group-menu{display:flex;overflow-x:auto}.group-option{min-width:210px;border-bottom:0;border-right:1px solid #e9eff1}.group-option:last-child{border-right:0}.group-option.selected{box-shadow:inset 0 -4px #176879}.filter-label{width:100%}}
@media(max-width:800px){.day-overview,.grade-wide,.teacher-grid-view,.grade-report-view{margin-left:0}}
@media(max-width:500px){.schedule-top{margin-top:18px}.schedule-top h1{font-size:1.7rem}.choice{min-width:48px;padding:9px 10px}.roster-heading,.roster-list li{padding-left:16px;padding-right:16px}.roster-heading{display:block}.roster-total{display:inline-block;margin-top:10px}.topbar small{display:none}}
@media(max-width:500px){.overview-heading{display:block;padding:18px 16px 10px}.overview-heading span{display:block;margin-top:3px}.overview-row{grid-template-columns:1fr 18px;gap:3px 10px;padding:14px 16px}.overview-row strong{grid-column:1;grid-row:1}.overview-time{grid-column:1;grid-row:2}.overview-count{grid-column:1;grid-row:3;text-align:left}.overview-arrow{grid-column:2;grid-row:1 / span 3}}
@media(max-width:500px){.grade-wide-heading{align-items:flex-start;flex-direction:column;padding:17px}.grade-area-legend{padding:12px 12px 8px}.grade-wide-sort{padding:0 12px 12px}.grade-wide-table th:first-child{min-width:130px}.grade-wide-table td,.grade-wide-table tbody th{padding:10px}.grade-wide-table td:nth-child(2){min-width:180px}}
@media(max-width:500px){.teacher-grid-toolbar{align-items:flex-start;flex-direction:column;padding:17px}.teacher-grid-view .teacher-grid-print{padding:16px}}
@media(max-width:500px){.grade-report-toolbar{align-items:flex-start;flex-direction:column;padding:17px}.grade-report-view .weekly-print,.grade-report-view .routes-print{padding:16px}}

/* Daily actions stay prominent; occasional setup sits inside Manage. */
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #f0b84a;outline-offset:2px}
.page-heading{margin:28px 0 22px;max-width:740px}
.page-heading h1{font-size:2rem;margin-bottom:5px}
.page-heading p{color:#607680;margin:0}
.schedule-action{max-width:880px;margin:-9px 0 15px 66px;text-align:right}
.find-layout{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:18px;align-items:start;max-width:1100px}
.find-search{display:grid;gap:10px}
.find-search input{width:100%;font-size:1rem;padding:13px}
.find-search .search-results{border:0;max-height:60vh;overflow:auto}
.find-search .search-results button{padding:12px 10px;border-radius:8px;margin:2px 0}
.result-meta{display:block;font-size:.76rem;color:#657a83;margin-top:2px}
.student-detail{min-height:220px}
.student-detail .section-title h2{font-size:1.35rem;margin:0 0 2px}
.student-detail .section-title p{margin:0}
.student-detail h3{margin:22px 0 10px}
.placement-list{border:1px solid #dce6e9;border-radius:10px;overflow:hidden}
.placement-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #e8eff1}
.placement-row:last-child{border-bottom:0}
.placement-row.active{background:#edf7f8}
.placement-row div{display:grid;gap:3px}
.placement-row span{font-size:.82rem;color:#607680}
.placement-row button{font-size:.78rem;white-space:nowrap}
.move-step{margin-top:20px;padding:18px;background:#f4f9fa;border:1px solid #dbe9ec;border-radius:10px}
.move-step h3{margin:0 0 13px}
.move-step label{margin-bottom:5px}
.move-step select{width:100%}
.move-review{margin-top:18px;padding:16px;background:#fff;border:1px solid #cbdde2;border-radius:9px}
.move-review p{margin:8px 0;color:#3d5964}
.move-review button{margin-top:8px}
.undo-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#e7f4ec;color:#185b36;padding:11px 15px;border-radius:9px;margin-bottom:14px}
.undo-bar button{background:#fff;border:1px solid #a8d0b9;color:#185b36}
.add-placement,.manage-extra{padding:16px 18px;background:#fff;border:1px solid #dce6e9;border-radius:10px;margin:16px 0}
.add-placement summary,.manage-extra summary{cursor:pointer;font-weight:700}
.add-placement form{display:grid;gap:12px;margin-top:12px}
.manage-nav{margin-bottom:22px}
.manage-intro{margin-bottom:16px}
.manage-intro h2{font-size:1.3rem;margin-bottom:4px}
.manage-intro p{color:#607680;margin-bottom:0}
.staff-list{max-width:1000px;background:#fff;border:1px solid #dce6e9;border-radius:12px;overflow:hidden}
.staff-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 18px;border-bottom:1px solid #e8eff1}
.staff-row:last-child{border-bottom:0}
.staff-row>div:first-child{display:grid;gap:3px}
.staff-row span:not(.pill){font-size:.8rem;color:#607680}
.staff-actions{display:flex;align-items:center;gap:10px}
.staff-actions button{white-space:nowrap;font-size:.79rem}
.access-form{max-width:1000px}
.access-form .row{align-items:end}
.import-preview{margin-top:18px;padding:16px;background:#f1f8f9;border:1px solid #cfe3e7;border-radius:9px}
.import-preview p{margin:6px 0 10px}
.import-preview ul{font-size:.82rem;color:#465e69;padding-left:20px;max-height:180px;overflow:auto}
.import-preview .notice{margin:10px 0}
.remove-actions{margin-top:16px;border-top:1px solid #e8eff1;padding-top:12px}
.remove-actions h3{margin:0 0 9px}
.remove-actions>button{margin:0 6px 6px 0;font-size:.77rem}
.bulk-card{max-width:1000px}
.bulk-steps{display:grid;gap:15px;max-width:660px}
.schedule-downloads{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.example-link{color:#175869;font-size:.84rem;font-weight:650;text-underline-offset:3px}
.example-note{margin:-9px 0 0}
.button-link{display:inline-block;width:max-content;text-decoration:none;border-radius:8px;padding:10px 14px;font-weight:650}
.button-link.secondary{background:#e7eff1;color:#175869}
.button-link:hover{background:#d7e9ec}
.bulk-review{max-height:350px;overflow:auto;margin:13px 0}
.bulk-review th{position:sticky;top:0}
.bulk-review td small{display:block;color:#607680;margin-top:2px}
.bulk-card .undo-bar{margin-top:16px;margin-bottom:0}
.roster-heading-actions{display:grid;justify-items:end;gap:9px}
.print-button{font-size:.77rem;padding:6px 10px}
.staff-detail{min-width:0}
.staff-heading{margin:1px 0 17px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.staff-heading h2{font-size:1.4rem;margin:0 0 3px}
.staff-heading p{color:#607680;font-size:.84rem;margin:0}
.staff-heading button{white-space:nowrap}
.preview-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:12px 0 4px;border-radius:9px;background:#e3f1f3;color:#174f5e;font-size:.88rem;font-weight:700}
.preview-banner button{background:#fff;color:#175869}
.staff-day-picker{margin-bottom:16px}
.staff-day-picker .choice{display:flex;align-items:center;gap:7px}
.staff-day-picker .choice span{font-size:.73rem;opacity:.75}
.staff-schedule-layout{display:grid;grid-template-columns:minmax(190px,235px) minmax(0,1fr);gap:12px;align-items:start}
.staff-schedule-layout.single{grid-template-columns:1fr}
.staff-schedule-layout .group-option{padding:13px 12px}
.staff-schedule-layout .roster-heading{padding:19px 20px 16px}
.staff-schedule-layout .roster-list li{padding:11px 20px}
.staff-no-groups{padding:30px 18px;border:1px dashed #cbdce1;border-radius:12px;background:#fff;color:#607680;text-align:center}
@media(max-width:1150px){.staff-schedule-layout{grid-template-columns:1fr}.staff-schedule-layout .group-menu{display:flex;overflow-x:auto}.staff-schedule-layout .group-option{min-width:190px;border-bottom:0;border-right:1px solid #e9eff1}.staff-schedule-layout .group-option.selected{box-shadow:inset 0 -4px #176879}}
@media(max-width:800px){.staff-schedule-layout .group-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.staff-schedule-layout .group-option{min-width:0;border-right:0;border-bottom:1px solid #e9eff1}.staff-schedule-layout .group-option.selected{box-shadow:inset 4px 0 #176879}}
@media(max-width:500px){.staff-schedule-layout .group-menu{grid-template-columns:1fr}}
@page roster-plan{size:letter portrait;margin:.4in}
@page weekly-plan{size:letter landscape;margin:.28in}
@page routes-plan{size:letter landscape;margin:.25in}
@page teacher-grid-plan{size:letter landscape;margin:.25in}
@page teacher-grid-large-plan{size:17in 11in;margin:.25in}
@media print{
  :root{background:#fff;color:#000}
  .topbar,.tabs,.preview-banner,.schedule-top,.schedule-controls,.schedule-caption,.group-menu,.print-button,.message{display:none!important}
  .shell,.schedule-layout{max-width:none;margin:0;padding:0;display:block}
  .roster-panel{border:0;box-shadow:none}
  .roster-heading{padding:0 0 14px}
  .roster-list li{padding:11px 0;break-inside:avoid}
  .grade-wide{max-width:none;margin:0;border:0;box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .grade-wide-heading{padding:0 0 12px}
  .grade-wide .table-wrap{overflow:visible}
  .grade-wide-table tr{break-inside:avoid}
  .grade-wide-sort{display:none}
  .grade-wide-table thead th:last-child,.grade-wide-table tbody tr:not(.grade-add-row)>td:last-child,.grade-add-row{display:none}
}

/* Keep the print layouts measurable before the browser opens its print dialog. */
body.printing-roster .shell,body.printing-weekly .shell,body.printing-teacher-grid .shell,body.printing-routes .shell{max-width:none;margin:0;padding:0;display:block}
body.printing-roster .shell>:not(.schedule-layout),body.printing-roster .schedule-layout>:not(.roster-panel){display:none!important}
body.printing-roster .schedule-layout{display:block}
body.printing-roster .roster-panel{page:roster-plan;border:0;box-shadow:none;break-inside:avoid;page-break-inside:avoid}
body.printing-roster .roster-heading{padding:0 0 14px;display:flex}
body.printing-roster .roster-list li{padding:11px 0;break-inside:avoid}
body.printing-roster .print-button{display:none!important}
body.printing-weekly .shell>:not(.weekly-plan-view){display:none!important}
body.printing-weekly .weekly-plan-view,body.printing-routes .student-routes-view{max-width:none;margin:0;border:0;box-shadow:none;overflow:visible}
body.printing-weekly .grade-report-toolbar,body.printing-routes .grade-report-toolbar{display:none!important}
body.printing-weekly .grade-report-scroll,body.printing-routes .grade-report-scroll{overflow:visible}
body.printing-weekly .weekly-print{display:block!important;min-width:0;padding:0;page:weekly-plan;color:#172b35;font:9pt/1.14 Arial,sans-serif}
body.printing-weekly .weekly-print,body.printing-routes .routes-print{break-inside:avoid;page-break-inside:avoid}
.weekly-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:0 0 7px}
.weekly-title h1{font-size:15pt;line-height:1.1;margin:0 0 2px}
.weekly-title p{font-size:8pt;margin:0;color:#425764}
.weekly-title>span{white-space:nowrap;color:#425764;font-size:7.5pt}
.weekly-counts{display:flex;justify-content:space-between;gap:8px;padding:5px 8px;margin-bottom:7px;background:#e7f0f2;border:1px solid #bacbd1;font-size:8pt}
.weekly-counts span{white-space:nowrap}
.weekly-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px;align-items:start}
.weekly-local-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.weekly-layout.weekly-dense{grid-template-columns:minmax(0,3fr) minmax(0,1fr)}
.weekly-dense .weekly-local-columns{grid-template-columns:repeat(3,minmax(0,1fr))}
.weekly-section-title{margin:0 0 6px;padding:4px 7px;border:1px solid #bacbd1;background:#e7f0f2;font-size:9pt;line-height:1.1}
.weekly-hit .weekly-section-title{background:#f5eddd;border-color:#d6cbb8}
.weekly-hit .weekly-card{border-color:#d6cbb8}
.weekly-hit .weekly-card h2{background:#f5eddd;border-color:#d6cbb8}
.weekly-none{margin:0;padding:6px;color:#52616a;font-size:8pt}
.weekly-column{display:grid;gap:6px;align-content:start}
.weekly-card{border:1px solid #bacbd1;break-inside:avoid;page-break-inside:avoid}
.weekly-card h2{background:#e7f0f2;border-bottom:1px solid #bacbd1;padding:4px 6px;margin:0;font-size:10pt}
.weekly-program{padding:4px 6px}
.weekly-program+.weekly-program{border-top:1px dashed #bacbd1}
.weekly-program h3{display:flex;justify-content:space-between;gap:8px;margin:0 0 2px;font-size:8.5pt}
.weekly-program h3 span{font-weight:400;white-space:nowrap;color:#425764}
.weekly-program ul{list-style:none;margin:0;padding:0}
.weekly-program li{display:flex;justify-content:space-between;gap:8px;line-height:1.12;overflow-wrap:anywhere}
.weekly-program li b{white-space:nowrap;font-size:8pt;color:#315b6a}
.weekly-foot{display:flex;justify-content:space-between;gap:12px;margin-top:7px;border-top:1px solid #9fb0b7;padding-top:5px;font-size:8pt;color:#425764}
.weekly-foot strong{white-space:nowrap;color:#172b35}
body.printing-teacher-grid .shell>:not(.teacher-grid-view){display:none!important}
body.printing-teacher-grid .teacher-grid-view{max-width:none;margin:0;border:0;box-shadow:none;overflow:visible}
body.printing-teacher-grid .teacher-grid-toolbar{display:none!important}
body.printing-teacher-grid .teacher-grid-scroll{overflow:visible}
body.printing-teacher-grid .teacher-grid-print{display:block!important;min-width:0;padding:0;page:teacher-grid-plan;color:#172b35;font:8pt/1.12 Arial,sans-serif;break-inside:avoid;page-break-inside:avoid}
body.printing-teacher-grid-large .teacher-grid-print{page:teacher-grid-large-plan}
body.printing-teacher-grid .teacher-grid-table th,body.printing-teacher-grid .teacher-grid-table td{padding:1px 3px}
.teacher-grid-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:0 0 8px}
.teacher-grid-title h1{font-size:15pt;line-height:1.1;margin:0 0 2px}
.teacher-grid-title p{font-size:8pt;margin:0;color:#425764}
.teacher-grid-title>span{white-space:nowrap;color:#425764;font-size:7.5pt}
.teacher-grid-table{width:100%;table-layout:fixed;border-collapse:collapse}
.teacher-grid-table th,.teacher-grid-table td{border:1px solid #abbec4;padding:3px 5px;vertical-align:top;text-align:left;overflow-wrap:anywhere;color:#172b35}
.teacher-grid-table thead th{background:#dfecef;text-align:center;font-size:9pt}
.teacher-grid-table thead th:first-child{width:19%;text-align:left}
.teacher-grid-table tbody th{font-weight:400;background:#f5f8f9}
.teacher-grid-table tbody th strong,.teacher-grid-table tbody th span,.teacher-grid-table tbody th small{display:block}
.teacher-grid-table tbody th strong{font-size:8.5pt}
.teacher-grid-table tbody th small{font-size:7pt;color:#425764}
.teacher-grid-table tr.teacher-grid-reading>th{background:#e3f1f2}
.teacher-grid-table tr.teacher-grid-math>th{background:#edf2dd}
.teacher-grid-table tr.teacher-grid-science>th{background:#eee8f5}
.teacher-grid-table tr.teacher-grid-section>th{background:#d9e4e8;text-transform:uppercase;letter-spacing:.04em;font-weight:700;font-size:7.5pt;padding:3px 5px}
.teacher-grid-name{display:block;white-space:nowrap}
body.printing-teacher-grid .teacher-grid-name{display:inline;white-space:nowrap}
body.printing-teacher-grid .teacher-grid-name:not(:last-child)::after{content:' · ';white-space:normal}
.teacher-grid-empty{color:#73848a}
.teacher-grid-foot{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #9fb0b7;margin-top:7px;padding-top:5px;color:#425764;font-size:7.5pt}
.teacher-grid-foot strong{white-space:nowrap;color:#172b35}
body.printing-routes .shell>:not(.student-routes-view){display:none!important}
body.printing-routes .routes-print{display:block!important;min-width:0;padding:0;page:routes-plan;color:#172b35;font:8pt/1.05 Arial,sans-serif}
body.printing-routes .routes-grid{font-size:inherit}
body.printing-routes .routes-counts{font-size:7.5pt}
body.printing-routes .route-place,body.printing-routes .route-place strong{font-size:7.3pt}
body.printing-routes .route-place small{font-size:7pt}
.routes-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:0 0 6px}
.routes-title h1{font-size:15pt;line-height:1.1;margin:0 0 2px}
.routes-title p{font-size:8pt;margin:0;color:#425764}
.routes-title>span{white-space:nowrap;color:#425764;font-size:7.5pt}
.routes-counts{display:flex;justify-content:space-between;gap:7px;background:#e7f0f2;border:1px solid #bacbd1;padding:4px 7px;margin-bottom:6px;font-size:7.5pt}
.routes-counts span{white-space:nowrap}
.routes-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.routes-grid{width:100%;table-layout:fixed;border-collapse:collapse}
.routes-grid th,.routes-grid td{border:1px solid #b8c8ce;padding:1px 2px;vertical-align:top;text-align:left;background:#fff;color:#172b35;font:inherit;overflow-wrap:anywhere}
.routes-grid thead th{background:#e7f0f2;font-weight:700;text-align:center}
.routes-grid thead th:first-child{width:28%;text-align:left}
.routes-grid tbody th{font-weight:700;background:#f7f9fa}
.routes-grid tbody tr{break-inside:avoid}
.routes-grid tbody tr.routes-unplaced th{background:#fbf4df}
.route-place{display:block;line-height:1.05;font-size:7.3pt}
.route-place+.route-place{border-top:1px dotted #b8c8ce;margin-top:2px;padding-top:2px}
.route-place strong,.route-place small{display:inline;line-height:1.05}
.route-place strong{font-size:7.3pt}
.route-place small{font-size:7pt;color:#425764}
.route-blank{display:block;text-align:center;color:#6c8089}
.routes-foot{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #9fb0b7;padding-top:5px;margin-top:6px;color:#425764;font-size:7pt}
.routes-foot>strong{white-space:nowrap;color:#172b35}
@media(max-width:800px){.schedule-action{margin-left:0}.find-layout{grid-template-columns:1fr}.find-search .search-results{max-height:220px}}
@media(max-width:500px){.page-heading{margin-top:18px}.staff-row{align-items:flex-start;flex-direction:column}.staff-actions{width:100%;justify-content:space-between}.placement-row{align-items:flex-start;flex-direction:column}.placement-row button{align-self:flex-start}}
@media(max-width:500px){.staff-heading,.preview-banner{align-items:flex-start;flex-direction:column}.staff-heading button{width:100%}}
