/* stile nome */
#Nome_applicazione{
font-size:18px;
font-weight:bold;
color:#333;
}


/*********************************
 * GRAFICI & KPI
 *********************************/
.h3-kpi {
    float: left;
    margin: 0 0 0 10px;
}

.kpi-block {
    min-height: 190px;
    max-height: 205px;
    height: 100%;
    border-radius: 12px;
    margin: 5px 0 10px 0;
    padding: 15px;
    background: #dedede;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kpi-block.kpi-block-double {
    min-height: 240px;
}

.kpi-button {
    color: white;
    background: #8a9898;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    float: right !important;
    max-width: fit-content;
    margin-right: 10px;    
}

.kpi-button:hover {
    color: #000;
}

.kpi-link {
    color: #000;
    font-weight: 500;
}

    

.kpi-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.kpi-table td {
    padding: 6px 8px;
    vertical-align: middle !important;
}

.kpi-table-header {
    font-weight: bold;
    background-color: #f8f9fa;
    text-align: center;
}

.kpi-row-other {
    font-weight: bold;
    background-color: #f0f0f0;
    text-align: center;
}

/* Contenitori grafici */
.graph-container-fixed {
    width: 800px;  
    margin: 0 auto;        
}

.graph-container-fluid {
    width: 90%;
    margin: 0 auto;    
}

