@import url('https://fonts.googleapis.com/css2?family=Cagliostro&display=swap');

/*** Shared overrides ***/

.custom-control.custom-checkbox {
    padding-left: 0;
}

label.custom-control-label {
    position: relative;
    padding-right: 1.5rem;
}

label.custom-control-label::before,
label.custom-control-label::after {
    right: 0;
    left: auto;
}

/*** Custom ***/

a.badge.badge-info,
a.badge.badge-info:hover,
a.badge.badge-info:focus {
    color: #fff;
    background-color: #dc192a;
}

li.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #1b5a6c;
    border-color: #1b5a6c;
}

a.page-link {
    color: #1b5a6c;
}

li.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #1b5a6c;
    border-color: #1b5a6c;
}

a.badge.badge-primary {
    color: #fff;
    background-color: #1b5a6c;
}

#tblGoods .thead-light th {
    background-color: #1b5a6c;
    color: #fff;
}

.pointer {
    cursor: pointer;
}

/*** Buttons ***/

.btn-primary {
    color: #fff!important;
    background-color: #8e6caf;
    border-color:#8e6caf;
}

.btn-outline-primary {
    color: #1b5a6c;
    background-color: #fff;
    border-color: #1b5a6c;
}

.btn:disabled.btn-secondary {
	opacity: 1 !important;
}

/*** Typography ***/

.uppercase {
    text-transform: uppercase;
}

h4.alert.alert-primary {
    color: #1b5a6c;
    background-color: #fff;
    border-color: #1b5a6c;
}

h5.modal-title {
    color: #1b5a6c !important;
}

/** a capo **/

.break-word {
    word-break: break-all;
}

/* media query */

@media screen and (max-width: 720px) {

    .break-word-sm {
        word-break: break-all;
    }

}

/*** Icons ***/

.fat-icon {
    font-size: 1.4rem;
}

/*** Shadows ***/

.box-shadows {
    -webkit-box-shadow: 5px 5px 10px 0px #ddd;
    -moz-box-shadow: 5px 5px 10px 0px #ddd;
    -o-box-shadow: 5px 5px 10px 0px #ddd;
    box-shadow: 5px 5px 10px 0px #ddd;
}

/*** Blue accents ***/

.pin-blue {
    color: #1b5a6c !important;
}

.pin-border-blue {
    border-color: #1b5a6c !important;
}

.pin-bg-blue {
    background-color: #1b5a6c !important;
}

/** Blue button **/

.pin-button-blue {
    background-color: #1b5a6c;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
}

/*** Red Stuffs ***/

.pin-red {
    color: #dc192a;
}

.pin-bg-red {
    background-color: #dc192a;
}

/*** Tables ***/

/** Blue & red tables like index **/

.blue-table,
.red-table {
    background: transparent;
}

.blue-table thead,
.red-table thead {
    padding-bottom: 1px;
}

.blue-table th,
.red-table th {
    height: 58px !important;
    border-top: 0 !important;
}

.blue table.dataTable,
.red-table table.dataTable {
    padding-right: 0.75rem;
}

.blue-table div.dataTables_scrollHead,
.red-table div.dataTables_scrollHead {
    height: 58px !important;
}

.blue-table div.dataTables_scrollHead table,
.red-table div.dataTables_scrollHead table {
    margin-top: -14px !important;
}

.blue-table div.dataTables_scrollHeadInner,
.red-table div.dataTables_scrollHeadInner {
    width: 100% !important;
    box-sizing: border-box !important;
}

.blue-table div.dataTables_scrollHeadInner table,
.red-table div.dataTables_scrollHeadInner table {
    width: 100% !important;
}

.blue-table div.dataTables_scrollBody,
.red-table div.dataTables_scrollBody {
    min-height: 200px !important;
}

.blue-table div.dataTables_scrollBody thead,
.red-table div.dataTables_scrollBody thead {
    display: none;
}

.pin-table-blue th,
.pin-table-red th {
    height: 58px !important;
    border-top: 0 !important;
    color: #fff;
    border-bottom: none !important;
}

