#exoAttachmentsApp {
  .attachment {
    display: flex;
    overflow: hidden;
    width: 100%;
    font-size: 18px;

    .fileType {
      flex: 0 0 41px;
      width: 41px;

      i {
        font-size: 41px;
      }
    }

    .fileDetails {
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      text-align: left ~'; /** orientation=lt */ ';
      text-align: right ~'; /** orientation=rt */ ';
      margin-left: 5% ~'; /** orientation=lt */ ';
      margin-right: 5% ~'; /** orientation=rt */ ';

      .fileDetails1 {
        display: flex;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;

        .fileNameLabel {
          width: 100%;
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
        }

        .fileSize {
          width: auto;
          white-space: nowrap;
        }
      }

      .fileDetails2 {
        .progress {
          height: 10px;
          margin: 0px;

          .bar {
            height: 10px;
            line-height: 10px;
            background-image: linear-gradient(to bottom, var(--allPagesPrimaryColorLighter, #9ebde0), var(--allPagesPrimaryColor, #476A9C));
            background-repeat: repeat-x;
          }
        }

        .upload-completed {
          visibility: hidden;
          opacity: 0;
          transition: visibility 0s 3s, opacity 2s 1s linear;
        }
      }

    }
  }

  .attachments {
    .v-navigation-drawer {
      z-index: 20;
    }

    .attachmentsHeader {
      height: auto;
      display: flex;
      justify-content: space-between;
      position: relative;
      align-items: center;

      .backButton {
        width: 0px;

        .uiIconBack {
          color: grey;
          background: none;
          margin: 0;
          padding: 15px 15px 15px 0;
          position: absolute;
          float: left ~'; /** orientation=lt */ ';
          float: right ~'; /** orientation=rt */ ';
          font-size: 15px;
          cursor: pointer;
          top: 10px;

          &:before {
            content: "\e760";
          }
        }
      }

      .attachmentsTitle {
        font-size: 18px;
        font-weight: bold;
        width: 100%;
        text-align: left ~'; /** orientation=lt */ ';
        text-align: right ~'; /** orientation=rt */ ';
        padding-left: 35px ~'; /** orientation=lt */ ';
        padding-right: 35px ~'; /** orientation=rt */ ';
      }

      .attachmentsCloseIcon {
        color: #dee4f2;
        font-size: 32px;
        line-height: 20px;
        float: right ~'; /** orientation=lt */ ';
        float: left ~'; /** orientation=rt */ ';
        cursor: pointer;
      }
    }

    .uploadedFilesTitle {
      color: @headingColor;
      font-size: 18px;
      font-weight: bold;
      padding: 15px;
    }

    .uploadedFilesItem, .fileSelection {
      display: flex;
      font-size: 18px;
      flex-direction: column;

      .showDestination {
        display: flex;
        margin-bottom: 13px;

        .showFile {
          width: 97%;
          margin-left: 12px ~'; /** orientation=lt */ ';
          margin-right: 12px ~'; /** orientation=rt */ ';
        }
      }

      .removeFile {
        flex: 0 0 34px;
        width: 50px;
        margin-top: 5px;
        margin-right: -7px ~'; /** orientation=lt */ ';
        margin-left: -7px ~'; /** orientation=rt */ ';

        .uiIcon {
          color: #A8B3C5;
          font-size: 24px;
          width: 24px;

          &:before {
            content: "\e9d0";
          }
        }
      }

      .destinationFolder {
        display: flex;
        flex-direction: row;
        margin-left: 15px ~'; /** orientation=lt */ ';
        margin-right: 15px ~'; /** orientation=rt */ ';
        color: #a8b3c5;
        border-bottom: 1px solid #a8b3c5;
        margin-top: -14px;

        .emptyMessage {
          width: 100%
        }

        .box {
          display: flex;
          flex-direction: row;
        }

        .btnTrash {
          margin-left: 10px ~'; /** orientation=lt */ ';
          margin-right: 10px ~'; /** orientation=rt */ ';
          margin-bottom: 8px;
          cursor: pointer;
          margin-top: -1px;
        }

        .folderLocation {
          display: flex;
          flex-direction: row;
          border-bottom: 0px;
          width: 100%;

        }

        .folder {
          overflow: hidden;
          white-space: nowrap;
          cursor: pointer;
          margin-bottom: 0px;
          margin-right: 5px ~'; /** orientation=lt */ ';
          margin-left: 5px ~'; /** orientation=rt */ ';
        }

        .folderName {
          margin-right: 5px ~'; /** orientation=lt */ ';
          margin-left: 5px ~'; /** orientation=rt */ ';
          cursor: pointer
        }

        .colorIcon {
          color: #a8b3c5;
        }

        .colorIconStop {
          color: #bc4343;
          cursor: pointer;
        }

        .folders {
          flex-direction: row;
          display: flex;
        }

        .folderName {
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
          width: 95%;
          margin-bottom: 0px;

        }

        .selectFile {
          width: 100%;
          border-bottom: 0px;

          > p {
            margin-bottom: 1px;
          }
        }

        .uiIconFolder {
          cursor: pointer;
        }
      }

    }

    .messageDestination {
      border-bottom: 1px solid #a8b3c5;
      width: 100%;

      > p {
        margin-bottom: 0px;
      }
    }

    .buttonSelect {
      padding: 0px;
    }

    .fileAlreadyExists {
      margin-top: -50px;
    }

    .fileAlreadyExists, .sizeExceeded, .countExceeded {
      position: absolute !important;
      left: 50%;
      z-index: 100;
      transform: translateX(-50%);
      white-space: nowrap;
    }

    .limitMessage {
      height: 20px;
      padding: 12px 23px;
      color: #555;
      display: flex;
      justify-content: space-between;

      .sizeLimit, .countLimit {
        line-height: 16px;
        font-weight: initial;
        box-sizing: border-box;
        transition: font-weight 2s ease-in-out;
      }

      .countLimit {
        &.noFilesLeft {
          color: red;
        }

      }

      .sizeLimit:before {
        font-family: "PLF-FONT-ICONS";
        content: "\e771";
        padding-right: 5px ~'; /** orientation=lt */ ';
        padding-left: 5px ~'; /** orientation=rt */ ';
      }

      .countLimit:before {
        font-family: "PLF-FONT-ICONS";
        content: "\e767";
        padding-right: 5px ~'; /** orientation=lt */ ';
        padding-left: 5px ~'; /** orientation=rt */ ';
      }
    }

    .selectFolder {
      display: inline-block;
      margin: auto;
      padding-right: 5px ~'; /** orientation=lt */ ';
      padding-left: 5px ~'; /** orientation=rt */ ';
      line-height: 20px;

      .uiIconClose {
        top: 0;
        left: 5px ~'; /** orientation=lt */ ';
        right: 5px ~'; /** orientation=rt */ ';
      }
    }

    .multiploadFilesSelector {
      width: 100%;
      text-align: center;

      .dragEntered {
        background: #ccc;
      }

      .dropFileBox {
        width: 100%;
        height: 207px;
        border-radius: 5px;
        border: 3px dashed #e6e6e6;
        line-height: 25px;
        font-size: 18px;
        margin: 5px auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        .mobileText {
          display: none;
        }

        .contentAttachments {
          display: flex;
          flex-direction: column;
          width: 100%;
          height: 100%;
          padding: 15px 0;

          .contentDragAndDrop {
            display: flex;
            flex-direction: row;
            height: 70%;

            .contentDrop {
              display: flex;
              flex-direction: column;
              width: 50%;

              .icon {
                padding: 5px;
              }
            }
          }

          .contentUpload {
            display: flex;
            flex-direction: column;
            width: 50%;

            .uploadButton {
              display: flex;
              flex-direction: column;

              .colorIcon {
                color: #578cc9;
                cursor: pointer;
                padding: 7px;
              }
            }
          }

          .contentOR {
            text-transform: uppercase;
            height: 41%;
            display: flex;
            flex-direction: row;

            .leftLine {
              width: 30%;
              margin-left: 112% ~'; /** orientation=lt */ ';
              margin-right: 112% ~'; /** orientation=rt */ ';
            }

            .colorText {
              color: #e6e6e6;
            }

            .item {
              width: 33%;
            }

            .itemOR {
              width: 33%;
              padding: 3%;
            }

            .rightLine {
              width: 30%;
              margin-left: -43% ~'; /** orientation=lt */ ';
              margin-right: -43% ~'; /** orientation=rt */ ';
            }
          }

          .colorText {
            color: #a8b3c5;
          }

          .lastContent {
            height: 33%;
            display: flex;
            justify-content: center;
            align-items: center;

            a {
              display: flex;
              align-items: baseline;
              position: relative;

              .uiIcon32x32FolderDefault {
                font-size: 22px;
                top: 0;
              }

              .iconCloud {
                position: absolute;
                left: 5px ~'; /** orientation=lt */ ';
                right: 5px ~'; /** orientation=rt */ ';
                top: 6px;
              }
            }

            .text {
              padding-left: 6px ~'; /** orientation=lt */ ';
              padding-right: 6px ~'; /** orientation=rt */ ';
            }
          }
        }

      }

      .fade-leave-active {
        transition: opacity .6s;
      }

      .fade-leave-to {
        opacity: 0;
      }
    }

    .attachmentsFooter {
      .btn {
        float: right ~'; /** orientation=lt */ ';
        float: left ~'; /** orientation=rt */ ';
      }
    }

    .uiPopup.documentSelector {
      top: 12%;
      left: 21% ~'; /** orientation=lt */ ';
      right: 21% ~'; /** orientation=rt */ ';
    }

    .content.serverFiles {
      bottom: 0;
      padding: 30px 30px 0;

      .serverFiles {
        height: 77%;

        .contentHeader {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin: 3%;
          border-bottom: 1px solid #efefef;
          position: relative;

          .currentDirectory {
            display: flex;
            align-items: center;
            margin-right: 10px ~'; /** orientation=lt */ ';
            margin-left: 10px ~'; /** orientation=rt */ ';
            flex: 1;
            min-width: 0;

            .documents {
              cursor: pointer;
              display: flex;
              align-items: center;

              .uiIconFolder {
                margin-right: 5px ~'; /** orientation=lt */ ';
                margin-left: 5px ~'; /** orientation=rt */ ';
                color: @headingColor;
              }

              p {
                margin-bottom: 0;
                color: @headingColor
              }
            }

            .currentDrive {
              cursor: pointer;
              display: flex;
              min-width: 0;
              flex: 0 1 auto;
              align-items: center;

              .currentDriveTitle {
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;

                &.active {
                  font-weight: bold;
                }
              }
            }

            .uiIconArrowRight {
              color: @headingColor;
              margin: 0 2px;
            }

            .foldersHistory {
              display: flex;
              flex: 0 1 auto;
              min-width: 0;

              .longFolderHistory {
                display: flex;
                align-items: center;

                .dropdown-toggle {
                  border: none;
                  font-size: initial;
                }
              }

              .folderHistory {
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                display: flex;
                align-items: center;

                .currentSpaceDirectory {
                  cursor: pointer;

                  &.active {
                    font-weight: bold;
                  }
                }

                a {
                  text-overflow: ellipsis;
                  overflow: hidden;
                  white-space: nowrap;
                }
              }
            }
          }

          .selectorActions {
            display: inline-flex;
            align-items: center;

            a:first-of-type {
              margin-right: 5px ~'; /** orientation=lt */ ';
              margin-left: 5px ~'; /** orientation=rt */ ';
            }

            &.visible {
              width: 100%;

              .searchInput {
                border-radius: 5px 0 0 5px;
                border-right: 0 ~'; /** orientation=lt */ ';
                border-left: 0 ~'; /** orientation=rt */ ';
              }

              .uiIconCloseServerAttachments {
                font-size: 14px;
                padding: 10px 15px 13px 15px;
                margin-bottom: 12px;
                border: 1px solid #b3b3b3;
                border-left: 0 ~'; /** orientation=lt */ ';
                border-right: 0 ~'; /** orientation=rt */ ';
                border-radius: 0 5px 5px 0 ~'; /** orientation=lt */ ';
                border-radius: 0 0 5px 5px ~'; /** orientation=rt */ ';
                cursor: pointer;

                &::before {
                  color: #476A9C;
                  content: "\f12a";
                  font-family: 'IONIC-FONT';
                  font-size: 12px;
                }
              }
            }

            .searchInput {
              width: 100%;
              border: 1px solid #b3b3b3;
              margin: 0 0 10px;
              display: none;
            }

            .uiIconFilter, .uiIconAddFolder {
              border: 1px solid #b3b3b3;
              padding: 10px;
              border-radius: 15%;
              margin-bottom: 10px;
              color: @headingColor;
              cursor: pointer;
            }
          }

          .actionBox {
            display: inline-flex;
            align-items: center;
            margin-left: 5px ~'; /** orientation=lt */ ';
            margin-right: 5px ~'; /** orientation=rt */ ';

            &Logo {
              position: relative;

              .uiActionIcon {
                border: 1px solid #b3b3b3;
                padding: 7px;
                border-radius: 15%;
                margin-bottom: 10px;
                color: #4d5466;
                cursor: pointer;

                &:before {
                  content: '+';
                  position: absolute;
                  color: #fff;
                  left: 0 ~'; /** orientation=lt */ ';
                  right: 0 ~'; /** orientation=rt */ ';
                  top: 26%;
                  width: 100%;
                  font-weight: bold;
                  font-size: 15px;
                  text-align: center;
                }
              }
            }
          }
        }

        .foldersFilesSelectorAlert {
          margin: 0 3%;
        }

        .fade-enter-active,
        .fade-leave-active {
          transition: opacity 1s
        }

        .fade-enter,
        .fade-leave-active {
          opacity: 0
        }

        .contentBody::-webkit-scrollbar-thumb  {
          background: #476A9C;
          border-radius: 3px;
        }

        .contentBody::-webkit-scrollbar-thumb  {
          background: #476A9C;
          border-radius: 3px;
        }

        .contentBody::-webkit-scrollbar-track  {
          background: #ced2d5;
        }

        .contentBody::-webkit-scrollbar-track  {
          background: #ced2d5;
        }

        .contentBody::-webkit-scrollbar {
          width: 5px;
        }

        .contentBody {
          @sectionHeight: 130px;
          min-height: calc(@sectionHeight * 3);
          height: 86%;
          overflow-y: auto;
          overflow-x: hidden;

          .selectionBox {
            display: flex;
            flex-wrap: wrap;
            padding: 0 3%;

            .emptyFolder {
              margin: 20% auto;
              text-align: center;

              .uiIconEmptyFolder::before {
                content: "\ea7b";
                font-size: 34pt;
                font-weight: normal;
                color: @baseColorDark;
              }
            }

            .loader {
              margin: auto;
            }

            .boxOfFolder {
              background-color: @greyColorDefault;
              border-radius: 5px;
              display: flex;
              flex-direction: column;
            }

            .folderSelection {
              width: 20%;
              margin: 7px;
              padding: 10px 2px 5px;
              cursor: pointer;

              .boxNewFolder {
                border-radius: 5px;
                background-color: @greyColorDefault;
                padding: 0px 9px 0px;
              }

              .boxOfTitle {
                padding: 0px 3px 0px;
              }

              .closeIcon {
                margin-top: -9px;
                padding: 3px;
                margin-left: 80% ~'; /** orientation=lt */ ';
                margin-right: 80% ~'; /** orientation=rt */ ';

                > p {
                  margin-bottom: 0px;
                  margin-top: -5px;
                }
              }

              a {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                font-size: 12px;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                position: relative;

                i {
                  font-size: 41px;
                }

                .selectionLabel {
                  text-overflow: ellipsis;
                  overflow: hidden;
                  white-space: nowrap;
                  color: #333;

                  &.connectingDriveTitle {
                    color: #b3b3b3;
                  }
                }
              }

              .newFolderInput {
                width: auto;
                height: 16px;
                margin-top: 3px;
                min-height: 15px;
                background-color: #476A9C;
                color: #FFF;
                border: none;
                border-radius: 0;
              }

              .connectingDriveProgress {
                svg {
                  .v-progress-circular__underlay {
                    stroke: #e2e9ef;
                  }
                }

                &Percent {
                  font-size: 10px;
                  padding-top: 2px;
                }
              }

              .uiIcon {
                &-clouddrive {
                  position: absolute;
                  width: 100%;
                  height: 40px;
                  padding-bottom: 15px;

                  &:before {
                    font-family: 'PLF-FONT-ICONS';
                    font-size: 18px;
                    color: #fff;
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    right: 0;
                    left: 0;
                    top: -2px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                  }
                }
              }
            }

            .fileSelection {
              width: 20%;
              margin: 7px;
              padding: 10px 2px 5px;
              cursor: pointer;
              height: fit-content;

              .attachment {
                flex-direction: column;
                align-items: center;

                .fileDetails {
                  margin: 0;

                  .fileSize {
                    display: none;
                  }

                  .fileNameLabel {
                    font-size: 12px;
                    text-align: center;
                  }
                }
              }

              &.selected {
                border-radius: 5px;
                background-color: #E1E8EE;
              }
            }

            #folderActionsMenu {
              background: #FFF;
              display: block;
              list-style: none;
              margin: 0;
              padding: 0;
              position: fixed;
              min-width: auto;
              border: none;
              box-shadow: 1px 1px 5px 1px #d2d2d2;

              &:focus {
                outline: none;
              }

              .folderActionsMenuItem {
                border-bottom: 1px solid #E0E0E0;
                margin: 0;
                cursor: pointer;
                display: block;
                text-align: left ~'; /** orientation=lt */ ';
                text-align: right ~'; /** orientation=rt */ ';
                padding: 10px;

                &:last-child {
                  border-bottom: none;
                }

                i {
                  margin-right: 5px ~'; /** orientation=lt */ ';
                  margin-left: 5px ~'; /** orientation=rt */ ';
                  width: 20px;
                }
                &:hover{
                  i,span {
                    color: #ffffff;
                  }
                  background-image: linear-gradient(to bottom, @primaryColor, @primaryColor);
                }

                &.disabled {
                  cursor: not-allowed;
                }
              }
            }
          }

          .categorizedDrives {
            .drivesList {
              padding: 0;

              .categories > .v-list-group__header {
                display: none;
              }
            }

            .category {
              .v-list-group__header__prepend-icon {
                margin: 0;
                align-self: center;

                .v-icon {
                  color: #c3cad6 !important;
                  transform: rotate(270deg);
                }
              }

              &Content {
                padding: 0;
                color: #c3cad6;

                &:after {
                  content: '';
                  display: inline-block;
                  vertical-align: middle;
                  width: 100%;
                  margin-right: -100% ~'; /** orientation=lt */ ';
                  margin-left: 10px ~'; /** orientation=lt */ ';
                  margin-left: -100% ~'; /** orientation=rt */ ';
                  margin-right: 10px ~'; /** orientation=rt */ ';
                  border-top: 1px solid #efefef;
                }
              }

              &Active {
                &::before, :hover::before {
                  display: none;
                }

                .v-list-group__header__prepend-icon > .v-icon {
                  transform: rotate(0);
                }
              }
            }
          }
        }

        .attachActions {
          bottom: 10px;
          position: absolute;
          right: 0;
          left: 0;

          .buttonActions {
            display: flex;
            flex-direction: row-reverse;
            border-top: 1px solid #efefef;
            padding: 10px 10px 0 0;

            button {
              margin: 0 5px;
            }
          }
        }
      }
    }
  }


  .btnActions {
    float: right ~'; /** orientation=lt */ ';
    float: left ~'; /** orientation=rt */ ';
    margin-right: 10% ~'; /** orientation=lt */ ';
    margin-left: 10% ~'; /** orientation=rt */ ';
    margin-top: -20%;
  }

  .btnCancel {
    border: 1px solid #568cc9 !important;
    color: #568cc9 !important;
    margin-right: 4px ~'; /** orientation=lt */ ';
    margin-left: 4px ~'; /** orientation=rt */ ';
    text-transform: uppercase !important;
    font-size: 13px;
  }

  .btnSelect {
    text-transform: uppercase;
    font-size: 13px;
  }


  .destinationFolder {
    display: flex;
    flex-direction: row;
    margin-left: 15px ~'; /** orientation=lt */ ';
    margin-left: 15px ~'; /** orientation=rt */ ';
    color: #a8b3c5;
    margin-bottom: 10%;

    .folderLocation {
      width: 100%;
      display: flex;
      flex-direction: row;
      border-bottom: 1px solid #a8b3c5;;

      > p {
        margin-bottom: 0px;
      }

    }

    .drive {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      cursor: pointer;
      margin-bottom: 0px;
    }

    .colorIcon {
      color: #a8b3c5;
    }

    .folder {
      flex-direction: row;
      display: flex;

      > p {
        margin-bottom: 0px;
      }
    }

    .folderName {
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
      width: 95%;
      margin-bottom: 0px;

    }

    .active {
      color: #578cc9;
      font-weight: bold;
      width: min-content;
    }

    .path {
      color: #578cc9;
      font-weight: bold;
      width: 90%;
    }

    .selectFile {
      width: 100%;
      border-bottom: 1px solid #a8b3c5;

      > p {
        margin-bottom: 0px;
      }
    }

    .uiIconFolder {
      cursor: pointer;
    }

    .disabled {
      cursor: pointer;
      color: #a8b3c5;
    }
  }

  @media screen and (max-width: 630px) {
    #exoAttachmentsApp {
      .dropFileBox {
        height: 150px;

        .contentOR {
          display: none;
        }

        .contentDrop {
          padding: 35px 1px 1px;
        }

        .contentDrop {
          display: none;
        }

        .contentUpload {
          display: flex;
          flex-direction: row;
          width: 100%;

          .uploadButton {
            display: inline-block;
            width: 100%;

            .colorIcon {
              padding-top: 0;
            }

            .text {
              padding: 8px;
            }
          }
        }

        .lastContent a {
          align-items: flex-end;
        }
      }
    }
  }

  @media screen and (max-width: 959px) {
    .attachments .content.serverFiles .serverFiles .contentBody {
      min-height: 259px;
    }
  }

  @media screen and (max-width: 1024px) {
    .attachments .content.serverFiles .serverFiles .contentBody .selectionBox .folderSelection {
      margin: 0 7px;
    }
  }
}

/** Attachments composer plugin **/

.activityComposerApp {
  .drawer {
    .content {
      .VuetifyApp {
        .attachmentsList {
          display: flex;
          align-items: center;

          .attachedFiles {
            margin-left: 3% ~'; /** orientation=lt */ ';
            margin-right: 3% ~'; /** orientation=rt */ ';
          }

          .uiIconAttach {
            top: -1px;
            color: #333;
          }

          .v-progress-circular {
            svg {
              color: transparent;

              circle {
                color: #FFF;
              }
            }

            &.uploading {
              svg {
                circle {
                  color: #476A9C;
                }
              }
            }
          }
        }
      }
    }
  }
}

.attachmentsAlert {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  font-size: 15px;
  background: #abc6e4;
  border-radius: 10px;
  max-width: 82%;
}

