/****** dropdown-select *******/

.wrap-dd-select {
    position: relative;
    width: 200px;
    /*margin: 0 auto;*/
    padding: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background: #fff;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 1px rgba(50, 50, 50, 0.1);
    cursor: pointer;
    outline: none;
    font-weight: bold;
    color: #8AA8BD;
}

.wrap-dd-select.disabled {
    cursor: default;
    color: #5B6A7D;
}

.wrap-dd-select:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -3px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #8aa8bd transparent;
}

.wrap-dd-select.disabled:after {
    border: none;
}

.wrap-dd-select .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: white;
    padding: 0;
    border-radius: inherit;
    border: 1px solid rgba(0, 0, 0, 0.17);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-weight: normal;
    list-style: none;
    visibility: hidden;
    max-height: 300px;
    overflow-y: auto;
    /*Provide an auto overflow to display scroll*/
}

.wrap-dd-select .dropdown li.divider {
    padding: 2px 0;
    background: #e6e8ea;
}

.wrap-dd-select .dropdown li.divider-label {
    background: #e6e8ea;
    cursor: default;
    color: #000;
    padding: 10px 0;
}

.wrap-dd-select .dropdown li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #8aa8bd;
    border-bottom: 1px solid #e6e8ea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
    cursor: pointer;
}

.wrap-dd-select .dropdown li i {
    float: right;
    color: inherit;
}

.wrap-dd-select .dropdown li:first-of-type a {
    border-radius: 7px 7px 0 0;
}

.wrap-dd-select .dropdown li:last-of-type a {
    border-radius: 0 0 7px 7px;
    border: none;
}

.wrap-dd-select .dropdown li:hover a {
    background: #f3f8f8;
}

.wrap-dd-select .dropdown:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 100%;
    right: 15px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: #fff transparent;
}

.wrap-dd-select .dropdown:before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 100%;
    right: 13px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.1) transparent;
}

.wrap-dd-select.active .dropdown {
    visibility: visible;
}


/****** dropdown-menu *******/

.wrap-dd-menu {
    /*position: relative;*/
    /*width: 200px;*/
    /*margin: 0 auto;*/
    /*padding: 10px;*/
}

.wrap-dd-menu.disabled {
    cursor: default;
    color: #5B6A7D;
}

.wrap-dd-menu .dropdown {
    position: absolute;
    z-index: 1;
    top: 100%;
    /*left: 0;*/
    right: 0;
    background: white;
    padding: 0;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, 0.17);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-weight: normal;
    list-style: none;
    visibility: hidden;
}

.wrap-dd-menu .dropdown li.divider {
    padding: 2px 0;
    background: #e6e8ea;
}

.wrap-dd-menu .dropdown li.divider-label {
    background: #e6e8ea;
    cursor: default;
    color: #000;
    padding: 10px 0;
}

.wrap-dd-menu .dropdown li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #8aa8bd;
    border-bottom: 1px solid #e6e8ea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
    cursor: pointer;
    text-align: left;
}

.wrap-dd-menu .dropdown li i {
    float: right;
    color: inherit;
}

.wrap-dd-menu .dropdown li:first-of-type a {
    border-radius: 7px 7px 0 0;
}

.wrap-dd-menu .dropdown li:last-of-type a {
    border-radius: 0 0 7px 7px;
    border: none;
}

.wrap-dd-menu .dropdown li:hover a {
    background: #f3f8f8;
}

.wrap-dd-menu .dropdown:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 100%;
    right: 32px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: #fff transparent;
}

.wrap-dd-menu .dropdown:before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 100%;
    right: 30px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.1) transparent;
}

.wrap-dd-menu .dropdown.active {
    visibility: visible;
}