.pin-table-blue td,
.pin-table-red td {
    font-weight: 700;
}

.pin-table-blue .th-1,
.pin-table-blue .td-1,
.pin-table-red .th-1,
.pin-table-red .td-1 {
    width: 30% !important;
}

.pin-table-blue .th-2,
.pin-table-blue .td-2,
.pin-table-red .th-2,
.pin-table-red .td-2 {
    width: 60% !important;
}

.pin-table-blue .th-3,
.pin-table-blue .td-3,
.pin-table-red .th-3,
.pin-table-red .td-3 {
    width: 10% !important;
}

.lb-md {
    font-size: 16px;
  }

@media screen and (max-width: 991px) {

    .blue-table,
    .red-table {
        font-size: .9rem;
    }

}

@media screen and (max-width: 990px) {

	.blue-table th,
	.red-table th {
		height: 77px !important;
	}

	.blue-table div.dataTables_scrollHead,
	.red-table div.dataTables_scrollHead {
		height: 77px !important;
	}

}

@media screen and (max-width: 990px) and (min-width: 768px) {

    .custom-large-container {
        max-width: 960px;
    }

}

@media screen and (max-width: 767px) {

    .blue-table .dataTables_scroll th,
    .blue-table .dataTables_scroll td,
    .red-table .dataTables_scroll th,
    .red-table .dataTables_scroll td {
        padding-left: .4rem;
        padding-right: .4rem;
    }

}

/** Blue tables like index **/

.blue-table div.dataTables_scrollHead {
    border-top: 2px solid #1b5a6c !important;
    background-color: #1b5a6c !important;
}

.pin-table-blue th {
    background-color: #1b5a6c;
}

.pin-table-blue td i.fas {
    color: #1b5a6c;
}

/** Red tables like index **/
.pin-table-red th {
    background-color: #1b5a6c;;
}

.pin-table-red td i.fas {
    color: #1b5a6c;;
}

/*** dataTables ***/

/** notifiche home page **/

.td-notification-read {
    background-color: #F6F6F6;
    font-weight: 400 !important;
}

/** shadows **/

.dataTables_scroll {
    -webkit-box-shadow: 5px 5px 10px 0px #ddd;
    -moz-box-shadow: 5px 5px 10px 0px #ddd;
    -o-box-shadow: 5px 5px 10px 0px #ddd;
    box-shadow: 5px 5px 10px 0px #ddd;
}

/** sort by (freccine) **/

table.dataTable > thead .sorting::before,
table.dataTable > thead .sorting_asc::before, table.dataTable > thead .sorting_desc::before,
table.dataTable > thead .sorting_asc_disabled::before,
table.dataTable > thead .sorting_desc_disabled::before,
table.dataTable > thead .sorting::after, table.dataTable > thead .sorting_asc::after,
table.dataTable > thead .sorting_desc::after,
table.dataTable > thead .sorting_asc_disabled::after,
table.dataTable > thead .sorting_desc_disabled::after {
    color: #fff;
    opacity: 1;
}

table.dataTable > thead .sorting::before,
table.dataTable > thead .sorting_asc::before, table.dataTable > thead .sorting_desc::before,
table.dataTable > thead .sorting_asc_disabled::before,
table.dataTable > thead .sorting_desc_disabled::before {
    content: "↑";
    position: absolute !important;
    top: 0 !important;
    display: block !important;
}

table.dataTable > thead .sorting::after, table.dataTable > thead .sorting_asc::after,
table.dataTable > thead .sorting_desc::after,
table.dataTable > thead .sorting_asc_disabled::after,
table.dataTable > thead .sorting_desc_disabled::after {
    content: "↓";
    position: absolute !important;
    top: 0 !important;
    display: block !important;
}

/** pagination **/

.dataTables_paginate {
    margin-top: .5rem !important;
}

/** Table headers **/

