﻿*, *:before, *:after {
    box-sizing: border-box;
}

*, body, button, input, textarea, select {
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset, img {
    border: 0;
}

address, caption, cite, code, dfn, em, strong, th, var {
    font-style: normal;
    font-weight: normal;
}

ol, ul {
    list-style: none;
}

caption, th {
    text-align: left;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}

q:before, q:after {
    content: '';
}

abbr, acronym {
    border: 0;
}

body {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.4;
    /*padding: 2em;*/
}

.demo-example {
    margin-bottom: 2em;
}

.demo-example > label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.position-menu-within {
    width: 18em;
    height: 15em;
    background: #eee;
    overflow: auto;
    padding: 2em 0 0 2em;
}

.modal-example .multi-select-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 50%;
    min-width: 0;
    overflow: auto;
    border: none;
    border-radius: 0.3em;
    box-shadow: 0 1em 3em rgba(0,0,0,0.4);
}

.modal-example .multi-select-menuitem {
    font-size: 1em;
    padding: 1.5em 2.5em 1.5em 3.5em;
}

    .modal-example .multi-select-menuitem + .multi-select-menuitem {
        padding-top: 0;
    }

    .modal-example .multi-select-menuitem input {
        margin-left: -2.5em;
    }

.multi-select-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    display: none;
}

.multi-select-container--open .multi-select-modal {
    display: block;
}











.multi-select-container {
    /*display: inline-block;*/
    position: relative;
    /*margin-left: 20px;*/
    /*margin-right: 10px;*/
    /*border-bottom: 1px solid rgba(0,0,0,.125);*/
    /*max-height: 200px;*/
    min-height: 21px;
    /*overflow-y: auto;*/
    border: 1px solid #000;
    padding: 2px;
    margin-bottom: 5px;
    border: 1px solid #00bac7 !important;
    border-radius: 5px !important;
}

.multi-select-menu {
    /*position: absolute;*/
    left: 0;
    top: -12px;
    z-index: 1;
    /*float: left;*/
    min-width: 100%;
    background: #fff;
    /*margin: 1em 0;*/
    /*border: 1px solid #aaa;*/
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);*/
    display: none;
    border-radius: 10px;
    /*width: 120% !important;*/
    margin-top: 6px;
    /*margin-bottom: -1px;*/
}

.multi-select-menuitem {
    display: block;
    font-size: 12px;
    /*padding: 1px 1px 1px 1px;*/
    /*white-space: nowrap;*/
    /* margin-bottom: 20px; */
    margin-left: 18px;
    /*margin-bottom: 4px;*/
    color: grey;
}

.multi-select-menuitem--titled:before {
    display: block;
    font-weight: bold;
    content: attr(data-group-title);
    margin: 0 0 0.25em -20px;
}

.multi-select-menuitem--titledsr:before {
    display: block;
    font-weight: bold;
    content: attr(data-group-title);
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.multi-select-menuitem + .multi-select-menuitem {
    padding-top: 0;
}

.multi-select-presets {
    border-bottom: 1px solid #ddd;
}

.multi-select-menuitem input {
    position: absolute;
    margin-top: 0.25em;
    margin-left: -20px;
}

.multi-select-button {
    display: inline-block;
    font-size: 10px;
    padding: 0.2em 0.6em;
    /*max-width: 16em;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: -0.5em;
    background-color: #fff;
    /*border: 1px solid #aaa;*/
    border-radius: 4px;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);*/
    cursor: pointer;
    height: 14px;
    width: 100%;
    text-align: right;
    color: #808080a6;
    margin-bottom: 4px
}

    .multi-select-button:after {
        /*content: "";*/
        display: inline-block;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0.4em 0.4em 0 0.4em;
        border-color: #999 transparent transparent transparent;
        margin-left: 0.4em;
        vertical-align: 0.1em;
    }

.multi-select-container--open .multi-select-menu {
    display: block;
    max-height: unset !important;
}

.multi-select-container--open .multi-select-button:after {
    border-width: 0 0.4em 0.4em 0.4em;
    border-color: transparent transparent #999 transparent;
}

.multi-select-container--positioned .multi-select-menu {
    /* Avoid border/padding on menu messing with JavaScript width calculation */
    box-sizing: border-box;
}

.multi-select-container--positioned .multi-select-menu label {
    /* Allow labels to line wrap when menu is artificially narrowed */
    white-space: normal;
}

.multi-select-menuitems {
    /*border-bottom: 1px solid rgba(0,0,0,.125);*/
    margin-left: 5px;
}