/* Dropdown control */
.selectBox-dropdown,
.selectBox-dropdown:hover {
	width: 100%; /* width = (desired width) - padding-right */
	position: relative;
	border: solid 1px #cccccc;
    border-radius: 4px;
    font-size: 14px;
    padding: 10px 8px 8px 8px;
	line-height: 1em;
    /*height: 36px;*/
	text-decoration: none;
	color: #000;
	outline: none;
	vertical-align: middle;
	background: #ffffff;
	/*background: -moz-linear-gradient(top, #F8F8F8 1%, #E1E1E1 100%);*/
	/*background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #F8F8F8), color-stop(100%, #E1E1E1));*/
	/*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F8F8F8', endColorstr='#E1E1E1', GradientType=0);*/
	/*-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .75);*/
	/*-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .75);*/
	/*box-shadow: 0 1px 0 rgba(255, 255, 255, .75);*/
	/*-webkit-border-radius: 4px;*/
	/*-moz-border-radius: 4px;*/
	/*border-radius: 4px;*/
	display: inline-block;
	cursor: pointer;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    overflow-y: auto;
}

/*.selectBox-dropdown:focus,*/
/*.selectBox-dropdown:focus .selectBox-arrow {*/
	/*border-color: #666;*/
/*}*/

/*.selectBox-dropdown.selectBox-menuShowing {*/
	/*-moz-border-radius-bottomleft: 0;*/
	/*-moz-border-radius-bottomright: 0;*/
	/*-webkit-border-bottom-left-radius: 0;*/
	/*-webkit-border-bottom-right-radius: 0;*/
	/*border-bottom-left-radius: 0;*/
	/*border-bottom-right-radius: 0;*/
/*}*/

.selectBox-dropdown .selectBox-label {
	width: 100%;
	/*padding: 0 0.5em;*/
	display: inline-block;
    line-height: 1em;
	white-space: nowrap;
    overflow:  hidden;
	text-overflow: ellipsis;
    vertical-align: middle;
    /*height: 20px;*/
}

.selectBox-dropdown .selectBox-arrow {
	position: absolute;
	top: 0;
	right: 0;
	width: 34px;
	height: 100%;
	/*background: url(../images/selectBox-arrow.gif) 50% center no-repeat;*/
    background: white url('../images/sudrf/red_arrow.png') center center no-repeat;
	border-left: solid 1px #CCCCCC;
    border-radius: 0 4px 4px 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}


/* Dropdown menu */
.selectBox-dropdown-menu {
	position: absolute;
	z-index: 99999;
	/*max-height: 200px;*/
	border: solid 1px #BBB; /* should be the same border width as .selectBox-dropdown */
	background: #FFF;
	-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
	-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
	overflow: auto;
}


/* Inline control */
.selectBox-inline {
	width: 250px;
	outline: none;
	border: solid 1px #BBB;
	background: #FFF;
	display: inline-block;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	overflow: auto;
}

.selectBox-inline:focus {
	border-color: #666;
}


/* Options */
.selectBox-options,
.selectBox-options li,
.selectBox-options li a {
	list-style: none;
	display: block;
	cursor: pointer;
	padding: 0;
	margin: 0;
}

.selectBox-options li a {
	line-height: 18px;
    min-height: 18px;
	padding: 2px .4em;
	white-space: nowrap;
	overflow: hidden;
	background: 6px center no-repeat;
    color: black;
    font-family: Arial,sans-serif;
    font-size: 14px;
}

.selectBox-options li.option-in-optgroup a {
    padding-left: 30px !important;
}

.selectBox-options li.selectBox-hover a {
	/*background-color: #EEE;*/
    background-color: #0A246A;
    color: white !important;
}

.selectBox-options li.selectBox-disabled a {
	color: #888;
	background-color: transparent;
}

.selectBox-options li.selectBox-disabled.selectBox-hover a {
    /*background-color: #EEE;*/
    background-color: #0A246A;
    color: #888 !important;
}

.selectBox-options li.selectBox-selected a {
	/*background-color: #C8DEF4;*/
    background-color: #0A246A;
    color: white !important;
}

.selectBox-options .selectBox-optgroup {
	color: black;
	/*background: #dddddd;*/
	font-weight: bold;
	line-height: 18px;
    font-size: 14px;
	padding: 2px .4em;
	white-space: nowrap;
}


/* Disabled state */
.selectBox.selectBox-disabled {
	color: #888 !important;
}

.selectBox-dropdown.selectBox-disabled .selectBox-arrow {
	opacity: .5;
	filter: alpha(opacity=50);
	border-color: #666;
}

.selectBox-inline.selectBox-disabled {
	color: #888 !important;
}

.selectBox-inline.selectBox-disabled .selectBox-options a {
	background-color: transparent !important;
}



/* внутри элемента с классом standartSizeSelectBox selectBox отрисуется размером как обычный селект */
.standartSizeSelectBox .selectBox-dropdown,
.standartSizeSelectBox .selectBox-dropdown:hover {
    overflow:  hidden;
    width: 100%; /* width = (desired width) - padding-right */
    position: relative;
    border: solid 1px #cccccc;
    border-radius: 4px;
    font-size: 12px;
    padding: 3px 3px 3px 3px;
    line-height: 1.4em;
    height: 24px;
    text-decoration: none;
    color: #000;
    outline: none;
    vertical-align: middle;
    background: #ffffff;
    /*background: -moz-linear-gradient(top, #F8F8F8 1%, #E1E1E1 100%);*/
    /*background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #F8F8F8), color-stop(100%, #E1E1E1));*/
    /*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F8F8F8', endColorstr='#E1E1E1', GradientType=0);*/
    /*-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .75);*/
    /*-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .75);*/
    /*box-shadow: 0 1px 0 rgba(255, 255, 255, .75);*/
    /*-webkit-border-radius: 4px;*/
    /*-moz-border-radius: 4px;*/
    /*border-radius: 4px;*/
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.standartSizeSelectBox .selectBox-dropdown .selectBox-arrow {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    /*background: url(../images/selectBox-arrow.gif) 50% center no-repeat;*/
    background: white url('../images/sudrf/red_arrow.png') center center no-repeat;
    border-left: solid 1px #CCCCCC;
    border-radius: 0 4px 4px 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}


.standartSizeSelectBox.selectBox-options li a {
    line-height: 18px;
    padding: 2px .4em;
    white-space: nowrap;
    overflow: hidden;
    background: 6px center no-repeat;
    color: black;
    font-family: Arial,sans-serif;
    font-size: 12px;
}

.standartSizeSelectBox.selectBox-options li.selectBox-hover a {
    /*background-color: #EEE;*/
    background-color: #0A246A;
    color: white !important;
}

.standartSizeSelectBox.selectBox-options li.selectBox-disabled a {
    color: #888;
    background-color: transparent;
}

.standartSizeSelectBox.selectBox-options li.selectBox-selected a {
    /*background-color: #C8DEF4;*/
    background-color: #0A246A;
    color: white !important;
}