/* =====================================================================================
   newt_x.css - INTERFACCIA "X": BIANCO / NERO / GRIGI - MOBILE FIRST - BOOTSTRAP 4.6
   VA IN /js E SI CARICA CON  <link href="/js/newt_x.css" rel="stylesheet" />

   USATO DA
     user control : ucMultidoc2_X, ucSkDoc_X, ucSkDocO_X, ucDocEdit_X, ucEfficaciaDoc_X
     pagine newt5 : listsocieta, sksocieta, listuser, listuseradv, skUser, listgruppi,
                    skGroup, roombooking

   REGOLE DEL FILE
   - TUTTO VALE SOLO DENTRO UN CONTENITORE  .nx  (IL RESTO DEL SITO NON CAMBIA).
   - I COLORI SONO SOLO NELLE VARIABILI --nx-* QUI SOTTO: PER CAMBIARE I GRIGI BASTA
     RIDEFINIRLE (ANCHE NEL private.css DEL SITO).
   - DOVE BASTA, SI USANO LE CLASSI DI BOOTSTRAP (btn, card, table, d-flex, mb-3...)
     RIDISEGNATE QUI DENTRO .nx; LE CLASSI PROPRIE SONO POCHE:

       nx            contenitore (obbligatorio)
       nx-topbar     intestazione di pagina (cpTopHeader): titolo, ricerca, filtri, azioni
       nx-toolbar    barra nera delle azioni (gestione documentale)
       nx-title      titolo di pagina / scheda
       nx-panel      riquadro bianco con bordo
       nx-box        riquadro grigio interno (elenchi che scorrono, file, dettagli)
       nx-label      etichetta sopra un campo
       nx-cap        didascalia minuscola in maiuscoletto
       nx-help       testo secondario grigio
       nx-msg        messaggio in evidenza
       nx-badge      etichetta di stato
       nx-iconbtn    pulsante tondo a sola icona
       nx-field      campo con icona o pulsante incorporato
       nx-item       riga "immagine + testo" (documento, utente, file)
       nx-avatar     riquadro con immagine, icona o iniziale
       nx-grid       elenco in tabella   (+ nx-grid--cards: su telefono ogni riga e' una scheda)
       nx-pager      riga di paginazione delle GridView
       nx-empty      "nessun dato"
       nx-tile       elemento della vista a icone
       nx-meta       elenco etichetta / valore
       nx-kpis       valori in evidenza (efficacia)
       nx-seg        selettore a segmenti fatto con RadioButton
       nx-cal        calendario sale   (+ nx-cal--week / --month / --day)
       nx-today      oggi (calendario)
       nx-hold       stato "sospeso"     nx-off  stato "eliminato" / giorno non lavorativo
   ===================================================================================== */
.nx {
    --nx-white: #ffffff;
    --nx-black: #0f0f10;
    --nx-ink: #1c1c1e;
    --nx-700: #3a3a3c;
    --nx-600: #55555a;
    --nx-500: #6e6e73;
    --nx-400: #8e8e93;
    --nx-300: #c7c7cc;
    --nx-200: #e3e3e6;
    --nx-100: #f1f1f3;
    --nx-50: #f8f8f9;
    /* TRASPARENZE: ALONE DEL FUOCO, VELO DIETRO AI PANNELLI, VELATURE SUL NERO */
    --nx-focus: rgba(15, 15, 16, .14);
    --nx-veil: rgba(15, 15, 16, .5);
    --nx-glass: rgba(255, 255, 255, .14);
    --nx-glass-line: rgba(255, 255, 255, .22);
    --nx-shadow: 0 1px 2px rgba(15, 15, 16, .06);
    --nx-shadow-lg: 0 16px 40px rgba(15, 15, 16, .18);
    --nx-shadow-xl: 0 24px 60px rgba(15, 15, 16, .3);
    --nx-radius: 10px;
    --nx-radius-sm: 8px;
    --nx-pad: .9rem;
    color: var(--nx-ink);
    font-size: .9375rem;
    line-height: 1.5;
    text-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

/* =====================================================================================
   1. BASE: BOOTSTRAP DENTRO .nx DIVENTA BIANCO / NERO / GRIGIO
   ===================================================================================== */
.nx a {
    color: var(--nx-ink);
}

    .nx a:hover {
        color: var(--nx-black);
    }

.nx .text-dark,
.nx .text-primary,
.nx .text-success,
.nx .text-danger,
.nx .text-warning,
.nx .text-info,
.nx [class*="text-green-"],
.nx [class*="text-red-"],
.nx [class*="text-blue-"] {
    color: var(--nx-ink) !important;
}

.nx .text-muted,
.nx .text-secondary {
    color: var(--nx-500) !important;
}

.nx .bg-primary,
.nx .bg-success,
.nx .bg-danger,
.nx .bg-info,
.nx .bg-dark {
    background-color: var(--nx-black) !important;
    color: var(--nx-white) !important;
}

.nx .bg-warning,
.nx .bg-secondary,
.nx .bg-light {
    background-color: var(--nx-100) !important;
    color: var(--nx-ink) !important;
}

.nx .bg-white {
    background-color: var(--nx-white) !important;
}

.nx .border,
.nx .border-top,
.nx .border-bottom {
    border-color: var(--nx-200) !important;
}

/* I MESSAGGI DEI VALIDATORI (ROSSI DI DEFAULT) DIVENTANO NERI E PICCOLI */
.nx span[id*="Validator"] {
    color: var(--nx-black) !important;
    font-size: .78rem;
    font-weight: 600;
}

.nx .form-group > br,
.nx .dropdown-menu br {
    display: none;
}

.nx small small {
    font-size: inherit;
}

.nx h4,
.nx legend {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.005em;
    color: var(--nx-black);
}

.nx hr {
    margin: 1rem 0;
    border-top-color: var(--nx-200);
}

.nx iframe {
    display: block;
    width: 100%;
    border: 1px solid var(--nx-200);
    border-radius: var(--nx-radius-sm);
    background: var(--nx-white);
}

/* CAMPO VUOTO NELLE SCHEDE: UN TRATTINO AL POSTO DEL VALORE */
.nx dd {
    margin: 0;
    overflow-wrap: anywhere;
}

    .nx dd:empty::before,
    .nx dd > span:empty:only-child::before,
    .nx dd > a:empty:only-child::before {
        content: "\2014";
        color: var(--nx-400);
    }

/* ----- PULSANTI ----- */
.nx .btn {
    min-height: 2.5rem;
    padding: .45rem .95rem;
    border-radius: var(--nx-radius-sm);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.nx .btn-sm {
    min-height: 2.25rem;
    padding: .35rem .75rem;
    font-size: .8125rem;
}

.nx .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px var(--nx-focus) !important;
}

.nx .btn.disabled,
.nx .btn:disabled {
    opacity: .45;
}

/* AZIONE PRINCIPALE: NERO PIENO (ANCHE IL PULSANTE "FILTRI" QUANDO IL PANNELLO E' APERTO) */
.nx .btn-primary,
.nx .btn-primary:not(:disabled):not(.disabled):active,
.nx .show > .btn-primary.dropdown-toggle,
.nx .nx-topbar .btn[aria-expanded="true"] {
    background-color: var(--nx-black);
    border-color: var(--nx-black) !important;
    color: var(--nx-white);
}

    .nx .btn-primary:hover,
    .nx .btn-primary:focus {
        background-color: var(--nx-700);
        border-color: var(--nx-700);
        color: var(--nx-white);
    }

/* AZIONE SECONDARIA: GRIGIO CHIARO */
.nx .btn-secondary,
.nx .btn-secondary:not(:disabled):not(.disabled):active {
    background-color: var(--nx-100);
    border-color: var(--nx-200);
    color: var(--nx-ink);
}

    .nx .btn-secondary:hover,
    .nx .btn-secondary:focus {
        background-color: var(--nx-200);
        border-color: var(--nx-300);
        color: var(--nx-black);
    }

/* AZIONI DELICATE (PUBBLICA, ELIMINA, SCOLLEGA...): BIANCO CON BORDO NERO */
.nx .btn-danger,
.nx .btn-warning,
.nx .btn-danger:not(:disabled):not(.disabled):active,
.nx .btn-warning:not(:disabled):not(.disabled):active {
    background-color: var(--nx-white);
    border-color: var(--nx-black);
    color: var(--nx-black);
}

    .nx .btn-danger:hover,
    .nx .btn-danger:focus,
    .nx .btn-warning:hover,
    .nx .btn-warning:focus {
        background-color: var(--nx-black);
        border-color: var(--nx-black);
        color: var(--nx-white);
    }

/* AZIONI DI SUPPORTO: GRIGIO SCURO */
.nx .btn-success,
.nx .btn-dark,
.nx .btn-info,
.nx .btn-success:not(:disabled):not(.disabled):active,
.nx .btn-dark:not(:disabled):not(.disabled):active,
.nx .btn-info:not(:disabled):not(.disabled):active {
    background-color: var(--nx-700);
    border-color: var(--nx-700);
    color: var(--nx-white);
}

    .nx .btn-success:hover,
    .nx .btn-success:focus,
    .nx .btn-dark:hover,
    .nx .btn-dark:focus,
    .nx .btn-info:hover,
    .nx .btn-info:focus {
        background-color: var(--nx-600);
        border-color: var(--nx-600);
        color: var(--nx-white);
    }

/* PULSANTE NEUTRO: BIANCO CON BORDO GRIGIO */
.nx .btn.border {
    border-color: var(--nx-300) !important;
    background-color: var(--nx-white);
    color: var(--nx-ink);
}

    .nx .btn.border:hover {
        border-color: var(--nx-black) !important;
    }

.nx .btn-link {
    color: var(--nx-500);
    text-decoration: underline;
}

.nx .btn-group > .dropdown-toggle-split {
    flex: 0 0 auto;
    padding-left: .7rem;
    padding-right: .7rem;
    border-left: 1px solid var(--nx-glass-line);
}

.nx .btn > img {
    width: 1.5rem !important;
    height: auto;
    margin-right: .35rem;
}

.nx input[type="image"].btn {
    min-height: 0;
    padding: .25rem;
}

.nx .badge-dark {
    background-color: var(--nx-black);
    color: var(--nx-white);
}

.nx .badge-light {
    background-color: var(--nx-100);
    color: var(--nx-700);
}

/* ----- MENU A TENDINA ----- */
.nx .dropdown-menu {
    min-width: 13rem;
    max-width: calc(100vw - 1.5rem);
    margin-top: .4rem;
    padding: .4rem;
    border: 1px solid var(--nx-200);
    border-radius: var(--nx-radius);
    box-shadow: var(--nx-shadow-lg);
    color: var(--nx-ink);
    font-size: .9rem;
}

    /* I CONTENUTI A LARGHEZZA FISSA DENTRO I MENU (PANNELLI DA 300px) NON SFORANO */
    .nx .dropdown-menu > div {
        max-width: 100%;
    }

    .nx .dropdown-menu hr,
    .nx .dropdown-divider {
        margin: .35rem 0;
        border-top: 1px solid var(--nx-200);
    }

.nx .dropdown-item {
    min-height: 2.5rem;
    padding: .55rem .75rem;
    border-radius: 6px;
    color: var(--nx-ink);
    font-weight: 500;
    white-space: normal;
}

    .nx .dropdown-item .bi {
        margin-right: .6rem !important;
        color: var(--nx-600) !important;
    }

    .nx .dropdown-item:hover,
    .nx .dropdown-item:focus {
        background: var(--nx-100);
        color: var(--nx-black);
    }

    .nx .dropdown-item:active {
        background: var(--nx-black);
        color: var(--nx-white);
    }

        .nx .dropdown-item:active .bi {
            color: var(--nx-white) !important;
        }

.nx span.dropdown-item {
    min-height: 0;
    color: var(--nx-500);
    font-weight: 400;
}

    .nx span.dropdown-item:hover {
        background: transparent;
        color: var(--nx-500);
    }

/* VOCI DI MENU FATTE CON UN .btn (ADMIN, SCARICA CARTELLA) */
.nx .dropdown-menu .btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: .5rem .75rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--nx-ink);
    font-weight: 500;
    text-align: left;
    white-space: normal;
}

    .nx .dropdown-menu .btn:hover,
    .nx .dropdown-menu .btn:focus {
        background: var(--nx-100);
    }

    .nx .dropdown-menu .btn img,
    .nx .dropdown-menu .btn .bi {
        flex: 0 0 auto;
        width: 1.25rem !important;
        margin-right: .65rem;
    }

