/* mLens banner for Superset 6.1, injected by edge nginx (sub_filter) into every HTML page.
   TEMPLATE (Python string.Template): the BRAND_* placeholders come from deploy/brand/brand.env; bin/deploy_reporting.py fills them in and
   copies the result to /opt/edge/static/brand/brand.css. Owner 17-Nov-2026: as mDesk, a navy bar with the
   Maxiom mark (white / light blue) and the name in white, no Superset logo.
   Structural selectors only (Superset's class names are emotion hashes). The first header column holds, in
   order (live 6.1 DOM, 17-Nov-2026): the Tooltip's span around the brand wrapper div > a > img (theme
   brandLogoUrl), the name div (LOGO_RIGHT_TEXT, Menu.tsx StyledBrandText) and the main nav ul; the second
   column holds the right menu. Dropdown menus open in a portal outside #main-menu, so
   they keep Superset's own colours. */

/* layout: the logo hugs the left; on md+ the left column takes the free width so the header stays on one line */
#main-menu > .ant-row > .ant-col:first-child > :first-child { flex: 0 0 auto; display: flex; }
#main-menu > .ant-row > .ant-col:first-child > :first-child a { justify-content: flex-start; }
@media (min-width: 768px) {
  #main-menu > .ant-row { flex-wrap: nowrap; }
  #main-menu > .ant-row > .ant-col:first-child { flex: 1 1 auto; max-width: none; min-width: 0; flex-wrap: nowrap; }
  #main-menu > .ant-row > .ant-col:last-child { flex: 0 0 auto; max-width: none; }
}
/* Safari: never let the logo image claim its natural width */
#main-menu > .ant-row > .ant-col:first-child > :first-child img { width: auto; max-width: none; }

/* navy bar */
#main-menu { background-color: #103E81 !important; border-bottom-color: #0B2C5C !important; }
#main-menu .ant-menu { background: transparent !important; border-bottom: 0 !important; }

/* the name next to the mark: no divider lines, white, on every screen width (Superset hides it below 1127px) */
#main-menu > .ant-row > .ant-col:first-child > :first-child + div {
  display: flex !important; border: 0 !important; margin-left: -6px; padding-left: 0 !important; padding-right: 8px !important;
  color: #FFFFFF !important; font-size: 20px !important; font-weight: 600;
  white-space: nowrap;
}

/* menu text and icons in white */
#main-menu .ant-menu-item, #main-menu .ant-menu-submenu-title, #main-menu .ant-menu-title-content,
#main-menu .ant-menu-item a, #main-menu .ant-menu-submenu-title a, #main-menu .ant-menu-submenu-arrow,
#main-menu .anticon, #main-menu .ant-typography, #main-menu a { color: #FFFFFF !important; }

/* hover, open and current item: mDesk's link hover blue, with a white underline */
#main-menu .ant-menu-item:hover, #main-menu .ant-menu-item-active, #main-menu .ant-menu-item-selected,
#main-menu .ant-menu-submenu:hover > .ant-menu-submenu-title, #main-menu .ant-menu-submenu-active > .ant-menu-submenu-title,
#main-menu .ant-menu-submenu-open > .ant-menu-submenu-title, #main-menu .ant-menu-submenu-selected > .ant-menu-submenu-title {
  background-color: #276FC4 !important;
}
#main-menu .ant-menu-submenu-horizontal::after { background-color: #FFFFFF !important; }
#main-menu .ant-menu-horizontal > .ant-menu-item::after, #main-menu .ant-menu-horizontal > .ant-menu-submenu::after {
  border-bottom-color: #FFFFFF !important;
}
