#top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;

  color: $white;
  height: $topMenuHeight;
  min-width: 1000px;
  overflow: hidden;
  background: $main-navigation;

  .logo-top-left {
    margin: 0 32px 0 20px;
  }

  .main-menu {
    flex: 0 1 auto;
  }

  #mainMenu {
    display: flex;
    line-height: 25px;
    color: $neutral-400;
    overflow: hidden;
    white-space: nowrap;
    margin: 1px 0 0 0;
    padding: 0;

    li {
      font-size: 1.2rem;
      list-style-type: none;
      float: left;
      margin-right: 26px;
      text-align: center;
      position: relative;
      display: inline;

      a {
        color: $neutral-400;
        text-align: center;

        &:hover {
          color: $white;
        }

        &::before {
          display: block;
          content: attr(title);
          font-weight: bold;
          height: 0;
          overflow: hidden;
          visibility: hidden;
        }
      }

      &.active {
        font-weight: bold;

        a {
          color: $white;

          &:hover {
            color: $white;
          }
        }
      }

      &:last-child {
        margin-right: 0;
      }
    }

    &.collapsed {
      li {
        &.main-menu-item {
          display: none;
        }
      }
    }
  }

  #object-type-group-dropdown {
    position: fixed;
    top: 36px;
    z-index: 1010;
    width: 160px;
  }

  #searchBar {
    flex-grow: 1;
    padding: 0 24px;
    position: relative;

    .input {
      background: transparent;
      border: 1px solid $neutral-400;
      color: $neutral-400;
      border-radius: $input-border-radius;
      max-width: 300px;
      height: 32px;
      float: right;
    }

    img {
      position: absolute;
      top: 8px;
      right: 35px;
    }
  }

  .language-switch, .help-menu {
    margin-right: 16px;
    position: relative;

    > button {
      height: 32px;
      min-width: 32px;
      color: $white;
      border: 1px solid transparent;
      background: transparent;

      &:focus,
      &:active {
        border-color: $white;
        padding: 7px;
        box-shadow: none;
      }
    }

    ul {
      color: $black;
      position: fixed;
      top: 36px;
      z-index: 1010;
      min-width: 164px;
    }
  }

  .language-switch {
    button {
      min-width: 64px;
    }

    ul {
      min-width: 64px;
    }
  }

  .user-avatar {
    margin: 0 20px 0 15px;
    position: relative;

    div.notification-bubble {
      border-radius: 50%;
      width: 12px;
      height: 12px;
      background: $brand-color;
      color: $white;
      font-size: 0.9rem;
      line-height: 1rem;
      font-weight: 700;
      text-align: center;
      position: absolute;
      top: -3px;
      right: -3px;
    }

    img.avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      cursor: pointer;
    }

    ul {
      position: fixed;
      top: 36px;
      right: 20px;
      z-index: 1010;
      width: 230px;
    }
  }
}

// Specific styles for the add-on drop-down
#module-dropdown, #add-ons-dropdown {
  position: fixed;
  width: 220px;
  margin-top: -5px;
  z-index: 1010;
}
