.wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh; // delme
  padding-right: 30px;

  .projects-list-title {
    margin: 30px 0;
  }

  // TODO: Хак для темы Jira / Confluence Убрать после рефакторинга верстки контейнеров в project, desk
  &.displaced {
    height: calc(100vh - 55px); // delme
  }
}

.projects-wrapper {
  border-bottom: 1px solid var(--color-gray-eee);
}

.items-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;

  .filter {
    cursor: pointer;

    display: flex;
    gap: 5px;
    align-items: center;

    max-width: 250px;
    height: 100%;
    padding: 0 10px;

    color: var(--color-gray-666);

    background-color: var(--color-gray-eee);

    .filter-type-list {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .filter-type-title {
      margin-right: 2px;
      font-weight: 600;
    }
  }

  .create-project-button {
    margin-left: auto;
  }
}

.table-header {
  min-height: 30px;
  font-weight: 600;
  color: #939393;
  border-bottom: 1px solid var(--color-gray-eee);

  .item__project {
    display: flex;
    gap: 5px;
    align-items: center;
    padding-left: 22px;

    .title {
      cursor: pointer;
      user-select: none;
    }
  }

  &:hover {
    .arrow-icon {
      opacity: 1;
    }
  }
}

.projects-list {
  padding-left: 7px;

  &.disabled {
    pointer-events: none;
  }

  &:hover {
    background-color: var(--theme-hack-bg2-color, #fbfbfb);
  }
}

.more-menu-item {
  cursor: pointer;

  display: flex;
  gap: 10px;
  align-items: center;

  padding: 8px 12px;

  .show-in-menu-checkbox {
    margin: 0;
    accent-color: var(--color-gray-222);
  }
}

.more-icon {
  cursor: pointer;
}

.last-item {
  pointer-events: all;
  justify-content: flex-end;
  margin-right: 25px;
}

.line-project {
  display: grid;
  grid-template-columns: minmax(50px, 1fr) 130px 105px minmax(50px, 1fr) 145px minmax(50px, 1fr) minmax(
      50px,
      1fr
    ) minmax(50px, 0.3fr);
  align-items: center;

  width: 100%;

  /* TODO: хак, чтобы на узких экранах таблица не съезжала */
  min-width: 1155px;
  min-height: 44px;
  padding: 0 10px;

  word-break: break-all;

  &.table-header {
    padding-right: 18px;
  }

  .line-project-name-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    .icon-star {
      cursor: pointer;
    }

    .item__project {
      padding-left: 31px;
    }
  }
}

.filter-icon {
  position: relative;
  top: 2px;
}

.check-icon {
  position: relative;
  top: 4px;
  margin-right: 10px;
}

.search input {
  background-color: var(--color-gray-fff);

  &::placeholder {
    color: var(--theme-hack-color, #fbfbfb);
  }
}

.submenu-search {
  width: 240px;
  padding: 5px 10px;
  border: 1px solid var(--color-gray-eee);

  &::placeholder {
    color: var(--wiki-placeholder-color);
  }
}

.input-wrapper {
  margin: 5px;
}

.item-project-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: calc(100% - 15px);
}

.item-project {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-project-wrapper > .item-project.project-link {
  display: inline-block;
}

.arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;

  &.hidden {
    opacity: 0;
  }

  &.rotated {
    transform: rotateZ(180deg);
  }
}

.paginator-container {
  display: flex;
  margin-right: auto;
}

::ng-deep .mat-menu-panel.projects-list-menu-more {
  min-height: 0;
}
