



header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Aumenta il padding */
    background: linear-gradient(90deg, #007bff, #0056b3); /* Sfondo sfumato */
    color: white;
    border-radius: 10px; /* Bordi arrotondati */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Ombra moderna */
    margin: 20px;
}


header h1 {
    font-size: 36px; /* Testo più grande */
    letter-spacing: 1.2px; /* Migliora leggibilità */
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Effetto ombra sul testo */
    color:white;
}
    
body {
    font-family: 'Lato', sans-serif; /* Font moderno */
    background-color: #f9f9f9; /* Sfondo chiaro */
    color: #333; /* Testo scuro */
    line-height: 1.6; /* Migliore leggibilità */
    margin-bottom: 100px !important;
}

/* Wrapper per il contenuto animato */
.page-content {
    opacity: 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    transform: translateY(10px); /* Movimento verso il basso */
}

/* Quando il contenuto è caricato */
body.page-loaded .page-content {
    opacity: 1;
    transform: translateY(0);
}

/* Quando il contenuto sta uscendo */
body.page-leaving .page-content {
    opacity: 0;
    transform: translateY(-10px); /* Movimento verso l'alto */
}


        .container {
            padding: 20px;
        }


/* Accordion container */
.accordion-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    max-width: 80vw;
    place-self: center;
}

/* Header cliccabile */
.accordion-header {
    background-color: #00778a;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Bottone toggle */
.accordion-header .toggle-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    outline: none;
    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

/* Bottone quando aperto */
.accordion-header.open .toggle-button {
    transform: rotate(45deg);
}

/* Contenuto inizialmente nascosto */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 20px;
}

/* Contenuto visibile */
.accordion-content.open {
    max-height: 1000px; /* Altezza sufficiente */
    padding: 20px;
    background-color:#93b9bf;
}

.accordion-content.open label{
    background-color:transparent !important;
    color:white !important;
}

.accordion-content.open .form-container{
    background-color:transparent !important;
 box-shadow:none;
}

.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}
.radio-group  input[type=radio] {
   width: 20px; /* Larghezza del selettore */
    height: 20px; /* Altezza del selettore */
        box-shadow:none;

}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
        box-shadow:none;

}

.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Ombra moderna */
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: scale(1.02); /* Effetto zoom */
}

        .form-container h2 {
            margin-bottom: 20px;
            font-size: 20px;
            color: #007bff;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            font-size: 14px;
            margin-bottom: 5px;
            display: block;
        }


.form-group input, .form-group textarea, .form-group select {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* Effetto focus */
    outline: none;
}

        .search-container {
            max-width: 600px;
            margin: 20px auto;
            display: flex;
            gap: 10px;
        }

        .search-container input {
            flex: 1;
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        .search-container button {
            padding: 10px 20px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
        }
        
        /* Modal CSS */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

/* Modale moderno */
.modal-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 600px;
    position: relative;
}

.close-button {
    font-size: 20px;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: red;
}
        
        /* Stile generale della tabella */
#clientsTable, label {
    font-family: 'Lato', sans-serif; /* Font moderno */
    background-color: white; /* Sfondo bianco */
    border-radius: 10px; /* Bordi arrotondati */
    overflow: hidden; /* Nascondi contenuto che esce dai bordi */
}
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before{
    left: 85% !important;
}

/* Testata della tabella */
#clientsTable thead th {
    background-color: #007bff; /* Colore blu */
    color: white; /* Testo bianco */
    padding: 10px; /* Spaziatura interna */
    font-size: 14px; /* Dimensione del testo */
    border-bottom: none; /* Rimuove il bordo inferiore */
    text-align: left;
}

/* Riga della tabella */
#clientsTable tbody tr {
    border-bottom: 1px solid #ddd; /* Bordo sottile */
    transition: background-color 0.3s; /* Animazione al passaggio del mouse */
}

/* Effetto hover */
#clientsTable tbody tr:hover {
    background-color: #f4f4f9; /* Sfondo chiaro al passaggio */
}

/* Celle della tabella */
#clientsTable tbody td {
    padding: 10px; /* Spaziatura interna */
    font-size: 14px; /* Dimensione testo */
    color: #333; /* Testo scuro */
}

