html body.bg-full-screen-image {
    background-image: url(../images/bg-login.jpg);
}

.navbar-brand .brand-logo {
    max-height: 35px;
}

.menu-expanded .navbar-brand .brand-logo {
    width: auto;
    margin-top: 10px;
}

.menu-expanded .header-navbar .navbar-header .navbar-brand {
    padding: 5px;
}

.nav-item-loader {
    padding: 5px 10px 0 30px;
}

.nav-item-loader .loader-deep-orange {
    transform: scale(.5);
}

.nav-item-loader .loader-deep-orange div {
    background-color: #C3C90C !important
}

#toast-top-right .toast {
    opacity: 1;
}

div.dataTables_wrapper div.dataTables_processing {
    padding: 30px;
    color: #fff;
    background: #0988BD;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_filter, div.dataTables_wrapper div.dataTables_info, div.dataTables_wrapper div.dataTables_paginate{
    text-align: left;
}

.dataTables_filter.has-additional-filters label{
    width: calc(100% - 35px);
}
.dataTables_filter.has-additional-filters .btn{
    width: 30px;
    margin:0;
    margin-left: 2px;
    margin-bottom: 0.5rem;
}
div.dataTables_wrapper div.dataTables_filter input{
    margin: 0;
}
.mobile-additional-filters{
    background: #f3f3f3;
    padding: 10px;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: 1.5rem;
}
.mobile-additional-filters:empty{
    display: none;
}
.mobile-additional-filters .filter{
    margin-bottom: 5px;
}

#entity_form_side .form-group:not(.field-switch) label.col-md-3 {
    text-align: left;
    float: none;
    width: 100%;
}

#entity_form_side .form-group:not(.field-switch) .col-md-9 {
    text-align: left;
    float: none;
    width: 100%;
}

#entity_form_side .form-group:not(.field-switch) .col-xl-10 {
    text-align: left;
    float: none;
    width: 100%;
}

#entity_form_side .form-group:not(.field-switch) .offset-md-3,
#entity_form_side .form-group:not(.field-switch) .offset-xl-2 {
    margin-left: 0;
}

#entity_form_side .form-group.field-switch .col-md-9 {
    float: left;
    width: 60px;
}

#entity_form_side .form-group.field-switch .col-md-3 {
    float: right;
    width: calc(100% - 60px);
    text-align: left;
}

#codeigniter_profiler {
    display: none;
}

#profiler_container {
    max-height: 70vh;
    overflow-y: auto;
}

#profiler_container #codeigniter_profiler {
    display: block;
}

#profiler_container legend {
    font-size: 1rem;
}

#login_popup {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    z-index: 999998;
}

div.dataTables_wrapper div.dataTables_filter label{
    margin-top: 0;
}

#top_filters .select2-container--classic .select2-selection--single,
#top_filters .select2-container--default .select2-selection--single {
    height: 30px !important;
    padding: 0;
}

#top_filters .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0 !important;
}

/* MIGLIORAMENTI RESPONSIVE */
#table-card .mobile-view-switcher{
    display: none;
}
@media screen and (max-width: 767px){
    .footer.navbar-fixed-bottom{
        display: none;
    }
    div.dataTables_wrapper div.dataTables_length select{
        width: 55px;
    }
    .card-entity-table .heading-elements,
    .card-entity-form .heading-elements{
        position: fixed;
        bottom: 0;
        z-index: 9;
        top: auto;
        padding: 15px;
        width: 100vw;
        right: 0;
        left: 0;
        bottom: 0;
        text-align: right;
        background: #1D2B36;
    }
    .dataTables_wrapper table{
        overflow-x: visible;
    }
    .entity-table-responsive{
        overflow-x: auto;
    }
    #table-card.tabellar .entity-table-table-wrapper{
        min-width: 850px;
    }
    .dataTables_length :not(*){
        display: none;
    }

    .table-responsive {
        width: 100%;
        overflow: hidden;
        padding: 1.3rem 0;
    }

    .table {
        width: 100% !important;
    }

    #table-card .table-card-title{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #table-card .mobile-view-switcher{
        display: block;
        color: #ccc;
        cursor: pointer;
    }

    #table-card.tabellar .mobile-view-switcher{
        color: #0988BD;
    }

    #table-card:not(.tabellar) .table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #e3ebf3;
        width: 100%;
    }

    #table-card:not(.tabellar) .table thead,
    #table-card:not(.tabellar) .table tbody {
        display: block;
    }

    #table-card:not(.tabellar) .table thead tr {
        flex-direction: row;
        align-items: stretch;
    }

    #table-card:not(.tabellar) .table thead th,
    #table-card:not(.tabellar) .table tbody td {
        border: 0;
        width: auto !important;
        padding: 5px 5px !important;
        flex: 1;
    }
    #table-card:not(.tabellar) .table tbody td{
        display: flex;
        justify-content: space-between;
        border-bottom: 1px dashed #e3ebf3!important;
        text-align: right;
    }
    #table-card:not(.tabellar) .table tbody tr{
        border-bottom: 2px solid #e3ebf3;
        margin-bottom: 15px;
    }
    #table-card:not(.tabellar) .table tbody tr td:last-child{
        border-bottom: 0!important;
    }
    #table-card:not(.tabellar) .table tbody td::before{
        display: block;
        content: attr(data-label);
        font-size: .8rem;
        font-weight: 700;
        text-align: left;
        /* text-transform: uppercase; */
    }

    #table-card:not(.tabellar) .table.icheck tbody td {
        /* margin-left: 30px; */
    }

    #table-card:not(.tabellar) .table.icheck tbody td:first-child {
        /* margin-left: 0; */
    }

    #table-card:not(.tabellar) .table.icheck tbody td:nth-child(2) {
        /* margin-top: -30px; */
    }

    #table-card:not(.tabellar) .table tfoot,
    #table-card:not(.tabellar) .table thead {
        display: none;
    }

    .mobile-additional-filters .filter{
        margin: 0 0 5px 0!important;
    }
}
