:root {
    --bs-primary: #28b5bd;
    --bs-secondary: #3b2a56;
}
/* Bottoni primari */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1e898f;
    border-color: #1e898f;
    color: #fff;
}

.btn-outline-primary {
    color: #28b5bd;
    border-color: #28b5bd;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:active:focus {
    background-color: #28b5bd;
    color: #fff;
    border-color: #28b5bd;
}
/* Sfondo primario */
.bg-primary, .dropdown-item.active, .dropdown-item:active {
    background-color: var(--bs-primary) !important;
    color: #fff;
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    background-color: var(--bs-primary) !important;
    color: #fff;
    border-color: transparent;
}
/* Testo primario */
.text-primary {
    color: var(--bs-primary) !important;
}

/* Sfondo secondario */
.bg-secondary {
    background-color: var(--bs-secondary) !important;
    color: #fff;
}

.bg-body-tertiary {
    background-color: #eff2f5 !important;
}
/* Testo secondario */
.text-secondary {
    color: var(--bs-secondary) !important;
}
/*Tipogrfia*/
.title {
    font-size: 18px;
    font-weight: 900;
}

body {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}
/*User Button*/
.button-user button {
    background-color: transparent;
    border: none;
}

.button-user button img {
    width: 45px;
    padding: 2px;
}

.button-user .dropdown-menu {
    left: inherit;
}
/*Extra Bold*/
.fw-ex-bold {
    font-weight: 800;
}

/*Rotazione freccia Menu Sidebar*/
.nav-link[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

/*Sidebar*/
@media (min-width:764px) {
    .sidebar {
        background-color: #ffffff;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
}

.sidebar-heading {
    color: #ffffff !important;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 900;
    height: 50px;
}

.nav-link {
    color: #ffffff !important;
}

.nav-link.active, .nav-link:hover, .nav-link[aria-expanded="true"] {
    color: #ffffff !important;
    background-color: #28b5bd;
}
.sidebar{
    background-color: #5b7e96;
}


.nav-item #submenuDashboard .nav-link.active, .nav-item #submenuDashboard .nav-link:hover {
    color: #28b5bd !important;
    background-color: #d1eff1;
}

.nav-item #submenuDashboard .nav-link {
    font-size: 14px;
}

.nav-link.active::before {
    color: #0d6efd;
}

/*Sezione Centrale - First Section*/
.first-section {
    min-height: calc(100vh - 170px);
}

.first-section .form-label {
    color: #5e6267;
    text-transform: uppercase;
    font-size: 14px;
}

/*Head Table*/
.head-table select {
    width: 100px;
}

.head-table input {
    width: 200px;
}


/*Table*/
thead tr th {
    background-color: #28b5bd36 !important;
    vertical-align: middle;
    height: 60px;
    color: #28b5bd!important;
    text-transform: uppercase;
    font-size: 14px;
}

.dataTables_length, .dataTables_filter {
    margin-bottom: 30px;
}

table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting:after, table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_asc:after, table.dataTable thead > tr > th.sorting_desc:before, table.dataTable thead > tr > th.sorting_desc:after, table.dataTable thead > tr > th.sorting_asc_disabled:before, table.dataTable thead > tr > th.sorting_asc_disabled:after, table.dataTable thead > tr > th.sorting_desc_disabled:before, table.dataTable thead > tr > th.sorting_desc_disabled:after, table.dataTable thead > tr > td.sorting:before, table.dataTable thead > tr > td.sorting:after, table.dataTable thead > tr > td.sorting_asc:before, table.dataTable thead > tr > td.sorting_asc:after, table.dataTable thead > tr > td.sorting_desc:before, table.dataTable thead > tr > td.sorting_desc:after, table.dataTable thead > tr > td.sorting_asc_disabled:before, table.dataTable thead > tr > td.sorting_asc_disabled:after, table.dataTable thead > tr > td.sorting_desc_disabled:before, table.dataTable thead > tr > td.sorting_desc_disabled:after {
    right: 10px !important;
}

@media(min-width:768px) {
    table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting:after, table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_asc:after, table.dataTable thead > tr > th.sorting_desc:before, table.dataTable thead > tr > th.sorting_desc:after, table.dataTable thead > tr > th.sorting_asc_disabled:before, table.dataTable thead > tr > th.sorting_asc_disabled:after, table.dataTable thead > tr > th.sorting_desc_disabled:before, table.dataTable thead > tr > th.sorting_desc_disabled:after, table.dataTable thead > tr > td.sorting:before, table.dataTable thead > tr > td.sorting:after, table.dataTable thead > tr > td.sorting_asc:before, table.dataTable thead > tr > td.sorting_asc:after, table.dataTable thead > tr > td.sorting_desc:before, table.dataTable thead > tr > td.sorting_desc:after, table.dataTable thead > tr > td.sorting_asc_disabled:before, table.dataTable thead > tr > td.sorting_asc_disabled:after, table.dataTable thead > tr > td.sorting_desc_disabled:before, table.dataTable thead > tr > td.sorting_desc_disabled:after {
        right: 50% !important;
    }
}

table.dataTable > thead > tr > th, table.dataTable > thead > tr > td {
    height: 45px !important;
    border-bottom: none !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

table.dataTable th, table.dataTable td {
    border-bottom: 2px solid #eff2f5;
}

.icon-link {
    cursor: pointer;
    background: #eff2f5;
    padding: 4px;
    border-radius: 4px;
}

.icon-link:hover {
    background: #dfdfdf;
}

.paginate_button {
    color: #000000 !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
}

.paginate_button.current {
    background-color: #28b5bd36 !important;
    border-color: #28b5bd !important;
}

.dataTables_wrapper .dataTables_paginate a.paginate_button:hover {
    background: #28b5bd36 !important;
    border-color: #28b5bd !important;
    color: #000000 !important;
}
/*Icon User Scheda Paziente*/
.icon-user {
    width: 55px;
    background-color: #eff2f5;
    border-radius: 30px;
    padding: 6px;
    border: 5px solid white;
}
/*badge*/
.badge {
    font-size: 14px;
    text-transform: uppercase;
}

/*Card Misurazioni*/
.card-misurazioni {
    min-height: 562px;
}

/*FASI*/
.phases {
    background-color: #e9eaeb;
    width: 100%;
}

.phases p small {
    font-weight: 700;
    font-size: 12px;
    color: #a3a5a5;
}

.phases.active {
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
}

.phases.active p small {
    color: #664d03;
}

/*Table Dieta*/
.table-diet th {
    background-color: #ffffff !important;
    color: #28b5bd!important;

}
.bg-table-diet {
    background-color: #28b5bd36 !important;
    vertical-align: middle;
    height: 60px;
    color: #28b5bd!important;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #ffffff;
}
/*Accordion*/
.accordion-button:not(.collapsed), .accordion-button {
    background-color: #5b7e96!important;
    color: #ffffff!important;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
    font-weight: bold;
    text-transform: uppercase;
}

/*Linee percentuale*/
.line-container {
    width: 90%;
    height: 21px;
    background: #28b5bd36;
    border: 1px solid #2aa192;
    border-radius: 15px;
    overflow: hidden;
}

.line-fill {
    height: 100%;

    background: #2aa192;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
    font-size:14px;
}
.cursor-pointer
{
    cursor: pointer;   
}