/* Interactive HR screens share the notification-center skin. Print is untouched. */
@media screen{
html body.oa-hr-theme{background:#f3f6f9!important;color:#213c50;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei",sans-serif;font-size:14px;--oa-ink:#213c50;--oa-muted:#617587;--oa-border:#d3dee7}
html body.oa-hr-theme :is(h1,h2,h3){color:#213c50;line-height:1.4}
html body.oa-hr-theme h1{font-size:22px!important;font-weight:700}
html body.oa-hr-theme h2{font-size:18px!important;font-weight:600}
html body.oa-hr-theme :is(.panel,.card,.notification-panel,.table-panel,.transfer-panel,.review-card,.calendar-card){background:#fff!important;border:1px solid #d3dee7!important;border-radius:14px!important;box-shadow:0 2px 5px #23496908!important;backdrop-filter:none!important}
html body.oa-ui.oa-ui.oa-hr-theme :is(button,.button-link,.link-button,a.secondary,.account-action,.admin-context-tabs a):not(.oa-close-control):not(.sidebar-shade):not(.oa-drawer-shade):not(.oa-action-confirm):not(.oa-action-cancel):not(.oa-action-withdraw){background:linear-gradient(155deg,#ffffffed,#f1f6fbe6)!important;border:1px solid #c6d7e3!important;border-radius:10px!important;box-shadow:inset 0 1px 0 #fff,0 2px 4px #2349690a!important;color:#36566c;min-height:34px;font-size:13px}
html body.oa-ui.oa-ui.oa-hr-theme :is(button[aria-pressed=true],button.active,.admin-context-tabs a.active){background:#dceaf5!important;border-color:#81aac6!important}
html body.oa-hr-theme :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff!important;border:1px solid #cbd9e3!important;border-radius:8px!important;color:#213c50;font:inherit}
html body.oa-hr-theme :is(input,select,textarea):focus-visible{outline:2px solid #81aac6;outline-offset:2px}
html body.oa-hr-theme table{color:#213c50;font-size:13px}
html body.oa-hr-theme thead th{background:#f3f6f9!important;color:#617587!important;font-size:12px;font-weight:600;border-color:#dbe4eb!important}
html body.oa-hr-theme tbody td{border-color:#e2e9ef!important}
html body.oa-hr-theme tbody tr:nth-child(even){background:#f7f9fc}
html body.oa-hr-theme tbody tr:hover{background:#eef6fc}
html body.oa-hr-theme #staff-department-tree{background:#fff;border:1px solid #d3dee7;border-radius:12px;box-shadow:0 2px 5px #23496908}
html body.oa-hr-theme .department-tree-items label:has(input:checked){background:#dceaf5;border-radius:6px}
html body.oa-hr-theme :is(.modal,.detail-modal,dialog){border:1px solid #d3dee7;border-radius:14px;background:#fff;color:#213c50}
html body.oa-hr-theme :is(.muted,.people-category-note,.notice-hint){color:#617587}
}

/* Desktop worksheet density. Screen only: printed payroll/stop reports retain their templates. */
@media screen and (min-width:761px){
 html body.oa-hr-theme{font-size:13px}
 html body.oa-hr-theme h1{font-size:18px!important}
 html body.oa-hr-theme h2{font-size:15px!important}
 html body.oa-hr-theme table{font-size:12px;line-height:1.3;font-variant-numeric:tabular-nums}
 html body.oa-hr-theme table :is(th,td){font-size:12px;padding:3px 6px;vertical-align:middle}
 html body.oa-hr-theme :is(.toolbar,.filters,.tools,.pager){gap:6px}
 html body.oa-hr-theme :is(input:not([type=checkbox]):not([type=radio]),select){font-size:12px;min-height:28px;padding:3px 6px}
 html body.oa-ui.oa-ui.oa-hr-theme :is(button,.button-link,.link-button,a.secondary,.account-action,.admin-context-tabs a):not(.oa-close-control):not(.sidebar-shade):not(.oa-drawer-shade):not(.oa-action-confirm):not(.oa-action-cancel):not(.oa-action-withdraw){min-height:28px;font-size:12px;padding:4px 8px;border-radius:6px!important}
}

/* One dense HR worksheet scale, based on the accepted leave catalog.
   Screen only. Preserve column widths, frozen offsets, wrapping and print templates.
   Virtual employee rows retain their JS-calculated 28px geometry and spacers. */
@media screen and (min-width:761px){
 html body.oa-hr-theme:not(.hr-original-report-preview){font-family:"Segoe UI","Microsoft JhengHei",sans-serif;font-size:12px!important;line-height:1.35;--hr-grid-font:11px;--hr-grid-line:1.2;--hr-control-height:26px}
 html body.oa-hr-theme:not(.hr-original-report-preview) header h1,html body.oa-hr-theme:not(.hr-original-report-preview) h1{font-size:16px!important;line-height:1.3!important;margin-top:0;margin-bottom:0}
 html body.oa-hr-theme:not(.hr-original-report-preview) h2{font-size:14px!important;line-height:1.35!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) h3{font-size:13px!important;line-height:1.35!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(.panel,.card,.table-panel,.transfer-panel,.review-card){border-radius:6px!important;padding:8px!important;margin-top:6px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(.panel-head,.page-heading){gap:6px!important;margin-bottom:6px!important;padding-top:4px!important;padding-bottom:4px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(.toolbar,.filters,.tools,.pager,.people-filters,.row-actions){gap:5px!important;font-size:11px!important;margin-top:4px;margin-bottom:4px}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(.toolbar,.filters,.tools,.pager,.people-filters) label{font-size:11px!important;gap:4px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(button,.button-link,.link-button,a.secondary,.account-action,.admin-context-tabs a):not(.oa-close-control):not(.sidebar-shade):not(.oa-drawer-shade){font-size:11px!important;min-height:var(--hr-control-height)!important;padding:3px 7px!important;border-radius:5px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(input:not([type=checkbox]):not([type=radio]),select){font-size:12px!important;min-height:var(--hr-control-height)!important;height:var(--hr-control-height)!important;padding:3px 6px!important;border-radius:5px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) select[multiple]{height:auto!important;min-height:72px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) textarea{font-size:13px!important;line-height:1.4!important;padding:5px 6px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) table,html body.oa-hr-theme:not(.hr-original-report-preview) table :is(th,td){font-size:var(--hr-grid-font)!important;line-height:var(--hr-grid-line)!important;font-variant-numeric:tabular-nums}
 html body.oa-hr-theme:not(.hr-original-report-preview) table:not(.staff-virtual-grid) :is(th,td){padding:1px 4px!important;vertical-align:middle}
 html body.oa-hr-theme:not(.hr-original-report-preview) table:not(.staff-virtual-grid) tbody td{height:18px}
 html body.oa-hr-theme:not(.hr-original-report-preview) table:not(.staff-virtual-grid) thead th{height:24px}
 html body.oa-hr-theme:not(.hr-original-report-preview) table :is(td,th) :is(strong,span,a,button,input,select){font-size:inherit!important;line-height:inherit}
 html body.oa-hr-theme:not(.hr-original-report-preview) table :is(td,th) small{font-size:10px!important;line-height:1.2!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) table :is(td,th) :is(button,input:not([type=checkbox]):not([type=radio]),select){min-height:20px!important;padding:1px 4px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview).oa-hr-theme table :is(td,th) button:not(.oa-close-control):not(.sidebar-shade):not(.oa-drawer-shade){min-height:20px!important;height:20px!important;line-height:16px!important;padding:1px 4px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) table .flag{font-size:13px!important;line-height:15px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(.badge,.tag){font-size:10px!important;line-height:1.2!important;padding:1px 4px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(.hint,.notice,.muted,.people-category-note,#status){font-size:11px!important;line-height:1.35!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(.hint,.notice){padding:6px 8px!important;margin-top:5px;margin-bottom:5px}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(.department-tree-items label,.department-tree-items summary,.department-tree-items .dept-count){font-size:11px!important;line-height:1.3!important;min-height:20px!important;padding-top:1px!important;padding-bottom:1px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) .department-tree-items :is(input[type=checkbox],input[type=radio]){width:14px!important;height:14px!important;min-height:14px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(dialog,.modal,.detail-modal) label{font-size:12px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(dialog,.modal,.detail-modal) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:13px!important;min-height:28px!important;height:28px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(dialog,.modal,.detail-modal) button{font-size:12px!important;min-height:30px!important;padding:4px 10px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) #directory-app.staff-roster-view .person-list-table :is(th,td){font-size:11px!important;line-height:1.2!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(dialog,.modal,.detail-modal) textarea{height:auto!important;min-height:48px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(label,legend){font-size:12px}
 /* Fixed virtual row boxes must not be changed independently of staffRowHeight. */
 html body.oa-hr-theme:not(.hr-original-report-preview) #directory-app .staff-virtual-grid tr.staff-window-spacer>td{font-size:0!important;line-height:0!important;padding:0!important}
}
/* Smaller displays keep touch targets and editable text usable. */
@media screen and (max-width:760px){
 html body.oa-hr-theme:not(.hr-original-report-preview){font-size:13px!important;line-height:1.4}
 html body.oa-hr-theme:not(.hr-original-report-preview) :is(button,input:not([type=checkbox]):not([type=radio]),select){min-height:36px!important}
 html body.oa-hr-theme:not(.hr-original-report-preview) table{font-size:12px;line-height:1.3}
}

/* Leave workspace: same worksheet density in all four entries, screen only. */
@media screen {
 body.hr-leave-workspace main{max-width:none;min-width:0;padding:8px 12px;box-sizing:border-box}
 body.hr-leave-workspace>header{padding:6px 12px;gap:8px;flex-wrap:wrap}
 body.hr-leave-workspace .panel{min-width:0}
 body.hr-leave-workspace :is(.toolbar,.actions,.pending-toolbar){display:flex;align-items:center;flex-wrap:wrap;gap:6px}
 body.hr-leave-workspace :is(.table-wrap,.pending-wrap){max-width:100%;overscroll-behavior-x:contain}
 body.hr-leave-workspace :is(.table-wrap,.pending-wrap) table{font-variant-numeric:tabular-nums}
 body.hr-leave-workspace :is(.table-wrap,.pending-wrap) thead th{position:sticky;top:0;z-index:3}
 body.hr-leave-workspace #search,body.hr-leave-workspace #mc-search{width:clamp(140px,22vw,260px);max-width:100%}
 body.hr-leave-workspace #year{width:80px}
 body.hr-leave-workspace #native-target-status:empty{display:none}
 body.hr-leave-workspace #native-target-status{max-width:100%;color:#9a431f;overflow-wrap:anywhere}
 body.hr-leave-workspace #native-targets tr{cursor:pointer}
 body.hr-leave-workspace #native-targets tr:focus-visible{outline:2px solid #81aac6;outline-offset:-2px}
 body.hr-leave-workspace dialog{box-sizing:border-box;max-width:calc(100vw - 20px);max-height:94dvh}
}
@media screen and (max-width:760px){body.hr-leave-workspace main{padding:6px}body.hr-leave-workspace :is(.toolbar,.actions,.pending-toolbar){gap:5px}body.hr-leave-workspace .toolbar label{max-width:100%;min-width:0}body.hr-leave-workspace .toolbar input{max-width:100%;box-sizing:border-box}}

@media screen {
 body.hr-leave-workspace>header{display:flex;align-items:center;background:#fff!important;color:#213c50!important;border-bottom:1px solid #d3dee7}
 body.hr-leave-workspace>header h1{margin:0!important;color:#213c50!important}
 body.hr-leave-workspace>header a{color:#365f79!important}
 body.hr-leave-workspace #list tr,body.hr-leave-workspace #mc-people tr{cursor:pointer}
 body.hr-leave-workspace #list tr:focus-visible,body.hr-leave-workspace #mc-people tr:focus-visible{outline:2px solid #81aac6;outline-offset:-2px}
 body.hr-leave-workspace section:has(>#details:empty),body.hr-leave-workspace section:has(>#annual-months:empty){display:none}
 body.hr-leave-workspace #annual-pages{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
}

@media screen and (min-width:701px){body.hr-leave-workspace .native-people-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body.hr-leave-workspace .native-people-layout>.table-wrap,body.hr-leave-workspace #native-target-selection .table-wrap{height:clamp(260px,55dvh,650px);max-height:650px}}
@media screen{body.hr-leave-workspace :is(#native-people-table,#native-target-table){min-width:880px}body.hr-leave-workspace :is(#native-people-table,#native-target-table) td{max-width:220px;overflow:hidden;text-overflow:ellipsis}body.hr-leave-workspace :is(#native-people-table,#native-target-table) th:nth-child(3){min-width:90px}body.hr-leave-workspace :is(#native-people-table,#native-target-table) th:nth-child(8){min-width:74px}}

@media screen{html body.hr-leave-workspace :is(#native-people-table,#native-target-table) :is(th,td){white-space:nowrap!important;overflow-wrap:normal!important}html body.hr-leave-workspace :is(#native-people-table,#native-target-table) :is(th,td):nth-child(2){left:var(--archive-first-width,110px)}}

/* Shared compact density for inline HR dictionaries. */
@media screen {
 html body.oa-hr-theme .hr-compact-worksheet {
  --hr-grid-font:11px;
  --hr-grid-line:1.25;
 }
 html body.oa-hr-theme .hr-compact-worksheet tbody td {
  padding:1px 4px!important;
 }
 html body.oa-hr-theme .hr-compact-worksheet tbody td :is(textarea,input[data-key],input[data-name],select[data-name]) {
  font-size:inherit!important;
  line-height:inherit!important;
  padding:1px 4px!important;
  min-height:20px!important;
  height:20px!important;
 }
 html body.oa-hr-theme .hr-compact-worksheet tbody td textarea {
  field-sizing:content;
  height:auto!important;
  resize:none;
  overflow:hidden;
 }
}
