html,
body {
    height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

h5 {
    font-weight: 500;
}

main {
    flex: 1 0 auto;
}

.waves-effect {
    z-index: 0 !important;
}

.pin-top {
    position: absolute;
}

.pinned {
    position: fixed !important;
    margin-top: 0 !important;
}

.logout_btn {
    display: none;
}

#preloader {
    position: fixed;
    z-index: 1000;
    top: 87vh;
    left: 50vw;
    right: 50vw;
    bottom: 0;
}

#inserimento_disp.pushpin,
#filter_online_disp.pushpin {
    position: absolute;
    padding: 1em 0;
    border-radius: 0;
    z-index: 1;
    width: 50%;
}


#ricerca_prod.pushpin {
    position: absolute;
    padding: 1em 0;
    border-radius: 0;
    z-index: 1;
    width: 100%;
}

#users_header.pushpin,
#tickets_header.pushpin{
    position: absolute;
    padding: 1em 0;
    border-radius: 0;
    z-index: 1;
    width: 100%;
}

#disponibilità .col,
#pietanze .col {
    padding: 0 !important;
}

#admin_username {
    z-index: 0;
}

.autocomplete-content .dropdown-content {
    max-height: 20em;
}

div.freezable [type="checkbox"].filled-in:not(:checked)+span:not(.lever):after,
div.freezable [type="checkbox"].filled-in:not(:checked)+span:not(.lever):before,
div.freezable [type="checkbox"].filled-in:checked+span:not(.lever):after,
div.freezable [type="checkbox"].filled-in:checked+span:not(.lever):before {
    display: none;
}

div.freezable span {
    padding: 0 !important;
}

div.freezable .material-icons {
    transition: all 0.2s ease-in-out;
}

div.freezable input:checked+span i {
    color: darkgrey;
}

div.freezable input:not(:checked)+span i {
    color: dodgerblue;
}

/*#users_container {
    height: 85%;
    overflow-y: auto;
}*/

#users_container li div,
#tickets_container li div {
    background: rgba(255, 247, 224, 0.5);
}

#users_container li:nth-child(odd) div,
#tickets_container li:nth-child(odd) div {
    background: rgba(240, 253, 255, 0.5);
}

#disp_ul,
#riepilogo_disp {
    max-height: 45vh;
    overflow-y: auto;
}

#add_form .select-wrapper {
    position: fixed !important;
    z-index: 1;
    width: 30%;
}

#riepilogo_disp {
    padding: 0 2em;
}

#users_container {
    margin-top: 13em;
}

#send_msg_all_selected_modal,#advance_search_modal,#insert_new_dish_modal{
    overflow: visible;
}
#send_msg_all_selected_modal{
    overflow-y: auto;
}

#user_id_send_all{
    resize: none;
}
.price_summary {
    margin: 1em !important;
}

#pietanze .row {
    margin: 0;
}

.contains {
    margin: 0 0.5em;
}

.not_in {
    display: none !important;
}

.disp_entry h4 {
    line-height: 0;
}

.disp_entry .prod_info {
    line-height: 1;
}

#disponibilità .disp_entry .prod_info i {
    position: absolute;
    margin: -0.2em 0.5em;
}

.disp_entry .prod_info p {
    margin-bottom: 0;
}

.disp_entry .del_dish_disp,
.publish_check,
.freezable {
    margin-top: 1em;
}

.custom_highlight,
#users_container li div.custom_highlight {
    background-color: #FFFF99;
}

#tickets_container li div.custom_highlight {
    background-color: #FFFF99;
}

.cartCredit {
    background-color: #00ff74;
    opacity: 0.6;
}

#ord .collapsible-header,
#users .collapsible-header,
#tickets .collapsible-header,
#suppliers .collapsible-header {
    display: block !important;
}

#delivery .card-content {
    padding: 0.7em;
}

.bellboy_map {
    height: 30em;
    padding: 1em;
}

@media only screen and (max-width: 600px) {
    .pushpin {
        margin-top: 4em;
    }

    #pietanze,
    #riepilogo_disp {
        margin-top: 18em;
    }

    #inserimento_disp.pushpin {
        width: 100%;
        z-index: 3;
    }

    #filter_online_disp.pushpin {
        width: 100%;
        z-index: 2;
    }

    #online_disp_container {
        margin-top: 5rem;
    }
}

@media only screen and (min-width: 600px) {
    .pushpin {
        margin-top: 4.6em;
    }

    #pietanze,
    #riepilogo_disp {
        margin-top: 14em;
    }
}

#riepilogo_disp {
    margin: 5px;
    padding: 5px;
    overflow: auto;
}

@media only screen and (min-width: 992px) {
    .pushpin {
        margin-top: 4.2em;
    }

    #pietanze {
        margin-top: 17em;
    }

    #riepilogo_disp {
        margin-top: 10em;
    }
}

.dish_type {
    margin: 1.7em 0;
}

#online_disp_container li.collection-item,
#users_container li.collection-item,
#tickets_container li.collection-item{
    display: grid;
    border-radius: 20px;
    border: 0;
    margin: 0.25rem 0;
    /*flex-wrap: wrap;*/
}

#modded .progress {
    min-height: 36px;
    overflow: hidden;
    position: relative;
}

#modded .progress span {
    position: relative;
    float: left;
    color: #fff;
    padding: 8px;
    z-index: 99999;
}

#modded .progress span i {
    width: inherit;
    font-size: inherit;
    position: relative;
    top: 2px;
    margin-left: 8px;
}

#modded .progress .determinate {
    width: 0;
    transition: width 1s ease-in-out;
    padding: 8px;
    position: relative;
    color: #fff;
    text-align: right;
    white-space: nowrap;
}

#modded ul.collapsible {
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

#modded ul.collapsible li {
    margin-bottom: 14px;
}

#modded ul.collapsible .collapsible-header {
    padding: 0;
    border-bottom: 0;
}

#modded ul.collapsible .collapsible-header .progress {
    margin: 0;
    border-radius: 0;
}

#modded ul.collapsible .collapsible-body {
    padding: 16px;
    box-shadow: rgba(0, 0, 0, 0.137255) 0px 2px 2px 0px, rgba(0, 0, 0, 0.117647) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
}

@keyframes grow {
    from {
        width: 0;
    }
}

#image-holder {
    width: 500px;
    height: auto;
    position: absolute;
    left: 300px;
    top: 200px;
    /* Or perhaps different coordinates */
    display: none;
}

.float_right {
    float: right;
}

#back_scadenza_btn > i, #next_scadenza_btn > i{
    padding: 0 !important;
}

.bold_text {
    font-weight: bold;
}