@import '../../style/themes/default.less';

@component-prefix-cls: ~'@{qn-prefix}-pro-search';

.@{component-prefix-cls} {
  &.ant-form {
    margin: 12px 16px;
  }
  &-filter-more {
    &:hover {
      background-color: #f7f7f7;
      border-radius: 3px;
    }

    height: 34px;
    padding: 7px 8px;
    color: #171717;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    .anticon {
      padding-left: 2px;
      color: #646566;
      font-size: 12px;
    }
  }
  &-actions {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    height: 34px;
  }
  &-action-item {
    display: inline;
    padding: 7px 8px;
    color: #171717;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    &:hover {
      background-color: #f7f7f7;
      border-radius: 3px;
    }
  }
  &-action-icon {
    padding-right: 4px;
    font-size: 14px;
    opacity: 0.8;
  }
  .ant-picker-range {
    padding: 5px 8px;
  }
  .ant-form > .ant-row {
    margin-right: -22px !important;
    margin-left: -22px !important;
  }
  &-show-col.ant-form-item {
    margin-bottom: 8px !important;
    margin-left: 0;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 4px;
    &:not(:last-child) {
      margin-right: 8px;
    }
    .ant-form-item-label {
      margin-left: 8px;
      color: #646566;
      opacity: 0.7;
    }
    .ant-form-item-label > label::after {
      display: none;
    }
    .ant-form-item-label > label {
      color: #646566;
      font-weight: 400;
      font-size: 13px;
    }
    .ant-picker {
      width: 226px !important;
    }
    .ant-select,
    .ant-picker {
      margin-top: 1px;
    }
    .ant-select,
    .ant-input {
      width: 104px !important;
      color: #171717;
      font-weight: 400;
      font-size: 13px;
    }
    .ant-select-multiple {
      width: 140px !important;
    }
    .ant-select-selection-overflow {
      flex-wrap: nowrap;
    }
    .ant-input,
    .ant-input-affix-wrapper,
    .ant-select-selector,
    .gts-user-selector-base.bordered,
    .ant-picker {
      border: none !important;
      &:focus {
        border: none !important;
        box-shadow: none !important;
      }
    }
    .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input)
      .ant-select-selector {
      box-shadow: none;
    }
    .ant-select-selector {
      padding: 0 8px;
    }
    .gts-user-selector-base {
      display: flex;
      min-width: auto;
    }
    .pro-form-query-filter-actions {
      color: #171717;
      font-size: 13px;
      line-height: 16px;
      border: none;
      .ant-form-item-label {
        margin-left: 0;
      }
    }
  }
  &-hide-wrapper {
    display: flex;
    flex-flow: row wrap;
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
    padding: 20px 0 0 16px;
    background: #fff;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12), 0 5px 10px 0 rgba(0, 0, 0, 0.05);
    .ant-form-item {
      display: block;
      margin-right: 0;
      margin-bottom: 16px;
      padding-right: 16px;
      .ant-form-item-label {
        display: block;
      }
    }
  }
  &-hide-wrapper-hide {
    display: none;
  }
  &-hide-col {
    &:last-child {
      flex: 1;
      max-width: unset;
      margin-left: 0;
    }
    .ant-row {
      flex-direction: column;
    }
    .ant-picker,
    .gts-user-selector-use-select {
      width: 100%;
    }
    .ant-form-item-label label {
      width: 100%;
      height: 20px;
      margin-bottom: 8px;
      color: #646566;
      font-weight: 400;
      font-size: 13px;
    }
    .ant-col.ant-form-item-control {
      width: 100%;
    }
  }
  &-search-actions {
    flex: 1;
    align-self: flex-end;
    padding-right: 16px;
    padding-bottom: 20px;
    text-align: right;
    .ant-btn {
      color: #333;
      font-weight: 500;
      font-size: 12px;
      background: #fafafa;
      border-radius: 4px;
      &:hover,
      &:focus,
      &:active {
        border-color: var(--primary-color, #ff6a00);
      }
      &:not(:last-child) {
        margin-right: 8px;
      }
    }
    .ant-btn-primary {
      color: #fff;
      font-weight: 500;
      font-size: 12px;
      background: var(--primary-color, #ff6a00);
      border: none;
    }
  }
}