/* Articoli */
#tblGoods th,
/* Dettagli articolo */
#tblGoodDetails th,
/* Lotti */
#tblBatch th,
#tblBatches th,
/* Storico */
#tblHistory th,
/* Scarichi */
#tblUnloading th {
    font-size: 0.9em !important;
    background-color: #1b5a6c;
    color: #fff;
    padding: .5rem;
}

/* Articoli */
#tblGoods td,
/* Dettagli articolo */
#tblGoodDetails td,
/* Lotti */
#tblBatch td,
#tblBatches td,
/* Storico */
#tblHistory td,
/* Scarichi */
#tblUnloading td {
    font-size: 0.9em !important;
    padding: .5rem;
}

/** Buttons **/

/* Scarichi */
#tblUnloading .btn-sm {
    text-align: center;
}

/** Responsive tables **/

@media screen and (max-width: 1140px) {

    /* Scarichi */
    #tblUnloading th,
    #tblUnloading td {
        padding: .4rem;
        font-size: 0.8em !important;
    }

}

@media screen and (max-width: 991px) {

    /* Articoli */
    #tblGoods th,
    #tblGoods td,
    /* Dettagli articolo */
    #tblGoodDetails th,
    #tblGoodDetails td,
    /* Lotti */
    #tblBatch th,
    #tblBatch td,
    #tblBatches th,
    #tblBatches td,
    /* Storico */
    #tblHistory th,
    #tblHistory td {
        padding: .4rem;
        font-size: 0.8em !important;
    }

    /* Articoli */
    #tblGoods table.dataTable > thead .sorting:before,
    #tblGoods table.dataTable > thead .sorting_asc:before,
    #tblGoods table.dataTable > thead .sorting_desc:before,
    #tblGoods table.dataTable > thead .sorting_asc_disabled:before,
    #tblGoods table.dataTable > thead .sorting_desc_disabled:before,
    /* Dettagli articolo */
    #tblGoodDetails table.dataTable > thead .sorting:before,
    #tblGoodDetails table.dataTable > thead .sorting_asc:before,
    #tblGoodDetails table.dataTable > thead .sorting_desc:before,
    #tblGoodDetails table.dataTable > thead .sorting_asc_disabled:before,
    #tblGoodDetails table.dataTable > thead .sorting_desc_disabled:before,
    /* Lotti */
    #tblBatch table.dataTable > thead .sorting:before,
    #tblBatch table.dataTable > thead .sorting_asc:before,
    #tblBatch table.dataTable > thead .sorting_desc:before,
    #tblBatch table.dataTable > thead .sorting_asc_disabled:before,
    #tblBatch table.dataTable > thead .sorting_desc_disabled:before,
    #tblBatches table.dataTable > thead .sorting:before,
    #tblBatches table.dataTable > thead .sorting_asc:before,
    #tblBatches table.dataTable > thead .sorting_desc:before,
    #tblBatches table.dataTable > thead .sorting_asc_disabled:before,
    #tblBatches table.dataTable > thead .sorting_desc_disabled:before,
    /* Storico */
    #tblHistory table.dataTable > thead .sorting:before,
    #tblHistory table.dataTable > thead .sorting_asc:before,
    #tblHistory table.dataTable > thead .sorting_desc:before,
    #tblHistory table.dataTable > thead .sorting_asc_disabled:before,
    #tblHistory table.dataTable > thead .sorting_desc_disabled:before,
    /* Scarichi */
    #tblUnloading table.dataTable > thead .sorting:before,
    #tblUnloading table.dataTable > thead .sorting_asc:before,
    #tblUnloading table.dataTable > thead .sorting_desc:before,
    #tblUnloading table.dataTable > thead .sorting_asc_disabled:before,
    #tblUnloading table.dataTable > thead .sorting_desc_disabled:before {
        right: 0.7em;
        margin-top: .25rem;
    }

    /* Articoli */
    #tblGoods table.dataTable > thead .sorting:after,
    #tblGoods table.dataTable > thead .sorting_asc:after,
    #tblGoods table.dataTable > thead .sorting_desc:after,
    #tblGoods table.dataTable > thead .sorting_asc_disabled:after,
    #tblGoods table.dataTable > thead .sorting_desc_disabled:after,
    /* Dettagli articolo */
    #tblGoodDetails table.dataTable > thead .sorting:after,
    #tblGoodDetails table.dataTable > thead .sorting_asc:after,
    #tblGoodDetails table.dataTable > thead .sorting_desc:after,
    #tblGoodDetails table.dataTable > thead .sorting_asc_disabled:after,
    #tblGoodDetails table.dataTable > thead .sorting_desc_disabled:after,
    /* Lotti */
    #tblBatch table.dataTable > thead .sorting:after,
    #tblBatch table.dataTable > thead .sorting_asc:after,
    #tblBatch table.dataTable > thead .sorting_desc:after,
    #tblBatch table.dataTable > thead .sorting_asc_disabled:after,
    #tblBatch table.dataTable > thead .sorting_desc_disabled:after,
    #tblBatches table.dataTable > thead .sorting:after,
    #tblBatches table.dataTable > thead .sorting_asc:after,
    #tblBatches table.dataTable > thead .sorting_desc:after,
    #tblBatches table.dataTable > thead .sorting_asc_disabled:after,
    #tblBatches table.dataTable > thead .sorting_desc_disabled:after,
    /* Storico */
    #tblHistory table.dataTable > thead .sorting:after,
    #tblHistory table.dataTable > thead .sorting_asc:after,
    #tblHistory table.dataTable > thead .sorting_desc:after,
    #tblHistory table.dataTable > thead .sorting_asc_disabled:after,
    #tblHistory table.dataTable > thead .sorting_desc_disabled:after,
    /* Storico */
    #tblUnloading table.dataTable > thead .sorting:after,
    #tblUnloading table.dataTable > thead .sorting_asc:after,
    #tblUnloading table.dataTable > thead .sorting_desc:after,
    #tblUnloading table.dataTable > thead .sorting_asc_disabled:after,
    #tblUnloading table.dataTable > thead .sorting_desc_disabled:after {
        right: 0.2em;
        margin-top: .25rem;
    }

    /* Articoli */
    #tblGoods table.dataTable > thead > tr > th:not(.sorting_disabled),
    #tblGoods table.dataTable > thead > tr > td:not(.sorting_disabled),
    /* Dettagli articolo */
    #tblGoodDetails table.dataTable > thead > tr > th:not(.sorting_disabled),
    #tblGoodDetails table.dataTable > thead > tr > td:not(.sorting_disabled),
    /* Lotti */
    #tblBatcht table.dataTable > thead > tr > th:not(.sorting_disabled),
    #tblBatcht table.dataTable > thead > tr > td:not(.sorting_disabled),
    #tblBatchtes table.dataTable > thead > tr > th:not(.sorting_disabled),
    #tblBatchtes table.dataTable > thead > tr > td:not(.sorting_disabled),
    /* Storico */
    #tblHistory table.dataTable > thead > tr > th:not(.sorting_disabled),
    #tblHistory table.dataTable > thead > tr > td:not(.sorting_disabled),
    /* Scarichi */
    #tblUnloading table.dataTable > thead > tr > th:not(.sorting_disabled),
    #tblUnloading table.dataTable > thead > tr > td:not(.sorting_disabled) {
        font-size: .8rem;
        padding: .5rem;
    }

}


