.rv-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;border:1px solid #dce4e9;background:#e9eef2;padding:4px;border-radius:13px;margin:16px 0}
.rv-modes button{min-width:0;min-height:44px;border:0;border-radius:9px;background:transparent;color:#526674;font-weight:650;font-size:14px;padding:8px 5px}
.rv-modes button[aria-pressed=true]{background:#193747;color:#fff;box-shadow:0 2px 5px #142a3a20}
.rv-period{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center;margin:14px 0 18px}
.rv-period>button{width:44px;height:44px;border:1px solid #d3dce3;border-radius:11px;background:white;color:#193747;font-size:26px;padding:0}
.rv-period>button:disabled{opacity:.35;cursor:default}.rv-period-label{min-width:0;display:grid;gap:4px;text-align:center}.rv-period-label>strong{font-size:15px}.rv-period-label>small{font-size:12px;color:#647681}
.rv-period .date-picker{width:100%;min-width:0;min-height:40px;margin:0}.rv-period .date-picker>span:first-child{font-size:13px;white-space:normal}
.rv-layers{margin-bottom:12px}.rv-layers>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 16px}.rv-layers label{margin:12px 0 0}.rv-status{margin:10px 0 4px;font-size:12px}.rv-contact-hint{font-size:11px;margin:4px 0 12px;line-height:1.5}
.rv-grid{width:100%;max-width:100%;max-height:min(70dvh,720px);overflow:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;border:1px solid #d8e1e7;border-radius:13px;background:#fff;isolation:isolate;scroll-padding-left:104px}
.rv-grid table{width:100%;min-width:984px;table-layout:fixed;border-collapse:separate;border-spacing:0}.rv-grid th,.rv-grid td{padding:6px;vertical-align:top;text-align:left;border-right:1px solid #e1e7eb;border-bottom:1px solid #e1e7eb;font-size:12px}.rv-grid tr:last-child>*{border-bottom:0}.rv-grid tr>*:last-child{border-right:0}
.rv-grid thead th{background:#edf2f5;font-weight:600;position:sticky;top:0;z-index:2;height:68px}.rv-grid thead th>span,.rv-grid thead th>strong{display:block}.rv-grid thead th>span{text-transform:capitalize;color:#647681;font-size:11px}.rv-grid thead th>strong{margin-top:3px;font-size:13px}.rv-grid .rv-name{position:sticky;left:0;width:104px;z-index:3;background:#f1f5f7;overflow-wrap:anywhere;font-size:12px;font-weight:650;padding:12px 8px;box-shadow:2px 0 3px #172e3d0a}.rv-grid thead .rv-name{z-index:4}.rv-grid .is-today{background:var(--royal-brand-soft,#f0f2e7)}.rv-grid thead .is-today{box-shadow:inset 0 3px var(--royal-brand,#8c9174)}.rv-grid td.rv-restricted{background:#f0f2f4;color:#8b969e}.rv-dash{display:block;text-align:center;color:#9aa7af;padding:8px}
.rv-shift.roster-shift{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;width:100%;margin:0 0 6px;padding:9px 7px;text-align:left;border:1px solid #dce4e9;border-left:4px solid var(--rv-color);border-radius:7px;background:color-mix(in srgb,var(--rv-color) 14%,white);color:#172e3d;line-height:1.35;min-height:44px}.rv-shift.roster-shift:last-child{margin-bottom:0}.rv-shift.roster-shift strong{font-size:12px;overflow-wrap:anywhere;white-space:normal}.rv-shift.roster-shift span{margin:0;font-size:11px;white-space:normal;overflow-wrap:anywhere;color:#405562}.rv-grid button.rv-shift:active{filter:brightness(.96)}.rv-grid [hidden]{display:none!important}
.rv-request{display:inline-grid;place-items:center;width:30px;height:28px;min-height:28px;float:right;margin-top:-28px;border:1px solid #ccd7dd;border-radius:7px;background:#fff;color:#304b59;font-size:19px;padding:0}.rv-scroll-note{font-size:11px;margin:12px 0 7px}.rv-search{display:block;font-size:12px;font-weight:600;margin:14px 0}.rv-search input{width:100%;min-width:0;min-height:44px;font-size:16px;margin-top:6px}.rv-grid caption.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
main[data-view=roster]{min-width:0}main[data-view=roster]>section .rv-shift{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:10px;padding:14px}.rv-shift[data-roster-contact-shift]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* A service stays on one line; the time remains visible when a long name is shortened. */
.rv-shift.roster-shift{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.rv-shift.roster-shift strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.rv-shift.roster-shift .rv-shift-time{flex:none;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.rv-grid th,.rv-grid td{padding:4px;vertical-align:middle;font-size:11px}
.rv-grid .rv-name{width:104px;padding:7px 8px;font-size:11px}
.rv-grid thead th{height:58px;vertical-align:top}
.rv-grid .rv-shift.roster-shift{gap:5px;min-height:30px;padding:5px 5px;margin-bottom:4px;border-left-width:3px;border-radius:5px;line-height:18px}
.rv-grid .rv-shift.roster-shift strong{font-size:11px;line-height:18px;font-weight:600}
.rv-grid .rv-shift.roster-shift .rv-shift-time{font-size:10px;line-height:18px}
.rv-grid .rv-shift.roster-shift.rv-time-only{justify-content:center}
.rv-grid .rv-shift.roster-shift.rv-time-only .rv-shift-time{font-size:11px;font-weight:600}
.rv-grid .rv-dash{padding:5px;line-height:20px}
@media(min-width:1000px) and (min-height:600px){.rv-modes{max-width:480px}.rv-period{max-width:600px}.rv-scroll-note{display:none}.rv-search{max-width:400px}}
@media(max-width:350px){.rv-modes button{font-size:12px}.rv-period{gap:4px}.rv-period .date-picker{padding:6px 3px}.rv-period .date-picker>span:first-child{font-size:12px}.rv-layers{padding:14px}}
.rv-availability{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:4px;width:100%;min-height:30px;line-height:18px;padding:5px;margin:0 0 4px;border:1px solid;border-left-width:3px;border-radius:5px;text-align:left;font-size:10px;cursor:pointer;white-space:nowrap}.rv-availability>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}.rv-availability>span:last-child{flex:none;font-variant-numeric:tabular-nums}.rv-availability.is-unavailable{background:#fbe9e8;border-color:#d77b76;color:#842c2d}.rv-availability.is-available{background:#e4f3e8;border-color:#78b78b;color:#285c37}.rv-availability:focus-visible{outline:2px solid #193747;outline-offset:1px}.rv-availability:last-child{margin-bottom:0}.rv-loading{padding:24px 0;color:#607481;font-size:13px}
.rv-add-shift{display:grid;place-items:center;width:100%;min-height:30px;padding:4px;border:1px dashed #d7e0e5;border-radius:5px;background:transparent;color:#84959f;font-size:18px;line-height:20px;cursor:pointer}.rv-add-shift:hover{background:#edf3f5;color:#193747;border-color:#829da9}.rv-add-shift:focus-visible{outline:2px solid #193747;outline-offset:1px}.rv-add-shift:active{background:#e1ece5}
/* An unfilled service is red in every layout, regardless of its department. */
.rv-shift.roster-shift.rv-unassigned:not(.rv-needs-cover){background:#fee2e2;border-color:#dc2626;color:#991b1b}
.rv-shift-actions{display:flex;align-items:stretch;gap:3px;margin-bottom:4px}
.rv-shift-actions>.rv-shift.roster-shift{flex:1 1 0;width:auto;margin-bottom:0}
:root{--rv-cover-bg:#ffdf9d;--rv-cover-accent:#9a5500;--rv-cover-ink:#573500}
.rv-shift.roster-shift.rv-needs-cover{margin-bottom:0;background:var(--rv-cover-bg);border-color:var(--rv-cover-accent);color:var(--rv-cover-ink)}
.rv-shift.roster-shift.rv-needs-cover .rv-shift-time{color:inherit}
.rv-grid .rv-shift-actions .rv-needs-cover.rv-unassigned:not(.rv-time-only){flex-wrap:wrap;gap:0 5px}
.rv-cover-bell{display:grid;place-items:center;flex:0 0 29px;min-height:34px;padding:0;border:1px solid #e5c287;border-radius:6px;background:#fff1cd;color:#784900}
.rv-cover-bell svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.shift-dialog .shift-cover-check{display:flex;align-items:center;gap:9px;min-height:44px;margin:8px 0}
.shift-dialog .shift-cover-check input{width:19px;height:19px;flex:0 0 auto;margin:0}
.rv-shift.roster-shift.rv-unassigned:not(.rv-needs-cover) .rv-shift-time{color:inherit}
.rv-shift.roster-shift .rv-register-hint,.rv-register-action{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;color:#193747;background:#fff;border:1px solid #a8bcc8;border-radius:5px;white-space:nowrap;font-weight:650}
.rv-shift.roster-shift .rv-register-hint{padding:2px 4px;font-size:11px}
.rv-register-action{flex-basis:34px;min-height:34px;padding:0}
.rv-register-icon{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rv-shift[data-register]:focus-visible,.rv-register-action:focus-visible{outline:2px solid #193747;outline-offset:1px}
