@import "../../../assets/scss/variables";

$paddingOpen: 25px;

#header {
  position: relative;

  & > .top-header {
    height: 90px;
    align-items: center;


    .breadcrumbs {

      display: flex;
      align-items: center;
      font-size: 1.4rem;
      letter-spacing: 0.28px;
      font-weight: $thin;

      & a {
        color: $main-color;
        text-underline-offset: 6px;
        cursor: default;

        &:not(.active):hover {
          text-decoration: underline;
          cursor: pointer;
        }

      }

      &--wrapper {
        display: initial;

        img {
          @media(max-width: 1385px) {
            width: 1.5rem;
          }
        }

        a {
          padding: 0 1rem;
          border-bottom: 1px solid $text-color;

          @media(max-width: 1385px) {
            padding: 0 .5rem;
          }
        }

        .home-breadcrumb {
          position: relative;
          margin-top: -0.3rem;
        }
      }

      .divider {
        display: inline-block;
        width: 0;
        height: 1.3rem;
        border-left: 1px solid $main-color;
        margin: 0 1rem;

        &:last-child {
          display: none;
        }

        @media(max-width: 1385px) {
          margin: 0 0.8rem;
          height: 1.1rem;
        }
      }

      &.is-home {
        font-size: 2.2rem;
      }
    }


  }

  & > .service-header, > .settings-header {
    padding: 8px;
    height: 62px;
    //padding: 10px 0;
    //align-items: center;
    z-index: 100;
    background: #F3F8FC;
    display: flex;
    align-items: center;

    h2 {
      font-weight: bold;
      font-size: 1.8rem;
      color: $main-color;
    }

    #msDropdown {
      .options {
        padding: 0 25px;

        li {
          &:hover {
            background-color: #f3f8fc;
          }

          &:last-child {
            margin-bottom: 10px;
          }

          &.selected {
            img {
              height: 30px !important;
            }
          }

          padding-top: 40px;
          padding-bottom: 40px;
          height: 60px;
          border-bottom: 1px dashed $input-border;
          padding-left: unset;

          img {
            margin: 25px 0 25px 0;
          }
        }
      }
    }
  }

  .profile {
    top: 20px;
    column-gap: 0.3rem;
    position: absolute;
    z-index: 1000;
    right: $paddingOpen;

    .parent-state {

      @media(max-width: 1000px) {
        display: none;
      }
    }

    &--dd {
      &#openToggle {
        background: #fff;
        box-shadow: 0px 3px 6px rgb(0 0 0 / 16%);
        border-radius: 0.4rem;
      }

      &--notification {
        padding: 0.8rem 1.8rem;
        position: relative;
        border: none;
        background: none;

        &#zero-notification {
          cursor: default;
        }

        img {
          vertical-align: bottom;
          position: relative;
          margin-top: 1rem;
        }

        &--number {
          position: absolute;
          color: white;
          background: $error-text;
          border-radius: .4rem;
          font-size: 0.8rem;
          text-align: center;
          padding: 0.1rem 0.4rem;
          top: 1.2rem;
          right: 1rem;
          line-height: 1.3rem;

          &:empty {
            padding: 0;
          }
        }
      }
    }

    &--dmenu {
      padding-top: 1rem;
      position: relative;

      &#fixedHeight {
        //height: 27.6rem;
        box-shadow: 0px 3px 6px #00000029;
        border-radius: 0.4rem;
        background: #fff;
      }

      &:not(.show) {
        height: auto;
        box-shadow: none;
      }

      button {
        border: none;
        background: transparent;

        p {
          align-self: center;
          padding-left: 1rem;
          padding-right: 1rem;
          width: 19rem;
          text-align: left;
        }

        img {
          margin-right: 1rem;
          border-radius: 50%;
        }

        &:after {
          display: none;

          &--userName {
            align-self: center;
            padding-left: 1rem;
            padding-right: 1rem;
            position: relative;
          }
        }

        .dd-image {
          height: 33px;
          display: flex;
          align-items: center;

          &-close {
            height: 1rem;
            width: 1rem;
          }

          &-open {
            width: 1rem;
            height: 0.5rem;
          }
        }
      }

      p,
      li a {
        font-size: 1.3rem;
        font-weight: $bold;
        color: $main-color;
      }

      .dropdown {
        &-menu-profile {
          &#show {
            width: 25.5rem;
            border: none;
            margin-top: 1.2rem !important;
            padding-bottom: 1.3rem !important;
            display: block;
            padding: 0;
            background: #fff;
          }

          .dropdown-item {

            &#logout {
              cursor: pointer;
              font-size: 1.3rem;
              font-weight: 700;
              color: #040059;

              &:hover {
                color: #fff;
              }
            }

            display: flex;
            align-items: center;
            height: 5rem;
            padding-left: 2rem !important;

            &:hover {
              background-color: $secondary-color;
              color: white;
            }
          }
        }
      }
    }
  }
}