@media screen and (max-width: 960px) {

    /* Scarichi */

    #tblUnloading th {
        padding-top: 10px !important;
        padding-bottom: 5px !important;
        font-size: 0.7em !important;
    }

    #tblUnloading td {
        font-size: 0.7em !important;
        padding: .3rem !important;
    }

    #tblUnloading td .btn-sm {
        font-size: 0.9em !important;
    }

}

@media screen and (max-width: 720px) {

    /* Scarichi */

    #tblUnloading th {
        font-size: 0.65em !important;
        padding-top: 15px !important;
    }

    #tblUnloading td .btn-sm {
        font-size: 0.8em !important;
        padding: .2rem .2rem !important;
    }

}

.steps.clearfix {
    background: #eee;
    padding: 16px;
    border-radius: 20px;
} 
/*** Nav ***/

a.nav-item.nav-link {
    color:#fff !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff !important;
}

nav.navbar-nav .nav-nomeutente {
    margin-top: 2px;
}



/** Notification badge **/

.notification {
    color: #fff;
    text-decoration: none;
    padding-right: 20px;
    position: relative;
    display: inline-block;
    border-radius: 2px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.notification .badge {
    position: absolute;
    top: 0px;
    right: 4px;
    padding: 4px 6px;
    border-radius: 50%;
    background: #dc192a;
    color: #fff;
}

@media screen and (min-width: 768px) and (max-width: 960px) {

    #navbarNavAltMarkup ul li {
        font-size: 0.9em !important;
    }

    #navbarNavAltMarkup ul li a {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    }

@media screen and (min-width: 767px) {

    .only-mobile-nav {
        display: none;
    }

}

@media screen and (max-width: 767px) {

    .notification {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .notification .badge {
        top: 8px;
        right: unset;
        left: 83px;
    }

}
img.title-icon {
    width: 35px;
}

/*** Form ***/

span.select2 {
	width: 100% !important;
}

/*** Pages ***/

/** Warehouse discard and DDT forms **/

@media screen and (min-width: 768px) {

    /* inserimento scarti */
    form#frmAddRefuse input#Quantity.form-control,
    /* inserimento ddt */
    form#frmAddDDT input#Quantity.form-control,
    form#frmAddDDT input#Price.form-control {
        padding-top: 1px;
        padding-bottom: 1px;
        margin-top: 1px;
    }

    #ddt-anno-numero label#anno,
    #ddt-anno-numero label#numero {
        padding-bottom: 7px !important;
    }

    form#frmAddDDT select#ins-ddt-anno,
    form#frmAddDDT input#Bill.form-control {
        padding-top: 3px !important;
        padding-bottom: 3px !important;
        height: auto !important;
    }

}

