/**
 * Select2 overrides
 * @author Bruno Babic
 * @copyright maxcom
 */

/* add dropdown icon to multi-selects */
.select2-container--bootstrap-5 .select2-selection--multiple {
	padding: .375rem 2.25rem .375rem .75rem;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right .75rem top 8px;
	background-size: 16px 12px;
}

.select2-container--bootstrap-5 .select2--small.select2-selection {
	min-height: var(--aid-input-height);
	padding-right: 30px;
}

.select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__rendered .select2-search--inline {
	max-height: 20px;
}

.select2-container--bootstrap-5 .select2--small.select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
	padding: var(--aid-padding-small);
	font-size: 11px;
}

/*.select2-selection--multiple:before {
    content: "";
    position: absolute;
    right: 7px;
    top: 42%;
    border-top: 5px solid #888;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}*/

/*
.select2-container {
	min-height: 28px;
}

.select2-container .select2-selection--multiple {
	min-height: 20px;
}

.select2-container--default .select2-selection--multiple {
	border: 1px solid #ccc;
	border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
	-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
	-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
	border-color: #66afe9;
	outline: 0;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.select2-selection.select2-selection--single {
	padding-left: 4px;
}

span.select2-selection.select2-selection--single {
	height: 30px;
	border: 1px solid inherit;
	border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
	-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
	-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.select2-selection--multiple:after {
	content: "";
	position: absolute;
	right: 10px;
	top: 12px;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #888;
}

.select2-container--default .select2-selection--single {
	border: 1px solid #ccc;
}

.has-error .select2-container--default .select2-selection--single {
	border-color: #a94442;
}

.has-error .select2-container--default .select2-selection--multiple {
	border-color: #a94442;
}

.has-warning .select2-container--default .select2-selection--single {
	border-color: #8a6d3b;
}

.has-warning .select2-container--default .select2-selection--multiple {
	border-color: #8a6d3b;
}

span.select2-selection.select2-selection--multiple {
	min-height: 30px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
	padding: 1px 0;
}

.select2-dropdown {
	z-index: 100000 !important;
}

.select2 {
	width: 100% !important;
}

select.select2-hidden-accessible.readonly + .select2-container .select2-selection {
	cursor: not-allowed !important;
	background: #eee !important;
	box-shadow: none;
}

.select2-results__option {
	overflow: hidden;
	text-overflow: ellipsis;
}

select {
	font-size: 13px;
}

.select2-selection__rendered {
	padding-left: 4px !important;
	font-size: 13px;
}

.select2-results__options[id*="select2-prio2"] .select2-results__option:nth-child(2),
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="1"] {
	color: #cccccc;
}

.select2-results__options[id*="select2-prio2"] .select2-results__option:nth-child(3),
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="2"] {
	color: #808080;
}

.select2-results__options[id*="select2-prio2"] .select2-results__option:nth-child(4),
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="3"] {
	color: #008000;
}

.select2-results__options[id*="select2-prio2"] .select2-results__option:nth-child(5),
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="4"] {
	color: #ff9933;
}

.select2-results__options[id*="select2-prio2"] .select2-results__option:nth-child(6),
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="5"] {
	color: #ff0000;
}

span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="1"],
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="2"],
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="3"],
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="4"],
span [aria-labelledby=select2-prio2-container] .select2-selection__rendered[title="5"] {
	font-weight: bold !important;
}

.wide {
	white-space: nowrap;
}
*/

/** fix select2 not visible on custom modal **/
.select2-container--open {
    z-index: 9999999
}