.nx .dropdown-menu .nx-help {
    padding: 0 .75rem .5rem;
}

.nx .dropdown-menu .nx-field {
    margin: .25rem;
}

/* ----- FINESTRE MODALI: SU TELEFONO OCCUPANO TUTTO LO SCHERMO ----- */
.nx .modal-dialog {
    height: 100%;
    max-width: none;
    max-height: 100%;
    margin: 0;
}

.nx .modal-dialog-scrollable .modal-content {
    max-height: 100%;
}

.nx .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0 !important;
    box-shadow: var(--nx-shadow-xl);
}

/* LE FINESTRE PICCOLE (AIUTO RICERCA) RESTANO UN RIQUADRO ANCHE SU TELEFONO */
.nx .modal-dialog:not(.modal-xl) {
    height: auto;
    margin: .75rem;
}

    .nx .modal-dialog:not(.modal-xl) .modal-content {
        height: auto;
        border-radius: 14px !important;
    }

.nx .modal-header {
    align-items: center;
    padding: .5rem .6rem .5rem var(--nx-pad);
    border-bottom: 1px solid var(--nx-200);
}

.nx .modal-title {
    color: var(--nx-black);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.nx .modal-header .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0 0 auto;
    padding: 0;
    border-radius: 50%;
    background: var(--nx-100);
    color: var(--nx-ink);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
}

    .nx .modal-header .close:hover {
        background: var(--nx-200);
    }

.nx .modal-body {
    padding: var(--nx-pad) var(--nx-pad) 1.25rem;
}

.nx .modal-footer {
    padding: .65rem var(--nx-pad);
    border-top: 1px solid var(--nx-200);
    background: var(--nx-50);
}

    .nx .modal-footer .btn {
        flex: 1 1 auto;
        margin: 0;
    }

/* ----- SCHEDE (TAB): UNA RIGA CHE SCORRE COL DITO ----- */
.nx .nav-tabs {
    flex-wrap: nowrap;
    margin: 0 0 1rem;
    padding: 0;
    border-bottom: 1px solid var(--nx-200);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

    .nx .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nx .nav-tabs .nav-item {
        flex: 0 0 auto;
        margin: 0;
    }

    .nx .nav-tabs .nav-link {
        display: flex;
        align-items: center;
        min-height: 2.75rem;
        padding: .5rem .8rem;
        border: 0;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        background: transparent;
        color: var(--nx-500) !important;
        font-size: .875rem;
        font-weight: 600;
        white-space: nowrap;
    }

        .nx .nav-tabs .nav-link:hover {
            color: var(--nx-ink) !important;
        }

        .nx .nav-tabs .nav-link.active {
            border-bottom-color: var(--nx-black);
            color: var(--nx-black) !important;
        }

    /* PULSANTI A ICONA IN FONDO ALLE SCHEDE (SOLA LETTURA / MODIFICABILE) */
    .nx .nav-tabs .nav-item.ml-auto {
        display: flex;
    }

    .nx .nav-tabs .nav-item > a:not(.nav-link) {
        display: flex;
        align-items: center;
        height: 2.75rem;
        padding: 0 .5rem;
    }

    .nx .nav-tabs .nav-item img {
        width: 1.5rem !important;
        height: auto;
    }

.nx .containerTab {
    max-width: none;
    padding: 0;
}

/* ----- MODULI ----- */
.nx .form-control {
    height: auto;
    min-height: 2.75rem;
    padding: .5rem .75rem;
    border: 1px solid var(--nx-300);
    border-radius: var(--nx-radius-sm);
    background-color: var(--nx-white);
    box-shadow: none;
    color: var(--nx-ink);
    /* 16px: SU IPHONE IL CAMPO NON FA LO ZOOM QUANDO PRENDE IL FUOCO */
    font-size: 1rem;
}

    .nx .form-control:focus {
        border-color: var(--nx-black);
        box-shadow: 0 0 0 3px var(--nx-focus);
    }

    .nx .form-control::placeholder {
        color: var(--nx-400);
    }

    .nx .form-control:disabled,
    .nx .form-control[readonly] {
        border-color: var(--nx-200);
        background-color: var(--nx-100);
        color: var(--nx-600);
    }

.nx span.form-control {
    border-color: var(--nx-200);
    background-color: var(--nx-100);
}

.nx input[type="file"].form-control {
    padding: .5rem;
    background-color: var(--nx-50);
    font-size: .875rem;
}

.nx input[type="checkbox"],
.nx input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0 .5rem 0 0;
    vertical-align: -.2rem;
    accent-color: var(--nx-black);
    cursor: pointer;
}

    .nx input[type="checkbox"] + label,
    .nx input[type="radio"] + label {
        display: inline;
        margin: 0;
        cursor: pointer;
    }

