@import "~styles/mixins";
$indic_dim: 6px;

.project-header {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background-color: white;
  z-index: 5;
  // height: $height_global_header;
  border-bottom: solid 2px $color-light-grey;

  .activePopup {
    display: block;
    position: absolute;
    z-index: 9;
    top: 0;
    @include transition(all);

    .wrapper-popup {
      // min-height: 500px;
    }

    .close {
      position: absolute;
      top: 50px;
      right: 50px;
      cursor: pointer;
      @include phone {
        top: 30px;
        right: 30px;
      }
    }
  }

  .header-container {
    max-width: 100%;
    padding: 0 20px;
    width: 100%;
  }
  .content {
    position: relative;
    display: flex;
    align-items: center;
    height: $height_global_header;
    justify-content: center;
    @include tablet {
      justify-content: flex-start;
    }
  }

  &.staging {
    border-top: 4px solid $color-green;
  }

  // @include box-shadow(0, 2px);

  .left,
  .center,
  .right {
    width: auto;
    display: flex;
    align-items: center;
  }

  .left {
    left: 0;
    text-align: left;

    .logo {
      display: flex;
      align-items: center;
      img {
        height: 50px;
      }
    }
  }

  .left {
    @include tablet {
      display: none;
    }
  }

  .right {
    right: 0;
    text-align: right;
    > * {
      margin-left: 20px;
      &:first-child {
        margin-left: 0;
      }
      @include tablet {
        margin-left: 10px;
      }
    }
  }

  .left,
  .right {
    position: absolute;
    height: 100%;
    top: 0;
  }

  .logo {
    color: white;
    font-size: 18px;
    font-weight: bold;

    .small {
      display: inline-block;
      margin-left: 3px;
      color: $color-grey;
      font-size: 80%;
    }
  }
  .messages {
    font-size: 0;
  }
  .add {
    font-size: 0;
    cursor: pointer;
    @include transition(all);
    &:hover {
      transform: scale(1.2);
    }
    img {
      max-width: 32px;
    }
    @include tablet {
      display: none;
    }
  }

  .open-menu {
    &:hover,
    &:active,
    &.active {
      background-color: rgba(255, 255, 255, 0.08);
    }

    @include ball(45px);
    border-radius: 0;
  }
  .search {
    cursor: pointer;
    font-size: 14px;
    border: 1px solid $color_border;
    border-radius: 50px;
    display: flex;
    > * {
      max-width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding: 12px 15px;
      &:not(:first-child) {
        border-left: 1px solid $color_border;
      }
      @include tablet {
        padding: 7px 10px;
        &.dates,
        &.hours {
          display: none;
        }
      }
    }
  }
  .menu {
    width: 270px;
    background-color: white;
    border: solid 2px $color-light-grey;
    right: 0;
    border-radius: 10px 0 10px 10px;
    text-align: left;
  }
  .messages {
    position: relative;
    .indic {
      position: absolute;
      top: -1 * ($indic_dim * 0.5);
      right: -1 * ($indic_dim * 0.5);
      @include ball($indic_dim);
      font-size: 10px;
      color: white;
      background-color: $color-red;
    }
  }

  @include phone {
    .register {
      display: none;
    }
  }
}
