.message {display: none;}
#tagsTable_wrapper .dt-length>label, .dt-search{
    display: flex;
    gap: 10px;
    align-items: center !important;
}
.dt-search{
    margin-bottom: 15px;
}

.dt-length label[for="dt-length-0"]{
    display: flex;gap: 10px;    align-items: center !important;
}
.dt-length label[for="dt-length-0"] .form-select{
    max-width: 85px;
}
p {
    margin-top: 0;
    margin-bottom: 0;
}
.pagination{margin-bottom: 0;}
.table>thead th{
    color: var(--bs-body-color);
    background-color: rgba(var(--bs-light-rgb), .75);
}
th:not(.dt-orderable-none) .dt-column-order {
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDEuOTk4IiBoZWlnaHQ9IjQwMS45OTgiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMS45OTggNDAxLjk5OCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTczLjA5MiAxNjQuNDUyaDI1NS44MTNjNC45NDkgMCA5LjIzMy0xLjgwNyAxMi44NDgtNS40MjQgMy42MTMtMy42MTYgNS40MjctNy44OTggNS40MjctMTIuODQ3cy0xLjgxMy05LjIyOS01LjQyNy0xMi44NUwyMTMuODQ2IDUuNDI0QzIxMC4yMzIgMS44MTIgMjA1Ljk1MSAwIDIwMC45OTkgMHMtOS4yMzMgMS44MTItMTIuODUgNS40MjRMNjAuMjQyIDEzMy4zMzFjLTMuNjE3IDMuNjE3LTUuNDI0IDcuOTAxLTUuNDI0IDEyLjg1IDAgNC45NDggMS44MDcgOS4yMzEgNS40MjQgMTIuODQ3IDMuNjIxIDMuNjE3IDcuOTAyIDUuNDI0IDEyLjg1IDUuNDI0ek0zMjguOTA1IDIzNy41NDlINzMuMDkyYy00Ljk1MiAwLTkuMjMzIDEuODA4LTEyLjg1IDUuNDIxLTMuNjE3IDMuNjE3LTUuNDI0IDcuODk4LTUuNDI0IDEyLjg0N3MxLjgwNyA5LjIzMyA1LjQyNCAxMi44NDhMMTg4LjE0OSAzOTYuNTdjMy42MjEgMy42MTcgNy45MDIgNS40MjggMTIuODUgNS40MjhzOS4yMzMtMS44MTEgMTIuODQ3LTUuNDI4bDEyNy45MDctMTI3LjkwNmMzLjYxMy0zLjYxNCA1LjQyNy03Ljg5OCA1LjQyNy0xMi44NDggMC00Ljk0OC0xLjgxMy05LjIyOS01LjQyNy0xMi44NDctMy42MTQtMy42MTYtNy44OTktNS40Mi0xMi44NDgtNS40MnoiLz48L3N2Zz4=);
background-position-y: center;
opacity: .2;
background-color: transparent;
background-position-x: center;
background-repeat: no-repeat;
background-size: contain;
border: none;
cursor: pointer;
float: right;
height: 24px;
margin: 0;
outline: none;
padding: 0;
width: 10px;
}

.tox-toolbar__overflow[aria-hidden="true"],.tox-statusbar__right-container {
    display: none !important;
}


table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before{display: none!important;}
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control, table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control {
    position: relative;
    padding-left: 14px!important;
    cursor: pointer;
}
@media (max-width: 768px) {
  .btn-sm {
    --bs-btn-padding-y: 0.4rem;
    --bs-btn-padding-x: 0.3rem;
}
}

.view_mobile>td{padding: 0!important;}

.timeline-badge.bg-light{
    background-color: #AFB4B8!important;
}
.timeline-item {display: block!important;}
.timeline-badge {left: -43px!important;}




