@import "../../../variables.less";

body {
  background: @lightGrey;
}

#ParentSiteContainer {
  height: 100%;
  min-height: 100vh;
}

#UITopBarContainerParent, #UITopBarContainer {
  height: 56px;
}

#UITopBarContainer {
  box-shadow: none;
  background-image: linear-gradient(to bottom, white, white);
  border-bottom: 1px solid white;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100%;
  z-index: @zindexFixedNavbar;

  &.top-bar-scrolled {
    box-shadow: 0 6px 4px -4px rgba(0, 0, 0, .3);
  }

  .uiDropdownWithIcon > a {
    color: @toolbarLightIconColor;
    text-transform: uppercase !important;
    font-weight: normal;
    font-size: 15px;
    
    &:hover {
      color: @toolbarLightIconColor;
      background: none;
    }
  }

  [class^="uiIconPLF24x24"] {
    color: @toolbarLightIconColor;
    font-size: 26px;
  }

  .uiDropdownWithIcon > a {
    padding: 0 12px 0 12px;
  }

  .UITopBarContainerItemsParent {
    display: flex;

    .UITopBarContainerItem {
      margin: auto;
      height: 57px;
      min-height: 57px;
      max-height: 57px;
      display: flex;
      flex-grow: 0;
      flex-shrink: 0;

      > * {
        margin: auto;
      }

      &.MiddleToolBarTDContainer {
        flex-grow: 1;
        flex-shrink: 1;
        overflow: hidden;
        justify-content: center;

        > .MiddleToolBar {
          max-width: 70%;
          margin: 0 15%;
          display: flex;
          box-sizing: border-box;

          > div {
            max-width: 100%;
          }
        }
      }
    }

    .TopbarLoadingContainerTDContainer {
      display: block;
      position: fixed;
      top: 53px;
      width: 100%;
      height: 7px;
      min-height: 7px;
      max-height: 7px;
    }
  }
}

#brandingTopBar {
  .logoContainer {
    position: relative;
    img {
      max-width: 200px;
      max-height: 30px;
      min-height: 30px;
    }
  }
  .brandingContainer {
    color: @toolbarLightLinkHoverColor;
    padding-top: 3px;
    padding-bottom: 3px;
    border-left: Solid 1px @greyColor;
  }
  .logoTitle {
    max-width: 200px;
  }
}

/* Make TopBar under drawers and other modals when opened */
body.decrease-z-index #UITopBarContainer {
  z-index: @zindexFixedNavbarUnder;
}
body.decrease-z-index-more #UITopBarContainer {
  z-index: @zindexFixedNavbarUnderMore;
}

@media (max-width: 599px) {
  #brandingTopBar {
    .logoContainer {
      &:after {
        display: none;
      }
    }
    .brandingContainer.company {
      display: none;
    }
    .brandingContainer.space {
      max-width: 100px;
    }
  }
}

