/* Custom ERM CSS for Select2 (jQuery <select> library) */
.select2-container { min-width: 96px; box-sizing: border-box; color: #000000; }
.select2-container .select2-selection { border-color: #7F9DB9; }
.select2-container.select2-container:hover .select2-selection,
.select2-container.select2-container--focus .select2-selection { border-color: #489FEE; }
.select2-container--open .select2-selection { border-color: #489FEE; }
.select2-dropdown { border-color: #489FEE; background-color: #EFEFEF; }

#ermpage-sidebar .select2-container { display: block; }

.select2-container .select2-dropdown--below { border-radius: 0px; top: -1px; border-top: 1px solid #489FEE; }
.select2-container .select2-dropdown--above { border-radius: 0px; top: 1px; border-bottom: 1px solid #489FEE; }

.select2-container .select2-search .select2-search__field { margin-top: 1px; }


.select2-results__option { min-height: 1.3em; padding: 8px 8px 8px 16px; }

.select2-container .select2-results__option[aria-selected="true"]
{
	color: #FFFFFF;
	background-color: #7F9DB9;
}

.select2-container .select2-results__options[aria-multiselectable="true"] .select2-results__option
{
	padding-left: 24px;
	background-image: url(/images/checkbox_unchecked.png);
	background-position: 4px 9px;
	background-repeat: no-repeat;
}

.select2-container .select2-results__options[aria-multiselectable="true"] .select2-results__option[role="group"]
{
    padding-left: 5px;
	background-image: none;
}

.select2-container .select2-results__options[aria-multiselectable="true"] .select2-results__option[aria-selected="true"]
{
	background-image: url(/images/checkbox_checked.png);
}

.select2-container .select2-results__option--highlighted[aria-selected]
{
	background-color: #C1D2EE;
	color: #000000;
}

.select2-container .select2-selection
{
	display: block;
	min-height: 1.7em;
	line-height: 16px;
	border-radius: 0px;
}

.select2-container .select2-selection--single
{
	height: auto;
}

.select2-container .select2-selection .select2-selection__rendered
{
	color: #000000;
	padding: 0px 2px 0px 4px;
}

.select2-container .select2-selection--single .select2-selection__rendered
{
	padding-right: 20px;
	line-height: 1.58em;
}

.select2-container .select2-selection--multiple
{
	max-height: 200px;
	overflow: auto;
}

.select2-container .select2-selection--multiple .select2-selection__rendered::after
{
	content: '';
	position: absolute;
	border-color: #888 transparent transparent transparent;
	border-style: solid;
	border-width: 5px 4px 0 4px;
	height: 0;
	right: 7px;
	margin-left: -4px;
	margin-top: -1px;
	top: 50%;
	width: 0;
}

.select2-container .select2-selection--single .select2-selection__arrow
{
	top: -1px;
}

.select2-container--open .select2-selection--multiple .select2-selection__rendered::after
{
	border-color: transparent transparent #888 transparent;
	border-width: 0px 4px 5px 4px;
}

.select2-container .select2-selection .select2-selection__choice
{
	display: inline-block;
	position: relative;
	font-size: 1em;
	margin-top: 0px;
	margin: 2px 4px 0px 0px;
	padding: 1px 13px 1px 3px;
	line-height: 0.9em;
	background: #E7E7E7;
	border-color: #BFBFBF;
}

.select2-container .select2-selection .select2-selection__choice .select2-selection__choice__remove
{
	position: absolute;
	right: -3px;
	margin-left: 0px;
	padding: 0px 4px;
	border-radius: 0px 4px 4px 0px;
}

.select2-container .select2-search--inline { padding-right: 8px; }





html.small .select2-container .select2-selection .select2-selection__rendered
{
	font-size: 1.1em;
	line-height: 27px;
}

html.small .select2-container .select2-selection--single .select2-selection__arrow b
{
	margin-top: 1px;
}

html.small :not(.select2).select2-container.select2-container--open
{
	position: fixed !important;
	top: auto !important;
	bottom: -1px !important;
	left: 0px !important;
	right: 0px !important;
	font-size: 1.2em;
	border-top: 1px solid #000000;
	z-index: 1100;
}

html.small .select2-container .select2-results > .select2-results__options
{
	max-height: 320px !important;
}

html.small :not(.select2).select2-container .select2-dropdown
{
	border-left: 0px;
	border-right: 0px;
	border-bottom: 0px;
	border-radius: 0px;
}

html.small .select2-results__option { padding: 8px 8px 8px 16px; }

/*	html.small .select2-container .select2-results__options[aria-multiselectable="true"] .select2-results__option
{
	padding-left: 24px;
	background-position: 4px 9px;
}
*/