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

  color: $white;
  height: $topMenuHeight;
  min-width: 1000px;
  overflow: hidden;
  background: #262626;

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

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

  #mainMenu {
    display: flex;
    line-height: 25px;
    color: #9b9b9b;
    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;
      }
    }
  }

  #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 {
    margin-right: 16px;
    position: relative;

    button {
      height: 32px;
      min-width: 64px;
      color: $white;
      border: 1px solid transparent;
      background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAKCAYAAAC9vt6cAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC45bDN+TgAAAFVJREFUKFOljEEKwDAIBPO24kf1o9vuQYjtJlRyGNDBcQA4QsoOUnYoi5ld7v6M9SiJCPBmduWArJ6omJQleT9ZxeQjEgYMdzGRMmG4i4mUHaT8D8YN2tzKESQPsV4AAAAASUVORK5CYII=') no-repeat right center;

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

    ul {
      position: fixed;
      top: 36px;
      z-index: 1010;
      min-width: 64px;
    }
  }

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

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

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

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