.nx .form-group {
    margin-bottom: 1rem;
}

    .nx .form-group > br + .nx-label {
        margin-top: .9rem;
    }

.nx .form-inline {
    align-items: center;
}

    .nx .form-inline > * {
        margin-bottom: .5rem;
    }

    .nx .form-inline .form-control {
        flex: 1 1 12rem;
        min-width: 0;
        margin-right: .5rem;
    }

    /* DENTRO UN .form-inline L'ETICHETTA STA SEMPRE SU UNA RIGA SUA, SOPRA AL CAMPO */
    .nx .form-inline > .nx-label {
        flex: 0 0 100%;
        order: -1;
        margin-bottom: .3rem;
    }

.nx .nx-help + .form-inline {
    margin-top: .4rem;
}

/* ----- TABELLE BOOTSTRAP (ALLEGATI, LISTE, LOG) ----- */
.nx .table {
    margin-bottom: 1rem;
    background: transparent !important;
    color: var(--nx-ink);
    font-size: .875rem;
}

    .nx .table th {
        padding: .5rem .6rem;
        border-top: 0;
        border-bottom: 1px solid var(--nx-200);
        background: transparent !important;
        color: var(--nx-500) !important;
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

    .nx .table td {
        padding: .6rem;
        border-top: 0;
        border-bottom: 1px solid var(--nx-100);
        vertical-align: middle;
    }

    .nx .table tr:last-child > td {
        border-bottom: 0;
    }

    .nx .table a {
        font-weight: 500;
        overflow-wrap: anywhere;
    }

    /* ICONA DEL TIPO DI FILE NELLA PRIMA COLONNA DEGLI ALLEGATI */
    .nx .table td:first-child > img:only-child {
        width: 2.25rem !important;
        height: auto;
    }

    .nx .table input[type="image"] {
        width: 2rem !important;
        padding: .35rem;
        border-radius: 50%;
        vertical-align: middle;
    }

        .nx .table input[type="image"]:hover {
            background: var(--nx-100);
        }

/* ----- CARD: RIQUADRO CON INTESTAZIONE ----- */
.nx .card {
    border: 1px solid var(--nx-200);
    border-radius: var(--nx-radius);
    overflow: hidden;
}

.nx .card-header {
    padding: .75rem var(--nx-pad);
    border-bottom: 1px solid var(--nx-200);
    background: var(--nx-50);
}

    .nx .card-header h5 {
        margin: 0;
        font-size: .95rem;
        font-weight: 700;
    }

.nx .card-body {
    padding: .75rem var(--nx-pad);
}

    .nx .card-body th {
        padding-bottom: .25rem;
        color: var(--nx-500);
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

.nx .card-footer {
    padding: .75rem var(--nx-pad);
    border-top: 1px solid var(--nx-200);
    background: var(--nx-white);
}

.nx .card-body a,
.nx .card-footer a {
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.nx .card .btn.bg-transparent {
    width: 2.25rem;
    height: 2.25rem;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
}

    .nx .card .btn.bg-transparent:hover {
        background: var(--nx-100) !important;
    }

/* UN ELENCO DENTRO UNA CARD E' ALLINEATO ALL'INTESTAZIONE DELLA CARD */
.nx .card > .nx-grid th:first-child,
.nx .card > .nx-grid td:first-child,
.nx .card > div > .nx-grid th:first-child,
.nx .card > div > .nx-grid td:first-child {
    padding-left: var(--nx-pad);
}

.nx .card > .nx-grid th:last-child,
.nx .card > .nx-grid td:last-child,
.nx .card > div > .nx-grid th:last-child,
.nx .card > div > .nx-grid td:last-child {
    padding-right: var(--nx-pad);
}

/* ----- MESSAGGI ----- */
.nx .alert {
    padding: .7rem 2.75rem .7rem .9rem;
    border: 1px solid var(--nx-200);
    border-left: 3px solid var(--nx-black);
    border-radius: 0 var(--nx-radius-sm) var(--nx-radius-sm) 0;
    background: var(--nx-50);
    color: var(--nx-ink);
    font-size: .875rem;
}

    .nx .alert .close {
        padding: .55rem .9rem;
        color: var(--nx-ink);
        text-shadow: none;
    }

/* =====================================================================================
   2. COMPONENTI
   ===================================================================================== */

/* ----- nx-title: TITOLO DI PAGINA / SCHEDA ----- */
.nx .nx-title {
    margin: 0;
    color: var(--nx-black);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* ----- nx-label / nx-cap / nx-help: I TRE TESTI DI SERVIZIO ----- */
.nx-label {
    display: block;
    margin: 0 0 .3rem;
    padding: 0 !important;
    color: var(--nx-700);
    font-size: .8125rem;
    font-weight: 600 !important;
}

/* nx-cap E' ANCHE LO STILE DELLE CHIAVI DI nx-meta, DELLE ETICHETTE DI nx-kpis E DEI <dt> */
.nx-cap,
.nx dt,
.nx-meta > div > :first-child,
.nx-kpis > div > span:first-child {
    display: block;
    color: var(--nx-500);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.nx a.nx-cap {
    display: inline-block;
    color: var(--nx-500);
    text-decoration: none;
}

.nx-help {
    display: block;
    margin-top: .3rem;
    color: var(--nx-500);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.45;
}

    .nx .nx-help a {
        color: var(--nx-500);
    }

.nx a.nx-help {
    text-decoration: underline;
}

/* ----- nx-msg: MESSAGGIO (SPARISCE DA SOLO QUANDO E' VUOTO) ----- */
.nx .nx-msg {
    display: block;
    margin: .5rem 0;
    padding: .6rem .8rem;
    border-left: 3px solid var(--nx-black);
    border-radius: 0 var(--nx-radius-sm) var(--nx-radius-sm) 0;
    background: var(--nx-100);
    color: var(--nx-black) !important;
    font-size: .875rem;
    font-weight: 500;
}

    .nx .nx-msg:empty {
        display: none;
    }

    /* TITOLO DEL MESSAGGIO (<b>) ED ELENCO NUMERATO */
    .nx .nx-msg > b {
        display: block;
        margin-bottom: .3rem;
    }

    .nx .nx-msg ol {
        margin: 0;
        padding-left: 1.15rem;
        font-weight: 400;
    }

    /* MESSAGGIO GRAVE: nx-msg + bg-dark */
    .nx .nx-msg.bg-dark {
        border-left-color: var(--nx-400);
        color: var(--nx-white) !important;
    }

/* ----- nx-badge: ETICHETTA DI STATO (CON bg-dark DIVENTA PIENA) ----- */
.nx-badge {
    display: inline-block;
    padding: .15rem .45rem;
    border: 1px solid var(--nx-500);
    border-radius: 4px;
    background: var(--nx-white);
    color: var(--nx-700);
    font-size: .6875rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
}

    .nx-badge:empty {
        display: none;
    }

    .nx-badge.bg-dark {
        border-color: var(--nx-black);
    }

/* ----- nx-iconbtn: PULSANTE TONDO A SOLA ICONA (CON btn-sm E' PIU' PICCOLO) ----- */
.nx .nx-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--nx-600);
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
}

    .nx .nx-iconbtn:hover,
    .nx .nx-iconbtn:focus,
    .nx .show > .nx-iconbtn {
        background: var(--nx-100);
        color: var(--nx-black);
        text-decoration: none;
    }

    .nx .nx-iconbtn.btn-sm {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }

    .nx .nx-iconbtn img {
        width: 1.5rem;
        height: auto;
    }

/* ImageButton (CESTINO, RICALCOLA...): STESSO TONDO, CON L'IMMAGINE DENTRO */
.nx input[type="image"].nx-iconbtn {
    width: 2.25rem !important;
    height: 2.25rem;
    padding: .5rem;
    background: var(--nx-100);
}

    .nx input[type="image"].nx-iconbtn:hover {
        background: var(--nx-200);
    }

/* ----- nx-avatar: RIQUADRO CON IMMAGINE, ICONA O INIZIALE ----- */
.nx-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--nx-radius-sm);
    background: var(--nx-100);
    color: var(--nx-700);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    overflow: hidden;
}

    .nx-avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ----- nx-field: CAMPO CON ICONA O PULSANTE (RICERCA, NUOVA CARTELLA, DOMANDA ALL'IA...)
         SI USA SU UN .input-group DI BOOTSTRAP ----- */
.nx .nx-field {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    margin: 0;
    padding: .2rem;
    background: var(--nx-100);
    border: 1px solid transparent;
    border-radius: var(--nx-radius);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .nx .nx-field:focus-within {
        background: var(--nx-white);
        border-color: var(--nx-black);
        box-shadow: 0 0 0 3px var(--nx-focus);
    }

    .nx .nx-field .form-control {
        flex: 1 1 0%;
        width: 1% !important;
        min-width: 0;
        min-height: 0;
        height: 2.5rem;
        margin: 0 !important;
        padding: 0 .6rem;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 1rem;
    }

    .nx .nx-field input[type="file"].form-control {
        height: auto;
        padding: .45rem .4rem;
        font-size: .85rem;
    }

    .nx .nx-field .input-group-prepend a,
    .nx .nx-field .input-group-append a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0 !important;
        border-radius: var(--nx-radius-sm);
        color: var(--nx-600);
        text-decoration: none;
    }

        .nx .nx-field .input-group-prepend a:hover,
        .nx .nx-field .input-group-append a:hover {
            background: var(--nx-200);
        }

    .nx .nx-field .input-group-text {
        height: 2.5rem;
        padding: 0 .95rem;
        border: 0;
        border-radius: var(--nx-radius-sm) !important;
        background: var(--nx-black);
        color: var(--nx-white);
        font-size: .85rem;
        font-weight: 600;
        cursor: pointer;
    }

        .nx .nx-field .input-group-text:hover {
            background: var(--nx-700);
        }

    .nx .nx-field span[id*="Validator"] {
        flex: 0 0 100%;
        order: 9;
        padding: .25rem .6rem .2rem;
    }

/* ----- nx-panel: RIQUADRO BIANCO CON BORDO ----- */
.nx-panel {
    margin-bottom: 1rem;
    padding: var(--nx-pad);
    background: var(--nx-white);
    border: 1px solid var(--nx-200);
    border-radius: var(--nx-radius);
}

.nx .row.nx-panel {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.nx .nx-panel .row > [class*="col"] {
    margin-bottom: .75rem;
}

/* DUE RIQUADRI AFFIANCATI DENTRO UNA .row */
.nx .row > .nx-panel {
    flex: 1 1 18rem;
    max-width: none;
    margin: 0 15px 1rem;
}

/* SE IL PRIMO ELEMENTO DEL RIQUADRO E' UN TESTO, E' IL SUO TITOLO */
.nx-panel > span:first-child {
    display: block;
    margin-bottom: .75rem;
    color: var(--nx-black);
    font-size: .95rem;
    font-weight: 700 !important;
}

/* RIGA "ETICHETTA + PULSANTE" SOPRA A UN CAMPO */
.nx-panel .d-flex {
    align-items: center;
    min-height: 2.25rem;
}

    .nx-panel .d-flex .nx-label {
        margin: 0;
    }

.nx-panel input[type="checkbox"] + label + .form-control {
    margin-top: .6rem;
}

/* STATI: SOSPESO / ELIMINATO (TONO DI GRIGIO + BORDO, MAI IL SOLO COLORE) */
.nx .nx-panel.nx-hold {
    border-left: 4px solid var(--nx-400);
    background: var(--nx-100);
}

.nx .nx-panel.nx-off {
    border-left: 4px solid var(--nx-black);
    background: var(--nx-200);
}

.nx-off .nx-title {
    color: var(--nx-600);
    text-decoration: line-through;
}

/* ----- nx-box: RIQUADRO GRIGIO INTERNO; SE HA UN'ALTEZZA, IL CONTENUTO SCORRE ----- */
.nx-box {
    margin: .5rem 0 .75rem;
    padding: .6rem .8rem;
    border: 1px solid var(--nx-200);
    border-radius: var(--nx-radius-sm);
    background: var(--nx-50);
    font-size: .9rem;
    line-height: 2;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

    .nx-box a {
        color: var(--nx-ink);
    }

/* ----- nx-item: RIGA "IMMAGINE + TESTO"
         <div class="nx-item"> [checkbox / img / nx-avatar] <div> titolo + nx-help </div> [azioni] </div>
         OPPURE SU UN LINK:  <a class="nx-item"> <img> <span>nome</span> </a> ----- */
.nx-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 2.75rem;
}

    .nx-item > * {
        flex: 0 0 auto;
        margin: 0 .6rem 0 0 !important;
    }

    .nx-item > img {
        height: auto;
    }

    .nx-item > div:first-of-type {
        flex: 1 1 auto !important;
        min-width: 0;
    }

    .nx-item > :last-child {
        margin-right: 0 !important;
    }

.nx .nx-item > div:first-of-type > a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--nx-black);
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .nx .nx-item > div:first-of-type > a:hover {
        text-decoration: underline;
    }

/* I PEZZI (<span>) DI UN TESTO SECONDARIO SONO SEPARATI DA UN PUNTINO */
.nx-help > span:empty {
    display: none;
}

.nx-help > span + span::before {
    content: "\00b7";
    margin: 0 .4rem;
}

.nx-item .nx-help {
    margin-top: .1rem;
    line-height: 1.4;
}

.nx a.nx-item {
    min-height: 0;
    color: var(--nx-black);
    text-decoration: none;
}

    .nx a.nx-item > img {
        float: none !important;
        width: 2.5rem !important;
        height: auto;
    }

    .nx a.nx-item > span {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 !important;
        overflow-wrap: anywhere;
    }

    .nx a.nx-item:hover > span {
        text-decoration: underline;
    }

.nx .nx-title a.nx-item > img {
    width: 2.75rem !important;
}

/* ----- nx-grid: ELENCO IN TABELLA (GridView) ----- */
.nx .nx-grid {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

    .nx .nx-grid th {
        padding: .5rem;
        border: 0;
        border-bottom: 1px solid var(--nx-200);
        color: var(--nx-500);
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .07em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
        vertical-align: middle;
    }

        .nx .nx-grid th.text-right {
            text-align: right;
        }

    .nx .nx-grid td {
        padding: .5rem;
        border: 0;
        border-bottom: 1px solid var(--nx-100);
        vertical-align: middle;
    }

        /* LE COLONNE DOPO LA PRIMA SONO INFORMAZIONI SECONDARIE */
        .nx .nx-grid td + td {
            color: var(--nx-600);
        }

    .nx .nx-grid > tbody > tr:hover > td {
        background: var(--nx-50);
    }

    /* IL LINK CON CUI COMINCIA LA PRIMA CELLA E' IL TITOLO DELLA RIGA */
    .nx .nx-grid td:first-child > a:first-child {
        color: var(--nx-black);
        font-weight: 600;
        text-decoration: none;
    }

        .nx .nx-grid td:first-child > a:first-child:hover {
            text-decoration: underline;
        }

    /* UN CAMPO DENTRO L'INTESTAZIONE (FILTRO) NON EREDITA IL MAIUSCOLETTO */
    .nx .nx-grid th .form-control {
        font-weight: 400;
        letter-spacing: normal;
        text-transform: none;
    }

    /* CON table-sm LE RIGHE SONO PIU' BASSE */
    .nx .nx-grid.table-sm td {
        padding-top: .35rem;
        padding-bottom: .35rem;
    }

    .nx .nx-grid tr.nx-hold > td {
        background: var(--nx-100);
    }

    .nx .nx-grid tr.nx-off > td {
        background: var(--nx-200);
        color: var(--nx-600);
    }

    .nx .nx-grid tr.nx-off .nx-item > div:first-of-type > a {
        color: var(--nx-600);
        text-decoration: line-through;
    }

/* ELENCO DOCUMENTI: LA SECONDA COLONNA E' IL MENU A TRE PUNTINI, STRETTA QUANTO IL PULSANTE */
.nx #gvDocs th:nth-child(2) {
    width: 1%;
}

.nx #gvDocs td:nth-child(2) {
    padding-left: 0;
    padding-right: .25rem;
}

/* ----- nx-empty: "NESSUN DATO" (RIGA VUOTA DI UNA GridView OPPURE RIQUADRO) ----- */
.nx-empty {
    padding: 3rem 1rem;
    border: 1px dashed var(--nx-300);
    border-radius: var(--nx-radius);
    background: var(--nx-50);
    text-align: center;
}

    .nx-empty h2 {
        margin: 0 0 1.25rem;
        color: var(--nx-700);
        font-size: 1.05rem;
        font-weight: 600;
    }

.nx .nx-grid tr.nx-empty > td {
    padding: 2.5rem 1rem;
    border-bottom: 0;
    background: transparent;
    color: var(--nx-500);
    text-align: center;
}

/* ----- nx-pager: PAGINAZIONE DELLE GridView (PagerStyle) ----- */
.nx .nx-grid tr.nx-pager > td {
    padding: .9rem 0 .25rem;
    border-bottom: 0;
    background: transparent !important;
}

/* LA TABELLINA DEI NUMERI DI PAGINA NON DEVE ALLARGARE L'ELENCO: SE NON CI STA, SCORRE */
.nx-pager table {
    display: block;
    width: 0;
    min-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

    .nx-pager table::-webkit-scrollbar {
        display: none;
    }

    .nx-pager table tbody {
        display: block;
    }

    .nx-pager table tr {
        display: flex;
        width: -webkit-max-content;
        width: max-content;
        margin: 0 auto;
    }

.nx .nx-grid .nx-pager td td {
    padding: 0 .15rem;
    border: 0;
}

.nx .nx-pager td a,
.nx .nx-pager td span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .5rem;
    border-radius: var(--nx-radius-sm);
    color: var(--nx-ink);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

    .nx .nx-pager td a:hover {
        background: var(--nx-100);
    }

.nx .nx-pager td span {
    background: var(--nx-black);
    color: var(--nx-white);
}

/* ----- nx-meta: ELENCO ETICHETTA A SINISTRA / VALORE A DESTRA
         <div class="nx-meta"> <div> <span>etichetta</span> <div>valore</div> </div> ... </div> ----- */
.nx-meta {
    margin: 0 0 1rem;
    border: 1px solid var(--nx-200);
    border-radius: var(--nx-radius);
    background: var(--nx-white);
    font-size: .9rem;
}

    .nx-meta > div {
        display: flex;
        justify-content: space-between;
        padding: .65rem .9rem;
        border-bottom: 1px solid var(--nx-100);
    }

        .nx-meta > div:last-child {
            border-bottom: 0;
        }

        .nx-meta > div > :first-child {
            flex: 0 0 auto;
            margin-right: 1rem;
            padding-top: .15rem;
        }

        .nx-meta > div > div {
            min-width: 0;
            color: var(--nx-black);
            font-weight: 500;
            text-align: right;
            overflow-wrap: anywhere;
        }

            .nx-meta > div > div small {
                display: block;
                color: var(--nx-500);
                font-size: .8rem;
                font-weight: 400;
            }

            .nx-meta > div > div span,
            .nx-meta > div > div a {
                font-weight: inherit !important;
            }

/* ----- nx-kpis: VALORI IN EVIDENZA + GRAFICO ACCANTO
         <div class="nx-kpis"> <div> <span>etichetta</span> <span>valore</span> </div> ... </div>
         <div> grafico </div>          (IL RIQUADRO SUBITO DOPO nx-kpis E' IL GRAFICO) ----- */
.nx-kpis {
    display: flex;
    margin: 0 -.35rem .7rem;
}

    .nx-kpis > div {
        flex: 1 1 0%;
        min-width: 0;
        margin: 0 .35rem;
        padding: .85rem 1rem;
        border: 1px solid var(--nx-200);
        border-radius: var(--nx-radius);
        background: var(--nx-white);
    }

        .nx-kpis > div > span:last-child {
            display: block;
            margin-top: .2rem;
            color: var(--nx-black);
            font-size: 1.6rem;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -.02em;
            font-variant-numeric: tabular-nums;
        }

        /* RIQUADRI NERI: BASTA AGGIUNGERE bg-dark */
        .nx-kpis > div.bg-dark {
            border-color: var(--nx-black);
        }

            .nx-kpis > div.bg-dark > span:first-child {
                color: var(--nx-400);
            }

            .nx-kpis > div.bg-dark > span:last-child {
                color: var(--nx-white);
            }

    .nx-kpis + div {
        padding: .5rem;
        border: 1px solid var(--nx-200);
        border-radius: var(--nx-radius);
        background: var(--nx-white);
        text-align: center;
        overflow: hidden;
    }

        .nx-kpis + div img {
            max-width: 100%;
            height: auto !important;
        }

/* ----- nx-tile: VISTA A ICONE
         <div class="nx-tile"> <div> <div> <a> <img> <span>titolo</span> </a> </div> </div> </div> ----- */
.nx-tile {
    height: 100%;
}

    .nx-tile > div {
        height: 100%;
        background: var(--nx-white);
        border: 1px solid var(--nx-200);
        border-radius: var(--nx-radius);
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .nx-tile > div:hover {
            border-color: var(--nx-black);
            box-shadow: var(--nx-shadow);
        }

        .nx-tile > div > div {
            padding: 1rem .6rem;
            text-align: center;
        }

    .nx .nx-tile a {
        display: block;
        color: var(--nx-ink);
        text-decoration: none;
    }

    .nx-tile span {
        display: block;
        margin-top: .5rem;
        font-size: .8rem;
        font-weight: 500;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

/* ----- nx-toolbar: BARRA NERA DELLE AZIONI
         <nav class="nx-toolbar"> <div> <ul> <li><a>...</a> [menu] </li> ... </ul> <ul> ... </ul> </div> </nav>
         IL PRIMO <ul> SONO LE AZIONI, IL SECONDO (A DESTRA) ORDINAMENTO E VISTA ----- */
.nx-toolbar {
    padding: .35rem;
    background: var(--nx-black);
    border-radius: var(--nx-radius);
    color: var(--nx-white);
}

    .nx-toolbar > div {
        display: flex;
        align-items: center;
    }

    .nx-toolbar ul {
        display: flex;
        align-items: center;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        /* SU TELEFONO I PULSANTI STANNO SU UNA RIGA CHE SCORRE COL DITO */
        .nx-toolbar ul:first-child {
            flex: 1 1 auto;
            overflow-x: auto;
            scrollbar-width: none;
        }

            .nx-toolbar ul:first-child::-webkit-scrollbar {
                display: none;
            }

        .nx-toolbar ul + ul {
            flex: 0 0 auto;
            margin-left: .35rem;
            padding-left: .35rem;
            border-left: 1px solid var(--nx-glass-line);
        }

    .nx-toolbar li {
        flex: 0 0 auto;
        margin: 0 .1rem;
    }

.nx .nx-toolbar li > a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .4rem .8rem;
    border-radius: var(--nx-radius-sm);
    color: var(--nx-200);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

    .nx .nx-toolbar li > a .bi,
    .nx .nx-toolbar li > a span {
        color: inherit !important;
    }

    .nx .nx-toolbar li > a .bi {
        margin-right: .5rem;
        font-size: 1rem;
    }

        .nx .nx-toolbar li > a .bi:only-child {
            margin-right: 0;
        }

    .nx .nx-toolbar li > a:hover,
    .nx .nx-toolbar li > a:focus {
        background: var(--nx-glass);
        color: var(--nx-white);
        text-decoration: none;
    }

    .nx .nx-toolbar li > a.dropdown-toggle::after {
        display: none;
    }

    /* L'ICONA PNG DEL CAMBIO VISTA STA SU UN RIQUADRO BIANCO, COSI' SI LEGGE SUL NERO */
    .nx .nx-toolbar li > a img {
        width: 1.75rem !important;
        height: 1.75rem;
        padding: .2rem;
        border-radius: 6px;
        background: var(--nx-white);
        object-fit: contain;
    }

.nx .nx-toolbar li.show > a {
    background: var(--nx-white);
    color: var(--nx-black);
}

/* ----- nx-topbar: INTESTAZIONE DI PAGINA (PANNELLO DENTRO cpTopHeader)
         GLI ELEMENTI VANNO A CAPO DA SOLI; .w-100 FORZA UNA NUOVA RIGA.
         UN .collapse FIGLIO DIRETTO E' IL PANNELLO DEI FILTRI ----- */
.nx-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .6rem;
    margin: 0;
    padding: .65rem var(--nx-pad);
    background: var(--nx-white);
    border-bottom: 1px solid var(--nx-200);
}

    .nx-topbar > * {
        max-width: 100%;
    }

    .nx-topbar > .nx-title,
    .nx-topbar > .nx-item {
        flex: 1 1 100%;
        min-width: 0;
    }

    .nx-topbar > .nx-field {
        flex: 1 1 12rem;
    }

    /* IL PANNELLO DEI FILTRI OCCUPA TUTTA LA LARGHEZZA, SOTTO ALLA BARRA */
    .nx-topbar > .collapse,
    .nx-topbar > .collapsing {
        flex: 0 0 100%;
        margin: 0 calc(var(--nx-pad) * -1) -.65rem;
        max-width: none;
        border-top: 1px solid var(--nx-200);
        background: var(--nx-50);
    }

        .nx-topbar > .collapse > div,
        .nx-topbar > .collapsing > div {
            padding: var(--nx-pad) var(--nx-pad) 0;
        }

/* GRUPPO DI PULSANTI (CLASSE btn-toolbar DI BOOTSTRAP): STESSO PASSO DELLA BARRA */
.nx .btn-toolbar {
    gap: .5rem .6rem;
}

/* ETICHETTE DI STATO SCRITTE NELLA PAGINA: SI VEDONO SOLO SE LA BARRA HA QUELLO STATO */
.nx-badge.nx-hold,
.nx-badge.nx-off {
    display: none;
}

.nx-hold .nx-badge.nx-hold,
.nx-off .nx-badge.nx-off {
    display: inline-block;
}

/* ----- nx-seg: SELETTORE A SEGMENTI FATTO CON RadioButton (SENZA CssClass NE' ToolTip,
         COSI' ASP.NET RENDE SOLO <input> + <label> AFFIANCATI) ----- */
.nx .nx-seg {
    display: flex;
    border: 1px solid var(--nx-300);
    border-radius: var(--nx-radius-sm);
    background: var(--nx-white);
    overflow: hidden;
}

    .nx .nx-seg input[type="radio"] {
        position: absolute;
        width: 0;
        height: 0;
        margin: 0;
        opacity: 0;
        pointer-events: none;
    }

    .nx .nx-seg input[type="radio"] + label {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        min-height: 2.5rem;
        padding: .25rem 1rem;
        border-left: 1px solid var(--nx-300);
        color: var(--nx-ink);
        font-size: .875rem;
        font-weight: 600;
        user-select: none;
    }

    .nx .nx-seg label:first-of-type {
        border-left: 0;
    }

    .nx .nx-seg label:hover {
        background: var(--nx-100);
    }

    .nx .nx-seg input[type="radio"]:checked + label {
        background: var(--nx-black);
        color: var(--nx-white);
    }

    .nx .nx-seg input[type="radio"]:focus + label {
        box-shadow: inset 0 0 0 3px var(--nx-focus);
    }

/* =====================================================================================
   3. PEZZI UNICI DEGLI USER CONTROL, AGGANCIATI ALL'ID CHE HANNO GIA'
   ===================================================================================== */

/* PERCORSO (BREADCRUMB) DI ucMultidoc2_X */
#divBarraBreadCrum {
    padding: .85rem .15rem .6rem;
    color: var(--nx-400);
    font-size: .85rem;
    line-height: 1.6;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

    #divBarraBreadCrum::-webkit-scrollbar {
        display: none;
    }

    #divBarraBreadCrum a {
        padding: .2rem .1rem;
        color: var(--nx-600) !important;
        font-weight: 500;
        text-decoration: none !important;
    }

        #divBarraBreadCrum a:hover {
            color: var(--nx-black) !important;
            text-decoration: underline !important;
        }

    #divBarraBreadCrum b {
        color: var(--nx-black);
        font-weight: 700;
    }

