@import "./variables.less";

.VuetifyApp {
  .v-application
    .my-10px {
      margin-top: 10px !important;
      margin-bottom: 10px !important;
    }
    .v-alert__content {
       padding-right: 10px !important;
  }
  .documents-application {
    .v-alert {
      z-index: 9999;
    }
    .documents-tree-item .documents-breadcrumb-element {
      .v-btn__content {
        overflow: hidden;
        flex: 1 1 auto;
      }
    }
    .tableOverlayed{
      opacity: 0.33;
    }
    .uploadOverlay{
      position: absolute;
      width: -webkit-fill-available;
      width: -moz-available;
      height: -webkit-fill-available;
      height: -moz-available;
      background: #7070701A 0% 0% no-repeat padding-box;
      border: 2px dashed #5F708A80;
      border-radius: 5px;
      opacity: 1;
      z-index: 200;
      margin-right: 12px;
      margin-bottom: 12px;
      .documents-upload-body {
        height: 500px;
        .uploadText {
          font-size: 24px;
          color: #5F708A;
        }
        .uploadIcon {
          color: #5F708A;
        }
      }
    }
    .fill-available{
      width: -webkit-fill-available;
      width: -moz-available;
    }
    .driveFolderIcon {
      color: @primaryColorDefault;
      font-size:22px;
    }
    .driveFolderContentIcon {
      color: @baseBackgroundDefault;
      font-size: 9px;
      position: relative;
      right: 18px;
      bottom:4px;
    }
    .mobileDrawer{
      top: auto !important;
      height: auto !important;
      bottom: 0px;
      position: fixed !important;
      width: 100% !important;
    }
    .inputSpaceName {
      box-shadow: none!important;
      border: none!important;
      .v-input__prepend-outer {
        margin-top: 8px;
        i {
          color: @primaryColor;
          font-size: 18px;
        }

      }
      .v-input__control {
        min-height: 27px!important;
        height: 27px;
        > .v-input__slot {
          box-shadow: none!important;
          padding: 0!important;
          .v-select__slot {
            label {
              color: @greyColorLighten1;
            }
            .v-select__selections {
              max-width: 90%!important;
            }
          }
        }
        .v-input__append-inner {
          display: none;
        }
      }
    }
    .closeIcon {
      border-radius: 50%;
      top: 35px;
      left: 10px;
    }

    .searchIcon {
      top: 20px;
      left: 9px;
    }

    .extendFilterButton {
      text-align: center;
      cursor: pointer;
      color: var(--allPagesPrimaryColor, #476A9C);
      .extendIcon{
        color: var(--allPagesPrimaryColor, #476A9C);
        }
    }

    .folderBreadcrumb {
      .drawerContent {
        .v-treeview-node__root {
          &:hover {
            .v-list-item__title {
              font-weight: bold;
              color: @primaryColor!important;
            }
          }
        }
      }
    }
    .document-tree-items {
      max-width: 100% !important;
      width: 100% !important;
  
      .document-tree-item {
        .path-clickable {
          max-width: 97% !important;
  
          &:hover {
            color: @primaryColor !important;
          }
        }
      }
    }

    .documents-breadcrumb-wrapper {
      max-width: 100% !important;
      #breadCrumb-link-move {
        font-size: 12px !important;
      }
    }

    .documentViewTabs {
         .v-tab.v-tab--active {
           border: 1px solid var(--allPagesPrimaryColor, #476A9C) !important;
           background-color: var(--allPagesTabNormalLinkBackground, #f0f4f7) !important;
           .tabIcon{
             color: var(--allPagesPrimaryColor, #476A9C) !important;
             }
         }
         .v-tabs-slider-wrapper {
           display: none;
         }
      .v-tabs-bar {
        height: auto!important;
        .tabIcon{
          font-size: 16px;
          color: @greyColorLighten1 !important;
          padding-right: 8px;
        }
        .mobile {
          padding-right: 0px!important;
        }
        .firstTab {
          border: 1px solid @borderColor;
          border-radius: 5px 0 0 5px;
          height: 40px;
          min-height: 40px;
          min-width: 40px;
        }
        .middleTab {
          border: 1px solid @borderColor;
          border-radius: 0;
          height: 40px;
          min-height: 40px;
          min-width: 40px;
        }
        .lastTab {
          border: 1px solid @borderColor;
          border-radius: 0 5px 5px 0;
          height: 40px;
          min-width: 40px;
          min-height: 40px;
        }
      }
    }
    .documents-header-filter-container {
      padding-bottom: 2px !important;
      .filter-active-button{
        border: 1px solid @primaryColorDefault !important;
        color:  @primaryColorDefault !important;
        background-image: none !important;
        text-shadow: none !important;
        box-shadow: none !important;
        font-weight: normal;
        padding: 9px 20px;
        font-size: 15px;
        border-radius: 5px;
        .filterIcon{
          color:  @primaryColorDefault !important;
        }
      }

      .v-input__slot:before {
        border-color: @greyColorLighten1 !important;
      }

      .v-input__prepend-inner {
        margin-bottom: 8px;

        i {
          font-size: 18px;
        }
      }

      .v-text-field__slot {
        margin-bottom: 6px;
      }



      .v-input__icon--append .v-icon {
        font-size: 16px;
      }

      #filterDocumentsSelect {
        height: 38px;
        width: -moz-fit-content;
        width: fit-content;
      }          

    }

    .documents-body {
      min-height: calc(~"100vh - 300px");
      .documents-no-body {
        height: 276px;
      }
      .action-menu-item:hover {
        background-color: #e4e5e7;
      }
      .action-menu-item {
        min-height: 30px !important;

        i.v-icon.fa-star {
          padding-right: 8px !important;
        }
        .v-icon.mdi-form-textbox, .v-icon.fa-download  {
          padding-right: 4px;
        }
      }
      .loadingClassMobile {
        table {
          tbody {
            height: 400px;
          }
          colgroup {
            display: none;
          }
        }
      }
      .loadingClass {
        table {
          tbody {
            height: 285px;
          }
          colgroup {
            display: none;
          }
        }
      }

      .documents-table,.documents-folder-table {
        tbody {
          tr:hover button.v-icon.mdi-dots-vertical.button-document-action {
            display: flex !important;
          }
          tr:hover .button-info-details button.v-icon.fa-info-circle {
            display: initial !important;
          }

          td {
            border-bottom: none !important;

            .documentActionMenu {
              top: auto !important;
              left: auto !important;
              transform-origin: left top;
              min-width: 130px !important;
              .menu-list{
                font-size: 13px;
                color: @darkGrey !important;
                .iconStyle {
                  color: @darkGrey !important;
                }
                .dividerStyle {
                  color: @greyColorDefault !important;
                }
              }
            }

            .documentActionMenuMobile {
              top: 2vh !important;
              left: auto !important;
              right: 4vw;
              max-width: none;
              min-width: 187px !important;

              .v-list-item__title {
                flex: initial;
              }
            }
            
            .width-document-title {
              width: 90%;
            }

            .attachment {
              .documentEditName {
                .v-input__slot {
                  padding-right: 4px;
                  height: 35px;
                  min-height: auto !important;
                  .v-input__append-inner {
                    margin-top: 5px;
                  }
                }
              }
              
              .document-title {
                max-width: 100%;
                padding-top: 2px;
              }

              span {
                a {
                  color: @textColor !important;
                  text-decoration-color: @greyColorLighten1;
                  pointer-events: none;
                }

                &:hover {
                  text-decoration-color: @greyColorLighten1 !important;
                  text-decoration-thickness: 2px !important;
                  text-underline-offset: 2px !important;
                }
              }
            }
          }
        }
      }

      .v-data-table__wrapper {
        overflow-x: hidden !important;
      }
      .v-row-group__header {
        background: transparent !important;
      }
    }
    .v-data-table__mobile-row {
      display: unset !important;
    }
    .visibility-btn {
      width: 15px !important;
      height: 15px !important;
    }

    #action-context-menu {
      --mouse-x: 0;
      --mouse-y: 0;
      display: none;
      position: fixed;
      margin: 0;
      left: 0;
      top: 0;
      transform: ~"translateX(min(var(--mouse-x), calc(100vw - 105%))) translateY(min(var(--mouse-y), calc(100vh - 101%)))";
    }

    .is-intersected[data-isfolder="true"] {
      border: 2px dashed #c0bebe !important;
      cursor: move;
    }

    .is-drop-active {
      border: 2px dashed @primaryColor !important;
      cursor: move;
    }

    #breadcrumb-list-items {
      border: 2px solid transparent;
    }

  }
  .documentsTreeSelectorDrawer .inputSpaceName {
    .v-select__selections {
      input {
        min-width: 0 !important;
      }
      
      .identitySuggesterItem {
        max-width: 235px !important;
      }
    }
      
    .v-list-item .identitySuggesterItem {
      max-width: 265px !important;
    }
  }
  
  .DocumentAdvancedFilterDrawer{
    .typeCheckbox {
      i {
        font-size: 24px;
      }

      label {
        margin-left: 12px;
      }
    }

    .selected-period-input {
      .v-input__slot {
        margin: 4px 0 0;
      }
    }
    .time-picker {
      display: inline;
      min-width: auto !important;
      width: auto !important;
      margin: 0;
      padding: 0;
    }
    .date-time-selection {
      letter-spacing: 0px !important;
      white-space: nowrap;
    }
    .period-selection {
      box-sizing: border-box;
      .v-btn {
        width: 33%;
        box-sizing: border-box;
        border: 0 !important;
      }
    }
    .selected-period-menu-content {
      max-width: 360px !important;
    }
    .sizeValue {
      max-width: 100px;
    }
    .v-list-item{
      min-height: 39px !important;
    }
    .v-list-item__content{
      padding: 0  !important;
    }
  }

  .documents-application.mobile {
    margin-top: 0;
    .documents-no-body {
      height: 370px;
    }

    .documents-header-left-actions {
      min-width: 100px;
    }

    .documents-header-right-actions {
      min-width: 100px;
    }

    .documents-header-filter-container {
      padding-bottom: 2px !important;
      .v-input__prepend-inner {
        i {
          font-size: 16px;
        }
      }

      #filterDocumentsSelect {
        width: 60px;
      }
    }

    .v-data-table__wrapper {
      padding-bottom: 28px;

      .v-row-group__header {
        button {
          padding-left: 4px !important;
        }
      }

      .v-data-table-header-mobile {
        display: none;
      }

      .v-data-table__mobile-row__header {
        display: none;
      }

      .v-data-table__mobile-table-row > :nth-child(2) {
        padding-right: 0px ~'; /** orientation=lt */ ';
        padding-right: 46px ~'; /** orientation=rt */ ';
        padding-left: 46px ~'; /** orientation=lt */ ';
        padding-left: 0px ~'; /** orientation=rt */ ';
      }

      .v-data-table__mobile-table-row > :last-child {
        padding: 0;
        margin: 0;
      }

      .v-data-table__mobile-row__cell {
        text-align: left;
        .attachment {
          i {
            width: 7vw;
          }

          .document-title {
            width: 56vw !important;
          }
        }
      }

      .v-data-table__mobile-table-row {
        display: block !important;

        .document-time {
          text-align: left;
          margin-left: 16px;
          font-size: 12px;
        }
      }
    }
  }

  .custom-list-item-min-height {
    min-height: 40px !important;
  }

  .document-mobile-alert-progress {
    top: -16px;
    width: 110.2%;
    left: -16px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px
  }
}


