/*===== Select2 plugin =====*/
.select2 {
	width: 100%;
}

.select2-container {
	margin: 0;
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

.select2-container .select2-choice {
	display: block;
	height: var(--element-height);
	background-color: var(--gray-light);
	padding: 0 0 0 10px;
	overflow: hidden;
	position: relative;
	border: 2px solid var(--gray-ultra-light);
	white-space: nowrap;
	line-height: 32px;
	color: var(--color);
	background-clip: padding-box;
	user-select: none;
}

.select2-container .select2-choice:hover {
	background-color: #fcfcfc;
}

.select2-container.select2-drop-above .select2-choice {
	border-bottom-color: var(--gray-ultra-light);
}

.select2-container .select2-choice > .select2-chosen {
	margin-right: 31px;
	display: block;
	overflow: hidden;
	font-weight: 500;
	text-align: left;
	white-space: nowrap;
	-ms-text-overflow: ellipsis;
	-o-text-overflow: ellipsis;
	text-overflow: ellipsis;
}

.select2-container .select2-choice abbr {
	display: none;
	width: 14px;
	height: 14px;
	position: absolute;
	right: 9px;
	top: 9px;
	z-index: 100;
	background-color: #3C9AC9;
	background-position: 4px 4px;
	cursor: pointer;
	outline: 0;
}

.select2-container.select2-allowclear .select2-choice abbr {
	display: inline-block;
}

.select2-container .select2-choice abbr:hover {
	background-color: #CA665B;
	cursor: pointer;
}

.select2-drop-mask {
	border: 0;
	margin: 0;
	padding: 0;
	position: fixed;
	left: 0;
	top: 0;
	min-height: 100%;
	min-width: 100%;
	height: auto;
	width: auto;
	opacity: 0;
	z-index: 9998;
	background-color: var(--bg);
	filter: alpha(opacity=0);
}

.select2-drop {
	width: 100%;
	position: absolute;
	z-index: 9999;
	top: 100%;
	background-color: var(--bg);
	color: var(--color);
	border-bottom: 1px solid var(--gray-ultra-light);
}

.select2-drop-auto-width {
	border-top: 1px solid #aaa;
	width: auto;
}

.select2-drop-auto-width .select2-search {
	padding-top: 4px;
}

.select2-drop.select2-drop-above {
	border-top: 1px solid var(--gray-ultra-light);
	border-bottom: 0;
}

.select2-drop.select2-drop-above.select2-drop-active {
	border-top: 1px solid var(--gray-ultra-light);
}

.select2-container .select2-choice .select2-arrow {
	width: 12px;
	height: 6px;
	right: 12px;
	top: 13px;
	z-index: 99;
	display: inline-block;
	position: absolute;
	-webkit-background-clip: padding-box;
	-moz-background-clip: padding;
	background-clip: padding-box;
}

.select2-container .select2-choice .select2-arrow b {
	display: block;
	width: 12px;
	height: 6px;
	background: url(../images/forms/vertical_arrows.png) no-repeat 0 0;
}

.select2-search {
	display: block;
	width: 100%;
	min-height: 26px;
	margin: 0;
	padding: 4px;
	border-left: 1px solid var(--gray-ultra-light);
	border-right: 1px solid var(--gray-ultra-light);
	position: relative;
	z-index: 10000;
	white-space: nowrap;
}

.select2-search input {
	width: 100%;
	height: auto !important;
	padding: 7px 20px 6px 30px !important;
	margin: 0;
	outline: 0;
	border: 2px solid var(--gray-ultra-light);
	background: var(--bg) url(../images/interface/filter.png) no-repeat 10px;
}

.select2-container-active .select2-choice,
.select2-container-active .select2-choices {
	outline: none;
}

.select2-dropdown-open .select2-choice {
	background-color: var(--bg);
}

.select2-dropdown-open.select2-drop-above .select2-choice,
.select2-dropdown-open.select2-drop-above .select2-choices {
	border: 2px solid var(--gray-ultra-light);
}

.select2-dropdown-open .select2-choice .select2-arrow b {
	background-position: 0 -6px;
}


/* Results */

.select2-results {
	max-height: 290px;
	margin: 0;
	padding: 0;
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .1);
}

.select2-results ul.select2-result-sub {
	margin: 0 -1px;
	padding-left: 0;
}

.select2-results ul.select2-result-sub > li .select2-result-label {
	padding-left: 20px;
}

.select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
	padding-left: 40px;
}

.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
	padding-left: 60px;
}

.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
	padding-left: 80px;
}

.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
	padding-left: 100px;
}

.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
	padding-left: 110px;
}

.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
	padding-left: 120px;
}

.select2-results li {
	list-style: none;
	display: list-item;
	border-left: 1px solid var(--gray-ultra-light);
	border-right: 1px solid var(--gray-ultra-light);
	height: var(--element-height);
	display: flex;
	align-items: center;
}

