@import url("people-calendar.css");
/* Keep the page and heading width stable between short and scrolling pages. */
html{overflow-y:scroll;scrollbar-gutter:stable}

:root{--ink:#203434;--muted:#647777;--line:#dae3df;--green:#176354;--bg:#f4f6f3}*{box-sizing:border-box}body{margin:0;font:14px system-ui,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}aside{position:fixed;width:224px;inset:0 auto 0 0;background:#193c35;color:#eef6f1;padding:30px 20px}.brand{font-size:22px;font-weight:750;letter-spacing:-1px}.brand small{display:block;font-size:11px;letter-spacing:2px;color:#a9c8bb;margin:8px 0 44px}nav button{display:block;width:100%;padding:13px 14px;margin:5px 0;text-align:left;border:0;border-radius:7px;background:none;color:#c5d6cf}nav button.active{background:#31594d;color:white}aside footer{position:absolute;bottom:25px;font-size:12px;color:#aec9bc;line-height:1.8}main{margin-left:224px;padding:27px 42px;max-width:1500px}.top{display:flex;justify-content:space-between;align-items:center;padding-bottom:25px;border-bottom:1px solid var(--line);color:var(--muted)}.top-actions{display:flex;align-items:center;gap:10px}.badge{background:#fff2d5;color:#805b12;padding:6px 11px;border-radius:20px;font-size:12px}.heading{display:flex;justify-content:space-between;align-items:center;margin:32px 0 24px}h1{font-size:32px;letter-spacing:-1px;margin:2px 0;line-height:1.2}h2{font-size:18px;margin:0 0 7px}p{line-height:1.6;color:var(--muted);margin:6px 0}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:1.8px;font-weight:700;color:var(--green)}.primary{background:var(--green);color:white;border:0;border-radius:6px;padding:11px 18px}.secondary{background:white;border:1px solid var(--line);border-radius:6px;padding:10px 16px}.grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:24px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:25px;margin-bottom:22px}.cardhead{display:flex;justify-content:space-between;align-items:start;margin-bottom:24px}.pill{font-size:11px;background:#edf4ef;color:var(--green);padding:5px 9px;border-radius:5px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wide{grid-column:1/-1}label{display:block;font-size:12px;font-weight:600}input,select{display:block;width:100%;padding:11px;border:1px solid #cbd7d0;border-radius:6px;margin-top:7px;background:white;color:var(--ink)}.hint{font-size:12px;margin:6px 0 18px}.result{background:#eef5f0;border-radius:8px;padding:18px;display:flex;justify-content:space-between;align-items:center;margin:23px 0}.result strong{font-size:27px}.result span{display:block;font-size:12px;color:var(--muted)}.actions{display:flex;align-items:center;gap:12px}.timeband{height:38px;border-radius:7px;background:#edf0ec;position:relative;overflow:hidden;margin-top:25px}.segment{position:absolute;background:#518776;height:100%}.ticks{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:7px}.shiftrow{padding:16px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.shiftrow:last-child{border:0}.shiftrow strong{display:block;margin-bottom:5px}.shiftrow small{color:var(--muted)}.hours{color:var(--green);font-weight:650}.connection{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.number{background:#eef3ef;color:var(--green);width:27px;height:27px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:12px}.connection small{color:var(--muted);display:block;margin-top:4px}.note{font-size:12px;padding:15px 0;color:var(--muted)}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tile{border:1px solid var(--line);border-radius:8px;padding:22px;background:white}.tile strong{display:block;margin:12px 0}.flow{display:flex;gap:20px;margin-top:24px}.flow>div{flex:1;border-top:3px solid #75a48e;padding-top:15px}#message{font-size:12px;color:var(--green)}.error{color:#a43426!important}.demo{font-size:12px;color:var(--muted);margin-top:18px}@media(max-width:1000px){.grid{grid-template-columns:1fr}.tiles{grid-template-columns:1fr 1fr}main{padding:24px}aside{width:190px}main{margin-left:190px}}@media(max-width:650px){aside{position:static;width:100%;padding:18px}.brand small,aside footer{display:none}nav{display:flex;overflow:auto;margin-top:15px}nav button{white-space:nowrap;width:auto}main{margin:0;padding:20px}.tiles{grid-template-columns:1fr}.heading{align-items:start;gap:12px;flex-direction:column}body .heading .schedule-library-tools{margin:0;align-self:flex-start;max-width:100%;flex-wrap:wrap}body .heading .schedule-library-tools button{max-width:100%;white-space:normal}.flow{flex-direction:column}h1{font-size:27px}.top{gap:12px}}
input,select{min-width:0}section{min-width:0}@media(max-width:650px){.grid{grid-template-columns:minmax(0,1fr)}.fields{grid-template-columns:minmax(0,1fr)}.actions{flex-wrap:wrap}}.setup-row{padding:20px 0;border-bottom:1px solid var(--line)}.step-title{display:flex;gap:12px;align-items:center;margin-bottom:18px}.step-title h2{margin:0}.setup-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.check-line{display:flex;gap:28px}.check-line label{display:flex;align-items:center;gap:8px}.check-line input{width:auto;margin:0}.coverage-fields{margin-top:20px;padding:18px;background:#f4f6f3;border-radius:8px}.name-row{margin-top:20px}.preview-row{display:grid;grid-template-columns:minmax(100px,1fr) 90px minmax(160px,2fr);gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}#shift-preview{margin-bottom:24px}.overlap-note:not(:empty){padding:12px;background:#fff4dc;color:#795716;border-radius:6px}.library-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.library-row p{margin:3px 0;line-height:1.3}.library-row .actions{margin:0}.library-row small{line-height:1.3}.library-row small{color:var(--muted)}[hidden]{display:none!important}button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:700px){.setup-fields,.preview-row{grid-template-columns:1fr}.library-row{flex-direction:column}.result{gap:14px;flex-wrap:wrap}}.timeline-labels{display:flex;justify-content:space-between;margin:22px 0 8px 100px;font-size:12px;color:var(--muted)}.timeline-line{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;align-items:center;margin:10px 0;font-size:12px}.timeline-track{height:36px;background:#edf1ed;position:relative;border-radius:5px}.timeline-bar{position:absolute;height:100%;background:#286d5e;border-radius:5px;color:white;display:flex;align-items:center;justify-content:center;overflow:hidden}.timeline-bar span{white-space:nowrap;padding:4px;font-size:11px}@media(max-width:700px){.timeline-bar span{display:none}}.shift-clock-layout{display:grid;grid-template-columns:minmax(240px,440px) minmax(200px,1fr);align-items:center;gap:30px;margin-top:18px}.shift-clock{width:100%;max-width:440px}.shift-clock.clock-readonly .clock-sector,.shift-clock.clock-readonly .coverage-clock-ring,.shift-clock.clock-readonly .clock-time-handles,.shift-clock.clock-readonly .busy-clock-band{cursor:default;pointer-events:none}.shift-dot,.legend-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:9px;background:var(--shift-color);vertical-align:middle}.clock-shift-row,.clock-sector{transition:opacity .15s,background .15s,filter .15s;cursor:pointer}.clock-shift-row.clock-active{background:color-mix(in srgb,var(--shift-color) 15%,white);box-shadow:inset 4px 0 var(--shift-color)}.clock-shift-row{padding-left:10px}.clock-dim{opacity:.25}.clock-sector.clock-active{filter:brightness(1.18);stroke:#203434;stroke-width:2}.clock-sector:focus{outline:none;stroke:#102d25;stroke-width:3}.clock-shift-row:focus-visible{outline:2px solid var(--shift-color)}#clock-detail{background:#eef4ef;padding:15px;border-radius:8px;min-height:75px;margin-top:16px}.clock-explanation h3{font-size:17px}@media(max-width:700px){.shift-clock-layout{grid-template-columns:minmax(0,1fr);gap:5px}.shift-clock{margin:auto;max-width:360px}}.drag-shift-time{border:0;border-bottom:1px dashed currentColor;background:transparent;color:#176354;font:inherit;font-weight:700;padding:6px;cursor:ew-resize;touch-action:none}.drag-shift-time:hover{background:#dceee4;border-radius:5px}.dragging-shift,.dragging-shift *{cursor:ew-resize!important;user-select:none!important}.wheel-choice{cursor:ns-resize;font-size:14px;background:#f6faf7}.wheel-choice:hover,.wheel-choice:focus{background:#e5f2ea;border-color:#47856b}.drag-shift-time{min-height:44px;min-width:80px}.shift-move-controls{display:flex;gap:6px;margin-top:12px}.shift-move-controls button{font:inherit;padding:7px 12px;border:1px solid #cbd6d0;border-radius:6px;background:white;color:#264c41;cursor:pointer}.shift-move-controls button[aria-pressed="true"]{background:#286d5e;color:white;border-color:#286d5e}
/* Compact shift setup: retain readable text and mouse targets. */
#content:has(#shift-builder) .heading{margin:16px 0 12px}
#content:has(#shift-builder) .heading h1{font-size:26px;margin:3px 0}
#content:has(#shift-builder) .card{padding:16px 20px}
#content:has(#shift-builder) .cardhead{margin-bottom:8px}
#shift-builder .setup-row{padding:10px 0}
#shift-builder .step-title{gap:8px;margin-bottom:8px}
#shift-builder .setup-fields{gap:12px}
#shift-builder input:not([type=checkbox]):not(.compact-date),#shift-builder select{padding:7px 10px;margin-top:4px}
#shift-builder .hint{margin:5px 0 8px;line-height:1.4}
#shift-builder h2{font-size:16px}
#shift-builder .preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#shift-builder .preview-heading h2{margin:0}
#shift-builder .shift-move-controls{margin:0}
#shift-builder .shift-move-controls button{padding:6px 12px}
#shift-builder .preview-row{padding:3px 8px;gap:10px}
#shift-builder .drag-shift-time{min-height:32px;min-width:76px;padding:4px 6px}
#shift-builder .overlap-note:not(:empty){padding:7px 10px;font-size:12px}
#shift-builder .shift-clock-layout{grid-template-columns:minmax(260px,420px) minmax(180px,1fr);gap:20px;margin-top:8px}
#shift-builder .shift-clock{max-width:420px}
#shift-builder .clock-explanation p{margin:4px 0;line-height:1.4;font-size:12px}
#shift-builder #clock-detail{min-height:48px;padding:10px;margin-top:8px;font-size:12px}
#shift-builder .coverage-fields{margin-top:10px;padding:10px}
#shift-builder .name-row{margin-top:12px}
#shift-builder .result{padding:12px;margin:12px 0}
@media(max-width:700px){#shift-builder .shift-clock-layout{grid-template-columns:minmax(0,1fr)}#shift-builder .preview-row{grid-template-columns:minmax(65px,1fr) 65px minmax(145px,2fr);font-size:12px;gap:4px}#shift-builder .drag-shift-time{min-width:58px}#content:has(#shift-builder) .card{padding:12px}}

#shift-builder .ruler-shift-row{display:block;padding:6px 8px 8px}
.ruler-row-heading{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:24px}
.shift-ruler-labels{display:flex;justify-content:space-between;padding:10px 8px 2px;color:var(--muted);font-size:11px}
.shift-ruler-track{position:relative;height:19px;background:repeating-linear-gradient(to right,#cbd7d0 0px,#cbd7d0 1px,transparent 1px,transparent calc(100% / 24)),#edf3ef;border-radius:3px;margin:0 0 0}
.shift-ruler-bar{position:absolute;top:0;height:100%;background:var(--shift-color);opacity:.75;border-radius:3px;pointer-events:none}
.shift-start-marker{position:absolute;top:-5px;width:30px;height:30px;transform:translateX(-50%);border:0;padding:0;background:transparent;color:var(--shift-color);cursor:ew-resize;touch-action:none;z-index:2}
.marker-grip{display:block;box-sizing:border-box;width:28px;height:28px;margin:auto;background:var(--shift-color);border:2px solid white;border-radius:4px;box-shadow:0 0 0 1px var(--shift-color)}
.marker-time{position:absolute;left:50%;bottom:31px;transform:translateX(var(--label-shift));padding:2px 5px;border-radius:3px;background:white;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 0 0 1px #dae3df}
.shift-start-marker:hover .marker-time,.shift-start-marker:focus-visible .marker-time{background:#e5f2ea}
.dragging-shift .clock-shift-row{opacity:1!important}
@media(max-width:700px){.shift-ruler-labels{font-size:9px}.shift-ruler-labels span:nth-child(even){visibility:hidden}}

#shift-builder .ruler-shift-row{padding-bottom:28px}
.shift-end-marker{position:absolute;top:0;height:22px;border-left:2px solid var(--shift-color);pointer-events:none;color:var(--shift-color)}
.shift-end-marker>span{position:absolute;top:23px;left:0;transform:translateX(var(--end-shift));font-size:11px;white-space:nowrap;background:white;padding:1px 3px;border-radius:3px}

.shift-end-marker{width:30px;height:30px;top:-5px;transform:translateX(-50%);border:0;background:transparent;padding:0;pointer-events:auto;cursor:ew-resize;touch-action:none;z-index:3}
.shift-end-marker::before{content:"";display:block;box-sizing:border-box;width:28px;height:28px;margin:auto;background:var(--shift-color);border:2px solid white;border-radius:4px;box-shadow:0 0 0 1px var(--shift-color)}
.shift-end-marker>span{top:31px;left:50%}
.shift-end-marker:hover>span,.shift-end-marker:focus-visible>span{background:#e5f2ea}

#shift-builder .shift-time-fields{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
@media(max-width:1000px){#shift-builder .shift-time-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#shift-builder .shift-time-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.shift-end-marker>span.end-duration{top:auto;bottom:31px;padding:2px 5px;font-size:12px;font-weight:700;background:#fff4dc;color:#684c14;box-shadow:0 0 0 1px #e6d4a5}
.coverage-clock-ring{cursor:pointer;transition:filter .15s}.coverage-clock-ring.coverage-active{filter:brightness(1.2)}#shift-builder .coverage-ruler-row{margin-top:6px}#shift-builder:has(.coverage-clock-ring) .shift-clock{max-width:480px}#shift-builder:has(.coverage-clock-ring) .shift-clock-layout{grid-template-columns:minmax(260px,480px) minmax(180px,1fr)}@media(max-width:700px){#shift-builder:has(.coverage-clock-ring) .shift-clock-layout{grid-template-columns:minmax(0,1fr)}}
/* Keep the live clock beside the entire setup, including extra coverage. */
.shift-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:24px;align-items:start}
.shift-workspace #shift-builder{min-width:0}
.shift-workspace #regular-timeline{position:sticky;top:16px;min-width:0;max-height:calc(100vh - 32px);overflow:auto;background:white;border:1px solid var(--line);border-radius:10px;padding:10px}
.shift-workspace .shift-clock-layout{display:flex;flex-direction:column;gap:8px;margin:0}
.shift-workspace .shift-clock{width:100%;max-width:420px;flex-shrink:0}
.shift-workspace .clock-explanation{width:100%;padding:0 8px}
.shift-workspace .clock-explanation p{font-size:12px;margin:4px 0;line-height:1.4}
.shift-workspace #clock-detail{padding:8px;min-height:44px;margin-top:8px;font-size:12px}
.shift-workspace:has(#regular-timeline[hidden]){grid-template-columns:minmax(0,1fr)}
.shift-workspace #shift-builder .shift-time-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.shift-workspace{grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:14px}.shift-workspace #shift-builder .setup-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.shift-workspace{display:flex;flex-direction:column}.shift-workspace #regular-timeline{order:-1;top:0;z-index:5;width:100%;max-height:240px;padding:6px}.shift-workspace .shift-clock-layout{flex-direction:row;align-items:center}.shift-workspace .shift-clock{width:180px;max-width:45%;}.shift-workspace .clock-explanation{font-size:11px}.shift-workspace .clock-explanation h3{font-size:13px}.shift-workspace #shift-builder{width:100%}}

/* One row of controls and a clock with a constant drawing scale. */
main:has(#shift-builder){max-width:none;padding-left:22px;padding-right:22px}
.shift-workspace{grid-template-columns:minmax(0,1fr) minmax(420px,524px);gap:18px}
.shift-workspace #shift-builder .shift-time-fields{grid-template-columns:repeat(3,minmax(96px,1fr));gap:8px;overflow-x:auto;padding-bottom:4px}
.shift-workspace .clock-stage{width:100%;overflow:auto;flex-shrink:0}
.shift-workspace .clock-stage .shift-clock{max-width:none;display:block;margin:auto;flex-shrink:0}
.shift-workspace .shift-clock-layout{align-items:stretch}
@media(max-width:1100px) and (min-width:801px){.shift-workspace{grid-template-columns:minmax(0,1fr) 420px;gap:12px}}
@media(max-width:800px){.shift-workspace{display:flex}.shift-workspace .shift-clock-layout{flex-direction:column}.shift-workspace .clock-stage{max-height:210px}.shift-workspace #regular-timeline{max-height:260px}}

#shift-builder .oncall-settings{grid-template-columns:90px minmax(105px,1fr) minmax(90px,1fr) minmax(90px,1fr);gap:10px}
#oncall-count-label{max-width:90px}
@media(max-width:650px){#shift-builder .oncall-settings{grid-template-columns:90px minmax(0,1fr)}}

#shift-builder .oncall-settings{grid-template-columns:90px 115px minmax(110px,1fr) minmax(110px,1fr)}
#shift-builder .coverage-fields label:has(select[id^="oncall"][id$="-mode"]){width:115px;max-width:100%}
@media(max-width:650px){#shift-builder .oncall-settings{grid-template-columns:90px 115px}}

#shift-builder .oncall-settings{grid-template-columns:115px 115px minmax(110px,1fr) minmax(110px,1fr);align-items:start}
#oncall-count-label{width:115px;max-width:115px;white-space:nowrap}
@media(max-width:650px){#shift-builder .oncall-settings{grid-template-columns:115px 115px}}

#shift-builder .coverage-fields label:has(input[data-shift-time]){display:none}
.generated-pattern-name{display:flex;align-items:center;min-height:34px;padding:0 10px;border:1px solid #cbd6d0;border-radius:6px;background:#fff;color:inherit;font-weight:400;user-select:none;pointer-events:none}
.flexible-window-summary{margin:30px 0 32px;font-size:12px;line-height:1.5;color:var(--muted)}
.start-window-band{position:absolute;height:100%;background:var(--shift-color);opacity:.22;border:1px dashed var(--shift-color)}
#shift-builder .flexible-start-track{height:14px;margin-bottom:4px}

.window-boundary{position:absolute;top:-8px;width:26px;height:32px;transform:translateX(-50%);border:0;background:transparent;padding:0;color:var(--shift-color);cursor:ew-resize;touch-action:none;z-index:3}
.window-line{display:block;width:1px;height:32px;margin:auto;background:var(--shift-color)}
.window-boundary:hover .window-line,.window-boundary:focus-visible .window-line{width:3px}
.window-boundary .marker-time{bottom:34px}

.working-hours-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#working-hours-summary{font-size:14px;line-height:1.6}
@media(max-width:700px){.working-hours-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact working-hours controls; keep the existing font sizes. */
#working-hours-settings{padding:14px 18px}
#working-hours-settings .cardhead{margin-bottom:10px}
#working-hours-settings .working-hours-grid{grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;overflow:visible;padding-bottom:4px;align-items:end}
#working-hours-settings input:not(.compact-date){padding:6px 9px;margin-top:4px;min-height:0}
#working-hours-settings .hint{margin:5px 0 8px}
#working-hours-settings .result{padding:9px 12px;margin:10px 0}
#working-hours-settings .actions{gap:8px;flex-wrap:wrap}
#working-hours-settings button{padding:7px 12px}
#working-hours-settings .demo{margin-top:8px}
#working-hours-error:empty{display:none}

.schedule-setup-step{padding:10px 0;border-bottom:1px solid var(--line);margin-bottom:10px}
.schedule-setup-step h3{margin:0 0 8px}
.schedule-choice-grid{display:grid;grid-template-columns:minmax(190px,1fr) repeat(2,minmax(220px,1.5fr));gap:10px;overflow-x:auto}
.schedule-period-grid{display:grid;grid-template-columns:minmax(140px,1fr) 145px minmax(180px,1.4fr) 145px minmax(180px,1.4fr);gap:10px;overflow-x:auto}
#working-hours-settings .wheel-choice{text-overflow:ellipsis}
#sp-summary{display:block;line-height:1.5}
#sp-error:empty{display:none}

.person-settings-row{display:grid;grid-template-columns:110px minmax(110px,.9fr) minmax(100px,.8fr) repeat(2,minmax(110px,1.3fr)) minmax(110px,1fr);gap:6px;align-items:end;padding:6px 0;border-bottom:1px solid var(--line)}
.person-settings-row>*{min-width:0}
.person-settings-row input,.person-settings-row button{width:100%;min-width:0;box-sizing:border-box}
.person-settings-row input.wheel-choice,.person-settings-row .generated-pattern-name{box-sizing:border-box;width:100%;height:34px;min-height:34px;margin:0;padding:0 10px;font:400 14px/20px system-ui,sans-serif}
.person-settings-row>label{display:flex;flex-direction:column;gap:6px}
#people-rows{overflow-x:auto}
#people-setup input{height:34px;padding:6px 7px;margin-top:4px;margin-bottom:0;text-overflow:ellipsis}
#people-setup .cardhead{margin-bottom:10px}
#people-setup .actions{gap:8px;flex-wrap:wrap;margin-top:10px}
#people-error:empty{display:none}

.person-off-cell,.person-leave-cell{display:flex;flex-direction:column;gap:4px}
.person-off-cell{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:end}
.person-off-cell>label{display:contents}
.person-off-cell>label>span{grid-column:1 / -1}
#people-setup .person-off-cell input{margin-top:0}
.person-off-cell>button{margin-bottom:0;white-space:nowrap}
.person-off-cell>button,.person-leave-cell>button{width:34px;height:34px;padding:6px;display:grid;place-items:center;font:inherit}
.person-off-cell>button[data-has-dates=true],.person-leave-cell>button[data-has-dates=true]{color:#fff;background:#247968;border-color:#247968}
.person-leave-cell{align-self:end;padding-top:0}
.auto-pattern-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:10px 0 18px}.auto-pattern-choice{display:grid;gap:7px;border:1px solid var(--line);border-radius:8px;padding:12px}.auto-pattern-choice small{color:var(--muted)}.auto-pattern-choice input[type=checkbox]{display:inline;width:auto;margin:0 6px 0 0}.auto-pattern-choice input[type=number]{display:inline;width:64px;margin:0 0 0 6px;padding:6px}.auto-clock-choice-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.auto-clock-choice{display:block;border:2px solid var(--line);border-radius:10px;padding:10px;overflow:hidden}.auto-clock-choice.selected{border-color:var(--green);background:#f3f8f5}.auto-clock-choice>span{display:flex;align-items:center;gap:7px;font-size:15px}.auto-clock-choice input[type=radio]{width:auto;margin:0}.auto-clock-choice .shift-clock{width:100%!important;height:auto!important;max-width:500px!important}.auto-clock-choice #auto-planned-settings-clock .clock-stage{min-width:0!important}.auto-clock-choice .auto-planned-editor{font-weight:400}@media(max-width:800px){.auto-clock-choice-row{grid-template-columns:1fr}}
.auto-policy-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px;overflow-x:auto}.historical-plan{margin:16px 0;padding:14px 16px;border:1px solid #b9d7cd;border-left:5px solid #247968;border-radius:8px;background:#f2f8f5}.historical-plan h3{margin:0 0 8px}.historical-plan p{margin:7px 0}.auto-clock-period{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:center}#regular-timeline .shift-clock,#busy-shift-clock .shift-clock,#auto-shift-clock .shift-clock,#auto-planned-settings-clock .shift-clock,#auto-clock .shift-clock{width:min(500px,100%)!important;height:auto!important;max-width:100%}#auto-shift-clock .clock-stage,#auto-planned-settings-clock .clock-stage,#auto-clock .clock-stage{display:flex;justify-content:center;min-width:0}.auto-period-summary{border-left:1px solid var(--line);padding-left:20px}.auto-period-summary h3{margin-top:0}.auto-period-summary div{display:grid;gap:3px;padding:12px 0;border-bottom:1px solid var(--line)}.auto-period-summary span,.auto-period-summary small{color:var(--muted)}.auto-period-summary strong{font-size:17px}@media(max-width:800px){.auto-clock-period{grid-template-columns:1fr}.auto-period-summary{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}}.daily-clock-information{max-width:900px;margin:8px auto 16px}.daily-clock-shifts{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px}.daily-clock-shift{display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-left:4px solid #247968;border-radius:7px;background:#f5f9f7}.daily-clock-shift.gap{border-left-color:#bd3d59;background:#fff5f6}.daily-clock-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.daily-clock-status p{margin:0;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff}@media(max-width:700px){.daily-clock-status{grid-template-columns:1fr}}.daily-shift-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.daily-shift-heading span{font-size:12px;color:var(--muted);text-align:right}.daily-clock-shift span{font-size:15px}.daily-clock-shift small{color:var(--muted)}@media(max-width:700px){.daily-clock-shifts{grid-template-columns:1fr}}.auto-calendar-toolbar{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin:18px 0}.auto-calendar-toolbar [role=group]{display:flex;gap:8px}.auto-calendar-toolbar button.active{background:#176354;color:#fff}.auto-calendar-head,.auto-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));min-width:780px}.auto-calendar-head strong{padding:8px;text-align:center;background:#eef4f1}.auto-calendar-grid{border-left:1px solid var(--line);border-top:1px solid var(--line)}#auto-calendar{overflow:auto}.auto-calendar-cell{min-height:120px;padding:8px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:#fff;color:inherit;text-align:left;cursor:pointer}.auto-calendar-cell.outside{opacity:.38;background:#f4f6f5}.auto-calendar-cell.selected{outline:1px solid #a8bfb6;outline-offset:-1px;background:#f7faf8}.auto-calendar-cell>strong{display:block;font-size:14px}.auto-calendar-cell span{display:block;margin-top:7px;padding:5px;border-radius:5px;background:#e7f2ee;font-size:12px}.auto-calendar-cell span.oncall{background:#e8eefb;border-left:3px solid #366dcc}.auto-calendar-cell span.onsite{border-left:3px solid #247968}.auto-calendar-cell span.shift-covered{background:#fce7d6;border-left-color:#a96013}.auto-calendar-cell span.shift-uncovered{background:#fff0ed;border-left-color:#bd3d59}.auto-calendar-cell span.shift-off{background:#f1f3f2;border-left-color:#7b8782}.auto-calendar-cell span .shift-status{margin-top:3px;padding:0;background:transparent;border:0;font-style:italic;color:#5d6b65}.auto-calendar-cell span.shift-covered .shift-status{color:#8a5316}.auto-calendar-cell span.shift-uncovered .shift-status{color:#a02f48}.auto-calendar-cell span small{display:block;color:var(--muted);margin-top:2px}.calendar-empty{display:block;color:var(--muted);margin-top:8px}.auto-calendar-cell em{display:block;margin-top:7px;color:#8a4252;font-size:12px}.auto-planned-editor{margin:14px 0;border:1px solid var(--line);border-radius:8px;padding:12px}.auto-planned-editor summary{cursor:pointer;font-weight:700}.auto-planned-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin-top:12px}.auto-planned-edit-grid input{width:100%;box-sizing:border-box}@media(max-width:800px){.auto-planned-edit-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}}#auto-rules li{margin:8px 0}#auto-rule-summary{display:block;line-height:1.5}#auto-rules details{margin:12px 0}#auto-rules input{width:100%;box-sizing:border-box}

.busy-settings{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.busy-period{padding:8px 10px 16px;margin-top:8px;border:1px solid var(--line);border-left:4px solid var(--busy-color);border-radius:6px}
.busy-period-heading{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.busy-period-heading>button:last-child{margin-left:auto}
.busy-rank{color:var(--busy-color);border:1px solid currentColor;background:white;border-radius:5px;font:inherit;padding:4px 8px}
.busy-ticks{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:6px 0}
.busy-track{height:20px;position:relative;background:repeating-linear-gradient(90deg,#edf3f0 0,#edf3f0 calc(100% / 24 - 1px),#cbdad4 calc(100% / 24 - 1px),#cbdad4 calc(100% / 24));margin:0 7px}
.busy-band{position:absolute;height:100%;background:var(--busy-color);opacity:.65}
.busy-handle{position:absolute;top:-4px;height:28px;width:12px;padding:0;transform:translateX(-50%);border:2px solid white;border-radius:4px;background:var(--busy-color);outline:1px solid var(--busy-color);cursor:ew-resize;touch-action:none}
.busy-handle:focus-visible{outline:3px solid #173d4a}

.busy-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,524px);gap:18px;align-items:start}
.busy-clock-panel{position:sticky;top:16px;width:auto;height:auto;min-width:0;padding:10px;background:#fff;border:1px solid var(--line);border-radius:10px;color:inherit;display:block;overflow:visible}
.busy-clock-panel h3{margin:0 0 8px}
#busy-shift-clock{width:100%;overflow:auto;flex-shrink:0}
#busy-shift-clock .shift-clock{max-width:none;display:block;margin:auto;flex-shrink:0}
@media(max-width:1100px) and (min-width:801px){.busy-workspace{grid-template-columns:minmax(0,1fr) 420px;gap:12px}}
@media(max-width:800px){.busy-workspace{grid-template-columns:1fr}.busy-clock-panel{grid-row:1;position:static}#busy-shift-clock{max-height:210px}}
.busy-clock-band{cursor:help;transition:filter .15s}.busy-clock-band:hover,.busy-clock-band:focus{filter:brightness(1.2);outline:none}

.busy-track{margin-top:34px}
.busy-marker-time{position:absolute;bottom:33px;left:50%;transform:translateX(var(--label-shift,-50%));white-space:nowrap;background:white;color:var(--busy-color);border:1px solid var(--line);border-radius:3px;padding:2px 5px;font-size:12px;font-weight:600;pointer-events:none}
.busy-handle:hover .busy-marker-time,.busy-handle:focus-visible .busy-marker-time{background:#eef4ef}
.personal-top{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) auto;gap:12px;align-items:end;margin:16px 0}.personal-grid{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:12px}.personal-grid input,.personal-top input{width:100%;box-sizing:border-box}@media(max-width:800px){.personal-grid,.personal-top{grid-template-columns:1fr}}
.account-access{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.account-access input[type=checkbox],#worker-account-fields input[type=checkbox]{width:auto}.account-access label{display:flex;gap:8px;align-items:center}.account-access p{width:100%;margin:4px 0}
.clock-draggable{cursor:grab;touch-action:none}.draft-clock-end-handle{cursor:grab;pointer-events:all;filter:drop-shadow(0 1px 1px #fff)}.draft-clock-end-handle:active{cursor:grabbing}.clock-draggable:active{cursor:grabbing}.clock-time-grip:focus-visible{stroke:#173d4a;stroke-width:3}.busy-clock-band.clock-draggable{cursor:grab}
.break-rule-control{position:relative;width:max-content;max-width:100%;font-size:13px}.break-rule-row{display:flex;gap:6px;margin-top:4px;align-items:center;white-space:nowrap}.break-rule-row input{width:64px;min-width:64px;height:34px;margin:0!important;padding:4px;text-align:center;font:inherit;font-weight:400;box-sizing:border-box}.break-rule-row span{white-space:nowrap}.break-rule-popup{position:absolute;top:100%;left:0;right:0;padding:4px 6px 8px;background:white;border:1px solid var(--line);border-radius:0 0 6px 6px;box-shadow:0 5px 14px #0002;z-index:30}.break-rule-popup[hidden]{display:none}.break-rule-popup small{display:block;margin-top:6px;color:var(--muted)}
.compact-requirement{min-width:0;font-size:13px}.compact-requirement-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:4px}.compact-requirement-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-requirement-row input,.compact-requirement-row output{display:block;width:100%;min-width:0;height:34px;margin:0!important;padding:6px 4px;border:1px solid var(--line);border-radius:5px;text-align:center;box-sizing:border-box;font:inherit;font-weight:400}.compact-requirement-row output{background:#edf3f0}input.calculated-value[readonly]{--input-background:#edf3f0;cursor:default}#working-hours-settings .working-hours-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
.assigned-people-table{width:100%;border-collapse:collapse;margin:14px 0}.assigned-people-table th,.assigned-people-table td{text-align:left;padding:6px;border-bottom:1px solid var(--line)}.assigned-people-table button{font:inherit;color:inherit;background:white;border:1px solid var(--line);border-radius:5px;padding:6px 9px}.assigned-people-table th:first-child{width:40%}#people-import-area .hint{margin:0}#people-import-preview{margin-top:10px}
.assign-layout{display:flex;flex-direction:column;gap:22px;align-items:stretch}.assign-layout>.assign-right{order:-1;align-self:flex-end}.assign-layout>.assign-left{width:100%}.assign-left{min-width:0}.assign-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.assignment-entry{display:grid;grid-template-columns:minmax(160px,2fr) minmax(135px,1fr) minmax(135px,1fr) auto;gap:12px;align-items:end;margin:16px 0}.assignment-entry button{height:40px;min-width:42px;font-size:14px;font-weight:400;line-height:1;padding:0;display:flex;align-items:center;justify-content:center}.assign-editor{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.assign-editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.assigned-people-table th:first-child{width:auto}.assigned-people-table td button{max-width:100%;overflow-wrap:anywhere}.assign-table-wrap{overflow-x:auto}.assignment-dates{font-size:11px;color:var(--muted);margin-top:5px}.assign-account{margin-top:18px}.assign-account summary{cursor:pointer;margin-bottom:12px}.assign-pattern-dialog{width:min(760px,95vw);max-height:85vh;border:1px solid var(--line);border-radius:12px;padding:24px}.assign-pattern-dialog::backdrop{background:#193c3566}.pattern-detail{border-top:1px solid var(--line);padding:14px 0}.pattern-detail p{margin:4px 0}.assign-global input{display:inline-block;width:auto;margin:0 8px 0 0}@media(max-width:1000px){.assignment-entry{grid-template-columns:1fr 1fr}.assignment-entry label:first-child{grid-column:1/-1}}@media(max-width:700px){.assign-layout{grid-template-columns:1fr}.assign-right{grid-row:1}.assign-editor-fields{grid-template-columns:1fr}.assign-toolbar{flex-wrap:wrap}}
.assignment-entry{grid-template-columns:minmax(160px,1fr) auto}.assignment-entry label:first-child{grid-column:auto}.assigned-people-table tbody tr{cursor:pointer}.assigned-people-table tr.assignment-selected{background:#eef5f0;box-shadow:inset 3px 0 #176354}
/* Keep all Assign row controls aligned, in selected and unselected rows. */
.assigned-people-table td{vertical-align:middle}
.assigned-people-table td input,.assigned-people-table td select,.assigned-people-table td button{box-sizing:border-box;display:block;height:34px;min-height:34px;margin:0;padding:0 8px;font:inherit;line-height:20px;border:1px solid #cbd7d0;border-radius:6px;white-space:nowrap}
.assigned-people-table td button[data-action="remove"]{width:44px;min-width:44px;padding:0;text-align:center}
[data-plan][aria-pressed="true"]{background:#176354;color:white;border-color:#176354}
#auto-results details>summary{cursor:pointer;font-weight:600;padding:12px 0}
.workload-controls button{min-height:44px}.workload-controls [aria-pressed="true"]{background:#176354;color:white;border-color:#176354}
.clock-save-heading{display:block;margin:1em 0;border:0;padding:0;background:none;color:var(--ink);font:inherit;font-size:1.17em;font-weight:bold;text-align:left;cursor:pointer}.clock-save-heading:hover,.clock-save-heading:focus{text-decoration:underline;outline:none}
.shift-set{border:1px solid #d7e1dc;border-radius:10px;margin:12px 0;background:#fff}.shift-set>summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 16px;list-style:none}.shift-set>summary::-webkit-details-marker{display:none}.shift-set>summary:after{content:"+";font-size:22px;color:#176354}.shift-set[open]>summary:after{content:"−"}.shift-set>summary span{color:#5d6b65;font-size:14px;margin-left:auto}.shift-set-details{padding:0 16px 4px;border-top:1px solid #e1e8e4}@media(max-width:700px){.shift-set>summary{align-items:flex-start}.shift-set>summary span{margin-left:0}}.auto-calendar-cell{display:grid;grid-template-rows:subgrid;align-content:start;row-gap:7px}.calendar-day-summary{align-self:start;line-height:1.5}.calendar-day-summary>strong{display:block;font-size:14px}.auto-calendar-cell>span{margin-top:0;min-height:64px;align-self:stretch}.auto-calendar-cell>span>b{display:block}.calendar-day-summary>small{font-size:11px}.auto-calendar-cell span.shift-covered,.auto-calendar-cell span.shift-uncovered,.auto-calendar-cell span.shift-off{background:#fce7d6;border-left-color:#a96013}.auto-calendar-cell span.shift-covered .shift-status,.auto-calendar-cell span.shift-uncovered .shift-status,.auto-calendar-cell span.shift-off .shift-status{color:#8a5316}.auto-calendar-grid.month{grid-auto-rows:minmax(156px,auto)}.auto-calendar-cell.month-day{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;grid-row:auto;min-height:156px}.auto-calendar-cell.month-day>span{min-height:0;margin:0;padding:3px 5px;line-height:1.3}.auto-calendar-cell.month-day>span>b{display:inline}.auto-calendar-cell.month-day>span.month-shift{background:transparent;border:0;border-radius:0;padding:3px 0;color:inherit}.auto-calendar-grid.month{grid-auto-rows:minmax(82px,auto)}.auto-calendar-cell.month-day{min-height:82px;padding:5px;gap:2px}.auto-calendar-cell.month-day>strong{font-size:12px;line-height:1.2}.auto-calendar-cell.month-day>span.month-shift{padding:1px 0;font-size:11px;line-height:1.2}.auto-calendar-cell.month-day>span.month-shift small{font-size:13px;line-height:1.35;margin-top:2px}.auto-calendar-cell.month-day{font-weight:400}.auto-calendar-cell.month-day>strong{font-weight:700}.auto-calendar-cell.month-day .month-shift,.auto-calendar-cell.month-day .month-shift b,.auto-calendar-cell.month-day .month-shift small{font-weight:400}.auto-calendar-head.month-head{gap:5px;margin-bottom:5px}.auto-calendar-head.month-head strong{background:transparent;text-align:left;font-weight:400;padding:0}.auto-calendar-grid.month{gap:5px;border:0;grid-auto-rows:minmax(82px,auto)}.auto-calendar-cell.month-day{border:1px solid #d7e1dc;border-radius:5px;background:#f2f5f3;padding:7px;gap:3px}.auto-calendar-cell.month-day.selected{outline:1px solid #a8bfb6;outline-offset:-1px;background:#eef4f0}.auto-calendar-cell.month-day.outside{opacity:.5}.month-blank{background:transparent}.auto-calendar-toolbar label[hidden]{display:none}.auto-calendar-cell.month-day:not(:disabled):hover,.auto-calendar-cell.month-day:not(:disabled):focus-visible{outline:1px solid #a8bfb6;outline-offset:-1px;background:#eef4f0;cursor:pointer}.pattern-selection{display:flex;align-items:center;gap:6px}.person-settings-row .pattern-selection input[type=checkbox]{width:16px;height:16px;min-width:16px;margin:0;flex:none}.pattern-selection output{flex:1;min-width:0}.auto-calendar-cell.month-day>span.month-shift{background:var(--month-shift-tint,transparent);border:0;border-radius:4px;padding:3px 5px}.auto-calendar-cell.month-day>span.month-shift{background:transparent;padding:3px 0}.overview-section>summary.overview-section-title{cursor:pointer;padding:4px 0}.overview-section>summary.overview-section-title h2{display:inline;margin:0}.overview-section[open]>summary.overview-section-title{margin-bottom:16px}
/* Shared neutral controls; calendar fills retain their shift meanings. */
:root{--control-border:#cbd1d0;--control-active:#e9eceb;--control-radius:6px}
body button:not(.auto-calendar-cell){background:#fff!important;color:#203434!important;border:1px solid var(--control-border)!important;border-radius:var(--control-radius)!important;box-shadow:none!important;font-weight:400;}
body button:not(.auto-calendar-cell):is(.active,.selected,[aria-pressed="true"],[aria-selected="true"]){background:var(--control-active)!important;border-color:#899592!important;box-shadow:inset 0 0 0 1px #899592!important}
body button:not(.auto-calendar-cell):hover:not(:disabled){background:#f1f3f2!important;border-color:#899592!important}
body button:focus-visible{outline:2px solid #899592;outline-offset:2px}
body button:disabled{opacity:.45;cursor:not-allowed}
body button:is(.primary,.secondary){min-height:40px;padding:9px 14px}
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),body select,body textarea,body .generated-pattern-name{border:1px solid var(--control-border);border-radius:var(--control-radius);background:var(--input-background,#fff);color:var(--ink);box-shadow:none}
body .card,body .tile{border:1px solid var(--control-border);border-radius:var(--control-radius);background:#fff;box-shadow:none}
.planning-basis-actions{display:flex;flex-wrap:nowrap!important;gap:10px;overflow-x:auto;margin-top:16px;align-items:center}
.planning-basis-actions button{flex:0 0 auto;white-space:nowrap}

.setup-fold{margin:8px 0;border:1px solid var(--line);border-radius:6px;padding:12px}.setup-fold>summary{cursor:pointer;font-size:16px;font-weight:600}.setup-fold[open]>summary{margin-bottom:14px}
#working-hours-settings .working-hours-grid{grid-template-columns:minmax(300px,1.7fr) minmax(130px,.8fr) minmax(150px,.9fr) minmax(260px,1.5fr)}
#working-hours-settings .working-hours-grid label{font-size:12px;font-weight:400}
body button:not(.auto-calendar-cell):is(.active,.selected,[aria-pressed="true"],[aria-selected="true"]){background:#f2f4f3!important;border-color:#a2adaa!important;box-shadow:inset 0 0 0 1px #c0c8c5!important}
@media(max-width:850px){#working-hours-settings .working-hours-grid{grid-template-columns:1fr}}

#working-hours-settings:not(.card){padding:0;margin:0;border:0;background:transparent;border-radius:0}#working-hours-form{margin:0;padding:0}#working-hours-form>.card{width:100%;margin:0 0 22px;padding:25px}

/* The requirements wrapper adds no spacing around its two section cards. */
#working-hours-settings:not(.card){display:flow-root;margin:0!important;padding:0!important}#working-hours-form{display:flow-root;margin:0!important;padding:0!important}#working-hours-form>.card{margin-top:0!important;margin-bottom:22px!important}#working-hours-form>.card:last-child{margin-bottom:22px!important}.setup-save-area{margin-top:0!important;margin-bottom:22px!important}

/* Shared collapsible section headings for Overview and Shifts setup. */
.setup-fold>summary,.overview-section>summary.overview-section-title{cursor:pointer;font-size:16px;font-weight:600;line-height:1.5;color:var(--ink)}
.overview-section>summary.overview-section-title{border:1px solid var(--line);border-radius:6px;padding:12px;margin:8px 0}
.overview-section>summary.overview-section-title h2{font:inherit;display:inline;margin:0}
.overview-section[open]>summary.overview-section-title{margin-bottom:14px}

/* Identical section-bar geometry across both pages. */
.setup-fold>summary,.overview-section>summary.overview-section-title{box-sizing:border-box;min-height:46px;padding:11px 12px!important;margin:0;font:600 16px/22px system-ui,sans-serif;border:1px solid var(--line);border-radius:6px}
.setup-fold{padding:0;border:0;margin:8px 0}
.setup-fold[open]>summary,.overview-section[open]>summary.overview-section-title{margin-bottom:14px}
.overview-section>summary.overview-section-title{margin-top:8px;margin-bottom:8px}
.overview-section>summary.overview-section-title :is(h2,strong){font:inherit!important;letter-spacing:normal;margin:0;display:inline}

#content>.overview-section{margin-top:0!important;margin-bottom:22px!important}
#content>.overview-section+.card{margin-top:0!important}

/* Shared outer geometry: both pages use this single section-card class. */
body .ui-section-card{box-sizing:border-box;width:100%;padding:16px 20px!important;margin:0 0 22px!important;border:1px solid var(--control-border);border-radius:6px}

@media(min-width:1001px){body main{padding:27px 22px}}

.heading>div>p{margin:2px 0 0}.heading .eyebrow:empty,.heading>div>p:empty{display:none}

/* Shared page header alignment. Keep status notices out of document flow. */
.top>span{display:none}.top{justify-content:flex-end;height:0;min-height:0;padding:0}.top-actions:empty{display:none}
#shared-save-status{position:fixed;bottom:12px;right:20px;z-index:1000;max-width:min(480px,calc(100vw - 40px));padding:6px 10px;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:12px}
.heading{margin:20px 0 22px!important;min-height:84px;align-items:flex-start}
.heading>div:first-child{display:grid;grid-template-rows:25px 39px 14px;align-content:start}
.heading .eyebrow{grid-row:1}.heading h1{grid-row:2;margin:2px 0!important;font-size:32px!important;line-height:1.2!important}.heading>div>p{grid-row:3}

#auto-foundation .auto-policy-grid{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(320px,2fr) minmax(145px,.8fr) minmax(120px,.7fr);max-width:100%;margin:0 auto 18px;gap:12px;min-width:0;text-align:center;overflow-x:auto}#auto-foundation .auto-policy-grid input{text-align:center}
#auto-results>.ui-section-card{margin-top:0!important}.daily-clock-information>.daily-clock-actions{margin-top:14px;flex-wrap:wrap}
#auto-results input[type=time]:focus{outline:1px solid #b7c3be;outline-offset:1px;box-shadow:none}#auto-results ::selection{background:#e0e8e4;color:inherit}

#auto-clock-title{text-align:center}#auto-clock-title>span{display:block}#auto-clock-title>span+span{margin-top:4px}

.approval-schedule{white-space:pre-wrap;font:inherit;line-height:1.6}#approval-form textarea{width:100%;padding:11px;margin-top:7px}fieldset{min-width:0;border:1px solid var(--line);border-radius:6px}#approval-form .check-line{margin-top:14px;display:flex;align-items:center;gap:8px}#approval-form .check-line input{width:auto;margin:0}#approval-clock{pointer-events:none}

.section-form{margin-top:14px}.section-form>.actions{margin-top:14px}#personal-legend{margin:14px 0}#personal-legend>.own-entry{display:inline-block}

.calendar-date-with-weekday{display:flex;align-items:center;gap:10px}.calendar-date-with-weekday input{width:auto}.calendar-weekday{font-size:14px;font-weight:400;white-space:nowrap}

.personal-pattern-row{display:grid;grid-template-columns:minmax(85px,.6fr) minmax(130px,1fr) repeat(2,minmax(160px,1.5fr)) minmax(130px,1fr);gap:6px;align-items:end}.personal-pattern-row output{display:block;width:100%;min-height:40px;padding:9px 12px;border:1px solid var(--control-border);border-radius:6px;background:white;color:var(--ink);font-size:14px;font-weight:400}@media(max-width:900px){.personal-pattern-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.personal-pattern-row{grid-template-columns:1fr}}

.personal-pattern-preference{margin-top:22px}

.generated-pattern-name{background:#edf0ee!important;color:#647777!important;cursor:default}

.worker-access-control{display:flex;align-items:center;gap:8px;margin-inline-start:12px;font-size:12px;font-weight:400;align-self:center}.worker-access-control input[type=checkbox]{width:13px;height:13px;min-width:13px;margin:0}

.assigned-people-table input.people-select{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:14px;min-width:14px;height:14px;margin:0}.assign-right.actions{flex-wrap:nowrap;align-self:start}#assignment-add{margin-top:22px}

.people-search-result{display:flex;align-items:center;gap:8px;padding:0;margin:0}.people-search-result input[type=checkbox]{width:14px;min-width:14px;height:14px;margin:0}#people-search-results{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:10px 0 22px}

#assigned-people-list .assigned-people-table{width:100%;table-layout:fixed}#assigned-people-list .assigned-people-table th:nth-child(1){width:14%}#assigned-people-list .assigned-people-table th:nth-child(2){width:6%}#assigned-people-list .assigned-people-table th:nth-child(3){width:12%}#assigned-people-list .assigned-people-table th:nth-child(4){width:16%}#assigned-people-list .assigned-people-table th:nth-child(5){width:14%}#assigned-people-list .assigned-people-table input,#assigned-people-list .assigned-people-table select{width:100%;min-width:0}#assigned-people-list .assigned-people-table th{white-space:nowrap}#assigned-people-list .assigned-people-table td:not(.assignment-row-actions)>button:not(.compact-icon-button){width:100%}

.assignment-period-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.assignment-period-row>.assign-right{display:flex;gap:12px;margin:0 0 0 auto;align-self:center}.assignment-period-row>.assign-right.actions{margin-top:0}.assignment-period-row>p{margin:0}

#assign-people-step{margin-top:32px;padding-top:22px;border-top:1px solid var(--line)}#assign-people-step .cardhead{margin-bottom:0}.section-related-link{display:inline;margin-left:16px;font-size:inherit;font-weight:400!important}.section-heading-link{float:none;margin-left:4px;font:600 16px/22px system-ui,sans-serif;color:var(--ink);text-decoration:none}

.person-settings-row.pattern-edit-row{grid-template-columns:110px minmax(110px,.9fr) minmax(100px,.8fr) repeat(2,minmax(110px,1.3fr)) minmax(110px,1fr) 34px}body button.pattern-icon-button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:34px;min-width:34px;max-width:34px;height:34px;min-height:34px;max-height:34px;padding:0;font-size:14px;font-weight:400;line-height:1}

#people-search{font-size:14px}#people-search-results .people-search-result button{font-size:14px;font-weight:400;min-height:34px;padding:6px 10px;margin:0}

.assignment-entry button,.assigned-people-table button[data-action="remove"]{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:40px;min-height:40px;padding:0;font:400 14px/1 system-ui,sans-serif}#assigned-people-list .assigned-people-table th:nth-child(6),#assigned-people-list .assigned-people-table td:nth-child(6){width:32px;padding-right:0;padding-left:0}.assigned-people-table button[data-action="remove"]{margin-left:auto}.assigned-people-table{border-spacing:0}.assignment-entry{padding-right:0}

aside{padding-bottom:90px}aside .sidebar-signout{position:absolute;left:20px;right:20px;bottom:24px;width:calc(100% - 40px)}aside footer{bottom:80px}

/* Shared top edge aligns with the sidebar brand. */
body main{padding-top:30px}
.welcome-screen{min-height:calc(100dvh - 60px);display:grid;place-items:center}.welcome-screen h2{margin:0}.signed-out .top{border:0}

/* Reusable compact action controls. */
.compact-controls button,body .compact-controls button:is(.primary,.secondary){height:34px;min-height:34px;padding:6px 10px;font-size:14px;font-weight:400;line-height:20px}.actions[hidden]{display:none!important}

.summary-table{width:100%;border-collapse:collapse;table-layout:fixed}.summary-table th,.summary-table td{padding:8px 6px;border-bottom:1px solid #d9e1dd;text-align:right;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:break-word}.summary-table th:first-child,.summary-table thead th:nth-child(2),.summary-table tbody td:nth-child(2){text-align:left}.summary-table thead th{vertical-align:bottom}.summary-table tfoot{font-weight:600}

.form-stack>label+label{margin-top:14px}

.period-hours-chart{max-width:520px;margin:18px 0 22px}.period-hours-chart figcaption{font-weight:600;margin-bottom:14px}.period-hours-chart figcaption span{display:none}.hours-chart-row{display:grid;grid-template-columns:210px minmax(0,1fr) 70px;align-items:center;gap:12px;margin:10px 0;font-size:12px}.hours-chart-track{display:flex;height:30px;background:#f1f4f2;border-radius:4px;overflow:hidden}.hours-chart-track span{display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;white-space:nowrap}.hours-chart-regular{background:#247b69;color:white}.hours-chart-overtime{background:#e3bb70;color:#243434}.hours-chart-row>strong:last-child{text-align:right}

.message-editor{min-height:160px;white-space:pre-wrap;font:inherit;font-weight:400;border:1px solid #cbd7d0;border-radius:6px;padding:11px;margin-top:7px;background:white}.message-editor [data-message-visual]{white-space:normal;max-width:520px;margin:16px 0}.message-editor .period-hours-chart{font-size:12px}.message-editor .hours-chart-row{grid-template-columns:210px minmax(0,1fr) 58px;gap:8px}.message-editor .hours-chart-track{height:24px}

.message-shift-clock{width:420px;max-width:100%;aspect-ratio:1;margin:0 auto}.message-shift-clock svg.shift-clock{display:block;width:100%!important;height:100%!important;max-width:none;pointer-events:none}

body button.secondary.compact-icon-button,body .assigned-people-table td button.compact-icon-button[data-action="remove"]{display:inline-flex;align-items:center;justify-content:center;width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;max-height:24px;padding:0;font-size:14px;line-height:1;vertical-align:middle;margin-left:4px}

#assigned-people-list table{table-layout:fixed}#assigned-people-list td>button:not([data-action="remove"]),#assigned-people-list td>input,#assigned-people-list td>select{width:100%;text-align:left}#assigned-people-list th:nth-child(1){width:170px}#assigned-people-list th:nth-child(2){width:10%}#assigned-people-list th:nth-child(3){width:17%}#assigned-people-list th:nth-child(4){width:22%}#assigned-people-list th:nth-child(5){width:22%}#assigned-people-list th:nth-child(6){width:32px}#assigned-people-list th:nth-child(7){width:64px}#assigned-people-list tr.assignment-selected{background:#f0f5f2}

select.wheel-select{appearance:none;-webkit-appearance:none;background-image:none;cursor:ns-resize}

.assign-left .summary-table tbody tr,#assigned-people-list tbody tr{height:56px}.assign-left .summary-table td,.assign-left .summary-table th,#assigned-people-list td{vertical-align:middle}

.manager-assignment-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) auto auto;gap:12px;align-items:end}.manager-assignment-row>strong{align-self:center}.manager-assignment-row select{margin-top:7px}[data-user-results]{display:flex;flex-wrap:wrap;gap:8px}@media(max-width:650px){.manager-assignment-row{grid-template-columns:1fr 1fr}}

.shift-source-actions{justify-content:flex-end;gap:12px;margin:0 0 0 auto}.setup-fold>summary:has(.shift-source-actions){position:relative;display:list-item;padding-right:310px!important}.setup-fold>summary .shift-source-actions{position:absolute;right:6px;top:50%;transform:translateY(-50%)}.shift-source-actions .shift-set-name{margin-left:0;align-self:center;font-size:12px;font-weight:400;color:var(--muted);text-align:right;overflow-wrap:anywhere;}

.heading .schedule-library-tools{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;align-self:center;gap:12px;margin:0 0 0 auto}.heading .schedule-library-tools small{display:block;flex:0 0 auto;margin:0;line-height:1.2;font-size:12px;color:var(--muted);white-space:nowrap}.heading .schedule-library-tools button{margin:0;flex:0 0 auto}

.assignment-save-bar{display:flex;align-items:center;gap:8px;margin:0;padding:0;border:0;flex-wrap:wrap}.assignment-row-actions{vertical-align:middle}.assignment-row-actions .assignment-save-bar{flex-wrap:nowrap}.assigned-people-table td.assignment-row-actions{padding-left:6px}.assignment-row-actions .assignment-save-bar #preferences-save{width:auto;flex:1.8}.assignment-row-actions .assignment-save-bar button{white-space:normal;min-width:0;flex:1;padding:0 6px;line-height:15px}.assigned-people-table td button[data-action="off"],.assigned-people-table td button[data-action="leave"]{white-space:normal;line-height:15px}.assignment-save-bar [role=status]{margin:0;align-self:center}

.schedule-period-grid .schedule-period-save{align-self:end;justify-self:start;margin:0;min-height:34px;padding:6px 16px}

/* Shared square checkbox control across all scheduler pages. */
body input[type=checkbox]{appearance:none;box-sizing:border-box;display:inline-grid;place-content:center;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px;max-height:16px;padding:0!important;border:1px solid var(--control-border,#bccbc5);border-radius:2px;background:#fff;color:var(--ink,#20343b);vertical-align:middle;flex:none;cursor:pointer}body input[type=checkbox]:checked{background:#e7efeb;border-color:#708b7f}body input[type=checkbox]:checked::before{content:'';width:4px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}body input[type=checkbox]:focus-visible{outline:2px solid #517c6e;outline-offset:2px}body input[type=checkbox]:disabled{opacity:.5;cursor:default}

.company-holiday-row{display:grid;grid-template-columns:160px minmax(180px,1fr) 40px;gap:12px;align-items:center;margin:8px 0}.company-period-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;grid-column:1/-1}.company-holiday-row input{margin:0}@media(max-width:600px){.company-holiday-row{grid-template-columns:130px minmax(100px,1fr) 40px;gap:6px}}

.page-back-row{margin-top:22px}

/* Shared spacing for stacked form controls and action rows. */
.control-stack{display:flex;flex-direction:column;gap:14px}.control-stack>.hint,.control-stack>.actions,.control-stack>details{margin:0}.control-stack>[data-holidays]:empty{display:none}.setup-fold>.control-stack{margin-top:14px}.control-stack>.actions{flex-wrap:wrap}

.coverage-heading{justify-content:space-between;margin-bottom:14px}.coverage-heading h3{margin:0}

/* Shared action rows keep the concluding action on the right. */
.actions.schedule-save-actions{flex-wrap:nowrap;gap:12px}.actions .action-end{margin-left:auto}.schedule-save-actions [role="status"]:not(:empty){position:fixed;right:24px;bottom:24px;z-index:1000;max-width:min(520px,calc(100vw - 48px));padding:10px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;white-space:normal}.schedule-save-actions [role="status"]:empty{display:none}

.department-search-row{display:flex;align-items:center;gap:12px;width:100%}.department-search-row select{flex:1;min-width:0;margin:0}.department-search-row button{flex:none;margin:0 0 0 auto;white-space:nowrap}

body .schedule-library-tools button.secondary,body .shift-source-actions button.secondary{box-sizing:border-box;height:34px;min-height:34px;padding:0 14px;font:400 14px/20px system-ui,sans-serif;white-space:nowrap}

/* Schedule period: dates, staffing, then minimum staffing and Save. */
.schedule-period-grid>label:has(#sp-onsite-people){grid-column:1}
.schedule-period-grid [data-shift-minimums]{grid-column:1/-1;align-items:end}
body .schedule-period-grid input,body .schedule-period-grid select,body .schedule-period-grid button{box-sizing:border-box;height:34px;min-height:34px;padding:0 12px;font:400 14px/20px system-ui,sans-serif}

/* Shared compact Save Schedule row on setup and scheduling. */
body .card.schedule-save-card{display:flex;align-items:center;gap:12px;box-sizing:border-box;height:96px;min-height:96px;padding:24px 20px!important}
.schedule-save-card>h2{flex:none;margin:0;font:600 16px/22px system-ui,sans-serif}
.schedule-save-card>.schedule-save-actions{flex:1;min-width:0;height:34px;gap:12px;margin:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.schedule-save-card>.schedule-save-actions>button{flex:none}
body .schedule-save-card button.secondary{box-sizing:border-box;height:34px;min-height:34px;padding:0 12px;font:400 14px/20px system-ui,sans-serif;white-space:nowrap}
.schedule-save-card [role=status]:empty{display:none}
@media(max-width:850px){body .card.schedule-save-card{flex-wrap:nowrap}.schedule-save-card>.schedule-save-actions{flex-wrap:nowrap}}

.action-status-row{margin-top:8px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.action-status-row:empty{display:none}

.pattern-hours-table th:not(:last-child),.pattern-hours-table td:not(:last-child){width:1%;white-space:nowrap;padding-right:16px}.pattern-hours-table th:last-child,.pattern-hours-table td:last-child{width:auto;min-width:0}

.hours-mini-chart{max-width:520px;margin:0 0 22px;padding:12px;border:1px solid #cbd7d0;border-radius:6px;font-size:12px}.hours-mini-chart>.hours-chart-track{margin:10px 0 7px;height:26px}.hours-mini-legend{display:flex;justify-content:space-between;gap:12px}.hours-mini-average{display:flex;flex-wrap:wrap;gap:6px 16px;border-top:1px solid #cbd7d0;margin-top:12px;padding-top:10px}.hours-mini-average>strong{flex-basis:100%}.hours-mini-chart>small{display:block;margin-top:10px;line-height:1.5}

[data-current-schedule-name].schedule-pending { background:#fff1ce; color:#634e19; border-radius:4px; box-shadow:0 0 0 4px #fff1ce; font-weight:600; }

/* Shared row for buttons beside labeled form fields. */
.actions.field-actions{align-items:flex-end;flex-wrap:wrap;gap:12px}.field-actions>label{margin:0}.field-actions>label>input{height:40px;margin-top:6px;padding:9px 10px;font-size:14px;line-height:20px}.field-actions>button{height:40px;white-space:nowrap}

body .compact-controls input.compact-date{box-sizing:border-box;width:auto;min-height:34px;height:34px;margin:0;padding:6px 10px;font-size:14px;line-height:20px;align-self:center}.compact-controls .compact-date[hidden]{display:none}


.person-settings-row.pattern-edit-row>label>span:not(.pattern-selection){line-height:18px;min-height:18px}.person-settings-row.pattern-edit-row input.wheel-choice,.person-settings-row.pattern-edit-row .pattern-selection{height:34px;min-height:34px;margin:0!important}

.daily-shift-heading>strong{white-space:nowrap;flex-shrink:0}

.assignment-spots-table th:first-child,.assignment-spots-table td:first-child{width:130px;text-align:left;white-space:nowrap}
.assignment-spots-table thead th{font-weight:700}
.assignment-spots-table th:nth-child(2),.assignment-spots-table td:nth-child(2){width:160px;white-space:nowrap}

.assignment-spots-table [data-training-row] :is(select,input[type="date"]){box-sizing:border-box;width:100%;min-width:0;height:34px;min-height:34px;margin:0;padding:0 10px;font:inherit}
.training-limits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:center}
.training-person{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:8px;align-items:center}
.summary-table [role="status"],.training-save-actions [role="status"]{display:inline-block;margin-left:12px;font-weight:400}

.assignment-section-title{margin:0 0 8px;font-size:16px;line-height:20px;font-weight:700}.assign-left .summary-table .training-section-heading{height:auto}.assignment-spots-table .training-section-heading th{width:auto;padding:12px 0 0;border-bottom:0;text-align:left;font-weight:700;background:transparent}

.assignment-spots-table th:nth-child(3),.assignment-spots-table td:nth-child(3){width:150px;text-align:left}

.actions.training-save-actions{margin-top:14px}

.heading.heading-with-options{flex-wrap:wrap;row-gap:2px}.heading.heading-with-options>div:first-child{grid-template-rows:25px 39px}.heading-options-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 100%;min-width:0}.heading-options-row>p{grid-row:auto;margin:2px 0 0;white-space:nowrap}.heading-options-row>.worker-access-control{margin:0 0 0 auto;flex:none;white-space:nowrap}@media(max-width:1000px){.heading-options-row{flex-wrap:wrap}.heading-options-row>p{white-space:normal}}