@media screen and (max-width: 767px) {

    #ddt-amezzo-select {
        border: 1px #dee2e6 solid !important;
        border-radius: 25px !important;
        padding: .5rem !important;
        margin-top: 5px !important;
    }

}

@media screen and (max-width: 414px) {

    #ddt-div-amezzo-anno-numero {
        margin-bottom: 10px;
    }

    #ddt-div-amezzo {
        margin-bottom: 0;
    }

    #ddt-div-amezzo-select {
        margin-bottom: 7px !important;
    }

}

@media screen and (max-width: 540px) {

    #ddt-div-amezzo-anno-numero {
        margin-bottom: 10px;
    }

}

@media screen and (max-width: 386px) {

    #ddt-anno-numero {
        float: left !important;
    }

    #ddt-div-numero {
        margin-top: 15px;
        margin-bottom: 9px;
    }

    #ddt-div-numero label#numero {
        padding-top: 10px !important;
        padding-bottom: 0px !important;
    }

}

@media screen and (max-width: 375px) {

    #ddt-div-amezzo-anno-numero {
        margin-bottom: 0;
    }

    #ddt-anno-numero {
        float: left !important;
    }

    #ddt-div-anno {
        width: 50%;
        margin-top: 0;
    }

    #ddt-div-numero {
        width: 50%;
        margin-top: 15px;
        margin-bottom: 9px;
    }

    #ddt-div-numero label#numero {
        padding-top: 10px !important;
        padding-bottom: 0 !important;
    }

}


/** Recupero password **/


/** Login **/

