/* Reset scrollbar per tutti gli elementi */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    *::-webkit-scrollbar {
        display: none;
        width: 0;
        background: transparent;
    }

/* Stili specifici per html e body */
html, body {
    overflow-y: scroll; /* Forza lo scroll verticale */
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
        background: transparent;
    }


/* Reset e stili globali */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-image: linear-gradient(to bottom, #090f2d, #777ca6);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #5A5A5A;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: 12px !important;
    position: relative;
}

/* Typography */
.head-section {
    color: #1b1b1b;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}

.section-title {
    font-size: 48px;
}

.section-subtitle {
    font-size: 24px;
    margin-top: 16px;
}

.label-lg {
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}




.content {
    margin-top: 80px;
}

/* Containers VECCHIO MODO

    .custom-container {
    overflow-x: auto;
    border-radius: 16px;
    background-color: #f3f3f3;
    box-shadow: 0px 4px 18px -1px rgba(212, 175, 156, 0.25);
    width: 100%;
    padding: 1rem;
}



*/

.login-container {
    border-radius: 16px;
    background-color: #f3f3f3;
    box-shadow: 0px 4px 18px -1px rgba(212, 175, 156, 0.25);
    width: 100%;
    max-width: 828px;
    padding: 5rem;
    height: auto;
    min-height: 500px;
}

.login-content {
    padding: 0rem 5rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    align-self: stretch;
}

/* Header */
.custom-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1054;
    padding: 16px;
    padding-left: 90px;
}

    .custom-header .container-fluid {
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 40px;
}

/* Avatar */
.avatar {
    display: flex;
    align-items: center;
}

    .avatar img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 50%;
    }

/* Button styles */
.btn-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    color: #e0e0e0;
    background-color: #5a5a5a;
    border: none;
}

.custom-header .btn-circle:hover {
    background-color: #505050;
    color: #ffffff;
}

.btn-primary {
    background-color: #1b1b1b;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(27, 27, 27, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 25px;
    /*width: 118px;*/
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        outline: none;
        background: rgba(27, 27, 27, 0.90);
    }

    .btn-primary:disabled {
        background: rgba(27, 27, 27, 0.36);
    }

.btn-secondary {
    background-color: #4b4b4b; 
    border: none;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(75, 75, 75, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 25px;
}

    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-secondary:active {
        outline: none;
        background: rgba(75, 75, 75, 0.90);
    }

    .btn-secondary:disabled {
        background: rgba(75, 75, 75, 0.36);
    }

/* Form styles */
.form {
    font-size: 0.75rem;
    padding-top: 10px;
    padding-bottom: 0px; 
    padding: 0px;
}

/* Input e Font styles */
input, textarea, select,
input:focus, textarea:focus, select:focus,
input:not(:placeholder-shown), textarea:not(:placeholder-shown), select:not(:placeholder-shown),
input::placeholder, textarea::placeholder, select::placeholder {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #00277d; /*5f5f5f colore di prima */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Autofill styles */
    input:-webkit-autofill {
        -webkit-text-fill-color: #00277d;
        background-color: #bbc3ff63 !important;
        color: #00277d !important;
    }

/* Form Controls */
.form-control {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #5f5f5f;
    color: #5f5f5f;
    font-size: 12px;
    background-color: #fff;
}

/* Input Container */
.input-container {
    display: flex;
    align-items: center;
    border: 1px solid #5f5f5f;
    border-radius: 8px;
    padding-left: 12px;
    background-color: #bbc3ff63;
    height: 25px;
}

    /* Input dentro container */
    .input-container input.form-control,
    .input-container select.form-control {
        min-height: 23px;
        height: 25px;
        background-color: transparent;
        color: #00277d !important;
    }



/* Input dentro container */
.borderless {
    border: none !important;
    padding-left: 0;
    font-weight: 700;
}


/* Focus states */
.input-container:focus-within {
    border-color: #5a5a5a;
    /*box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);*/
}

.borderless:focus {
    outline: none !important;
}

/* Icons */
.input-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

    .input-icon.end {
        margin-left: auto;
        margin-right: 12px;
    }

    .input-icon.clickable {
        cursor: pointer;
    }

/* Select styles */
select {
    background-color: white;
    border: 1px solid #5f5f5f;
    border-radius: 8px;
    height: 25px;
    padding: 0 40px 0 6px;
    line-height: 0.9 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('/images/chevron-down.svg');
    background-position: calc(100% - 12px) center;
    background-size: 12px;
    background-repeat: no-repeat;
    width: 100%;
}

    select:focus {
        outline: none;
        border-color: #5a5a5a;
        box-shadow: 0 0 0 0.25rem #5a5a5a;
    }

/* Select in container */
.input-container:has(select) {
    border: none;
    padding: 0;
    /*background-color: transparent;*/
}

/* Gestione Select2 multiplo dentro input-container */
.input-container:has(.select2-container) {
    height: auto !important;
    min-height: 25px;
    padding: 0;
}

/* Stile Select2 per mantenere sfondo e colore testo consistente */
.input-container .select2-container .select2-selection--multiple {
    background-color: transparent !important;
    border: 1px solid #5f5f5f !important;  /* Bordo grigio consistente con altri controlli */
    border-radius: 8px !important;          /* Border radius per angoli arrotondati */
    min-height: 23px;
    padding-left: 12px;
    color: #00277d !important;
}

/* Placeholder con stesso colore */
.input-container .select2-container .select2-selection--multiple .select2-selection__placeholder {
    color: #00277d !important;
}

/* Ricerca all'interno del select */
.input-container .select2-container .select2-search--inline .select2-search__field {
    color: #00277d !important;
}

/* Stile per i tag delle province selezionate */
.input-container .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #00277d;
    color: white;
    border: none;
}

/* Stile X per rimuovere tag */
.input-container .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
}

    .input-container .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
        color: #ffcccc;
    }