@media (max-width: 1024px) {
  .maskLayer .uiDocumentPreview .fileContent {
    background: black !important;
    width: 90% !important;
  }
}

@media screen and (max-width: 599px) {
  #switchToOldDocuments {
    font-size: 12px;
  }

  .documentEditName {
    width: 206px;
  }

  .documents-body {
    border: 2px solid transparent;

    .mobile-menu-item {
      min-height: 48px !important;
      .v-icon {
        color: @darkGrey !important;
        width: 28px!important;
        height: 28px!important;
      }
    }
  }

}
@media screen and (max-width: 360px) {
  .documentEditName {
    width: 179px;
  }
}

@media screen and (max-width: 979px) and  (min-width: 960px){
  .documents-alert {
    margin-bottom: 60px !important;
  }
}

.documents-alert-mobile {
  border-left: none !important;
  align-self: center;
  left: inherit !important;
  margin-bottom: 70px !important;
  z-index: 1041 !important;
}

  /* switch */
.newAppSwitch {
  .switch {
    position: relative;
    display: inline-block;
    width: 53px;
    height: 25px;
    top: 0.4rem;
  }

  .switch input {
    display: none;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    overflow: hidden;
    top: 5px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 45px;
    height: 20px;
    background-color: #c5c5c5;
    -webkit-transition: 0.4s;
    transition: 0.4s;
  }

  .slider:before {
    position: absolute;
    z-index: 2;
    content: "";
    height: 14px;
    width: 14px;
    left: 5px;
    bottom: 3px;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    -webkit-transition: 0.4s;
    transition: all 0.4s ease-in-out;
  }

  input:not(:checked) + .slider > .absolute-activate {
    z-index: -1;
    position: absolute;
    -webkit-transform: translateX(-190px);
    -ms-transform: translateX(-190px);
    transform: translateX(-190px);
    left: 2px;
    color: #fff;
    text-align: right;
    font-size: 9px;
    width: calc(100% - 40px);
    line-height: 22px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
  }

  input:checked + .slider > .absolute-activate {
    -webkit-transform: translateX(0px);
    -ms-transform: translateX(0px);
    transform: translateX(0px);
    z-index: 15;
    position: absolute;
    left: 2px;
    color: #fff;
    text-align: right;
    font-size: 9px;
    width: calc(100% - 40px);
    line-height: 22px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
  }

  .slider:after {
    position: absolute;
    left: -20px;
    z-index: 1;
    content: "";
    font-size: 13px;
    text-align: left !important;
    line-height: 19px;
    padding-left: 0;
    width: 95px;
    height: 26px !important;
    color: #f6f7fa;
    background-color: #477ab3;
    background-image: -moz-linear-gradient(top, #476A9C, #2f5e92);
    background-image: -webkit-gradient(
      linear,
      0 0,
      0 100%,
      from(#476A9C),
      to(#2f5e92)
    );
    background-image: -webkit-linear-gradient(top, #476A9C, #2f5e92);
    background-image: -o-linear-gradient(top, #476A9C, #2f5e92);
    background-image: linear-gradient(to bottom, #476A9C, #2f5e92);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff578dc9', endColorstr='#ff2f5e92', GradientType=0);
    -webkit-box-shadow: inset 0px 3px 5px #476A9C;
    -moz-box-shadow: inset 0px 3px 5px #476A9C;
    box-shadow: inset 0px 3px 5px #476A9C;
    -webkit-border-top-left-radius: 9px;
    -moz-border-radius-topleft: 9px;
    border-top-left-radius: 9px;
    -webkit-border-bottom-left-radius: 9px;
    -moz-border-radius-bottomleft: 9px;
    border-bottom-left-radius: 9px;
    height: 57px;
    border-radius: 100px;
    background-color: #476A9C;
    -webkit-transform: translateX(-190px);
    -ms-transform: translateX(-190px);
    transform: translateX(-190px);
    transition: all 0.4s ease-in-out;
  }

  input:checked + .slider:after {
    -webkit-transform: translateX(0px);
    -ms-transform: translateX(0px);
    transform: translateX(0px);
    padding-left: 25px;
  }

  input:checked + .slider:before {
    background-color: #ffffff;
    -webkit-transform: translateX(38px);
    -ms-transform: translateX(38px);
    transform: translateX(38px);
  }

  input:checked + .slider:before {
    -webkit-transform: translateX(38px);
    -ms-transform: translateX(38px);
    transform: translateX(23px);
  }

  /* Rounded sliders */
  .slider.round {
    border-radius: 100px;
  }

  .slider.round:before {
    border-radius: 50%;
  }

  .absolute-deactivated {
    position: absolute;
    left: 19px;
    color: #4d5466;
    text-align: right;
    font-size: 8px;
    width: calc(100% - 30px);
    line-height: 30px;
    cursor: pointer;
  }

  @media (min-width: 1280px) {
    .switchPosition {
      float: right;
    }
  }

  @media (max-width: 1279px) {
    .switchPosition {
      text-align: center;
      margin-bottom: 12px !important;
      justify-content: center;
    }
  }

  .labelStyle {
    font-size: 21px !important;
  }
}

.documentActionMenu {
  min-width: 130px !important;

  .v-list {

    .v-list-item:not(.v-list-item--disabled) {
      .iconStyle {
        color: @darkGrey !important;
      }
    }

    .v-list-item--disabled {
      .iconStyle {
        color: #00000061 !important;
      }
    }

    .dividerStyle {
      color: @greyColorDefault !important;
    }
  }

  .action-menu-item:hover {
    background-color: #e4e5e7;
  }

  .action-menu-item {
    min-height: 30px !important;
  }
}

.publicDocumentOptionsDrawer {
  .document-radio-button {
    .v-input--selection-controls__input i {
      font-size: 20px !important;
    }
  }
}

#documents-drag-tooltip {
  border: 1px solid @primaryColor;

  .text-tooltip {
    margin-top: 2px;
  }

  span {
    font-family: @fontFamily;
    color: @textColorDefault;
    padding-left: 8px ~'; /** orientation=lt */ ';
    padding-right: 8px ~'; /** orientation=rt */ ';
  }
}

.chevron-icon {
  width: 22px;
  height: 22px;
}
 
.disable-pointer-event {
  pointer-events: none;
 }

 .document-location {
  white-space: wrap;
 }

.add-document-menu-items .action-menu-item .icon-menu {
  width: 28px;
}

 
