#admin>.top .right #officeFixedBack{position:static!important;inset:auto!important;flex:0 0 auto!important;box-shadow:none!important;margin:0!important;padding:9px 12px!important;min-height:42px!important;font-size:15px!important}
#admin>.top .right #officeFixedBack[hidden]{display:none!important}
@media(min-width:901px){
 #admin>.top .right{gap:6px!important;min-width:0!important}
 #admin>.top .right>.btn,#admin>.top .officeLayoutChoice>.btn{padding:9px 12px!important;min-height:42px!important;font-size:15px!important;white-space:nowrap!important}
 #admin>.top .officeLayoutChoice{display:flex!important;flex-wrap:nowrap!important;gap:5px!important}
 #admin>.top .topPortalSearchWrap{min-width:150px!important;flex:1 1 230px!important;max-width:340px!important}
 #admin>.top .topPortalSearchWrap input{min-width:0!important;width:100%!important;font-size:15px!important}
}
@media(max-width:900px){#admin>.top .right #officeFixedBack{font-size:12px!important;padding:7px 8px!important;min-height:40px!important}}

/* One persistent location for office navigation, beside the layout choices. */
#admin#admin#admin#admin>.top .right .officePrimaryNavigation{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;order:-10!important;grid-column:1/-1!important;min-width:0!important}
#admin#admin#admin#admin>.top .right .officePrimaryNavigation .officeLayoutChoice{margin:0!important}
#admin#admin#admin#admin>.top .right #officeFixedBack{position:static!important;inset:auto!important;order:0!important;width:auto!important;flex:0 0 auto!important;background:#c62828!important;border:1px solid #c62828!important;color:#fff!important;visibility:visible!important;pointer-events:auto!important;min-height:44px!important}
#admin#admin#admin#admin>.top .right #officeFixedBack[hidden]{display:none!important}
#admin#admin#admin#admin>.top .right .officePrimaryNavigation:has(#officeFixedBack[hidden]):has(.officeLayoutChoice[hidden]){display:none!important}
body:has(#admin:not(.hidden)) dialog .portalBackButton{background:#c62828!important;border-color:#c62828!important;color:#fff!important}

/* Personnel header uses the same button sizing as the Home header. */
body #rotationDialog>header>.portalBackButton,
body #rotationDialog>header>#rotClose{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:9px 12px!important;font-size:15px!important;line-height:22px!important;font-weight:700!important;border-radius:10px!important;white-space:nowrap!important;flex:0 0 auto!important}
@media(max-width:900px){body #rotationDialog>header>.portalBackButton,body #rotationDialog>header>#rotClose{min-height:40px!important;padding:7px 8px!important;font-size:12px!important;line-height:24px!important}}