/*

    .input-container input {
    background-color: #fff !important;
}
*/


.date-container .input-icon {
    cursor: pointer; /* L'icona rimane cliccabile */
}

.date-container input[type="date"] {
    position: relative;
    cursor: text; /* Indica che l'input è editabile */
}
/*
    .date-container input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        width: auto; 
        height: auto;
        top: 0;
        right: 0; 
        bottom: 0;
        left: auto; 
        opacity: 0;
        cursor: pointer; 
    }
    */

/* Password toggle button */
.password-toggle-button {
    cursor: pointer;
    margin-left: auto;
    margin-right: 12px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
}

    .password-toggle-button:focus {
        outline: none;
    }

/* Toggle switch */
.toggle {
    display: flex;
    width: 62px;
    height: 24px;
    cursor: pointer;
}

.toggle.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.toggle-inner {
    border-radius: 1000px;
    background-color: rgba(27, 27, 27, 0.25);
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 4px 4px;
}

.toggle.on .toggle-inner {
    align-items: flex-start;
}

.toggle:not(.on) .toggle-inner {
    align-items: flex-end;
}

.toggle-img {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 16px;
}

/* Utility classes */
.row-spacing {
    margin-bottom: 0px;
    margin-top: 0px;
}

.space-between {
    justify-content: space-between;
}

.link {
    color: #5f5f5f;
    font-size: 1rem;
    text-align: right;
}


/* Button image */
.arrow-right-svg-icon {
    width: 1rem;
    height: 1rem;
    mask: url('/images/arrow-right.svg') no-repeat center;
    mask-size: contain;
    background-color: rgba(255, 255, 255, 0.9);
    display: inline-block;
}

.check-svg-icon {
    width: 1rem;
    height: 1rem;
    mask: url('/images/check.svg') no-repeat center;
    mask-size: contain;
    background-color: rgba(255, 255, 255, 0.9);
    display: inline-block;
}

.plus-svg-icon {
    width: 32px;
    height: 32px;
    mask: url('/images/plus.svg') no-repeat center;
    mask-size: contain;
    background-color: rgba(255, 255, 255, 0.9);
    display: inline-block;
}


.add-button-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

/*.full-width-button {
    width: 70% !important;*/ /* Stessa larghezza del panel */
/*background-color: #1b1b1b;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}*/

.full-width-button {
    width: 100%; /* Rende il bottone largo quanto il container */
    max-width: calc(70%); /* Stessa larghezza del .panels-container */
    background-color: #1b1b1b;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

    .full-width-button:hover {
        background: rgba(27, 27, 27, 0.90);
        color: #ffffff;
    }


.deleted-panel {
    background-color: #ffebee !important; /* Sfondo rosso chiaro */
    opacity: 0.8;
    position: relative;
}

    .deleted-panel::before {
        content: attr(data-deleted-label);      
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
    }

    .deleted-panel input,
    .deleted-panel select,
    .deleted-panel textarea {
        background-color: #fff !important;
    }

.restore-element {
    margin-right: 10px;
}

.floating-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.9);

}

