@charset "UTF-8";
/* Base Select2 style inside AddOrganization */
#add_organization_form .select2-container--default .select2-selection--single,
#editProspectForm .select2-container--default .select2-selection--single,
#add_investment_mandate_form .select2-container--default .select2-selection {
  min-height: calc(3.5rem + 2px) !important; /* Match Bootstrap form-floating */
  padding: 0.75rem 0.75rem !important;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Text alignment */
#add_organization_form .select2-container--default .select2-selection--single .select2-selection__rendered,
#editProspectForm .select2-container--default .select2-selection--single .select2-selection__rendered,
#add_investment_mandate_form .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 2.8rem !important;
  padding-left: 0;
  font-size: 0.85rem !important;
}

#add_investment_mandate_form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding-left: 0;
  font-size: 0.85rem !important;
  top: 0.5rem !important;
}

/* Dropdown arrow positioning */
#add_organization_form .select2-container--default .select2-selection--single .select2-selection__arrow,
#editProspectForm .select2-container--default .select2-selection--single .select2-selection__arrow,
#add_investment_mandate_form .select2-container--default .select2-selection .select2-selection__arrow {
  height: 100%;
  right: 0.75rem;
}

/* ✅ Focus/active border color */
#add_organization_form .select2-container--default.select2-container--focus .select2-selection--single,
#editProspectForm .select2-container--default.select2-container--focus .select2-selection--single,
#add_investment_mandate_form .select2-container--default .select2-container--focus .select2-selection {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

#add_organization_form .select2-container--default .select2-selection--single .select2-selection__placeholder,
#add_investment_mandate_form .select2-container--default .select2-selection .select2-selection__placeholder {
  color: black;
}

.organization-form-container {
  background-color: #fff;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

#add_organization_form .select2-container--default.select2-container--disabled .select2-selection--single,
#add_investment_mandate_form .select2-container--default .select2-container--disabled .select2-selection {
  background-color: #eee !important;
  cursor: not-allowed;
}

#add_organization_form #tags {
  text-transform: capitalize;
}

/* Optional: visually dim disabled tabs */
#orgTypeTab .nav-link:disabled {
  opacity: 0.6;
  pointer-events: none; /* prevent accidental clicks */
}

#orgTypeTab .nav-item[title] {
  cursor: not-allowed;
}

/* ===== Wrapper ===== */
.lp-profile-wrapper,
.business-profile-wrapper {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow: hidden;
}

/* Header */
.lp-profile-header,
.shareholders-header {
  background-color: #00bfbf;
  color: #fff;
  font-weight: 500;
  padding: 10px 0;
}

.lp-profile-header > div,
.shareholders-header > div {
  padding: 0 12px;
}

/* Input rows */
.lpProfiles-row .form-control,
.shareholders-row .form-control {
  border-radius: 0;
  box-shadow: none;
  padding: 10px;
}

/* Action row (THIS fixes alignment) */
.lpProfiles-action-row,
.shareholders-action-row {
  padding: 6px 12px 10px;
}

.lpProfiles-action-row .btn,
.shareholders-action-row .btn {
  margin-left: 6px;
}

/* Buttons */
.remove-lpProfile,
.add-lpProfile,
.remove-shareholder,
.add-shareholder {
  padding: 0;
  font-weight: bold;
  border-radius: 6px;
}

.add-lpProfile,
.add-shareholder {
  font-size: 22px !important;
  padding: 2px 7px 2px 7px !important;
  line-height: 1 !important;
}

/* Prevent error message from increasing row height */
.shareholders-row .invalid-feedback,
.lpProfiles-row .invalid-feedback,
.lpProfiles-row .valid-msg,
.lpProfiles-row .error-msg {
  position: absolute;
  bottom: -18px; /* place below input */
  left: 0;
}

#add_investment_mandate_form .select2-container .select2-search--inline .select2-search__field {
  margin-left: 0 !important;
  top: 0.5rem !important;
}

.lp-profile-scroll {
  max-height: 450px; /* ~5 rows */
  overflow-y: auto;
  overflow-x: hidden;
}

/* Optional: nicer scrollbar */
.lp-profile-scroll::-webkit-scrollbar {
  width: 6px;
}

.lp-profile-scroll::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}