/* V24 additive stability corrections — no removal of existing UI */
#portal-floating-logo,
.fixed-logo-final,
header img[alt*="شعار"],
footer img[alt*="شعار"],
#adminModal img[alt*="شعار"],
.directorate-logo{object-fit:contain!important;background:#fff!important}

/* Employee chat always renders inside the active workspace, never behind it. */
#admin-communications{position:relative!important;z-index:20!important;isolation:isolate!important;background:#f8fafc!important;min-height:calc(100vh - 90px)!important}
#admin-communications.hidden{display:none!important}
#admin-communications:not(.hidden){display:block!important}

/* Citizen chat is a stable messenger drawer on the opposite side. */
#contactModal{z-index:10020!important;align-items:stretch!important;justify-content:flex-start!important;padding:0!important}
#contactModal>div{position:relative!important;z-index:10021!important;width:min(430px,100vw)!important;max-width:430px!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0 18px 18px 0!important;overflow:auto!important}
#v23-contact-fab{z-index:10010!important}

/* Mobile admin drawer: one scroll area and reliable taps. */
@media(max-width:767px){
  #adminModal{overflow:hidden!important;touch-action:manipulation!important}
  #adminModal aside{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}
  #adminModal aside nav{overflow:visible!important;padding-bottom:110px!important}
  #adminModal main{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;height:100dvh!important}
  #adminModal .admin-nav-link{min-height:44px!important;display:flex;align-items:center;touch-action:manipulation!important;cursor:pointer!important}
  #v23-admin-menu-toggle{pointer-events:auto!important;z-index:10030!important}
}

/* Never display accidental raw script fragments as page content. */
body>.v24-raw-code-quarantine{display:none!important}
