/* Compact month and selected-day details use the same layout on every screen. */
.shift-calendar-page,.shift-calendar-page>*{min-width:0;max-width:100%}
.shift-calendar-panel{overflow:hidden}
.shift-calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(160px,1fr);align-items:center;gap:18px;margin-bottom:22px}
.shift-calendar-toolbar>*{min-width:0;max-width:100%}
.shift-calendar-toolbar .schedule-month-heading{gap:6px}
.shift-calendar-toolbar .schedule-month-title{font-size:19px;white-space:nowrap}
.shift-calendar-toolbar .schedule-month-arrow{flex:0 0 32px;height:34px}
.shift-calendar-toolbar .schedule-employee-filter{min-width:0;width:min(100%,210px)}
.shift-calendar-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(270px,1fr);gap:26px;align-items:start}
.shift-calendar-layout>*,.shift-selected-heading>*{min-width:0}
.shift-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;width:100%;min-width:0}
.shift-weekday{padding:4px 0 7px;text-align:center;font-size:12px;font-weight:600;color:var(--text-2,#607569)}
.shift-date{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;min-height:92px;width:100%;padding:10px 8px;border:1px solid #bcc9c2;border-radius:9px;background:var(--bg-elevated,#fff);color:var(--text-1,#253731);text-align:left;font-variant-numeric:tabular-nums;line-height:1.2}
.shift-date>b{font-size:16px;font-weight:650;margin-bottom:4px}
.shift-date>span{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:2px;row-gap:0;min-width:0;max-width:100%;font-size:13px;line-height:1.3;white-space:normal;font-weight:400;color:var(--text-2,#607569)}
.shift-date>span strong,.shift-date>span i{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal}
.shift-date>span strong{font-weight:650;color:var(--text-1,#253731)}
.shift-date i{font-style:normal;color:var(--text-2,#607569)}
.shift-date.short{border-color:#b9685d;box-shadow:none}
.shift-date[aria-pressed=true]{background:var(--accent-soft,#edf5f0);box-shadow:inset 0 0 0 1px var(--accent,#196653);border-color:var(--accent,#196653)}
.shift-date.short[aria-pressed=true]{border-color:#b84b41;box-shadow:inset 0 0 0 1px #b84b41;background:#fff1ed;color:#9d352e}
.shift-date[aria-pressed=true]>span,.shift-date[aria-pressed=true] i{color:inherit}
.shift-date.today>b::after{content:"";display:inline-block;width:4px;height:4px;background:currentColor;border-radius:50%;margin:0 0 3px 4px}
.shift-date.off{background:var(--bg-soft,#edf1f0);color:var(--text-1,#253731)}
.shift-date>small{font-size:12px;font-weight:400;margin-top:5px}
.shift-date-empty{min-height:50px}
.shift-calendar-legend{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:14px;font-size:12px;line-height:1.5;color:var(--text-2,#607569)}
.shift-calendar-legend i{display:inline-block;width:10px;height:10px;border:1px solid #b9685d;border-radius:2px;vertical-align:-1px;margin-right:3px}
.shift-zero-note{margin:8px 0 0;font-size:12px;color:var(--text-2,#607569)}
.shift-selected-day{min-width:0;border-left:1px solid var(--glass-border,#dce5df);padding-left:24px}
.shift-selected-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}
.shift-selected-heading h2{font-size:19px;line-height:1.3}
.shift-selected-heading p{margin:4px 0 0;font-size:13px;color:var(--text-2,#607569)}
.shift-selected-heading .actions{justify-content:flex-end;max-width:175px;gap:6px}
.shift-selected-heading .actions button{white-space:nowrap}
.shift-coverage-warning{font-size:12px;color:#aa4138;line-height:1.5;background:#fff3ef;border-radius:7px;margin:0 0 15px;padding:9px 10px}
.shift-role-group{margin:0 0 20px}
.shift-role-group h3{font-size:12px;text-transform:uppercase;letter-spacing:.6px;margin:0 0 8px;color:var(--text-2,#607569)}
.shift-role-group.schedule-masters{padding-top:0;border:0}
.shift-person{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:7px 9px;padding:11px 0;border-bottom:1px solid var(--glass-border-soft,#edf0ee)}
.shift-person:last-child{border-bottom:0}
.shift-person-main{display:grid;min-width:0;gap:4px}
.shift-selected-day .shift-person-name{background:transparent;border:0;box-shadow:none;padding:0;color:var(--text-0,#243d32);text-align:left;border-radius:3px;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.shift-selected-day .shift-person-name:hover{text-decoration:underline;text-underline-offset:3px;background:transparent;border:0;box-shadow:none;filter:none}
.shift-person-main>strong{font-size:14px;overflow-wrap:anywhere}
.shift-person-hours{font-size:13px;line-height:1.4;color:var(--text-2,#607569);font-variant-numeric:tabular-nums}
.shift-attendance{font-size:12px;line-height:1.5;color:var(--text-2,#607569);white-space:nowrap;padding-top:1px}
.shift-attendance b{font-size:14px}
.shift-attendance.open{color:#247347;font-weight:600}
.shift-attendance.missing{color:#ad4840}
.shift-attendance.ended{color:var(--text-2,#607569)}
.shift-no-people{font-size:12px;color:var(--text-2,#607569);margin:10px 0 0;line-height:1.5}
.shift-replacement{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:11px;color:var(--text-2,#607569);line-height:1.5;overflow-wrap:anywhere}
.shift-replacement button{padding:4px 7px!important;font-size:10px!important}
.shift-reviews,.shift-calendar-page .schedule-details{max-width:100%;min-width:0;margin:0 0 20px;border:1px solid var(--glass-border,#dce5df);border-radius:11px;background:var(--bg-elevated,#fff);overflow:hidden}
.shift-reviews>summary,.shift-calendar-page .schedule-details>summary{padding:15px 18px;cursor:pointer;font-weight:600;font-size:13px;color:var(--text-1,#253731)}
.shift-calendar-page .schedule-details>.panel{margin:0 14px 14px;min-width:0;max-width:calc(100% - 28px)}
.shift-calendar-page .schedule-details .table-wrap{max-width:100%;overflow:auto}
.shift-review-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;min-width:0}
.shift-reviews>.shift-review-list{padding:0 16px 16px}
.shift-review{min-width:0;border:1px solid var(--glass-border,#dce5df);border-radius:9px;padding:13px}
.shift-review-heading{display:grid;gap:4px}
.shift-review-heading strong{font-size:13px;overflow-wrap:anywhere}
.shift-review-heading span{font-size:11px;color:var(--text-3,#79877f)}
.shift-review-explanation{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text-1,#253731)}
.shift-review-outcome{font-size:11px;font-weight:600;margin:10px 0}
.shift-review-outcome.accepted{color:#247347}.shift-review-outcome.rejected{color:#ad4840}.shift-review-outcome.pending{color:#89601e}
.shift-review .muted{font-size:11px;overflow-wrap:anywhere}
@media(max-width:1200px){.shift-calendar-layout{grid-template-columns:minmax(0,1fr);gap:22px}.shift-selected-day{border-left:0;border-top:1px solid var(--glass-border,#dce5df);padding:20px 0 0}.shift-month{max-width:650px}.shift-role-group{display:block}.shift-calendar-toolbar{grid-template-columns:minmax(0,1fr) auto}.shift-calendar-toolbar .schedule-employee-filter{grid-column:1/-1;justify-self:start;width:210px}.shift-calendar-toolbar .schedule-location-label{grid-row:1;grid-column:2}.shift-calendar-layout .shift-date{min-height:92px}}
@media(max-width:600px){.shift-calendar-page .page-head{gap:12px;margin-bottom:17px}.shift-calendar-page .page-head h1{margin-bottom:5px}.shift-calendar-page .page-head>div:last-child:has(button){width:100%}.shift-calendar-page .page-head button{padding:8px 12px;font-size:12px}.shift-calendar-panel{padding:13px!important}.shift-calendar-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:15px}.shift-calendar-toolbar .schedule-month-heading{width:100%;justify-content:space-between}.shift-calendar-toolbar .schedule-month-title{font-size:18px}.shift-calendar-toolbar .schedule-month-arrow{height:36px;width:36px;flex-basis:36px}.shift-calendar-toolbar .schedule-location-label{text-align:left;align-items:start;flex:1;max-width:45%;overflow-wrap:anywhere}.shift-calendar-toolbar .schedule-location-label strong{font-size:13px}.shift-calendar-toolbar .schedule-location-label small{font-size:12px}.shift-calendar-toolbar .schedule-employee-filter{width:auto;flex:1 1 50%;font-size:12px;gap:4px}.shift-calendar-toolbar .schedule-employee-filter select{font-size:12px;max-width:100%;padding:8px}.shift-month-grid{gap:4px}.shift-calendar-layout .shift-date{padding:8px 2px;min-height:88px;border-radius:7px;gap:4px}.shift-date>b{font-size:15px;margin-bottom:2px}.shift-date>span{font-size:12px;letter-spacing:0;column-gap:0}.shift-date>small{font-size:11px}.shift-date[aria-pressed=true]>span,.shift-date[aria-pressed=true] i{color:inherit}
.shift-date.today>b::after{margin-left:2px;width:3px;height:3px}.shift-calendar-legend{font-size:12px;gap:6px 10px}.shift-selected-heading{gap:8px;align-items:flex-start}.shift-selected-heading h2{font-size:18px}.shift-selected-heading .actions{max-width:160px}.shift-selected-heading .actions button{font-size:10px;padding:7px 8px}.shift-person{gap:6px}.shift-selected-day .shift-person-name{font-size:14px}.shift-attendance{font-size:12px}.shift-calendar-page .schedule-details>.panel{margin:0 8px 10px;max-width:calc(100% - 16px);padding:11px}.shift-reviews>summary,.shift-calendar-page .schedule-details>summary{padding:13px;font-size:12px}.shift-reviews>.shift-review-list{padding:0 10px 10px}}
#fields [data-shift-hours-option][hidden],#fields [data-shift-cancel-option][hidden]{display:none!important}
@media(max-width:600px){.shift-calendar-toolbar .schedule-location-label{flex:1 1 100%;max-width:100%;width:100%}.shift-calendar-toolbar .schedule-employee-filter{flex:1 1 100%;width:100%;max-width:100%}}

.shift-calendar-page .shift-date:focus-visible,.shift-calendar-page .schedule-month-arrow:focus-visible,.shift-selected-day .shift-person-name:focus-visible{outline:2px solid var(--accent,#196653);outline-offset:2px}
@media(max-width:360px){.shift-calendar-panel{padding:10px!important}.shift-calendar-layout .shift-date{padding-left:1px;padding-right:1px}}
