/*
 GUREXA NAVBAR CLEANUP V1.6

 Purpose:
 - suppress obsolete/duplicate black navbar layers
 - ensure only the current GUREXA light-blue navbar remains visible
 - normalize body/sidebar offsets left by fixed-navbar experiments
 - do not alter current menu content
*/

/* The active navbar must be the only visible GUREXA top navigation layer. */
#gurexa-topnav {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1000 !important;
}

/* Normalize body displacement from V1.0 fixed navbar. */
body.gurexa-has-topnav {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Normalize common app-shell offsets that can leave hidden bars behind. */
.gurexa-has-topnav .sidebar,
.gurexa-has-topnav .app-sidebar,
.gurexa-has-topnav nav[aria-label="Sidebar"],
.gurexa-has-topnav aside {
  top: 0 !important;
}

/*
 Any duplicate navbar explicitly marked by cleanup JS is removed from layout.
*/
.gx-legacy-navbar-v16,
.gx-legacy-topbar-v16,
.gx-hidden-legacy-layer-v16 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Prevent inherited black backgrounds from old wrappers around the active navbar. */
.gx-navbar-clean-parent-v16 {
  background: transparent !important;
  box-shadow: none !important;
  border-top: 0 !important;
}

/* The currently active navbar remains light blue. */
#gurexa-topnav.gx-workspace-nav {
  background: #eaf6ff !important;
  color: #173a5e !important;
  box-shadow: none !important;
  border-top: 0 !important;
  border-bottom: 1px solid #cfe5f7 !important;
}

/* Remove empty dark spacer/header shells when the cleaner identifies them. */
.gx-empty-top-shell-v16 {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
