/* HR and equipment follow the support phone shell; desktop rules are untouched. */
@media(max-width:760px){
 html:has(body:is([data-portal-area="hr"],[data-portal-area="assets"]) #portal-workspace:not([hidden])){height:100%;overflow:hidden;overscroll-behavior:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]):has(#portal-workspace:not([hidden])){height:100dvh;max-height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #portal-main{flex:1 1 0;min-height:0;overflow:hidden}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #portal-workspace:not([hidden]){display:flex;flex-direction:column;flex:1 1 0;height:100%;min-height:0;overflow:hidden}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar{flex:none;display:flex;flex-direction:column;gap:10px;padding:14px var(--page-gutter);border:0;border-bottom:1px solid #e4e8ef;background:#f0f2f5}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar .company-brand{display:flex;align-items:center;gap:9px;margin:0;min-width:0}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar .company-brand>img{width:34px;height:34px;border-radius:5px;flex:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar .company-brand .eyebrow{font-size:7px;letter-spacing:.08em;margin:0;line-height:1.4}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar .company-brand strong{font-size:12px;line-height:1.3;margin-top:3px;display:block}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar>:is(.module-back,.employee-navigation,.module-side-watermark){display:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar>.button{width:100%;display:flex;justify-content:center;margin:0;font-size:12px;gap:8px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-content{flex:1 1 0;min-height:0;overflow:hidden;padding:20px var(--page-gutter) max(8px,env(safe-area-inset-bottom));gap:0}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-company-bar,body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-bottom-watermark{display:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-heading{margin:0;display:block;flex:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-heading .eyebrow{font-size:8px;line-height:1.4;margin:0 0 7px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-heading h1{font-size:var(--mobile-module-title-size,28px);font-weight:750;letter-spacing:-.8px;line-height:1.15;margin:0;display:block;white-space:nowrap;min-width:0}
 .mobile-module-title-row{display:flex;align-items:center;gap:10px;min-width:0;width:100%}
 .mobile-module-count{display:inline-grid;place-items:center;min-width:32px;height:32px;padding:4px;background:#0866ff;color:#fff;font-size:16px;font-weight:650;letter-spacing:normal;line-height:1;margin:0;flex:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-subtitle{font-size:12px;line-height:1.45;margin:7px 0 0;color:#6a7c93}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto 1px 44px;align-items:stretch;gap:8px;margin:12px 0 14px;flex:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-toolbar .search-box{grid-column:1/-1;order:0;min-width:0;width:100%;max-width:none;height:44px;min-height:44px;padding:0 9px;gap:6px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-toolbar .search-box input{font-size:16px;min-width:0;width:100%;padding:0;height:42px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-toolbar .search-box input::placeholder{font-size:12px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #module-refresh{order:4;width:44px;min-width:44px;padding:0;display:flex;justify-content:center;align-items:center;font-size:0;gap:0}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #module-refresh svg{width:16px;height:16px;flex:none}
 .mobile-module-choice{order:1;position:relative;display:block;min-width:0;margin:0}
 .mobile-module-company-choice{position:relative;font-size:0}
 :is(.mobile-module-choice,.mobile-module-company-choice) select{display:block;width:100%;height:44px;min-height:44px;max-height:44px;padding:0 42px 0 10px;margin:0;background:#fff;background-image:none;border:1px solid #dce2ec;border-radius:6px;appearance:none;-webkit-appearance:none;font:inherit;font-size:14px;color:#282d38}
 :is(.mobile-module-choice,.mobile-module-company-choice)::before{content:"";position:absolute;right:1px;top:1px;bottom:1px;width:34px;border-radius:0 5px 5px 0;background:#0866ff;pointer-events:none}
 :is(.mobile-module-choice,.mobile-module-company-choice)::after{content:"";position:absolute;right:14px;top:calc(50% - 5px);width:7px;height:7px;border-right:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:rotate(45deg);pointer-events:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .mobile-module-requests{order:2;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 9px;height:44px;min-height:44px;border:1px solid #dce2ec;border-radius:6px;background:#fff;color:#282d38;font-size:11px;white-space:nowrap}
 .mobile-module-requests svg{display:none}
 .mobile-module-toolbar-rule{order:3;display:block;width:1px;height:28px;align-self:center;background:#e4e8ef}
 body[data-portal-area="assets"] .module-toolbar{grid-template-columns:minmax(0,1fr) 1px 44px}
 body[data-portal-area="assets"] .module-toolbar .search-box{grid-column:auto}
 .mobile-module-list-region{flex:1 1 0;min-height:0;overflow:hidden;position:relative;border:1px solid #dce2ec;border-radius:9px;background:#fff}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #module-records{height:100%;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #module-records::-webkit-scrollbar{display:none}
 body[data-portal-area="hr"] .mobile-module-list-region{flex:0 1 auto;display:flex;flex-direction:column}
 body[data-portal-area="hr"] #module-records{height:auto;flex:0 1 auto}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .employee-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:18px 14px;min-height:86px;border:0;border-bottom:1px solid #edf0f4;border-radius:0;background:#fff;color:#171b23;text-decoration:none;-webkit-text-fill-color:currentColor}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .employee-row:last-child{border-bottom:0}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .employee-row strong{font-size:12px;line-height:1.4;color:#171b23;overflow-wrap:anywhere}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .employee-row small{font-size:10px;line-height:1.5;margin-top:4px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .employee-row>span:not(:first-child):not(:nth-child(2)):not(.employee-status){display:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .employee-status{grid-column:3;justify-self:end;font-size:9px;line-height:1.3;padding:4px 6px;white-space:normal;max-width:85px;text-align:center}
 .mobile-module-row-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:5px;background:#282d38;color:#fff;grid-column:1}
 .mobile-module-row-icon svg{width:18px;height:18px}
 .mobile-module-edge{position:absolute;left:0;right:0;height:30px;z-index:2;pointer-events:none;opacity:0;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:opacity .15s}
 .mobile-module-edge--top{top:0;background:linear-gradient(#fff, #ffffff80);mask-image:linear-gradient(#000,transparent)}
 .mobile-module-edge--bottom{bottom:0;background:linear-gradient(#ffffff80,#fff);mask-image:linear-gradient(transparent,#000)}
 .mobile-module-list-region[data-more-above]>.mobile-module-edge--top,.mobile-module-list-region[data-more-below]>.mobile-module-edge--bottom{opacity:1}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #module-loading:not([hidden]){position:absolute;inset:0;z-index:3;min-height:0;background:#ffffffed}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-state{flex:none;font-size:11px;line-height:1.5;padding:10px 12px;margin:10px 0 0}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-workspace--denied :is(.module-toolbar,.module-sidebar>.button){display:none!important}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #employee-dialog[data-mobile-module-detail="true"]{position:fixed;inset:var(--mmp-top) 0 auto;width:100%;max-width:none;height:var(--mmp-height);max-height:none;margin:0;padding:14px 14px max(14px,env(safe-area-inset-bottom));border:0;border-radius:0;box-shadow:none;background:#fff;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 #employee-dialog[data-mobile-module-detail="true"]::-webkit-scrollbar{display:none}
 #employee-dialog[data-mobile-module-detail="true"]::backdrop{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
 html[data-mobile-module-detail="true"] .site-header--panel .menu-toggle{visibility:hidden}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) #employee-dialog[data-mobile-module-detail="true"]>.dialog-close{position:fixed;top:var(--mmp-close-top);left:var(--mmp-close-left);right:auto;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:8px;background:transparent;color:#fff;border:0;border-radius:6px;outline:none;box-shadow:none;z-index:5}
 #employee-dialog[data-mobile-module-detail="true"]>.dialog-close:is(:hover,:focus,:active){background:transparent;color:#fff;outline:none;box-shadow:none}
 #employee-dialog[data-mobile-module-detail="true"]>.dialog-close:focus-visible{outline:2px solid #fff;outline-offset:1px}
 #employee-dialog[data-mobile-module-detail="true"]>.eyebrow{font-size:8px;margin:0 0 7px;line-height:1.4}
 #employee-dialog[data-mobile-module-detail="true"] #employee-heading{font-size:22px;line-height:1.2;letter-spacing:-.04em;margin:0 0 10px;color:#171b23}
 #employee-dialog[data-mobile-module-detail="true"] #employee-state{font-size:10px;line-height:1.3;margin:0 0 10px;padding:4px 6px}
 #employee-dialog[data-mobile-module-detail="true"] .employee-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 18px;margin:0;padding:14px 0;border:0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;border-radius:0;background:transparent}
 #employee-dialog[data-mobile-module-detail="true"] .employee-details dt{font-size:10px;font-weight:400;line-height:1.4;color:#657185;margin:0 0 3px}
 #employee-dialog[data-mobile-module-detail="true"] .employee-details dd{font-size:12px;line-height:1.5;color:#171b23;margin:0}
 #employee-dialog[data-mobile-module-detail="true"] .employee-actions{gap:8px;padding-top:14px}
 #employee-dialog[data-mobile-module-detail="true"] .employee-actions>.button{flex:1 1 auto;font-size:11px;padding-left:10px;padding-right:10px;justify-content:center}
 #employee-dialog[data-mobile-module-detail="true"] .field-help{font-size:10px;line-height:1.5}
 #employee-dialog[data-mobile-module-detail="true"] .employee-edit-form{margin-top:14px}
 #employee-dialog[data-mobile-module-detail="true"] .employee-edit-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 #employee-dialog[data-mobile-module-detail="true"] .employee-edit-grid label{font-size:11px;gap:6px}
 #employee-dialog[data-mobile-module-detail="true"] .employee-edit-grid :is(input,select){font-size:16px}
}
@media(max-width:760px) and (max-height:550px){
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar{flex-direction:row;align-items:center;padding-top:8px;padding-bottom:8px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar .company-brand{flex:1}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-sidebar>.button{width:auto;flex:1}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-content{padding-top:10px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-heading :is(.eyebrow,.module-subtitle){display:none}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-heading h1{font-size:22px}
 body:is([data-portal-area="hr"],[data-portal-area="assets"]) .module-toolbar{margin-top:8px;margin-bottom:8px}
 body[data-portal-area="hr"] .module-toolbar{grid-template-columns:minmax(0,1fr) minmax(100px,.7fr) auto 1px 44px}
 body[data-portal-area="hr"] .module-toolbar .search-box{grid-column:auto}
}
