/* ==========================================================================
   Side menu - the 2026-11 side nav design, LiveConnect (admin) and OWP (both are drawn by
   Includes/layout.menu_functions.inc.php inside Includes/layout.inc.php, which links this file after master.css).
   One surface with the side panels next to it (Includes/lc_side_panel.inc.php, the intranet column): #F9F9F9 on
   every level, submenus indented, a hairline under every row, a line on the right edge, no shadows. The icons as on
   the old design (each item's own Font Awesome class), the fold chevron on the right (right = closed, down = open),
   the open group in bold.
   The item you are on: the light orange tint with bold orange text and icon - on every page.
   The rows keep their height (master.css + the row script in layout.inc.php): the shared 40px grid that the page
   columns line up with. Only colours and horizontal spacing are set here.
   Desktop only, except the active item (all widths, at the end) - the OWP mobile menu is its own full screen menu
   (OWP/Includes/layout.bottomnav.inc.php), LiveConnect's is the theme's.
   Colours (2026-11-27): panel #F9F9F9, hover #ECECEC, lines #D3D3D3, text and icons #505050, keyboard focus #626262,
   active #FCEDD9 with #B64A18, weight 500.
   ========================================================================== */
@media (min-width: 768px) {
  /* The surface: the menubar and everything the theme layers inside it (body, scroll box, every row) */
  .site-menubar,
  .site-menubar .site-menubar-body,
  .site-menubar .scrollable-container,
  .site-menubar .scrollable-content,
  .site-menubar .site-menu,
  .site-menubar .site-menu > .site-menu-item,
  .site-menubar .site-menu > .site-menu-item > a { background-color: #F9F9F9 !important; box-shadow: none !important; }
  /* The lines: exactly the side panels' lines (1px solid #D3D3D3 - Includes/lc_side_panel.inc.php,
     2000_Organizer Portal/Css/intranet_nav.css), drawn only here: one line under every row (on the link) and one on
     the menu's right edge, which is the line between the side nav and a side panel. Any line the theme draws itself
     (on the items, the submenus) is removed, so there is never a second or different line. */
  .site-menubar { border: 0 !important; border-right: 1px solid #D3D3D3 !important; }
  .site-menubar .site-menu,
  .site-menubar .site-menu-item,
  .site-menubar .site-menu-sub { border: 0 !important; }
  .site-menubar .site-menu-item > a { border: 0 !important; border-bottom: 1px solid #D3D3D3 !important; }
  .site-menubar .site-menu a { color: #505050 !important; }

  /* Text: Roboto 14px, normal weight, #505050 - the side panels use the same (Includes/lc_side_panel.inc.php,
     2000_Organizer Portal/Css/intranet_nav.css) */
  .site-menubar .site-menu a,
  .site-menubar .site-menu-title { font-family: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 14px !important; font-weight: 400; color: #505050 !important; }

  /* Submenus: the same surface on every level (master.css gives the third level a blue-white) */
  .site-menubar .site-menu .site-menu-sub,
  .site-menubar .site-menu .site-menu-sub a,
  .site-menubar .site-menu .site-menu-sub .site-menu-sub,
  .site-menubar .site-menu .site-menu-sub .site-menu-sub a { background-color: #F9F9F9 !important; box-shadow: none !important; }

  /* Hover: #ECECEC on every level, the text stays dark */
  .site-menubar .site-menu > .site-menu-item > a:hover,
  .site-menubar .site-menu .site-menu-sub .site-menu-item > a:hover { background-color: #ECECEC !important; color: #505050 !important; }

  /* Keyboard focus: a dark grey ring inside the row (not orange) */
  .site-menubar .site-menu a:focus { outline: none; }
  .site-menubar .site-menu a:focus-visible { outline: 2px solid #626262; outline-offset: -2px; }

  /* Icons: the same as the old design on live - each item keeps its own Font Awesome class and weight (2026-11-26:
     the outline override, font-weight 400, is gone). Only the colour is set here. */
  .site-menubar .site-menu-icon { color: #505050 !important; } /* icons: the same colour as the text */

  /* Spacing (menu open - folded it is the theme's icon rail): icon 18px wide, the label after it,
     submenus indented one step per level, room on the right for the chevron */
  body.site-menubar-unfold .site-menubar .site-menu > .site-menu-item > a { padding-left: 14px !important; padding-right: 34px !important; }
  body.site-menubar-unfold .site-menubar .site-menu-sub > .site-menu-item > a { padding-left: 38px !important; padding-right: 34px !important; }
  body.site-menubar-unfold .site-menubar .site-menu-sub .site-menu-sub > .site-menu-item > a { padding-left: 62px !important; }
  body.site-menubar-unfold .site-menubar .site-menu-icon { width: 18px; margin: 0 12px 0 0 !important; font-size: 16px; text-align: center; }

  /* The chevron: right when closed, turned down when open (the theme turns it) */
  .site-menubar .site-menu-arrow { right: 14px; color: #505050 !important; }
  .site-menubar .site-menu-arrow::before { content: "\f054"; font-family: "Font Awesome 6 Pro"; font-weight: 400; font-size: 11px; }

  /* The open group (has the page you are on, or opened by hand): bold, dark - not orange */
  .site-menubar .site-menu > .site-menu-item:is(.open, .active):has(> ul.site-menu-sub) > a,
  .site-menubar .site-menu > .site-menu-item:is(.open, .active):has(> ul.site-menu-sub) > a .site-menu-title { color: #505050 !important; font-weight: 500 !important; }
  .site-menubar .site-menu > .site-menu-item:is(.open, .active):has(> ul.site-menu-sub) > a .site-menu-icon { color: #505050 !important; }
}

/* The item you are on (no submenu of its own): tint, orange text (weight 500) and icon - at every width, so
   LiveConnect's mobile menu (the theme's own - OWP has its full screen menu, which sets the same) looks the same */
.site-menubar li.site-menu-item.active:not(:has(> ul.site-menu-sub)) > a,
.site-menubar li.site-menu-item.active:not(:has(> ul.site-menu-sub)) > a:hover { background-color: #FCEDD9 !important; color: #B64A18 !important; }
.site-menubar li.site-menu-item.active:not(:has(> ul.site-menu-sub)) > a .site-menu-title { color: #B64A18 !important; font-weight: 500 !important; }
.site-menubar li.site-menu-item.active:not(:has(> ul.site-menu-sub)) > a .site-menu-icon { color: #B64A18 !important; }
