/*!
 * Selectr 2.4.0
 * https://github.com/Mobius1/Selectr
 *
 * Released under the MIT license
 */
.selectr-container {
    position: relative;
}

.selectr-container li {
    list-style: none;
}

.selectr-hidden {
    position: absolute;
    overflow: hidden;
    clip: rect(0px, 0px, 0px, 0px);
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0 none;
}

.selectr-visible {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 11;
}

.selectr-desktop.multiple .selectr-visible {
    display: none;
}

.selectr-desktop.multiple.native-open .selectr-visible {
    top: 100%;
    min-height: 200px !important;
    height: auto;
    opacity: 1;
    display: block;
}

.selectr-container.multiple.selectr-mobile .selectr-selected {
    z-index: 0;
}

.selectr-selected {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    padding: 7px 28px 7px 14px;
    cursor: pointer;
    border: 1px solid  $jse-grey;
    border-radius: 3px;
    background-color: $jse-white;
}

.selectr-selected::before {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    content: '';
    -o-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -ms-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -moz-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    -webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
    transform: rotate(0deg) translate3d(0px, -50%, 0px);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: #6c7a86 transparent transparent;
}

.selectr-container.open .selectr-selected::before,
.selectr-container.native-open .selectr-selected::before {
    border-width: 0 4px 4px 4px;
    border-style: solid;
    border-color: transparent transparent #6c7a86;
}