/* PULSANTE "STORICO" ACCANTO ALLA RICERCA DI ucMultidoc2_X: SU TELEFONO VA A CAPO */
#liStorico {
    flex: 1 1 100%;
}

.nx #liStorico .btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: .3rem .85rem;
    border: 1px solid var(--nx-200);
    border-radius: 999px;
    background: var(--nx-white);
    color: var(--nx-700);
    font-size: .8125rem;
    font-weight: 500;
}

    .nx #liStorico .btn:hover {
        border-color: var(--nx-black);
        color: var(--nx-black);
    }

/* ICONA "STORICO" SPENTA = GRIGIA; QUANDO IL CODICE LE CAMBIA COLORE DIVENTA NERA */
.nx #liStorico .bi.text-dark {
    color: var(--nx-400) !important;
}

/* SCHEDA "FILE" DI ucDocEdit_X: SPAZI TRA I BLOCCHI DEI DUE RIQUADRI */
#tabDocAll .nx-panel > .row,
#tabDocAll .nx-panel > .form-inline,
#tabDocAll .nx-panel > .nx-box {
    margin-top: .9rem;
}

    #tabDocAll .nx-panel > .row:first-child {
        margin-top: 0;
    }

#tabDocAll .nx-panel br {
    display: none;
}

#tabDocAll .nx-panel > div[id] {
    margin-top: 1.25rem;
}

    #tabDocAll .nx-panel > div[id] > span:first-of-type {
        display: block;
        margin-bottom: .5rem;
        color: var(--nx-black);
        font-weight: 700;
    }

