/* EiD Office HF3 – mobile navigation, always-visible header, no page-wide horizontal zoom.
   Desktop layout and existing module styles remain untouched. */
.eid-mobile-menu-toggle,.eid-mobile-brand{display:none}
.eid-mobile-backdrop[hidden]{display:none!important}
@media (max-width:750px){
 html{min-width:0;max-width:100%;overflow-x:clip}
 body{min-width:0;max-width:100%;overflow-x:clip}
 body.eid-mobile-menu-open{overflow:hidden}
 #appScreen.app-shell{display:block;min-height:100dvh;min-width:0;width:100%}
 #appScreen .main-wrap{min-width:0;width:100%;max-width:100%;padding-top:60px}
 #appScreen .sidebar{
  position:fixed;top:0;left:0;bottom:0;right:auto;height:100dvh;
  min-height:0;width:min(320px,87vw);max-width:87vw;
  z-index:960;display:flex;flex-direction:column;overflow:hidden;
  background:#fff;box-shadow:0 18px 55px #33252330;
  transform:translateX(-110%);visibility:hidden;
  transition:transform .2s ease,visibility .2s;
  border-right:1px solid #e5ddd8;padding-bottom:0;
 }
 #appScreen .sidebar.eid-mobile-open{transform:translateX(0);visibility:visible}
 #appScreen .sidebar .brand{flex:0 0 auto;padding:12px 16px;border-bottom:1px solid #eee7e2}
 #appScreen .sidebar .brand img{width:55px;height:44px}
 #appScreen .sidebar .brand strong{font-size:20px}
 #appScreen .sidebar .eid-nav-stack{overflow-y:auto;min-height:0;flex:1 1 auto;width:100%;overscroll-behavior:contain;padding:9px 0 20px}
 #appScreen .sidebar .eid-menu{display:block;padding:0 11px}
 #appScreen .sidebar .eid-nav-direct,#appScreen .sidebar .eid-nav-group-toggle,#appScreen .sidebar .eid-nav-child{width:100%;min-height:43px;padding:10px 12px;margin:2px 0;font-size:13px}
 #appScreen .sidebar .eid-nav-children{display:grid;flex-direction:column}
 #appScreen .sidebar .nav-heading{display:block;margin:14px 21px 7px}
 #appScreen .sidebar .sidebar-footer{display:block;padding:10px 15px;font-size:11px}
 #appScreen .eid-headbar{
  position:fixed;top:0;left:0;right:0;z-index:810;min-height:60px;height:auto;
  width:100%;max-width:100%;background:#fff;
  border-bottom:1px solid #e5ddd8;box-shadow:0 2px 9px #3e2b2110;
  display:flex;align-items:center;flex-wrap:nowrap;gap:6px;padding:8px 10px;
 }
 .eid-mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border-radius:9px;border:1px solid #dfd5d0;color:#7a625c;background:#f8f5f3;font-size:21px;line-height:1}
 .eid-mobile-menu-toggle:focus-visible{outline:2px solid #78a998;outline-offset:2px}
 .eid-mobile-brand{display:block;flex:0 0 30px;width:30px;height:30px;object-fit:contain}
 #appScreen .eid-headbar .eid-crumb{display:flex;min-width:0;flex:1 1 auto;overflow:hidden;white-space:nowrap;font-size:11px}
 #appScreen .eid-headbar .eid-crumb .crumb,#appScreen .eid-headbar .eid-crumb .divider-dot{display:none}
 #appScreen #topViewName{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #appScreen .eid-head-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto;min-width:0;margin-left:auto}
 #appScreen .eid-head-actions>.version-pill,#appScreen .eid-head-username,#appScreen .eid-presence{display:none!important}
 #appScreen .eid-head-tools{display:flex;align-items:center;gap:4px}
 #appScreen .eid-head-icon,#appScreen .eid-head-profile{width:31px;min-width:31px;height:31px;min-height:31px}
 #appScreen .eid-head-icon svg{width:16px;height:16px}
 #appScreen .content{min-width:0;width:100%;max-width:100%;padding:13px 10px}
 #appScreen .view,#appScreen .panel,#appScreen .view-header{min-width:0;max-width:100%}
 #appScreen .table-outer,#appScreen .staff-table-wrap,#appScreen .pm-table-wrapper{min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 #appScreen .view-header{flex-wrap:wrap;gap:10px}
 #appScreen .view-header h1{font-size:21px;overflow-wrap:anywhere}
 #appScreen .panel-header{min-width:0}
 #appScreen input,#appScreen select,#appScreen textarea{max-width:100%;min-width:0}
 #appScreen .eid-head-popover{position:absolute;top:calc(100% + 4px);right:8px;width:min(390px,calc(100vw - 16px));max-height:calc(100dvh - 72px)}
 .eid-mobile-backdrop{position:fixed;inset:0;display:block;z-index:940;background:#27201b8c;border:0;border-radius:0;padding:0;width:100vw;height:100dvh}
}
@media (max-width:380px){
 #appScreen .eid-headbar{gap:4px;padding:7px 6px}
 #appScreen .eid-mobile-brand{flex-basis:26px;width:26px;height:26px}
 #appScreen .eid-head-tools{gap:2px}
 #appScreen .eid-head-icon,#appScreen .eid-head-profile{width:29px;min-width:29px;height:29px}
 #appScreen #topViewName{font-size:10px}
}
@media (prefers-reduced-motion:reduce){#appScreen .sidebar{transition:none}}
