/* Administrative form switches must override the normal flex button layout. */
.module-list button[hidden]{display:none!important}
.side nav a[hidden],.workspace-settings[hidden]{display:none!important}
body[data-access-state="pending"] .side nav a:not([href="#home"]):not([href="#work"]):not([href="#help"]),
body[data-access-state="pending"] .workspace-settings,
body[data-access-state="pending"] .quick-grid,
body[data-access-state="pending"] .right-rail,
body.field-engineer-portal .side nav a:not([href="#home"]):not([href="#work"]):not([href="#help"]),
body.field-engineer-portal .workspace-settings,
body.field-engineer-portal .side-promo,
body.field-engineer-portal .view-all,
body.field-engineer-portal .side-bottom>a,
.role-switch{display:none!important}
/* Adaptive layout: desktop keeps the full navigation; smaller screens use a touch-friendly drawer. */
@media (max-width: 760px){
  body{background:#fff}.app{display:block;min-width:0}.side{display:flex!important;position:fixed;inset:0 auto 0 0;z-index:11000;width:min(82vw,310px)!important;padding:22px 16px!important;box-shadow:18px 0 42px rgba(12,35,22,.2);transform:translateX(-105%);transition:transform .2s ease;overflow-y:auto}.side.is-open{transform:translateX(0)}.side nav a{min-height:48px;font-size:14px}.side .brand{padding-bottom:22px}.side-bottom{margin-top:18px}.side-backdrop{position:fixed;inset:0;z-index:10999;background:rgba(8,25,15,.42);display:none}.side-backdrop.is-open{display:block}main#home{min-width:0}.content,.content-grid{padding-left:16px!important;padding-right:16px!important}.crumb{font-size:9px}.tools .workspace-settings,.tools .search span,.tools .signout span{display:none}.tools{gap:4px}.tools button{min-width:42px;min-height:42px}.welcome{padding:26px 16px!important;align-items:flex-start}.welcome h1{font-size:28px!important}.weather{display:none}.notice,.section-head{margin-left:16px!important;margin-right:16px!important}.section-head{align-items:flex-end}.quick-grid{grid-template-columns:1fr 1fr!important;margin-left:16px;margin-right:16px}.quick-grid article,.feature-card{min-height:118px}.content-grid{display:block!important;margin-top:24px!important}.modules,.right-rail{margin-bottom:18px}.module-list{grid-template-columns:1fr!important}.module-list button{min-height:58px;padding:12px!important}.module-list b{font-size:12px!important}.module-list small{font-size:10px!important}.right-rail{display:grid;gap:14px}.right-rail>*{min-height:unset!important}.mobile-menu{display:block!important;min-width:44px;min-height:44px}.near-miss-screen{padding:14px!important}.near-miss-screen header{position:sticky;top:0;z-index:2;padding:10px 0;background:#f5f8f5}.near-miss-title h1{font-size:23px!important}.near-miss-screen input,.near-miss-screen textarea,.near-miss-screen select{font-size:16px!important}.near-miss-screen footer{position:sticky;bottom:0;padding:12px 0;background:#f5f8f5}.near-miss-screen footer button{min-height:46px;flex:1}.safety-folder-list article{flex-direction:column;align-items:stretch!important}.safety-record-actions{justify-content:stretch}.safety-record-actions button{flex:1;min-height:44px}.auth-card,.org-card{padding:22px!important}.org-modal{padding:14px!important}}
@media (max-width:390px){.quick-grid{grid-template-columns:1fr!important}.welcome h1{font-size:25px!important}.section-head h2{font-size:20px!important}}

/* Field engineers only need their approved work tools on a phone. */
@media (max-width:760px){
  body.field-engineer-portal{background:#f7faf8}
  body.field-engineer-portal .side nav a:not([href="#home"]):not([href="#work"]):not([href="#help"]),
  body.field-engineer-portal .side-promo,
  body.field-engineer-portal .side-bottom>a,
  body.field-engineer-portal .role-switch,
  body.field-engineer-portal .view-all{display:none!important}
  body.field-engineer-portal .side{padding-top:18px!important}
  body.field-engineer-portal .side .brand{padding-bottom:16px}
  body.field-engineer-portal .side nav{display:block!important}
  body.field-engineer-portal .side nav a[href="#home"]{display:flex!important}
  body.field-engineer-portal .welcome{min-height:auto!important;padding:21px 16px 19px!important;background:#fff!important}
  body.field-engineer-portal .welcome h1{font-size:27px!important}
  body.field-engineer-portal .welcome .intro{font-size:13px!important}
  body.field-engineer-portal .notice{display:none!important}
  body.field-engineer-portal .content-grid{margin-top:12px!important}
  body.field-engineer-portal .modules{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
  body.field-engineer-portal .section-head.tight{margin:0 0 9px!important;padding:0 2px}
  body.field-engineer-portal .module-list{gap:10px!important}
  body.field-engineer-portal .module-list button{min-height:72px!important;padding:12px 14px!important;border:1px solid #dbe9df!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 14px rgba(30,74,49,.05)!important}
  body.field-engineer-portal .module-list button:active{transform:scale(.985);background:#f0faf3!important}
  body.field-engineer-portal .module-icon{width:46px!important;height:46px!important;margin-right:13px!important;border-radius:13px!important;font-size:22px!important}
  body.field-engineer-portal .module-list b{font-size:14px!important}
  body.field-engineer-portal .module-list small{margin-top:4px!important;font-size:11px!important;line-height:1.25!important}
  body.field-engineer-portal .module-list em{font-size:19px!important;color:#078b36!important}
  body.field-engineer-portal .mobile-menu{display:block!important}
  body.field-engineer-portal input,
  body.field-engineer-portal select,
  body.field-engineer-portal textarea{font-size:16px!important}
}