.select2-results li.select2-result-with-children > .select2-result-label {
	font-weight: bold;
	color: #D65C4F;
}

.select2-results .select2-result-label {
	padding: 9px 10px 10px 10px;
	margin: 0;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	min-height: 1em;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.select2-results .select2-highlighted {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--bg);
}

.select2-results li em {
	background: #feffde;
	font-style: normal;
}

.select2-results .select2-highlighted em {
	background: transparent;
}

.select2-results .select2-highlighted ul {
	background: var(--bg);
	color: #000;
}

.select2-results .select2-no-results,
.select2-results .select2-searching,
.select2-results .select2-selection-limit {
	background: var(--bg);
	display: list-item;
	padding: 6px 10px;
	font-size: 12px;
	border-top: 1px solid var(--gray-ultra-light);
	color: #999;
	line-height: 16px;
	display: flex;
	align-items: center;
}

.select2-results .select2-disabled.select2-highlighted {
	color: #666;
	background: #f4f4f4;
	display: list-item;
	cursor: default;
}

.select2-results .select2-disabled {
	background: #f4f4f4;
	display: list-item;
	cursor: default;
}

.select2-results .select2-selected {
	display: none;
}

.select2-more-results.select2-active {
	background: #f4f4f4 url('../images/interface/loader.gif') no-repeat 100%;
}

.select2-more-results {
	background: #f5f5f5;
	display: list-item;
}

.select2-container.select2-container-disabled .select2-choice {
	background-color: #f5f5f5;
	background-image: none;
	border: 2px solid var(--gray-ultra-light);
	cursor: default;
}

.select2-container.select2-container-disabled .select2-choice .select2-arrow {
	background-color: #f4f4f4;
	background-image: none;
	border-left: 0;
}

.select2-container.select2-container-disabled .select2-choice abbr {
	display: none;
}


/* Multiselect */


.select2-container-multi .select2-choices {
	height: auto;
	margin: 0;
	position: relative;
	border: 2px solid var(--gray-light);
	cursor: text;
	overflow: hidden;
	background-color: var(--gray-ultra-light);
	border-radius: var(--border-radius);
	min-height: 34px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.select2-locked {
	padding: 3px 5px 3px 5px !important;
}

.select2-container-multi.select2-container-active .select2-choices {
	border: 2px solid var(--gray-ultra-light);
	outline: none;
}

.select2-container-multi .select2-choices li {
	float: left;
	list-style: none;
}

.select2-container-multi .select2-choices .select2-search-field {
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.select2-container-multi .select2-choices .select2-search-field input {
	padding: 6px 10px 8px 10px;
	margin: 0;
	outline: 0;
	border: 0;
	box-shadow: none;
	background: var(--gray-ultra-light) !important;
	display: flex;
	align-items: center;
}

.select2-container-multi .select2-choices .select2-search-field input.select2-active {
	background: var(--bg) url('../images/interface/loader.gif') no-repeat 100% !important;
}

.select2-default {
	color: var(--color) !important;
}

.select2-container-multi .select2-choices .select2-search-choice {
	padding: 6px 12px 4px 26px;
	margin: 0 4px;
	position: relative;
	color: var(--bg);
	background-color: var(--primary-light);
	font-size: var(--font-size-s);
	color: var(--primary);
	cursor: default;
	background-clip: padding-box;
	user-select: none;
}

.select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
	cursor: default;
}

.select-disabled.select2-container-multi {
	width: 100% !important;
}

.select2-search-choice-close {
	display: flex;
	place-content: center;
	width: 12px;
	height: 12px;
	position: absolute;
	right: 3px;
	top: 6px;
	outline: none;
}

.select2-search-choice-close:after{
	content: "x";
	display: inline;
	position: absolute;
	top: -1px;
}

.select2-container-multi .select2-search-choice-close {
	left: 8px;
}

.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
	opacity: 0.6;
	filter: alpha(Opacity=60);
}

.select2-container-multi.select2-container-disabled .select2-choices {
	background-color: #FCFCFC;
	background-image: none;
	border: 2px solid var(--gray-ultra-light);
	cursor: default;
}

.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
	padding: 7px 12px 6px 12px;
	border: 2px solid var(--gray-ultra-light);
	background-color: #F8F8F8;
	color: #999;
}

.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
	display: none;
	background: none;
}


/* General */

.select2-result-selectable .select2-match, .select2-result-unselectable .select2-match {
	text-decoration: underline;
}

.select2-offscreen, .select2-offscreen:focus {
	clip: rect(0 0 0 0) !important;
	width: 1px !important;
	height: 1px !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	outline: 0 !important;
	left: 0px !important;
	top: 0px !important;
}

.select2-display-none {
	display: none;
}

.select2-measure-scrollbar {
	position: absolute;
	top: -10000px;
	left: -10000px;
	width: 100px;
	height: 100px;
	overflow: scroll;
}

.select2-hidden-accessible {
	display: none !important;
}
