.@{prefixCls}-filter {
  /** 兼容代码 */
  &-tab-bar {
    margin-bottom: @space-v;

    .@{prefixCls}-tab-bar-item {
      padding: 8px 12px;
    }
  }
  /** 兼容代码 end */

  &-tabbar {
    display: flex;
    margin-bottom: @padding-sm;

    &-item {
      height: 28px;
      margin-right: @padding-xs;
      padding: 0 @padding-md;
      color: #666;
      line-height: 28px;
      background-color: #f2f3f5;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.2s;

      &:hover:not(&-active) {
        background-color: #e8eaec;
      }

      &-active {
        color: .primary() [];
        background-color: .primary(0.1) [];
      }

      &-dropdown:hover svg,
      &-dropdown:active svg {
        background-color: .primary(0.2) [];
        border-radius: 2px;
      }
    }

    &-add {
      width: 28px;
      padding: 0;
      font-size: 12px;
      text-align: center;
    }
  }

  &-pending {
    height: 64px;
    overflow: hidden;
    visibility: hidden;
  }

  &-form-item {
    display: block;

    &.hidden {
      display: none;
    }
  }

  &-btn {
    padding: 6px;

    & > svg {
      display: block;
      width: 18px;
      height: 18px;
    }
  }

  &-reset {
    padding: 0 4px;
  }

  &-collapse {
    padding: 4px 0;
    font-size: 12px;
    line-height: 1;

    & > svg {
      vertical-align: -1px;
    }
  }

  &-btns {
    display: flex;
    margin-bottom: 8px;
    padding: 0 8px;
  }

  &-submit {
    box-sizing: border-box;
    width: 94px;
    padding-right: 8px;
    text-align: right;
  }

  &-popover {
    .popover(250px);

    .@{ant-prefix}-popover-inner {
      padding: 0;
      padding-top: @padding-md;
    }

    &-footer {
      display: flex;
      justify-content: flex-end;
      padding: @padding-sm @padding-md;
      border-top: 1px solid #eaeaea;

      button + button {
        margin-left: @padding-sm;
      }
    }
  }

  &-items-search {
    display: block;
    width: 100%;
    padding: 0 @padding-md;
  }

  &-items {
    max-height: 400px;
    padding: @padding-sm 0;
    overflow: auto;
  }

  &-item {
    .popoverItem();
    display: flex;
    overflow: hidden;

    & > * + * {
      margin-left: @padding-sm;
    }

    &-active-top {
      box-shadow: 0 -1px 0 ~'var(--@{ant-prefix}-primary-color)';
    }

    &-active-bottom {
      box-shadow: 0 1px 0 ~'var(--@{ant-prefix}-primary-color)';
    }
  }

  &-drag-item {
    display: inline-flex;
    height: 36px;
    padding: 0 @padding-md;
    line-height: 36px;
    white-space: nowrap;
    background-color: #eee;
    border-radius: 4px;
    cursor: move;
  }
}
