/*
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
@import "../../../variables.less";

body {
  background: @lightGrey;
}

.body-scrolled {
  #UITopBarContainerParent, #UITopBarContainer {
    box-shadow: 0 6px 4px -4px rgba(0, 0, 0, .3);
  }
}

#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;

  .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;
  }

  .UITopBarContainerItemsParent {
    display: flex;
    padding-right: 8px ~'; /** orientation=lt */ ';
    padding-left: 8px ~'; /** orientation=rt */ ';

    .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;
    min-width: 30px;
    width: auto;
    box-sizing: content-box;
    img {
      max-width: 200px;
      max-height: 30px;
      min-height: 30px;
    }
  }
  .brandingContainer {
    color: @toolbarLightLinkHoverColor;
    padding-top: 3px;
    padding-bottom: 3px;
    border-left: solid 1px @greyColor ~'; /** orientation=lt */ ';
    border-right: solid 1px @greyColor ~'; /** orientation=rt */ ';
  }
  .logoTitle {
    max-width: 200px;
  }

}
#showMoreManagers{
  position:absolute;
  background-color:rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width:30px;
  height:30px;
}
/* Make TopBar under drawers and other modals when opened */
.decrease-z-index #UITopBarContainer {
  z-index: @zindexFixedNavbarUnder;
}
.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 {
      position: absolute;
      left: 21px ~'; /** orientation=lt */ ';
      right: 21px ~'; /** orientation=rt */ ';
      top: -9px;
      font-size: 12px;
      min-width: 20px;
      height: 20px;
      line-height: 20px;
      text-align: center;
      text-indent: 0;
      letter-spacing: 0;
      padding: 0;
      border-radius: 10px;
      white-space: nowrap;
      font-weight: normal;
      background-color: @badgePrimaryColor;
    }
    .grey-color {
      color: @toolbarLightIconColor;
    }
    .notifDrawer {
      .uiSettingsIcon {
        color: @greyColorLighten1;
        font-size: 21px;
        font-style: normal;
        &:before {
          font-family: 'PLF-FONT-ICONS';
          content: "\e78b" !important;
        }
      }
      .notifDrawerItems {
        .v-list-item {
          padding-left: 0px ~'; /** orientation=lt */ ';
          padding-right: 0px ~'; /** orientation=rt */ ';
        }
        .notifDrawerItem {
          color: inherit;
            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;
              }
              
              .uiIconClose:before {
                font-size: 16px !important;
              }

              .media {
                display: flex;
                max-width: 95%;
                .avatarXSmall {
                  max-height: 45px;
                  max-width: 45px;

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

                .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;
                      }

                      br {
                        display: none;
                      }

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

                      blockquote {
                        border-left: 6px solid #aacded ~'; /** orientation=lt */ ';
                        border-right: 6px solid #aacded ~'; /** orientation=rt */ ';
                        margin-bottom: 10px;
                        div, 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 0 25px ~'!important; /** orientation=lt */ ';
                          padding: 0 25px 0 5px ~'!important; /** orientation=rt */ ';
                          position: relative;
                          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 ~'; /** orientation=lt */ ';
                            border-left: 1px solid white ~'; /** orientation=rt */ ';
                            left:0 ~'; /** orientation=lt */ ';
                            right:0 ~'; /** orientation=rt */ ';
                            padding-left: 3px;
                            padding-right: 3px;
                          }
                          &:hover {
                            background-color: @primaryColor!important;
                            color:  white;
                            &:before {
                              border-right: 1px solid white ~'; /** orientation=lt */ ';
                              border-left: 1px solid white ~'; /** orientation=rt */ ';
                            }
                          }
                        }
                        .cancel-item {
                          font-style: normal;
                          letter-spacing: .5px;
                          background-color: transparent !important;
                          background-image: none;
                          padding: 0 5px 0 25px ~'!important; /** orientation=lt */ ';
                          padding: 0 25px 0 5px ~'!important; /** orientation=rt */ ';
                          position: relative;
                          border-radius: 4px;
                          margin-left: 5px ~'; /** orientation=lt */ ';
                          margin-right: 5px ~'; /** orientation=rt */ ';
                          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 ~'; /** orientation=lt */ ';
                            right: 0 ~'; /** orientation=rt */ ';
                            border-radius: 5px 0 0 5px ~'; /** orientation=lt */ ';
                            border-radius: 5px 5px 0 0 ~'; /** orientation=rt */ ';
                          }
                        }
                      }
                    }

                    .lastUpdatedTime {
                      color: @toolbarLightIconColor;
                      font-size: 12px;
                      i {
                        margin-right: 10px ~'; /** orientation=lt */ ';
                        margin-left: 10px ~'; /** orientation=rt */ ';
                        color: #abc8e6;
                        &:before {
                          top: 3px;
                          position: relative;
                        }
                      }
                    }

                    .quoteContainer {
                      padding-left: 5px ~'; /** orientation=lt */ ';
                      padding-right: 5px ~'; /** orientation=rt */ ';
                      margin: 5px 0;
                      max-height: 20px;
                      overflow: hidden;
                      white-space: nowrap;
                      text-overflow: ellipsis;
                      font-size: 13px;

                      .comment {
                        border-left: 6px solid #aacded ~'; /** orientation=lt */ ';
                        border-right: 6px solid #aacded ~'; /** orientation=rt */ ';
                        padding-left: 5px ~'; /** orientation=lt */ ';
                        padding-right: 5px ~'; /** orientation=rt */ ';
                        font-style: italic;
                      }
                    }
                  }
                }
              }

              .kudosWebNotifContent {
                .content {
                  display: block !important;
                }
              }
            }
            .unread {
              background: #f0f7fd;
            }
        }
      }
      .notifFooterActions {
        position: fixed;
        bottom: 0;
        left:0 ~'; /** orientation=lt */ ';
        right:0 ~'; /** orientation=rt */ ';
        width: 100%;
        border-top: 1px solid rgba(13, 13, 13, 0.05);
        background: white;
        padding-right: 12px ~'; /** orientation=lt */ ';
        padding-left: 12px ~'; /** orientation=rt */ ';
        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;
          }
        }
      }
    }
  }
}
