/* Hidden original select */
.custom-dropdown .original-select,
#tipo.original-select,
#status.original-select {
    display: none !important;
}

/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
}

/* Auto-opened state - hide button and make content look like normal interface */
.custom-dropdown.auto-opened .custom-dropdown-button {
  display: none;
}

.custom-dropdown.auto-opened .custom-dropdown-content {
  display: block !important; /* Force display always */
  position: static;
  margin-top: 0;
  box-shadow: none;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  max-height: none;
  overflow-y: visible;
}

.custom-dropdown-button {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-dropdown-button:hover {
  border-color: #9ca3af;
}

.custom-dropdown-button.open {
  border-color: #4F46E5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.custom-dropdown-icon {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
  transition: transform 0.2s;
}

.custom-dropdown-icon.rotate {
  transform: rotate(180deg);
}

.custom-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 0.25rem;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-height: 20rem;
  overflow-y: auto;
}

.custom-dropdown-group {
  border-bottom: 1px solid #f3f4f6;
}

.custom-dropdown-group:last-child {
  border-bottom: none;
}

.custom-dropdown-header {
  padding: 0.5rem 0.75rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
}

.custom-dropdown-header-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.custom-dropdown-header-text {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.custom-dropdown-option {
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  transition: background-color 0.15s;
}

.custom-dropdown-option:hover {
  background-color: #EEF2FF;
}

.custom-dropdown-option.selected {
  background-color: #EEF2FF;
  color: #4F46E5;
  font-weight: 500;
  border-left: 4px solid #4F46E5;
}

.custom-dropdown-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-dropdown-display-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.custom-dropdown-display-text {
  font-size: 0.875rem;
}

.custom-dropdown-display-text.placeholder {
  color: #6b7280;
}

.custom-dropdown-display-text.selected {
  color: #111827;
}

/* Option content styling */
.option-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Status-specific styles */
.custom-dropdown.status .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* New tag styles */
.new-tag {
  background-color: #4F46E5; /* Indigo color */
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 5px;
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
}

/* Custom dropdown for copy-wrapper */
.custom-dropdown-copy-wrapper .custom-dropdown {
  width: 100%;
}