.graph-container-bg {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.graph-back-button {
    position: absolute;
    top: 65px;
    left: 250px;
}

.pad-2 {
    padding: 2px !important;
}

.pie-container {
    display: flex;
    align-items: center;    
}

/* Liste corsi */
.ul-courses {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 90%;
    justify-content: space-between;
}

.li-courses {
    width: 50%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

/*********************************
 * DETTAGLIO CORSO
 *********************************/
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

.course-graph-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}

.course-graph-container a,
.course-graph-container div {
    width: 30% !important;
    float: left;
    margin-left: 5px;
}

.course-graph-container div a {
    width: 100% !important;
    float: initial;
}

.course-graph-container a div,
.course-graph-container div div {
    width: 98% !important;
    padding: 15px;
}

.course-description {
    font-size: 1.5em;
}

.indire-table {
    width:900px;
    border:solid 1px #000;
    background-color:white;
    margin: 0 auto; 
    font-size: 1.1em;       
}

.indire-table td {
    padding: 8px;
}

.indire-explaination {
    width:900px;
    margin: 0 auto;
    font-size: 1.2em;  
    margin-top: 20px;  
}

.text-strong {
    font-weight: 700;
}

.red-result {
    background-color: red;
    padding:8px;
    color: white;
    font-weight: 700;
}

.grey-result {
    background-color: #BBB;
    padding:8px;
    color: black;
    font-weight: 700;
}

.yellow-result {
    background-color: yellow;
    padding:8px;    
    color: black;
    font-weight: 700;    
}

.green-result {
    background-color: green;
    padding:8px;   
    color: white;
    font-weight: 700;     
}

.red-result-indire {
    background-color: red;
    padding:2px;
    color: white;
    font-weight: 700;
}

.grey-result-indire {
    background-color: #BBB;
    padding:2px;
    color: black;
    font-weight: 700;
}


.yellow-result-indire {
    background-color: yellow;
    padding:2px;    
    color: black;
    font-weight: 700;    
}

.green-result-indire {
    background-color: green;
    padding:2px;   
    color: white;
    font-weight: 700;     
}



/* Tabelle dettagli corsi */
.table-wrapper {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 180px;
    overflow-y: hidden;
}

.table-corsi td { 
    vertical-align: middle !important;
    background-color: white;
}

.corso-cell a.kpi-link {
    font-weight: 500;
    color: #000;
}

.badge-score {
    display: inline-block;
    min-width: 60px;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
}

/*********************************
 * SEMAFORI COLORATI
 *********************************/
.red-result { background-color: red; color: white; padding: 8px; font-weight: 700; }
.grey-result { background-color: #BBB; color: black; padding: 8px; font-weight: 700; }
.yellow-result { background-color: yellow; color: black; padding: 8px; font-weight: 700; }
.green-result { background-color: green; color: white; padding: 8px; font-weight: 700; }

.red-result-indire { background-color: red; color: white; padding: 2px; font-weight: 700; }
.grey-result-indire { background-color: #BBB; color: black; padding: 2px; font-weight: 700; }
.yellow-result-indire { background-color: yellow; color: black; padding: 2px; font-weight: 700; }
.green-result-indire { background-color: green; color: white; padding: 2px; font-weight: 700; }

/*********************************
 * SIDEBAR & MENU SONATA
 *********************************/

.treeview-menu>li>a {
    white-space: break-spaces;
}

.main-sidebar,
.main-sidebar .sidebar,
aside.main-sidebar,
section.sidebar {
    background-color: #666 !important;
    color: black !important;
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link {
    background-color: #666 !important;
    color: black !important;
}

.main-sidebar .nav-sidebar .nav-link.active {
    background-color: rgba(0,0,0,0.2) !important;
    color: black !important;
}

.main-sidebar .nav-sidebar .nav-link i,
.main-sidebar .nav-sidebar .nav-link p {
    color: black !important;
}

.sonata-ba-content .row .col-md-6 {
    width: 100% !important;
}

.sonata-ba-content .row .col-md-6 a,
.sonata-ba-content .row .col-md-6 div {
    width: 33% !important;
    float: left;
    margin-left: 5px;
}

.sonata-ba-content .row .col-md-6 a.col-3,
.sonata-ba-content .row .col-md-6 div.col-3 {
    width: 24.60% !important;
    float: left;
    margin-left: 5px;
}

.sonata-ba-content .row .col-md-6 a.col-6,
.sonata-ba-content .row .col-md-6 div.col-6 {
    width: 49.60% !important;
    float: left;
    margin-left: 5px;
}

.sonata-ba-content .row .col-md-6 div a {
    width: 100% !important;
    float: initial;
}

.sonata-ba-content .row .col-md-6 a div,
.sonata-ba-content .row .col-md-6 div div {
    width: 98% !important;
    padding: 15px;
}

/*********************************
 * RESET & UTILI
 *********************************/
.clean_element {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#filtro_data {
    width: 60% !important;
    margin: 0 auto !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#filtro_data > form {
    width: 100%;
}



/* card delle sedi style  */
/*********************************
 * CARDS SEDI
 *********************************/
.site-courses-block .site-card {
    background: #e2e2e2;
    border-radius: 10px;
}

.site-courses-block .site-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.site-courses-block .course-item .course-badge {
    padding: 5px 10px;
    font-weight: bold;
}

.site-courses-block .course-item .course-name {
    font-size: 16px;
}

#container_sedi {
    width: 98% !important;
    display: flex;
}

#sede{
    padding: 0 !important;
    width: 50% !important;
}
/* inizio stile tabelle  */

/* Wrapper tabella (bordo + scorrimento) */
.table-wrapper {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 180px;
    overflow-y:hidden;
}

.table-bordered, .table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th  {
        border: 1px solid #CCC !important;
        padding: 7px;
}

/* Header tabella */
.table-corsi .table-header {
    background: #EEE;
    text-align: center;
}

/* Larghezza colonne */
.table-corsi .col-corso {
    width: 55%;
}

.table-corsi .col-score {
    width: 15%;
    text-align: center;
}

/* Celle */
.table-corsi td {
    vertical-align: middle !important;
}

/* Nome corso */
.corso-cell a.kpi-link {
    font-weight: 500;
    color: #000;
}

/* Badge punteggio */
.badge-score {
    display: inline-block;
    min-width: 60px;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
}
/* Card esterne (già usate da te) */
.site-card {
    background: #e2e2e2;
    border-radius: 10px;
}


/* fine stile tabelle */
/* fine */
#sede {
    padding: 0 !important;
    width: 50% !important;
}
/* stile interno tabelle  */

/* RIGA PARI */
tbody.stile-righe  tr:nth-child(even) td{
    background-color: #f7f7f7 !important;
}

/* stile bottoni Corsi info  */
.Container_titolo_Bottone{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 !important;
    margin: 0 !important;
}
#Corsi{
    margin: 10px 0 10px 0;
}
/* stile bottone indietro */
#bottone_indietro {
    position: absolute;
    transition: top 0.4s ease, left 0.4s ease;
    z-index: 2;
}
/* fine */