.hidden{display: none;}


.datatable-footer{margin-top: 20px;}
.ak_action:not(.page-link), .col_azioni .btn{margin-right: 10px;}
.pulisci_ricerca {font-size: 20px; color: #0d6efd; cursor: pointer;}
.selettore{margin-right: 10px;}

.row_form{
    width: 100%;
    overflow-x: auto;
}

.row_form .table-responsive{
    overflow: scroll;
}

td,th{white-space:initial;}

.ak_action.sorting {cursor:pointer;}

/*.edit_container textarea{ display: block; width: 100%;}*/

/* stile per switch buttons */ 
.form-check.form-switch .form-check-input{font-size: 23px; cursor: pointer;}

/* ###### stili per autocomplete ########## */
.tt-menu {
    width: 100%;
    margin-top: .125rem;
    min-width: 11.25rem;
    padding: .5rem 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    max-height: 350px;
    overflow-y: auto;
    border-radius: .1875rem;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .1);
}

.tt-suggestion {
    color: #333;
    padding: .5rem 1rem;
    cursor: pointer;
    transition: all ease-in-out .15s;
}

.form-check-input {
    --bs-form-check-bg: var(--bs-body-bg);
    flex-shrink: 0;
    width: 1.3em;
    height: 1.3em;

}

:root, [data-bs-theme=light] {
    --bs-border-color: #d0d0d0;
}

.widgets-icons-3 {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ededed;
    font-size: 24px;
    border-radius: 10px;
}

#kvFileinputModal .kv-zoom-header, #kvFileinputModal .btn-kv-borderless, #kvFileinputModal .btn-kv-close{
    display: none !important;
}

.file-drop-zone.clickable:hover {
    border: 1px dashed #999;
}

/*
.page-content-wrapper {
    overflow-x: auto;
    width: 100%;
}

/*.page-content {
    min-width: max-content;
    padding: 20px;
}*/


/*





CAMPANELLINO

 */

.msg-info{
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}


/* ------------------------------------------------------------------------------
*  # Bootstrap tags input (EREDITATO DA LIMITLESS
*  Styles for tagsinput.js - tags input for Bootstrap */

.bootstrap-tagsinput {
    background-color:#fff;
    border:1px solid #ddd;
    display:inline-block;
    padding:0 0 0.125rem 0;
    vertical-align:middle;
    width:100%;
    border-radius:0.1875rem;
}
.bootstrap-tagsinput input {
    direction:ltr;
    border:0;
    outline:0;
    background-color:transparent;
    padding:0.3125rem 0.875rem;
    margin-top:0.125rem;
    margin-left:0.125rem;
    width:auto !important;
    max-width:50%;
    min-width:4rem;
    box-shadow:none;
}
.input-group .bootstrap-tagsinput {
    width:1%;
    -ms-flex:1 1 auto;
    flex:1 1 auto;
}
.bootstrap-tagsinput .twitter-typeahead {
    width:auto;
}
.bootstrap-tagsinput .tt-dropdown-menu {
    margin-top:0.25rem;
    min-width:11.25rem;
}
.bootstrap-tagsinput .tag {
    margin:0.125rem 0 0 0.125rem;
    padding:0.3125rem 0.875rem;
    padding-right:2.375rem;
    float:left;
    position:relative;
    border-radius:0.1875rem;
    transition:all ease-in-out 0.15s;
}
@media screen and (prefers-reduced-motion:reduce) {
    .bootstrap-tagsinput .tag {
        transition:none;
    }
}.bootstrap-tagsinput .tag:not([class*=bg-]) {
     background-color:#eee;
     color:#333;
 }
.bootstrap-tagsinput .tag:not([class*=bg-]):hover,.bootstrap-tagsinput .tag:not([class*=bg-]):focus {
    background-color:#03A9F4;
    color:#fff;
}
.bootstrap-tagsinput .tag [data-role="remove"] {
    cursor:pointer;
    position:absolute;
    top:50%;
    right:0.875rem;
    line-height:1;
    margin-top:-0.34375rem;
    opacity:0.7;
    transition:opacity ease-in-out 0.15s;
}
@media screen and (prefers-reduced-motion:reduce) {
    .bootstrap-tagsinput .tag [data-role="remove"] {
        transition:none;
    }
}.bootstrap-tagsinput .tag [data-role="remove"]:hover {
     opacity:1;
 }
.bootstrap-tagsinput .tag [data-role="remove"]:after {
    content:'X';
    /*font-family:"icomoon";
    */
    display:block;
    font-size:0.6875rem;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}