.floating-icon {
    width: 60%; /* L'icona occuperà il 60% dello spazio del pulsante */
    height: auto;
    fill: currentColor; /* Adatta il colore dell'SVG a quello del pulsante */
}

.toggleDiv {
    margin-top: inherit;
    margin-left: auto;
    margin-right: auto;
}

/* Stile per input readonly */
.form-control.readonly-style {
    background-color: #f5f5f5 !important; /* Grigio chiaro per readonly */
    border-color: #ddd !important; /* Bordo grigio tenue */
    color: #6c757d !important; /* Testo grigio */
    pointer-events: none; /* Evita interazioni */
}

/* Stile per input readonly dentro container */
.input-container .form-control.readonly-style {
    background-color: #f5f5f5 !important;
    border-color: transparent !important;
}

/* Stile specifico per select readonly */
select.form-control.readonly-style {
    background-color: #f5f5f5 !important;
    color: #6c757d !important;
    pointer-events: none;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.w-40 {
    width: 40% !important;
}

.disabled {
    background-color: #e9ecef !important;
}

.input-as-label {
    border: none;
    background-color: transparent;
    font-weight: bold;
    pointer-events: none; /* DIsabilita interazione*/
    cursor: default;
    color: inherit;
    outline: none;
}

.file-metadata {
    width: 50%
}

.table-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
}

    .table-buttons .btn {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }

.search-container {
    min-width: 200px;
}

.wrap-text {
    white-space: normal;
    word-wrap: break-word;
}

.dataTables_wrapper {
    padding-top: 19px;
    width: 100%;
    overflow-x: auto;
}

#basketDataTable {
    width: 100% !important;
}

/* Media queries */
@media (max-width: 991px) {
    /* Add tablet styles here */
}

@media (max-width: 575px) {
    /* Add mobile styles here */
}

@media (max-height: 600px) {
    /* Add small height screen styles here */
}

.form-control {
    font-weight: bold;
    background-color: #bbc3ff63;
    color: #00277d;
    height: 25px;
}

.d-flexCenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.FirstColumnWidth {
    max-width: 500px !important;
    width: 500px;
}

.form-control:disabled {
    background-color: #f0f0f0 !important;
    color: #5a5a5a !important;
}

.form-control:focus {
    background-color: #bbc3ff63 !important;
    color: #00277d;
    box-shadow: 0 0 0 1px #5a5a5a;
}

label.form-check-label {
    font-weight: bold;
}

.form-control.dropdown {
    background-color: #bbc3ff63;
    color: #00277d;
}


    .form-control.dropdown::placeholder {
        color: #00277d;
    }

.tag-container {
    margin-top: 2px !important;
}



.tag {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 8px;
    margin: 1px;
    background: #f2f2f2;
    line-height: 1;
    background-color: #075F5C;
    color: white;
    font-size: 10px;
    height: 20px;
    align-items: center;
    white-space: nowrap; /* Aggiungi questa proprietà per evitare il wrap del testo */
}


.remove-tag {
    background: transparent;
    border: none;
    margin-left: 8px;
    cursor: pointer;
    color: #FFF;
    padding: 0;
    line-height: 1;
    width: 10.5px;
    height: 10.5px;
    font-size: 12px;
}

.accordion-header {
    height: 20px;
}

.breadcrumb {
    font-size: 10px;
}

h1 {
    font-size: 25px;
}

.card-header:first-child {
    height: 22px;
    padding-left: 17px;
    padding-bottom: 25px;
    padding-top: 24px;
}

.h5, h5 {
    font-size: 14px;
    font-weight: bold;
}

.text-uppercase {
    text-transform: uppercase;
    font-size: 20px;
    margin-bottom: 0px !important;
}


/* INIZIO SEZIONE TOGGLE SWITCH */

/* Stile base per il contenitore principale */
div:has(> div.toggle) {
    display: block !important;
    margin-bottom: 0px;
}

    /* Seleziona il span.label che è all'interno del div che contiene .toggle */
    div:has(> div.toggle) > span.label {
        order: -1;
        margin-bottom: 0.5rem;
        text-align: left;
        font-weight: 700;
        display: block;
    }

/* Stile base per il toggle personalizzato */
.toggle {
    position: relative;
    width: 48px !important;
    height: 25px !important;
    margin-left: 0 !important; /* Rimosso il margin-left */
    transform: none !important; /* Rimosso il transform */
    cursor: pointer;
    background-color: #5a5a5a;
    border-radius: 25px;
    border: 1px solid #1b1b1b;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
    margin-top: 0.25rem;
}

    /* Stile per il toggle quando è attivo */
    .toggle[aria-checked="true"] {
        background-color: #c3ffbb63 !important;
        border-color: #5a5a5a !important;
    }

