/* Employee directory presentation only. Existing fields, order and actions stay in place. */
@media screen {
 html body.directory-embedded #directory-app>header{display:none!important}
 html body #directory-app>header>div:not(.oa-language-switch){display:none!important}
 html body #directory-app.shell{width:100%;max-width:none;margin:0;padding:6px 8px;box-sizing:border-box}
 html body.oa-ui:not(.directory-embedded) #directory-app.shell{width:calc(100% - var(--oa-sidebar-width,246px));margin-left:var(--oa-sidebar-width,246px)}
 html body #directory-app>header{gap:8px;min-height:0;margin:0 0 4px;padding:0 0 4px}
 html body #directory-app>header>div>p{display:none}
 html body #directory-app>header h1{font-size:14px!important;line-height:20px!important;margin:0}
 html body #directory-app>header .back{margin:0}
 html body #directory-app>.panel{margin-top:4px!important;padding:6px!important;border:1px solid #c6d9e7;border-radius:6px!important;background:#fff;box-shadow:inset 0 1px 0 #fff,0 1px 4px #2349690a;backdrop-filter:none}
 html body #directory-app .panel-head{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap;gap:4px!important;margin:0 0 4px!important;padding:0!important}
 html body #directory-app .panel-head>div:first-child{display:none}
 html body #directory-app .panel-head>a,html body #directory-app .panel-head>button{flex:none;margin:0;font-size:11px!important;line-height:18px!important;min-height:26px!important;padding:3px 7px!important}
 html body #directory-app .directory-tools>summary{padding:3px 6px;font-size:11px;line-height:20px}
 html body #directory-app #people-category-note{display:none}
 html body #directory-app .permission-tabs{display:flex;align-items:center;gap:4px;margin:0 0 4px;padding:0}
 html body #directory-app :is(.panel-head,.permission-tabs,.people-filters,.search-row) .hr-leave-tool,
 html body #directory-app #directory-tools>summary.hr-leave-tool{flex:0 0 32px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;min-height:32px!important;min-width:32px!important;max-width:32px!important;padding:4px!important;margin:0!important;font-size:0!important;line-height:0!important;background:transparent!important;border:1px solid transparent!important;border-radius:3px!important;box-shadow:none!important}
 html body #directory-app .hr-leave-tool svg{width:23px!important;height:23px!important;min-width:23px!important}
 html body #directory-app .hr-leave-tool:is(:hover,:focus-visible){background:#e2edf7!important;border-color:#9db7d0!important}
 html body #directory-app .directory-tools>summary.hr-leave-tool{list-style:none}
 html body #directory-app .directory-tools>summary.hr-leave-tool::-webkit-details-marker{display:none}
 html body #directory-app .directory-tools:not([open]){flex:0 0 32px}
 html body #directory-app .people-filters{justify-content:flex-start;align-items:end;gap:4px!important;margin:3px 0!important;padding:0}
 html body #directory-app .people-filters>label{flex:0 1 145px;min-width:110px;gap:2px;font-size:11px}
 html body #directory-app .people-filters>label:first-child{flex:0 1 260px;min-width:180px}
 html body #directory-app .people-filters :is(input,select,button){box-sizing:border-box;font-size:11px!important;min-height:26px!important;height:26px;padding:3px 6px!important}
 html body #directory-app #people-count{margin:3px 0;font-size:11px;line-height:16px}
 html body #directory-app .people-query-note{font-size:11px;margin:3px 0}
 html body #directory-app.staff-roster-view .staff-directory-layout{gap:6px;grid-template-columns:205px minmax(0,1fr)}
 html body #directory-app.staff-roster-view #staff-department-tree{padding:5px;font-size:11px}
 html body #directory-app.staff-roster-view [data-oa-department-items] :is(summary,.department-leaf,.tree-row,.department-tree-children>label){font-size:11px!important;height:20px!important;min-height:20px!important;line-height:14.3px!important}
 html body #directory-app.staff-roster-view .staff-directory-layout>.table-wrap{height:calc(100dvh - 205px);min-height:280px;max-height:none}
 html body #directory-app.staff-roster-view .department-tree-items{height:calc(100dvh - 265px);min-height:220px;max-height:none}
 html body #directory-app.staff-roster-view .person-list-table{font-size:11px!important}
 html body #directory-app.staff-roster-view .person-list-table.staff-virtual-grid tbody tr:not(.staff-window-spacer),
 html body #directory-app.staff-roster-view .person-list-table.staff-virtual-grid tr>:is(th,td){height:23px!important;font-size:11px!important;line-height:14px!important;padding:2px 5px!important}
 /* Keep the existing single-person preview/save transaction, grouped at its original form footer. */
 html body #user-form .user-form-footer{justify-content:flex-start;gap:4px;padding:7px 10px}
}

