.shift-worker-palette{padding:18px 24px;border-bottom:1px solid #e7e3da;background:#fffefa}.shift-palette-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.shift-palette-heading h3{font-size:15px;margin:0 0 5px;color:#142e50}.shift-palette-heading p,.shift-selection-status{font-size:12px;line-height:1.5;color:#788179;margin:0}.shift-worker-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:7px;margin-top:14px}.shift-worker-chip{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #ded9ce;background:#f7f5ee;color:#142e50;border-radius:11px;padding:8px 10px;min-height:53px;cursor:grab}.shift-worker-chip.department-maintenance{background:#eef6fc;border-color:#d0e3f1}.shift-worker-chip.department-cleaning{background:#fcf0f4;border-color:#efd4df}.shift-worker-chip.department-reception{background:#edf6ef;border-color:#d6e8dc}.shift-worker-chip:active{cursor:grabbing}.shift-worker-chip>span:nth-child(2){min-width:0;flex:1}.shift-worker-chip strong,.shift-worker-chip small{display:block}.shift-worker-chip strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.shift-worker-chip small{font-size:10px;line-height:1.5;color:#6e7b76}.shift-worker-initial{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;background:#fff9;border-radius:50%;font-size:11px;font-weight:800}.shift-worker-chip.is-selected{outline:2px solid #148c87;outline-offset:1px}.shift-worker-chip:focus-visible,.shift-assign-day:focus-visible,.shift-empty-cell:focus-visible{outline:3px solid #142e50;outline-offset:2px}.shift-selection-status{min-height:18px;margin-top:10px;color:#39746b}.shift-week-scroll{overflow:auto;padding:20px 24px}.shift-week-board{display:grid;grid-template-columns:repeat(7,minmax(125px,1fr));gap:9px;min-width:929px}.shift-drop-day{border:1px solid #e4ded2;border-radius:12px;background:#fffdf9;display:flex;flex-direction:column;min-height:260px;transition:background .1s}.shift-drop-day.is-today{border-color:#7fbcb5;box-shadow:inset 0 3px #148c87}.shift-day-heading{display:block;width:100%;border-radius:12px 12px 0 0;background:#f4f1e9;color:#142e50;padding:12px 7px;text-align:center}.shift-day-heading>small{display:block;font-size:11px;text-transform:capitalize}.shift-day-heading>strong{display:block;font-size:23px;font-weight:800;margin:4px 0}.shift-reservation-counts{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin-top:7px;font-size:10px;line-height:1.5;font-weight:700}.shift-reservation-counts>span{display:block;white-space:nowrap;border-radius:5px;padding:2px 4px}.shift-arrivals{background:#e6f0e9;color:#39654b}.shift-departures{background:#f5e8d9;color:#91552f}.shift-day-needs{padding:7px}.shift-daily-need{padding:8px;border:1px solid #e5dfd4;border-radius:9px;margin:5px 0;font-size:11px;line-height:1.4;background:#f7f5ee}.shift-daily-need.department-maintenance{background:#edf5fb;border-color:#d4e5f1}.shift-daily-need.department-cleaning{background:#fcf0f4;border-color:#efd8e2}.shift-daily-need>strong{display:block;color:#3a627a;font-size:11px;margin-bottom:6px}.shift-daily-need.department-cleaning>strong{color:#875568}.shift-daily-need label{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:0 0 5px;color:#4f605b;font-size:10px;font-weight:600}.shift-daily-need input{width:45px;min-width:35px;max-width:52px;padding:5px;border:1px solid #cfcfc4;border-radius:6px;background:#fff;color:#142e50;font-size:12px;font-weight:800;text-align:center}.shift-daily-need>small{display:block;font-size:10px;color:#65736d;margin-top:4px;white-space:normal}.shift-daily-need .shift-need-free{font-weight:700;color:#3f795b}.shift-daily-need .shift-need-shortage{font-weight:800;color:#ab482c}.shift-daily-need .shift-need-pending{color:#8a8175}.shift-day-assignments{padding:0 7px 8px;flex:1}.shift-drop-hint{color:#96998d;font-size:11px;line-height:1.6;text-align:center;padding:13px 4px}.shift-week-board .admin-shift-card{display:block;width:100%;max-width:none;margin:5px 0;padding:10px 7px;text-align:left;border-radius:8px;white-space:normal}.shift-week-board .admin-shift-card>strong,.shift-week-board .admin-shift-card>span,.shift-week-board .admin-shift-card>small{display:block}.shift-week-board .admin-shift-card>strong{font-size:12px;line-height:1.4}.shift-week-board .admin-shift-card>span{font-size:12px;font-weight:700;margin-top:5px}.shift-week-board .admin-shift-card>small{font-size:10px;margin-top:4px;color:#65736d}.shift-assign-day{font-size:10px;font-weight:700;line-height:1.5;border:1px dashed #c7c6b9;border-radius:8px;background:transparent;color:#526c62;margin:0 7px 8px;padding:9px 5px}.is-drag-over{outline:3px dashed #138b87;outline-offset:-4px;background:#e9f4ef!important}.shift-roster-detail>summary{padding:15px 24px;border-top:1px solid #e7e3da;font-size:13px;color:#142e50;font-weight:700;cursor:pointer}.shift-empty-cell{display:block;background:transparent;color:#87928a;width:100%;padding:12px 3px;font-size:11px}.shift-empty-cell>span{color:#3d827a}.staff-roster-table thead .shift-reservation-counts{font-size:9px}.staff-roster-table thead .shift-reservation-counts>span{display:block;font-weight:600}.shift-month-needs>th{font-size:12px!important;color:#142e50}.shift-month-needs>td{padding:4px}.shift-month-needs .shift-daily-need{margin:0;padding:7px 5px}.shift-month-needs .shift-daily-need>strong{display:none}.shift-planning-note{font-size:11px;line-height:1.7;margin:16px 24px!important}.shift-movement-detail{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:baseline}.shift-movement-detail h3{font-size:14px;margin:0}.shift-movement-detail p{font-size:13px;margin:0;color:#65736d;overflow-wrap:anywhere}.shift-day-staff-detail{padding:12px;border:1px solid #e5dfd4;border-radius:10px;margin:12px 0;font-size:12px}.shift-day-staff-detail h3{margin:0;font-size:14px}.shift-day-staff-detail p{line-height:1.6;margin:7px 0}.shift-until-label[hidden]{display:none}@media(max-width:700px){.shift-worker-palette{padding:16px}.shift-palette-heading{align-items:flex-start}.shift-palette-heading h3{font-size:14px}.shift-palette-heading p{font-size:11px}.shift-worker-list{grid-template-columns:repeat(2,minmax(0,1fr))}.shift-worker-chip{padding:8px 7px;gap:6px}.shift-worker-chip strong{font-size:11px}.shift-worker-chip small{font-size:9px}.shift-worker-chip>span:last-child{display:none}.shift-worker-initial{width:24px;height:24px;font-size:10px}.shift-week-scroll{padding:16px}.shift-week-board{grid-template-columns:repeat(7,155px);min-width:1139px}.shift-planning-note{margin:14px 16px!important}.shift-roster-detail>summary{padding:14px 16px}}

/* Pointer drag works consistently with a mouse, pen or touch screen. */
.shift-worker-chip,.admin-shift-card[data-shift-move]{touch-action:none;user-select:none;-webkit-user-select:none}.shift-worker-chip.is-dragging,.admin-shift-card.is-dragging{opacity:.4}.shift-pointer-dragging{user-select:none;-webkit-user-select:none;cursor:grabbing}.shift-drag-ghost{position:fixed;z-index:1000;pointer-events:none;transform:translate(12px,12px);padding:12px 18px;border:1px solid #81b8b2;border-radius:12px;background:#e9f5f1;color:#142e50;font:700 13px Manrope,sans-serif;box-shadow:0 8px 25px #142e502b}.admin-shift-calendar>.panel-head{align-items:center}.admin-shift-calendar .calendar-controls{align-items:center;gap:8px}.admin-shift-calendar .calendar-controls>button{height:38px;min-width:34px;padding:7px 10px}.admin-shift-calendar .shift-view-switch{display:flex;align-items:center;height:42px;padding:4px;border-radius:12px}.admin-shift-calendar .shift-view-switch button{height:34px;min-height:0;padding:7px 12px;font-size:13px;border-radius:9px}

/* Sick leave takes precedence over department colors in the visible period. */
.shift-worker-chip.is-sick{background:#ffe1d4;border-color:#d77958;color:#8d351f;box-shadow:inset 4px 0 #c95535}.shift-worker-chip.is-sick small{color:#8d351f}.shift-worker-chip.is-sick .shift-worker-initial{background:#fff4ec;color:#8d351f}.shift-worker-chip.is-sick .shift-sick-label{font-weight:800}.shift-worker-chip.is-sick:disabled{opacity:1;cursor:not-allowed}.staff-roster-table tbody th.is-sick,.staff-roster-table td.is-sick{background:#ffe1d4}.staff-roster-table tbody th.is-sick{box-shadow:inset 4px 0 #c95535}.staff-roster-table tbody th.is-sick>strong,.staff-roster-table tbody th.is-sick>.shift-sick-label{color:#8d351f}.staff-roster-table .shift-sick-label{font-weight:800}.staff-roster-table .roster-sick{background:#f7c6b2;color:#8d351f;font-weight:800}

/* A weekly reference stays inside each worker's assignment card. */
.shift-worker-chip{flex-wrap:wrap;align-content:start;text-align:left;gap:10px}.shift-worker-chip>span:nth-child(2){flex:1;min-width:0}.shift-worker-grip{flex:0!important}.shift-worker-chip .shift-weekly-reference{flex:0 0 100%;display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:10px 0 0;border-top:1px solid #b8cfc7;min-width:0}.shift-weekly-reference>strong{font-size:13px!important}.shift-weekly-reference>span{font-size:12px;font-weight:700}.shift-weekly-reference>small{grid-column:1/-1;font-size:12px!important;line-height:1.5}.shift-weekly-reference .shift-workload-period{font-size:11px!important;color:#68766f}.shift-weekly-reference.is-complete>small:not(.shift-workload-period){color:#2b7154}.shift-weekly-reference.needs-review .shift-workload-warning,.shift-weekly-reference.needs-review>small:nth-of-type(2){color:#a84028;font-weight:800}.staff-roster-table .shift-weekly-reference{display:block;border-top:1px solid #d8e1d7;padding-top:8px;margin-top:8px;white-space:normal}.staff-roster-table .shift-weekly-reference>*{display:block}.shift-worker-chip.is-sick .shift-weekly-reference{border-color:#dbb3a2}.shift-worker-chip:disabled{opacity:1}.shift-worker-chip .shift-weekly-reference{display:grid!important}@media(max-width:700px){.shift-worker-chip .shift-weekly-reference{grid-template-columns:1fr}.shift-worker-chip .shift-weekly-reference>*{grid-column:1}.shift-worker-chip .shift-worker-grip{display:none}}

.shift-remove-zone{display:flex;align-items:center;gap:10px;margin:14px 24px 0;padding:12px 15px;border:1px dashed #acb9c2;border-radius:11px;color:#3b596e;background:#f4f7fa}.shift-remove-zone>span{display:flex}.shift-remove-zone>div{flex:1}.shift-remove-zone strong,.shift-remove-zone small{display:block}.shift-remove-zone strong{font-size:13px}.shift-remove-zone small{font-size:12px;margin-top:4px;line-height:1.5}.shift-remove-zone.is-drag-over{background:#faece8!important;outline-color:#b75d43}.shift-remove-zone .secondary{font-size:12px;padding:8px 12px}@media(max-width:700px){.shift-remove-zone{margin:12px 16px 0;flex-wrap:wrap}.shift-remove-zone>div{min-width:180px}}

/* Department colours remain in the overall view; individuals have their own colour inside their department. */
.shift-worker-chip[data-shift-person-color],.admin-shift-card[data-shift-person-color]{background:var(--shift-person-bg);border:1px solid var(--shift-person-color);border-left:5px solid var(--shift-person-color);color:#17334b}.shift-worker-chip[data-shift-person-color] .shift-worker-initial{background:var(--shift-person-color);color:#fff}.staff-roster-table tr[data-shift-person-color]>th{background:var(--shift-person-bg);box-shadow:inset 5px 0 var(--shift-person-color)}.shift-week-board .admin-shift-card[data-shift-person-color]>small{color:#334e60}.shift-vacation-card,.admin-shift-calendar .roster-vacation,.employee-calendar .employee-calendar-leave.approved{background:#eaff00;color:#263200;border:1px solid #a6b500}.shift-vacation-card{display:block;width:100%;padding:11px 8px;margin:5px 0;border-radius:8px;text-align:left;line-height:1.5}.shift-vacation-card strong,.shift-vacation-card span{display:block;font-size:12px}.shift-vacation-card span{font-weight:700}.admin-shift-calendar .roster-vacation{font-weight:700}.shift-vacation-card:focus-visible{outline:3px solid #142e50;outline-offset:2px}

/* Warm red/orange is reserved for sick leave, overriding personal/department colours. */
.shift-worker-chip.is-sick,.shift-worker-chip.is-sick[data-shift-person-color]{background:#fce5dc;border:1px solid #b75037;border-left:5px solid #b75037;color:#813922;opacity:1}.shift-worker-chip.is-sick .shift-worker-initial,.shift-worker-chip.is-sick[data-shift-person-color] .shift-worker-initial{background:#b75037;color:white}.shift-worker-chip.is-sick strong,.shift-worker-chip.is-sick small,.shift-worker-chip.is-sick .shift-weekly-reference>span{color:#813922;opacity:1}.staff-roster-table tr[data-shift-person-color]>th.is-sick,.staff-roster-table th.is-sick{background:#fce5dc;box-shadow:inset 5px 0 #b75037}.admin-shift-calendar .roster-sick{background:#fce5dc;color:#813922;border:1px solid #b75037}