.selectr-label {
    display: none;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.selectr-placeholder {
    color: #6c7a86;
}

.selectr-tags {
    margin: 0;
    padding: 0;
    white-space: normal;
}

.has-selected .selectr-tags {
    margin: 0 0 -2px;
}

.selectr-tag {
    list-style: none;
    position: relative;
    float: left;
    padding: 2px 25px 2px 8px;
    margin: 0 2px 2px 0;
    cursor: default;
    color: $jse-white;
    border: medium none;
    border-radius: 10px;
    background: #acb7bf none repeat scroll 0 0;
}

.selectr-container.multiple.has-selected .selectr-selected {
    padding: 5px 28px 5px 5px;
}

.selectr-options-container {
    position: absolute;
    z-index: 10000;
    top: calc(100% - 1px);
    left: 0;
    display: none;
    box-sizing: border-box;
    width: 100%;
    border-width: 0 1px 1px;
    border-style: solid;
    border-color: transparent $jse-grey $jse-grey;
    border-radius: 0 0 3px 3px;
    background-color: $jse-white;
}

.selectr-container.open .selectr-options-container {
    display: block;
}

.selectr-input-container {
    position: relative;
    display: none;
}

.selectr-clear,
.selectr-input-clear,
.selectr-tag-remove {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 20px;
    height: 20px;
    padding: 0;
    cursor: pointer;
    -o-transform: translate3d(0px, -50%, 0px);
    -ms-transform: translate3d(0px, -50%, 0px);
    -moz-transform: translate3d(0px, -50%, 0px);
    -webkit-transform: translate3d(0px, -50%, 0px);
    transform: translate3d(0px, -50%, 0px);
    border: medium none;
    background-color: transparent;
    z-index: 11;
}

.selectr-clear,
.selectr-input-clear {
    display: none;
}

.selectr-container.has-selected .selectr-clear,
.selectr-input-container.active .selectr-input-clear {
    display: block;
}

.selectr-selected .selectr-tag-remove {
    right: 2px;
}

.selectr-clear::before,
.selectr-clear::after,
.selectr-input-clear::before,
.selectr-input-clear::after,
.selectr-tag-remove::before,
.selectr-tag-remove::after {
    position: absolute;
    top: 5px;
    left: 9px;
    width: 2px;
    height: 10px;
    content: ' ';
    background-color: #6c7a86;
}

.selectr-tag-remove::before,
.selectr-tag-remove::after {
    top: 4px;
    width: 3px;
    height: 12px;
    background-color: $jse-white;
}

.selectr-clear:before,
.selectr-input-clear::before,
.selectr-tag-remove::before {
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.selectr-clear:after,
.selectr-input-clear::after,
.selectr-tag-remove::after {
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.selectr-input-container.active,
.selectr-input-container.active .selectr-clear {
    display: block;
}

.selectr-input {
    top: 5px;
    left: 5px;
    box-sizing: border-box;
    width: calc(100% - 30px);
    margin: 10px 15px;
    padding: 7px 30px 7px 9px;
    border: 1px solid  $jse-grey;
    border-radius: 3px;
}

.selectr-notice {
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 8px 16px;
    border-top: 1px solid  $jse-grey;
    border-radius: 0 0 3px 3px;
    background-color: $jse-white;
}

.selectr-container.notice .selectr-notice {
    display: block;
}

.selectr-container.notice .selectr-selected {
    border-radius: 3px 3px 0 0;
}

.selectr-options {
    position: relative;
    top: calc(100% + 2px);
    display: none;
    overflow-x: auto;
    overflow-y: scroll;
    max-height: 200px;
    margin: 0;
    padding: 0;
}

.selectr-container.open .selectr-options,
.selectr-container.open .selectr-input-container,
.selectr-container.notice .selectr-options-container {
    display: block;
}

.selectr-option {
    position: relative;
    display: block;
    padding: 5px 20px;
    list-style: outside none none;
    cursor: pointer;
    font-weight: normal;
}

.selectr-options.optgroups > .selectr-option {
    padding-left: 25px;
}

.selectr-optgroup {
    font-weight: bold;
    padding: 0;
}

.selectr-optgroup--label {
    font-weight: bold;
    margin-top: 10px;
    padding: 5px 15px;
}

.selectr-match {
    text-decoration: underline;
}

.selectr-option.selected {
    background-color: #ddd;
}

.selectr-option.active {
    color: $jse-white;
    background-color: #5897fb;
}

.selectr-option.disabled {
    opacity: 0.4;
}

.selectr-option.excluded {
    display: none;
}

.selectr-container.open .selectr-selected {
    border-color:  $jse-grey  $jse-grey transparent  $jse-grey;
    border-radius: 3px 3px 0 0;
}

.selectr-container.open .selectr-selected::after {
    -o-transform: rotate(180deg) translate3d(0px, 50%, 0px);
    -ms-transform: rotate(180deg) translate3d(0px, 50%, 0px);
    -moz-transform: rotate(180deg) translate3d(0px, 50%, 0px);
    -webkit-transform: rotate(180deg) translate3d(0px, 50%, 0px);
    transform: rotate(180deg) translate3d(0px, 50%, 0px);
}

.selectr-disabled {
    opacity: .6;
}

.selectr-empty,
.has-selected .selectr-placeholder {
    display: none;
}

.has-selected .selectr-label {
    display: block;
}

/* TAGGABLE */
.taggable .selectr-selected {
    padding: 4px 28px 4px 4px;
}

.taggable .selectr-selected::after {
    display: table;
    content: " ";
    clear: both;
}

.taggable .selectr-label {
    width: auto;
}

.taggable .selectr-tags {
    float: left;
    display: block;
}

.taggable .selectr-placeholder {
    display: none;
}

.input-tag {
    float: left;
    min-width: 90px;
    width: auto;
}

.selectr-tag-input {
    border: medium none;
    padding: 3px 10px;
    width: 100%;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
}

.selectr-input-container.loading::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    content: '';
    -o-transform: translate3d(0px, -50%, 0px);
    -ms-transform: translate3d(0px, -50%, 0px);
    -moz-transform: translate3d(0px, -50%, 0px);
    -webkit-transform: translate3d(0px, -50%, 0px);
    transform: translate3d(0px, -50%, 0px);

    -o-transform-origin: 50% 0 0;
    -ms-transform-origin: 50% 0 0;
    -moz-transform-origin: 50% 0 0;
    -webkit-transform-origin: 50% 0 0;
    transform-origin: 50% 0 0;

    -moz-animation: 500ms linear 0s normal forwards infinite running selectr-spin;
    -webkit-animation: 500ms linear 0s normal forwards infinite running selectr-spin;
    animation: 500ms linear 0s normal forwards infinite running selectr-spin;
    border-width: 3px;
    border-style: solid;
    border-color: #aaa #ddd #ddd;
    border-radius: 50%;
}

@-webkit-keyframes selectr-spin {
    0% {
        -webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
        transform: rotate(0deg) translate3d(0px, -50%, 0px);
    }
    100% {
        -webkit-transform: rotate(360deg) translate3d(0px, -50%, 0px);
        transform: rotate(360deg) translate3d(0px, -50%, 0px);
    }
}
@keyframes selectr-spin {
    0% {
        -webkit-transform: rotate(0deg) translate3d(0px, -50%, 0px);
        transform: rotate(0deg) translate3d(0px, -50%, 0px);
    }
    100% {
        -webkit-transform: rotate(360deg) translate3d(0px, -50%, 0px);
        transform: rotate(360deg) translate3d(0px, -50%, 0px);
    }
}
.selectr-container.open.inverted .selectr-selected {
    border-color: transparent  $jse-grey  $jse-grey;
    border-radius: 0 0 3px 3px;
}

.selectr-container.inverted .selectr-options-container {
    border-width: 1px 1px 0;
    border-color:  $jse-grey  $jse-grey transparent;
    border-radius: 3px 3px 0 0;
    background-color: $jse-white;
}

.selectr-container.inverted .selectr-options-container {
    top: auto;
    bottom: calc(100% - 1px);
}

.selectr-container ::-webkit-input-placeholder {
    color: #6c7a86;
    opacity: 1;
}

.selectr-container ::-moz-placeholder {
    color: #6c7a86;
    opacity: 1;
}

.selectr-container :-ms-input-placeholder {
    color: #6c7a86;
    opacity: 1;
}

.selectr-container ::placeholder {
    color: #6c7a86;
    opacity: 1;
}