/* PULSANTI SALVA / PUBBLICA / CHIUDI DI ucDocEdit_X; DENTRO UNA FINESTRA MODALE RESTANO
   IN VISTA MENTRE SI SCORRE IL MODULO */
.nx [id$="divPublish"] {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 .75rem;
    padding: .5rem 0;
    background: var(--nx-white);
    border-bottom: 1px solid var(--nx-200);
}

    .nx [id$="divPublish"] > .btn {
        flex: 1 1 auto;
        margin: .15rem;
        white-space: normal;
    }

.modal-body [id$="divPublish"] {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 5;
    margin-left: calc(var(--nx-pad) * -1);
    margin-right: calc(var(--nx-pad) * -1);
    padding-left: calc(var(--nx-pad) - .15rem);
    padding-right: calc(var(--nx-pad) - .15rem);
}

/* PROMEMORIA, INVIO PROGRAMMATO E ANTEPRIMA DELLA MAIL DI ucDocEdit_X */
.nx [id$="divREMINDER"],
.nx [id$="divSCHEDULEDSEND"] {
    margin-top: 1rem;
}

    .nx [id$="divSCHEDULEDSEND"] > br {
        display: none;
    }

.nx #divAnteprimaMail .p-5 {
    margin-top: .75rem;
    padding: 1rem !important;
    border: 1px solid var(--nx-200);
    border-radius: var(--nx-radius-sm);
    background: var(--nx-white);
}

