.schedule-editor-panel{scroll-margin-top:24px}
.schedule-calendar-panel{padding:20px 24px;height:100%;min-height:0}
.schedule-workspace{display:grid;flex:1;min-height:0;grid-template-columns:var(--workspace-side-width) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:var(--workspace-gap)}
.schedule-people-panel{display:flex;flex-direction:column;min-width:0;min-height:0;max-height:100%;align-self:start}
.schedule-people-panel .panel-heading{flex-shrink:0}
.schedule-people-count{padding:2px 6px;border-radius:4px;background:#f1f4f8;font-size:13px;color:#8b99ad}
.schedule-people-list{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.schedule-person-rows{list-style:none;margin:0;padding:0}
.schedule-person-row{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;padding:14px 14px 14px 12px;background:white;border:0;border-left:2px solid transparent;border-bottom:1px solid #edf0f5;text-align:left;color:#6c7d96}
.schedule-person-rows li:last-child .schedule-person-row{border-bottom:0}
.schedule-person-row>span{min-width:0}
.schedule-person-row strong{display:block;font-size:14px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
.schedule-person-row small{display:block;font-size:12px;color:#a0aabc;margin-top:3px}
.schedule-person-row>svg{width:14px;height:14px;color:#b4c0d2;flex-shrink:0}
.schedule-person-row:hover{background:#f6f8fc}
.schedule-person-row.selected{background:#eef4ff;border-left-color:#739de0;color:#5278b2}
.schedule-person-row.selected>svg{color:#7c9dcc}
.schedule-people-empty{padding:22px 15px;font-size:14px;color:#9aa5b6;line-height:1.7}
.schedule-people-empty .text-button{display:inline-block;font-size:13px;margin-top:9px}
.schedule-calendar-host{min-width:0;min-height:0;container-type:inline-size;container-name:courier-calendar}
.schedule-month-calendar{height:100%;min-height:0;display:flex;flex-direction:column}
.schedule-calendar-toolbar,.schedule-calendar-footer,.schedule-pattern-summary{flex-shrink:0}
.schedule-calendar-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.schedule-calendar-toolbar>[data-edit-weekly]{min-width:116px;min-height:38px;padding:6px 26px;font-size:15px}
.schedule-month-navigation{display:flex;align-items:center;gap:9px;margin-left:auto}
.schedule-month-navigation>.icon-button{width:28px;height:28px}
.schedule-month-navigation>.icon-button>svg{width:14px;height:14px}
.schedule-month-title{min-width:150px;margin:0;text-align:center;text-transform:capitalize;font-size:16px;font-weight:500;color:#657b9b}
.schedule-pattern-summary{margin:-4px 0 14px;font-size:14px;color:#6687b6}
.schedule-calendar{display:grid;flex:1;min-height:0;container-type:size;container-name:calendar-grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:32px repeat(var(--calendar-weeks,6),minmax(0,1fr));gap:5px}
.schedule-calendar>span{text-align:center;font-size:12px;color:#98a2b3;padding:6px 0}
.schedule-calendar-day{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:7px;position:relative;min-width:0;min-height:0;padding:8px 7px;text-align:left;border:1px solid #e9ecf1;border-radius:6px;background:#f8f9fb;color:#9aa4b5}
.schedule-calendar-day.working{background:#edf4ff;border-color:#dbe7fb;color:#4e77b6}
.schedule-calendar-day.selected{outline:2px solid #749fe0;outline-offset:1px}
.schedule-calendar-number{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px;font-size:14px;line-height:1;text-align:center}
.schedule-calendar-day.today .schedule-calendar-number{color:white;background:#739bda;border-radius:50%}
.schedule-calendar-status{display:block;width:100%;min-width:0;font-size:12px;line-height:1.5;color:#9aa6b8}
.schedule-calendar-day.working .schedule-calendar-status{color:#6687b6}
.calendar-off-short,.calendar-work-short{display:none}
.calendar-unconfigured{color:#c3cbd8}
.schedule-calendar-day>i{position:absolute;top:10px;right:7px;width:4px;height:4px;border-radius:50%;background:#b38a47}
.schedule-calendar-footer{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;min-height:42px;margin-top:12px}
.schedule-calendar-legend{display:flex;flex:1 1 220px;align-self:flex-end;justify-content:flex-start;flex-wrap:wrap;gap:8px 12px;font-size:12px;color:#99a3b4;margin:0}
.schedule-calendar-legend span{display:flex;align-items:center;gap:4px}
.schedule-calendar-legend span:before{content:'';width:7px;height:7px;border-radius:2px;background:#e7ebf1}
.schedule-calendar-legend .working:before{background:#b9d0f5}
.schedule-calendar-legend .exception:before{background:#c5a16b;border-radius:50%}
.schedule-week-dialog{max-width:560px}
.schedule-week-dialog .dialog-heading{position:sticky;top:0;background:white;z-index:2}
.schedule-week-dialog .dialog-footer{position:sticky;bottom:0;z-index:2}
.schedule-settings{min-width:0;margin:0;padding:0;border:0}
[data-schedule-actions]{display:flow-root;flex:0 1 209px;min-width:0;max-width:100%;min-height:42px;margin-left:auto}
[data-schedule-actions]:empty{display:none}
.schedule-savebar{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.schedule-save-buttons{display:flex;width:100%;justify-content:flex-end;gap:9px}
.schedule-save-buttons .button{flex:1;min-width:0}
.schedule-save-error{max-width:360px;margin:0 0 10px;padding:0 2px;font-size:14px;line-height:1.6;color:#b75b4e}
.schedule-calendar-day.changed{border-color:#9ebce8}
.schedule-calendar-day:disabled{cursor:wait;opacity:.65}
.schedule-presets{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:18px}
.schedule-presets>span{font-size:13px;color:#8f99a9}
.schedule-presets .button{min-height:34px;padding:5px 8px;font-size:13px}
.schedule-presets .text-button{margin-left:auto;font-size:13px}
.schedule-cycle-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.schedule-cycle-start{grid-column:1/-1}
.schedule-cycle-help{font-size:14px;line-height:1.7;color:#8f99a9;margin:0}
.schedule-week{border:1px solid var(--border);border-radius:8px;overflow:hidden}
.schedule-day{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px}
.schedule-day+.schedule-day{border-top:1px solid var(--border)}
.schedule-day>strong{font-size:14px;font-weight:500;color:#60708a}
.schedule-work-toggle{display:flex;align-items:center;gap:8px;min-width:125px;min-height:28px;font-size:14px;color:#8f99a9;cursor:pointer}
.schedule-work-toggle input{width:16px;height:16px;accent-color:#739de0;cursor:pointer}
.schedule-work-toggle input:checked+span{color:#577eb9}
.courier-schedule-state{font-size:13px;color:#98a3b4}
.courier-footer{gap:9px;flex-wrap:wrap}
.courier-footer .button{min-height:36px;padding:5px 8px;font-size:13px}
.departure-fields{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.departure-fields input{font-size:14px}
@container courier-calendar (max-width:560px){
  .schedule-calendar-day{min-height:0;padding:6px 4px;gap:5px}
  .calendar-off-full,.calendar-work-full{display:none}
  .schedule-calendar-status{font-size:12px;overflow-wrap:anywhere;line-height:1.3}
  .calendar-off-short,.calendar-work-short{display:block;font-size:12px}
  .schedule-month-title{min-width:130px;font-size:15px}
}
@media(max-width:720px){
  .schedule-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px}
  .schedule-people-panel{max-height:min(22dvh,180px)}
}
@media(max-width:550px){
  .schedule-calendar-panel{padding:16px 13px}
  .schedule-day{gap:9px;padding:11px}
  .schedule-work-toggle{min-width:115px}
  .schedule-presets>span{flex-basis:100%}
  .schedule-presets .text-button{margin-left:0}
}
@container courier-calendar (max-width:560px){
  .schedule-calendar-panel{padding:12px}
  .schedule-calendar-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-bottom:10px}
  .schedule-month-navigation{gap:4px;min-width:0;margin-left:0}
  .schedule-month-title{min-width:0;flex:1;font-size:13px;line-height:1.35}
  .schedule-month-navigation>.icon-button{flex-shrink:0;width:24px;height:26px}
  .schedule-calendar-toolbar>[data-edit-weekly]{min-width:72px;min-height:34px;padding:5px 8px;font-size:13px}
  .schedule-calendar-footer{gap:8px;min-height:0;margin-top:8px}
  .schedule-calendar-legend{flex-basis:100%;gap:4px 8px;font-size:10px}
  [data-schedule-actions]{flex:1 1 100%;min-height:0}
  .schedule-save-buttons .button{min-height:34px;font-size:13px;padding:5px 10px}
  .schedule-calendar{grid-template-rows:26px repeat(var(--calendar-weeks,6),minmax(0,1fr));gap:4px}
  .schedule-calendar-day{padding:4px;gap:2px}
  .schedule-calendar-number{width:20px;height:20px;font-size:13px}
}
@media(max-height:650px){
  .schedule-calendar-panel{padding-top:12px;padding-bottom:12px}
  .schedule-calendar-toolbar{margin-bottom:10px}
  .schedule-calendar-footer{margin-top:8px;min-height:0}
  .schedule-calendar{grid-template-rows:24px repeat(var(--calendar-weeks,6),minmax(0,1fr));gap:3px}
  .schedule-calendar-day{padding:3px;gap:2px}
  .schedule-calendar-number{width:18px;height:18px;font-size:12px}
}
@media(max-height:550px){
  .schedule-person-row{padding-top:8px;padding-bottom:8px}
}
@container calendar-grid (max-height:340px){
  .schedule-calendar-status{display:none}
  .schedule-calendar-day{justify-content:center;align-items:center;padding:2px;gap:0}
}
