@import '../../styles/variables';

:host {
  display: flex;
  flex-direction: column;
  overflow: auto;

  .empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: $blue-400;
    font-size: 14px;
  }

  ::ng-deep .mat-expansion-panel-header {

    .mat-expansion-indicator {
      height: 25px;
      width: 12px;
      text-align: center;
    }

    &.mat-expanded, .mat-expanded:focus {
      color: $purple;

      .mat-expansion-indicator {
        height: 22px;
      }

      .item-key {
        color: $purple;
      }
    }

    .mat-content {
      padding-left: 5px;
    }

  }

  .mat-expansion-panel {
    box-shadow: none;
    color: $blue-400;
  }

  ::ng-deep mat-checkbox {
    width: 100%;

    .mdc-form-field {
      width: 100%;

      label {
        width: 100%;
      }
    }

    .ellipsis {
      max-width: 94%;
    }
  }
}

.title {
  color: $blue-400;
  font-size: 16px;
  font-weight: 500;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 24px 6px 0;
  font-size: 12px;
  color: $blue-480;
}

.list {
  flex: 1;
  overflow: scroll;
  padding-right: 12px;

  mat-expansion-panel {
    box-shadow: none;
    border-radius: 0;

    mat-expansion-panel-header {
      padding: 0 2px 0 0;

    }
  }

  .item-key {
    font-size: 14px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;

    &:hover {
      color: $purple;
    }
  }

  mat-expansion-panel-header {
    color: $blue-400;

    &:hover .item-key {
      color: $purple;
    }
  }

  .item {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    margin-right: 4px;
    border-radius: 4px;
    font-family: $font-family-base, sans-serif;
    font-size: 12px;
    color: $blue-400;
    cursor: pointer;

    &.disabled {
      opacity: 0.5;
      cursor: default;
    }

    &:hover {
      background-color: $blue-50;
    }
  }

  label {
    display: block;
    font-weight: normal;
    padding-left: 12px;
    margin: 0 !important;
    line-height: normal;
    font-size: 12px;
    cursor: inherit;
  }

}

:host-context(.hyper-params-custom-col) {
  .actions,
  .list {
    padding-left: 12px;
  }
}
