//搜索组件
.search-form {
  position: relative;

  .root-container .simple-search {
    position: fixed;
    top: 60px;
    right: 25px;
    z-index: 100;
    display: block;
  }

  #eren-host-app .simple-search {
    float: right;
    position: relative;
    z-index: 100;
    margin-top: 15px;
    margin-bottom: 30px;
  }

  .simple-search {
    &:after {
      display: block;
      content: "";
      clear: both;
    }

    .simple-search-btn {
      display: inline-block;
      position: absolute;
      right: 0;
      height: 32px;
    }

    .ant-select {
      margin-top: 0;
    }

    .ant-input {
      padding-right: 38px;
    }
  }

  .advance-search {
    display: none;

    .simple-search-btn {
      display: none;
    }

    .select-and-input .ant-select {
      //margin-top: 0;
    }

    .ant-input {
      padding-right: 7px;
    }
  }

  .ant-advanced-search-form {
    border: none;
    background-color: #f9f9f9;
    padding-bottom: 3px;
  }

  &.only-advance {
    .ant-advanced-search-form {
      background-color: #fff;
      padding: 0;
    }
  }

  .ant-input-group-addon {
    background-color: #f9f9f9;
  }

  &.show-advance {
    .advance-search {
      display: block;
    }

    .simple-search {
      display: none;
    }
  }
}

//简易搜索行
.simple-search {
  // position: absolute;
  // right: 0;
  // top: -7px;

  .search-select {
    width: 315px;
  }

  .search-item {
    width: 100%;
  }

  .search-advance-switch {
    display: inline-block;
    width: 2.1em; //原来的2.0;修改2.1解决safari宽度不够导致高级搜索文字换行的问题
    line-height: 16px;
    margin-left: 10px;
    vertical-align: middle;
  }

  .ant-select-selection--single {
    height: 32px;
  }
  .ant-select-selection__rendered {
    line-height: 30px;
  }
  .ant-select-selection--multiple {
    min-height: 32px;
    .ant-select-selection__rendered {
      li {
        height: 24px;
        line-height: 24px;
      }
    }
  }

  .ant-input {
    padding: 6px 7px;
    height: 32px;
  }

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

  .ant-search-btn {
    padding: 4px 15px 5px 15px;
    font-size: 14px;
  }
}

//高级搜索
.advance-search {
  position: relative;
  margin-top: 1px;

  .search-simple-switch {
    position: absolute;
    right: 170px;
    bottom: 20px;
    display: inline-block;
  }

  .ant-input-group-wrap {
    display: none;
  }

  .select-and-input {
    .ant-select {
      margin-top: -1px;
    }

    .ant-select-selection {
      border-right: 0;
      background-color: #fcfcfc;
    }
  }
}

.ant-advanced-search-form {
  .search-form-select {
    margin-top: -6px;
  }

  .ant-form-item {
    margin-bottom: 10px;
  }

  .ant-calendar-range-picker {
    float: left;
  }

  .ant-calendar-picker {
    float: left;
    min-width: 100% !important;
  }

  .ant-col-6 {
    height: 42px;
  }
}

@media screen and (min-width: 1540px) {
  .root-container .ant-advanced-search-form > .ant-row > .ant-col-6,
  .page-container .ant-advanced-search-form > .ant-row > .ant-col-6 {
    width: 20%;
  }
}
@media screen and (min-width: 1300px) {
  .root-container.help-center-inner .ant-advanced-search-form > .ant-row > .ant-col-6,
  .page-container.help-center-inner .ant-advanced-search-form > .ant-row > .ant-col-6 {
    width: 33.33333%;
  }
}

//之前使用的搜索样式,有待确认
.search-body {
  position: relative;

  .simple-search {
    // position: fixed;
    // top: 60px;
    // right: 25px;
    // z-index: 100;
  }

  .ant-advanced-search-form {
    border: 1px solid #d9d9d9;
    background-color: #f9f9f9;
  }

  .ant-input-group-addon {
    background-color: #f9f9f9;
  }
}

.search-input {
  width: 100%;
}

//新框架下的搜索样式调整
.root-container {
  .search-body .simple-search,
  .search-form .simple-search {
    top: 76px;
    right: 10px;
    z-index: 80;
  }
}