/* Timeline styles */
.timeline-vertical {
    position: relative;
    padding: 1rem;
    margin: 0 0 0 1.5rem;
    color: rgba(0,0,0,0.8);
    border-left: 1px solid rgba(0,0,0,0.1);
}
.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}
.timeline-badge {
    position: absolute;
    top: 0;
    left: -39px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.timeline-content {
    position: relative;
    margin-left: 1.5rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}
/* Colors for badges */
.bg-purple {
    background-color: #6f42c1;
}
.bg-blue {
    background-color: #007bff;
}
.bg-teal {
    background-color: #20c997;
}


.rounded-top{
    border-top-left-radius: var(--bs-border-radius) !important;
    border-top-right-radius: var(--bs-border-radius) !important;
}

.modal-body .card{box-shadow: none;border: 1px solid #eaedf1!important;}
/* Stili per l'editor di newsletter */
.newsletter-preview-wrapper {
    /* background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px; */
}

.newsletter-preview {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 4px;
}

.newsletter-block-item {
    margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

}

.newsletter-block-controls {
    cursor: move;
    background-color: rgb(238,242,247);
}

.newsletter-block-content {
    background-color: #fff;
    min-height: 80px;
    display: grid;
}

.block-type-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.block-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rich-editor {
    min-height: 150px;
}

.image-preview, .logo-preview {
    min-height: 20px;
}


.newsletter-preview-mobile {
    max-width: 375px !important;
    transition: max-width 0.3s ease;
}

.newsletter-preview {
    transition: max-width 0.3s ease;
}

/* Stile per il contenuto su mobile */
.newsletter-preview-mobile .newsletter-block-content [style*="display: flex"] {
    flex-direction: column !important;
}

.newsletter-preview-mobile .newsletter-block-content [style*="display: flex"] > div {
    width: 100% !important;
    flex: none !important;
    margin-bottom: 15px;
}

/* Stili per migliorare la visualizzazione mobile */
.newsletter-preview-mobile .image-text-block,
.newsletter-preview-mobile .two-columns-block {
    flex-direction: column !important;
}

.newsletter-preview-mobile .image-text-block > div,
.newsletter-preview-mobile .two-columns-block > div {
    flex: none !important;
    width: 100% !important;
    order: 0 !important; /* Reset del parametro order */
    margin-bottom: 15px;
}

/* Assicurati che le immagini si adattino alla larghezza del contenitore */
.newsletter-preview-mobile img {
    max-width: 100%;
    height: auto;
}


/* Stili per articoli in visualizzazione mobile */
.newsletter-preview-mobile .article-block {
    flex-direction: column !important;
}

.newsletter-preview-mobile .article-block > div {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px;
}

.newsletter-preview-mobile .article-block h2 {
    font-size: 20px !important;
}






/* Allinea la paginazione a destra */
.dataTables_wrapper .dataTables_paginate {
    float: right !important;
}

/* Rimuovi il float della lunghezza per evitare sovrapposizioni su mobile */
@media (max-width: 767px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center;
        margin-top: 10px;
    }
}




.step-indicator {
    margin-bottom: 30px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background: #0066cc;
    color: white;
}

.step.completed .step-icon {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #6c757d;
}

.step.active .step-label {
    color: #0066cc;
    font-weight: 600;
}

.step-divider {
    flex: 0 0 60px;
    height: 2px;
    background: #e9ecef;
    margin-top: 30px;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0066cc;
    background: #f8f9fa;
}

.upload-area.dragover {
    border-color: #0066cc;
    background: #e7f1ff;
}

.upload-area i {
    font-size: 60px;
    color: #6c757d;
    display: block;
    margin-bottom: 20px;
}

.log-success {
    color: #28a745;
}

.log-warning {
    color: #ffc107;
}

.log-error {
    color: #dc3545;
}

.import-step {
    min-height: 400px;
}

.validation-summary .card {
    transition: all 0.3s ease;
}

.validation-summary .card:hover {
    transform: translateY(-5px);
}




/* Sync log styles */
#syncLog {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
}

#syncLog .info {
    color: #0066cc;
}

#syncLog .success {
    color: #28a745;
}

#syncLog .error {
    color: #dc3545;
}

#syncLog .warning {
    color: #ffc107;
}

#syncLog div {
    padding: 2px 0;
}




.select2-container--default .select2-selection--single .select2-selection__rendered{
 border: 1px solid #eaedf1!important;
     width: 100%;
    border-radius: .35rem!important;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color)!important;
    line-height: 37px!important;
}
.select2-container--default .select2-selection--single{
    height: auto!important;border-radius: .35rem!important;border: 0!important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {

}
.select2-container--default .select2-search--dropdown .select2-search__field{
    outline: 0!important;
    box-shadow: none!important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px!important;
}





.stat-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.appointment-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.table th {
    font-weight: 600;
    color: #495057;
}


code {
    padding: 2px 4px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

input[name="codice_fiscale"] {
    letter-spacing: 1px;
}

@media print {


    .table {
        font-size: 12px;
    }
}


/* Stile per righe pazienti riservati */
.patient-reserved {
    background-color: #fff3cd !important;
}

.patient-reserved:hover {
    background-color: #ffe9a6 !important;
}

#reservedModeBadge {
    position: sticky;
    top: 70px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.select2-container--default .select2-selection--single .select2-selection__clear{
    position: absolute;
    right: 0px;
    height: 39px!important;
}