/* Contenitore interno del toggle */
.toggle-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Stile per l'immagine del toggle */
.toggle-img {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
}

/* Posizione dell'immagine quando il toggle è attivo */
.toggle[aria-checked="true"] .toggle-img {
    left: calc(100% - 22px);
}

/* Nasconde l'input originale */
input[type="hidden"][data-toggle-id] {
    display: none;
}

/* FINE SEZIONE TOGGLE SWITCH */

.btn.btn-secondary.rounded-circle {
    width: 30px; /* Larghezza */
    height: 30px; /* Altezza (deve essere uguale alla larghezza) */
    padding: 0; /* Rimuove il padding interno */
    display: inline-flex; /* Per centrare il contenuto */
    align-items: center; /* Allineamento verticale */
    justify-content: center; /* Allineamento orizzontale */
    line-height: 1; /* Corregge l'allineamento del testo */
}

.img-fluid {
    max-width: 60%;
}


.ui-autocomplete {
    background-color: #bbc3ff63; /* Colore blu Bootstrap */
    box-shadow: none !important; /* rimuove l'ombra */
    border: 1px solid #dee2e6 !important; /* bordo normale */
    z-index: 9999 !important;
    max-height: 200px; /* Set the maximum height for the dropdown */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Disable horizontal scrolling */
}

    /* Per rendere il testo leggibile sullo sfondo blu */
    .ui-autocomplete .ui-menu-item-wrapper {
        background-color: #bbc3ff63;
        color: #00277d;
        font-size: 12px;
        font-weight: 700;
        border: none !important;
    }

        /* Per lo stato hover/focus delle opzioni */
        .ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
            background: #0056b3 !important; /* Un blu più scuro per l'hover */
            border: none !important;
            color: white !important;
        }

/* Rimuove altri bordi e stili predefiniti di jQuery UI */
.ui-widget-content {
    border: none !important;
}

/* Abilita scrollbar solo per la tabella BASKET */
.custom-container .basket {
    overflow-x: scroll !important;
    position: relative !important;
    width: 100% !important;
    scrollbar-width: thin !important;
    -ms-overflow-style: scrollbar !important;
    padding-bottom: 8px !important;
}

    .custom-container .basket::-webkit-scrollbar {
        display: block !important;
        width: 8px !important;
        height: 8px !important;
        background-color: #f1f1f1 !important;
    }

    .custom-container .basket::-webkit-scrollbar-thumb {
        background-color: #888 !important;
        border-radius: 4px !important;
    }

    .custom-container .basket::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
    }

.basket .table {
    margin-bottom: 0 !important;
    white-space: nowrap !important;
}

.basket .dataTables_wrapper {
    width: 100% !important;
    overflow: visible !important;
}

.no-padding-child {
    padding: 0 !important;
}

table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable td:last-child, table.table-bordered.dataTable td:last-child {
    border-right-width: 0px !important;
}

/* toglie lo spazio sotto i breadcrumbs */
/*.mb-4{
    margin-bottom: 0px !important;
}*/

.card{
    padding-left: 0;
    padding-right: 0;
}


/* SPECIFICO SOLO PER TITOLO DELLA SEZIONE card-header in insert */
#CardsAreaHeader, .card-header.header-default {
    height: 22px !important;
    padding-left: 17px !important;
    padding-bottom: 25px !important;
    padding-top: 7px;
}
    #CardsAreaHeader > h5, .card-header.header-default > h5 {
        font-weight: bold;
    }



/* Metto padding nelle pagine index per distanziare il body della card dal card-header 

    -- CHECK NON DOVREBBE SERVIRE --

    body > div.app-content > div.custom-container > div.card > div.card-body{
    padding-top: 19px;
}


*/

/* tutte le card-body padding-top 0 */
div.card-body {
    padding-top: 0px;
}


/* INIZIO SEZIONE COVERAGE AREAS */
#coverageAreas div.card-body{
    padding-top: 10px;
}

#coverageAreas > div.card-body > div > div.col-lg-3{
    margin: 0 auto;
}

#map {
    margin: 0 auto;
    height: 500px;
    width: 100%;
    position: relative;
}

/* titolo pre container di coverageareas */
#coverageAreas > div.card-body > div > div.col-lg-12.mt-3 > div > div > h5 {
    margin: 0;
}

