#searched_products_wrapper > .scroll-table-container {
  height: calc(100vh - 160px);
}

#searched_products_wrapper .product-quantity.form-control:disabled {
  color: inherit;
  background-color: transparent;
  border-color: transparent;
}

#searched_products_wrapper .response-table .scroll-table-container {
  height: auto !important;
}

#searched_products_wrapper .table-hover > tbody > tr.no-hover:hover > * {
  --bs-table-color-state: inherit;
  --bs-table-bg-state: inherit;
}

tr.response-table {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

tr.response-table.animate-in {
  opacity: 1;
  transform: translateY(0);
}

#searched_products_wrapper
  .product_search_action_cell
  > button:not(:last-child) {
  margin-right: 10px;
}

td.request-table-wrapper {
  max-width: 100px;
  overflow: auto;
}

#productSearchModal .modal-body {
  padding-top: 60px;
  padding-bottom: 60px;
}

.fixed_search_item {
  background-color: #fff !important;
  /* background: linear-gradient(
    270deg,
    rgba(var(--bs-primary-rgb), 0.7) 0%,
    var(--bs-primary) 100%
  ); */
}

/* .fixed_search_item .form-control {
  color: var(--bs-light) !important;
} */

/* #search-products-form {
  max-height: 100%;
  overflow: auto;
  margin-top: 15px;
}

#search-products-form > .row {
  margin: 0 !important;
}

#search-products-form > .row > * {
  padding: 0 !important ;
} */

/* td.request-table-wrapper * {
  font-size: 0.75rem;
} */

/* Desktop: show inline buttons, hide bottom bar */
.mobile-only-buttons {
  display: none !important;
}

.desktop-only-buttons {
  display: flex;
}

/*mobile design*/

@media (max-width: 768px) {
  .searched_product_card {
    .p_name {
      font-size: 1.1rem;
    }

    .p_company {
      font-size: 0.8rem;
    }
  }

  /* Hide desktop buttons, show mobile bottom bar */
  .desktop-only-buttons {
    display: none !important;
  }

  .mobile-only-buttons {
    display: flex !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
  }

  #productSearchModal {
    .modal-body {
      padding-top: 70px;
      padding-bottom: 80px;
    }

    .fixed_search_item.fixed-top {
      .input-group-merge {
        border-radius: 0.5rem;
        overflow: hidden;
        border: 1px solid var(--bs-border-color);
      }

      .input-group-text {
        border-radius: 0.5rem 0 0 0.5rem !important;
        border: none;
      }

      #search-products-query {
        border-radius: 0 0.5rem 0.5rem 0 !important;
        border: none;
      }
    }
  }

  @media (prefers-color-scheme: dark) {
    .fixed_search_item {
      background-color: var(--bs-body-bg) !important;
    }
  }
}

.own_products_label {
  border-right: 1px solid #ced4da;
}

.twitter-typeahead .tt-menu {
  min-width: 100%;
}
