/* The container must be positioned relative: */
.custom-select, .dataTables_length {
  position: relative;
  font-family: Arial;
}

.custom-select select, .dataTables_length select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  background-color: #ffffff;
  display: inline-block;
  width: 150px;
  margin-left: 10px;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 18px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #000000 transparent transparent transparent;
}

.full-width-select + .select-selected:after{
	top: 15px;
	right: 35px;
}
.select-selected.select-arrow-active{
  border-bottom: 1px solid transparent;
}
.full-width-select + .select-selected.select-arrow-active:after{
	top: 9px;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #000000 transparent;
  top: 12px;
}

/* style the items (options), including the selected item: */
.select-selected {
  color: #555555;
  padding: 6px 16px;
  border: 1px solid #000000;
  cursor: pointer;
}
.full-width-select + .select-selected{
	margin-left: 0;
	width: 100%;
	height: 36px;
	padding: 4px 16px;
}
.has-error .select-selected {
	border-color: #a94442!important;
}
.full-width-select + .select-selected + .select-items{
    margin: 0 15px;
}
.select-items div{
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
  padding: 7px 15px;
  cursor: pointer;
}
.full-width-select + .select-selected + .select-items div{
	padding: 5px 15px;
	height: 34px;
}
.select-items div:last-child{
  border-bottom: 1px solid #000000;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: #ffffff;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: #efefef;
}