/* Mobile app-like menu + servizi table readability */
@media screen and (max-width: 767px) {
    #sidebar {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 3.75rem;
        bottom: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        margin-top: 0;
        margin-left: -100% !important;
        min-height: calc(100vh - 3.75rem);
        overflow-y: auto;
        z-index: 1040;
        background: linear-gradient(180deg, #f6fbfc 0%, #eef5f7 100%);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        padding: .9rem .75rem 5rem;
        transition: margin-left .35s ease;
    }

    #sidebar .mobile-hidden {
        display: list-item !important;
    }

    .hide-sidebar #sidebar {
        margin-left: 0 !important;
    }

    #sidebar .sidebar-nav {
        width: 100%;
        margin-left: 0;
        padding: 0;
        min-height: auto;
        background: transparent;
    }

    #sidebar .sidebar-nav > ul {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #sidebar .sidebar-nav .sidebar-nav_item {
        width: 100%;
        margin: 0 0 .6rem;
    }

    #sidebar .sidebar-nav .sidebar-nav_item .sidebar-nav_item-link {
        width: 100% !important;
        height: auto;
        min-height: 48px;
        border: 1px solid #d9e8eb;
        border-radius: 16px;
        margin: 0;
        padding: .65rem .85rem;
        line-height: 1.2;
        background: #fff;
        box-shadow: 0 4px 10px rgba(17, 58, 70, 0.08);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: .65rem;
    }

    #sidebar .sidebar-nav .sidebar-nav_item.show > .sidebar-nav_item-link,
    #sidebar .sidebar-nav .sidebar-nav_item.active > .sidebar-nav_item-link {
        background: linear-gradient(135deg, #1b5a6c 0%, #2f7d90 100%);
        border-color: #1b5a6c;
    }

    #sidebar .sidebar-nav .sidebar-nav_item .sidebar-nav_item-link .sidebar-nav_item-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #edf5f7;
        margin: 0;
        flex: 0 0 30px;
    }

    #sidebar .sidebar-nav .sidebar-nav_item .sidebar-nav_item-link .sidebar-nav_item-icon i {
        font-size: 14px;
        color: #1b5a6c;
    }

    #sidebar .sidebar-nav .sidebar-nav_item.show > .sidebar-nav_item-link .sidebar-nav_item-icon,
    #sidebar .sidebar-nav .sidebar-nav_item.active > .sidebar-nav_item-link .sidebar-nav_item-icon {
        background: rgba(255, 255, 255, 0.2);
    }

    #sidebar .sidebar-nav .sidebar-nav_item.show > .sidebar-nav_item-link .sidebar-nav_item-icon i,
    #sidebar .sidebar-nav .sidebar-nav_item.active > .sidebar-nav_item-link .sidebar-nav_item-icon i {
        color: #fff;
    }

    #sidebar .sidebar-nav .sidebar-nav_item .sidebar-nav_item-link .sidebar-nav_item-text {
        font-size: 14px;
        font-weight: 600;
        color: #184f60;
        width: auto;
        padding: 0;
    }

    #sidebar .sidebar-nav .sidebar-nav_item.show > .sidebar-nav_item-link .sidebar-nav_item-text,
    #sidebar .sidebar-nav .sidebar-nav_item.active > .sidebar-nav_item-link .sidebar-nav_item-text {
        color: #fff;
    }

    /* Keep menu labels readable on mobile in hover/active states (also AI custom item). */
    #sidebar .sidebar-nav .sidebar-nav_item > .sidebar-nav_item-link:hover .sidebar-nav_item-text,
    #sidebar .sidebar-nav .sidebar-nav_item > .sidebar-nav_item-link:active .sidebar-nav_item-text,
    #sidebar .sidebar-nav .sidebar-nav_item.show > .sidebar-nav_item-link .sidebar-nav_item-text,
    #sidebar .sidebar-nav .sidebar-nav_item.active > .sidebar-nav_item-link .sidebar-nav_item-text,
    #sidebar .sidebar-nav .ai-menu-item > .sidebar-nav_item-link:hover .sidebar-nav_item-text,
    #sidebar .sidebar-nav .ai-menu-item > .sidebar-nav_item-link:active .sidebar-nav_item-text,
    #sidebar .sidebar-nav .ai-menu-item.active > .sidebar-nav_item-link .sidebar-nav_item-text {
        color: #ffffff !important;
    }

    #sidebar .sidebar-nav .sidebar-nav_item > .sidebar-nav_item-link:hover .sidebar-nav_item-icon i,
    #sidebar .sidebar-nav .sidebar-nav_item > .sidebar-nav_item-link:active .sidebar-nav_item-icon i,
    #sidebar .sidebar-nav .sidebar-nav_item.show > .sidebar-nav_item-link .sidebar-nav_item-icon i,
    #sidebar .sidebar-nav .sidebar-nav_item.active > .sidebar-nav_item-link .sidebar-nav_item-icon i,
    #sidebar .sidebar-nav .ai-menu-item > .sidebar-nav_item-link:hover .sidebar-nav_item-icon i,
    #sidebar .sidebar-nav .ai-menu-item > .sidebar-nav_item-link:active .sidebar-nav_item-icon i,
    #sidebar .sidebar-nav .ai-menu-item.active > .sidebar-nav_item-link .sidebar-nav_item-icon i {
        color: #ffffff !important;
    }

    #sidebar .sidebar-nav .sidebar-nav_sub-menu {
        margin: .4rem 0 .1rem;
        padding: .35rem .4rem .15rem 2.35rem;
        border-left: 2px dashed #bdd5db;
        background: rgba(255, 255, 255, .55);
        border-radius: 0 0 12px 12px;
    }

    #sidebar .sidebar-nav .sidebar-nav_sub-menu .sidebar-nav_sub-item--link {
        display: block;
        font-size: 13px;
        line-height: 1.35;
        padding: .4rem .2rem;
        color: #244955;
    }

    #sidebar .sidebar-nav .sidebar-nav_sub-menu .sidebar-nav_sub-item--link .badge {
        margin-right: .35rem;
    }

    #sidebar .mb-5.text-center {
        margin: 1rem 0 0 !important;
        padding: .5rem 0 0;
    }

    #sidebar .mb-5.text-center img {
        width: 110px !important;
        opacity: .9;
    }

    #mainWrapper {
        margin-top: 56px;
        padding-left: .75rem;
        padding-right: .75rem;
    }

    #mainWrapper .card-body {
        padding: 1rem .75rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-services {
        min-width: 980px;
    }

    #tblGoods th,
    #tblGoods td {
        white-space: nowrap;
        font-size: 12px !important;
    }

    #tblGoods td.NomeServ,
    #tblGoods td:nth-child(4) {
        white-space: normal;
        min-width: 220px;
        line-height: 1.35;
    }

    #pageContent {
        padding-bottom: 96px;
    }
}

