// scss-lint:disable IdSelector
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth



#manage-repository-column {

  .modal-header {

    .back-to-column-modal {
      float: left;
      margin-top: -6px;
    }
  }

  .modal-body {

    .form-horizontal {
      padding: 15px 0;
    }

    .form-group {
      margin-bottom: 10px;
    }

    .form-control {
      font-size: 14px;
    }

    .control-label {
      text-align: left;
    }

    #items-textarea {
      height: 120px;
    }

    .dropdown-selector-container {

      .delimiter-icon-dropdown {

        .tag-label {
          align-items: center;
          display: flex;
        }

        .icon {
          background: $color-concrete;
          border-radius: $border-radius-default;
          display: inline-block;
          font-size: 20px;
          font-weight: bold;
          line-height: 24px;
          margin-right: 5px;
          text-align: center;
          transition: .3s;
          width: 24px;
        }
      }
    }
  }

  .range-label {
    left: 3px;
    position: relative;
    top: -2px;
  }

  #repository-column-data-type + .dropdown-selector-container {
    .custom-option {
      padding: 0 25px;
    }

    .disabled-option {
      color: $color-silver-chalice;
      padding: 0 25px;
      pointer-events: none;
    }

    .column-type-option {
      display: flex;
      width: 100%;

      .text-description {
        font-style: italic;
        margin-left: auto;
      }
    }
  }

  #new-repository-column {
    .tag-label{
      pointer-events: none;
    }
  }

  .repo-columns-list {
    @include font-button;
    height: 385px;
    margin-bottom: 0;
    overflow-y: auto;
    padding: 0;
    position: relative;

    .modal-tooltiptext {
      margin-left: 0;
      z-index: 99999999;
    }

    .modal-tooltip > span:first-child {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .col-list-el {
      align-items: center;
      background: $color-white;
      border-bottom: 1px solid $color-alto;
      display: flex;
      gap: .5rem;
      min-height: 3.5rem;
      padding: 10px 10px 10px 0;
      vertical-align: middle;

      .manage-controls {
        display: none;
        white-space: nowrap;
      }

      .text {
        margin-right: auto;
      }

      &:hover {
        &.editable.has-permissions {
          .manage-controls {
            display: inline-block;
          }

          .column-type {
            display: none;
          }
        }

        .grippy {
          opacity: 1;
        }
      }

      &:last-of-type {
        border-bottom: 0;
      }
    }

    [data-position] {
      cursor: grab;
    }

    .ui-sortable-helper {
      cursor: grabbing;
    }

    .grippy {
      color: $color-alto;
      opacity: 0;
    }

    .column-type {
      color: $color-silver-chalice;
    }

    .col-invisible {
      color: $color-alto;
    }

    .vis-controls {
      display: inline-block;

      span {
        cursor: pointer;

        &.disabled {
          visibility: hidden;
        }

        &:hover {
          color: $color-volcano;
        }
      }

      .vis {
        display: inline-block;

        &:not(.sn-icon-visibility-show):not(.sn-icon-visibility-hide) {
          padding-right: 1.5rem;
        }
      }
    }
  }

  .delete-content {
    height: 390px;
    padding: 15px 0;
  }

  #new-repo-column-modal {
    float: left;
    margin-left: 5px;
  }

  &[data-task-page=true] {
    .repo-columns-list>.col-list-el:hover.editable.has-permissions>.manage-controls {
      display: none;
    }

    .repo-columns-list>.col-list-el:hover.editable.has-permissions>.column-type {
      display: inline-block;
    }

    .modal-footer {
      min-height: 61px;

      #new-repo-column-modal {
        display: none;
      }
    }
  }

  &.active {
    [data-view-mode="archived"] {
      display: none !important;
    }
  }

  &.archived {
    [data-view-mode="active"] {
      display: none !important;
    }

    .repo-columns-list {
      .col-list-el:hover.editable.has-permissions {
        .column-type {
          display: inline-block;
        }
      }
    }
  }
}