/* SCHEDA DOCUMENTO: I PANNELLI CHE SI APRONO (ANTEPRIMA, ALLEGATI) LASCIANO SPAZIO SOTTO */
.nx #divFramePdf.show,
.nx #divFramePdf.collapsing,
.nx [id$="divLinkAbs"].show,
.nx [id$="divLinkAbs"].collapsing {
    margin-bottom: 1rem;
}

/* =====================================================================================
   4. CALENDARIO DELLE SALE (HTML SCRITTO DA roombooking.aspx.cs)
      I COLORI DELLE SALE ARRIVANO DAL CODICE COME STILE IN LINEA SULLE CELLE OCCUPATE.
      CELLA OCCUPATA = <td title="...">   -   CELLA LIBERA = <td> CON UN LINK A editevent.aspx
   ===================================================================================== */
.nx .nx-cal {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--nx-ink);
    font-size: .8125rem;
}

    .nx .nx-cal td {
        padding: 0;
    }

    .nx .nx-cal a {
        display: block;
        color: var(--nx-ink);
        text-decoration: none;
    }

        .nx .nx-cal a[href^="editevent"]:hover {
            background: var(--nx-200);
        }

    .nx .nx-cal td[title] > a > div {
        padding: 0 .25rem;
        color: var(--nx-black);
        font-size: .6875rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nx .nx-cal td.nx-off {
        background: var(--nx-200);
    }

    /* OGGI: INTESTAZIONE INVERTITA CON BARRA NERA SOTTO */
    .nx .nx-cal td.nx-today,
    .nx .nx-cal tr.nx-today > td {
        background: var(--nx-white) !important;
        color: var(--nx-black) !important;
        font-weight: 700;
        box-shadow: inset 0 -4px 0 var(--nx-black);
    }

/* ---------- VISTA SETTIMANALE: UNA TABELLA PER LE ORE E UNA PER GIORNO, AFFIANCATE ---------- */
.nx .nx-cal--week {
    min-width: 44rem;
    table-layout: fixed;
}

    .nx .nx-cal--week > tbody > tr > td {
        vertical-align: top;
    }

        /* COLONNA DELLE ORE: RESTA FERMA MENTRE I GIORNI SCORRONO */
        .nx .nx-cal--week > tbody > tr > td:first-child {
            position: sticky;
            left: 0;
            z-index: 2;
            width: 3.5rem;
            background: var(--nx-white);
            color: var(--nx-500);
            font-size: .75rem;
        }

        .nx .nx-cal--week > tbody > tr > td > table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }

            /* STESSA ALTEZZA DI RIGA NELLA COLONNA DELLE ORE E NELLE COLONNE DEI GIORNI */
            .nx .nx-cal--week > tbody > tr > td > table > tbody > tr {
                height: 2.25rem;
            }

                .nx .nx-cal--week > tbody > tr > td > table > tbody > tr > td {
                    border-bottom: 1px solid var(--nx-200);
                    border-right: 1px solid var(--nx-300);
                    text-align: center;
                    vertical-align: middle;
                }

                /* LA RIGA TRA L'ORA PIENA E LA MEZZ'ORA E' PUNTEGGIATA */
                .nx .nx-cal--week > tbody > tr > td > table > tbody > tr:nth-child(even) > td {
                    border-bottom-style: dotted;
                }

                .nx .nx-cal--week > tbody > tr > td > table > tbody > tr:first-child > td {
                    border-bottom-color: var(--nx-black);
                    border-right-color: var(--nx-700);
                    background: var(--nx-black);
                    color: var(--nx-white);
                    font-size: .875rem;
                    font-weight: 600;
                }

    .nx .nx-cal--week small {
        font-size: .6875rem;
        font-weight: 400;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    /* DENTRO OGNI MEZZ'ORA: UNA CELLA PER SALA */
    .nx .nx-cal--week td td table {
        width: 100%;
        height: calc(2.25rem - 1px);
        border-collapse: collapse;
        table-layout: fixed;
    }

    .nx .nx-cal--week td td td {
        height: calc(2.25rem - 1px);
        vertical-align: middle;
    }

        .nx .nx-cal--week td td td + td {
            border-left: 1px solid var(--nx-200);
        }

    .nx .nx-cal--week td td td a {
        height: calc(2.25rem - 1px);
        line-height: calc(2.25rem - 1px);
    }

/* ---------- VISTA MENSILE: UNA COLONNA PER GIORNO (SU TELEFONO SCORRE IN ORIZZONTALE) ---------- */
.nx .nx-cal--month td {
    min-width: 2.375rem;
    height: 2.25rem;
    border-bottom: 1px solid var(--nx-200);
    border-right: 1px solid var(--nx-200);
    text-align: center;
    vertical-align: middle;
}

    .nx .nx-cal--month td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        width: 3.5rem;
        min-width: 3.5rem;
        border-right-color: var(--nx-300);
        background: var(--nx-white);
        color: var(--nx-500);
        font-size: .75rem;
    }

