.cmf-firework {
  position: fixed;
  top: 0;
}

.total-pipeline-sum {
  margin-bottom: 20px;
  font-size: 16px;

  .caption {
    font-weight: 500;
  }
}

.statuses-column {
  padding-bottom: 10px;
}

.wrapper-example-list {
  height: 100%;
}

.example-list {
  display: block;
  height: 100%;
  min-height: 100%; // как и у example-container
}

.example-box {
  cursor: pointer;

  box-sizing: border-box;
  width: 240px;
  margin-right: auto;
  margin-bottom: 6px;
  margin-left: auto;

  font-size: 14px;
  color: rgb(0 0 0 / 87%);

  background: var(--color-gray-fff);
  border: solid 1px #ccc;
  border-radius: 4px;
  box-shadow: 1px 3px 1px -2px rgb(0 0 0 / 20%);
}

.cdk-drag-preview {
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 2px 2px 5px 0 rgb(0 0 0 / 20%);
}

.placeholder-column-drop {
  min-height: 100vh;
  margin-right: 10px;
  background-color: rgb(0 0 0 / 10%);

  .counters {
    .status-counter {
      .column-deals-info {
        margin: 5px 0;
        font-size: 12px;
        color: #a1a1a1;
        text-align: center;
      }
    }
  }
}

.placeholder-card-drop {
  box-sizing: border-box;
  min-width: 240px;
  max-width: 240px;
  min-height: 134px;
  margin-right: 5px;
  margin-bottom: 6px;
  margin-left: 7px;

  background-color: rgb(0 0 0 / 10%);
  border-radius: 4px;
}

.cdk-drag-placeholder {
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.empty {
  text-align: center;
  opacity: 0.6;
}

.empty:hover {
  opacity: 1;
}

.cmf-uwork-kanban-component {
  width: -webkit-fill-available;
}

.loading-block {
  position: relative;
  margin-top: 6px;

  mat-spinner {
    position: absolute;
    left: 50%;
    margin: 0 auto;
    margin-left: -32px;
  }

  & ::ng-deep .mat-progress-spinner circle,
  .mat-spinner circle {
    stroke: #1877f2;
  }
}

.kanban-status-list {
  /* spec0 так нельзя position: absolute;
  height: calc(100% + 80px);example-container
  display: flex;
  position: absolute;
  flex-direction: row;
  width: 100%;
  */
}

.kanban-statuses {
  display: flex;
}

.header:hover .drag-indicator {
  display: block;
}

.status-toolbar {
  position: absolute;
  top: -4px;
  right: 0;
  display: block;
}

.scroll-left,
.scroll-right {
  position: absolute;
  z-index: 100;
  width: 20px;
  height: 100vh;
}

.scroll-right {
  right: 0;
}

.scroll-left {
  left: 10%;
}

.add-button-icon {
  cursor: pointer;

  position: relative;
  top: 15px;
  right: 7px;

  width: min-content;
  height: min-content;
}

.more-icon {
  position: absolute;
  top: 5px;
  right: 6px;
}

.drag-indicator {
  cursor: move;
  position: relative;
  top: 5px;
  left: -6px;
}

.status-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;

  margin-right: 15px;

  -webkit-line-clamp: 1;
}

.add-button button {
  top: 5px;
  left: -30px;
}

.empty-img {
  max-width: 165px;
}

.statuses-wrap {
  height: calc(100vh - 115px);
}

.kanban-statuses-closed {
  display: flex;
  justify-content: space-around;

  box-sizing: border-box;
  width: 100%;
  max-height: 110px;
  padding: 8px 16px;

  background: rgb(247 247 247);
  box-shadow:
    rgb(0 0 0 / 10%) 0 1px 8px 0,
    rgb(0 0 0 / 6%) 0 3px 3px -2px,
    rgb(0 0 0 / 5%) 0 3px 4px 0,
    rgb(0 0 0 / 16%) 0 0 2px 0;
}

.kanban-close-status {
  display: flex;
  flex-basis: 100%;
  flex-grow: 0;

  margin-right: 4px;
  margin-left: 4px;

  text-transform: uppercase;

  -webkit-box-flex: 0;
}

.bottom {
  position: fixed;
  z-index: 2001;
  bottom: 0;

  display: block;

  width: calc(100% - 220px);
  margin: 0;
  padding: 0;

  visibility: hidden;
  background-color: #f7f7f7;
}

.open-closed-won {
  .open {
    transform: rotate(180deg);
  }

  app-cmf-icon {
    position: sticky;
    top: 0;
    padding-top: 16px;
  }
}

.scroll-container {
  user-select: none;
  overflow: auto;
  height: calc(100vh - 160px);
  visibility: hidden;

  &.visible {
    visibility: visible;
  }
}

.wrap {
  display: block;
}

.example-container {
  position: relative;

  display: inline-block;
  flex: 1;

  width: 250px;
  min-height: 100%;
  margin-right: 10px;

  vertical-align: top;
}

