/* Custom Select v1.0.0 - standalone, no bootstrap-select dependency */

select.cs-select-hidden { display: none !important; }

.cs-select {
  position: relative;
  display: inline-block;
  width: auto;
  vertical-align: middle;
}

.cs-select > button.dropdown-toggle {
  position: relative;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  outline: none;
  overflow: hidden;
}

.cs-select > button.dropdown-toggle:hover,
.cs-select > button.dropdown-toggle:focus {
  background-color: #e6e6e6;
  border-color: #adadad;
  outline: none;
  box-shadow: none;
}

.cs-select > button.dropdown-toggle.cs-placeholder,
.cs-select > button.dropdown-toggle.cs-placeholder:hover,
.cs-select > button.dropdown-toggle.cs-placeholder:focus {
  color: #999;
}

.cs-select > button.dropdown-toggle.disabled,
.cs-select > button.dropdown-toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
  background-color: #fff;
}

.cs-select.failed > button.dropdown-toggle {
  border-color: #a94442;
}

.cs-filter-option {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-filter-option-inner,
.cs-filter-option-inner-inner {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-caret {
  flex-shrink: 0;
  margin-left: 6px;
}

.cs-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1060;
  display: none;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  min-width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  overflow: hidden;
}

.cs-menu-right {
  left: auto;
  right: 0;
}

.cs-select.open > .cs-menu {
  display: block;
}

.cs-select.open > button.dropdown-toggle {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.cs-header {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: bold;
  border-bottom: 1px solid #e5e5e5;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-header-close {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0;
  float: right;
}

.cs-searchbox {
  padding: 4px 8px;
  border-bottom: 1px solid #e5e5e5;
}

.cs-searchbox input.form-control {
  width: 100%;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  outline: none;
}

.cs-searchbox input.form-control:focus {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.cs-actionsbox {
  padding: 4px 8px;
  border-bottom: 1px solid #e5e5e5;
}

.cs-actionsbox .btn-group { width: 100%; }

.cs-actionsbox .cs-select-all,
.cs-actionsbox .cs-deselect-all {
  width: 50%;
}

.cs-inner {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}

.cs-inner > li > a {
  display: block;
  padding: 4px 16px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  clear: both;
  font-weight: normal;
}

.cs-inner > li > a:hover,
.cs-inner > li:hover > a {
  background-color: #f5f5f5;
  color: #262626;
  outline: none;
}

.cs-inner > li.selected > a,
.cs-inner > li.selected > a:hover {
  outline: none;
}

.cs-inner > li.disabled > a {
  color: #777;
  cursor: not-allowed;
}

.cs-inner > li.hidden {
  display: none;
}

.cs-inner > li.cs-dropdown-header {
  display: block;
  padding: 3px 16px;
  font-size: 12px;
  line-height: 1.42857143;
  color: #777;
  white-space: nowrap;
  font-weight: bold;
  text-transform: uppercase;
  cursor: default;
}

.cs-check-mark {
  display: none;
  margin-right: 6px;
}

.cs-show-tick .cs-check-mark {
  display: inline-block;
  width: 1em;
}

.cs-show-tick .cs-inner > li.selected > a .cs-check-mark::before {
  content: '\2714';
  font-size: 12px;
}

.cs-show-tick .cs-inner > li:not(.selected) > a .cs-check-mark::before {
  content: '';
}
