﻿
.dropdown {
    position: relative;
    margin-bottom: 10px;
}

.dropdown-label {
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
}

.dropdown .dropdown-list {
    background: #fff;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    max-height: 57vh;
    overflow-y: auto;
    display: none;
    z-index: 10;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    padding: 10px;
}

    .dropdown .dropdown-list .hide-div {
        width: 100%;
        height: 40px;
        background: white;
        position: sticky;
        top: -40px;
        z-index: 10;
        margin-top: -40px
    }

    .dropdown .dropdown-list .form-control {
        position: sticky;
        top: 0;
        z-index: 9;
    }

.dropdown .checkbox {
    opacity: 0;
    transition: opacity 0.2s;
}

.location-checkbox {
    margin-left: 20px;
}

.dropdown .dropdown-label {
    display: block;
    font-size: 16px;
    line-height: 21px;
    background: #fff;
    cursor: pointer;
    position: relative;
    padding: 8px 15px;
    /*border-radius: 10px;*/
    border-radius: .375rem;
    border: 1px solid #CFE8FF;
}

.dropdown.open .dropdown-list {
    display: block;
}

.dropdown.open .checkbox {
    transition: 2s opacity 2s;
    opacity: 1;
}

.checkbox {
    padding: 10px;
    border-bottom: 1px solid #E6F3FF;
}

    .checkbox:last-child {
        margin-bottom: 0;
    }

    .checkbox .checkbox-custom {
        display: none;
    }

    .checkbox .checkbox-custom-label {
        display: inline-block;
        position: relative;
        vertical-align: middle;
        cursor: pointer;
        line-height: 16px;
        font-size: 16px;
        margin-right: 0;
        margin-left: 0;
        color: black;
    }

    .checkbox .checkbox-custom + .checkbox-custom-label:before {
        content: '';
        background: transparent;
        display: inline-block;
        vertical-align: middle;
        margin-right: 10px;
        text-align: center;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(0, 0, 0, .3);
        border-radius: 2px;
        margin-top: -2px;
    }

    .checkbox .checkbox-custom:checked + .checkbox-custom-label:after {
        content: '';
        position: absolute;
        top: 3px;
        left: 6px;
        height: 9px;
        padding: 2px;
        transform: rotate(45deg);
        text-align: center;
        border: solid #1CA3DD;
        border-width: 0 2px 2px 0;
    }
