/*
   File: menu-top.css
   Author: jsheil
   Copyright WBT Systems, 2026
*/
#tc-header-user #tc-nav-menu {
  position: absolute;
  height: 2.5rem !important;
}
.navbar-fixed-top:not(.tc-content-header-type, #tc-header-nouser, #TCStudentContentHeader) {
  position: sticky;
  height: unset !important;
}
#TCSystemSettings > header:not(.TCBridgeHeader):not(.TCLanguageResourcesHeader) {
  position: unset;
}
#tc-header-nav-toplevel-menu {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--tc-widget-background-color);
  color: var(--tc-widget-text-color);
  white-space: nowrap;
}
#tc-header-nav-toplevel-menu .tc-font-icon_info {
  display: none;
}
#tc-header-nav-toplevel-menu > li > a {
  display: block;
  color: #343434;
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.875rem;
  box-sizing: content-box;
  border-radius: 0.375rem;
}
#tc-header-nav-toplevel-menu > li > a:hover,
#tc-header-nav-toplevel-menu > li > a:focus,
#tc-header-nav-toplevel-menu > li > a:active,
#tc-header-nav-toplevel-menu > li.open > a {
  text-decoration: none;
  border: 1px solid;
  padding: 0.1875rem 0.9375rem 0.4375rem;
  margin: 0.25rem 0;
  outline: none;
}
#tc-header-nav-toplevel-menu > li[data-tc-navmenu-parent] > a:after {
  content: "\e3b6";
  font-family: 'tc_font_icons';
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  position: relative;
  top: 0.125rem;
  left: 0.125rem;
}
#tc-header-nav-toplevel-menu-container {
  padding-left: 3rem;
  background-color: var(--tc-widget-background-color);;
  min-height: 40px;
}

#tc-header-nav-toplevel-menu > li ul.dropdown-menu {
  margin-top: 0;
  left: 0;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--tc-widget-background-color);
  color: var(--tc-widget-text-color);
  font-size: 0.875rem;
  border-radius: 0;
  margin: 0 1rem;
  width: calc(100% - 6rem);
  margin-top: 0;
  padding: 1rem 2rem 2rem;
  justify-content: center;
  padding-bottom: 4rem;
}
#tc-header-nav-toplevel-menu > li.open ul.dropdown-menu:has(.tc-header-nav-toplevel-menu-icon) {
  padding-left: 200px;
  width: calc(100% - (200px + 4rem));
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  min-height: 120px;
  max-height: 70vh;
  overflow-y: auto;
}
#tc-header-nav-toplevel-menu > li.open ul.dropdown-menu {
  display: grid !important;
}
#tc-header-nav-toplevel-menu > li {
  position: static;
}
#tc-header-nav-toplevel-menu > li ul.dropdown-menu > li {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  white-space: normal;
  background: var(--tc-color-mixin-low);
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem 1rem;
  transition: box-shadow .3s;
  position: relative;
  flex: 0 0 calc(50% - 8px);
  box-sizing: border-box;
}
#tc-header-nav-toplevel-menu > li ul.dropdown-menu img.tc-header-nav-toplevel-menu-icon {
  width: 160px;
  position: absolute;
  left: 1rem;
  top: 3rem;
}
#tc-header-nav-toplevel-menu > li ul.dropdown-menu > li > a {
  display: block;
  color: var(--tc-widget-text-color);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
#tc-header-nav-toplevel-menu > li ul.dropdown-menu > li:hover {
  cursor: pointer;
  box-shadow: 0 0 11px rgba(33, 33, 33, .3);
}
#tc-header-nav-toplevel-menu > li ul.dropdown-menu > li > a {
  padding: 0.5rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tc-widget-text-color);
}
#tc-header-nav-toplevel-menu > li ul.dropdown-menu > li .tc-menu-item-shortdesc {
  color: var(--tc-widget-text-color);
}
#tc-header-nav-toplevel-menu > li ul.dropdown-menu > li > a:hover {
  background: inherit;
}
#tc-header-nav-toplevel-menu > li ul.dropdown-menu > li > a:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
#tc-nav-menu-container .sidr-class-tc-menu-item-shortdesc,
#tc-nav-menu-container .tc-menu-item-shortdesc,
#tc-nav-menu-container img.tc-header-nav-toplevel-menu-icon,
#tc-nav-menu-container img.sidr-class-tc-header-nav-toplevel-menu-icon
{
  display: none;
}
#tc-header-nav-toplevel-menu > li:not(.tc-meganav-dropdown) .tc-menu-item-shortdesc {
  display:none;
}
#AlertBanner {
  margin-top: 2px !important;
}
body.tc-menu-top:has(#tc-header-user.is-stuck) {
  #tc-main-shortcuts>nav {
    top: 0 !important;
  }
}
body.tc-menu-top:has(#tc-header-nav-toplevel-menu-container) {
  #tc-main-shortcuts {
    top: 0;
  }
  #tc-main-shortcuts>nav {
    position: sticky;
    display: none;
  }
  #tc-main-container-row-fluid {
    top: 0;
  }
  .TCPageBase .tc-landing-section,
  .TCPageBase > .tc-edit-mode {
    top: 10px;
  }
}
body.tc-menu-top.TCPageBaseEditWide #TCLanding {
  top: unset !important;
}
@media (max-width: 768px) {
  body.tc-menu-top:has(#tc-header-nav-toplevel-menu-container) #tc-main-container-row-fluid {
    top: var(--tc-header-height);
  }
  body.tc-menu-top #tc-header-user {
    position: fixed;
  }
  body.tc-menu-top #tc-header-user #tc-nav-menu {
    position: relative;
    top: 0;
    left: 0;
  }
  body.tc-menu-top #tc-header-nav-toplevel-menu-container {
    display: none;
  }
  body.tc-menu-top:has(#tc-header-nav-toplevel-menu-container) {
    .TCPageBase .tc-landing-section,
    .TCPageBase > .tc-edit-mode {
      top: 20px;
    }
  }
  .TCReportsContainer #TCContentNavContainer {
    top: var(--tc-header-height);
  }
}
@media (max-width: 480px) {
  #tc-header-nav-toplevel-menu > li ul.dropdown-menu img.tc-header-nav-toplevel-menu-icon {
    display: none;
  }
  #tc-header-nav-toplevel-menu > li.open ul.dropdown-menu:has(.tc-header-nav-toplevel-menu-icon) {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    margin-left: 0;
  }
  #tc-header-nav-toplevel-menu > li ul.dropdown-menu > li {
    flex: 0 0 calc(100% - 8px);
  }
}