@media screen and (min-width:601px){
 html body #directory-app.staff-roster-view .staff-directory-layout>.staff-grid-pane{display:flex;flex-direction:column;min-width:0;min-height:0;height:var(--staff-directory-height,calc(100dvh - 205px));overflow:hidden}
 html body #directory-app.staff-roster-view .staff-grid-pane>.table-wrap{flex:1 1 0;min-height:0;overflow:auto}
}
html body #directory-app #staff-grid-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0 0 4px;padding:0}
html body #directory-app #staff-grid-toolbar>.oa-action-icon,html body #directory-app #staff-grid-toolbar>button,html body #directory-app #staff-grid-toolbar>a,html body #directory-app #staff-grid-toolbar>details>summary{width:32px;height:32px;min-width:32px;min-height:32px;padding:0}
html body #directory-app #staff-grid-toolbar .hr-leave-tool{color:#547d9b!important}
html body #directory-app #staff-grid-toolbar [data-leave-icon="save"]{color:#36709d!important}
html body #directory-app #staff-grid-toolbar :is([data-leave-icon="first"],[data-leave-icon="prev"],[data-leave-icon="next"],[data-leave-icon="last"]){color:#5d8caf!important}
html body #directory-app #staff-grid-toolbar [data-leave-icon="refresh"]{color:#6c982c!important}
html body #directory-app #staff-grid-toolbar [data-leave-icon="excel"]{color:#318458!important}
html body #directory-app #staff-grid-toolbar :is([data-leave-icon="exit"],[data-leave-icon="delete"],[data-leave-icon="undo"]){color:#b33535!important}
@media screen and (min-width:601px){
 html body #directory-app.staff-roster-view .person-list-table.staff-virtual-grid tr>:is(th,td){min-width:0!important;max-width:none!important}
 html body #directory-app.staff-roster-view .person-list-table.staff-virtual-grid td[data-grid-field]{width:auto!important;overflow:hidden!important;text-overflow:ellipsis}
 html body #directory-app.staff-roster-view .person-list-table thead tr[data-grid-filter-row] th{position:sticky;top:23px;z-index:4;padding:1px 3px;height:25px}
 html body #directory-app.staff-roster-view .person-list-table thead tr[data-grid-filter-row] input{box-sizing:border-box;width:100%;min-width:0;height:21px;padding:1px 3px;font-size:11px}
}
@media screen and (min-width:601px){
 html body #directory-app.staff-roster-view .person-list-table.staff-virtual-grid td:last-child :is(a,button){height:18px!important;min-height:18px!important;max-height:18px!important;line-height:16px!important;padding:0 3px!important;margin:0 1px!important;font-size:11px!important}
}
@media screen and (max-width:600px){
 html body #directory-app.shell{padding:4px}
 html body #directory-app>header{flex-wrap:wrap}
 html body #directory-app>header>div:not(.oa-language-switch){min-width:110px}
 html body #directory-app>header .oa-language-switch{flex-wrap:wrap;max-width:100%;margin:0}
 html body.directory-embedded>.oa-language-switch.oa-language-fallback{position:static!important;justify-content:flex-end;margin:0 0 3px;padding:0 4px}
 html body #directory-app.staff-roster-view .staff-directory-layout{display:grid;grid-template-columns:minmax(0,1fr)}
 html body #directory-app.staff-roster-view .department-tree-items{height:auto;min-height:0;max-height:160px}
 html body #directory-app.staff-roster-view .staff-directory-layout>.table-wrap{height:auto;min-height:0;max-height:none;overflow:visible}
 html body #directory-app.staff-roster-view table.person-list-table.oa-mobile-stack{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
 html body #directory-app.staff-roster-view table.person-list-table.oa-mobile-stack>thead{display:none!important}
 html body #directory-app.staff-roster-view table.person-list-table.oa-mobile-stack>tbody{display:block!important;width:100%!important}
 html body #directory-app.staff-roster-view table.person-list-table.oa-mobile-stack>tbody>tr:not(.staff-window-spacer){display:grid!important;grid-template-columns:minmax(0,1fr)!important;height:auto!important;min-width:0!important;max-width:100%!important;padding:7px!important;margin-bottom:7px;border:1px solid #c6d9e7;border-radius:6px}
 html body #directory-app.staff-roster-view table.person-list-table.oa-mobile-stack>tbody>tr>td{display:block!important;position:static!important;left:auto!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;padding:4px 0!important;box-shadow:none!important}
 html body #directory-app.staff-roster-view table.person-list-table.oa-mobile-stack>tbody>tr>td::before{content:attr(data-oa-mobile-label);display:block!important;font-size:11px;line-height:1.3;color:#617587;font-weight:600}
 html body #directory-app .people-filters>label{flex:1 1 120px;min-width:0}
 html body #directory-app .people-filters>label:first-child{flex-basis:100%;min-width:0!important}
 html body #directory-app .panel-head>a,html body #directory-app .panel-head>button,html body #directory-app .people-filters button{min-height:32px!important;height:auto!important}
 html body #directory-app :is([hidden],.hidden){display:none!important}
}

