@use '../../../../common/angular/cmf-ui/widgets/status-dropdown-button/status-dropdown-button.lib.scss' as
  statusDropdownLib;

.mat-list-base .mat-list-item {
  height: 30px;
}

mat-form-field.type-connection {
  width: 300px;
}

mat-form-field {
  margin-right: 20px;
}

.responsible-item {
  margin-left: 5px;
}

mat-card.mat-card {
  border: none;
  box-shadow: none;
  transition: none;
}

.mat-form-field {
  width: 250px;
}

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

.block-list {
  .groups-list-title {
    position: sticky;
    left: 0;

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

    margin-bottom: 16px;

    font-weight: 600;

    .add-task-btn {
      cursor: pointer;
    }
  }

  .groups-wrapper {
    &.strip-top {
      margin-top: -5px;
    }

    &.strip-bottom {
      margin-bottom: -5px;
    }
  }

  .tasks-list-title {
    margin: 5px 0;
    color: #939393;
  }

  .task-card {
    padding: 0;
  }
}

.create-task-form.kanban-mode,
.find-task-form.kanban-mode {
  display: flex;
  gap: 10px;
  align-items: center;

  app-cmf-task-create,
  app-cmf-task-find {
    flex: 1 0 auto;
  }

  .change-menu-add-button {
    flex: none;
  }
}

.add-task-form {
  margin-top: 20px;
}

.create-task-form,
.find-task-form {
  position: relative;
  margin-bottom: 10px;

  .change-menu-add-button {
    cursor: pointer;

    position: absolute;
    bottom: 20px;

    margin-left: 10px;

    font-weight: 500;
    color: #939393;
  }
}

.task-relation-select-wrapper {
  .change-menu-add-button {
    cursor: pointer;

    bottom: 20px;

    margin-left: 10px;

    font-weight: 500;
    color: #939393;
    text-wrap: nowrap;
  }
}

.find-task-form {
  width: 100%;
}

.create-task-form {
  width: 100%;
}

::ng-deep .app-subtask-related-task {
  .blue-loader {
    .mat-progress-spinner circle,
    .mat-spinner circle {
      stroke: #3d87ff;
    }
  }
}

.related-task-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 20px;
}

.detail-item {
  width: 100%;
}

.title-related {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  .title-text {
    margin-left: 10px;
  }

  .icon-related {
    position: relative;
    top: 4px;
  }
}

.task-relation-select-wrapper {
  display: flex;
  flex-direction: column;

  width: 20%;
  min-width: 20%;
  max-width: 20%;
  margin-right: 10px;
}

.related-task-select {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  height: 50px;
  margin-bottom: 10px;
  padding: 20px 10px 5px;

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

.related-task__select {
  margin-right: 10px;
}

option.option {
  color: #939393;
}

:host ::ng-deep .inline-edit-wrap .inline-edit mat-form-field {
  max-width: 110px;
}

.status-editor {
  display: block;
  width: 100%;
}

.status-badge {
  cursor: pointer;

  display: flex;
  align-items: center;

  height: 16px;
  padding: 0 1px 0 4px;

  font-weight: 700;

  border-radius: 4px;

  span {
    overflow: hidden;
    display: inline-block;

    max-width: 100%;

    font-size: 11px;
    line-height: 14px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &:hover {
    filter: contrast(94%) saturate(1.3);
  }
}

wg-cmf-inline-crud-status {
  max-width: 100%;
}

.button-widget {
  @include statusDropdownLib.workflow-button-mixin;
}

.sort-menu-btn {
  cursor: pointer;
  display: flex;
  align-items: center;

  &.active {
    color: #fff;
    background-color: var(--color-href);
  }

  .sort-menu-btn-icon {
    margin-top: -2px;
    margin-right: 13px;
  }

  app-cmf-doodle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.add-task-btn {
  display: inline-flex;
}

.toolbar {
  &-left {
    display: flex;
    align-items: center;
  }
}

.sort-menu-item {
  display: flex;
  align-items: center;

  &-icon {
    display: flex;
  }

  &-default:hover,
  &:hover {
    background-color: var(--color-gray-fff);
  }

  &-default {
    border-top: 1px solid var(--color-href);
  }
}

.sort-menu-item-selected {
  background-color: var(--color-gray-eee);

  &:hover {
    background-color: var(--color-gray-eee);
  }
}

.hidden {
  display: none;
}

.group-title {
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 20px;

  .titleArrow {
    display: flex;
    align-items: center;
    margin-left: 4px;
    visibility: hidden;
  }

  &:hover,
  &.force-visible-arrow {
    .titleArrow {
      visibility: visible;
    }
  }
}

::ng-deep .mat-spinner circle {
  stroke: var(--accent-color-bg);
}

.task-group-wrapper {
  position: relative;
}

.spinner-wrapper {
  height: 100%;
  width: 100%;
  position: absolute;
}

.spinner {
  position: relative;
  top: 40%;
  left: 50%;
}

.lock-interface {
  pointer-events: none;
}

::ng-deep wg-paginator .paginator-wrapper .paginator {
  margin-bottom: 0;
  margin-right: 0;

  &-next-icon {
    padding-right: 0;
  }
}
