@import (reference) '../../style/common.less';

// checkbox 动态
each(@chart-color-1, {
  @cls: replace(~"@{value}", '#', '', 'g');
  .color-@{cls} {
    .@{ant-prefix}-checkbox-checked .@{ant-prefix}-checkbox-inner{
      background: @value !important;
      border-color: @value !important;
    }
  }
});

.umui-checkbox-list {
  height: 444px;
  width: 280px;

  .umui-label-in-value {
    .@{ant-prefix}-checkbox-wrapper {
      display: block;
      width: 280px;
      display: flex;
      font-size: 12px;
      line-height: 1.5;
      margin-bottom: 12px;
      margin-left: 0;
      .ellipsis;
      &:last-child {
        margin: 0;
      }
      span.@{ant-prefix}-checkbox {
        margin-right: 8px;
      }
      & > span:last-child {
        // width: 280px;
        display: contents;
      }
    }
  }

  .umui-sep-checkbox {
    .@{ant-prefix}-checkbox-wrapper {
      margin-right: 8px;
      & > span:last-child {
        display: none;
      }
    }
    .umui-checkbox-wrapper {
      display: flex;
      margin-bottom: 12px;
      &:last-child {
        margin: 0;
      }
      & > span {
        cursor: pointer;
        color: @text-color;
        font-size: 14px;
        line-height: 1.5;
        width: 280px;
        .ellipsis;
      }
      & > span:hover {
        color: @primary-color;
      }
    }
  }

  .umui-checkbox-search {
    margin-bottom: 16px;
  }

  .umui-checkbox-group-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    width: 280px;
    border-bottom: 1px solid @border-color-base;
  }

  .umui-checkbox-hint,
  .umui-checkbox-hint-num {
    font-size: 12px;
    line-height: 44px;
    color: @text-color-secondary;
  }

  .umui-checkbox-hint-num {
    float: right;
  }

  .umui-checkbox-percent {
    div {
      display: inline-block;
    }
    &-wrapper {
      font-size: 0;
      width: 80px;
      background: @body-background;
      overflow: hidden;
      margin-right: 8px;
    }

    &-bar,
    &-wrapper {
      height: 8px;
    }
  }

  .table-list {
    .@{ant-prefix}-table-row-selected > td {
      background-color: @item-active-bg;
    }
    .@{ant-prefix}-table-thead {
      tr th {
        padding: 8px;
        height: 40px;
      }
      .@{ant-prefix}-checkbox-wrapper {
        display: none;
      }
    }
    .@{ant-prefix}-table-tbody {
      tr td {
        padding: 8px;
        height: 40px;
        &:first-child {
          padding-right: 0;
        }
      }
    }
  }
}
