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

.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;
}

/** add arrow to select2's multiple selectboxes **/

.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;
}

/** AD2 ***************************************************************************************************************************************************/

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

select {
	font-size: 13px;
}

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

/** color select box options and selection in dashboard **/

.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; /** LOWEST **/
}

.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; /** LOW **/
}

.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; /** NORMAL **/
}

.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; /** HIGH **/
}

.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; /** HIGHEST **/
}

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;
}