/* ════════════════════════════════════════════════════════════════
   v80 — UI polish patch
   1. Hide the notification bell + badge
   2. Make the profile menu open on hover (no click required)
   3. Hide admin "View as" buttons for non-Admin/Manager/Executive
   4. Strengthen hover hit-zone so it stays open while moving toward the menu
══════════════════════════════════════════════════════════════════ */

/* 1. Notification bell + badge — gone */
#notificationBell,
#notificationBadge,
.notification-bell,
.notification-badge {
  display: none !important;
}

/* 2. Hover-only profile menu.
   v78 already binds hover; this CSS gives the menu a stable position relative
   to the chip, removes the gap that caused mouse-out flicker, and ensures
   the menu wins over any z-index from the legacy view-as bar (now hidden). */
.profile-chip { position: relative; }
#profileMenu {
  position: absolute;
  top: calc(100% + 4px);
  right: 12px;
  min-width: 220px;
  z-index: 1000;
  display: none;
  pointer-events: auto;
}
#profileMenu.show,
.profile-chip:hover + #profileMenu,
.profile-chip:focus-within + #profileMenu,
#profileMenu:hover {
  display: block !important;
}

/* Bridge the gap between chip and menu so the cursor doesn't fall through
   empty space and trigger a mouseleave. */
#profileMenu::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}

/* 3. v80 role-gated view-as buttons. The patch script adds .twog-v80-restricted
   to a button when the current user shouldn't see it. */
.twog-v80-restricted { display: none !important; }