/* card generate automaticamente dopo aver selezionato dropdown */
.coverage-areas-container > .row.g-4 > .col-lg-3.mb-4 {
    padding: 10px;
    margin: 0;
}

/* Evidenziazione nuove coverage areas non ancora salvate */
.coverage-area.new-coverage-area {
    border-color: #28a745 !important;
    border-width: 2px !important;
}


/* FINE SEZIONE COVERAGE AREAS */


  
.dataTables_info{
    display: none;
}

.page-link {
    height: 28px;
    padding: 5px;
    display: flex;
    align-items: center;
}

.pagination {
    height: 38px;
    align-items: end;
}

div:has(> div.dataTables_filter) {
    align-items: flex-start;
    display: flex;
    justify-content: end;
}


.flex-relative-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-height: 40px
}


.mt-4 {
    margin-top: 12px !important;
}

/* 
    textarea
    max line 5 linee 
    lineheight  che aumenti in base al testo 

*/
input[readonly],
textarea[readonly] {
    pointer-events: none; /* Disabilita gli eventi del mouse */
    user-select: none; /* Impedisce la selezione del testo */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    tab-index: -1; /* Rimuove dall'ordine di tabulazione */
    color: #5a5a5a !important;
}

/* INIZIO GESTIONE PANNELLI E CONTENUTO PROJECTSERVICEHOUR IN PROJECTS*/
#windows-service {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.rounded-panel.w-50 {
    padding: 16px;
    line-height: 16px;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
    margin-top: 0px;
}

.hours-group {
    border-radius: 8px;
    padding: 0px;
    margin-bottom: 8px;
    padding-top: 0px;
}

.hours-divider {
    border: 0;
    height: 1px;
    margin: 5px 0;
}

.hours-group-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

a.no-service-link {
    margin-top: 8px;
}
/* FINE GESTIONE PANNELLI E CONTENUTO PROJECTSERVICEHOUR IN PROJECTS*/

/* inizio logica css per rounded panels in utenti */
.panels-container {
    padding-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 0px;
    margin-top: 0px;
}

.rounded-panel {
    width: 100%; 
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0px 4px 18px -1px rgba(0, 0, 0, 0.25);
    padding: 1.2rem;
    margin-bottom: 0;
    margin-top: 0px;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

/* fine logica css per rounded panels in utenti */

/* inizio logica css per rounded panels in Attività>Tassi */
#panel-container-ticket-rate > .rounded-panel {
    width: auto; /* (1) messi questi 3 param per far si che si adatti al contenuto e non al contenitore */
    max-width: fit-content; /* (2) */
    align-self: flex-start; /* (3) */
}
/* fine logica css per rounded panels in Attività>Tassi */

/* INIZIO GESTIONE SEZIONE FINAL CUSTOMERS IN PROJECTS*/
#FinalCustomerManagement {
    padding: 15px;
}  

#FinalCustomerManagement .d-flex.align-items-center.space-between {
    margin-bottom: 15px;
}

    /* inizio gestione pannello final customer */
    #panel-container-final-customer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 0px;
        margin-top: 0px;
    }

        #panel-container-final-customer .rounded-panel {
            border-radius: 16px;
            background-color: #fff;
            box-shadow: 0px 4px 18px -1px rgba(0, 0, 0, 0.25);
            padding: 1.2rem;
            margin-bottom: 0;
            margin-top: 0px;
            border: 1px solid #dee2e6;
            display: flex;
            flex-direction: column;
    width: auto;
    max-width: fit-content;
    align-self: flex-start;

    }
    
        #panel-container-final-customer > div > div > div.mt-4.d-flex.justify-content-between > div > button {
            width: 170px;
            height: 25px;
            display: flex; /* Utilizza flexbox per allineare il testo e l'icona */
            font-size: 14px;
            align-items: center;
            margin-top: 0px; 
        }
    
        #panel-container-final-customer > div > div > div.mt-4.d-flex.justify-content-between{
            margin-top: 0px;
        }
    
        #panel-container-final-customer .mt-4.d-flex.justify-content-between {
            align-items: center;
        }
    
    /* fine gestione pannello final customer */
    
        /* inizio gestione pannello site dentro al pannello di final customer */
        .sites-section .panels-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 0px;
            margin-top: 0px;
        }
            .sites-section .panels-container.rounded-panel {
                width: 100%;
                border-radius: 16px;
                background-color: #fff;
                box-shadow: 0px 4px 18px -1px rgba(0, 0, 0, 0.25);
                padding: 1.2rem;
                margin-bottom: 0px !important;
                margin-top: 0px;
                border: 1px solid #dee2e6;
                display: flex;
                flex-direction: column;
            }
        /* fine gestione pannello site dentro al pannello di final customer */

