//@root-entry-name: default;
//@import (reference) '~antd/es/style/themes/index';

.filter-grid {
  display: flex;
  width: 100%;
  flex-wrap: wrap;

  &.filter-grid-horizontal {
    .filter-form {
      width: 100%;

      & > .ant-row {
        width: 100%;
      }

      // 标签域自动换行
      //.ant-form-item-label > label {
      //  white-space: pre-wrap;
      //  height: auto;
      //  min-height: @input-height-base;
      //}

      // 标签域自动换行
      //.ant-form-item-control,
      //.ant-form-item-label {
      //  line-height: 16px;
      //}
    }

    .filter-btns {
      width: 100%;
      text-align: left;

      .spec-button-group {
        display: flex;
        flex-wrap: wrap;
        padding-left: 0;
        //padding-top: @padding-md;
        //&:before {
        //  content: '';
        //  float: left;
        //}
        //&:after {
        //  clear: both;
        //}
        .ant-btn:first-child {
          margin-left: 0;
        }
      }
    }

  }


  .filter-form {
    flex: 1;
    font-size: 0;
    display: flex;
    flex-wrap: wrap;

    &.filter-form-vertical {
      display: block;

      .ant-form-item {
        margin-right: 0;
      }
    }

    &.filter-form-horizontal {
      .ant-form-item {
        margin-right: 0;
      }
      .filter-action-right {
        //display: flex;
        //justify-content: end;
        .ant-btn {
          vertical-align: middle;
        }
      }
    }
    .ant-form-item {
      //margin-right: @padding-md; // 16px
      //margin-bottom: @padding-md;

      .ant-form-item {
        margin-bottom: 0;
      }
    }

    .ant-form-item-control {
      .ant-form-item-control-input {
        //min-width: 180px;
      }
    }

    .ant-form-item-control,
    .ant-form-item-label {
      //line-height: @input-height-base;
    }
  }

  &.filter-grid-inline {
    .filter-form +.filter-btns {
      .spec-button-group {
        padding-left: 80px;
      }
    }
  }
  .filter-btns {
    //max-width: 340px;
    text-align: right;

    .ant-btn {
      //margin-bottom: @padding-md;
      //margin-left: @padding-sm;
      &:first-child {
        //margin-left: 0;
      }
    }

  }

  //.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
  //  line-height: @height-base - 2;
  //}

}