.nx .nx-cal--month tr.bg-light > td:first-child {
    background: var(--nx-100);
}

.nx .nx-cal--month tr:first-child > td {
    padding: .3rem 0;
    border-right-color: var(--nx-700);
    background: var(--nx-black);
    color: var(--nx-white);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.15;
}

.nx .nx-cal--month small {
    font-size: .625rem;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nx .nx-cal--month a[href^="editevent"] {
    height: 2.25rem;
}

.nx .nx-cal--month a[href^="default"] {
    display: inline;
}

.nx .nx-cal img {
    width: auto;
    vertical-align: middle;
}

.nx .nx-cal tr:first-child img {
    height: 1.375rem;
}

/* ---------- VISTA GIORNALIERA: UNA RIGA PER SALA, UNA COLONNA PER MEZZ'ORA ---------- */
.nx .nx-cal--day {
    white-space: nowrap;
}

    .nx .nx-cal--day td {
        min-width: 3.5rem;
        height: 2.5rem;
        border-bottom: 1px solid var(--nx-200);
        border-right: 1px solid var(--nx-200);
        text-align: center;
        vertical-align: middle;
    }

    .nx .nx-cal--day a {
        height: 2.5rem;
    }

    /* PRIMA COLONNA: NOME DELLA SALA, RESTA FERMA */
    .nx .nx-cal--day td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        min-width: 7.5rem;
        max-width: 42vw;
        padding: 0 .75rem;
        border-right-color: var(--nx-300);
        background: var(--nx-white);
        font-weight: 600;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* LE PRIME DUE RIGHE SONO L'INTESTAZIONE: GIORNO E ORARI */
    .nx .nx-cal--day tr:nth-child(-n+2) > td {
        border-color: var(--nx-700);
        background: var(--nx-black);
        color: var(--nx-white);
        font-weight: 600;
    }

    .nx .nx-cal--day tr:nth-child(2) > td {
        font-size: .75rem;
        font-weight: 400;
    }

    .nx .nx-cal--day td[colspan] {
        padding: 0 .75rem;
        font-size: .9375rem;
        text-align: left;
    }

/* =====================================================================================
   5. SOLO TELEFONO
   ===================================================================================== */
@media (max-width: 575.98px) {
    /* I MENU A TENDINA SI APRONO COME PANNELLO DAL BASSO */
    .nx .dropdown-menu.show {
        position: fixed !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 1060;
        float: none;
        width: auto !important;
        max-width: none;
        max-height: 75vh;
        margin: 0;
        padding: .6rem .75rem 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 16px 16px 0 0;
        /* L'OMBRA ENORME FA DA SFONDO SCURO DIETRO AL PANNELLO */
        box-shadow: 0 0 0 100vmax var(--nx-veil);
        font-size: 1rem;
        overflow-y: auto;
        transform: none !important;
    }

        .nx .dropdown-menu.show::before {
            content: "";
            display: block;
            width: 2.25rem;
            height: .25rem;
            margin: 0 auto .6rem;
            border-radius: 2px;
            background: var(--nx-300);
        }

        .nx .dropdown-menu.show > div {
            width: auto !important;
        }

    .nx .dropdown-item,
    .nx .dropdown-menu .btn {
        min-height: 2.9rem;
    }

    /* LOG DEGLI ACCESSI: OGNI RIGA DIVENTA UN BLOCCO (UTENTE, DOCUMENTO, DATA UNO SOTTO L'ALTRO) */
    .nx .table-responsive .table,
    .nx .table-responsive .table tbody,
    .nx .table-responsive .table tr,
    .nx .table-responsive .table td {
        display: block;
    }

        .nx .table-responsive .table th {
            display: none;
        }

        .nx .table-responsive .table td {
            padding: .1rem 0;
            border: 0;
            white-space: normal !important;
        }

            .nx .table-responsive .table td:first-child {
                padding-top: .6rem;
            }

            .nx .table-responsive .table td:last-child {
                padding-bottom: .6rem;
                border-bottom: 1px solid var(--nx-100);
            }
}

/* ----- nx-grid--cards: SOTTO I 768px OGNI RIGA DIVENTA UNA SCHEDA
         LA 1a CELLA E' IL TITOLO (DI SOLITO UN nx-item); OGNI CELLA SUCCESSIVA CONTIENE UN <div>
         CHE DIVENTA UN BLOCCO SEPARATO DA UNA RIGA (CELLA VUOTA = NESSUN BLOCCO).
         LA RIGA DI INTESTAZIONE SI NASCONDE CON  HeaderStyle CssClass="d-none d-md-table-row" ----- */
@media (max-width: 767.98px) {
    .nx .nx-grid--cards,
    .nx .nx-grid--cards > tbody,
    .nx .nx-grid--cards > tbody > tr,
    .nx .nx-grid--cards > tbody > tr > td {
        display: block;
    }

        .nx .nx-grid--cards > tbody > tr {
            margin-bottom: .75rem;
            padding: var(--nx-pad);
            border: 1px solid var(--nx-200);
            border-radius: var(--nx-radius);
            background: var(--nx-white);
        }

        .nx .nx-grid--cards > tbody > tr.nx-hold {
            border-left: 4px solid var(--nx-400);
            background: var(--nx-100);
        }

        .nx .nx-grid--cards > tbody > tr.nx-off {
            border-left: 4px solid var(--nx-black);
            background: var(--nx-200);
        }

        .nx .nx-grid--cards > tbody > tr.nx-pager,
        .nx .nx-grid--cards > tbody > tr.nx-empty {
            margin: 0;
            padding: 0;
            border: 0;
            background: transparent;
        }

        .nx .nx-grid--cards > tbody > tr > td {
            padding: 0;
            border: 0;
            background: transparent !important;
        }

        .nx .nx-grid--cards > tbody > tr > td + td > div {
            margin-top: .75rem;
            padding-top: .75rem;
            border-top: 1px solid var(--nx-200);
        }
}

/* =====================================================================================
   6. DA TABLET IN SU
   ===================================================================================== */
@media (min-width: 576px) {
    .nx {
        --nx-pad: 1.1rem;
    }

    /* LA BARRA NERA NON SCORRE PIU': I PULSANTI VANNO A CAPO E I MENU SI APRONO SOTTO */
    .nx-toolbar > div {
        align-items: flex-start;
    }

    .nx-toolbar ul {
        flex-wrap: wrap;
    }

        .nx-toolbar ul:first-child {
            overflow: visible;
        }

    #divBarraBreadCrum {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #liStorico {
        flex: 0 0 auto;
    }

    .nx .modal-dialog,
    .nx .modal-dialog:not(.modal-xl) {
        height: auto;
        max-width: 540px;
        max-height: calc(100% - 3.5rem);
        margin: 1.75rem auto;
    }

        .nx .modal-dialog.modal-xl {
            max-width: calc(100% - 2rem);
        }

    .nx .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }

    .nx .modal-content {
        height: auto;
        border-radius: 14px !important;
    }

    .nx .modal-header {
        border-radius: 14px 14px 0 0;
    }

    .nx .modal-footer {
        border-radius: 0 0 14px 14px;
    }

        .nx .modal-footer .btn {
            flex: 0 0 auto;
        }

    .nx [id$="divPublish"] {
        justify-content: flex-end;
    }

        .nx [id$="divPublish"] > .btn {
            flex: 0 0 auto;
        }

    .nx-kpis {
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .nx .form-control {
        min-height: 2.5rem;
        font-size: .9rem;
    }

    .nx .nx-field .form-control {
        font-size: .9rem;
    }

    .nx .nx-title {
        font-size: 1.35rem;
    }

        .nx .nx-title a.nx-item > img {
            width: 3.25rem !important;
        }

    /* INTESTAZIONE DI PAGINA: IL NOME DELLA SCHEDA E LE AZIONI STANNO SULLA STESSA RIGA */
    .nx-topbar > .nx-item {
        flex: 1 1 0;
    }

    /* IL CAMPO DI RICERCA DELLA BARRA NON SI ALLARGA A DISMISURA */
    .nx-topbar > .nx-field {
        max-width: 26rem;
    }

    /* EFFICACIA: VALORI A SINISTRA, GRAFICO A DESTRA */
    .nx-kpis {
        flex: 0 0 13rem;
        flex-direction: column;
        margin: 0 1rem 0 0;
    }

        .nx-kpis > div {
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin: 0 0 .7rem;
        }

            .nx-kpis > div:last-child {
                margin-bottom: 0;
            }

        .nx-kpis + div {
            flex: 1 1 auto;
            min-width: 0;
        }
}

