@header-height: 64px;
@menu-item-border: 2px;

#header {
  position: relative;
  z-index: 10;
  display: block;
  max-width: 100%;
  background-color: @component-background !important;
  box-shadow: 0 2px 8px #f0f1f2;
  transition: all 0.3s;
  user-select: none;
  &.home-nav-bottom {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: #ebedee;
    .search {
      border-left-color: #ebedee;
    }
    a {
      color: @site-text-color;
    }
  }
  .header-link {
    color: @site-text-color;
  }
  .ant-menu-item-active .header-link {
    color: @primary-color;
  }
}

.app-logo {
  float: left;
  // height: @header-height;
  // overflow: hidden;
  // line-height: @header-height;
  // white-space: nowrap;
  // text-decoration: none;
  width: 80px;
  height: 29px;
  margin-top: 22px;
  margin-left: 40px;
  background: url('/assets/img/logo-blue.svg');
  background-repeat: no-repeat;
  background-size: cover;
  // img {
  //   width: 80px;
  //   height: 27px;
  //   // margin-right: 16px;
  //   // &:last-child {
  //   //   margin-right: 0;
  //   // }
  // }
  // img + img {
  //   position: relative;
  //   top: 1px;
  //   height: 16px;
  // }
}

.header-menu {
  margin-right: 40px;
  &-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ant-menu-item {
    outline: none;
  }
  #nav {
    float: left;
  }
  .header-lang-button,
  .version {
    float: left;
    margin-top: 20px; // hack zorro
    margin-left: 8px;
  }
  .header-lang-button {
    margin-right: 40px;
    color: @text-color;
    border-color: @border-color-base;
  }

  .ant-select-single.ant-select-sm:not(.ant-select-customize-input) .ant-select-selector,
  .ant-select-arrow {
    color: @bixi-black;
    background-color: transparent;
  }
}

#search-box {
  height: 22px;
  padding-left: 16px;
  line-height: 22px;
  // border-left: 1px solid @site-border-color-split;
  .anticon {
    position: relative;
    top: 0.5px;
    color: #ced4d9;
  }
  input {
    width: 200px;
    margin-top: -5px;
    font-size: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    &::placeholder {
      color: #a3b1bf;
    }
  }
  .ant-select-selection {
    border: none;
    box-shadow: none;
  }
}

#nav {
  font-size: 14px;
  font-family: Lato, @font-family;
  background-color: transparent;
  border: 0;
  &.ant-menu-horizontal {
    border-bottom: none;
    & > .ant-menu-item {
      // min-width: 72px;
      // height: @header-height;
      // line-height: @header-height - @menu-item-border - 2px;
      padding: 10px 20px;
      color: @bixi-black;
      border-top: @menu-item-border solid transparent;
      &:hover {
        border-top: @menu-item-border solid @primary-color;
        border-bottom: @menu-item-border solid transparent;
      }
    }
    & > .ant-menu-item-selected {
      border-top: @menu-item-border solid @primary-color;
      border-bottom: @menu-item-border solid transparent;
      a {
        color: @primary-color;
      }
    }
  }
  & > .ant-menu-item {
    text-align: center;
    outline: none;
  }
}

.component-select {
  &.ant-select-dropdown {
    font-size: 14px;
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  }
  .ant-select-dropdown-menu {
    max-height: 200px;
  }
  .ant-select-dropdown-menu-item {
    border-radius: 0 !important;
  }
  .ant-component-decs {
    position: absolute;
    right: 16px;
    color: #aaa;
    font-size: 12px;
  }
}

@media only screen and (max-width: 1200px) {
  .header-menu-container {
    justify-content: flex-end;
  }
  #search-box {
    display: none;
  }
}

@media (max-width: @mobile-max) {
  #header {
    text-align: center;
    .app-logo {
      width: 42px;
      height: 15px;
      margin-top: 18px;
      margin-left: 10px;
      padding-left: 0;
    }
  }
  .header-menu {
    display: block;
    margin-right: 0;
    .version {
      display: block;
      margin: 10px 8px 16px 0;
      &:first-child {
        margin-left: 0;
      }
    }
    &-icon {
      position: absolute;
      top: 16px;
      right: 30px;
      z-index: 1;
      width: 16px;
      height: 22px;
      cursor: pointer;
    }
    .menu-site {
      border: none;
    }
  }
  #nav {
    &,
    li {
      width: 100%;
      font-size: 16px;
    }
    li {
      height: 40px;
      padding: 0 !important;
      line-height: 40px;
      border: 0;
      a {
        color: #333;
      }
    }
  }
}

@media (max-width: @screen-sm-width) {
  #nav.ant-menu-horizontal > .ant-menu-item {
    padding: 10px;
  }
}
@media (max-width: @screen-mobile-width) {
  .header-wrapper {
    height: 45px !important;
    .header-content {
      width: 100%;
    }
  }
}
