/* 0.11.197 — Identidad diferenciada del menú de panel.
   Solo el panel de MaterialesRD, nunca el menú general GeneratePress ni
   paneles de otras apps. HR sigue controlando el botón, su estado y permisos.
   HR Mobile Design 2.58.2 oculta el nombre y deja solo un icono de 36px:
   aquí conservamos el nombre completo sin sustituir la imagen de marca. */
@media screen and (max-width:900px){
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand{
      display:flex!important;flex:0 1 128px!important;
      width:auto!important;max-width:128px!important;min-width:0!important;
      gap:6px!important;align-items:center!important;overflow:visible!important;
      padding:0!important;margin:0!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand>img{
      display:block!important;flex:0 0 30px!important;width:30px!important;
      height:30px!important;min-width:30px!important;max-width:30px!important;
      object-fit:contain!important;padding:3px!important;box-sizing:border-box!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand>div{
      display:block!important;min-width:0!important;flex:1 1 auto!important;
      overflow:visible!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand>div>strong{
      display:block!important;font-size:11px!important;font-weight:800!important;
      line-height:1.17!important;white-space:nowrap!important;
      overflow:visible!important;text-overflow:clip!important;
      letter-spacing:-.15px!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand>div>span{
      display:none!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar>.hr-mobile-nav-toggle.mrd-panel-menu-toggle{
      display:inline-flex!important;flex:1 1 145px!important;min-width:0!important;
      gap:5px!important;min-height:40px!important;padding:7px 9px!important;
      background:rgba(244,255,250,.10)!important;
      border:1px solid rgba(192,226,208,.65)!important;
      border-radius:10px!important;color:#f4fff9!important;
      box-shadow:inset 3px 0 #f36c21!important;
      font-size:10px!important;line-height:1.2!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar>.hr-mobile-nav-toggle.mrd-panel-menu-toggle>span{
      font-size:10px!important;font-weight:850!important;white-space:nowrap!important;
      opacity:1!important;color:#ffccaa!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar>.hr-mobile-nav-toggle.mrd-panel-menu-toggle>strong{
      font-size:10px!important;font-weight:850!important;
      overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar>.hr-mobile-nav-toggle.mrd-panel-menu-toggle:focus-visible{
      outline:3px solid #f36c21!important;outline-offset:2px!important;
    }
}
@media screen and (max-width:359px){
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar>.hr-mobile-nav-toggle.mrd-panel-menu-toggle{
      flex:1 1 100%!important;
    }
}

/* 0.11.198 — Logotipo ORIGINAL COMPLETO en la cabecera interior móvil.
   0.11.197 solo recompuso icono+nombre, no el lockup oficial. La imagen usada
   aquí es el arte oficial claro para fondo verde oscuro (500x139), ya incluido
   en el plugin. Solo se sustituye visualmente el icono por defecto, NUNCA una
   marca personalizada por HR; se mantienen nombre y alt en el DOM accesible.
   No afecta escritorio, cabecera GeneratePress ni otras aplicaciones. */
@media screen and (max-width:900px){
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand:has(>img[src*="materialesrd-icon-dark-panel.png"]){
      flex:0 1 155px!important;width:155px!important;max-width:155px!important;
      min-width:0!important;min-height:43px!important;align-self:center!important;
      position:relative!important;box-sizing:border-box!important;
      background-image:url("../images/materialesrd-logo-dark-display.png")!important;
      background-repeat:no-repeat!important;background-size:contain!important;
      background-position:left center!important;
      padding:0!important;margin:0!important;
      overflow:hidden!important;
    }
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand:has(>img[src*="materialesrd-icon-dark-panel.png"])>img,
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand:has(>img[src*="materialesrd-icon-dark-panel.png"])>div{
      opacity:0!important;pointer-events:none!important;
    }
  /* La etiqueta original queda en el DOM para lectores de pantalla. */
}
@media screen and (max-width:359px){
  body:is(.mrd-public-portal,.mrd-admin-portal)
    .hrpf-shell[data-hr-mobile-product="materialesrd"].hr-mobile-nav.hr-mobile-nav.hr-mobile-nav.hr-mobile-nav
    .hrpf-sidebar:has(>.hr-mobile-nav-toggle)>.hrpf-brand:has(>img[src*="materialesrd-icon-dark-panel.png"]){
      flex:0 0 100%!important;width:100%!important;max-width:100%!important;
      min-height:48px!important;background-size:auto 46px!important;
    }
}