/* Pulsanti delle azioni */
#clientsTable tbody td a {
    color: #007bff; /* Colore blu */
    text-decoration: none; /* Nessuna sottolineatura */
    padding: 5px 10px; /* Spaziatura interna */
    border: 1px solid #007bff; /* Bordo blu */
    border-radius: 5px; /* Arrotondamento pulsanti */
    transition: all 0.3s; /* Animazione */
}

#clientsTable tbody td a:hover {
    background-color: #007bff; /* Sfondo blu */
    color: white; /* Testo bianco */
}

/* Traduzione barra di ricerca e navigazione */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd; /* Bordo sottile */
    padding: 5px 10px; /* Spaziatura */
    border-radius: 8px; /* Arrotondamento */
}


.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #0056b3; /* Colore hover */
}

/* Griglia del form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Due colonne di uguale larghezza */
    gap: 20px; /* Spaziatura tra le colonne */
}



.form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #007bff;
    text-align: center;
}

/* Campi del form */
.form-group label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #333;
}



/* Pulsante di invio */
.submit-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto 0; /* Centra il bottone */
}

.submit-button:hover {
    background-color: #0056b3;
}

/* Responsive per dispositivi mobili */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr; /* Una sola colonna su schermi piccoli */
    }
}



/* Responsive */
@media (max-width: 600px) {
    #clientsTable {
        font-size: 12px; /* Riduce il font sui dispositivi piccoli */
    }
}

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        table th, table td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }

        table th {
            background: #007bff;
            color: white;
        }
        
        
       .dataTables_info{
           margin-bottom:0px;
       }
/* Stile per i pulsanti "nascosti" */
.dt-button.hidden-col {
    background-color: #ccc; /* Grigio */
    color: #666; /* Testo scuro */
    border: 1px solid #aaa; /* Bordo grigio */
    transition: background-color 0.3s ease;
}

/* Stile per i pulsanti "visibili" */
.dt-button.visible-col {
    background-color: #007bff; /* Blu */
    color: #fff; /* Testo bianco */
    border: 1px solid #0056b3; /* Bordo blu scuro */
    transition: background-color 0.3s ease;
}

/* Hover effetto */
.dt-button:hover {
    opacity: 0.9;
}

.dt-button-collection{
 margin-top: 0px !important;   
}

/* Stile per il bottone "Visualizza" */
.view-client {
    background-color: #007bff;
    color: white;

    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-client:hover {
    background-color: #0056b3;
}


/*Bank Balances*/





        .container {
            padding: 20px;
        }

        .overview-container {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 20px;
        }

/* Panoramica migliorata */
.overview-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    width: -webkit-fill-available;
}

.overview-box:hover {
    background: #f0f8ff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); /* Sollevamento */
}

        .overview-box h3 {
            margin: 0;
            color: #007bff;
            font-size: 18px;
        }

        .overview-box p {
            margin: 10px 0 0;
            font-size: 24px;
            font-weight: bold;
        }




        .sections-container {
            display: flex;
            justify-content: space-between;
            gap: 20px;
        }

        .left-section, .right-section {
            flex: 1;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .left-section {
            max-width: 45%;
        }

        .right-section {
            max-width: 55%;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background: white;
        }

        table th, table td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }

        table th {
            background-color: #007bff;
            color: white;
        }

        button {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px;
            margin: 5px;
            border-radius: 5px;
            cursor: pointer;
        }

        button:hover {
            background-color: #0056b3;
        }

        
        
        /* Stile per la container principale */
.container {
    padding: 20px;
}



/* Titolo del form */
.form-container h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #007bff;
}

/* Gruppi di campi */
.form-group {
    margin-bottom: 20px;
    text-align: left; /* Allinea il testo delle etichette a sinistra */
}

/* Etichette */
.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}



/* Pulsante di invio */
.btn-submit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Hover pulsante */
.btn-submit:hover {
    background-color: #0056b3;
}

#yearSelectorContainer {
    position: fixed;
    bottom: 10%; /* Altezza dal top della finestra */
    right: 20px; /* Margine destro */
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: rgba(128, 0, 128, 0.8); /* Viola semi-trasparente */
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
    font-family: Arial, sans-serif;
}

#yearButton {
    background-color: rgba(128, 0, 128, 0.9);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#yearButton:hover {
    background-color: rgba(128, 0, 128, 1);
}

#yearSelector {
    background-color: white;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
    width: 100%;
}

#yearSelector:focus {
    outline: none;
    border-color: #0056b3;
}

