.select_field_container {
  margin: .5rem;
  min-height: 0;
}

.select_field {
  width: 100%;
  height: 2rem;
  padding: .5rem;
  border-radius: .5rem;
  border: 1px solid grey;
}

/* Select Component Styles */
.select-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.select-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.select-label-text {
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
}

.select-required {
  color: #dc2626;
  margin-left: 2px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper.disabled {
  opacity: .6;
  pointer-events: none;
}

.select-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border, #d1d5db);
  border-radius: var(--radius-md, 0.375rem);
  width: 100%;
  /* Match height of text inputs: padding(8+8) + line-height(20) + border(2) = 38px */
  min-height: 38px;
  height: 38px;
  box-sizing: border-box;
  padding: 0 12px;
  background-color: #fff;
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.25rem;
  transition: all .2s ease;
}

.select-control:hover:not(.disabled) {
  border-color: #9ca3af;
}

.select-control.open {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #3b82f680;
}

.select-value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .875rem;
  color: #111827;
}

.select-placeholder {
  color: #6b7280;
}

.select-indicators {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 8px;
}

.select-count {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 0.375rem);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background-color: #3b82f6;
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
}

.select-menu {
  position: absolute;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 0.375rem);
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background-color: #fff;
  box-shadow: 0 4px 6px -1px #0000001a;
  z-index: 50;
  overflow: hidden;
}

.select-search {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.select-search input {
  border: 1px solid var(--border, #d1d5db);
  border-radius: var(--radius-md, 0.375rem);
  width: 100%;
  padding: 6px 12px;
  padding-right: 32px;
  font-size: .875rem;
}

.select-search input:focus {
  outline: none;
  border-color: #3b82f6;
}

.select-search svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

.select-options {
  overflow-y: auto;
  max-height: inherit;
}

.select-group-label {
  padding: 8px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: #6b7280;
  background-color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  transition: all .2s ease;
}

.select-option:hover:not(.disabled) {
  background-color: #f3f4f6;
}

.select-option.selected {
  background-color: #eff6ff;
  color: #3b82f6;
}

.select-option.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.option-label {
  font-size: .875rem;
}

.option-description {
  font-size: .75rem;
  color: #6b7280;
  margin-top: 2px;
}

.select-error {
  font-size: .75rem;
  color: #dc2626;
  margin-top: 2px;
}

.select-error-placeholder {
  min-height: 1rem;
}

/* Size variants */
.select-sm .select-control {
  padding: 6px 12px;
  font-size: .75rem;
}

.select-sm .select-indicators svg {
  width: 14px;
  height: 14px;
}

.select-lg .select-control {
  padding: 10px 16px;
  font-size: 1rem;
}

.select-lg .select-indicators svg {
  width: 18px;
  height: 18px;
}
