/* OVERRIDES */
table.datatable { border-collapse: collapse !important;}
.navbar-brand{
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: white !important;
    width: 170px;
}

.top-navigation .wrapper.wrapper-content {
    padding-left: 20px;
    padding-right: 20px;
}

/* fix per corpo della pagina "sotto" il footer su schermi stretti */
@media (max-width: 768px) {
    .top-navigation.body-small .wrapper.wrapper-content,
    .body-small .top-navigation .wrapper.wrapper-content {
        padding: 40px 0 80px;
    }
}

/* checkbox con FA dopo upgrade FA*/
.checkbox input[type="checkbox"]:checked + label::after,
.checkbox input[type="radio"]:checked + label::after {
    font-family: "Font Awesome 5 Free";
    font-weight:900;
}
input[type="checkbox"].styled:checked + label:after,
input[type="radio"].styled:checked + label:after {
    font-family: 'Font Awesome 5 Free';
    font-weight:900;
}


/* modal xl, aggiunto da BS 4.2 */

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

/* modal scrollable, aggiunto da BS 4.3 */

.modal-dialog-scrollable {
    display: -ms-flexbox;
    display: flex;
    max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog-centered.modal-dialog-scrollable {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
    max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
    content: none;
}

@media (min-width: 576px) {
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
}


/* tabs */
/*
.nav-tabs {
    border-bottom: none;
}
.tabs-container .nav-tabs {
    border-bottom: none;
}
*/
.nav-tabs .nav-link:not(.active):hover {
    border-bottom-color: initial;
}

/* paginazione datatable in basso a destra */
.dataTables_paginate { position: absolute; bottom: 60px; right: 50px; }

/* daterangepicker fix icons */

.daterangepicker .glyphicon.fa{
    font-family:  Glyphicons Halflings !important;
}

/* rimosso shadow da ibox */
.md-skin .ibox {
    box-shadow: none;
}
.md-skin .dashboard-header {
    box-shadow: none;
}

/*
.md-skin .ibox {
    border: 1px solid rgba(0,0,0,.125);
}
.md-skin .dashboard-header {
    border: 1px solid rgba(0,0,0,.125);
}
*/

.landing-page .header-back.one {
    background: url('../images/signup/header_one.jpg') 50% 0 no-repeat;
}
.landing-page .header-back.two {
    background: url('../images/signup/header_two.jpg') 50% 0 no-repeat;
}

.landing-page section p, .landing-page section ul {
    color: #aeaeae;
    font-size: 13px;
}

.product-small-price {
    text-align: right;
    font-weight: 400;
}

@media print {
    div.footer {
        display: none;
    }
}

/* UTILITIES */

.width-1 { width: 1% !important; }
.width-5 { width: 5% !important; }
.width-10 { width: 10% !important; }
.width-12 { width: 12% !important; }
.width-13 { width: 13% !important; }
.width-15 { width: 15% !important; }
.width-17 { width: 17% !important; }
.width-20 { width: 20% !important; }
.width-30 { width: 30% !important; }
.width-40 { width: 40% !important; }
.width-50 { width: 50% !important; }
.width-60 { width: 60% !important; }
.width-70 { width: 70% !important; }
.width-80 { width: 80% !important; }
.width-90 { width: 90% !important; }
.width-100 { width: 100% !important; }

.table-fixed { table-layout: fixed !important;}

.font-xs { font-size: 7px !important; }
.font-sm {  font-size: 10px !important; }
.font-lg { font-size: 16px !important; }
.font-xl { font-size: 19px !important; }
.font-xxl { font-size: 22px !important; }

.font-10 { font-size: 10px !important;}
.font-12 { font-size: 12px; }
.font-13 { font-size: 13px !important; }
.font-16 { font-size: 16px !important; }
.font-18 { font-size: 18px !important; }

.font-80 { font-size: 80%; }
.font-90 { font-size: 90%; }

.disp-none {display: none; }
.out-of-sight { position: absolute;  left: -999em;}
.justify-content-space-evenly { justify-content: space-evenly; }

/* background */
.bg-grey { background: #eee; }
.bg-lightgrey { background-color: #f8fafb; !important; }
.bg-lightgreen{ background-color: #c6ecc6 !important;}
.bg-lightblue { background-color: #e7f5ff !important;}

/* colors  */
.color-secondary { color: #1ab394 !important; }
.color-primary { color: #337ab7 !important; }
.color-primary-light { color: rgb(65,174,227) !important; }
.color-grey { color: #a0a0a0 !important; }

/* border colors */
.border-grey { border-color: #eee; }
.border-dark-grey { border-color: #a0a0a0; }

.dont-wrap{ white-space: nowrap !important; }

.mt-6 { margin-top: 4rem !important; }
.overflow-x-auto { overflow-x: auto !important; }
.cursor-pointer { cursor: pointer; }

/* opacity */
.opacity-50 { opacity: 0.5; }

/* inputs */
.input-xxs { width: 50px !important; }

/* images */
.maximized-centered-image {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* buttons */
.btn-green {
    background-color: #1ab394;
    border-color: #1ab394;
    color: #fff;
}
.btn-green:hover,
.btn-green:focus,
.btn-green.focus {
    background-color: #1ab394;
    border-color: #1ab394;
}

.btn-square-25 {
    width: 25px;
    height: 25px;
}

/*** PLUGINS ***/

/* select2 */

.select2-flag { font-size: 80%; color: lightgrey; }
.select2-results__option--highlighted .select2-flag { color: white; }

.select2-cap { font-size: 80%; color: var(--main-color); }
.select2-results__option--highlighted .select2-cap { color: white; }

/* altezza maggiore */
.select2-selection.select2-selection--single { height: 35px; }
.select2-selection__arrow { height: 35px !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 35px; }


/* typeahead scrollable e 100% */
.typeahead.dropdown-menu {
    max-height: 250px;
    overflow-y: auto;
    width: 95%;
}

/* attributo readonly */
select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}
select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
    background: #eee;
    box-shadow: none;
}
select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow, select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
    display: none;
}

/* altezza minore */
.select2-low .select2-selection__rendered {
    line-height: 25px !important;
}
.select2-low .select2-container .select2-selection--single {
    height: 25px !important;
}
.select2-low .select2-selection__arrow {
    height: 25px !important;
}

/* ladda */

/* stile 'none' */
.ladda-button[data-style=none] .ladda-spinner, .ladda-button[data-style=none] .label { -webkit-transition: none;-moz-transition: none !important; -o-transition: none!important;transition: none !important}
.ladda-button[data-style=none] {overflow: hidden}
.ladda-button[data-style=none] .ladda-spinner {left: 50%;margin-left: -16px;-webkit-transform: none;-moz-transform: none;-ms-transform: none;-o-transform: none;transform: none}
.ladda-button[data-style=none] .ladda-label {position: relative;display: inline-block}
.ladda-button[data-style=none][data-loading] .ladda-label {opacity: 0;-webkit-transform: none;-moz-transform: none;-ms-transform: none;-o-transform: none;transform: none}
.ladda-button[data-style=none][data-loading] .ladda-spinner {opacity: 1;margin-left: 0;-webkit-transform: none;-moz-transform: none;-ms-transform: none;-o-transform: none;transform: none}

/* clockpicker */
.clockpicker-popover {
    z-index: 999999;
}

/* nuovo menu bootstrap a tre livelli (https://bootstrap-menu.com/demos/multilevel.html) */
@media (min-width: 992px){
    .dropdown-menu .dropdown-toggle:after{
        border-top: .3em solid transparent;
        border-right: 0;
        border-bottom: .3em solid transparent;
        border-left: .3em solid;
    }
    .dropdown-menu .dropdown-menu{
        margin-left:0; margin-right: 0;
    }
    .dropdown-menu li{
        position: relative;
    }
    .nav-item .submenu{
        display: none;
        position: absolute;
        left:100%; top:-7px;
        min-width: 200px;
    }
    .nav-item .submenu-left{
        right:100%; left:auto;
    }

    .dropdown-menu > li:hover > .submenu{
        display: block;
    }

    .navbar-expand-lg .navbar-nav .nav-link { padding-left: 20px; padding-right: 20px;}
}

/* STILI ELEMENTI */

/*
#home-title {
    background-image: url("../images/home_background.png");
    background-size: cover;
}
*/

.product-logo-cont
{
    background-color: #ebfbee;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-origin: content-box;
    padding: 20px;
    height: 200px;
}

.anchor-disabled
{
    pointer-events: none;
    cursor: default;
}

.labels-right label { text-align: right; }

.help-tip
{
    color: rgb(35,174,227);
}

/* font awesome hoverable */
.fa-hoverable:hover {
    cursor: pointer;
    color: #0056b3 !important;
}

.button-wrap-words {
    white-space: normal !important;
    word-wrap: break-word;
}

.table-less-padding td { padding: 3px !important;}
