

.dropdown-container {
  margin-bottom: 20px;
  position: relative;
  width: 300px;
  font-size: 12px;
}

.dropdown-container label {
  display: block;
  margin-bottom: 5px;
}

#search-dropdown {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.dropdown-table {
  position: absolute;
  top: calc(100% + 5px);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dropdown-table.hidden {
  display: none;
}

.dropdown-table table {
  width: 100%;
  border-collapse: collapse;
  position: relative; /* Ensure proper stacking context for header */
}

.dropdown-table thead {
  position: sticky;
  top: 0; /* Stick the header at the top */
  background: #fff; /* Background color for the sticky header */
  z-index: 1; /* Ensure header appears above the rows */
}

.dropdown-table th,
.dropdown-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.dropdown-table tr.highlighted {
  background-color: #f1f1f1;
}

.dropdown-table tbody {
  max-height: 200px; /* Set max height for scrolling */
  overflow-y: auto;  /* Enable vertical scrolling */
}

.hidden {
  display: none;
}

.dropdown-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.dropdown-tag {
  background-color: #e0e0e0;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
}

.dropdown-tag .remove-tag {
  margin-left: 5px;
  cursor: pointer;
}

select.dropdown-table-select {
  display: none;
}