.btn-danger {
    margin-top: 5px;
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    height: 25px; /* Imposta l'altezza del bottone */
    padding: 0 5px; /* Regola il padding per adattare il testo e l'icona */
    display: flex; /* Utilizza flexbox per allineare il testo e l'icona */
    align-items: center; /* Allinea il testo e l'icona verticalmente */
    font-size: 14px;
}

.fa-trash:before {
    display: flex;
    align-items: center;
    content: "\f1f8";
    font-size: 12px;
    margin-right: 5px;
}

.panels-container + .add-button-container .full-width-button {
    margin-top: 1rem;
    width: 137px;
    height: 25px;
    display: flex; /* Utilizza flexbox per allineare il testo e l'icona */
    font-size: 14px;
    align-items: center;
}

.fa-add:before, .fa-plus:before {
    content: "\2b";
    margin-right: 5px;
}

/* FINE GESTIONE SEZIONE FINAL CUSTOMERS IN PROJECTS */

/* ESPERIMENTO */
.accordion-content.show {
    padding-top: 0px;
    display: block;
}

.col{
    margin-top: 0px;
}

div > div.row.g-3.row-spacing > div {
    margin-top: 6px;
    margin-bottom: 6px;
}

.file-upload-component {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

div > div.card-header.bg-secondary.text-white.d-flex.justify-content-between.align-items-center{
    margin-top: 0px;
}

 div > div.col-lg-12.mt-3{
     margin-top: 0px !important;
 }

/* metto padding top alle sezioni se no vanno contro accordion section */
#activity.accordion-content.show {
    padding-top: 16px;
}

#deadline.accordion-content.show {
    padding-top: 16px;
}

#assigned-assets.accordion-content.show {
    padding-top: 16px;
}

#taskUpdateModal > div > div > div.modal-footer > button {
    margin-top: 5px;
    height: 25px; /* Imposta l'altezza del bottone */
    padding: 0 5px; /* Regola il padding per adattare il testo e l'icona */
    display: flex; /* Utilizza flexbox per allineare il testo e l'icona */
    align-items: center; /* Allinea il testo e l'icona verticalmente */
    font-size: 14px;
}

div.modal-header > button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 50%;
    border-width: 1px; /* Imposta lo spessore del bordo a 1 pixel */
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

.alert-warning {
    margin-top: 0px;
    margin-bottom: 0px;
}

#RegisteredOfficeInfos h5{
    font-weight: bold;
    margin-bottom: 0px;
}


/* Stile per gestire il testo troppo lungo nei label */
label.form-label {
    width: 100%; /* Massima larghezza possibile nel contenitore */
    text-overflow: ellipsis; /* Puntini quando il testo viene troncato */
    white-space: nowrap; /* Impedisce all'etichetta di andare a capo */
    overflow: hidden; /* Nasconde il testo che fuoriesce */
    display: block; /* Assicura che si comporti come un blocco */
    font-weight: bold; /* Mantiene il grassetto come hai specificato */
}

/* Per mantenere tutti i campi sulla stessa riga */
.row.g-4 {
    flex-wrap: wrap; /* Impedisce alle colonne di andare a capo */
    width: 100%; /* Prende tutta la larghezza disponibile del contenitore */
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0 auto;
    position: relative;
    bottom: 0;
    padding: 0;
}

    /* Assicura che le colonne abbiano larghezza uguale con percentuali */
    .row.g-4 .col-lg {
        flex: 0 0 calc(100% / 8); /* Esattamente 1/8 della larghezza totale */
        max-width: calc(100% / 8); /* Garantisce che non superino 1/8 dello spazio */
        margin-top: 10px;
    }

/* Dove le card non hanno i bottoni per salvare o fare il submit modifica il padding */
    #NoButtons {
    padding-bottom: 15px;
    padding-top: 0px;
}

/* INIZIO ZONA TEXTAREA O CAMPI DI DUE VOLTE LA GRANDEZZA BASE 

   NB: 
   PER TEXT AREA O CAMPI CHE DEVONO PRENDERE LA LARGHEZZA DI 2 CAMPI NORMALI USARE COL-LG-3 

*/
.row.g-4 .col-lg-3 {
    flex: 0 0 calc(100% / 4); /* Esattamente 1/4 della larghezza totale */
    max-width: calc(100% / 4); /* Garantisce che non superino 1/4 dello spazio */
    margin-top: 10px;
}



