@import "../../less/global-variable.less";
.cess-tool-filter {
  .ant-input {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .cess-input.cess-input-search .ant-input:focus,
  .cess-input.cess-input-search .ant-input:hover,
  .cess-input.cess-input-search .ant-input-focused {
    border-color: @color-border;
    border-right: none;
    box-shadow: none;
  }

  .ant-picker {
    &:hover,
    &.ant-picker-focused {
      box-shadow: none;
      border-color: @color-border;
    }
  }

  .cess-select {
    .ant-select {
      position: relative;
      width: 98px;

      &::before {
        display: inline-block;
        content: '';
        height: 16px;
        width: 1px;
        background: @color-divider;
        position: absolute;
        top: 8px;
        left: 0;
        z-index: 2;
      }

      .ant-select-selector {
        border-left: none;
        border-right: none;
        border-radius: 0;
      }

      &.ant-select-focused.ant-select-single:not(.ant-select-customize-input) {
        .ant-select-selector {
          border-color: @color-border;
        }
      }

      &.ant-select-focused.ant-select-single:not(.ant-select-customize-input) {
        .ant-select-selector .ant-select-selection-item {
          background: @color-primary-selected;
        }
      }
    }
    &:first-of-type .ant-select-selector {
      border-left: 1px solid @color-border;
      border-top-left-radius: 2px;
      border-bottom-left-radius: 2px;
    }

    &:last-of-type .ant-select-selector {
      border-right: 1px solid @color-border;
      border-top-right-radius: 2px;
      border-bottom-right-radius: 2px;
    }
  }

  .cess-select
    .ant-select:not(.ant-select-disabled):hover
    .ant-select-selector {
    border-color: @color-border;
  }

  &.filter-have-left {
    .ant-select:first-of-type .ant-select-selector {
      border-left: none;
      border-radius: 0;
    }
  }
  & > button {
    margin-left: 8px;
    position: relative;
    top: 1px;
  }

  .ant-cascader-picker .ant-cascader-input {
    border-right: 1px solid #e1e3e6;
  }

  .ant-cascader-picker:focus .ant-cascader-input {
    border-color: #40a9ff;
    box-shadow: none;
  }
}
