/*
    *  MAD-SELECT by Roko CB
    */
.mad-select .material-icons{
    vertical-align: middle;
}
.mad-select{
    position:relative;
    display:inline-block;
    vertical-align:middle;
    border-bottom: 1px solid #bdbdbd;
    /*padding-right: 8px;*/
    width: 100%;
    height: 3.1rem;
    line-height: 1.5;
    margin-top: .4rem;
    margin-bottom: 1rem;
    padding: .5rem 0 .6rem;
}
.mad-select ul {
    list-style: none;
    display:inline-block;
    width: calc(100% - 24px);
    padding: 0;
}
.mad-select li{
    vertical-align: middle;
    white-space: nowrap;
    height:24px;
    line-height:24px;
    display: none;
    padding: 8px 0px;
    margin:0;
    box-sizing: initial;
}
.mad-select > ul:first-of-type{
    /* COMMENT FOR AUTO WIDTH */
    /*max-width:120px;*/ 
}
.mad-select > ul:first-of-type li.selected{
    display: inline-block;
    height: 24px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}
.mad-select i.material-icons{
    opacity: 0.5;
    margin:0;
    padding:0;
}
/*jQ*/
.mad-select ul.mad-select-drop{
    position: absolute;
    z-index: 9999;
    visibility: hidden; opacity:0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    top: 0;
    left: 0;
    transition: 0.24s;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
}
.mad-select ul.mad-select-drop.show{
    visibility: visible; opacity: 1;
    max-height: 200px; /* COMMENT IF YOU DON?T NEED MAX HEIGHT */
}
.mad-select ul.mad-select-drop li{
    display: block;
    transition: background 0.24s;
    cursor: pointer;
}
.mad-select ul.mad-select-drop li.selected{
    background: rgba(0,0,0,0.07);
}
.mad-select ul.mad-select-drop li:hover{
    background: rgba(0,0,0,0.04);
}

/*label.field {
    border-radius: 2px;
    color: #666;
    display: block;
    margin: 16px;
    max-width: 300px;
    padding: 8px;
    opacity: 0;
    position: relative;
    -webkit-transition-property: opacity;
    transition-property: opacity;
    z-index: 1;
}

label.field span {
    color: inherit;
    display: block;
    font-size: 16px;
    height: 20px;
    line-height: 20px;
    left: 9px;
    pointer-events: none;
    position: absolute;
    top: 32px;
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
    -webkit-transition-property: color, font-size, top;
    transition-property: color, font-size, top;
    z-index: 1;
}

label.field span.required::after {
    color: inherit;
    content: "*";
    display: block;
    height: 20px;
    left: -20px;
    line-height: 20px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 20px;
}

.error label.field span {
    color: #F02318;
}

label.field .psuedo_select {
    background: rgba(255, 255, 255, 0);
    position: relative;
    border-color: #666;
    border-style: solid;
    border-width: 0 0 2px 0;
    color: #666;
    cursor: pointer;
    font-size: 20px;
    height: 24px;
    line-height: 24px;
    margin: 24px 32px 0 0;
    min-width: 250px;
    padding-top: 24px;
    outline: 0;
    z-index: 1;
}

label.field .psuedo_select::after {
    background: url("data:image/svg+xml;utf8,<svg fill='#666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'> <path d='M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z'/> <path d='M0-.75h24v24H0z' fill='none'/> </svg>"), no-repeat;
    content: "";
    height: 24px;
    width: 24px;
    position: absolute;
    top: 0;
    right: 0;
    -webkit-transition-property: background;
    transition-property: background;
}

label.field .psuedo_select .selected {
    height: 24px;
    left: 1px;
    line-height: 24px;
    opacity: 0;
    position: absolute;
    top: 0;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
    -webkit-transition-property: opacity, -webkit-transform;
    transition-property: opacity, -webkit-transform;
    transition-property: opacity, transform;
    transition-property: opacity, transform, -webkit-transform;
    will-change: transform;
}

label.field .psuedo_select ul {
    background: #fff;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
    display: block;
    height: 0;
    list-style: none;
    margin-top: 2px;
    opacity: 0;
    overflow: hidden;
    padding: 0 1px;
    pointer-events: none;
    -webkit-transition-property: height, opacity;
    transition-property: height, opacity;
    width: 100%;
    z-index: 2;
}

label.field .psuedo_select ul li {
    height: 32px;
    padding: 8px 4px;
}

label.field .deselect {
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: -1;
}

label.field.focused {
    color: #007BED;
}

label.field.focused .psuedo_select {
    border-color: #007BED;
}

label.field.focused .psuedo_select::after {
    background: url("data:image/svg+xml;utf8,<svg fill='#007BED' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'> <path d='M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z'/> <path d='M0-.75h24v24H0z' fill='none'/> </svg>"), no-repeat;
}

label.field.focused .psuedo_select ul {
    opacity: 1;
    pointer-events: all;
}*/