
.schedule-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}.schedule-month-nav,.schedule-publish{display:flex;align-items:center;gap:8px}.schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.schedule-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end}.schedule-form label{display:grid;gap:5px;font-size:13px}.schedule-form input,.schedule-form select{min-height:40px;border:1px solid #dce5e1;border-radius:10px;padding:7px 9px;background:#fff}.schedule-request-list{margin-top:14px}.schedule-request-row,.shift-type-row{display:grid;grid-template-columns:1.3fr 1fr .8fr 1fr auto;align-items:center;gap:8px;padding:9px 4px;border-bottom:1px solid #edf1ef;font-size:13px}.shift-type-row{grid-template-columns:1fr 1fr auto}.schedule-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #e5ebe8;border-top:1px solid #e5ebe8}.schedule-weekday{text-align:center;font-weight:700;padding:8px;background:#f7faf8;border-right:1px solid #e5ebe8;border-bottom:1px solid #e5ebe8}.schedule-day{min-height:125px;padding:7px;border-right:1px solid #e5ebe8;border-bottom:1px solid #e5ebe8;background:#fff}.schedule-day.muted{background:#fafafa;color:#a8b0ac}.schedule-date{font-weight:700;margin-bottom:5px}.schedule-chip{display:block;width:100%;text-align:left;border:0;border-radius:8px;padding:6px 7px;margin:4px 0;background:#eef6f2;cursor:pointer}.schedule-chip strong,.schedule-chip span{display:block;font-size:11px}.schedule-add{width:100%;border:1px dashed #b8c9c1;background:transparent;border-radius:8px;padding:5px;cursor:pointer}.muted-text{color:#74817b;font-size:13px}.empty-state{padding:12px 0;color:#89938e}
@media(max-width:900px){.schedule-grid{grid-template-columns:1fr}.schedule-form{grid-template-columns:1fr 1fr}.schedule-calendar{overflow-x:auto;min-width:760px}.scheduleSupervisorPanel{overflow:auto}}
@media(max-width:640px){#schedulingView{overflow-x:hidden}.schedule-toolbar{align-items:flex-start}.schedule-publish{width:100%;justify-content:space-between}.schedule-form{grid-template-columns:1fr 1fr}.schedule-request-row{grid-template-columns:1fr 1fr}.schedule-calendar{min-width:720px}.schedule-request-row .link-btn{justify-self:start}}

.schedule-month-picker{min-height:38px;border:1px solid #dce5e1;border-radius:10px;padding:6px 9px;background:#fff}
.schedule-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.schedule-inline input,.schedule-inline select{min-height:38px;border:1px solid #dce5e1;border-radius:10px;padding:6px 9px;background:#fff}
.leave-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:14px}
.leave-row{display:flex;justify-content:space-between;gap:12px;padding:8px 4px;border-bottom:1px solid #edf1ef;font-size:13px}
.leave-warn{font-weight:700}
.schedule-unit-list{margin:10px 0}.unit-group{border:1px solid #e4ebe7;border-radius:10px;margin:7px 0;background:#fff}
.unit-group summary{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;cursor:pointer}
.unit-members{padding:0 12px 9px}.unit-members>div{display:flex;justify-content:space-between;padding:7px 0;border-top:1px solid #f0f3f1}
.unit-members small{color:#7c8983}.schedule-divider{border:0;border-top:1px solid #e7ece9;margin:16px 0}
@media(max-width:700px){.leave-overview-grid{grid-template-columns:1fr}.schedule-month-nav{flex-wrap:wrap}}

/* Build 4004 */
.schedule-unit-picker{display:flex;gap:10px;margin:8px 0 14px}
.schedule-unit-picker label{display:grid;gap:6px;min-width:280px;font-size:13px}
.schedule-unit-picker select{min-height:40px;border:1px solid #dce5e1;border-radius:10px;padding:7px 10px;background:#fff}
.unit-selected-head{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #e8eeeb}
.unit-selected-members>div{display:flex;justify-content:space-between;align-items:center;padding:9px 2px;border-bottom:1px solid #f0f3f1}
.unit-selected-members span{font-size:12px;color:#75827c}
.app-action-banner{position:fixed!important;left:50%!important;transform:translateX(-50%)!important;width:min(92vw,520px)!important}
.app-action-banner:nth-of-type(1){bottom:18px!important}
.app-action-banner:nth-of-type(2){bottom:86px!important}
@media(max-width:640px){.schedule-unit-picker label{min-width:100%;width:100%}.app-action-banner{width:calc(100vw - 24px)!important}}

/* Build 4005 — single-page cleanup */
#schedulingView>.panel,#schedulingView .schedule-grid>.panel{margin-bottom:16px;border-radius:14px}
.schedule-toolbar{background:#fff;border:1px solid #e5ebe8;border-radius:14px;padding:12px 14px}
.schedule-company-control label{display:grid;gap:5px;font-size:12px;font-weight:700}
.schedule-company-control select{min-width:170px;min-height:38px;border:1px solid #dce5e1;border-radius:10px;padding:6px 9px;background:#fff}
#scheduleEmployeePanel h3,#scheduleSupervisorPanelSettings h3,#scheduleUnitFilterPanel h3,#scheduleSupervisorPanel h3,#scheduleAdminPanel h3{margin-top:0}
#scheduleUnitFilterPanel{margin-bottom:16px}
#scheduleSupervisorPanel{overflow:auto}
#scheduleCalendar{min-width:760px}
#toastContainer,.toast-container,[data-toast-container]{position:fixed!important;right:12px!important;bottom:12px!important;z-index:99999!important;display:flex!important;flex-direction:column!important;gap:8px!important;max-width:min(420px,calc(100vw - 24px))!important}
.app-action-banner{position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;width:100%!important;margin:0!important}
#appActionStack{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);z-index:99998;width:min(520px,calc(100vw - 24px));display:flex;flex-direction:column;gap:8px}
@media(max-width:700px){.schedule-toolbar{align-items:stretch}.schedule-company-control,.schedule-company-control label,.schedule-company-control select{width:100%}.schedule-month-nav{width:100%}.schedule-publish{width:100%}}

/* Build 4009 */
.schedule-management-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.schedule-management-row>.panel{margin:0!important;height:100%;box-sizing:border-box}
.schedule-shift-form{grid-template-columns:1.15fr .8fr .8fr .8fr auto}
.notification-system-message{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 12px;padding:10px 12px;border:1px solid #dfe8e3;border-radius:10px;background:#f7faf8}
.notification-system-message.hidden{display:none!important}
/* 4009: app install/update is no longer a floating banner. */
.pwa-install-btn,.pwa-update-bar,#appActionStack{position:static!important;inset:auto!important;transform:none!important;margin:0!important;box-shadow:none!important}
@media(max-width:900px){.schedule-management-row{grid-template-columns:1fr}.schedule-shift-form{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.schedule-shift-form{grid-template-columns:1fr 1fr}.schedule-shift-form button{grid-column:1/-1}}

/* Build 4012 */
.shift-type-row{display:grid!important;grid-template-columns:minmax(90px,1fr) minmax(140px,1fr) auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1ef}
.shift-type-row>span{text-align:left}
.shift-delete-btn{justify-self:end;min-width:64px}
@media(max-width:640px){.shift-type-row{grid-template-columns:1fr auto}.shift-type-row>span{grid-column:1/2}.shift-delete-btn{grid-column:2/3;grid-row:1/3}}