@media (min-width: 992px) {
    .nx .modal-dialog.modal-xl {
        max-width: 900px;
    }

    .nx .nx-item > div:first-of-type > a {
        -webkit-line-clamp: 1;
    }

    /* INTESTAZIONE DI PAGINA SU UNA SOLA RIGA: TITOLO, RICERCA, FILTRI, AZIONI */
    .nx-topbar > .nx-title {
        flex: 0 0 auto;
    }

    .nx-topbar > .nx-field {
        flex: 1 1 auto;
    }
}

@media (min-width: 1200px) {
    .nx .modal-dialog.modal-xl {
        max-width: 1140px;
    }
}

/* =====================================================================================
   7. MASTER PAGE LATERALE (_newtLateral.master)
      IL MENU LATERALE TIENE LE CLASSI DI newt5.css (sidebar, menu-item, item-text, submenu)
      PERCHE' LE SCRIVE IL CODICE CHE GENERA IL MENU: QUI CI SONO SOLO I RITOCCHI, AGGANCIATI
      AGLI ID #sidebar E #hamburger
   ===================================================================================== */

/* ALTEZZA REALE DELLO SCHERMO ANCHE QUANDO IL TELEFONO MOSTRA LA BARRA DEGLI INDIRIZZI */
#sidebar {
    height: 100dvh;
}

/* TELEFONO: IL MENU A TUTTO SCHERMO PASSA SOPRA ALL'INTESTAZIONE E SI CHIUDE CON LA SUA X */
@media (max-width: 767.98px) {
    #sidebar {
        z-index: 9500;
        padding-top: .5rem;
        overflow-y: auto;
    }
}

/* DA TABLET IN SU IL MENU E' UNA COLONNA DI ICONE: SI ALLARGA AL PASSAGGIO DEL MOUSE (newt5.css)
   OPPURE, SUGLI SCHERMI A TOCCO, COL PULSANTE DELLA BARRA (CLASSE open MESSA DALLO SCRIPT) */
@media (min-width: 768px) {
    #sidebar.open {
        width: 340px;
    }

        #sidebar.open .item-text {
            display: revert;
        }
}

@media (min-width: 768px) and (hover: none) {
    #hamburger {
        display: inline-flex !important;
    }
}

/* SCHERMO GRANDE: LA BARRA DELLA PAGINA (cpTopHeader) RESTA IN VISTA SOTTO ALLA BARRA DEL PORTALE,
   CHE IN newt5.css E' ALTA 60px; SU TELEFONO SCORRE CON LA PAGINA */
@media (min-width: 768px) {
    #divTopHeader {
        position: -webkit-sticky;
        position: sticky;
        top: 60px;
        z-index: 999;
    }
}
