/* Wrapper positioning for Select2 dropdownParent */
.macro-sector-wrapper {
	position: relative;
}

/* Screen reader only text - accessible but visually hidden */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Ensure focus indicators are visible for keyboard navigation */
.select2-container--default .select2-selection--single:focus {
	outline: 1px solid rgba(128, 90, 165, 0.5);
	outline-offset: 1px;
}

/* Base option text color */
.select2-results__option--selectable {
	color: #111;
}

/* Subtle highlight for hovered options */
.select2-results__option--selectable.select2-results__option--highlighted {
	background-color: rgba(128, 90, 165, 0.1);
}

/* Selected option styling */
.select2-results__option--selected {
	background-color: rgba(128, 90, 165, 0.12);
}

/* Dropdown container styling - match parent button rounded corners */
.select2-dropdown {
	border-radius: 1rem;
	border: 1px solid #ddd;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

/* When dropdown opens above - round top corners, square bottom */
.select2-dropdown--above {
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* When dropdown opens below - square top corners, round bottom */
.select2-dropdown--below {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 1rem;
	border-bottom-right-radius: 1rem;
}

/* Adapt parent button corners when dropdown is open above */
#macro-sector-select+.select2-container.select2-container--open.select2-container--above .select2-selection.select2-selection--single {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

/* Adapt parent button corners when dropdown is open below */
#macro-sector-select+.select2-container.select2-container--open.select2-container--below .select2-selection.select2-selection--single {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

/* Search field inside dropdown */
.select2-search--dropdown {
	padding: 0.5rem;
}

.select2-search--dropdown .select2-search__field {
	border-radius: 0.5rem;
	border: 1px solid #ccc;
	padding: 0.4rem 0.6rem;
}

.macro_sector .select2-selection.select2-selection--single {
	padding: 0rem;
	height: auto;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 300;
	border: none;
	border-bottom: 1px solid #666666;
	border-radius: 1rem;
	min-height: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.macro-sector-option {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding-right: 5px;
}

.macro-sector-name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: 8px;
	font-size: 0.9rem;
	font-family: var(--e-global-typography-text-font-family), 'poppins', sans-serif;
}

.select2-container--default .select2-results>.select2-results__options {
	max-height: 40vh !important;
}

#macro-sector-select+.select2-container {
	min-width: 14rem;
}

#macro-sector-select+.select2-container .select2-selection.select2-selection--single {
	padding: 0rem;
	height: auto;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 300;
	border: none;
	border-bottom: 1px solid #666666;
	border-radius: 1rem;
	min-height: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
}