.counters {
  position: sticky;
  z-index: 1;
  top: 32px;

  padding: 5px 0;

  background: var(--color-gray-fff);
}

.column-deals-info {
  font-size: 12px;
  color: #a1a1a1;
  text-align: center;
}

.headers {
  position: sticky;
  z-index: 1001;
  top: 0;

  display: flex;

  height: min-content;
}

.header-statuses-closed {
  max-width: 255px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px;

  font-weight: 500;
  text-align: center;
}

.action-drop-area {
  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  width: 100%;

  color: rgb(116 118 120);

  background: initial;
  border: 2px dashed rgb(220 221 221);
  border-radius: 2px;

  -webkit-box-align: center;
  -webkit-box-pack: center;

  .cdk-drag-placeholder {
    position: absolute;
  }
}

.header {
  position: sticky;
  z-index: 1;
  top: 0;

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

  min-width: 250px;
  max-width: 255px;
  height: 32px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px;

  font-weight: 500;
  color: #fff;

  &.not-triggered {
    cursor: pointer;
    color: #e3561b;
    background-color: var(--color-gray-fff);
  }

  &.triggered {
    height: 34px;
    padding-top: 3px;
    background-color: #ebecf0;
    border-radius: 5px;
  }

  .add-colomn-wrapper {
    display: flex;

    .add-colomn-input {
      width: 100%;
      padding: 4px 15px;

      font-weight: 400;

      background: var(--color-gray-fff);
      border: 1px solid #dfdfdf;
      border-radius: 5px;
      outline: none !important;

      &:focus {
        border: 1px solid #2b6ed9;
        border-radius: 4px;
      }
    }
  }

  .header-add-btn {
    position: absolute;
    top: 34px;
    left: 0;

    height: 24px;
    margin-top: 4px;
    margin-left: 1px;

    line-height: 24px;
    color: white;

    background-color: #b2b2b2;

    &.bg-green {
      background-color: #27ae60;
    }
  }

  .change-color-box {
    cursor: pointer;

    position: relative;
    top: 1px;
    right: -17px;

    width: 15px;
    height: 100%;
    min-height: 15px;
  }
}

.example-container:first-child.automation-show {
  .header,
  .automation-show-card {
    z-index: 20;
  }

  .automation-show-card {
    cursor: auto;

    position: absolute;
    top: 0;
    left: 250px;

    display: block;

    width: 280px;
    margin-left: 5px;
    padding: 20px;
    padding-bottom: 10px;

    font-size: 1.17em;
    font-weight: 500;
    color: var(--theme-hack-color, #252423);

    background-color: var(--color-gray-fff);
    border-radius: 7px;

    .automation-show-card-subscription {
      margin: 5px;
      text-align: center;
    }

    .close-button {
      margin-top: 5px;

      font-size: 14px;
      font-weight: 600;
      color: #e3561b;

      background-color: var(--color-gray-fff);
      border: 1px solid #e3561b;
      border-radius: 7px;
    }

    .close {
      cursor: pointer;

      position: absolute;
      top: 8px;
      right: 8px;

      display: flex;
      align-items: center;

      color: #8c8c8c;

      span {
        padding-left: 10px;
      }
    }
  }
}

.automation-show-card {
  display: none;
}

.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-pipeline-kanban {
  .scroll-container#scroll-container {
    .simplebar-track.simplebar-horizontal {
      height: 25px;

      .simplebar-scrollbar {
        height: 20px;

        &::before {
          opacity: 0;
        }
      }
    }

    &.bottom-scroll-visible {
      .simplebar-track.simplebar-horizontal {
        .simplebar-scrollbar {
          &::before {
            opacity: 0.7;
          }
        }
      }
    }
  }
}

.add-triggers {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 250px;
  height: 30px;
  margin-top: 10px;
  margin-bottom: 5px;

  font-size: 14px;
  font-weight: 400;
  color: #e3561b;

  background-color: var(--color-gray-fff);
  border-radius: 7px;

  &.open {
    color: #2b2b2b;
    border: none;
  }
}

.trigger-wrapper {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  width: 250px;
}

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

.add-trigger-item {
  margin: 5px 5px 5px 15px;
}

.actions-buttons {
  display: flex;
  justify-content: flex-end;
  margin-right: 5px;
  opacity: 0;

  .delete-icon-button {
    cursor: pointer;
    margin: 5px;
  }
}

.visible {
  opacity: 1;
}

.helper-full {
  justify-content: space-between;
  color: #2b2b2b;

  .full-mesage {
    position: relative;
    bottom: 5px;

    display: flex;
    align-items: center;

    margin-left: 20px;

    font-size: 16px;
  }

  .full-action {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    margin-top: 5px;
    margin-right: 10px;
    margin-left: 10px;

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

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

      .indicator-text {
        font-size: 12px;
        color: #bfbfbf;
      }
    }

    .icons-wrapper {
      display: flex;
      justify-content: flex-end;
      margin-top: 5px;

      .icon {
        cursor: pointer;
      }
    }
  }
}
