.search-wrap {
  position: relative;
  width: min(100%, 560px);
  max-width: 560px;
  flex: 1 1 560px;
}

.search-wrap input.form-control {
  padding-right: 36px;
}

.search-wrap.has-scrollable-placeholder input::placeholder {
  color: transparent;
}

.search-placeholder-scroll {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: var(--search-placeholder-left, 12px);
  right: var(--search-placeholder-right, 36px);
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--bs-secondary-color, #6c757d);
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
  opacity: .65;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.search-placeholder-scroll::-webkit-scrollbar {
  display: none;
}

.search-placeholder-scroll.is-dragging {
  user-select: none;
}

.search-placeholder-scroll > span {
  flex: 0 0 auto;
}

.search-wrap:focus-within .search-placeholder-scroll,
.search-wrap.has-value .search-placeholder-scroll {
  display: none;
}

.search-wrap:focus-within input::placeholder {
  color: revert;
}

.search-wrap input[type="search"]::-webkit-search-cancel-button,
.search-wrap input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-wrap .btn-clear {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  color: #6c757d;
  background: transparent;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + 1px));
  transition: opacity .15s ease, transform .15s ease, color .15s ease;
}

.search-wrap.has-value .btn-clear {
  opacity: 1;
  pointer-events: auto;
}

.search-wrap .btn-clear:hover {
  color: #495057;
  transform: translateY(calc(-50% + 1px)) scale(1.08);
}

.search-wrap .btn-clear:focus-visible {
  outline: 2px solid rgba(108, 117, 125, .5);
  border-radius: 4px;
}

#search-form.search-form--solo,
.search-form--solo,
#logistica-client-search-form,
#faturamento-client-search-form,
#vendas-clientes-search-form,
#orc-search-form {
  justify-content: center;
}

#search-form.search-form--solo .search-wrap {
  max-width: 560px;
  flex: 1 1 560px;
}

#modalListaRecebimentos .recebimentos-search-wrap {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  flex: 0 1 1120px;
}

@media (max-width: 992px) {
  #search-form,
  .search-form--solo,
  #logistica-client-search-form,
  #faturamento-client-search-form,
  #vendas-clientes-search-form,
  #orc-search-form {
    align-items: stretch !important;
    justify-content: center !important;
  }

  #search-form .search-wrap,
  #search-form.search-form--solo .search-wrap,
  .search-form--solo .search-wrap,
  #logistica-client-search-form .search-wrap,
  #faturamento-client-search-form .search-wrap,
  #vendas-clientes-search-form .search-wrap,
  #orc-search-form .search-wrap {
    width: min(100%, 560px);
    max-width: 560px;
    flex: 1 1 560px;
  }

  #search-form > button,
  .search-form--solo > button,
  #logistica-client-search-form > button,
  #faturamento-client-search-form > button,
  #vendas-clientes-search-form > button,
  #orc-search-form > button {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  #search-form,
  .search-form--solo,
  #logistica-client-search-form,
  #faturamento-client-search-form,
  #vendas-clientes-search-form,
  #orc-search-form {
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 6px !important;
  }

  #search-form .search-wrap,
  .search-form--solo .search-wrap,
  #faturamento-client-search-form .search-wrap,
  #vendas-clientes-search-form .search-wrap,
  #orc-search-form .search-wrap {
    width: 100%;
    max-width: 560px;
    flex: 1 1 100%;
  }

  #logistica-client-search-form .search-wrap {
    width: 100%;
    max-width: 560px;
    flex: 1 1 100%;
  }

  #search-form.search-form--solo .search-wrap {
    max-width: 560px;
    flex: 1 1 100%;
  }

  #search-form .search-wrap input.form-control,
  .search-form--solo .search-wrap input.form-control,
  #logistica-client-search-form .search-wrap input.form-control,
  #faturamento-client-search-form .search-wrap input.form-control,
  #vendas-clientes-search-form .search-wrap input.form-control,
  #orc-search-form .search-wrap input.form-control {
    min-height: 30px;
    height: 30px;
    padding: 4px 28px 4px 9px;
    font-size: .82rem;
    line-height: 1.2;
  }

  #search-form .search-wrap .btn-clear,
  .search-form--solo .search-wrap .btn-clear,
  #logistica-client-search-form .search-wrap .btn-clear,
  #faturamento-client-search-form .search-wrap .btn-clear,
  #vendas-clientes-search-form .search-wrap .btn-clear,
  #orc-search-form .search-wrap .btn-clear {
    right: 6px;
    min-width: 22px;
    min-height: 22px;
    font-size: 16px;
  }

  #search-form > button,
  .search-form--solo > button,
  #logistica-client-search-form > button,
  #faturamento-client-search-form > button,
  #vendas-clientes-search-form > button,
  #orc-search-form > button {
    min-height: 30px;
    height: 30px;
    width: auto;
    flex: 0 0 auto;
    padding: 4px 10px;
    font-size: .82rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  #search-form .search-wrap,
  .search-form--solo .search-wrap,
  #faturamento-client-search-form .search-wrap,
  #vendas-clientes-search-form .search-wrap,
  #orc-search-form .search-wrap {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  #logistica-client-search-form .search-wrap {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  #search-form.search-form--solo .search-wrap {
    max-width: none;
    flex: 1 1 100%;
  }

  #search-form .search-wrap input.form-control,
  .search-form--solo .search-wrap input.form-control,
  #logistica-client-search-form .search-wrap input.form-control,
  #faturamento-client-search-form .search-wrap input.form-control,
  #vendas-clientes-search-form .search-wrap input.form-control,
  #orc-search-form .search-wrap input.form-control {
    min-height: 30px;
    height: 30px;
    padding: 4px 28px 4px 9px;
    font-size: .82rem;
    line-height: 1.2;
  }

  #search-form .search-wrap .btn-clear,
  .search-form--solo .search-wrap .btn-clear,
  #logistica-client-search-form .search-wrap .btn-clear,
  #faturamento-client-search-form .search-wrap .btn-clear,
  #vendas-clientes-search-form .search-wrap .btn-clear,
  #orc-search-form .search-wrap .btn-clear {
    right: 6px;
    min-width: 22px;
    min-height: 22px;
    font-size: 16px;
  }

  #search-form > button,
  .search-form--solo > button,
  #logistica-client-search-form > button,
  #faturamento-client-search-form > button,
  #vendas-clientes-search-form > button,
  #orc-search-form > button {
    min-height: 30px;
    height: 30px;
    width: auto;
    flex: 0 0 auto;
    padding: 4px 10px;
    font-size: .82rem;
    line-height: 1.2;
  }
}