/*Collab Payments*/


        h1 {
            margin: 0;
        }

        .container {
            padding: 20px;
        }

        .row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

        .box {
            flex: 1;
            min-width: 300px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 15px;
        }

        .box h2 {
            margin-top: 0;
            color: #007bff;
        }
.table-container {
            margin-top: 20px;
        }

        table thead {
            background-color: #6f42c1;
            color: white;
        }
/* Layout per le due tabelle affiancate */
        .tables-row {

    display: flex;
    gap: 20px;
place-self:center;
        }

.modal-backdrop{
    display:none !important;
}

.modal-dialog{
    
margin-top:150px !important;    
}

.col-md-6{
    width:40%;
}
        .tables-row .box {
          flex: 1 1 calc(50% - 20px); /* Due colonne, con gap incluso */
    min-width: 300px; /* Dimensione minima per evitare sovrapposizioni */
    overflow-x: auto; /* Aggiunge uno scroll orizzontale se necessario */
    padding: 10px; /* Spazio interno */
    border-radius: 10px; /* Migliora l'estetica */
    background-color: #fff; /* Colore di sfondo */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombra per evidenziare */
        max-width:46vw;
            
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

table thead th {
    background-color: #6f42c1; /* Viola */
    color: white; /* Testo bianco */
}

        table th, table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }

        table th {
            background-color: #007bff;
            color: white;
        }

        a {
            text-decoration: none;
            color: #007bff;
        }

        a:hover {
            text-decoration: underline;
        }

        footer {
            margin-top: 20px;
            text-align: center;
            padding: 10px;
            background-color: #007bff;
            color: white;
        }

        .actions {
            gap: 10px;
        }
        
        .actions a{
            background-color:#5d368b;
            color:white;
padding:5px;
border-radius:10px;
transition:0.4s;

        }
        
        .actions a:hover{
            background-color:#af61a3;
            color:white;
padding:5px;
border-radius:3px;
transition:0.4s;
        }
         .modal {
            display: none; /* Corretto per non mostrare il modal */
        }
         .sticky-bar {
    background: linear-gradient(90deg, #5e358b, #4b2972);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.bar-item {
    font-size: 14px;
    text-align: center;
    color: white;
    transition: color 0.3s ease;
}

.bar-item:hover {
    color: #ffd700; /* Colore oro al passaggio */
}

    /* Icone */
    .icon {
        width: 24px;
        height: 24px;
        filter: invert(100%);
    }

    /* Mobile Friendly */
    @media (max-width: 600px) {
        .sticky-bar {
            padding: 5px 0;
        }

        .bar-item span {
            font-size: 12px;
        }

        .icon {
            width: 20px;
            height: 20px;
        }
    }
    
      .overdue {
        background-color: #f8d7da; /* Rosso chiaro */
        color: red; /* Rosso scuro */
    }

/*Partners*/




.form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #007bff;
    text-align: center;
}

/* Campi del form */
.form-group label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #333;
}



/* Pulsante di invio */
.submit-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto 0;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* Tabella dei partner */
#partnersTable, label {
    font-family: 'Roboto', sans-serif;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

#partnersTable thead th {
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-size: 14px;
    border-bottom: none;
    text-align: left;
}

#partnersTable tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

#partnersTable tbody tr:hover {
    background-color: #f4f4f9;
}

#partnersTable tbody td {
    padding: 10px;
    font-size: 14px;
    color: #333;
}

/* Pulsanti delle azioni */
#partnersTable tbody td a {
    color: #007bff;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #007bff;
    border-radius: 5px;
    transition: all 0.3s;
}

#partnersTable tbody td a:hover {
    background-color: #007bff;
    color: white;
}

/* Traduzione barra di ricerca e navigazione */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 8px;
}

/* Pulsanti di navigazione */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 12px !important;
    padding: 5px 10px;
    margin: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    #partnersTable {
        font-size: 12px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Contenitore generale */
.container {
    padding: 20px;
}

/* Griglia del form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Responsive per dispositivi mobili */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Stile delle note */
textarea {
    resize: none;
}

/*Recovery Credits*/



        .container {
            padding: 20px;
        }



        .form-container h2 {
            font-size: 20px;
            color: #007bff;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            margin-bottom: 5px;
            color: #555;
        }



        .btn-submit {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .btn-submit:hover {
            background-color: #0056b3;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background: white;
        }

        table th, table td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }

        table th {
            background-color: #007bff;
            color: white;
        }

        .overview-container {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 20px;
        }


        .overview-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}




