:root {
  --navbar-height: 3.75rem;
}

.navbar {
  position: sticky;
  top: 0;
  height: var(--navbar-height);
  z-index: var(--zindex-sticky);
  font-weight: 400;
  font-family: 'Open Sans Bold';
  transition: top 0.3s ease-in-out;

  @media (min-width: 576px) {
    padding-left: 0;
    padding-right: 0;
  }

  .navbar-nav {
    align-items: stretch;
    flex-direction: row;

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
      margin-right: var(--spacer);
      height: var(--navbar-height);

      .nav-link {
        color: white;
        &:hover, &:focus {
          color: white;
          outline: none;
          text-decoration: underline;
        }

        &.dropdown-toggle:after {
          color: rgba(255, 255, 255, 0.5);
          position: static;
          right: auto;
        }
      }
    }

    .dropdown-menu {
      top: var(--navbar-height);
      left: auto;
      margin-top: 0;
      max-width: 20rem;
      position: absolute;
      max-height: calc(100vh - var(--navbar-height));
      overflow-y: auto;
    }

    .nav-toggle {
      color: #ffffff;
      padding: 0;
      width: 2rem;
      height: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease;

      &:hover, &:focus {
        text-decoration: none;
      }
      &:active {
        transform: scale(0.9);
      }
    }

    .logo {
      display: none;
      @media (min-width: 768px) {
        display: inline;
      }
    }

    .user-panel {
      display: none;
      @media (min-width: 768px) {
        display: flex;
      }
      .dropdown-toggle:after {
        vertical-align: -0.15rem;
      }
    }
  }
}

nav.nav-bar {
  .ma-backdrop {
    position: absolute;
  }
}

.nav.nav-tabs-line {
  margin-bottom: 20px;
}

.navbar-app-logo-container {
  img {
    display: block;
    width: 6rem;
  }
}

.nav-tabs-line .nav-link.active {
  color: var(--gel-primary-default);
}

.nav-tabs-line .nav-link.active::before {
  content: "";
  position: absolute;
  bottom: 0;
  border-width: 2px;
  border-style: solid;
  border-color: var(--gel-primary-default);
  width: calc(100% - 1rem * 2);
  left: inherit;
}

.nav-tabs-line.nav-condensed {
  .nav-item {
    .nav-link {
      font-size: 90%;
    }
  }
}
