/* Only the requested day filtering; the underlying scheduler retains its style. */
.inline-calendar thead th:has(.schedule-request-day){padding:0}
.schedule-request-day{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;min-height:94px;padding:12px 6px;background:transparent;border:0;border-radius:0;color:inherit;font:inherit;cursor:pointer}
.schedule-request-day strong{font-size:22px}.schedule-request-day small{font-size:10px;font-weight:400}
.schedule-request-day[aria-pressed=true]{background:#292929;box-shadow:inset 0 -3px 0 #b69a5e;color:#fff}
.schedule-request-day:focus-visible{outline:2px solid #d2b573;outline-offset:-3px}
.schedule-planner-names .leave-person-button.schedule-requested-person,.schedule-planner-names .leave-person-button.schedule-requested-person:hover,.schedule-planner-names .leave-person-button.schedule-requested-person.chosen{background:#000!important;color:#fff!important;border-color:#000!important}
.schedule-planner-names .leave-person-button.schedule-requested-person.chosen{outline:2px solid #d2b573;outline-offset:2px}
.schedule-planner-names .leave-person-button.schedule-assigned-person:not(.schedule-requested-person),.schedule-planner-names .leave-person-button.schedule-assigned-person:not(.schedule-requested-person):hover,.schedule-planner-names .leave-person-button.schedule-assigned-person:not(.schedule-requested-person).chosen{background:#b8b8b8!important;color:#292929!important;border-color:#999!important}
.schedule-leave-strip[hidden]{display:none!important}

@media(max-width:760px){.inline-calendar:has(.schedule-request-day){min-width:850px}}

/* Fixed column-major kitchen groups, including on narrow screens. */
.person-days-group{margin:22px 0}.person-days-group h3{font-size:22px;margin:0 0 14px}
.person-days-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}
.person-days-column{display:flex;flex-direction:column;gap:12px;min-width:0}
.person-days-column p{margin:0;line-height:1.6}.person-days-column strong{margin-right:5px}
@media(max-width:600px){.person-days-columns{gap:10px}.person-days-column p{font-size:14px}.person-days-column strong{display:block}}

.schedule-weekly-high{color:#c51d28}.schedule-weekly-low{color:#1672c4}
.schedule-swatch-0{--swatch:#72c3f4}.schedule-swatch-1{--swatch:#f4f1e9}.schedule-swatch-2{--swatch:#f5d35f}.schedule-swatch-3{--swatch:#f6a54c}.schedule-swatch-4{--swatch:#f58d83}.schedule-swatch-5{--swatch:#c294f0}
.summary-order-editor>summary{cursor:pointer;font-weight:700}.summary-order-editor>summary::marker{color:#92743c}
.summary-order-editor[open]>summary{margin-bottom:18px}.summary-order-editor [hidden]{display:none!important}
.summary-order-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:10px}.summary-order-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #d8cebd;border-radius:10px}
.summary-order-row-tools{display:flex;align-items:center;gap:6px}.summary-order-row-tools .btn{padding:9px 12px;min-width:38px}.summary-order-row-tools .field{margin:0;font-size:12px}.summary-order-row-tools select{font-size:13px;padding:6px;min-width:90px}
.summary-order-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.summary-order-columns .summary-order-list li{display:block}.summary-order-columns .summary-order-row-tools{margin-top:10px;flex-wrap:wrap}.summary-order-columns h4{margin:14px 0}
@media(max-width:800px){.summary-order-columns{grid-template-columns:1fr}.summary-order-columns .summary-order-list li{display:flex}.summary-order-columns .summary-order-row-tools{margin-top:0}}
@media print{.summary-order-editor{display:none!important}}
.calendar-name-row{position:relative}.scheduler-cell{position:relative}
.calendar-probation-count{position:absolute;top:4px;right:6px;min-width:22px;height:22px;display:grid;place-items:center;padding:0 3px;border-radius:6px;background:#f8f4e9;color:#595142;font:600 12px/1 'Segoe UI',sans-serif;z-index:2;pointer-events:none;box-shadow:0 0 0 1px #bdae8d}
.calendar-name-row:has(.calendar-probation-count) input{padding-right:38px}.calendar-probation-count.probation-day-warning{font-weight:800;color:#c51d28}

/* Only the request strips change. Original page, cells, controls and colours stay. */
.timetree-calendar .leave-date{overflow:visible}
.timetree-calendar .leave-events.leave-merged-events{display:grid;grid-template-rows:repeat(var(--leave-lanes,1),27px);gap:3px;overflow:visible}
.timetree-calendar .leave-merged-events .leave-event{position:relative;z-index:1;min-width:0}
.timetree-calendar .leave-event.leave-joined-left{margin-left:-4px;border-top-left-radius:0;border-bottom-left-radius:0;padding-left:11px}
.timetree-calendar .leave-event.leave-joined-right{margin-right:-5px;border-top-right-radius:0;border-bottom-right-radius:0;padding-right:12px}
@media(max-width:650px){.timetree-calendar .leave-events.leave-merged-events{grid-template-rows:repeat(var(--leave-lanes,1),20px)}.timetree-calendar .leave-event.leave-joined-left{padding-left:7px}.timetree-calendar .leave-event.leave-joined-right{padding-right:8px}}

/* Keep dates legible in the phone's reading view as well as in the editor. */
@media screen and (max-width:760px){
 .calendar-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .calendar-scroll>.inline-calendar{min-width:850px}
 .inline-calendar thead th>span,.inline-calendar thead th>small,.schedule-request-day>span,.schedule-request-day>small{white-space:nowrap;overflow-wrap:normal;word-break:normal}
}

/* Week navigation and page actions stay separate from the calendar workspace tabs. */
.schedule-week-navigation{margin-bottom:12px}.schedule-page-actions{margin-top:0;margin-bottom:22px}
.schedule-workspace-switch{display:flex;gap:10px;align-items:center;margin:0 0 12px}
.schedule-workspace-switch>.btn{min-width:100px;margin:0}
@media screen and (max-width:760px){
 .schedule-week-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
 .schedule-week-navigation>.field{grid-column:1/-1;grid-row:1;min-width:0;margin:0}
 .schedule-week-navigation>.field>input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 .schedule-week-navigation>.btn{width:100%;padding:12px 8px}
 .schedule-page-actions{display:flex;gap:10px}.schedule-page-actions>.btn{flex:1 1 calc(50% - 10px);padding:12px 8px}
 .schedule-page-actions>.schedule-export-actions{flex-basis:100%;justify-content:flex-start}
 .schedule-workspace-switch>.btn{flex:1;min-width:0}
}

.summary-inline-order{display:inline-flex;gap:5px;margin-left:12px;vertical-align:middle}.summary-inline-order button{width:30px;height:30px;min-width:30px;padding:0;border-radius:8px;font-size:16px}.summary-inline-order button:disabled{opacity:.35}

.summary-inline-order{gap:8px;margin-left:10px}.summary-inline-order button,.summary-inline-order button:hover,.summary-inline-order button:active{display:inline-block;width:20px;min-width:20px;height:28px;margin:0;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:inherit;font-size:19px;line-height:28px;transform:none!important;cursor:pointer}.summary-inline-order button:disabled{opacity:.25;cursor:default}.summary-inline-order button:focus-visible{outline:2px solid #ac8c4d;outline-offset:2px}
