.employee-workspace #employeeCalendar {
 --employee-past-surface:#f3f0ed;
 --employee-past-selected:#e9e4df;
 --employee-past-ink:#625c58;
 --employee-past-line:#ddd6d0;
 --employee-past-outline:#827970;
}
html:is(.client-dark,.staff-dark,.desk-dark,.dark) .employee-workspace #employeeCalendar {
 --employee-past-surface:#332e2b;
 --employee-past-selected:#413a35;
 --employee-past-ink:#c5bab2;
 --employee-past-line:#514942;
 --employee-past-outline:#ae9b8d;
}
.employee-calendar-months {
 min-width:0;
 display:grid;
 gap:12px;
}
.employee-workspace #employeeCalendar .employee-month {
 padding:clamp(8px,2vw,20px);
 margin-top:0;
}
.employee-month-header {
 display:grid;
 grid-template-columns:44px minmax(0,1fr) 44px;
 align-items:center;
 gap:10px;
 margin-bottom:12px;
}
.employee-workspace #employeeCalendar .employee-month-header button {
 display:grid;
 place-items:center;
 padding:0;
 min-height:44px;
}
.employee-month-header h2 {
 margin:0;
 text-align:center;
}
.employee-month-following .employee-month-header { display:block; }
.employee-month-history {
 display:flex;
 justify-content:flex-end;
 margin-bottom:8px;
}
.employee-workspace #employeeCalendar .employee-month-history button {
 min-height:40px;
 padding:.35rem .65rem;
 font-size:.83rem;
}
.employee-month-grid {
 display:grid;
 grid-template-columns:repeat(7,minmax(0,1fr));
 gap:5px;
}
.employee-weekday {
 color:var(--hf-muted);
 text-align:center;
 font-size:.75rem;
}
.employee-workspace #employeeCalendar .employee-calendar-day {
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 gap:2px;
 min-width:0;
 padding:clamp(4px,1vw,9px);
 min-height:clamp(42px,6.5vw,80px);
 color:var(--hf-ink);
 background:var(--hf-surface);
 border:1px solid var(--hf-line);
 text-align:start;
}
.employee-workspace #employeeCalendar .employee-calendar-day.has-shift { background:var(--hf-header); }
.employee-workspace #employeeCalendar .employee-calendar-day[aria-pressed="true"] {
 background:var(--hf-soft,var(--hf-header));
 color:var(--hf-ink);
 border-color:var(--hf-accent);
 box-shadow:inset 0 0 0 1px var(--hf-accent);
}
.employee-calendar-day[aria-current="date"] > span:first-child { text-decoration:underline; text-underline-offset:2px; }
.employee-workspace #employeeCalendar .employee-calendar-day small {
 color:var(--hf-muted);
 font-size:clamp(.69rem,1.03vw,.82rem);
 line-height:1.2;
}
.employee-workspace #employeeCalendar .employee-calendar-day.is-past {
 color:var(--employee-past-ink);
 background:var(--employee-past-surface);
 border-color:var(--employee-past-line);
}
.employee-workspace #employeeCalendar .employee-calendar-day.is-past[aria-pressed="true"] {
 background:var(--employee-past-selected);
 border-color:var(--employee-past-outline);
 box-shadow:none;
}
.employee-workspace #employeeCalendar .employee-calendar-day.is-past small { color:var(--employee-past-ink); }
.employee-workspace #employeeCalendar .employee-calendar-day.is-past:focus-visible {
 outline-color:var(--employee-past-outline);
}
.employee-workspace #employeeCalendar .employee-day-visits { font-weight:700; }
.employee-calendar-agenda h3 { margin:16px 0 8px; }
.employee-day-windows {
 display:grid;
 gap:6px;
 list-style:none;
 margin:8px 0 14px;
 padding:0;
}
.employee-day-windows li {
 display:flex;
 justify-content:space-between;
 flex-wrap:wrap;
 gap:8px;
 padding:8px 10px;
 border:1px solid var(--hf-line);
 border-radius:8px;
 background:var(--hf-header);
}
.employee-day-windows span { color:var(--hf-muted); }
.employee-calendar-agenda { min-width:0; }
.employee-calendar-times { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.employee-calendar-times input { min-width:0; }
#employeeDialog { --clock-label-height:20px; --clock-label-gap:8px; --clock-control-height:52px; }
.employee-day-windows li.employee-day-break { border-style:dashed; background:transparent; }
.employee-shift-date {
 margin:12px 0;
 padding:8px 10px;
 color:var(--hf-ink);
 background:var(--hf-header);
 border:1px solid var(--hf-line);
 border-radius:8px;
 overflow-wrap:anywhere;
}
.employee-schedule-restriction { margin:0 0 4px; color:var(--hf-muted); font-size:.82rem; line-height:1.35; }
.employee-workspace #closeEmployeeDialog {
 display:grid;
 place-items:center;
 flex:0 0 40px;
 width:40px;
 min-height:40px;
 padding:0;
}
.employee-workspace #closeEmployeeDialog svg { display:block; }
#employeeShiftFields { min-width:0; margin:0; padding:0; border:0; }
#employeeShiftFields[hidden] { display:none; }
.employee-shift-breaks { margin-top:12px; }
.employee-shift-breaks h3 { margin:0 0 7px; }
[data-shift-breaks] { display:grid; gap:7px; }
.employee-shift-break { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; gap:6px; align-items:start; }
.employee-shift-break input { min-width:0; width:100%; }
.employee-shift-breaks button { margin:0; }
.employee-shift-break > [data-remove-shift-break] {
 margin-top:calc(var(--clock-label-height) + var(--clock-label-gap));
 height:var(--clock-control-height);
}
[data-add-shift-break] { margin-top:8px !important; }
@media (max-width:460px) {
 .employee-shift-break { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .employee-shift-break > [data-remove-shift-break] { grid-column:2; justify-self:end; margin-top:0; }
}
.schedule-request > div:first-child { min-width:0; overflow-wrap:anywhere; }
.schedule-request > div:first-child > span { display:block; }
#staffScheduleInbox [role="status"]:empty { display:none; }
#staffScheduleInbox [data-schedule-inbox] { margin-top:10px; }
@media (max-width:580px) {
 .employee-month-grid { gap:3px; }
 .employee-workspace #employeeCalendar .employee-calendar-day { align-items:center; border-radius:7px; }
 .employee-day-visits span + span { display:none; }
 .employee-day-visits span {
  border-radius:50%;
  padding:.1rem .3rem;
  color:var(--hf-ink);
  background:var(--hf-soft,var(--hf-header));
 }
 .employee-workspace #employeeCalendar .is-past .employee-day-visits span {
  color:var(--employee-past-ink);
  background:var(--employee-past-selected);
 }
}

