/* Comfortable scrollbars and bounded popup content throughout the dashboard. */
html dialog{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ui-line,#b6c1d1) transparent;scrollbar-gutter:stable;box-sizing:border-box}html dialog :is(.ui-popup-scroll,.modal-body,.dialog-body,.sf-extra-body,.lm-form-body){overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:var(--ui-line,#b6c1d1) transparent}html dialog::-webkit-scrollbar,html dialog *::-webkit-scrollbar{width:7px;height:7px}html dialog::-webkit-scrollbar-track,html dialog *::-webkit-scrollbar-track{background:transparent}html dialog::-webkit-scrollbar-thumb,html dialog *::-webkit-scrollbar-thumb{background:var(--ui-line,#bac4d2);border:2px solid var(--ui-surface,#fff);border-radius:20px}html dialog::-webkit-scrollbar-button,html dialog *::-webkit-scrollbar-button{display:none;height:0;width:0}html dialog::backdrop{backdrop-filter:blur(4px)}
#recordingCloud #rcDialog{overflow:hidden!important;max-height:88dvh!important;scrollbar-gutter:auto!important}#recordingCloud #rcDialog[open]{display:flex!important;flex-direction:column!important}#recordingCloud .rc-dialog-head{flex:0 0 auto!important;position:relative!important;z-index:1}#recordingCloud #rcDialogBody{min-height:0;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px!important}#recordingCloud #rcDialog .rc-detail-card dl{grid-template-columns:minmax(95px,.7fr) minmax(0,1.5fr)!important;gap:10px 16px!important;align-items:start!important;padding:15px!important}#recordingCloud #rcDialog .rc-detail-card :is(dt,dd){display:block!important;float:none!important;position:static!important;text-align:left!important;padding:0!important;margin:0!important;border:0!important;min-height:0!important;height:auto!important;white-space:normal!important;line-height:1.65!important;font-size:11px!important;overflow-wrap:anywhere!important}#recordingCloud #rcDialog .rc-detail-card h3{padding:11px 15px!important;line-height:1.5!important}#recordingCloud .rc-identity{margin-bottom:17px!important}#recordingCloud .rc-table td{white-space:normal!important;vertical-align:middle!important}#recordingCloud .rc-table td time{display:block;white-space:nowrap;font-size:10px}#recordingCloud .rc-table td time small{display:block!important;margin-top:3px;font-size:9px!important}#recordingCloud .rc-table td .rc-badge{white-space:nowrap;max-width:100%;font-size:9px;padding:5px 6px}#recordingCloud .rc-right .rc-table{min-width:560px!important;table-layout:fixed!important}#recordingCloud .rc-right .rc-table th:nth-child(1){width:34%!important}#recordingCloud .rc-right .rc-table th:nth-child(2){width:13%!important}#recordingCloud .rc-right .rc-table th:nth-child(3){width:22%!important}#recordingCloud .rc-right .rc-table th:nth-child(4){width:23%!important}#recordingCloud .rc-right .rc-table th:nth-child(5){width:8%!important}#recordingCloud .rc-right .rc-table td:first-child{width:auto!important}#recordingCloud .rc-filters{display:grid!important;grid-template-columns:minmax(170px,1fr) minmax(150px,.8fr) minmax(220px,1.5fr) auto!important;gap:12px!important;align-items:center!important;border:1px solid var(--rc-line)!important;border-radius:10px!important;padding:12px!important;margin:15px 0!important;background:var(--rc-soft)!important}#recordingCloud .rc-filters :is(input,select){width:100%!important;min-width:0!important;max-width:100%!important;display:block!important;height:38px!important;padding:8px 10px!important;border:1px solid var(--rc-line)!important;background:var(--rc-surface)!important;border-radius:7px!important;color:var(--rc-ink)!important}#recordingCloud [data-panel=history] .rc-table{min-width:900px!important}#recordingCloud .rc-download{white-space:nowrap}#recordingCloud .rc-download:hover{color:white;background:#1b55e5}
#staffPage .sf-page-tools{position:static!important;inset:auto!important;margin:0 0 16px!important;display:flex!important;justify-content:flex-end!important;flex-wrap:wrap;gap:9px!important}#staffPage .sf-roster-hint{margin-bottom:10px!important}#staffPage .sf-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:12px!important;overflow:visible!important}#staffPage table{min-width:1400px!important;table-layout:fixed!important}#staffPage th{white-space:normal!important;font-size:10px!important;line-height:1.5!important}#staffPage td{font-size:11px!important;line-height:1.6!important;overflow-wrap:anywhere}#staffPage th:first-child{width:35px!important}#staffPage th:nth-child(2){width:220px!important}#staffPage th:nth-child(3){width:120px!important}#staffPage th:last-child{width:92px!important}#staffPage .sf-table-wrap{scrollbar-width:thin;scrollbar-color:var(--ui-line) transparent;padding-bottom:5px}#staffPage .sf-person small{grid-column:2;white-space:normal}#staffPage .sf-dialog :is(header,footer){position:static!important;inset:auto!important;box-shadow:none!important;height:auto!important;background:var(--ui-surface)!important}#staffPage .sf-dialog{width:min(780px,94vw)!important;max-width:94vw!important}
#recordingMonitor .rm-heading{align-items:flex-start!important;flex-wrap:wrap!important;row-gap:14px!important}#recordingMonitor .rm-heading>div:first-child{flex:1 1 310px;min-width:0}#recordingMonitor .rm-head-tools{flex:0 1 auto!important;display:flex!important;justify-content:flex-end;gap:8px;align-items:center;max-width:100%}#recordingMonitor .rm-date-picker{margin:0!important;min-height:39px!important;padding:6px 9px!important}#recordingMonitor .rm-date-picker input{border:0!important;height:26px!important;min-height:0!important;width:125px!important;padding:2px 0!important}#recordingMonitor .rm-current-site{padding:10px!important}#recordingMonitor .rm-heading h1{margin:6px 0!important}#recordingMonitor .rm-head-tools>button,#recordingMonitor .rm-head-tools summary{min-height:38px!important}
@media(max-width:1150px){#recordingCloud .rc-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}#recordingMonitor .rm-head-tools{justify-content:flex-start!important;flex-basis:100%!important}#staffPage .sf-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:650px){#recordingCloud #rcDialog .rc-detail-card dl{grid-template-columns:minmax(85px,.65fr) minmax(0,1.35fr)!important}#recordingCloud .rc-filters{grid-template-columns:1fr!important}#staffPage .sf-page-tools button{flex:1;white-space:normal}#staffPage .sf-stats article{padding:13px!important;gap:9px!important}#staffPage .sf-stats i{width:32px;height:32px}#staffPage .sf-stats small{font-size:10px}#recordingMonitor .rm-date-picker{flex:1}#recordingMonitor .rm-head-tools{justify-content:flex-start}#recordingMonitor .rm-current-site{display:none}}
html body dialog:is([open],:modal){max-height:90dvh!important}html body dialog>:is(header,.dialog-head,.modal-head,.ui-popup-heading),html body dialog>form>:is(header,.ui-popup-heading){position:sticky!important;top:0!important;z-index:3!important;background:var(--ui-surface)!important;box-shadow:none!important;height:auto!important;min-height:0!important}html body dialog>:is(footer,.dialog-actions,.modal-actions),html body dialog>form>footer{position:sticky!important;bottom:0!important;z-index:3!important;background:var(--ui-surface)!important}html body dialog .ui-popup-scroll{padding-right:max(14px,env(safe-area-inset-right))!important}
#staffPage .sf-dialog header{position:sticky!important;top:0!important;z-index:3!important}#staffPage .sf-dialog footer{position:sticky!important;bottom:0!important;z-index:3!important}