/* The two existing desktop panes have identical borders and independent inner scrolling. */
@media screen and (min-width:601px){
 html body #directory-app.staff-roster-view .staff-directory-layout{align-items:stretch!important;min-height:0}
 html body #directory-app.staff-roster-view .staff-directory-layout>#staff-department-tree{position:relative!important;top:auto!important;box-sizing:border-box;height:var(--staff-directory-height,calc(100dvh - 205px))!important;min-height:0!important;max-height:none!important;display:flex;flex-direction:column;overflow:hidden}
 html body #directory-app.staff-roster-view .staff-directory-layout>.table-wrap{box-sizing:border-box;height:var(--staff-directory-height,calc(100dvh - 205px))!important;min-height:0!important;max-height:none!important;overflow:auto}
 html body #directory-app.staff-roster-view #staff-department-tree .department-tree-items{flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow:auto}
}

#directory-app.staff-roster-view .person-list-table thead tr[data-grid-filter-row]{display:none!important}

@media screen and (min-width:601px){html body #directory-app.staff-roster-view .person-list-table td[data-grid-field]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}html body #directory-app.staff-roster-view .person-list-table td[data-grid-field]>span{display:block;overflow:hidden;text-overflow:ellipsis}}

html body #directory-app.staff-roster-view .staff-directory-layout>.staff-grid-pane{overflow:visible}
html body #directory-app #staff-grid-toolbar{position:relative;z-index:20;overflow:visible;isolation:isolate}
html body #directory-app #staff-grid-toolbar>details{position:relative;z-index:1}
html body #directory-app #staff-grid-toolbar>details:is(:hover,:focus-within,[open]){z-index:30}
html body #directory-app .staff-grid-pane>.table-wrap{position:relative;z-index:0}
html body #directory-app #staff-grid-toolbar .hr-leave-tool svg{transition:transform 140ms cubic-bezier(.2,.75,.3,1);filter:drop-shadow(0 1px 1px #36557435)}
html body #directory-app #staff-grid-toolbar:hover .hr-leave-tool svg{will-change:transform}
