/**
 * @author zhixin wen <wenzhixin2010@gmail.com>
 *  http://wenzhixin.net.cn/p/multiple-select/
 */

.ms-parent {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	background-color: #fff;
}


.ms-choice {
	cursor: pointer;
	margin:0px;
	display: block;
	overflow: hidden;
	position: relative;
	direction:rtl;
	text-align:right;
	height: 30px;
	line-height: 30px;
	padding: 0px 0px 0px 0px;
	font: 12px/30px Tahoma, Arial, sans-serif;
	color: #755700;
	border:solid 1px #c0c0c0;
	/*
		text-shadow: 1px 1px #FFF;
	border: 1px solid #ccc;
	border-bottom-color: #b3b3b3;
    */
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	/*
	box-shadow: inset 1px -1px #F1F1F1, inset -1px 0 #F1F1F1, 0 1px 2px rgba(0,0,0,0.1);
	*/
	white-space: nowrap;
	text-decoration: none;
}

.ms-choice .trigger {
	position: absolute;
	top: 0;
	left: 0;
	width: 33px;
	height: 100%;
	/*border-right: 1px solid #CCC;*/
	background-color: #fff;
}
.ms-choice .trigger .arrow {
	position: absolute;
	top: 12px;
	left: 10px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #000;
	width: 0;
	height: 0;
	overflow: hidden;
	opacity: 0.3;
	filter: alpha(opacity=30);
}
.ms-choice:hover .arrow {
	opacity: 1;
	filter: alpha(opacity=100);
}



.ms-choice.disabled {

	background-color: #fff;
	background-image: none;
	/*
	border: 1px solid #ddd;
		*/
	cursor: default;
}

.ms-choice > span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	float: right;
	padding-right: 10px;
	background-color: #fff;
}

.ms-choice > span.placeholder {
	color: #755700;
}

.ms-choice > div {
	/* 
	float: right;
	width: 20px;
	height: 25px;
	background: url('multiple-select.png') right top no-repeat; */
}

.ms-choice > div.open {
	/* background: url('multiple-select.png') left top no-repeat; */
}

.ms-drop {
	overflow: hidden;
	display: none;
	margin-top: -1px;
	padding: 0;
	position: absolute;
	z-index: 1000;
	top: 100%;
	right:-1px;
	background: #fff;
	color: #755700;
	border: 1px solid #c0c0c0;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
	-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
	box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
	font-size:12px;
}


.ms-drop ul {
	overflow: auto;
	margin: 0;
	padding: 5px 2px;
}

.ms-drop ul > li {
	list-style: none;
	display: list-item;
	background-image: none;
	position: static;
}

.ms-drop ul > li .disabled {
	/*
	opacity: .35;
	filter: Alpha(Opacity=35);
	*/

}

.ms-drop ul > li.multiple {
	display: block;
	float: right;
}

.ms-drop ul > li.group {
	clear: both;
}

.ms-drop ul > li.multiple label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ms-drop ul > li label.optgroup {
	font-weight: bold;
}

.ms-drop input[type="checkbox"] {
	vertical-align: middle;
}