.NotificationTopBarTDContainer {
  #NotificationPopoverPortlet {
    .container.white{
      width: auto!important;
    }
    .v-badge__badge {
      padding: 0px;
      font-size: 12px;
      min-width: 20px;
      height: 20px;
      line-height: 20px;
    }
    .grey-color {
      color: @toolbarLightIconColor;
    }
    .v-list-item {
      padding: 0px;
    }
    .notifDrawer {
      .notifDrawerHeader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        border-bottom: 1px solid rgba(13, 13, 13, 0.05);
        background: white;
        z-index: 9999;
        max-width: 100%;
        box-sizing: border-box;
        .notifDrawerTitle {
          margin-left: 13px;
          font-size: 18px;
          font-weight: bold;
          color: @toolbarLightLinkHoverColor;
        }
        .notifDrawerIcons {
          flex-direction: row!important;
          i {
            cursor: pointer;
          }
          .uiCloseIcon {
            color: @greyColorLighten1;
            font-size: 20px;
            font-style: normal;
            &:before {
              font-family: 'PLF-FONT-ICONS';
              content: "\e937" !important;
            }
          }

          .uiSettingsIcon {
            color: @greyColorLighten1;
            font-size: 19px;
            font-style: normal;
            &:before {
              font-family: 'PLF-FONT-ICONS';
              content: "\e78b" !important;
            }
          }
        }
      }
      .notifDrawerItems {
        padding-bottom: 70px;
        padding-top: 55px;
        .notifDrawerItem {
            li {
              list-style: none;
              display: flex;
              flex-wrap: wrap;
              justify-content: space-between;
              padding: 12px;
              cursor: pointer;

              &:hover {
                background: #e3eef7;
                cursor: pointer;
                -o-transition: all 0.2s linear;
                -moz-transition: all 0.2s linear;
                -webkit-transition: all 0.2s linear;
                transition: all 0.2s linear;
                }

              &:before {
                display: none;
              }

              &:after {
                display: none;
              }

              .media {
                max-width: 360px;
                .avatarXSmall {
                  max-height: 45px;
                  max-width: 45px;

                  img {
                    border-radius: 50%;
                    width: 45px !important;
                    height: 45px;
                  }
                }

                .media-body {
                  .contentSmall {
                    .status {
                      .user-name {
                        font-weight: bold;
                      }
                    }

                    .content, content-normal {
                      font-size: 12px;
                      overflow: hidden;
                      text-overflow: ellipsis;
                      white-space: nowrap;
                      font-weight: bold;
                      max-height: 30px;

                      .user-name {
                        color: @primaryColor;
                        font-weight: bold;
                      }

                      p {
                        margin-bottom: 8px;
                        font-size: 13px;
                        font-style: italic;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        display: inline;
                      }

                      blockquote {
                        p {
                          padding: 10px 0 !important;
                        }
                      }

                      i {
                        margin-right: 8px;
                        font-size: 15px;
                        color: #abc8e6!important;
                        &:before {
                          color: inherit;
                        }
                      }
                      .confirm {
                        padding: 8px 0;
                        .action-item {
                          font-style: normal;
                          letter-spacing: .5px;
                          background-color: transparent!important;
                          background-image: none;
                          padding: 0 5px !important;
                          position: relative;
                          padding-left: 25px!important;
                          border-radius: 4px;
                          border:1px solid @primaryColor!important;
                          color: @primaryColor;
                          &:before {
                            content: '\e9c8';
                            font-family: 'PLF-FONT-ICONS' !important;
                            position: absolute;
                            height: 100%;
                            border-right: 1px solid white;
                            padding-right: 3px;
                            left:0;
                            padding-left: 3px;
                          }
                          &:hover {
                            background-color: @primaryColor!important;
                            color:  white;
                            &:before {
                              border-right: 1px solid white;
                            }
                          }
                        }
                        .cancel-item {
                          font-style: normal;
                          letter-spacing: .5px;
                          background-color: transparent !important;
                          background-image: none;
                          padding: 0 5px !important;
                          position: relative;
                          padding-left: 25px!important;
                          border-radius: 4px;
                          margin-left:5px;
                          color: @toolbarLightIconColor;
                          border:1px solid @toolbarLightIconColor!important;
                          &:before {
                            content: '\E9D2';
                            font-family: 'PLF-FONT-ICONS' !important;
                            position: absolute;
                            height: 100%;
                            border-right: 1px solid @toolbarLightIconColor;
                            padding-right: 3px;
                            padding-left: 3px;
                            left: 0;
                            border-radius: 5px 0 0 5px;
                          }
                        }
                      }
                    }

                    .lastUpdatedTime {
                      color: @toolbarLightIconColor;
                      font-size: 12px;
                      i {
                        margin-right: 10px;
                        color: #abc8e6;
                      }
                    }

                    .quoteContainer {
                      padding-left: 5px;
                      margin: 5px 0;
                      max-height: 20px;
                      overflow: hidden;
                      white-space: nowrap;
                      text-overflow: ellipsis;
                      font-size: 13px;

                      .comment {
                        border-left: 6px solid #aacded;
                        padding-left: 5px;
                        font-style: italic;
                      }
                    }
                  }
                }
              }

              .kudosWebNotifContent {
                .content {
                  display: block !important;
                }
              }
            }
            .unread {
              background: #f0f7fd;
            }
        }
      }
      .notifFooterActions {
        position: fixed;
        bottom: 0;
        left:0;
        width: 100%;
        border-top: 1px solid rgba(13, 13, 13, 0.05);
        background: white;
        padding-right: 12px;
        max-width: 100%;
        box-sizing: border-box;
        .seeAllNotif {
          border: 1px solid @primaryColor !important;
          margin-top: 13px;
          margin-bottom: 13px;
        }
        .markAllAsRead {
          border: 1px solid transparent !important;
          margin-top: 13px;
          margin-bottom: 13px;
        }
      }
      .noNoticationWrapper {
        display: flex;
        height: 100%;
        align-items: center;
        justify-content: center;
        background-color: @greyColorLighten1Opacity1;
        margin-top: -1px;
        .noNotificationsContent {
          text-align: center;
          margin-top: -10%;
          .uiNoNotifIcon {
            color: @greyColorLighten1Opacity1;
            font-size: 10rem;
            font-style: normal;
            font-weight: normal;
            &:before {
              font-family: 'PLF-FONT-ICONS';
              content: "\e965" !important;
            }
          }
          p {
            font-size: 15px;
            color: @greyColorLighten1;
            margin-top: -50px;
            font-weight: bold;
          }
        }
      }
    }
  }
}

@media (min-width: 768px) {
  .hide-scroll.with-scroll #UITopBarContainer {
    width: ~"calc(100% - 15px)";
  }
  .hide-scroll.with-scroll {
    margin-right: 15px !important;
  }
}
