@import '../../commonStyle/index.less';

.@{prefix}-search-filter {
  align-items: center;
  width: 100%;
  margin-top: 10px;
  background-color: #fff;

  span.ant-collapse-header-text {
    display: inline-block;
    width: 100%;
    cursor: auto !important;
  }

  .ant-collapse-content-box {
    padding: 0;
  }

  .search-header {
    display: flex;
    width: 100%;

    .left {
      max-width: 100%;
      overflow: hidden;
      white-space: no-wrap;
      text-overflow: ellipsis;

      :global {
        .ant-radio-wrapper:first-child {
          border-left: 1px solid #d9d9d9;
          border-radius: 5px 0 0 5px;
        }

        .ant-radio-wrapper:last-child {
          border-radius: 0 5px 5px 0;
        }

        .ant-radio-wrapper {
          margin-right: 0;
          padding: 4px 6px;
          border: 1px solid #d9d9d9;
          border-top-width: 1px;
          border-left: 1px solid #fff;
          border-left-width: 1px;

          .ant-radio {
            display: none;
          }
        }

        .ant-radio-wrapper:hover {
          color: #1890ff;
        }

        .ant-radio-wrapper-checked {
          z-index: 1;
          color: #1890ff;
          background: #fff;
          border: 1px solid #1890ff;
          border-left: 1px solid #1890ff !important;
        }
      }
    }

    .right {
      display: flex;
      justify-content: center;

      .input {
        width: 200px;
        border-radius: 4px;
      }

      .button {
        margin-left: 10px;

        &:active,
        &:focus,
        &:hover {
          border-color: transparent;
        }

        .icon {
          margin-left: 8px;
          transition: transform 0.4s;

          &.down {
            transform: rotateZ(180deg);
          }

          &.up {
            transform: rotateZ(0deg);
          }
        }
      }
    }
  }

  .title {
    display: flex;
    align-items: center;
    margin: 0 10px;
    padding-bottom: 10px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;

    span.icon {
      width: 4px;
      height: 16px;
      margin-right: 6px;
      background-color: #1890ff;
      border-radius: 2px;
    }
  }

  .search-content {
    .filter-row {
      display: flex;
      flex-wrap: wrap;
      width: 100%;
      padding: 10px;
    }

    .filter-col {
      height: 30px;
      margin-bottom: 10px;
      line-height: 30px;
    }

    .filter-col .ant-picker {
      width: 100%;
    }

    .search-btn {
      justify-content: center;

      > button {
        margin: 0 5px;
      }
    }
  }
}
