/* v1.0.6: menús exclusivos y navegación móvil accesible; mantiene header compacto estilo CRM. */
body.solistrix-demo .compact-header .erp-mobile-toggle{display:none;align-items:center;justify-content:center;gap:6px;border:1px solid #dce5ef;background:#fff;color:#17314d;border-radius:6px;min-height:34px;padding:5px 10px;font-size:13px;font-weight:650;cursor:pointer}
body.solistrix-demo .compact-header details:not([open])>.nav-dropdown-panel,
body.solistrix-demo .compact-header details:not([open])>.erp-account-menu{display:none!important}
body.solistrix-demo .compact-header details[open]>summary{background:#eaf1fc;color:#0752b7}
@media(max-width:780px){
 body.solistrix-demo .solistrix-shell>header.erp-header.compact-header{height:57px;position:sticky;top:0;z-index:300;overflow:visible}
 body.solistrix-demo .solistrix-shell>header.erp-header.compact-header>.erp-header-inner{position:relative;overflow:visible;min-height:54px}
 body.solistrix-demo .compact-header .erp-mobile-toggle{display:inline-flex;flex:0 0 auto;margin-left:2px}
 body.solistrix-demo .compact-header .erp-nav{display:none!important;position:absolute;top:54px;left:8px;right:8px;height:auto!important;max-height:calc(100dvh - 90px);overflow-y:auto!important;overflow-x:visible!important;flex-direction:column;align-items:stretch;gap:2px;padding:9px;background:#fff;border:1px solid #dce5ef;border-radius:9px;box-shadow:0 12px 30px rgba(18,40,70,.16);z-index:320}
 body.solistrix-demo .compact-header .erp-nav.mobile-open{display:flex!important}
 body.solistrix-demo .compact-header .erp-nav>a,
 body.solistrix-demo .compact-header .erp-nav .navdropdown>summary{display:flex;justify-content:space-between;min-height:38px;padding:10px 12px!important;font-size:13px!important;white-space:normal}
 body.solistrix-demo .compact-header .nav-dropdown-panel{position:static!important;min-width:0;width:100%;box-shadow:none;border:0;border-left:2px solid #dbe7f8;border-radius:0;margin:0 0 5px 10px;padding:4px}
 body.solistrix-demo .compact-header .erp-account{margin-left:auto;min-width:0}
 body.solistrix-demo .compact-header .erp-account summary{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.solistrix-demo .compact-header .tenant-identity{max-width:min(40vw,190px)}
}
@media(max-width:420px){
 body.solistrix-demo .compact-header .erp-brand img{width:76px;max-width:76px}
 body.solistrix-demo .compact-header .erp-brand{padding-right:6px}
 body.solistrix-demo .compact-header .erp-account summary{font-size:11px;max-width:96px;padding:5px 3px}
 body.solistrix-demo .compact-header .erp-mobile-toggle span{display:none}
 body.solistrix-demo .compact-header .tenant-identity strong{max-width:93px;font-size:11px}
}
