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

$paddingOpen: 25px;
:root {
  --notification-text: var(--text-color)
}

:root[data-theme="dark"] {
  --notification-text: #2F363E;
}

#header {
  position: relative;

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

    .breadcrumbs {
      padding-top: 1rem;
      display: flex;
      align-items: center;
      font-size: 1.4rem;
      letter-spacing: 0.28px;
      font-weight: $thin;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      img {
        filter: $svg-default
      }

      & a {

        color: $title-color;
        text-underline-offset: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        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 $title-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;
    margin-top: 9.5px;
    z-index: 100;
    background: $quick-access-background;
    display: flex;
    align-items: center;
    min-width: 416px;

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

    #msDropdown {
      .options {
        //padding: 0 25px;
        top: -8px;
        li {
          .defaultapplicationname{
            color:$title-color;
            font-weight: 800;
            font-size: 17px;
          }
          //padding: 0 25px;
          &:hover {
            .defaultapplicationname{
              color:$tooltip-color;
            }
            //background-color: #f3f8fc;
            img {
              filter: brightness(0) invert(1);
            }
          }

          &: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;
          }
        }
      }
    }

    @media(max-width: 450px) {
      min-width: unset;
    }
  }

  .service-header, .settings-header {
    @media(max-width: 1199px) {
      div {
        width: 100% !important;
      }
    }

    @media(max-width: 1199px) {
      div {
        width: 100% !important;
      }
    }
  }

  .profile {
    column-gap: 0.3rem;
    //z-index: 1000;
    z-index: 1000;
    right: $paddingOpen;
    height: 44px;
    overflow: visible;


    .parent-state {
      @media(max-width: 991px) {
        display: none;
      }
      position: relative;

      &#openuser {
        top: 67px;
      }
    }

    &--dd {
      &.open-notifications {
        background: $dropdown-color;
        box-shadow: 0 3px 6px rgb(0 0 0 / 16%);
        border-radius: 0.4rem;
        position: absolute;
        right: 0;
      }


      &.inactive {

        .profile--dd--notification {
          pointer-events: none;
          cursor: default;
        }

        img {
          filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7466%) hue-rotate(57deg) brightness(89%) contrast(93%);
        }
      }

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


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

        &--number {
          position: absolute;
          color: $rolebox-background;
          background: $error-color;
          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;
          }
        }

        @media(max-width: 1050px) {
          padding: 0.8rem 0rem;
        }
      }

      &-list {


        //span, p {
        //  color: var(--notification-text)
        //}

      }
    }

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

      &--userName {

        &.visible {
          display: block;
        }

        align-self: center;
        padding-left: 1rem;
        padding-right: 1rem;
        position: relative;
        min-width: 190px;
      }

      &#fixedHeight {
        padding-left: 1rem;
        position: relative;
        height: fit-content;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1607843137);
        border-radius: 0.4rem;
        background: $dropdown-color;
        z-index: 60;
      }

      div.profile.menu#fixedHeight + div.parent-state {
        position: absolute;
        right: 50px;
      }

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

      button {
        border: none;
        background: transparent;

        p {
          align-self: center;
          padding-left: 0rem;
          padding-right: 1.5rem;
          text-align: center;
        }

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

        &:after {
          display: none;


        }

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

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

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

          img {
            filter: $svg-default;
          }
        }
      }

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

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

          .dropdown-item {

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

              &:hover {
                color: $white;
              }
            }

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

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

  .notifications-btn {
    img {
      filter: $svg-default;
    }
  }


  @media(max-width: 1050px) {
    .toggle-sensitive {
      margin-right: 0 !important;
    }
  }
}


.services-select-container {
  // max-width: 600px;
  @media(max-width: 650px) {
    max-width: unset !important;
  }

 .select-head,
 .options {
    li {
      @media(max-width: 650px) {
        flex-direction: column;
        align-items: flex-start !important;
        margin-top: 10px;
      }

      @media(max-width: 500px) {
        b {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          width: 240px;
        }
      }

      @media(max-width: 340px) {
        b {
          width: 200px;
        }
      }
    }
 }
}
