div.dataTables_wrapper {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

div.dataTables_paginate {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    z-index: 10;
    position: relative;
}
/* sfondo generale */
body {
    background: #ffffff; /* nuovo sfondo */
}

/* testo globale */
body, html {
    color: #222222;
}

/* link */
a {
    color: #253a4e;
}

    a:hover {
        color: #0a58ca;
    }

/* sidebar dark */
.sidebar[data-background-color="dark"] {
    background: #253a4e !important;
}

    .sidebar[data-background-color="dark"] .nav > .nav-item a {
        color: #e5e7eb !important;
    }

/* primary button */
.btn-primary {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
}
.text-primary, .text-primary a {
    color: #253a4e !important;
}

.text-info, .text-info a {
    color: #253a4e !important;
}

.nav-link {
    color: #253a4e !important;
}

.btn-outline-primary {
    border-color: #253a4e !important;
    color: #253a4e !important;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active,
    .btn-outline-primary.active,
    .btn-check:checked + .btn-outline-primary {
        background-color: #253a4e !important;
        border-color: #253a4e !important;
        color: #fff !important;
    }











/* Titolo grande nella top bar */
.app-title {
    font-weight: 700;
    font-size: 1.6rem; /* GRANDE */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111827; /* colore scuro, perfetto sullo sfondo chiaro */
    margin: 0;
}

/* Centra meglio verticalmente se necessario */
.app-title-container {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* classe box servizi in Contratti Index */
.srv-list-scroll {
    max-height: 320px; /* puoi cambiare: 240 / 400 / 40vh */
    overflow-y: auto;
    padding-right: .25rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .35rem;
}

.logo-header[data-background-color="ingplanblu"],
.logo-header.ingplanblu {
    background-color: #253a4e !important;
}


/* ==========================================================
   Checkbox e radio button pių visibili in tutto il progetto
   ========================================================== */

/* Caso principale: input Bootstrap */
.form-check-input {
    width: 1.35em;
    height: 1.35em;
    margin-top: 0.1em;
    cursor: pointer;
    border: 2px solid #6c757d;
}

    /* Quando checkbox/radio č selezionato */
    .form-check-input:checked {
        background-color: #ff6600;
        border-color: #ff6600;
    }

/* Label cliccabile e pių comoda */
.form-check-label {
    cursor: pointer;
    padding-left: 0.15rem;
}

/* Migliora l'allineamento dei blocchi Bootstrap */
.form-check {
    min-height: 1.75rem;
}

/* Caso secondario: checkbox/radio senza classi Bootstrap */
input[type="checkbox"]:not(.form-check-input),
input[type="radio"]:not(.form-check-input) {
    width: 1.25em;
    height: 1.25em;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 0.35rem;
    accent-color: #ff6600;
}


/* ==========================================================
   Tabelle statistiche compatte
   ========================================================== */

.stats-table-compact {
    font-size: 0.76rem;
    width: auto;
    table-layout: auto;
    border-collapse: collapse;
}

    .stats-table-compact th,
    .stats-table-compact td {
        padding: 0.08rem 0.03rem !important;
        vertical-align: middle;
    }

    /* Colonna nome consulente: stretta e con testo a capo */
    .stats-table-compact .stats-col-utente {
        width: 85px;
        min-width: 85px;
        max-width: 85px;
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
        line-height: 1.1;
    }

    /* Celle numeriche: niente larghezze forzate, si adattano al contenuto */
    .stats-table-compact td.text-end {
        white-space: nowrap;
        width: 1%;
    }

    /* Intestazioni numeriche SEMPRE verticali e molto strette */
    .stats-table-compact th.stats-metric-header {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-align: left;
        vertical-align: bottom;
        height: 64px;
        width: 18px;
        min-width: 18px;
        max-width: 18px;
        padding: 0.08rem 0.02rem !important;
        line-height: 1;
        white-space: nowrap;
    }

    /* La colonna Utente resta orizzontale */
    .stats-table-compact th.stats-col-utente {
        writing-mode: horizontal-tb;
        transform: none;
        height: auto;
        white-space: normal;
    }

/* ==========================================================
   Sezione Utenti - tabella Index compatta/responsive
   ========================================================== */

.utenti-index-table {
    table-layout: fixed;
    width: 100%;
    font-size: .82rem;
}

    .utenti-index-table th,
    .utenti-index-table td {
        padding: .28rem .35rem;
        vertical-align: middle;
    }

    .utenti-index-table .col-utente {
        width: 27%;
    }

    .utenti-index-table .col-email {
        width: 37%;
    }

    .utenti-index-table .col-tipo {
        width: 20%;
    }

    .utenti-index-table .col-stato {
        width: 42px;
    }

    .utenti-index-table .col-azioni {
        width: 72px;
    }

.utenti-cell-truncate {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.utenti-icon-button {
    line-height: 1;
    text-decoration: none;
    font-size: 1.15rem;
}

.utenti-actions {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .utenti-index-table {
        table-layout: auto;
        min-width: 680px;
    }

    .utenti-cell-truncate {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

