.fs-12 {
  font-size: 12px;
}

.grid-wrapper {
  margin-left: -16px;
}

.taps-wrapper {
  position: relative;
  margin: 0 -2.688rem;
  .search-holder {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 340px;
    max-width: 340px;
    padding-right: 2.688rem;
  }
  .grid-nav-tabs {
    position: relative;
    top: 8px;
    padding-right: 320px;
    padding-left: 2.688rem;
    margin-bottom: 0;
  }
  .tab-content {
    padding: 1.25rem 2.688rem;
    margin-top: 40px;
    border-top: 2px solid #eaebef;
  }
  .search-wrapper {
    padding: 0 10px;
    background-color: var(--#{$variable-prefix}background-white);
    border: 1px solid var(--#{$variable-prefix}input-floating-border);
    border-radius: 6px;
    gap: .6rem;
    &:focus-within {
      color: var(--#{$variable-prefix}dark-text-color);
      background-color: var(--#{$variable-prefix}background-white);
      border-color: rgba(var(--#{$variable-prefix}primary-color), .75);
      border-width: 2px;
      outline: 0;
      box-shadow: 0 0 0 6px rgba(var(--#{$variable-prefix}primary-color), .07);
    }
    input {
      padding: 0 20px 0 0;
      border: 0;
      &:focus {
        box-shadow: none;
      }
    }
    .btn-clear {
      z-index: 1;
    }
  }
}

.search-tag-wrap {
  display: flex;
  align-items: center;
  gap: .4rem;
  .tag-badge {
    span {
      font-size: .625rem;
      color: #404652;
    }
  }
}

.file-type-dropdown {
  position: absolute;
  top: 50%;
  right: .875rem;
  transform: translateY(-50%);
  &.show {
    .drop-arrow {
      svg {
        transform: rotate(180deg);
      }
    }
  }
  .drop-arrow {
    cursor: pointer;
    svg {
      width: 14px;
    }
  }
  .dropdown-menu {
    transform: translate(14px, 40px) !important; /* stylelint-disable-line declaration-no-important */
    .file-type-title {
      font-size: 10px;
      color: #6d6d71;
      text-transform: uppercase;
      cursor: default;
      &:hover,
      &:focus {
        background-color: transparent;
      }
    }
  }
}

.grid-insert-files {
  [data-row-index] > div {
    padding: 0 15px;
    margin: 0;
  }
  .rgt-cell {
    .text-content {
      max-width: 600px;
    }
  }
}

.rgt-border-line-left {
  &:first-child {
    &::before {
      display: none;
    }
  }
}

.insert-document-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  color: var(--#{$variable-prefix}dark-text-color);
  letter-spacing: 0;
  opacity: 1;
}

.grid-docs-height {
  height: inherit !important; /* stylelint-disable-line declaration-no-important */
  min-height: inherit !important; /* stylelint-disable-line declaration-no-important */
  max-height: 260px;
  margin-bottom: 20px;
}

.insert-files-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 20px;
}

.insert-button-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}

.custom-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: .5rem;
  li {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #1b1c21;
    + {
      li {
        &::before {
          display: inline-block;
          padding: 2px;
          margin-right: .5rem;
          content: "";
          border: solid #6d6d71;
          border-width: 0 1px 1px 0;
          transform: rotate(-45deg);
        }
      }
    }
    a {
      font-weight: 600;
      color: #666;
      text-decoration: none;
      &:hover {
        color: #1b1c21;
      }
    }
  }
}

.grid-tabs-none {
  .nav-link {
    pointer-events: none;
    &.active {
      color: #6d6d71;
      border-color: transparent;
    }
  }
}

.upload-files-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaebef;
    gap: 1rem;
  }
}

.upload-files-info {
  display: flex;
  align-items: center;
  gap: .938rem;
  svg {
    width: 24px;
    height: 24px;
  }
  h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #1b1c21;
  }
}

.upload-files-progress {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  .progress-wrap {
    width: 120px;
  }
  .close-links {
    color: #1b1c21;
  }
}

.grid-icons-type {
  svg {
    width: 24px;
    height: 24px;
  }
}

.rgt-cell-files_customize{
  justify-content: center;
  .btn-sm{
    opacity: 0;
    visibility: none;
    pointer-events: none;
  }
  &.rgt-row-hover{
    .btn-sm{
      opacity: 1;
      visibility: visible;
      pointer-events: all;
    }
  }
}