.credits-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 100px;
}

.credits-section {
    flex: 1;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.credits-section h3 {
    margin-bottom: 15px;
    color: #007bff;
    font-size: 18px;
}

.credits-section table {
    width: 100%;
    border-collapse: collapse;
}

.credits-section th, .credits-section td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.credits-section th {
    background-color: #007bff;
    color: white;
}

        
        
        
        
        
        .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
        
/* Stili per i pulsanti delle azioni */
.action-button {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Colore per Visualizza */
.action-button.view {
    background-color: #28a745; /* Verde */
}

.action-button.view:hover {
    background-color: #218838; /* Verde scuro */
}

/* Colore per Modifica */
.action-button.edit {
    background-color: #007bff; /* Blu */
}

.action-button.edit:hover {
    background-color: #0056b3; /* Blu scuro */
}

/* Colore per Elimina */
.action-button.delete {
    background-color: #dc3545; /* Rosso */
}

.action-button.delete:hover {
    background-color: #c82333; /* Rosso scuro */
}


/*GANTT*/



    /* Contenitore dello slider */
    .zoom-slider-container {
        position: fixed;
        bottom: 180px; /* Posizionato sopra i pulsanti fluttuanti */
        right: 20px; /* Allineato a destra */
        z-index: 1000;
        background: #ffffff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
        font-family: Arial, sans-serif;
    }

    .zoom-slider-container label {
        margin-bottom: 5px;
        font-size: 14px;
        color: #333;
    }

    .zoom-slider-container input[type="range"] {
        width: 150px;
        appearance: none;
        background: #ddd;
        height: 5px;
        border-radius: 5px;
        outline: none;
        transition: background 0.3s ease;
    }

    .zoom-slider-container input[type="range"]::-webkit-slider-thumb {
        appearance: none;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: #4CAF50;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .zoom-slider-container input[type="range"]::-moz-range-thumb {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: #4CAF50;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .zoom-slider-container input[type="range"]:hover {
        background: #ccc;
    }
    
    
    
/* Stile per i pulsanti fluttuanti */
        /* Intestazione personalizzata */
        h1 {
            text-align: center;
            font-family: Arial, sans-serif;
            color: #333;
        }

/* Contenitore dei pulsanti fluttuanti */
    .floating-buttons {
        position: fixed;
        bottom: 100px; /* Posizionato 100px sopra il fondo della pagina */
        right: 20px; /* Allineato a destra */
        display: flex;
        gap: 15px; /* Spaziatura tra i pulsanti */
        z-index: 1000; /* Priorità visiva sopra altri elementi */
    }

    /* Stile per i pulsanti */
    .floating-buttons button {
        background-color: #4CAF50; /* Verde */
        color: white;
        border: none;
        border-radius: 10px; /* Angoli arrotondati */
        width: 100px; /* Larghezza aumentata per migliorare leggibilità */
        height: 50px; /* Altezza maggiore */
        font-size: 16px; /* Testo più grande */
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Ombra */
        transition: background-color 0.3s ease, transform 0.2s ease; /* Transizioni morbide */
    }

    .floating-buttons button:hover {
        background-color: #45a049; /* Verde scuro al passaggio del mouse */
        transform: scale(1.1); /* Effetto zoom al passaggio del mouse */
    }

    /* Tooltip per i pulsanti */
    .floating-buttons button::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 60px; /* Posizionato sopra il pulsante */
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .floating-buttons button:hover::after {
        opacity: 1;
        visibility: visible;
    }


.custom-task {
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.custom-header {
    font-size: 16px;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Task con alto progresso */
.high-progress .gantt_cell,
.high-progress .gantt_task_line {
    background-color: #FFEB3B !important; /* Giallo brillante */
}

/* Task quasi completate */
.progress-near-completion {
    background-color: #FF5722 !important; /* Arancione */
    border: 2px solid #E64A19 !important; /* Bordo arancione scuro */
}
/* Stile per le colonne del Gantt */
.gantt_grid_head_cell {
    background-color: #4CAF50; /* Colore di sfondo */
    color: white; /* Testo bianco */
    font-weight: bold; /* Testo in grassetto */
    text-align: center; /* Allineamento al centro */
          position: relative;

}



/* Stile per le righe delle task */
.gantt_row {
    background-color: #f9f9f9; /* Colore di sfondo delle righe */
}

.gantt_row:nth-child(odd) {
    background-color: #e8f5e9; /* Colore di sfondo delle righe alternate */
}

/* Stile per le attività nel diagramma */


.gantt_task_line.gantt_task_progress {
    background-color: #2E7D32; /* Colore del progresso */
}

/* Tooltip */
.gantt_tooltip {
    background-color: #4CAF50; /* Sfondo del tooltip */
    color: white; /* Colore del testo */
    border-radius: 4px; /* Angoli arrotondati */
    padding: 8px; /* Spaziatura interna */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Ombra */
}

#kanban {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.kanban-column {
    flex: 1;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    overflow-y: auto;
}

.kanban-tasks {
    min-height: 50px;
}

.kanban-task {
    background: #4CAF50;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: grab;
}

.status-started {
    color: blue !important; /* Cambia il colore per "started" */
    font-weight: bold; /* Testo in grassetto */
}

.status-in_progress {
    color: orange !important; /* Cambia il colore per "in_progress" */
    font-weight: bold;
}

.status-completed {
    color: green !important; /* Cambia il colore per "completed" */
    font-weight: bold;
}

    /* Contenitore dei pulsanti di vista */
    .view-buttons-container {
        text-align: center;
        margin-bottom: 20px; /* Spazio tra i pulsanti e il titolo */
    }

    /* Stile dei pulsanti di vista */
    .view-buttons-container button {
        background-color: #4CAF50; /* Colore verde principale */
        color: white;
        border: none;
        border-radius: 8px; /* Angoli arrotondati */
        padding: 10px 20px; /* Spaziatura interna */
        font-size: 16px; /* Dimensione del testo */
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Ombra */
        transition: background-color 0.3s ease, transform 0.2s ease; /* Effetto hover */
        margin: 0 10px; /* Spaziatura tra i pulsanti */
    }

    .view-buttons-container button:hover {
        background-color: #45a049; /* Colore verde scuro al passaggio del mouse */
        transform: scale(1.1); /* Effetto zoom al passaggio del mouse */
    }

    .view-buttons-container button.active {
        background-color: #3E8E41; /* Colore più scuro per pulsanti attivi */
        border: 2px solid #2E7D32; /* Bordo scuro per evidenziare il pulsante attivo */
    }
    
    /* Stile del Modal */
#task-modal {
    display: none; /* Nascondi di default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Sfondo scuro trasparente */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}



.modal-content h3 {
    font-family: 'Roboto', Arial, sans-serif;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.6; /* Migliore leggibilità */
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}


.today-line {
    position: absolute;
    width: 2px;
    background-color: #ff000093 !important;
    z-index: 1000;
}

/*manage resources*/

        .table-container {
            margin-top: 50px;
        }
        .modal-header {
            background-color: #007bff;
            color: white;
        }
        .modal-footer button {
            margin-left: 10px;
        }
        .btn-custom {
            background-color: #6f42c1;
            color: white;
        }
        .btn-custom:hover {
            background-color: #5a3299;
        }
        
        
        
/* Prima Nota: Form */
.prima-nota-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prima-nota-form input,
.prima-nota-form select,
.prima-nota-form button {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px auto;
    display: block;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.prima-nota-form input:focus,
.prima-nota-form select:focus {
    border-color: #4CAF50;
}

.prima-nota-form button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.prima-nota-form button:hover {
    background-color: #45a049;
}

/* Prima Nota: Totali */
.prima-nota-totali-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
}

.prima-nota-totale {
    flex: 1;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prima-nota-totale-entrate {
    background-color: #e9f8e9;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.prima-nota-totale-uscite {
    background-color: #fbeaea;
    color: #f44336;
    border: 2px solid #f44336;
}

/* Prima Nota: Tabelle */
.prima-nota-table-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px auto;
    max-width: 90vw;
}

.prima-nota-table-container .prima-nota-table {
    flex: 1;
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 10px;
    box-sizing: border-box;
}

.prima-nota-table thead {
    background-color: #4CAF50;
    color: #fff;
}

.prima-nota-table th,
.prima-nota-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.prima-nota-table tbody tr:hover {
    background-color: #62bf8c;
    color: white;
}

/* Prima Nota: Filtri */
.prima-nota-filtra-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: rgba(128, 0, 128, 0.9);
    color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index:100;
}

.prima-nota-filtra-toggle {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.prima-nota-filtra-content {
    display: none;
    padding: 15px;
}

.prima-nota-filtra-content button {
    background-color: #4CAF50;
    color: #fff;
}

.prima-nota-totali-title{
    place-self:center;
}
#entrate_wrapper, #uscite_wrapper{
    width:40vw;
}

/*RESPONSIVE*/

/* Media query per tablet */
@media (max-width: 1024px) and (min-width: 601px) {
    header {
        padding: 20px; /* Aumenta padding */
        text-align: center;
    }

    header h1 {
        font-size: 28px; /* Riduce dimensione del titolo */
    }

    .container {
        padding: 15px;
    }

    .form-container {
        max-width: 90%; /* Riduce larghezza del form */
        margin: 10px auto;
        padding: 20px;
    }

    .search-container {
        flex-direction: column; /* Dispone elementi in colonna */
        gap: 15px;
    }

    table th {
    background: #007bff; /* Colore testata */
    color: white;
    font-weight: bold;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #0056b3;
    font-size: 16px;
    }

table td{
    padding: 15px;
    border-bottom: 1px solid #ddd; /* Riga divisoria */
    font-size: 14px;
}
    .overview-container, .credits-container {
        flex-direction: column; /* Dispone gli elementi in colonna */
    }

    .floating-buttons button {
        width: 80px; /* Riduce larghezza */
        height: 40px; /* Riduce altezza */
        font-size: 14px;
    }
}

/* Media query per mobile */
@media (max-width: 600px) {
    header {
        flex-direction: column; /* Dispone titolo e altri contenuti in colonna */
        padding: 15px;
    }

    header h1 {
        font-size: 24px; /* Riduce dimensione del titolo */
    }

    .container {
        padding: 10px;
    }

    .form-container {
        max-width: 100%; /* Usa tutta la larghezza disponibile */
        padding: 15px;
    }

    .form-group label {
        font-size: 12px; /* Riduce dimensione etichette */
    }



    table th, table td {
        font-size: 12px; /* Riduce dimensione del testo */
        padding: 5px;
    }

    .overview-container, .credits-container {
        flex-direction: column; /* Dispone gli elementi in colonna */
        gap: 10px;
    }

    .floating-buttons {
        flex-direction: column; /* Dispone i pulsanti in colonna */
        gap: 10px;
    }

    .floating-buttons button {
        width: 100px; /* Riduce larghezza */
        height: 40px; /* Riduce altezza */
        font-size: 14px;
    }

    .sticky-bar {
        padding: 5px 0;
        justify-content: center; /* Centra gli elementi */
    }

    .bar-item span {
        font-size: 12px; /* Riduce dimensione del testo */
    }

    .icon {
        width: 20px;
        height: 20px;
    }
}


/* Pulsanti più moderni */
button, .submit-button, .view-client {
    background: linear-gradient(90deg, #007bff, #0056b3); /* Sfumatura blu */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px; /* Pulsanti arrotondati */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

button:hover, .submit-button:hover, .view-client:hover {
    background: #0056b3; /* Colore al passaggio */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombra al passaggio */
    transform: translateY(-2px); /* Leggero sollevamento */
}


/*Dashboard Preventivi*/


        .form-container, .table-container {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin: 20px auto;
            padding: 20px;
            max-width: 1200px;
        }

        .form-container h2, .table-container h2 {
            font-size: 20px;
            margin-bottom: 20px;
            text-align: center;
            color: #333;
        }

        .step-container {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .step {
            flex: 1;
            padding: 10px;
            text-align: center;
            border: 1px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .step.active {
            background-color: #007bff;
            color: white;
        }

        .step:not(.active):hover {
            background-color: #e0e0e0;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        input, select {
            width: 100%;
            padding: 10px;
            font-size: 14px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 15px;
            box-sizing: border-box;
            transition: border-color 0.3s ease;
        }

        input:focus, select:focus {
            border-color: #007bff;
        }

        button {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        button:hover {
            background-color: #0056b3;
            color: white;
            transform: scale(1.05);
        }

        button:active {
            background-color: #004080;
        }

        button[type="button"] {
            background-color: #007bff;
            color: white;
            margin-top: 10px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        table th, table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        table th {
            background-color: #007bff;
            color: white;
        }

        table tbody tr:hover {
            background-color: #f1f1f1;
        }