/* praticamente altezza corrispondente a 5 righe */
textarea {
    min-height: 100px !important; 
}

textarea.textarea-double {
    min-height: 200px !important;
}
/* FINE ZONA TEXTAREA O CAMPI DI DUE VOLTE LA GRANDEZZA BASE */

.row.g-4 .ps-3{
    margin-top: 15px;
    margin-bottom: 5px;
}

/* col-lg-4 prende 3 campi di larghezza della pagina (3/8), 
    Esempio:
        utilizzata per tabella prodotto in task 

*/
.row.g-4 .col-lg-4 {
    flex: 0 0 calc(100% / 8 * 3); 
    max-width: calc(100% / 8 * 3);
    margin-top: 10px;
}

/* Bottone nella sezione task per associare prodotto */
.divButtonProdAss .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    width: 100%;
    white-space: nowrap;
}


.accordion-content{
    padding-top: 0px !important;
}

#employee-section{
    margin-top: 0px;
}


.custom-container {
    overflow-x: auto;
    border-radius: 16px;
    background-color: #f3f3f3;
    box-shadow: 0px 4px 18px -1px rgba(212, 175, 156, 0.25);
    width: calc(100% - 95px);
    padding: 1rem;
    position: fixed;
    top: 65px;
    left: 85px;
    overflow-y: scroll;
    height: calc(100% - 75px);
}

/* 
    SOLUZIONE TEMPORANEA PER LE MODALI
*/
.footer-container {
    z-index: 1052 !important;
}

/* Layout */
.app-content {
    display: flex;
    padding: 0 1.5rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5rem;
    flex: 1;
    margin-top: 80px;
    width: 100%;
    min-height: calc(100vh - 180px); /* Altezza minima considerando header e footer */
    padding-left: 90px;
    z-index: 1051; 
}

.modal-content {
    width: 90%;
    margin: 0 auto;
    z-index: 1060;
    margin-top: 4%;
}
/* 
    NB
*/

/* INIZIO GESTIONE PANEL IN ATTIVITA' */
div#service-subject {
    margin-top: 15px;
    margin-bottom: 15px;
}

#service-subject > div{
    margin: 0;
}
/* FINE GESTIONE PANEL IN ATTIVITA' */

/* UN TEXTBOX IN GESTIONE ATTIVITA' SENZA BORDI */
#CustomerName {
    border: 1px solid #5f5f5f;
}
/* END */

#btnUserAvatar{
    z-index: 1054;
}


#logoutForm {
    position: absolute;
    top: 10px;
    right: 83px;
    box-shadow: none;
    /*background-color: #2d3135;*/
    background: #2d3135;
    width: auto;
    display: flex;
    border-radius: 10px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    display: none;
}

.toast-style-intern {
    list-style-type: none;
}

.toast-btn {
    color: white !important;
    text-align: start;
    position: relative;
    right: 33px;
    top: 2px;
}

.toast-li-style {
    color: white !important;
    position: relative;
    right: 20px;
    top: 7px;
}

/*dashboard cards*/

.containerDashboardCards {
    position: absolute;
    width: 100%;
    padding: 100px;
}

.dashboardInfo {
    float: left;
    padding: 40px;
}

    .dashboardInfo .wrap {
        background: #ffffff;
        box-shadow: 2px 10px 20px rgba(0, 0, 0, 0.1);
        border-radius: 40px;
        text-align: center;
        position: relative;
        overflow: hidden;
        padding: 25px 25px 25px;
        width: 330px;
        height: 215px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

.dashboardInfo-title,
.dashboardInfo-subInfo {
    color: #6c6c6c;
    font-size: 22px;
}

.dashboardInfo span {
    display: block;
}

.dashboardInfo-count {
    font-weight: 600;
    font-size: 60px;
    line-height: 80px;
    color: #323c43;
}

/* SEZIONE ATTACHMENT IN ATTIVITA' */
#attachments > h6{
    margin: 0;
}

#attachments > .row > .col-lg-3 {
    margin: 0;
}
/* FINE SEZIONE ATTACHMENT IN ATTIVITA' */

/* SEZIONE LABEL PER TOGGLE */
.me-2.label.label-normal {
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    font-weight: bold;
}
/* FINE SEZIONE LABEL PER TOGGLE */

