.school-workspace{display:grid;grid-template-columns:225px minmax(0,1fr);gap:20px;align-items:start}
.school-workspace.school-agenda-page{grid-template-columns:minmax(0,1fr);max-width:1180px;margin-inline:auto}
.school-main{min-width:0;display:grid;gap:16px}
.school-rail{background:#314257;color:#f4f8fd;border-radius:13px;overflow:hidden}
.school-rail summary{padding:14px 15px;font-weight:720;cursor:pointer}
.school-rail nav{display:grid;padding:0 6px 8px}
.school-rail a{display:grid;grid-template-columns:18px 1fr;align-items:center;gap:9px;padding:9px 9px;border-radius:6px;color:#e7eef7;font-size:13px;line-height:1.25}
.school-rail a:hover,.school-rail a[aria-current=page]{background:#1f618b;color:#fff}
.school-rail a .icon{width:16px;height:16px;opacity:.9}
.school-heading{display:flex;justify-content:space-between;align-items:end;gap:12px}
.school-heading p{color:var(--muted);font-size:13px;font-weight:650}
.school-heading h1{color:var(--ink);font-size:clamp(30px,3vw,43px);line-height:1.12;margin:4px 0;letter-spacing:-.035em}
.school-heading-actions,.school-panel-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.school-indicators{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.school-indicator{display:flex;justify-content:space-between;min-width:0;min-height:92px;background:#fff;border:1px solid #d3e3f0;border-radius:12px;overflow:hidden}
.school-indicator>div{padding:12px 12px;display:grid;align-content:center;gap:3px}
.school-indicator strong{font-size:28px;line-height:1;color:#15334d}
.school-indicator span{font-size:13px;color:#486278}
.school-indicator small{font-size:10px;color:#516b80}
.school-indicator>span{display:grid;place-items:center;flex:0 0 47px;background:#236b94;color:#fff}
.school-indicator:nth-child(2)>span{background:#127854}
.school-indicator:nth-child(3)>span{background:#823e68}
.school-indicator .icon{width:25px;height:25px}
.school-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(265px,1fr);gap:14px;align-items:start}
.school-dashboard-calls{display:grid;gap:8px;min-width:0}
.school-life-panel{min-width:0;overflow:hidden}
.school-life-panel>header{padding:12px 15px;border-bottom:1px solid #dce7f0;background:#eef6fe}
.school-life-panel>header h2{font-size:16px;line-height:1.25;color:#173651}
.school-panel-calls>header{background:#176a50}
.school-panel-calls>header h2{color:#fff}
.school-panel-calendar>header{background:#e8f3fc}
.school-calendar{padding:12px}
.school-calendar-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px}
.school-calendar-toolbar nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.school-calendar-toolbar nav:last-child a{padding:7px 8px;font-size:12px;color:#29465f;border-radius:6px}
.school-calendar-toolbar nav:last-child a[aria-current=page]{color:#fff;background:#235d88}
.school-calendar-toolbar .button{min-height:32px;padding:5px 8px;font-size:11px}
.school-calendar-date{font-size:17px;padding:11px 0 8px;text-transform:capitalize}
.school-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #dce8f1;border-left:1px solid #dce8f1}
.school-weekday,.school-day-cell{border-bottom:1px solid #dce8f1;border-right:1px solid #dce8f1;min-width:0}
.school-weekday{font-size:11px;text-align:center;font-weight:650;padding:5px 2px;background:#f5f9fd;color:#3c5369}
.school-day-cell{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:78px;background:#fff;padding:5px;overflow-wrap:anywhere;color:#1a405e}
.school-day-cell>span:first-child{font-weight:760;font-size:15px;line-height:1}
.school-day-cell small{font-size:10px;line-height:1.1;color:#4b6178}
.school-day-cell.outside{background:#f5f8fa}
.school-day-cell.selected{background:#fff3d2;box-shadow:inset 0 0 0 2px #946524}
.school-day-cell:hover{background:#eaf5ff}
.school-day-event{display:block;width:100%;border-radius:3px;background:#dfefff;color:#244d76;padding:2px 3px;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.school-day-event.jewish{background:#f2e8f8;color:#5d3177}
.school-calendar-day{padding:10px 0;margin-top:8px;border-top:1px solid #dce8f1}
.school-calendar-day h3{font-size:14px;text-transform:capitalize}
.school-calendar-day>p{font-size:12px;color:#597289;margin-top:2px}
.school-events,.school-call-list{list-style:none;margin:0;padding:0}
.school-events li{display:flex;justify-content:space-between;gap:10px;align-items:start;padding:9px 0;border-bottom:1px solid #e8eff6}
.school-events li strong{font-size:14px}
.school-events li p{color:#465d74;font-size:12px;margin-top:4px}
.school-call-list li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:7px;padding:10px 11px;align-items:center;border-bottom:1px solid #e3edf4}
.school-call-list li:nth-child(even){background:#f6fafd}
.school-call-list li strong{display:block;font-size:13px;color:#132e47}
.school-call-list li div>span{display:block;font-size:11px;line-height:1.45;color:#4b6478}
.school-call-time{font-size:13px;font-weight:740;font-variant-numeric:tabular-nums}
.school-call-time small{display:block;font-weight:500;color:#4d657e}
.school-call-list .button{padding:6px 7px;font-size:11px;line-height:1.2;white-space:normal;text-align:center}
.school-call-action,.school-call-action:hover{background:#ac392f;color:#fff;border-color:#ac392f}
.school-filter{display:flex;align-items:end;flex-wrap:wrap;gap:8px}
.school-filter label{display:grid;gap:3px;font-size:12px;font-weight:680;color:#254760}
.school-filter input,.school-filter select,.school-table input,.school-table select{max-width:100%;min-width:0;border:1px solid #b7cde0;border-radius:7px;background:#fff;color:#193751;padding:7px 9px;font:inherit}
.school-filter input[type=date]{min-height:37px}
.school-register-filter{margin-bottom:14px}
.school-register-filter label{min-width:0;flex:1 1 146px}
.school-register-filter :is(input,select){width:100%;min-height:39px}
@media(max-width:640px){.school-register-filter :is(input,select){font-size:16px}}
.school-pager{display:flex;justify-content:flex-end;align-items:center;padding:9px 12px;gap:8px;font-size:12px}
.school-panel-actions{padding:10px 12px}
.school-calendar .school-panel-actions,.school-editor .school-panel-actions{padding-inline:0}
.school-empty{padding:13px;color:#526b81;font-size:13px}
.school-calendar-day .school-empty{padding:9px 0 0}
.school-table{width:100%;font-size:13px}
.school-table td,.school-table th{padding:9px 10px;vertical-align:middle;white-space:normal}
.school-subject-link{color:#286396;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.school-editor,.school-exchange-detail{padding:14px}
.school-editor>p{color:#4b6478;margin-bottom:13px}
.school-editor .school-table{margin-top:16px}
.school-exchange-detail article{padding:12px 0;border-bottom:1px solid #dce8f1}
.school-exchange-detail article time{margin-inline-start:10px;font-size:12px;color:#506b82}
.school-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin-top:5px}
.school-workspace :is(a,button,input,summary,select,textarea):focus-visible{outline:2px solid #188ad3;outline-offset:2px}
@media(max-width:1390px) and (min-width:1051px){
 .school-workspace{grid-template-columns:180px minmax(0,1fr);gap:13px}
 .school-dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(235px,.9fr)}
 .school-call-list li{grid-template-columns:37px minmax(0,1fr) auto;gap:5px;padding-inline:7px}
 .school-rail a{font-size:12px}
}
@media(max-width:1050px){
 .school-workspace{grid-template-columns:minmax(0,1fr)}
 .school-rail nav{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:740px){
 .school-dashboard-grid,.school-indicators{gap:8px}
 .school-dashboard-grid{grid-template-columns:minmax(0,1fr)}
 .school-dashboard-calls{grid-row:1}
 .school-rail nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .school-rail a{font-size:12px}
 .school-heading{align-items:start;flex-direction:column}
 .school-indicator{min-height:75px}
 .school-indicator>div{padding:8px}
 .school-indicator strong{font-size:21px}
 .school-indicator span{font-size:11px}
 .school-indicator>span{display:none}
 .school-calendar{padding:8px}
 .school-day-cell{min-height:56px;padding:3px}
 .school-day-cell small{font-size:8px}
 .school-day-cell>span:first-child{font-size:12px}
}
.school-print-bulletin{background:#fff;padding:20px}
.school-print-bulletin>header,.school-print-bulletin>footer{padding:12px 0}
.school-print-bulletin>header h2{font-size:25px}
.school-print-bulletin .school-table{border-block:1px solid #c4d8ea}
@media print{
  @page{size:A4;margin:17mm}
  body:has(.school-print-bulletin) :is(.sidebar,.topbar,.school-rail,.school-heading,.school-filter,.school-panel-actions,.school-life-panel>header){display:none!important}
  body:has(.school-print-bulletin) :is(.body-area,.page,.school-workspace,.school-main,.school-life-panel){display:block;width:100%;margin:0;padding:0;box-shadow:none;border:0;overflow:visible}
  .school-print-bulletin .table-scroll{overflow:visible}
  .school-print-bulletin{padding:0}
  .school-print-bulletin table tr{break-inside:avoid}
}
@media print{
 .school-livret td:last-child,.school-livret th:last-child{display:none}
}

.school-bulletin-block{margin:14px 0;border:1px solid #c4d8ea;border-radius:7px;overflow:hidden}
.school-bulletin-block>header{background:#edf5ff;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:10px 12px}
.school-bulletin-block>header h3{font-size:18px}
.school-bulletin-table{table-layout:fixed;width:100%}
.school-bulletin-table th:first-child{width:40%}
.school-bulletin-table th:nth-child(2){width:23%}
.school-bulletin-table :is(th,td){text-align:left;overflow-wrap:anywhere}
.school-bulletin-table :is(th,td):nth-child(2){text-align:right}
.school-bulletin-subject th,.school-bulletin-subject td:nth-child(2){font-weight:700}
.school-bulletin-component th{font-weight:400;padding-inline-start:25px}
.school-bulletin-component small,.school-bulletin-bilan{font-size:.83em;color:#405a77}
.school-component-setting{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}
@media(max-width:620px){
 .school-print-bulletin{padding:12px}
 .school-bulletin-table :is(th,td){padding:6px}
 .school-bulletin-component th{padding-inline-start:14px}
 .school-component-setting{grid-template-columns:1fr;gap:0}
}
@media print{
 .school-bulletin-block>header{break-after:avoid;background:#eef4fb!important;print-color-adjust:exact}
 .school-bulletin-block{overflow:visible}
 .school-bulletin-table tbody{break-inside:avoid}
}

/* Sunday-first agenda; Saturday is identified by its civil date. */
.school-calendar-grid .school-day-cell.school-shabbat{background:#f0ecfa;box-shadow:inset 3px 0 #aaa0d6}
.school-calendar-grid .school-day-cell.school-shabbat.selected{background:#fff3d2;box-shadow:inset 0 0 0 2px #946524}
.school-calendar-grid .school-weekday:last-of-type{color:#514578}
.school-day-cell .shabbat-times{display:flex;flex-direction:column;gap:3px;margin-top:5px;padding-top:4px;border-top:1px solid #c7bfdf;color:#514578;font-size:11px;line-height:1.25;white-space:normal;min-width:0}
.school-day-cell .shabbat-times>span{display:flex;flex-wrap:wrap;column-gap:3px;justify-content:space-between}
.school-day-cell .shabbat-times b{font-variant-numeric:tabular-nums;white-space:nowrap}
.school-calendar-day>.shabbat-times{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0;color:#514578}
.shabbat-source,.shabbat-method{font-size:12px;line-height:1.5;color:#4b6178;margin:10px 0}.shabbat-method summary{cursor:pointer}.shabbat-unavailable{font-size:10px!important;overflow-wrap:anywhere}
@media(max-width:600px){.school-day-cell .shabbat-times{font-size:9px;gap:5px}.school-day-cell .shabbat-times>span{flex-direction:column;gap:1px}.school-day-cell.school-shabbat{min-height:110px}.shabbat-source,.shabbat-method{font-size:11px}}

.school-day-cell.school-closure-full{background:#fff0e8;border-color:#e4a07c}.school-day-cell.school-closure-partial{background:#fff9df;border-color:#d7b954}.school-day-event.school-event-closure{background:#fbe0d2;color:#783419}.school-day-event.school-event-partial{background:#fff0b7;color:#664900}