.employee-workspace .employee-shell { max-width:1420px; }
.employee-schedule-shell {
 display:grid; grid-template-columns:minmax(155px,198px) minmax(0,1fr);
 gap:14px; align-items:start;
}
.employee-schedule-shell:not(:has(.employee-schedule-sidebar)) { grid-template-columns:minmax(0,1fr); }
.employee-schedule-calendar { min-width:0; }
.employee-workspace .employee-schedule-sidebar {
 display:grid; gap:5px; margin:0; padding:12px;
}
.employee-schedule-sidebar h2 { font-size:1.25rem; margin:0 0 5px; }
.employee-schedule-sidebar .employee-schedule-restriction { grid-column:1/-1; }
.employee-workspace .employee-schedule-sidebar button {
 padding:8px 10px; min-height:40px; text-align:start; line-height:1.25;
}
.employee-workspace #employeeCalendar .employee-calendar-day { min-height:88px; }
.employee-workspace #employeeCalendar .employee-calendar-agenda { scroll-margin-top:12px; }
.employee-workspace #employeeCalendar .employee-day-shift { display:block; min-width:0; max-width:100%; }
.employee-day-shift .staff-shift-tile { justify-items:start; text-align:start; }
.employee-day-shift .staff-shift-tile-time { justify-content:start; }
.employee-request-urgent { color:var(--hf-accent); font-weight:700; }
.employee-workspace #employeeDialog.employee-wide-dialog { width:min(860px,calc(100% - 24px)); }
.employee-wide-dialog #employeeDialogBody { min-width:0; }
.employee-wide-dialog [data-peer-picker-section] h3 { margin-block:10px 6px; }
.employee-wide-dialog [data-day-off-coverage] li { margin-bottom:7px; }
.employee-wide-dialog [data-day-off-coverage] li strong { display:block; }
@media(max-width:720px) {
 .employee-schedule-shell { grid-template-columns:minmax(0,1fr); }
 .employee-workspace .employee-schedule-sidebar { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .employee-schedule-sidebar h2 { grid-column:1/-1; }
}
@media(max-width:580px) {
 .employee-workspace #employeeCalendar .employee-calendar-day { padding:4px 1px; min-height:73px; text-align:center; }
 .employee-day-shift .staff-shift-tile { justify-items:center; text-align:center; }
 .employee-day-shift .staff-shift-tile-time { justify-content:center; }
 .employee-workspace #employeeDialog.employee-wide-dialog { padding:12px; }
}