/* 
    Gestione inputbox dentro textbox quando onfocus
    esempio:
        email e password nel login 

*/
.input-container .form-control.input-validation-error:not(select) {
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}
/* 
   Fine Gestione inputbox dentro textbox
*/
/* Stile per intestazioni compatte */

/* Stile per celle con gestione overflow */
#basketDataTable tbody td {
    /* RIGHE COMMENTATE per rendere sempre visibile il contenuto nel BASKET*/
    /*    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 150px !important;*/
    padding: 0.4rem 0.3rem !important;
    white-space: normal !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    vertical-align: top !important;
}
/* RIGHE COMMENTATE per rendere sempre visibile il contenuto nel BASKET*/
/*    #basketDataTable tbody td:hover {
        background-color: #fff !important;
        white-space: normal !important;
        max-width: none !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 999 !important;
        box-shadow: 0 0 10px rgba(0,0,0,0.1) !important;
    }
        #basketDataTable tbody td:hover::after {
            content: attr(data-full-text) !important;
            position: absolute !important;
            left: 0 !important;
            top: 100% !important;
            background: white !important;
            border: 1px solid #ddd !important;
            padding: 3px !important;
            white-space: normal !important;
            max-width: 300px !important;
            z-index: 2 !important;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
            display: block !important;
        }*/

/* Mantiene le intestazioni leggermente più piccole (10-11px) */
.wrap-text.g5 {
    font-size: 10px !important;
    white-space: normal !important;
    text-align: center !important;
}


#productDatatable_wrapper {
    flex-direction: column;
}

/* Stili per la modal  BASKET*/
.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

/* Animazione di fade-in per la modal */
.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0,-50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Assicura che la modal sia sempre sopra altri elementi */
.modal {
    z-index: 1080;
}

/* Mappa tooltip in ticket/listTask */
#mapTooltip {
    position: fixed;
    z-index: 1000;
    width: 400px;
    height: 250px;
    border-radius: 10px;
    border-style: outset;
    border-color: #1b1b1b;
    box-shadow: 0px 4px 18px -1px rgba(212, 175, 156, 0.25);
}

#CustomerCourier{
    margin-top: 15px;
}

div[id^="supplier-container-"]{
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 0px;
    margin-bottom: 10px;
}

div.supplier-section.row.g-3 > h5{
    margin-bottom: 0;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #a8a8a800 !important;
    font-weight: normal;
    opacity: 1; 
    visibility: hidden;
}

.date-placeholder-visible::placeholder {
    color: #a8a8a8 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.container-prof-supplier{
    margin-top: 15px;
    margin-left: 15px;
}

/* adatta la vista alla sezione */
.accordion-header.active {
    scroll-margin-top: 20px; 
}
.accordion-content.show {
    scroll-margin-top: 20px;
}

/* Reset completo degli stili di autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* Utilizziamo una transizione molto lunga per impedire al browser di applicare i suoi stili */
    transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
    /* Rimuoviamo l'ombra interna che può causare sovrapposizioni */
    -webkit-box-shadow: none !important;
}

/* Gestione specifica per il selettore interno */
input:-internal-autofill-selected {
    background-color: #bbc3ff63 !important;
    background-image: none !important;
    /* Assicuriamoci che non ci siano altri stili che influenzano la sovrapposizione */
    opacity: 1;
}

/* Stile esplicito per ogni input per evitare sovrapposizioni */
input {
    background-color: #bbc3ff63;
    /* Se necessario, aggiungi una z-index per controllare l'ordine di sovrapposizione */
    position: relative;
    z-index: auto;
}

#basket-header {
    align-items: center !important;
    padding-right: 1rem;
}

.year-month-container {
    display: flex;
    gap: 10px;
    margin-left: 15px; /* Distanza dal titolo */    
}

.year-month-container label{
    color:white
}

.year-month-container select {
    width: 100px;
    font-size: 14px;
    padding: 2px 5px;
}

.customTopMenuTimeSheet{
    top: -12px !important;
}

.flexCenterColumn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}



.row.g-4 .fixAlgnmentTop {
    margin-top: -10px !important;
}

.fix-margin-top {
    margin-top: 1.5rem !important;
}

.select-all-container {
    gap: 1rem; /* Spazio tra toggle e campo ricerca */
}

.select-all-container .dataTables_filter {
    margin-bottom: 0 !important; /* Rimuove il margin bottom del filtro */
}

/* Custom styles for the task items table */
/* la prima colonna prende lo spazio rimanente */

.task-items-row th:nth-child(2) {
    width: 200px !important;
}

.task-items-row th:nth-child(3) {
    width: 50px !important;
}
