/* DBGL brand override — copied from shared/css/custom-variables.css
   (the documented source of truth — update both together).
   See .plans/theme_conversion/design-system-mapping.md for why this is a
   partial override and what a full rebrand via the Sass pipeline would
   additionally cover. */
:root,
[data-bs-theme="light"] {
  --phoenix-primary: #003D7A;
  --phoenix-primary-rgb: 0, 61, 122;
}

/* Admin topbar profile dropdown — Bootstrap's .dropdown-menu-end/-start
   classes don't reliably reflow here (data-bs-popper="static" + no inline
   Popper positioning leaves stale left/right values on some renders),
   causing the menu to overflow off the right edge of the viewport.
   Force it to hug the toggle's right edge, same technique already used
   above for .dropdown-notification .dropdown-menu. */
.navbar-top .dropdown-profile-menu {
  right: 0 !important;
  left: auto !important;
}

/* Sidebar nav list — .navbar-vertical-footer (the "Collapse" button) is
   position:fixed with a 4rem height, painted on top of the scrollable
   nav content instead of reserving space for it. Without this, the last
   item(s) in a long menu render underneath the footer, permanently hidden
   regardless of scroll position. Padding the list itself (not the simplebar
   wrapper — simplebar reparents content into its own inner divs, so padding
   on an outer wrapper wouldn't reach the actual scrollable area) reserves
   room so the last item can scroll fully clear of the footer. */
#navbarVerticalNav {
  padding-bottom: 4rem;
}
