a.toolbar-item {
  overflow: hidden;
  flex: 1 1 auto;

  font-size: 15px;
  font-weight: 500;
  color: var(--user-sidebar-color, var(--menu-item-color));
  text-decoration: none;
}

.selected {
  &.toolbar-item-link-wrapper a {
    color: var(--menu-color-active);
  }
}

.toolbar-item-text {
  word-break: break-word;
}

.more-icon {
  cursor: pointer;
  display: flex;
  margin-right: 10px;
  opacity: 0;
}

.toolbar-item-link-wrapper {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-right: 10px;
  margin-bottom: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 30px;

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

  &:not(.pipeline) {
    padding-left: 71px;
  }

  &:not(:hover) {
    transition: 0.7s;
  }

  &.pipeline {
    padding-left: 28px;
  }

  .pipeline-icon {
    margin-right: 10px;
  }

  .add-integration-title {
    cursor: pointer;
    font-size: 15px;
    color: #a1a1a1;
  }

  .add-integrations-button {
    cursor: pointer;
    display: flex;
    align-items: center;

    .integration-img-wrapp {
      display: flex;
      align-items: center;
      justify-content: center;

      width: 30px;
      height: 30px;
      margin-left: 10px;
      padding: 2px;

      &:first-child {
        margin-left: -2px;
      }

      .integration-img {
        width: 100%;
        height: 100%;
      }
    }

    .add-button-icon {
      margin-left: 10px;
    }
  }

  .open-automation-popup {
    cursor: pointer;

    display: flex;
    align-items: center;

    font-size: 15px;
    color: #a1a1a1;

    .automation-icon {
      margin-right: 5px;
    }
  }
}

.spacer {
  margin-bottom: 10px;
}

.margin-top-10 {
  margin-top: 10px;
}

.fd-column {
  flex-direction: column;
  align-items: unset;
}

.toolbar-item-img {
  margin-right: 28px;
}

.toolbar-item-wrapper {
  margin-top: 16px;
}

.toolbar-wrapper {
  display: flex;
  flex-grow: 1;
  background: var(--app-bg-image);
  background-color: var(--color-gray-fff);

  .toolbar {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 12%;
    min-width: 223px;
    padding-top: 20px;

    .toolbar-item-wrapper {
      display: flex;
      flex-direction: column;
      margin-bottom: 10px;
      padding-left: 22px;

      &:first-child {
        .toolbar-item-link-wrapper {
          padding-left: 50px;

          &.pipeline {
            padding-left: 27px;
          }
        }
      }

      .gray-line {
        width: 90%;
        height: 1px;
        margin-bottom: 25px;
        border-bottom: 1px solid #dfdfdf;
      }
    }
  }
}

.head {
  margin-top: 25px;
  padding: 0 20px;

  .row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;

    .search {
      display: flex;
      align-items: center;
      width: 70%;
      margin-left: 25px;

      input {
        width: 50%;
        padding: 6px 15px 7px;
        border: 1px solid rgb(39 39 66);
        border-radius: 0;
      }
    }

    .search-button {
      padding: 5px 5px 0;

      color: #fff;

      background-color: rgb(39 39 66);
      border: none;
      border-radius: 0;
    }

    .actions-head {
      margin-right: 25px;
      color: #a1a1a1;
    }
  }
}

.main {
  width: 100%;
  height: calc(100vh - 180px);

  &.crm-object-window {
    height: calc(100vh - 45px);
    padding: 0;

    &.displaced {
      height: calc(100vh - 95px); // delme
    }
  }

  &#scroll-container {
    overflow: auto;
    height: calc(100vh - 45px);

    &.displaced {
      height: calc(100vh - 95px); // delme
    }
  }
}

.layer {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;

  display: none;

  width: 100%;
  height: 100%;

  background: rgb(0 0 0 / 50%);

  &.show {
    display: block;
  }
}

:host::ng-deep .cmf-crm-main {
  &.helper .simplebar-mask {
    position: unset;

    .headers {
      position: unset;
    }
  }
}