@media screen and (max-width: 767px) {
    .form-steps-wizard .actions ul {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .form-steps-wizard .actions ul li {
        width: auto !important;
        display: flex;
        justify-content: center !important;
        margin: 0 !important;
    }

    .form-steps-wizard .actions ul li + li {
        margin-left: 0 !important;
        margin-top: 12px !important;
    }

    .form-steps-wizard .actions ul a {
        display: block !important;
        width: min(220px, 78vw) !important;
        text-align: center !important;
        border-radius: 8px;
        font-weight: 700;
        padding: 10px 14px;
        margin: 0 auto !important;
    }

    #footer {
        position: static !important;
        bottom: auto !important;
        width: 100% !important;
        background: #8e6caf !important;
    }

    #pageContent {
        padding: 1rem 0 !important;
    }
}

/* Global box refresh for all center content areas */
#mainWrapper #pageContent .card {
    position: relative;
    border: 1px solid #d8e8ed;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
    box-shadow: 0 10px 28px rgba(17, 58, 70, 0.09);
    overflow: hidden;
    transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

#mainWrapper #pageContent .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #56a6af 0%, #7aaec2 45%, #9abfd4 100%);
    opacity: 0.9;
}

#mainWrapper #pageContent .card .card-header {
    border: 0;
    background: linear-gradient(180deg, #f5fbfc 0%, #edf6f8 100%);
}

#mainWrapper #pageContent .card .card-body {
    background: transparent;
}

#mainWrapper #pageContent .bg-abstract {
    border: 1px solid #d1e4ea;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(86, 166, 175, 0.12), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
    box-shadow: 0 8px 22px rgba(25, 74, 88, 0.08);
    transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}
