@import '~@zgfe/business-lib/es/assets/styles/inner.less';

.visual-workbench-list-panel {
  flex: none;
  width: 280px;
  border-right: 1px solid @border-color-split;
  background: white;

  &-tabs {
    height: 100%;

    .ant-tabs-content-holder,
    .ant-tabs-content,
    .ant-tabs-tabpane {
      height: 100%;
    }
  }

  &-to-list {
    overflow-y: auto;
    padding: 0 @padding-md @padding-md @padding-md;
    display: flex;
    flex-direction: column;
    height: 100%;

    .ant-input-affix-wrapper {
      flex: none;
    }
  }

  &-list {
    flex: 1;
    overflow-y: auto;
  }

  &-item {
    width: 100%;
    height: 64px;
    padding: 12px 0;
    font-size: @font-size-base;
    color: #354354;
    line-height: 20px;
    border-bottom: 1px solid @border-color-base;
    display: flex;
    flex-direction: row;

    .ant-space-item:first-of-type {
      flex: 1;
    }

    .ant-space-item:last-of-type {
      flex: none;
    }

    &:hover {
      color: @primary-color;
      cursor: pointer;
    }

    .bsicon {
      float: right;
      color: #242541;

      &:hover {
        color: @error-color;
        cursor: pointer;
      }
    }
  }

  &-empty {
    height: 100%;
    position: relative;
    & > div {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      margin-top: -16px;
      & > img {
        width: 88px;
        height: 88px;
      }
      & > span {
        font-size: @font-size-base;
        line-height: 20px;
        display: inline-block;
        width: 199px;
        text-align: center;
      }
    }
  }

  &-confirm {
    .ant-modal-title .bsicon {
      margin-right: 8px;
      color: @warning-color;
    }

    .ant-modal-header {
      padding-bottom: 0;
    }
  }
}