.chart-height {
    height:400px;
}

/* Scrollbar fissa nel footer */
#scrollbar_container {
    padding-bottom: 5px;
    background: transparent;
}

.sticky-horizontal-scrollbar {
    /* Rimuovi position: sticky e top */
    /* position: sticky; */
    /* top: 60px; */

    z-index: 100;
    overflow-x: auto;
    overflow-y: hidden;
    height: 15px;
    background: #ffffff;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sticky-horizontal-scrollbar.hidden {
    opacity: 0;
    pointer-events: none;
}

.sticky-scrollbar-content {
    height: 1px;
    background: transparent;
    min-width: 100%;
}

/* Scrollbar webkit styling */
.sticky-horizontal-scrollbar::-webkit-scrollbar {
    height: 14px;
}

.sticky-horizontal-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 7px;
}

.sticky-horizontal-scrollbar::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 7px;
    border: 2px solid #ffffff;
}

.sticky-horizontal-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Firefox scrollbar */
.sticky-horizontal-scrollbar {
    scrollbar-width: auto !important; /* Invece di 'thin' */
    overflow-x: scroll !important; /* Forza sempre lo scroll */
    scrollbar-color: #007bff #f1f1f1;
}

@-moz-document url-prefix() {
    .sticky-horizontal-scrollbar {
        scrollbar-width: auto;
        scrollbar-color: #007bff #f1f1f1;
        overflow-x: scroll;
    }

    /* Forza la scrollbar a rimanere visibile */
    .sticky-horizontal-scrollbar::-moz-scrollbar {
        -moz-appearance: none !important;
        width: auto !important;
    }
}

/* Nascondi la scrollbar originale del container */
.page-content-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-content-wrapper::-webkit-scrollbar {
    display: none;
}

/* Se vuoi nascondere il container quando non c'è scrollbar */
#scrollbar_container:empty {
    display: none;
    padding: 0;
}


/* ELEMENTI DI INPUT */
/*.edit_container textarea{ display: block; width: 100%;}*/

.edit_container .quill_hidden{
    display: none;
}

form.tipo_form_1 .quill_wrapper{
    max-width: 600px;
}


.ql-toolbar.ql-snow {
    overflow-x: auto;
}

/*



 */

@media only screen and (max-width: 768px){
    .page-footer{
        position: relative;
    }

    .page-content {
        min-width: unset;
        padding: 12px;
    }

    .page-content .card .card-body{
        padding: 0;
    }

    .td_find_btn{
        width: 100%;
    }


    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive tr {
        border: 1px solid #dee2e6;
        margin-bottom: 15px;
        padding: 0px;
        border-radius: 8px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .table-responsive td {
        border: none;
        padding: 8px 15px; /* Aggiungi padding orizzontale */
        width: 100% !important;
        max-width: 100% !important;
        /* RIMUOVI overflow: hidden; */
        word-break: break-word;
        overflow-wrap: break-word; /* Aggiungi questa */
    }

    .table-responsive td:before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #495057;
        margin-bottom: 5px;
        font-size: 0.9em;
    }

    /* Nascondi l'etichetta per la colonna azioni se vuoi
    .table-responsive .col_azioni:before {
        display: none;
    } */

    .table-responsive .td_find_mobile_hidden{
        display: none;
    }

    .table-responsive td:last-child {
        border-bottom: none;
        padding-top: 15px;
    }

    .table-responsive td .valore {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
        width: 100%;
        display: block; /* Aggiungi questa */
    }

    /* Gestione paragrafi e contenuto HTML */
    .table-responsive td .valore p {
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal; /* Assicurati che sia normale */
    }

    .table-responsive td .valore p:last-child {
        margin-bottom: 0;
    }

    /* Gestione div contenitori */
    .table-responsive .edit_container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible; /* Cambia da hidden a visible */
    }

    /* Rimuovi classi Bootstrap che causano problemi su mobile */
    .table-responsive .col-md-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        overflow: visible; /* Aggiungi questa */
    }

    /* Per campi molto lunghi, limita altezza con scroll */
    .table-responsive .col_note_riservate .valore,
    .table-responsive .col_note .valore,
    .table-responsive .col_descrizione .valore {
        max-height: 150px;
        overflow-y: auto;
        padding-right: 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Forza il word wrap su tutti gli elementi interni */
    .table-responsive td * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-check {
        padding-left: 0;
    }

    .form-check .form-check-input {
        margin-left: 0;
    }

    .row_form .card{
        padding: 0;
        background: unset;
    }
}