.intro-box.bg-abstract.primary-bg-color.m-2 {
    background: #1b5a6c!important;
}

#mainWrapper #pageContent .page-title {
    border-bottom: 1px solid #d8e8ed;
    margin-bottom: 16px;
}

#mainWrapper #pageContent .page-title h2 {
    letter-spacing: 0.01em;
}

@media (hover: hover) {
    #mainWrapper #pageContent .card:hover,
    #mainWrapper #pageContent .bg-abstract:hover {
        border-color: #b9d7df;
        box-shadow: 0 16px 34px rgba(17, 58, 70, 0.14);
    }
}

@media screen and (max-width: 767px) {
    #mainWrapper #pageContent .card {
        border-radius: 18px;
    }

    #mainWrapper #pageContent .bg-abstract {
        border-radius: 16px;
    }
}

.quote-orientative-wrap {
    border: 1px solid #d8e8ed;
    border-radius: 18px;
    padding: 16px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

.quote-orientative-chart {
    width: 100%;
    height: 260px;
    margin: 4px auto 12px;
    box-shadow: none;
    border: 2px solid #f1f3f7;
    border-radius: 0;
    background: #fff;
    overflow: visible;
}

.quote-orientative-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.quote-slice-label {
    font-size: 10px;
    font-weight: 700;
    fill: #0f2e47;
    pointer-events: none;
}

.quote-callout-line {
    stroke: #7f8fa0;
    stroke-width: 1;
}

.quote-callout-text {
    font-size: 12px;
    font-weight: 700;
    fill: #0f2e47;
}

.quote-orientative-legend {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.quote-orientative-legend li {
    margin-bottom: 6px;
    font-size: 15px;
    margin-left:32px;
}

.quote-info-box {
    border: 1px solid #d6dbeb;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f7f8fc 0%, #eef1f8 100%);
}

.quote-orientative-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 8px;
}

.quote-compare-box {
    border: 1px solid #d9dde6;
    border-radius: 8px;
    padding: 14px 16px;
    background: #e9f6f7;
    margin: 15px;
}

.quote-compare-title {
    color: #0f2e47;
    font-size: 15px;
        background: #c0f3f7;
}

.quote-orientative-chart-sm {
    height: 220px;
    margin-bottom: 8px;
    border: 0;
    background: transparent;
}

.quote-orientative-legend-tight li {
    margin-bottom: 4px;
    margin-left: 0;
}

.quote-compare-note {
    margin-top: 10px;
    color: #20354b;
        background: #c0f3f7;
}

.quote-olly-box {
    border: 1px solid #cfcde9;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f7f5fb 0%, #eeebf8 100%);
    color: #2f3354;
    font-size: 14px;
}

.quote-olly-box a {
    color: #a86caf;
    font-weight: 700;
    text-decoration: underline;
}

.olly-link {
    color: #e30b97 !important;
    font-weight: 700 !important;
}

.bozza-preview-box {
    margin-top: 2px;
}

.bozza-preview-paper {
    border: 1px solid #d9d6ca;
    border-radius: 14px;
    padding: 20px 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(252, 249, 240, 0.95) 100%);
    color: #163447;
    font-size: 20px;
    line-height: 1.75;
    font-family: "Cagliostro", "Titillium Web", sans-serif;
}

.bozza-preview-paper p {
    margin-bottom: 12px;
}

.bozza-preview-paper p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 767px) {
    .quote-orientative-wrap {
        padding: 12px 10px;
    }

    .quote-orientative-chart {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .quote-orientative-chart-sm {
        height: auto;
        margin-bottom: 12px;
    }

    .quote-slice-label {
        font-size: 8.5px;
    }

    .quote-callout-text {
        font-size: 8px;
    }

    .quote-orientative-legend li {
        font-size: 13px;
    }

    .quote-olly-box {
        font-size: 13px;
    }

    .bozza-preview-paper {
        padding: 16px 14px;
        font-size: 18px;
        line-height: 1.65;
    }
}

.btn,
a.btn,
button.btn,
input.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    border-radius: 8px !important;
}
