/*
Author: David Qin
E-mail: david@hereapp.cn
Date: 2014-11-05
*/

.searchable-select-hide {
  display: none;
}

.searchable-select {
  display: inline-block;
  width: 70%;
  font-size: 14px;
  line-height: 1.428571429;
  color: #666;
  vertical-align: middle;
  position: relative;
  outline: none;
}

.searchable-select-holder{
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  min-height: 32px;
  box-sizing: border-box;
  -webkit-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;
  padding: 0 15px;
  line-height: 32px;
  text-align: left;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.searchable-select-caret {
  position: absolute;
  width: 0;
  height: 0;
  box-sizing: border-box;
  border-color: #666 transparent transparent transparent;
  top: 3px;
  bottom: 0;
  border-style: solid;
  border-width: 5px;
  margin: auto;
  right: 10px;
}

.searchable-select-dropdown {
  position: absolute;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 4px;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 10000;
  max-height: 200px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
}

.searchable-select-input {
  margin-top: 5px;
  border: 1px solid #ccc;
  outline: none;
  padding: 4px 10px;
  width: 100%;
  box-sizing: border-box;
  width: 100%;
}

.searchable-scroll {
  margin-top: 4px;
  position: relative;
}

.searchable-has-privious {
  top: 0;
}

.searchable-has-next {
  bottom: 0;
}

.searchable-has-next {
  text-align: left;
  z-index: 10;
  background-color: #f4f4f4;
  line-height: 32px;
  cursor: pointer;
  padding: 0 15px;
}

.searchable-select-items {
  max-height: 150px;
  overflow-y: scroll;
  position: relative;
}

.searchable-select-items::-webkit-scrollbar {
  display: none;
}

.searchable-select-item {
  padding: 5px 10px;
  cursor: pointer;
  min-height: 32px;
  box-sizing: border-box;
  text-align: left;
}

.searchable-select-item.hover {
  background: #f4f4f4;
  color: #666;
}

.searchable-select-item.selected {
  background: #009B72;
  color: white;
}

@media only screen and (max-width: 640px) {
  .searchable-select-dropdown {
    position: fixed;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-height: 1000px;
  }
  .searchable-scroll {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    bottom: 0;
    padding-bottom: 0;
  }
  .searchable-select-items {
    position: absolute;
    max-height: 1000px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .searchable-background {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.65);
  }
  .searchable-select-dropdown {
    box-shadow: none;
  }
  .searchable-select-item {
    padding: 5px 15px;
  }
}