.work-actions,.work-dialog header{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;margin-block:1rem}.work-dialog{box-sizing:border-box;width:min(94vw,54rem);max-height:85vh;overflow:auto;border:1px solid #617081;border-radius:1rem;padding:1.4rem;background:Canvas;color:CanvasText}.work-dialog::backdrop{background:#101725aa}.work-dialog header{justify-content:space-between}.work-dialog article,.work-dialog details{padding:.8rem 0;border-bottom:1px solid #82909a66}.work-dialog summary{cursor:pointer}.work-dialog form{display:flex;align-items:end;flex-wrap:wrap;gap:.7rem;margin-block:1rem}.work-dialog label{display:grid;gap:.25rem}.work-dialog table{width:100%;font-size:.84rem}.work-dialog details{overflow:auto}.work-dialog button{margin:.2rem}@media print{body:has(.work-dialog[open])>*:not(.work-dialog){display:none!important}.work-dialog[open]{position:static!important;width:100%;max-height:none;overflow:visible;border:0}.work-dialog button,.work-dialog form{display:none}.work-dialog details{overflow:visible}}
#content:has(#rotation-board),#content .panel:has(#rotation-board),#content .panel-body:has(#rotation-board),#rotation-board{min-width:0;max-width:100%}.rg-period{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin:1em 0}.rg-period h3{font-size:1.25rem;margin:0;text-transform:capitalize}.rg-scroll{width:100%;overflow:auto;max-height:65vh;border:1px solid var(--line,#505469);border-radius:12px;isolation:isolate}.rg-scroll .rg-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.rg-grid :is(th,td){border:0;border-right:1px solid var(--line,#505469);border-bottom:1px solid var(--line,#505469);padding:.32rem;text-align:center;min-width:6.25rem}.rg-grid thead th,.rg-grid th:first-child{background:var(--panel,#25283a);position:sticky}.rg-grid thead th{top:0;z-index:2}.rg-grid th:first-child{left:0;z-index:1;text-align:left;min-width:9rem;max-width:12rem;white-space:normal;padding:.6rem}.rg-grid thead th:first-child{z-index:3}.rg-grid thead :is(b,small),.rg-slot :is(b,small){display:block}.rg-grid thead b{font-size:1rem}.rg-grid thead small{text-transform:uppercase}.rg-grid th i{display:inline-block;width:.75rem;height:.75rem;border-radius:50%;margin-right:.4rem;background:hsl(var(--rg-hue) 70% 65%)}.rg-scroll button.rg-slot{display:block;width:100%;min-height:2.8rem;font-size:.76rem;white-space:nowrap;border-radius:.45rem;border:0;border-left:4px solid hsl(var(--rg-hue) 68% 45%);background:hsl(var(--rg-hue) 73% 86%);color:#172333;padding:.35rem}.rg-slot small{max-width:9rem;overflow:hidden;text-overflow:ellipsis}.rg-empty{opacity:.55}.rg-rest{font-size:.8rem}.rg-grid td.rg-weekend{background:rgba(128,128,160,.12)}.rg-grid th.rg-today{box-shadow:inset 0 -3px #53c9ae}@media(max-width:650px){.rg-grid th:first-child{min-width:6rem;max-width:7rem}.rg-period{gap:.35rem}}

.rg-centres>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:.75rem;margin:.7rem 0}.rg-centres article{padding:.85rem;border:1px solid var(--line,#606474);border-radius:12px}.rg-centres h4{margin:0 0 .4rem}.rg-centres ul{padding:0;list-style:none;margin:0}.rg-centres li{padding:.4rem 0}.rg-centres article p{margin:.35rem 0}.rg-centres input{width:auto}

#fields .rotation-settings label:has(>input[type=checkbox]){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:.65rem;min-height:2.25rem;margin:0;text-align:left}
#fields .rotation-settings label>input[type=checkbox]{display:inline-block;width:1rem;height:1rem;min-height:0;flex:0 0 1rem;padding:0;margin:0}
.rotation-settings fieldset{margin:0 0 1rem;padding:.6rem 1rem;border-radius:.65rem}
.rg-grid .rg-empty{white-space:normal;font-size:.72rem}

.employee-rotation-agenda{margin:1rem 0;padding:1rem;border:1px solid var(--ep-line);border-radius:18px;background:var(--ep-surface);color:var(--ep-text)}
.employee-rotation-agenda .agenda-period{display:flex;align-items:center;justify-content:space-between;gap:.4rem}
.agenda-period button{min-width:44px;min-height:44px}
.employee-rotation-agenda ol{list-style:none;padding:0;margin:.6rem 0 1rem}
.employee-rotation-agenda li{display:grid;grid-template-columns:5rem 1fr;gap:.7rem;align-items:baseline;padding:.65rem 0;border-bottom:1px solid var(--ep-line)}
.employee-rotation-agenda small{display:block;color:var(--ep-muted);overflow-wrap:anywhere}
