/* =====================================================================================
   PORTALE iOpen - FOGLIO DI STILE UNICO
   Tutte le pagine caricano solo questo file (più lo script dei comportamenti):
       <link href="~/portale.css" rel="stylesheet"/>
       <script src="~/js/portale-ui.js" defer></script>

   Come è organizzato:
     0. variabili (colori, raggi, caratteri) e regole di base degli elementi: pulsanti, campi, menu a tendina,
        tabelle, pannelli. Hanno specificità zero (:where), quindi qualsiasi regola più specifica le può cambiare;
        fanno eccezione i caratteri delle tabelle (19/17/15px), fissi per regola
     1. base e pagine del portale: le regole storiche, ripulite (solo quelle che hanno effetto)
     2. componenti comuni: layout a due colonne, pannelli, ricerca in diretta, animazioni
     3. pagine con stile proprio (app, RC/WG, login dell'app) e piccole varianti

   Classi da usare nelle pagine nuove:
     .layout-due-colonne  contenitore (dentro #form1) con due colonne affiancate a destra del menu
     .colonna             ciascuna delle due colonne: scorre per conto suo
     .pannello-centrato   pannello che si apre centrato nell'area a destra del menu
                          (va sul riquadro visibile: se il pannello ha un div interno .pannel /
                          .cont-pannels con la cornice, va su quello)
     .pannello-titolo     titolo del pannello
     .ui-ricerca-riga + input.ui-ricerca   campo di ricerca in diretta sopra una tabella (vedi sotto)
     .ui-modulo + .ui-campo-riga + .ui-etichetta   moduli con etichette e campi allineati in colonna
     body.pagina-indipendente   pagina con grafica propria (App, App_login, RC/WG, Changelog): la base comune e le regole
                                storiche generiche (*, body, input, .logo...) non la toccano
     body.pagina-telefono       pagine app_* aperte dall'app sul telefono: non ricevono la base comune
     body.spunte-piccole / .spunte-medie / .spunte-grandi   caselle di spunta ingrandite
   Comportamenti dello script (attributi data-, vedi js/portale-ui.js):
     data-mantieni-scroll, data-invio, data-filtra-tabella, data-evidenzia-riga

   REGOLA: ogni tabella (GridView) del portale ha la ricerca in diretta come All_utenti:
     - un campo di testo sopra la tabella, allineato al suo bordo sinistro, 12px sopra di essa,
       con lo stile normale dei campi del portale e un suggerimento (es. "Cerca per nome o ID")
     - filtra nel browser mentre si scrive (nessuna query, nessun pulsante "Cerca", Invio non invia):
         data-filtra-tabella="id_tabella" data-filtra-colonne="..." data-filtra-vuoto="Nessun ... trovato" data-invio=""
     - se il codice della pagina usa già quel campo per filtrare lato server, aggiungere data-filtra-solo-browser
     - tabelle con caselle di spunta: il filtro nasconde le righe senza toglierle, quindi si possono spuntare
       righe di ricerche diverse (cerca Mario e spunta, cerca Luca e spunta) e la conferma vale per tutte.
       Per questo la ricerca non deve mai ricaricare la tabella dal server (niente pulsante "Cerca")
   ===================================================================================== */


/* =====================================================================================
0. VARIABILI E BASE COMUNE
Le regole di base hanno specificità zero (:where): sono l'aspetto standard di ogni elemento
del portale e qualsiasi regola di pagina le può cambiare. Le pagine con grafica propria
(body.pagina-indipendente) e quelle da telefono (body.pagina-telefono) non le ricevono.
===================================================================================== */
:root {
    --iopen-blu: #0277bd;
    --iopen-blu-scuro: #055a92;
    --iopen-grigio-menu: #6c6c6f;
    --iopen-intestazione: #455a64;
    --iopen-bordo-campo: #d6d6d6;
    --iopen-raggio: 10px;
    --iopen-carattere: 'Roboto', sans-serif;
}

/* pulsanti: blu iOpen con testo bianco; al passaggio del mouse si "svuotano" */
:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(input[type="submit"], input[type="button"], button) {
    background-color: var(--iopen-blu);
    color: #ffffff;
    border: 1px solid var(--iopen-blu);
    border-radius: var(--iopen-raggio);
    font-family: var(--iopen-carattere);
    font-size: 15px;
    padding: 3px 8px;
    cursor: pointer;
}

:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(input[type="submit"], input[type="button"], button):hover {
    background-color: transparent;
    color: var(--iopen-blu);
}

/* campi di testo */
:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="date"], input[type="time"], input:not([type]), textarea) {
    background-color: #ffffff;
    border-radius: var(--iopen-raggio);
    font-family: var(--iopen-carattere);
}

/* menu a tendina */
:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(select) {
    border: 1px solid var(--iopen-grigio-menu);
    border-radius: var(--iopen-raggio);
    height: 30px;
    padding: 5px 10px;
    font-family: var(--iopen-carattere);
    font-size: 13px;
    box-sizing: border-box;
}

/* tabelle: intestazione grigio-blu, celle con riga di separazione.
Caratteri fissi per tutte le tabelle del portale (regola decisa): intestazioni 19px, celle 17px,
comandi nelle celle (Seleziona, Elimina, Aggiungi...) 15px */
:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(table th) {
    background-color: var(--iopen-intestazione);
    color: #ffffff;
    font-size: 19px !important;
    font-weight: 100;
    height: 48px;
}

:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(table th:first-child) {
    border-top-left-radius: var(--iopen-raggio);
}

:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(table th:last-child) {
    border-top-right-radius: var(--iopen-raggio);
}

:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(table td) {
    font-size: 17px !important;
    height: 48px;
    border-bottom: 2px solid var(--iopen-blu);
}

:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(table td a) {
    color: var(--iopen-blu);
    border: 1px solid var(--iopen-blu);
    border-radius: 4px;
    display: inline-block;
    padding: 3px 6px;
    text-decoration: none;
}

:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(table td a):hover {
    background-color: var(--iopen-blu);
    color: #ffffff;
}

:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(table td a, table td input[type="submit"], table td input[type="button"]) {
    font-size: 15px !important;
}

/* pannelli (finestre che si aprono sopra la pagina): fondo grigio chiaro, angoli arrotondati, ombra */
:where(body:not(.pagina-indipendente, .pagina-telefono)) :where(.pannello-centrato) {
    background-color: #f5f5f5;
    border-radius: var(--iopen-raggio);
    box-shadow: 0px 0px 10px #333;
}


/* =====================================================================================
1. BASE E PAGINE DEL PORTALE
===================================================================================== */
:where(body:not(.pagina-indipendente)), :where(body:not(.pagina-indipendente)) * {
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
}

:where(body:not(.pagina-indipendente)) input {
    text-align: center;
    border: 1px solid #ccc !important;
}

body:where(:not(.pagina-indipendente)) {
    position: relative;
}

:where(body:not(.pagina-indipendente)) .center {
    display: inline-block;
    margin-left: 45%;
}

.space {
    margin-bottom: 3% !important;
    position: fixed;
    bottom: -17px;
    left: 5%;
    z-index: 999;
}

.tabella {
    margin-left: 20%;
    width: 80%;
    flex-direction: column;
    overflow-x: hidden;
}

.small-width {
    width: 100% !important;
}

:where(body:not(.pagina-indipendente)) input[type="checkbox"] {
    width: 20px !important;
    height: 1.8vh !important;
}

/*-----------------------------SCHERMATA LOGIN------------------------------*/
:where(body:not(.pagina-indipendente)) .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3vh;
}

#lb_versione {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

#lb_tipo {
    display: inline-block;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 30px;
}

#lb_licenze {
    display: inline-block;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 18px;
}

.modulo, .tabella, .tab-small {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

:where(body:not(.pagina-indipendente)) #form1 {
    width: 300px;
}

.modulo #form1 span#lb_error {
    display: inline-block;
    padding: 3px 6px;
    width: 103%;
}

.modulo #form1 {
    position: relative;
    margin-top: 100px;
}

#tb_id, #tb_password, #tb_mfa {
    display: block;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #d6d6d6 !important;
    height: 30px;
    margin-top: -15px;
    padding: 0 5px;
}

#tb_mfa {
    margin-top: 20px;
}

#form1 > p {
    text-align: center;
    color: #68707b;
    font-size: 25px;
    margin: 35px auto 0 auto;
}

#btn_login {
    justify-content: center;
    align-items: center;
    border: 2px solid #0277bd !important;
    height: 45px;
    color: #0277bd;
    background-color: #fff;
    margin: 15px auto 0 auto;
    font-size: 20px;
}

#btn_invia_mfa {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #0277bd !important;
    height: 45px;
    margin: 20px auto 25px auto;
    font-size: 20px;
    padding: 3px 5px;
}

#btn_login:hover {
    background-color: #0776be;
    color: #fff;
}

#btn_invia_mfa:hover {
    color: #0776be;
    background-color: #fff;
}

/*-----------------------------AUTOMATION LIST + SET TABELLA BLOCCA AUTOMAZIONI------------------------------*/
#form1 h1.this {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 5%;
    font-size: 45px;
    color: #333;
    font-weight: lighter;
}

.tabella #form1, .tabella #form2, .tab-small #form1 {
    width: 100%;
    margin: 10px;
}

.tabella #form1 table#dgw_automazioni,
.tab-small #form1 table#dgw_automazioni,
.tabella #form1 table#dgw_storico,
table#dgw_Gateway,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_automazioni,
.cont_timer #form1 table#dgw_regole,
.stato_abb #form1 table#dgw_gruppi,
.centra_account #form1 table#dgw_storico,
.stato_abb #form1 table#dgw_automazioni,
.doppia > #form1 table#dgw_automazioni,
.centra_account #form1 table#dgw_regole,
.centra_account #form1 table#dgw_automazioni,
#form1 table#dgw_scenari,
#Pn_riepilogo table#gw_riepilogo,
.centra_account #pn_esclusione table#gw_esclusioni {
    margin: 0 auto;
    width: 100%;
    border: none !important;
}

#dgw_scenari {
    width: 500px !important;
}

.tabella #form1 table#dgw_automazioni tbody tr,
.tab-small #form1 table#dgw_automazioni tbody tr,
.tabella #form1 table#dgw_storico tbody tr,
table#dgw_Gateway tbody tr,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_automazioni tbody tr,
.cont_timer #form1 table#dgw_regole tbody tr,
.stato_abb #form1 table#dgw_gruppi tbody tr,
.centra_account #form1 table#dgw_storico tbody tr,
.stato_abb #form1 table#dgw_automazioni tbody tr,
.doppia > #form1 table#dgw_automazioni tbody tr,
.centra_account #form1 table#dgw_regole tbody tr,
.centra_account #form1 table#dgw_automazioni tbody tr,
#form1 table#dgw_scenari tbody tr,
#Pn_riepilogo table#gw_riepilogo tbody tr,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr {
    height: 3rem;
    text-align: center;
    border-radius: 50px;
}

.tabella #form1 table#dgw_automazioni tbody tr th,
.tab-small #form1 table#dgw_automazioni tbody tr th,
.tabella #form1 table#dgw_storico tbody tr th,
table#dgw_Gateway tbody tr th,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_automazioni tbody tr th,
.cont_timer #form1 table#dgw_regole tbody tr th,
.stato_abb #form1 table#dgw_gruppi tbody tr th,
.centra_account #form1 table#dgw_storico tbody tr th,
.stato_abb #form1 table#dgw_automazioni tbody tr th,
.doppia > #form1 table#dgw_automazioni tbody tr th,
.centra_account #form1 table#dgw_regole tbody tr th,
.centra_account #form1 table#dgw_automazioni tbody tr th,
#form1 table#dgw_scenari tbody tr th,
#Pn_riepilogo table#gw_riepilogo tbody tr th,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr th {
    width: 33%;
    background-color: #455a64;
    font-size: 18px;
    font-weight: lighter;
    border: none;
}

.tabella #form1 table#dgw_automazioni tbody tr th,
.tabella #form1 table#dgw_automazioni tbody tr td,
.tab-small #form1 table#dgw_automazioni tbody tr th,
.tab-small #form1 table#dgw_automazioni tbody tr td,
.tabella #form1 table#dgw_storico tbody tr th,
.tabella #form1 table#dgw_storico tbody tr td,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_automazioni tbody tr td,
.cont_timer #form1 table#dgw_regole tbody tr th,
.cont_timer #form1 table#dgw_regole tbody tr td,
.stato_abb #form1 table#dgw_gruppi tbody tr td,
.centra_account #form1 table#dgw_storico tbody tr th,
.centra_account #form1 table#dgw_storico tbody tr td,
.stato_abb #form1 table#dgw_automazioni tbody tr td,
.stato_abb #form1 table#dgw_automazioni tbody tr th,
.doppia > #form1 table#dgw_automazioni tbody tr td,
.doppia > #form1 table#dgw_automazioni tbody tr th,
.centra_account #form1 table#dgw_regole tbody tr th,
.centra_account #form1 table#dgw_regole tbody tr td,
.centra_account #form1 table#dgw_automazioni tbody tr td,
.centra_account #form1 table#dgw_automazioni tbody tr th,
#form1 table#dgw_scenari tbody tr td,
#form1 table#dgw_scenari tbody tr th,
#Pn_riepilogo table#gw_riepilogo tbody tr th,
#Pn_riepilogo table#gw_riepilogo tbody tr td,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr th,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr td {
    border: none;
}

table#dgw_Gateway tbody tr th,
table#dgw_Gateway tbody tr td,
.cont_timer #form1 table#dgw_regole tbody tr th,
.cont_timer #form1 table#dgw_regole tbody tr td,
.centra_account #form1 table#dgw_storico tbody tr td,
.stato_abb #form1 table#dgw_automazioni tbody tr td,
.centra_account #form1 table#dgw_regole tbody tr th,
.centra_account #form1 table#dgw_automazioni tbody tr th,
.centra_account #form1 table#dgw_automazioni tbody tr td,
#form1 table#dgw_scenari tbody tr th,
#form1 table#dgw_scenari tbody tr td,
#Pn_riepilogo table#gw_riepilogo tbody tr th,
#Pn_riepilogo table#gw_riepilogo tbody tr td,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr th,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr td {
    border: none;
}

.tabella #form1 table#dgw_automazioni tbody tr th:first-child,
.tab-small #form1 table#dgw_automazioni tbody tr th:first-child,
.tabella #form1 table#dgw_storico tbody tr th:first-child,
table#dgw_Gateway tbody tr th:first-child,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_automazioni tbody tr th:first-child,
.cont_timer #form1 table#dgw_regole tbody tr th:first-child,
.stato_abb #form1 table#dgw_gruppi tbody tr th:first-child,
.centra_account #form1 table#dgw_storico tbody tr th:first-child,
.stato_abb #form1 table#dgw_automazioni tbody tr th:first-child,
.doppia #form1 table#dgw_automazioni tbody tr th:first-child,
.centra_account #form1 table#dgw_regole tbody tr th:first-child,
.centra_account #form1 table#dgw_automazioni tbody tr th:first-child,
#form1 table#dgw_scenari tbody tr th:first-child,
#Pn_riepilogo table#gw_riepilogo tbody tr th:first-child,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr th:first-child {
    border-top-left-radius: 10px;
}

.tabella #form1 table#dgw_automazioni tbody tr th:last-child,
.tab-small #form1 table#dgw_automazioni tbody tr th:last-child,
.tabella #form1 table#dgw_storico tbody tr th:last-child,
table#dgw_Gateway tbody tr th:last-child,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_automazioni tbody tr th:last-child,
.cont_timer #form1 table#dgw_regole tbody tr th:last-child,
.stato_abb #form1 table#dgw_gruppi tbody tr th:last-child,
.centra_account #form1 table#dgw_storico tbody tr th:last-child,
.stato_abb #form1 table#dgw_automazioni tbody tr th:last-child,
.doppia > #form1 table#dgw_automazioni tbody tr th:last-child,
.centra_account #form1 table#dgw_regole tbody tr th:last-child,
.centra_account #form1 table#dgw_automazioni tbody tr th:last-child,
#form1 table#dgw_scenari tbody tr th:last-child,
#Pn_riepilogo table#gw_riepilogo tbody tr th:last-child,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr th:last-child {
    border-top-right-radius: 10px;
}

.tabella #form1 table#dgw_automazioni tbody tr td,
.tab-small #form1 table#dgw_automazioni tbody tr td,
.tabella #form1 table#dgw_storico tbody tr td,
table#dgw_Gateway tbody tr td,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_automazioni tbody tr td,
.cont_timer #form1 table#dgw_regole tbody tr td,
.stato_abb #form1 table#dgw_gruppi tbody tr td,
.centra_account #form1 table#dgw_storico tbody tr td,
.stato_abb #form1 table#dgw_automazioni tbody tr td,
.doppia > #form1 table#dgw_automazioni tbody tr td,
.centra_account #form1 table#dgw_regole tbody tr td,
.centra_account #form1 table#dgw_automazioni tbody tr td,
#form1 table#dgw_scenari tbody tr td,
#Pn_riepilogo table#gw_riepilogo tbody tr td,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr td {
    border-bottom: 2px solid #0277bd;
}

.tabella #form1 table#dgw_automazioni tbody tr td a,
.tab-small #form1 table#dgw_automazioni tbody tr td a,
table#dgw_Gateway tbody tr td a,
.cont_timer #form1 table#dgw_regole tbody tr td a,
.stato_abb #form1 table#dgw_gruppi tbody tr td a,
.centra_account #form1 table#dgw_storico tbody tr td a,
.stato_abb #form1 table#dgw_automazioni tbody tr td a,
.doppia > #form1 table#dgw_automazioni tbody tr td a,
.centra_account #form1 table#dgw_regole tbody tr td a,
.centra_account #form1 table#dgw_automazioni tbody tr td a,
#form1 table#dgw_scenari tbody tr td a,
#Pn_riepilogo table#gw_riepilogo tbody tr td a,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr td a {
    padding: 3px 6px;
    border: 1px solid #0776be;
}

.tabella #form1 table#dgw_automazioni tbody tr td a:hover,
.tab-small #form1 table#dgw_automazioni tbody tr td a:hover,
table#dgw_Gateway tbody tr td a:hover,
.cont_timer #form1 table#dgw_regole tbody tr td a:hover,
.stato_abb #form1 table#dgw_gruppi tbody tr td a:hover,
.centra_account #form1 table#dgw_storico tbody tr td a:hover,
.stato_abb #form1 table#dgw_automazioni tbody tr td a:hover,
.doppia > #form1 table#dgw_automazioni tbody tr td a:hover,
.centra_account #form1 table#dgw_regole tbody tr td a:hover,
.centra_account #form1 table#dgw_automazioni tbody tr td a:hover,
#form1 table#dgw_scenari tbody tr td a:hover,
#Pn_riepilogo table#gw_riepilogo tbody tr td a:hover,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

.stato_abb #form1 table#dgw_automazioni {
    margin-bottom: 20px;
}

/*-----------------------------STORICO------------------------------*/
.data_inizio, .data_fine, .btns_date {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.data_inizio input#tb_data_start, .data_fine input#tb_data_end {
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    width: 175px;
}

.data_fine h3 {
    margin-left: 5px;
}

.cerca {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 210px !important;
    margin: 0 auto 2% auto;
}

#form1 > div > .search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 620px !important;
    margin: 0 auto 2% auto;
    flex-wrap: wrap;
}

.visual {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.visual-2 {
    display: flex;
    margin-bottom: 20px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cerca h3, .search h3 {
    font-size: 18px;
    margin-bottom: 0;
    margin-right: 5px;
}

.cerca input#tb_data, .cerca input#tb_data_f {
    padding: 2px 1px 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px !important;
}

.cerca input#tb_data {
    margin-right: 10px;
}

.cerca input#btn_cerca,
.cerca input#btn_excell,
.cerca_data input#btn_cerca,
p > input#btn_cerca_utente {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    background-color: #0776be;
}

.search input#btn_cerca, .search input#btn_excell {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    background-color: #0776be;
    margin-left: 5px;
}

#btn_cerca:hover, #btn_cerca:hover, #btn_excell:hover, #btn_excell:hover, #btn_cerca:hover {
    background-color: #fff;
    color: #0776be;
}

.tabella.tre > #form1 table#dgw_storico {
    margin: 0 auto !important;
    width: 90% !important;
    border: none !important;
}

/*-----------------------------STORICO UTENTE------------------------------*/
/*-----------------------------MENU' LATERALE------------------------------*/
.col-2 {
    height: 100vh;
    background-color: #636366;
    padding-top: 4%;
    width: 20%;
    position: fixed;
    top: 0;
    z-index: 100;
}

/* Riquadro anomalie nel menu laterale, sotto Supporto (testo calcolato dalla home, vedi PaginaWebForms.RiquadroAnomalie) */
.menu-anomalie {
    margin: 24px 8% 0;
    padding: 12px 14px;
    border-left: 4px solid #ffb300;
    border-radius: 6px;
    background-color: #4e4e51;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
}

.menu-anomalie .menu-anomalie-titolo {
    display: block;
    margin-bottom: 6px;
    color: #ffb300;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.menu-anomalie p {
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.menu-anomalie .menu-anomalie-tasto {
    display: block;
    margin: 0 0 12px;
    padding: 6px 10px;
    border: 1px solid #ffb300;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.menu-anomalie .menu-anomalie-tasto:hover {
    background-color: #ffb300;
    color: #333333;
}

.menu-anomalie .menu-anomalie-tasto:last-child {
    margin-bottom: 0;
}

.nav a {
    display: flex;
    align-items: center;
    justify-content: left;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    padding-left: 15%;
    height: 4rem;
    font-weight: lighter;
}

.nav a:hover, .nav a.active {
    background-color: #6c6c6f;
    font-size: 22px;
    transition: all 0.45s;
}

.col-2 .change {
    padding-left: 15%;
    margin-bottom: 100px;
}

.col-2 .change #Label1, .col-2 .change #Label3 {
    font-size: 20px;
    color: #fff;
    display: inline-block;
    margin-right: 14%;
    font-weight: bold;
}

.col-2 .change > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    border-radius: 10px;
    padding: 4px 10px;
    background-color: #0277bd;
    width: 11vW;
    margin-top: 15px;
}

.col-2 .change a:hover {
    background-color: #2e86bb;
}

/*-----------------------------BLOCCA UTENTI------------------------------*/
.blocca-utenti-filtri {
    flex-direction: column;
    gap: 18px;
    /* sotto: nessun margine, la distanza dalla tabella (12px) la dà la riga di ricerca */
    margin: 22px auto 0 auto;
}

.blocca-utenti-filtri .blocca-utenti-dropdowns, .blocca-utenti-filtri .blocca-utenti-cerca {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* stessa misura delle altre ricerche (input.ui-ricerca) */
.blocca-utenti-filtri .blocca-utenti-cerca input#tb_cerca {
    width: 155px;
    height: 26px;
    padding: 2px 8px !important;
    box-sizing: border-box;
}

.tabella #form2, .tabella-notifiche #form1 {
    width: 100%;
    margin: 0 auto;
}

#pn_centrale .pannel #dgw_automazioni {
    margin-top: 30px !important;
}

.tabella #form2 table#dgw_utenti,
.contenitore-acc #form1 .acc-temp table#dgw_accessi,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti,
#pn_centrale .pannel table#dgw_automazioni,
.centra_account #form1 table#dgw_utenti,
.stato_abb > #form1 table#dgw_gateway,
.app_delete_user > #form1 table#dgw_utenti,
.tabella-notifiche #form1 table#dgw_automa,
#Panel1 .tab_pannel_notifiche table#dgw_utenti {
    margin: 0 auto;
    width: 100%;
    border: none;
}

.tabella #form2 table#dgw_utenti tbody,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody,
#pn_centrale .pannel table#dgw_automazioni tbody,
.centra_account #form1 table#dgw_utenti tbody,
.stato_abb > #form1 table#dgw_gateway tbody,
.app_delete_user > #form1 table#dgw_utenti tbody,
.tabella-notifiche #form1 table#dgw_automa tbody,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody {
    width: 100% !important;
}

.tabella #form2 table#dgw_utenti tbody tr,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody tr,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody tr,
#pn_centrale .pannel table#dgw_automazioni tbody tr,
.centra_account #form1 table#dgw_utenti tbody tr,
.stato_abb > #form1 table#dgw_gateway tbody tr,
.app_delete_user > #form1 table#dgw_utenti tbody tr,
.tabella-notifiche #form1 table#dgw_automa tbody tr,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr {
    height: 3rem;
    text-align: center;
    border-radius: 50px;
}

.tabella #form2 table#dgw_utenti tbody tr th,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody tr th,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody tr th,
#pn_centrale .pannel table#dgw_automazioni tbody tr th,
.centra_account #form1 table#dgw_utenti tbody tr th,
.stato_abb > #form1 table#dgw_gateway tbody tr th,
.app_delete_user > #form1 table#dgw_utenti tbody tr th,
.tabella-notifiche #form1 table#dgw_automa tbody tr th,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr th {
    width: 15%;
    background-color: #455a64;
    color: #ffffff;
    font-weight: lighter;
}

.tabella #form2 table#dgw_utenti tbody tr th,
.tabella #form2 table#dgw_utenti tbody tr td,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tr th,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tr td,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody th,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody tr td,
#pn_centrale .pannel table#dgw_automazioni tbody tr th,
#pn_centrale .pannel table#dgw_automazioni tbody tr td,
.centra_account #form1 table#dgw_utenti tbody tr th,
.centra_account #form1 table#dgw_utenti tbody tr td,
.stato_abb > #form1 table#dgw_gateway tbody tr th,
.stato_abb > #form1 table#dgw_gateway tbody tr td,
.app_delete_user > #form1 table#dgw_utenti tbody tr th,
.app_delete_user > #form1 table#dgw_utenti tbody tr td,
.tabella-notifiche #form1 table#dgw_automa tbody tr th,
.tabella-notifiche #form1 table#dgw_automa tbody tr td,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr th,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr td {
    border: none;
}

.tabella #form2 table#dgw_utenti tbody tr th:first-child,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody tr th:first-child,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody tr th:first-child,
#pn_centrale .pannel table#dgw_automazioni tbody tr th:first-child,
.centra_account #form1 table#dgw_utenti tbody tr th:first-child,
.stato_abb > #form1 table#dgw_gateway tbody tr th:first-child,
.app_delete_user > #form1 table#dgw_utenti tbody tr th:first-child,
.tabella-notifiche #form1 table#dgw_automa tbody tr th:first-child,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr th:first-child {
    border-top-left-radius: 10px;
}

.tabella #form2 table#dgw_utenti tbody tr th:last-child,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody tr th:last-child,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody tr th:last-child,
#pn_centrale .pannel table#dgw_automazioni tbody tr th:last-child,
.centra_account #form1 table#dgw_utenti tbody tr th:last-child,
.stato_abb > #form1 table#dgw_gateway tbody tr th:last-child,
.app_delete_user > #form1 table#dgw_utenti tbody tr th:last-child,
.tabella-notifiche #form1 table#dgw_automa tbody tr th:last-child,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr th:last-child {
    border-top-right-radius: 10px;
}

.tabella #form2 table#dgw_utenti tbody tr td,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody tr td,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody tr td,
#pn_centrale .pannel table#dgw_automazioni tbody tr td,
.centra_account #form1 table#dgw_utenti tbody tr td,
.stato_abb > #form1 table#dgw_gateway tbody tr td,
.app_delete_user > #form1 table#dgw_utenti tbody tr td,
.tabella-notifiche #form1 table#dgw_automa tbody tr td,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr td {
    border-bottom: 2px solid #0277bd;
    background-color: #fff;
}

.tabella #form2 table#dgw_utenti tbody tr td a,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody tr td a,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody tr td a,
#pn_centrale .pannel table#dgw_automazioni tbody tr td a,
.centra_account #form1 table#dgw_utenti tbody tr td a,
.stato_abb > #form1 table#dgw_gateway tbody tr td a,
.app_delete_user > #form1 table#dgw_utenti tbody tr td a,
.tabella-notifiche #form1 table#dgw_automa tbody tr td a,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr td a {
    text-decoration: none;
    color: #0277bd;
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #0776be;
    font-size: 15px;
    border-radius: 4px;
}

.tabella #form2 table#dgw_utenti tbody tr td a:hover,
.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody tr td a:hover,
.contenitore-acc #form1 .acc-temp #Panel1 table#dgw_utenti tbody tr td a:hover,
#pn_centrale .pannel table#dgw_automazioni tbody tr td a:hover,
.centra_account #form1 table#dgw_utenti tbody tr td a:hover,
.stato_abb > #form1 table#dgw_gateway tbody tr td a:hover,
.app_delete_user > #form1 table#dgw_utenti tbody tr td a:hover,
.tabella-notifiche #form1 table#dgw_automa tbody tr td a:hover,
#Panel1 .tab_pannel_notifiche table#dgw_utenti tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

.tabella #form2, .tab-small #form1, .tabella-notifiche #form1 {
    position: relative;
}

.pannello-modale {
    width: 500px;
}

#form2 .pannel {
    width: 400px;
}

#form2 .pannel .sel {
    margin-bottom: 3%;
    width: 100%;
}

#form2 .pannel .state {
    display: inline-block;
    justify-content: center;
    align-items: center;
    margin-bottom: 3%;
    width: 100%;
}

#form2 .pannel .sel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4%;
    margin-top: 6%;
    font-weight: bold;
}

#form2 .pannel .state p, #form2 .pannel .sel > p {
    margin-right: 1%;
}

/* Rinomina utenti: etichetta e textbox centrati nel pannello */
#form2 .pannel .state.rinomina-nome p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.tabella .pannel #lb_nome_utente {
    margin: 0 13px;
}

.tabella .pannel #btn_modifica,
.tabella .pannel #btn_conferma,
.tab-small .pannel #btn_modifica,
#btn_select_all,
#btn_select_all_copia,
#Panel1 #btn_modifica {
    padding: 5px 10px;
    border: 1px solid #0277bd !important;
    display: block;
    width: 35%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
}

.tabella .pannel #btn_modifica:hover,
.tabella .pannel #btn_conferma:hover,
.tab-small .pannel #btn_modifica:hover,
#btn_select_all:hover,
#btn_select_all_copia:hover,
#Panel1 #btn_modifica:hover {
    background-color: transparent;
    color: #0277bd;
}

.tabella #form2 .pannel input#btn_close {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Mantiene i pannelli di Blocca utenti e Amministratori dentro il viewport. */
.tabella #pn_centrale {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2000 !important;
    pointer-events: none;
}

.tabella #pn_centrale .pannel {
    left: calc(50% + 8vw) !important;
    transform: translate(-50%, -50%) !important;
    width: 400px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 48px) !important;
    overflow: hidden !important;
    pointer-events: auto;
}

.tabella #form2 #pn_centrale .pannel table#dgw_automazioni {
    display: block !important;
    max-height: calc(100vh - 265px) !important;
    overflow-x: hidden !important;
}

.tabella #form2 #pn_centrale .pannel table#dgw_automazioni tbody {
    display: table !important;
}

/*-----------------------------BLOCCA AUTOMAZIONI------------------------------*/
.tab-small > #form1 table#dgw_automazioni tbody tr th {
    width: 20% !important;
}

.tab-small #form1 .pannel .linea {
    width: 83%;
    height: 0.5%;
    background-color: #0776be;
    margin: 2% auto 2% auto;
    position: absolute;
    top: 37%;
    left: 8%;
}

.tab-small #form1 .pannel {
    width: 45%;
}

.tab-small #form1 .pannel .state, .tab-small #form1 .pannel .sel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2%;
}

.tab-small #form1 .pannel .state p {
    margin-right: 4%;
}

.tab-small #form1 .pannel .sel {
    width: 95%;
    margin-bottom: 4%;
    margin-top: 6%;
    font-weight: bold;
}

.tab-small #form1 .pannel input#btn_close {
    position: absolute;
    top: 15px;
    right: 15px;
}

#Panel_temporizzata {
    display: inline-block;
    width: 100%;
    text-align: center;
}

.tab-small #form1 .pannel span#lb_nome_automazione {
    padding: 0px 5px;
}

/*-----------------------------SCHEDULAZIONE------------------------------*/
#pn_cerca {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#lb_prima_tabella {
    display: block;
    text-align: center;
    font-size: 27px;
    font-weight: lighter;
    margin-top: 20px;
}

.schedu .change a {
    margin-right: 6% !important;
}

.tabella #form1 {
    margin: 0 auto;
}

.tabella #form1 table#dgw_utenti {
    margin: 25px auto 0 auto !important;
}

.tabella #form1 table#dgw_utenti tbody tr {
    text-align: center;
    border-radius: 50px;
}

.tabella #form1 table#dgw_utenti tbody tr th {
    width: 15%;
}

.tabella #form1 table#dgw_utenti tbody tr th, .tabella #form1 table#dgw_utenti tbody tr td {
    border: none;
}

.tabella #form1 table#dgw_utenti tbody tr td {
    border-bottom: 2px solid #0277bd;
}

.tabella #form1 table#dgw_utenti tbody tr td a {
    padding: 3px 6px;
    border: 1px solid #0776be;
}

.tabella #form1 table#dgw_utenti tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

.tabella #form1 table#dgw_utenti tbody tr td:last-child {
    color: red;
}

.utente {
    position: relative;
}

.utente p {
    display: inline-block;
}

#lb_warning {
    width: 100%;
}

.flexy.this {
    padding-left: 0;
}

#form1 .flexy p {
    font-size: 20px !important;
    text-align: center;
    font-weight: normal;
    margin-left: 1%;
}

.tabella #form1 .info table#dgw_regole {
    margin: 0 auto 4% auto;
    width: 100%;
    border: none;
}

.tabella #form1 table#dgw_regole tbody {
    width: 100% !important;
}

.tabella #form1 table#dgw_regole tbody tr {
    height: 3rem;
    text-align: center;
    border-radius: 50px;
}

.tabella #form1 table#dgw_regole tbody tr th {
    width: 15%;
    background-color: #455a64;
    color: #ffffff;
    font-size: 22px;
    font-weight: lighter;
}

.tabella #form1 table#dgw_regole tbody tr th, .tabella #form1 table#dgw_regole tbody tr td {
    border: none;
}

.tabella #form1 table#dgw_regole tbody tr th:first-child {
    border-top-left-radius: 10px;
}

.tabella #form1 table#dgw_regole tbody tr th:last-child {
    border-top-right-radius: 10px;
}

.tabella #form1 table#dgw_regole tbody tr td {
    border-bottom: 2px solid #0277bd;
}

.tabella #form1 table#dgw_regole tbody tr td a {
    text-decoration: none;
    color: #0277bd;
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #0776be;
    font-size: 15px;
    border-radius: 4px;
}

.tabella #form1 table#dgw_regole tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

#form1 .flexy.this .small-width input#tb_cerca {
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
}

.ricerca-schedu {
    align-items: center;
    gap: 8px;
}

#btn_back {
    height: 25px;
    padding: 0.9% 0 !important;
    margin-left: 2px;
    width: 90px;
    border-color: #0277bd !important;
}

.ricerca-schedu input#btn_cerca_utente:hover,
input#btn_back:hover,
.cerca_notifiche input#btn_cerca_utente:hover,
p > input#btn_cerca_utente:hover {
    background-color: #fff;
    color: #0277bd;
}

.utente .dati {
    display: inline;
}

.dati span#lb_utente {
    display: inline-block;
}

#id_utente {
    display: inline-block;
}

.utente .dati p:first-child {
    display: block;
    margin: 20px auto 0 auto;
}

.day p {
    margin-bottom: 0 !important;
    width: 18% !important;
}

.day {
    flex-wrap: wrap;
    width: 300px;
    margin: 0 auto;
}

.day, .ore {
    display: flex;
    justify-content: center;
    align-items: center;
}

#dp_vista, #dp_selezione_gruppo, #dp_selezione_automazione, #dp_selezione_categoria, #Dp_categoria {
    padding: 5px 10px !important;
    margin-right: 3px;
}

.ore p {
    margin-right: 1px;
}

#dt1 {
    width: 90px;
    height: 25px;
    border-radius: 10px;
    padding: 0.9% 0 !important;
}

#dt2 {
    border-radius: 10px;
    width: 90px;
    height: 25px;
    padding: 0.9% 0 !important;
}

#btn_imposta, #btn_copia_all, #btn_copy_user {
    padding: 5px 10px;
    border: 1px solid #0277bd !important;
    display: block;
    margin: 5% auto 5% auto;
    width: 265px;
}

#btn_imposta:hover, #btn_copia_all:hover, #btn_copy_user:hover {
    background-color: transparent;
    color: #0277bd;
}

#btn_copia, #btn_massa, #btn_elimina, #btn_copia_confirm {
    padding: 5px 10px;
    border: 1px solid #0277bd !important;
    display: block;
    width: 35%;
}

#btn_copia_confirm {
    margin: 0 auto -3% auto !important;
}

#btn_copia {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    margin-top: 15px;
}

#btn_massa {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    margin-top: 15px;
}

.bottoni {
    display: flex;
    justify-content: center;
    align-items: center;
}

#dgw_copia {
    display: block;
}

#dgw_copia {
    border-style: none;
    top: 0px;
}

#dgw_copia tr {
    border-radius: 50px;
}

#dgw_copia th {
    width: 15%;
}

#dgw_copia th, #dgw_copia td {
    border: none;
}

#dgw_copia td {
    border-bottom: 2px solid #0277bd;
}

table#dgw_copia tbody tr td a {
    text-decoration: none;
    color: #0277bd;
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #0776be;
    font-size: 15px;
    border-radius: 4px;
}

table#dgw_copia tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

#Panel1 > .pannel.this {
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    z-index: 2000 !important;
    text-align: center;
}

#Panel1 > .pannel.this .visual {
    flex-direction: column;
    gap: 12px;
}

#Panel1 > .pannel.this .riga-dp, #Panel1 > .pannel.this .riga-cerca {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

#Panel1 > .pannel.this span#lb_copia {
    font-size: 20px;
    margin-bottom: 12px;
}

#Panel1 > .pannel.this table#dgw_copia {
    display: table;
    width: 100% !important;
    margin: 18px auto !important;
    table-layout: fixed;
}

#Panel1 > .pannel.this input#btn_select_all_copia, #Panel1 > .pannel.this input#btn_copia_confirm {
    width: 180px !important;
    margin: 14px auto 0 auto !important;
}

#lb_warning {
    display: inline-block;
    margin: 3% auto 12% auto;
    text-align: center;
}

.tabella #form1 span#lb_error {
    width: 100%;
    text-align: center;
    display: inline-block;
}

.tabella #form1 #Panel1 .pannel.this input#btn_close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.cont span#lb_copia {
    width: 100%;
}

.tabella #form1 {
    position: relative;
}

.info .day #lb_error {
    font-size: 25px;
    display: inline-block;
    width: 100%;
    margin: 2% auto;
}

.set_days, .set_days input {
    display: inline-block;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.set_days p.days {
    width: 100% !important;
    margin: 0 auto 20px auto !important;
}

/*-----------------------------UTENTI------------------------------*/
.app_ {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 5%;
    margin-bottom: 5%;
}

.app_ .b1, .app_ .b2 {
    text-align: center;
}

.cerca_under_visual {
    align-items: center !important;
    margin: 20px auto !important;
}

#tb_codice_wiengand {
    border-radius: 10px;
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    margin: 15px 10px;
}

#Panel5 .wiengand-campi {
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 38px;
    margin: 4px 0 10px;
}

#Panel5 .wiengand-gruppo, #Panel5 .wiengand-tipo {
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

#Panel5 .wiengand-campi input#tb_codice_wiengand {
    width: 90px;
    margin: 15px 4px;
}

#Panel5 .wiengand-rc-campi {
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 10px;
}

#Panel5 .wiengand-dettagli {
    line-height: 1.4;
}

#Panel5 .wiengand-azioni {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#Panel5 .wiengand-titolo-tabella {
    width: 100%;
    color: #0776be;
    font-size: 21px;
    font-weight: normal;
}

#form1 .contenitore.this-2 .cerca input#btn_cerca_utente:hover {
    color: #fff;
    background-color: #0776be;
}

.contenitore .tabella table#dgw_utenti tbody tr {
    text-align: center;
    border-radius: 50px;
}

.contenitore .tabella table#dgw_utenti tbody tr th {
    width: 15%;
}

.contenitore .tabella table#dgw_utenti tbody tr th,
.contenitore .tabella table#dgw_utenti tbody tr td {
    border: none;
}

.contenitore .tabella table#dgw_utenti tbody tr td {
    border-bottom: 2px solid #0277bd;
}

.contenitore .tabella table#dgw_utenti tbody tr td:last-child {
    color: red;
}

.contenitore .tabella table#dgw_utenti tbody tr td a {
    padding: 3px 6px;
    border: 1px solid #0776be;
}

.contenitore .tabella table#dgw_utenti tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

.contenitore .tabella table#dgw_utenti, .tabella #form1 table#dgw_utenti {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.pannello-schedu div#Panel1 {
    width: 30%;
    position: absolute;
    left: 28rem;
}

.due-btn #form1 > div > p {
    display: inline-block;
    margin-bottom: 30px;
}

.btn-supp #form1 > div > p {
    display: inline-block;
    margin-bottom: 30px;
}

#Panel1 p {
    font-size: 15px;
    font-weight: lighter;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

#btn_new_utente, #btn_collega_utente {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    margin: 2% auto 6% auto;
    width: 150px !important;
    height: 40px !important;
}

#btn_new_utente:hover,
#btn_collega_utente:hover,
#btn_copia:hover,
#btn_massa:hover,
#btn_copia_confirm:hover {
    background-color: #fff;
    color: #0277bd;
}

#Panel2 h4 {
    font-weight: lighter;
    font-size: 30px;
    text-align: center;
}

#Panel2 h3 {
    display: inline-block;
    width: 100%;
    font-weight: lighter;
    font-size: 20px;
    text-align: center;
}

#tb_nome, #Tb_tel, #tb_id_utente_add, #tb_pin_aggiunta_add {
    width: 100%;
    height: 27px;
    border-radius: 10px;
    padding: 2px 6px;
    margin: 3% auto 10% auto;
}

#Panel2 p {
    display: inline-block;
    width: 100%;
    font-weight: lighter;
    font-size: 20px;
    text-align: center;
}

#btn_conferma_new:hover, #btn_conferma_add:hover {
    color: #0776be;
    background-color: #fff;
}

#Panel5 .centra_pannel, #Panel8 .centra_pannel, #Panel6 .centra_pannel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px auto;
    text-align: center;
    width: 400px;
}

/* Panel5 (Wiegand) più largo per rendere leggibile la tabella,
centrato nell'area utile a destra del menu laterale (.col-2, 20vw) */
#Panel5 {
    transform: translateX(-50%);
}

#Panel5 .centra_pannel {
    width: 750px;
    max-width: calc(80vw - 80px);
}

#dgw_wiengand {
    width: 100%;
}

#Panel7 {
    width: 800px;
    text-align: center;
}

#Panel7 span {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

#dp_vista_3, #dp_vista_3_gruppo, #dp_vista_3_categorie {
    padding: 5px 10px !important;
}

#btn_massa_select_all, #btn_massa_confirm {
    display: block;
    min-width: 150px;
    border: 1px solid #0776be !important;
    padding: 6px 12px;
}

#btn_massa_select_all:hover, #btn_massa_confirm:hover {
    background-color: #fff;
    color: #0277bd;
}

#dgw_massa, #dgw_massa_utenti {
    display: block;
    border: none;
}

#dgw_massa tr, #dgw_massa_utenti tr {
    border-radius: 50px;
}

#dgw_massa th, #dgw_massa_utenti th {
    width: 15%;
}

#dgw_massa th, #dgw_massa td, #dgw_massa_utenti th, #dgw_massa_utenti td {
    border: none;
}

#dgw_massa td, #dgw_massa_utenti td {
    border-bottom: 2px solid #0277bd;
}

table#dgw_massa tbody tr td a, table#dgw_massa_utenti tbody tr td a {
    text-decoration: none;
    color: #0277bd;
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #0776be;
    font-size: 15px;
    border-radius: 4px;
}

table#dgw_massa tbody tr td a:hover, table#dgw_massa_utenti tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

#Panel7 .azioni-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-right: 20px;
}

.informazioni {
    position: relative;
}

#Panel4 {
    transform: translate(-50%, -50%);
    width: 400px;
}

#Panel3 h3 {
    display: inline-block;
    width: 100%;
    font-weight: lighter;
    text-align: center;
}

#Panel3 h2 {
    text-align: center;
    font-weight: normal;
}

#Panel3 h6 {
    display: inline-block;
    width: 100%;
    font-weight: lighter;
    text-align: center;
}

#Panel3 h6, #Panel3 h3 {
    font-size: 20px;
}

#Panel3 p {
    font-size: 15px !important;
    display: inline-block;
    width: 100%;
    font-weight: lighter;
    text-align: center;
}

#lb_error_add {
    width: 100%;
    font-size: 20px;
    display: inline-block;
    text-align: center;
}

#dgw_automazioni_add,
#dgw_automazioni_new,
#dgw_automazioni_add_user,
#dgw_wiengand,
#dgw_mod_apertura {
    margin: 5% auto;
    border: none;
}

#dgw_automazioni_add tr,
#dgw_automazioni_new tr,
#dgw_automazioni_add_user tr,
#dgw_wiengand tr,
#dgw_mod_apertura tr {
    height: 3rem;
    text-align: center;
    border-radius: 50px;
}

#dgw_automazioni_add th, #dgw_automazioni_new th, #dgw_automazioni_add_user th, #dgw_mod_apertura th {
    width: 15%;
    background-color: #455a64;
    font-size: 22px;
    font-weight: lighter;
}

#dgw_wiengand th, #dgw_mod_apertura th {
    width: 15%;
}

#dgw_automazioni_add th,
#dgw_automazioni_add td,
#dgw_automazioni_new th,
#dgw_automazioni_new td,
#dgw_automazioni_add_user th,
#dgw_automazioni_add_user td,
#dgw_wiengand th,
#dgw_wiengand td,
#dgw_mod_apertura th,
#dgw_mod_apertura td {
    border: none;
}

#dgw_automazioni_add th:first-child,
#dgw_automazioni_new th:first-child,
#dgw_automazioni_add_user th:first-child,
#dgw_wiengand th:first-child,
#dgw_mod_apertura th:first-child {
    border-top-left-radius: 10px !important;
}

#dgw_automazioni_add th:last-child,
#dgw_automazioni_new th:last-child,
#dgw_automazioni_add_user th:last-child,
#dgw_wiengand th:last-child,
#dgw_mod_apertura th:last-child {
    border-top-right-radius: 10px;
}

#dgw_automazioni_add td,
#dgw_automazioni_new td,
#dgw_automazioni_add_user td,
#dgw_wiengand td,
#dgw_mod_apertura td {
    border-bottom: 2px solid #0277bd;
}

#dgw_automazioni_add td a,
#dgw_automazioni_new td a,
#dgw_automazioni_add_user td a,
#dgw_wiengand td a,
#dgw_mod_apertura td a {
    border: 1px solid #0776be;
    margin: 2px 3px;
    padding: 2px 5px;
}

#dgw_automazioni_add td a:hover,
#dgw_automazioni_new td a:hover,
#dgw_automazioni_add_user td a:hover,
#dgw_wiengand td a:hover,
#dgw_mod_apertura td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

#Panel8 #dgw_tasti_rc {
    margin: 5% auto;
    border: none;
}

#Panel8 #dgw_tasti_rc tbody {
    width: 100% !important;
}

#Panel8 #dgw_tasti_rc tbody tr {
    height: 3rem;
    text-align: center;
}

#Panel8 #dgw_tasti_rc tbody tr th {
    width: 15%;
    border: none;
    background-color: #455a64;
    color: #ffffff;
    font-size: 18px;
    font-weight: lighter;
}

#Panel8 #dgw_tasti_rc tbody tr th:first-child {
    border-top-left-radius: 10px;
}

#Panel8 #dgw_tasti_rc tbody tr th:last-child {
    border-top-right-radius: 10px;
}

#Panel8 #dgw_tasti_rc tbody tr td {
    border: none;
    border-bottom: 2px solid #0277bd;
}

#Panel8 #dgw_tasti_rc tbody tr td a {
    text-decoration: none;
    color: #0277bd;
    display: inline-block;
    border: 1px solid #0776be;
    font-size: 15px;
    border-radius: 4px;
    text-align: center;
}

#Panel8 #dgw_tasti_rc tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

#Panel8 .centra_pannel h4 {
    width: 100%;
    color: #0776be;
    font-size: 21px;
    font-weight: normal;
}

#Panel8 #dgw_tasti_rc {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: auto;
}

#Panel8 #dgw_tasti_rc tbody tr th, #Panel8 #dgw_tasti_rc tbody tr td {
    padding: 10px 12px;
    vertical-align: middle;
}

#Panel8 #dgw_tasti_rc tbody tr th {
    line-height: 1.2;
    white-space: normal;
}

#Panel8 #dgw_tasti_rc tbody tr td a {
    min-width: 58px;
    padding: 4px 9px;
    box-sizing: border-box;
}

/*-----------------------------MENU UTENTI & MENU AUTOMAZIONI------------------------------*/
.due-btn, .four-btn, .home-flex {
    height: 50vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.due-btn #form1 {
    max-width: 17% !important;
    margin-top: -2%;
}

#btn_blocca_automazioni,
#btn_timer_apertura,
#btn_nome_gruppo,
#btn_nome_automazione,
#btn_add_ricevente,
#btn_add_gateway,
#btn_doppia_autenticazione,
#btn_disattiva_ble,
#btn_nascondi_automazioni,
#btn_notifiche,
#btn_confirm_2,
#btn_add_automa,
#btn_add_tapp,
#btn_scenari {
    justify-content: center;
    align-items: center;
    height: 28px;
    background-color: #0776be;
    border: 1px solid #0776be !important;
    margin-bottom: 5px;
    width: 200px;
}

#btn_blocca_automazioni:hover,
#btn_timer_apertura:hover,
#btn_nome_automazione:hover,
#btn_nome_gruppo:hover,
#btn_add_ricevente:hover,
#btn_add_gateway:hover,
#btn_doppia_autenticazione:hover,
#btn_disattiva_ble:hover,
#btn_nascondi_automazioni:hover,
#btn_notifiche:hover,
#btn_confirm_2:hover,
#btn_add_automa:hover,
#btn_add_tapp:hover,
#btn_scenari:hover {
    background-color: transparent;
    color: #0776be;
}

p.spiegazione {
    text-align: center;
    font-size: 12px;
    width: 200px;
}

#btn_select_all_new_user, #btn_conferma_new {
    justify-content: center;
    align-items: center;
    height: 28px;
    background-color: #0776be;
    border: 1px solid #0776be !important;
    width: 200px;
}

#btn_select_all_new_user:hover,
#btn_conferma_new_user:hover,
#btn_select_all_add_user:hover,
#btn_conferma_add_user:hover,
#input#btn_conferma_new:hover {
    background-color: transparent;
    color: #0776be;
}

#btn_conferma_new_user {
    justify-content: center;
    align-items: center;
    height: 28px;
    background-color: #0776be;
    border: 1px solid #0776be !important;
}

#btn_select_all_add_user, #btn_conferma_add_user {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    background-color: #0776be;
    border: 1px solid #0776be !important;
    width: 200px;
}

.four-btn {
    height: 105vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.four-btn #form1 {
    max-width: 17% !important;
    margin-left: 22vw;
}

.four-btn.spot #form1 {
    margin-top: -2%;
}

.four-btn div p {
    display: inline-block;
    margin-bottom: 30px;
}

.four-btn #form1 input#btn_all_utenti,
.four-btn #form1 input#btn_schedulazione,
.four-btn #form1 input#Amministratori,
.four-btn #form1 input#btn_sostendi_utenti,
.four-btn #form1 input#Button5,
input#btn_tempo_validità {
    justify-content: center;
    align-items: center;
    height: 28px;
    background-color: #0776be;
    border: 1px solid #0776be !important;
    margin-bottom: 1vh;
    width: 200px;
}

.four-btn #form1 input#btn_all_utenti:hover,
.four-btn #form1 input#btn_schedulazione:hover,
.four-btn #form1 input#btn_sostendi_utenti:hover,
.four-btn #form1 input#Amministratori:hover,
.four-btn #form1 input#Button5:hover,
input#btn_tempo_validità:hover {
    background-color: transparent;
    color: #0776be;
}

.home-flex #form1 {
    width: 20% !important;
    position: relative;
    margin-left: 17%;
    margin-top: -4%;
}

#lb_gruppo {
    width: 100%;
    display: inline-block;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    border-bottom: 2px solid #0277bd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.home-flex #form1 img {
    width: 100%;
    display: block;
}

/*-----------------------------NOME AUTOMAZIONI------------------------------*/
.home-flex {
    height: 105vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*-----------------------------ALL UTENTI------------------------------*/
.contenitore.that .cerca.questa input#btn_cerca_utente:hover {
    color: #fff;
    background-color: #0776be;
}

.contenitore.that .cerca.questa input#tb_cerca {
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
}

.contenitore.that .cerca.questa {
    z-index: 999;
}

.contenitore.that .informazioni {
    position: absolute !important;
    top: 6vh;
}

#lb_contatore {
    display: inline-block;
}

.contenitore.that .informazioni p {
    display: inline-block;
    width: 100%;
}

.contenitore.that span#lb_nome_utente, .contenitore.that span#lb_utente {
    font-weight: bold;
}

#reimposta, #btn_delete_all, #btn_select_all_add_automation, #btn_wiengand, #btn_mod_apertura {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    margin-top: 15px;
}

#btn_leggi_wiengand, #btn_genera_qr_wiengand, #btn_confirm_wiengand {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    color: #fff;
    background-color: #0277bd;
    font-size: 15px;
}

#reimposta:hover,
#btn_delete_all:hover,
#btn_select_all_add_automation:hover,
#btn_wiengand:hover,
#btn_leggi_wiengand:hover,
#btn_genera_qr_wiengand:hover,
#btn_confirm_wiengand:hover,
#btn_mod_apertura:hover {
    background-color: #fff;
    color: #0776be;
}

#btn_collega {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
}

#btn_collega:hover {
    background-color: #fff;
    color: #0776be;
}

.contenitore.that .informazioni h4 {
    display: inline-block;
    font-size: 30px;
    width: 100%;
    margin-bottom: 6%;
    font-weight: lighter;
}

.contenitore.that .informazioni .tabella table#dgw_automazioni {
    border: none;
    width: 100%;
}

.contenitore.that .informazioni .tabella table#dgw_automazioni tbody tr {
    border-radius: 50px;
}

.contenitore.that .informazioni .tabella table#dgw_automazioni tbody tr th,
.contenitore.that .informazioni .tabella table#dgw_automazioni tbody tr td {
    border: none;
    padding: 5px 5px !important;
}

.contenitore.that .informazioni .tabella table#dgw_automazioni tbody tr td:last-child {
    color: red;
}

.contenitore.that .informazioni .tabella table#dgw_automazioni tbody tr td {
    border-bottom: 2px solid #0277bd;
}

.contenitore.that .informazioni .tabella table#dgw_automazioni tbody tr td a {
    padding: 3px 6px;
    border: 1px solid #0776be;
}

.contenitore.that .informazioni .tabella table#dgw_automazioni tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

.contenitore.that .line {
    width: 2px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 56.6vw;
    background-color: #0776be;
}

.contenitore.that .informazioni {
    position: relative;
}

.contenitore.that .informazioni .linea {
    width: 17%;
    height: 1px;
    background-color: #0776be;
    margin: 5vh auto 2vh auto;
}

.contenitore.that .informazioni > #Panel1 p {
    font-size: 25px;
    font-weight: lighter;
    margin: 20px auto 0 auto;
}

.contenitore.that .informazioni div#Panel2 .tabella table#dgw_automazioni_new tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

.all_new_users {
    display: flex;
    justify-content: center;
    text-align: center;
}

/*-----------------------------MENU STORICO------------------------------*/
.due-btn.this > #form1 {
    margin-left: 22vw;
}

#btn_data, #btn_utente, #btn_impostazioni_storico {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 28px;
    background-color: #0776be;
    border: 1px solid #0776be !important;
    margin-bottom: 10px;
}

#btn_data:hover, #btn_utente:hover, #btn_impostazioni_storico:hover {
    background-color: transparent;
    color: #0776be;
}

/*----------------------------- STORICO UTENTE------------------------------*/
.check {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    margin-bottom: 14%;
}

.home-flex.that2 .tabella.otto {
    position: absolute;
    z-index: 999;
    background: white;
    margin-left: 0;
    margin-top: 10px;
    width: 120%;
}

.home-flex.that2 {
    height: 90vh !important;
}

.home-flex.that2 #form1 {
    margin-top: -34vh;
}

#form1 .cerca p {
    margin-bottom: 0;
    margin-right: 10px;
    font-weight: bold;
}

.home-flex.that2 #form1 .cerca {
    min-width: 455px;
}

.home-flex.that2 #form1 {
    width: 500px !important;
}

#form1 .check span#lb_utente {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 0 2%;
    height: 100%;
}

.check h2 {
    font-weight: lighter;
    margin: 0 auto;
}

#btn_cambia_utente {
    color: #0277bd;
    background-color: #fff;
    border: 1px solid #0277bd !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    padding: 3px 8px !important;
    margin-left: 1vW;
}

#btn_cambia_utente:hover {
    background-color: #0277bd;
    color: #fff;
}

#form1 .cerca input#btn_cerca {
    display: inline-block;
    margin: 0 2%;
}

.home-flex.that2 #Panel1 {
    width: 30vW !important;
}

.home-flex.that2 #Panel1 .cerca input#btn_cerca_utente:hover {
    color: #fff;
    background-color: #0776be;
}

.home-flex.that2 #Panel1 .cerca input#tb_cerca {
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
}

.tabella.sei {
    z-index: 999;
}

.home-flex.that2 #form1 div#Panel1 > .tabella.sei table#dgw_utenti {
    width: 24vW;
    border: none;
}

.home-flex.that2 #form1 div#Panel1 > .tabella.sei table#dgw_utenti tbody tr {
    text-align: center;
    border-radius: 50px;
}

.home-flex.that2 #form1 div#Panel1 > .tabella.sei table#dgw_utenti tbody tr th {
    width: 15%;
}

.home-flex.that2 #form1 div#Panel1 > .tabella.sei table#dgw_utenti tbody tr th,
.home-flex.that2 #form1 div#Panel1 > .tabella.sei table#dgw_utenti tbody tr td {
    border: none;
}

.home-flex.that2 #form1 div#Panel1 > .tabella.sei table#dgw_utenti tbody tr td {
    border-bottom: 2px solid #0277bd;
}

.home-flex.that2 #form1 div#Panel1 > .tabella.sei table#dgw_utenti tbody tr td a {
    padding: 3px 6px;
    border: 1px solid #0776be;
}

.home-flex.that2 #form1 div#Panel1 > .tabella.sei table#dgw_utenti tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

.home-flex.that2 #form1 .tabella table#dgw_storico {
    margin: 0 auto;
    width: 100%;
    border: none;
}

.home-flex.that2 #form1 .tabella table#dgw_storico tbody tr {
    height: 3rem;
    text-align: center;
    border-radius: 50px;
}

.home-flex.that2 #form1 .tabella table#dgw_storico tbody tr th {
    width: 33%;
    background-color: #455a64;
    color: #ffffff;
    font-size: 22px;
    font-weight: lighter;
}

.home-flex.that2 #form1 .tabella table#dgw_storico tbody tr th,
.home-flex.that2 #form1 .tabella table#dgw_storico tbody tr td {
    border: none;
    width: 17vW;
}

.home-flex.that2 #form1 .tabella table#dgw_storico tbody tr th:first-child {
    border-top-left-radius: 10px;
}

.home-flex.that2 #form1 .tabella table#dgw_storico tbody tr th:last-child {
    border-top-right-radius: 10px;
}

.home-flex.that2 #form1 .tabella table#dgw_storico tbody tr td {
    border-bottom: 2px solid #0277bd;
}

.home-flex.that2 #form1 .tabella table#dgw_automazioni tbody tr td a {
    text-decoration: none;
    color: #0277bd;
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #0776be;
    font-size: 15px;
    border-radius: 4px;
}

.home-flex.that2 #form1 .tabella table#dgw_automazioni tbody tr td a:hover {
    color: #ffffff;
    background-color: #0277bd;
}

/*----------------------------- HOME------------------------------*/
/*----------------------------- SUPPORTO------------------------------*/
.btn-supp {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-supp #form1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 0 47vw;
    margin-top: 32vh;
}

.btn-supp #form1 #Button1,
.btn-supp #form1 #Button2,
.btn-supp #form1 #Button3,
.btn-supp #form1 #Button4,
.btn-supp #form1 #Button5,
.btn-supp #form1 #Button6,
.btn-supp #form1 #Button7,
.btn-supp #form1 #Button8,
.btn-supp #form1 #Button9,
.btn-supp #form1 #Button10,
.btn-supp #form1 #Button11,
.btn-supp #form1 #btn_stato_abbonamenti,
.btn-supp #form1 #btn_account,
.btn-supp #form1 #btn_funzioni_speciali,
.btn-supp #form1 #btn_rinomina_utenti,
input#btn_new,
input#btn_password,
input#btn_mfa,
input#btn_cambia_password,
input#btn_email_test,
input#btn_conferma_mfa {
    padding: 4px 10px !important;
    margin-bottom: 20px;
    border: 1px solid #0277bd !important;
    width: 200px;
}

#btn_new, #btn_password, #btn_mfa, #btn_cambia_password {
    min-width: 65% !important;
}

#btn_cambia_password {
    margin: 20px auto 0 auto !important;
}

.btn-supp #form1 #Button1,
.btn-supp #form1 #Button2,
.btn-supp #form1 #Button3,
.btn-supp #form1 #Button4,
.btn-supp #form1 #Button5,
.btn-supp #form1 #btn_stato_abbonamenti,
.btn-supp #form1 #btn_account,
.btn-supp #form1 #btn_funzioni_speciali,
.btn-supp #form1 #btn_rinomina_utenti {
    margin-bottom: 10px !important;
}

.btn-supp #form1 #Button1:hover,
.btn-supp #form1 #Button2:hover,
.btn-supp #form1 #Button3:hover,
.btn-supp #form1 #Button4:hover,
.btn-supp #form1 #Button5:hover,
.btn-supp #form1 #Button6:hover,
.btn-supp #form1 #Button7:hover,
.btn-supp #form1 #Button8:hover,
.btn-supp #form1 #Button9:hover,
.btn-supp #form1 #Button10:hover,
.btn-supp #form1 #Button11:hover,
.btn-supp #form1 #btn_stato_abbonamenti:hover,
.btn-supp #form1 #btn_account:hover,
.btn-supp #form1 #btn_funzioni_speciali:hover,
.btn-supp #form1 #btn_rinomina_utenti:hover,
input#btn_new:hover,
input#btn_password:hover,
input#btn_mfa:hover,
input#btn_cambia_password:hover,
input#btn_email_test:hover,
input#btn_conferma_mfa:hover {
    background-color: white;
    color: #0277bd;
    border: 1px solid #0277bd;
}

/*----------------------------- RINNOVA_ABBONAMENTO------------------------------*/
.box-conf {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
}

.box-conf > #form1 {
    width: 39vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.box-conf > #form1 > .conf {
    max-width: 730px;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 30px;
    margin-bottom: 50px;
    margin-top: 30px;
}

.box-conf > #form1 > .conf h3, .box-conf h3 {
    display: inline-block;
    font-size: 30px;
    text-align: center;
    width: 100%;
}

.box-conf > #form1 > .conf p {
    margin-bottom: 15px;
}

.box-conf > #form1 > .conf select {
    display: inline-block;
    padding-left: 5px;
    margin-right: 7px;
}

.box-conf input {
    height: 30px !important;
    margin: 12px auto 15px 12px !important;
    width: 148px !important;
    border-radius: 2px !important;
}

#lb__errore {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin: 15px auto;
}

.box-conf p #btn_continua {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    padding: 4px 10px;
    margin: 0 auto !important;
    height: 40px !important;
}

.box-conf p #btn_continua:hover {
    color: #0776be;
    background-color: white;
    border: 1px solid #0776be !important;
}

.box-conf p.anni-abb {
    width: 100%;
    text-align: center;
}

/*----------------------------- videoguida------------------------------*/
.centra-btn-guida {
    margin-top: -18vh;
}

/*----------------------------- videoguida------------------------------*/
.centra-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

#tb_richiesta {
    height: 115px !important;
    width: 201px !important;
}

#Label100 {
    font-size: 28px;
}

.centra-form #form1 {
    border: 1px solid #0277bd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 57px;
    min-width: 370px;
    flex-wrap: wrap;
    margin-top: 13vh;
    margin-left: 15vw;
    box-shadow: 0px 0px 10px #0277bd;
}

.centra-form #form1 span#Label1 {
    font-weight: normal;
    font-size: 30px;
    display: inline-block;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

#form1 .nome, #form1 .tel, #form1 .email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.centra-form #form1 input#tb_nome,
.centra-form #form1 input#Tb_tel,
.centra-form #form1 input#tb_email {
    width: 200px !important;
    margin-right: 0 !important;
    border-radius: 4px !important;
}

#form1 p.richiesta {
    color: black;
    font-size: 20px;
}

.centra-form #form1 h4 {
    font-weight: lighter;
}

textarea#tb_richiesta {
    border-radius: 5px;
    padding: 3px;
    border-color: #0776be;
}

#btn_invia {
    background-color: #0776be;
    height: 40px;
    margin: 0 auto;
}

#btn_invia:hover {
    color: #0776be;
    background-color: white;
    border: 1px solid #0776be !important;
}

#form1 p.errore {
    width: 100%;
    margin: 15px auto;
}

@media (max-width: 1500px) {
    .contenitore.that .line {
        display: none;
    }
}

@media (max-width: 1100px) {
    div#pn_cerca {
        width: 245px;
        display: inline-block;
        text-align: center;
        margin-left: -1vw;
        margin-top: 25px;
    }
}

@media (max-width: 1100px) {
    .contenitore.that .line {
        display: none;
    }
}

@media (max-width: 1200px) {
    .tab-small #form1 .pannel .linea {
        display: none;
    }

    .contenitore.that .informazioni > div#Panel1 {
        display: block;
        width: 400px;
        margin: 5% auto 0 auto;
        text-align: center;
        border-radius: 10px;
        background-color: #f5f5f5;
        position: absolute;
        padding-top: 30px;
        top: -14vh;
        right: 22vw;
        z-index: 1000;
        box-shadow: 0px 0px 10px #333;
    }
}

@media (max-width: 1320px) {
    .visual-2 {
        display: flex;
        margin-bottom: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 1300px) {
    .flexy .line {
        display: none;
    }
}

@media (max-width: 1200px) {
    .linea-utenti {
        display: none;
    }
}

@media (max-width: 1040px) {
    .contenitore.that .informazioni h4 {
        width: 62%;
    }
}

/*----------------------------- vADD RICEVENTE*/
.centra {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.id_ricevente, .pin_agg_ric {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 24px;
}

.id_ricevente {
    margin-top: 10px;
    margin-bottom: 10px;
}

.campi_id {
    display: flex;
    align-items: center;
    /* Allinea verticalmente al centro */
    justify-content: center;
    gap: 8px;
}

.campi_id input[type="text"] {
    width: 60px;
    height: 30px;
    font-size: 16px;
}

.campi_id .slash {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    /* Riduce sbilanciamenti verticali */
    padding-bottom: 2px;
    /* Centra visivamente rispetto agli input */
}

#tb_pin_aggiunta {
    border-radius: 5px;
    height: 30px;
    padding: 0 5px;
}

#form1 > p.gate_sel {
    color: black;
    font-size: 22px;
}

#form1 > #lb_gateway_lista {
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

#form1 > .pin_agg_ric p {
    font-size: 22px;
}

#form1 > .pin_agg_ric h4 {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 10px;
}

#btn_ok {
    border-radius: 10px;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    color: #fff;
    background-color: #0277bd;
    margin-bottom: 50px;
}

#btn_ok:hover {
    color: #0277bd;
    background: #fff;
}

#form1 > .campi_id p.slash {
    font-size: 30px;
    margin: auto 5px;
    margin-top: -4px;
    font-weight: lighter;
}

/*----------------------------- ACCESSI TEMPORANEI*/
.contenitore-acc {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.acc-temp {
    display: inline-block;
    text-align: center;
    position: relative;
    min-width: 35vw;
    margin-left: 19vw;
}

#btn_new_accesso {
    width: 210px !important;
    padding: 5px 10px;
    border: 1px solid #0277bd !important;
    display: block;
    margin: 0 auto 20px auto;
}

#btn_new_accesso:hover {
    color: #0277bd;
    background-color: #fff;
    border: 1px solid #0277bd;
}

.contenitore-acc > #form1 {
    width: auto !important;
}

.contenitore-acc #form1 .acc-temp table#dgw_accessi tbody tr th {
    width: auto;
    background-color: #455a64;
    color: #ffffff;
    font-size: 18px !important;
    font-weight: lighter;
}

.contenitore-acc #form1 .acc-temp table#dgw_accessi {
    width: 50vw;
}

.contenitore-acc .acc-temp #Panel1 {
    min-width: 400px;
}

#pn_password_amministratore {
    width: 400px;
}

#pn_scenario, #Pn_riepilogo {
    width: 400px;
    text-align: center;
}

#pn_esclusione > #btn_close_esclusioni {
    top: 8px !important;
    right: 8px !important;
}

#pn_password_amministratore .input_pn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#pn_password_amministratore .input_pn p {
    margin-bottom: 10px !important;
    width: 100%;
}

#tb_old_password, #tb_new_password, #tb_new_password_2, #tb_email_mfa, #tb_codice_conferma {
    border-radius: 5px;
    padding: 5px 2px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px !important;
    margin: 0 auto 15px auto;
}

.pannel .state p input#tb_new_name {
    border-radius: 5px;
    padding: 5px 2px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px !important;
    margin-left: 5px;
}

.acc-temp .cerca input#tb_cerca {
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
}

.acc-temp .cerca input#btn_cerca_utente:hover {
    color: #0776be;
    background-color: #fff;
}

.contenitore-acc #form1 .acc-temp #Panel1 input#tb_data_end,
.contenitore-acc #form1 .acc-temp #Panel1 input#tb_data_start,
input#tb_data_esclusione {
    border-radius: 10px;
    padding: 2px 1px 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px !important;
    margin: 20px auto 0 auto;
}

.contenitore-acc #form1 .acc-temp #Panel1 span#lb_selezionato,
.contenitore-acc #form1 .acc-temp #Panel1 span#lb_id_selezionato,
.contenitore-acc #form1 .acc-temp #Panel1 span#lb_nome_selezionato {
    font-size: 25px;
    font-weight: bold;
}

#lb_automazioni {
    font-size: 22px;
}

.contenitore-acc #form1 .acc-temp #Panel1 input#btn_conferma,
.contenitore-acc #form1 .acc-temp #Panel2 input#btn_delete_regola,
.contenitore-acc #form1 .acc-temp #Panel2 input#btn_delete_user {
    width: 200px !important;
    height: 27px;
    margin: 3% auto 10% auto;
    background-color: #0776be;
    border: 1px solid #0776be !important;
}

#btn_aggiungi {
    width: 200px !important;
    height: 27px;
    margin-top: 25px;
    background-color: #0776be;
    border: 1px solid #0776be !important;
}

.contenitore-acc #form1 .acc-temp #Panel1 input#btn_conferma:hover,
.contenitore-acc #form1 .acc-temp #Panel2 input#btn_delete_regola:hover,
.contenitore-acc #form1 .acc-temp #Panel2 input#btn_delete_user:hover,
input#btn_aggiungi:hover {
    background-color: #fff;
    color: #0776be;
}

.contenitore-acc #form1 .acc-temp #Panel2 {
    width: 100%;
    background-color: #ccc !important;
}

.contenitore-acc #form1 .acc-temp #Panel2 > p {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
}

#Panel2 > strong {
    display: inline-block;
    text-align: left;
}

/*-----------------------------TIMER APERTURA------------------------------*/
.cont_timer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
}

.cont_timer #form1 .day {
    width: 100%;
}

.cont_timer #form1 {
    width: 510px;
    margin-left: 19vw;
}

#btn_add, #btn_esclusioni {
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    background-color: #0277bd;
    color: #fff;
    font-size: 15px;
    margin-top: 20px;
}

#btn_add_esclusione {
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    margin-bottom: 15px;
}

#btn_add:hover, #btn_esclusioni:hover, #btn_add_esclusione:hover {
    background-color: #fff;
    color: #0277bd;
}

input[type="checkbox"]#cb_lu,
input[type="checkbox"]#cb_ma,
input[type="checkbox"]#cb_me,
input[type="checkbox"]#cb_gi,
input[type="checkbox"]#cb_ve,
input[type="checkbox"]#cb_sa,
input[type="checkbox"]#cb_do,
input[type="checkbox"]#cb_attiva,
input[type="checkbox"]#cb_finecorsa {
    height: 15px !important;
}

/*----------------------------- STATO ABBONAMENTI*/
.stato_abb h1, .stato_abb #form1 h2 {
    font-weight: lighter;
    font-size: 32px;
}

.stato_abb > #form1 .linea-abb {
    width: 60%;
    display: inline-block;
    margin: 50px auto 40px auto;
    background-color: #0277bd;
    height: 1.5px;
}

.stato_abb {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stato_abb > #form1 {
    text-align: center;
    padding-top: 100px;
    margin-left: 17vw;
}

#dgw_gruppi {
    display: inline-block;
}

/*----------------------------- ACCOUNT PORTALE------------------------------*/
.centra_account {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-top: 50px;
    text-align: center;
}

#btn_new {
    margin: 0 auto 25px auto !important;
}

.line-acc {
    display: inline-block;
    width: 60%;
    height: 1.5px;
    background-color: #0277bd;
    margin: 25px auto 35px auto;
}

.centra_account #form1 table#dgw_utenti, .centra_account #pn_esclusione table#gw_esclusioni {
    display: inline-block;
    margin-bottom: 25px;
}

.centra_account #form1 {
    width: 400px;
}

#pn_seleziona .pannel {
    border-radius: 5px;
}

#pn_seleziona {
    position: relative;
}

#pn_seleziona .pannel .sel {
    text-align: right;
}

.id_sel {
    font-size: 20px;
    margin-bottom: 25px;
}

.check_visual {
    margin-bottom: 25px;
}

#pn_seleziona .pannel .state #btn_conferma,
#pn_seleziona .pannel .state #btn_elimina,
#pn_seleziona .pannel .state #btn_reset,
#btn_conferma_remoto {
    padding: 4px 10px !important;
    margin: 0 auto 15px auto !important;
    background-color: #0277bd;
    border: 1px solid #0277bd !important;
    display: inline-block;
    width: 249px !important;
}

#pn_seleziona .pannel .state #btn_conferma:hover,
#pn_seleziona pannel .state #btn_elimina:hover,
#pn_seleziona pannel .state #btn_reset:hover,
#btn_conferma_remoto:hover {
    background-color: white;
    color: #0277bd;
    border: 1px solid #0277bd;
}

h2.storico_acc {
    font-weight: lighter;
    font-size: 30px;
}

.cerca_data input#tb_data {
    padding: 2px 1px 2px 4px;
    border: 1px solid #d6d6d6 !important;
    width: 200px !important;
    margin-left: 5px;
}

.cerca_data input#btn_cerca {
    margin-left: 5px;
}

.cerca_data {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/*-----------------------------PRIMO ACCESSO------------------------------*/
.primo_accesso {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
}

.primo_accesso #form1 {
    width: 45vw;
}

.primo_accesso #form1 h1 {
    font-weight: lighter;
    text-align: center;
    margin-bottom: 60px;
    border: 1px solid #2e86bb;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0px 0px 10px #2e86bb;
}

.primo_accesso #form1 h2 {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-weight: normal;
}

.primo_accesso #form1 p {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 15px;
    margin-top: 0 !important;
    color: forestgreen;
}

#tb_nome_gruppo, #tb_automazione_1, #tb_automazione_2 {
    display: block;
    border-radius: 5px;
    border: 1px solid #d6d6d6 !important;
    height: 24px;
    margin: 10px auto 25px auto;
    padding: 0 5px;
}

#lb_old_1, #lb_old_2 {
    margin-top: 25px;
    display: inline-block;
    text-align: center;
    color: #2e86bb;
    width: 100%;
    font-size: 25px;
}

#lb_old_2 {
    margin-top: 0 !important;
}

.primo_accesso input#btn_continua {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    margin: 0 auto !important;
    height: 40px !important;
}

.primo_accesso input#btn_continua:hover {
    color: #0776be;
    background-color: white;
    border: 1px solid #0776be !important;
}

.primo_accesso #form1 span#lb_errore {
    display: inline-block;
    text-align: center;
    width: 100%;
    margin: 20px auto;
}

.logo_welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.logo_welcome img {
    width: 240px;
    height: 80px;
}

.centra-storico {
    display: flex;
    width: 400px;
    margin-left: -9vw;
}

/*-----------------------------RISCATTA UTENTI------------------------------*/
.centra_riscatta, .centra_riscatta_1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    margin-top: 170px;
    margin-left: 8vw;
}

.centra_riscatta #form1 {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 0px 10px #ccc;
    position: relative;
}

.centra_riscatta_1 #form1 p {
    display: inline-block;
    font-size: 12px;
}

#tb_codice {
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    margin: 0 auto;
}

.centra_riscatta > #form1 > #btn_confirm {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    background-color: #0776be;
    margin: 20px auto 0 auto;
}

#btn_confirm:hover {
    background-color: #fff;
    color: #0776be;
}

.centra_riscatta #form1 h2 {
    display: inline-block;
    margin-bottom: 30px;
}

.centra_riscatta > #form1 > p > #lb_errore {
    display: inline-block;
    font-size: 20px;
}

#Pn_conferma {
    /* font-weight: bold; */
    width: 100%;
    border-radius: 7px;
    border: 0px solid #333;
}

#Pn_conferma p {
    margin-bottom: 0;
}

.centra_riscatta #form1 div#Pn_conferma span#lb_errore_2 {
    display: inline-block;
}

/*-----------------------------DOPPIA AUTENTICAZIONE------------------------------*/
.doppia > #form1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    margin-top: 100px;
    margin-left: 19vw;
}

.doppia #form1 h1 {
    font-weight: lighter;
    width: 100%;
    display: inline-block;
}

.doppia {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
}

.doppia #form1 #Panel2 {
    width: 55vw;
}

.doppia #form1 #Panel2 p {
    margin-bottom: 30px !important;
}

#btn_cambia {
    padding: 4px 10px !important;
    border: 1px solid #0277bd !important;
    width: 200px;
}

#btn_cambia:hover {
    color: #0277bd !important;
    background-color: white;
}

.doppia #form1 #Panel1 {
    display: inline-block;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.doppia #form1 #Panel1 p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.doppia #form1 #Panel1 p strong {
    margin-left: 5px;
    color: #0277bd;
}

.doppia > #form1 #Panel1 .bottoni > #btn_new, #btn_download {
    padding: 4px 10px !important;
    margin: 0 auto !important;
    border: 1px solid #0277bd !important;
    width: 200px;
}

.doppia > #form1 #Panel1 .bottoni input#btn_new:hover,
.doppia > #form1 #Panel1 .bottoni input#btn_download:hover {
    color: #0277bd;
    background-color: white;
}

/*-----------------------------APP ADD USER------------------------------*/
/*-----------------------------APP CONNECT USER------------------------------*/
/*-----------------------------APP DELETE USER------------------------------*/
.app_add_utente, .app_connect_user, .app_delete_user {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.app_delete_user > #form1 #lb_id, .app_delete_user > #form1 #lb_indicazioni {
    display: inline-block;
    margin: 30px auto;
    font-size: 22px;
}

.app_add_utente > #form1 table#dgw_automazioni_new tbody tr td,
.app_connect_user > #form1 table#dgw_automazioni_new tbody tr td,
.app_delete_user > #form1 table#dgw_automazioni_new tbody tr td,
.centra_account #pn_esclusione table#gw_esclusioni tbody tr td {
    border-bottom: 1px solid #0277bd !important;
}

.app_add_utente span#lb_errore_new_user,
.app_connect_user span#lb_error_add,
.app_delete_user span#lb_error_add {
    display: inline-block;
    margin-bottom: 17px;
}

.app_add_utente > input#btn_ok:hover, .app_connect_user > input#btn_ok:hover {
    color: #0277bd !important;
    background: #fff !important;
}

.app_add_utente h3, .app_connect_user h3 {
    font-weight: normal;
}

.app_connect_user input#tb_id, .app_connect_user input#tb_pin {
    display: inline-block;
    border-radius: 5px;
    border: 1px solid #d6d6d6 !important;
    height: 30px;
    padding: 0 5px;
}

/*-----------------------------MODALITA' USCITA------------------------------*/
#form1 h5.title {
    display: inline-block;
    margin-top: 10vh;
    font-size: 24px;
}

#lb_mod_attuale {
    color: #0776be;
}

.centra_account #form1 h4 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centra_account #form1 select#dp_modalita {
    display: inline-block;
    margin-left: 5px;
    border-radius: 5px;
}

.centra_account #form1 input#btn_conferma {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    background-color: #0776be;
    border: 1px solid #0776be !important;
    margin: 0 auto;
    width: 200px;
}

.centra_account #form1 input#btn_conferma:hover {
    color: #0776be;
    background-color: white;
}

.centra_account #form1 p span#lb_errore {
    display: inline-block;
    font-size: 16px;
    margin: 25px 0;
}

/*-----------------------------NASCONDI AUTOMAZIONI------------------------------*/
#dp_gruppi_wiengand,
#dp_tipo_wiengand,
#dp_tasto_wiengand,
#dp_automazione_wiengand,
#dp_vista_2,
#dp_vista_2_gruppo,
#dp_vista_2_categorie,
#dp_vista_2,
.tab-small #form1 #pn_centrale .pannel p > #tb_new_name,
.tab-small #form1 #pn_centrale .pannel p > #dp_tipo,
.tab-small #form1 #pn_centrale .pannel p > #dp_modalita,
#tb_durata {
    border-radius: 10px;
    border: 1px solid #ccc;
    height: 28px !important;
    display: inline-block;
    padding-left: 5px;
}

/*-----------------------------DOPPIA AUTENTICAZIONE------------------------------*/
#Panel2 > .cont-pannels > #btn_close {
    right: 1.2% !important;
}

/*-----------------------------NOTIFICHE------------------------------*/
#tb_testo_apertura, #tb_testo_chiusura {
    width: 100%;
    padding: 3px;
    margin: 10px auto;
}

#Panel1 p.selezione {
    margin-bottom: 15px;
}

.cerca_notifiche {
    align-items: center;
}

.cerca_notifiche input#btn_cerca_utente:hover {
    background-color: #0776be;
    color: white;
}

.cerca_notifiche input#tb_cerca, p > input#tb_cerca {
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabella-notifiche #Panel1 input#btn_close {
    position: absolute;
    top: 10px;
    right: 10px;
}

/*-----------------------------ADD GATEWAY------------------------------*/
.id_gateway {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 22px;
}

div.campi_id {
    margin-bottom: 25px;
}

.id_gateway h5 {
    display: inline-block;
    margin: 25px auto;
}

#tb_id_1 {
    padding: 0 5px;
}

.due-btn #form1 .id_gateway div span#lb_error {
    display: inline-block !important;
    font-size: 18px;
    text-align: center;
}

/*-----------------------------ADD ALEXA------------------------------*/
.centra_account #form1 p {
    font-size: 20px;
    color: black;
    font-weight: normal;
}

#tb_email, #tb_pin_sicurezza {
    width: 100%;
    /* height: 27px; */
    border-radius: 10px;
    padding: 10px;
    font-size: 22px;
    margin: 3% auto 10% auto;
}

#Panel_inserimento {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#Panel_inserimento div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#Panel_inserimento .app-tessere-form {
    max-width: 700px;
    flex-direction: column;
    gap: 0;
}

#Panel_inserimento .app-tessere-riga {
    gap: 8px;
    margin-bottom: 14px;
}

#Panel_inserimento .app-tessere-codice, #Panel_inserimento .app-tessere-codice {
    flex-wrap: wrap;
}

#Panel_inserimento .app-tessere-rc {
    flex-direction: column;
    gap: 10px;
    margin: 2px 0 12px;
}

#Panel_inserimento .app-tessere-rc .app-tessere-riga {
    margin: 0;
}

#Panel_inserimento .app-tessere-messaggio {
    min-height: 20px;
    margin: 6px 0 16px;
    line-height: 1.4;
}

#Panel_inserimento .app-tessere-azioni {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

#Panel_inserimento h4, #Panel_tasti_rc h4 {
    width: 100%;
    margin: 10px 0 18px;
    color: #0776be;
    font-size: 21px;
    font-weight: normal;
}

#Panel_inserimento #dgw_wiengand, #Panel_tasti_rc #dgw_tasti_rc {
    width: 100%;
    margin: 0 auto 20px;
    border: none;
    border-collapse: collapse;
}

#Panel_inserimento #dgw_wiengand tbody tr, #Panel_tasti_rc #dgw_tasti_rc tbody tr {
    height: 3rem;
    text-align: center;
}

#Panel_inserimento #dgw_wiengand tbody tr th, #Panel_tasti_rc #dgw_tasti_rc tbody tr th {
    padding: 9px 10px;
    border: none;
    background-color: #455a64;
    color: #fff;
    font-size: 16px;
    font-weight: lighter;
}

#Panel_inserimento #dgw_wiengand tbody tr th:first-child,
#Panel_tasti_rc #dgw_tasti_rc tbody tr th:first-child {
    border-top-left-radius: 10px;
}

#Panel_inserimento #dgw_wiengand tbody tr th:last-child,
#Panel_tasti_rc #dgw_tasti_rc tbody tr th:last-child {
    border-top-right-radius: 10px;
}

#Panel_inserimento #dgw_wiengand tbody tr td, #Panel_tasti_rc #dgw_tasti_rc tbody tr td {
    padding: 8px 10px;
    border: none;
    border-bottom: 2px solid #0277bd;
    background-color: #fff;
}

#Panel_inserimento #dgw_wiengand tbody tr td a, #Panel_tasti_rc #dgw_tasti_rc tbody tr td a {
    display: inline-block;
    margin: 2px 3px;
    padding: 3px 6px;
    border: 1px solid #0776be;
    border-radius: 4px;
    color: #0277bd;
    font-size: 15px;
    text-decoration: none;
}

#Panel_inserimento #dgw_wiengand tbody tr td a:hover,
#Panel_tasti_rc #dgw_tasti_rc tbody tr td a:hover {
    color: #fff;
    background-color: #0277bd;
}

#Panel_tasti_rc {
    position: relative;
    max-width: 700px;
    margin: 20px auto 0;
    padding-top: 42px;
}

#Panel_tasti_rc input#btn_close_tasti_rc {
    position: absolute;
    top: 0;
    left: 16px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #0776be !important;
    border-radius: 8px;
    color: #fff;
    background-color: #0776be;
    font-size: 15px;
    cursor: pointer;
}

#Panel_tasti_rc input#btn_close_tasti_rc:hover {
    color: #0776be;
    background-color: #fff;
}

#Panel_tasti_rc h4 {
    margin-top: 0;
}

.app-tessere-qr-overlay {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .88);
}

.app-tessere-qr-contenuto {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.app-tessere-qr-immagine {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}

.app-tessere-qr-istruzioni {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 70px;
    left: 16px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

input.app-tessere-qr-close {
    position: absolute;
    z-index: 1;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid #fff !important;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .42);
    font-size: 32px;
    font-weight: 300;
    line-height: 36px;
    cursor: pointer;
}

.app_delete_user .app-tessere-cerca {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    margin: 0 auto 24px;
}

.app_delete_user .app-tessere-cerca input#tb_cerca {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #b8c7cf !important;
    border-radius: 8px;
    font-size: 15px;
}

.app_delete_user .app-tessere-cerca input#tb_cerca:focus {
    border-color: #0776be !important;
    box-shadow: 0 0 0 3px rgba(7, 118, 190, .15);
}

#btn_cerca_utente {
    min-width: 90px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #0776be !important;
    border-radius: 8px;
    color: #fff;
    background-color: #0776be;
    font-size: 15px;
    cursor: pointer;
}

#btn_cerca_utente:hover {
    color: #0776be;
    background-color: #fff;
}

.btn-webapp {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    background-color: #0776be !important;
    border: 1px solid #0776be !important;
    border-radius: 6px;
    text-decoration: none !important;
    line-height: 1.2;
    transition: background-color .2s, border-color .2s;
}

.btn-webapp:hover {
    background-color: #055a92 !important;
    border-color: #055a92 !important;
    color: #fff !important;
}

/* Fissa il bottone in alto a destra */
.webapp-button {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    text-align: right;
}

/* Box tooltip generico */
/* POSIZIONE: a sinistra del bottone (niente overflow a destra) */
/* Freccia che punta verso il bottone (a destra) */
/* Mobile: restringi un po' il tooltip */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

input.btn-collega {
    display: block;
    width: 265px;
    margin: 20px auto 0 auto;
    padding: 6px 12px;
}

input.btn-collega:hover {
    background-color: white;
    color: #0277bd;
}

input.btn-grid {
    background-color: white !important;
    border: 1px solid #0277bd !important;
    color: #0277bd !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    min-width: 85px;
    margin: 4px 6px;
    /* ⬅️ Spazio orizzontale tra pulsanti */
    transition: background-color 0.2s, color 0.2s;
}

input.btn-grid:hover {
    background-color: #0277bd !important;
    color: white !important;
}

/* Posizionamento centrato per Panel1 come Panel4 */
.informazioni2 div#Panel1 {
    /* correzione per sidebar */
    width: 400px;
    box-shadow: 0px 0px 15px #333;
}

/* Dropdown stile coerente */
.gateway-dropdown {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-top: 10px;
}

.input-cerca {
    padding: 2px 4px;
    border: 1px solid #d6d6d6 !important;
    justify-content: center;
    align-items: center;
    height: 26px;
}

.btn-cerca {
    justify-content: center;
    align-items: center;
    border: 1px solid #0776be !important;
    padding: 3px 8px;
    color: #0277bd;
    background-color: #fff;
}

.btn-cerca:hover {
    background-color: #007BFF;
    color: white;
}

/* contenitore panel (modal) */
#pn_gestione_categorie {
    /* compenso sidebar come Panel4 */
    width: 420px;
}

/* pulsante chiusura (ImageButton) */
/* titolo */
#pn_gestione_categorie .titolo-panel {
    text-align: center;
    font-weight: lighter;
    font-size: 26px;
    color: #333;
}

/* linea separatrice (quella che hai già dentro) */
#pn_gestione_categorie .linea {
    width: 60%;
    height: 1.2px;
    background-color: #0776be;
}

/* blocco "Nuova categoria" */
#pn_gestione_categorie .nuova-cat {
    text-align: center;
}

#pn_gestione_categorie .nuova-cat label {
    color: #333;
}

/* textbox (asp:TextBox) */
#tb_nome_categoria, #pn_gestione_categorie .textbox-generico {
    padding: 6px 10px;
    border: 1px solid #d6d6d6 !important;
}

/* bottone aggiungi (asp:Button) */
#btn_aggiungi_categoria, #pn_gestione_categorie input.btn-categorie {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0776be !important;
    padding: 6px 12px;
    font-size: 14px;
    min-width: 110px;
    height: 32px;
}

#btn_aggiungi_categoria:hover, #pn_gestione_categorie input.btn-categorie:hover {
    background-color: #fff;
    color: #0277bd;
}

/* =========================
GridView Categorie
========================= */
#gv_categorie th {
    padding: 10px 8px;
}

#gv_categorie td {
    background-color: #fff;
    padding: 10px 8px;
    text-align: center;
}

/* link "Elimina" (CommandField) */
#gv_categorie td a, #gv_categorie td input[type="submit"] {
    padding: 4px 10px;
    border: 1px solid #0776be;
    border-radius: 6px;
    background: #fff;
}

#gv_categorie td a:hover, #gv_categorie td input[type="submit"]:hover {
    color: #ffffff;
    background-color: #0277bd;
}

/* LAYOUT SCHEDULAZIONE A 2 COLONNE */
.schedu-layout {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    padding: 40px 30px;
}

.schedu-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedu-col .small-width, .schedu-col .info.this {
    width: 100% !important;
    max-width: 700px;
}

/* opzionale: linea centrale */
.schedu-layout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #0776be;
}

.utenti-col-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#div_opacizzato_1, #div_opacizzato_2 {
    display: block !important;
    max-width: 700px !important;
    position: static !important;
    margin: 0 auto !important;
}

#div_opacizzato_1 {
    margin-bottom: 20px !important;
}

.utenti-col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.utenti-col-right .informazioni {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.utenti-col-right .contatori,
.utenti-col-right p,
.utenti-col-right h4,
.utenti-col-right .tabella,
.utenti-col-right .linea {
    margin-left: auto !important;
}

.utenti-col-right .tabella {
}

.utenti-col-right .reimposta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.utenti-col-right .reimposta input, .utenti-col-right > div input[type="submit"] {
    margin-left: auto !important;
    margin-right: auto !important;
}

.utenti-col-right .tabella {
    margin: 0 auto !important;
}

/*----------------------------- ALL_UTENTI: REGOLE SPECIFICHE DELLA PAGINA ------------------------------*/
/* Solo <body class="pagina-utenti">. Layout a due colonne, pannelli centrati, caratteri delle tabelle e animazioni
sono le regole comuni (sezione 2); qui restano solo gli aggiustamenti degli elementi di questa pagina */
/* la linea verticale fissa a 56.6vw non segue le colonne: la sostituisce il bordo delle .colonna */
.pagina-utenti .contenitore.utenti-layout .line {
    display: none !important;
}

.pagina-utenti .contenitore.that .cerca.questa {
    width: 100% !important;
}

.pagina-utenti .contenitore.that .informazioni {
    position: static !important;
    top: auto !important;
    width: 100% !important;
}

/* ricerca in diretta: campo allineato al bordo sinistro della tabella, 12px sopra di essa */
.pagina-utenti .contenitore.that .cerca.questa .cerca_under_visual {
    display: flex;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
}

.pagina-utenti #div_opacizzato_1 {
    margin-bottom: 12px !important;
}

/* le 3 righe in alto nella colonna destra (contatori, selezionato, categoria) */
#div_opacizzato_3 .contatori {
    margin: 0 0 24px !important;
    line-height: 1.3;
}

#div_opacizzato_3 > p {
    margin: 0 0 12px !important;
    line-height: 1.3;
}

#div_opacizzato_3 .riga-categoria {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#div_opacizzato_3 .riga-categoria select, #btn_categorie {
    height: 30px;
    margin: 0 !important;
}

#div_opacizzato_3 > h4 {
    margin-top: 28px !important;
}

/* tabelle larghe quanto la colonna */
#div_opacizzato_2, .pagina-utenti .utenti-col-right .tabella {
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto;
}

/* div che avvolge la GridView: dentro a .tabella (flex) si stringerebbe al contenuto */
#div_opacizzato_2 > div, .pagina-utenti .utenti-col-right .tabella > div {
    flex: 1 1 100%;
    width: 100%;
}

/* ---- pannelli: larghezze ---- */
.pagina-utenti div#Panel2, .pagina-utenti div#Panel3 {
    width: 480px !important;
}

/* ---- pannelli: titoli che sono etichette del server (non hanno la classe pannello-titolo) ---- */
.pagina-utenti #Panel4 > #lb_copia, .pagina-utenti #Panel7 > #lb_massa_descrizione {
    margin: 0 0 20px !important;
    padding: 0 24px !important;
    line-height: 1.25 !important;
}

.pagina-utenti #Panel4 > #lb_copia:empty, .pagina-utenti #Panel7 > #lb_massa_descrizione:empty {
    display: none !important;
}

/* casella Amministratore attaccata alla sua scritta */
.pagina-utenti div#Panel1 .visual {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto !important;
    margin: 0 !important;
}

#Panel1 .visual input, #Panel1 .visual label {
    margin: 0 !important;
}

/* Nuovo utente / Collega utente: etichette, campi, testi */
#Panel2 > h3, #Panel3 > h3, #Panel3 > h6 {
    margin: 14px 0 6px !important;
    line-height: 1.25 !important;
}

#Panel2 > h4 + h3, #Panel3 > h2 + h6 {
    margin-top: 0 !important;
}

#Panel2 > input[type="text"], #Panel3 > input[type="text"] {
    display: block;
    width: 100% !important;
    margin: 0 !important;
}

.pagina-utenti div#Panel2 > p, .pagina-utenti div#Panel3 > p {
    margin: 14px 0 0 !important;
    line-height: 1.35 !important;
}

#Panel2 > h3:has(input[type="checkbox"]), #Panel3 > h3:has(input[type="checkbox"]) {
    margin: 16px 0 0 !important;
}

/* "Seleziona tutte" */
.pagina-utenti div#Panel1 input[id^="btn_select_all"],
.pagina-utenti div#Panel2 input[id^="btn_select_all"],
.pagina-utenti div#Panel3 input[id^="btn_select_all"],
.pagina-utenti div#Panel4 input[id^="btn_select_all"],
.pagina-utenti div#Panel7 input#btn_massa_select_all {
    margin: 12px auto 0 !important;
}

#Panel2 .all_new_users, #Panel3 > p:has(input[type="submit"]) {
    margin: 0 !important;
}

/* messaggi di errore: niente spazio se vuoti */
.pagina-utenti div#Panel2 span#lb_errore_new_user:not(:empty),
.pagina-utenti div#Panel3 span#lb_error_add:not(:empty),
.pagina-utenti div#Panel1 span#lb_error_new:not(:empty) {
    display: block;
    margin-top: 14px;
}

#Panel3 > br, #Panel6 .centra_pannel > br {
    display: none;
}

.pagina-utenti #Panel1 > p:has(span#lb_error_new:empty) {
    display: none;
}

/* pulsanti di conferma */
.pagina-utenti input#btn_conferma_new_user,
.pagina-utenti input#btn_conferma_add_user,
.pagina-utenti input#btn_conferma_new,
.pagina-utenti input#btn_copia_confirm,
.pagina-utenti input#btn_massa_confirm,
.pagina-utenti input#btn_conferma_remoto {
    display: block !important;
    margin: 20px auto 0 !important;
}

.pagina-utenti div#Panel1 > p:last-of-type,
.pagina-utenti div#Panel6 .centra_pannel > p:last-of-type {
    margin: 0 !important;
}

/* filtri (Copia, Massa) */
.pagina-utenti div#Panel4 .visual-2, .pagina-utenti div#Panel7 .visual-2 {
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px !important;
}

.pagina-utenti div#Panel4 input#tb_cerca_copia, .pagina-utenti div#Panel4 input#btn_cerca_copia {
    margin: 0 4px !important;
    vertical-align: middle;
}

/* Badge/Pin/RC: un'unica griglia per tutte le righe del modulo, così etichette e campi sono allineati
colonna 1 = etichette (a destra) | colonna 2 = campi, tutti larghi uguali | colonna 3 = pulsante "Leggi badge" */
#Panel5 .wiengand-form {
    display: grid !important;
    grid-template-columns: max-content 200px max-content;
    justify-content: center;
    align-items: center;
    gap: 10px 10px;
}

/* le righe non fanno da contenitore: i loro elementi finiscono direttamente nella griglia */
#Panel5 .wiengand-form > .wiengand-gruppo,
#Panel5 .wiengand-form > .wiengand-tipo,
#Panel5 .wiengand-form > .wiengand-campi,
#Panel5 .wiengand-form > .wiengand-rc-campi {
    display: contents !important;
}

.pagina-utenti div#Panel5 .wiengand-form .wiengand-etichetta,
.pagina-utenti div#Panel5 .wiengand-form span#lb_codice_wiengand,
.pagina-utenti div#Panel5 .wiengand-form span#lb_tasto_wiengand,
.pagina-utenti div#Panel5 .wiengand-form span#lb_automazione_wiengand {
    grid-column: 1;
    text-align: right;
}

#Panel5 .wiengand-form select, #Panel5 .wiengand-form input[type="text"] {
    grid-column: 2;
    width: 100% !important;
    margin: 0 !important;
}

/* menu a tendina e campo codice tutti alti uguale (prima 28 e 26px) */
#Panel5 .wiengand-form select:not(#\#):not(#\#):not(#\#),
#Panel5 .wiengand-form input[type="text"]:not(#\#):not(#\#):not(#\#) {
    height: 30px !important;
    box-sizing: border-box;
}

.pagina-utenti div#Panel5 .wiengand-form input#btn_leggi_wiengand {
    grid-column: 3;
    justify-self: start;
}

/* QR: c'è solo il pulsante, sotto ai campi */
.pagina-utenti div#Panel5 .wiengand-form input#btn_genera_qr_wiengand {
    grid-column: 2;
    justify-self: stretch;
}

/* messaggio e pulsante Aggiungi su tutta la larghezza, centrati */
#Panel5 .wiengand-form > .wiengand-dettagli, #Panel5 .wiengand-form > .wiengand-azioni {
    grid-column: 1 / -1;
    margin: 0 !important;
}

#Panel5 .wiengand-form > .wiengand-dettagli:not(:has(span:not(:empty))) {
    display: none !important;
}

#Panel5 .wiengand-form > .wiengand-azioni {
    margin-top: 6px !important;
}

#Panel5 .wiengand-azioni p {
    margin: 0 !important;
}

#Panel5 .wiengand-titolo-tabella {
    margin: 24px 0 12px !important;
}

.pagina-utenti #Panel5 #dgw_wiengand {
    margin: 0 auto !important;
}

/* Tasti RC: "Tasto 1" andava a capo */
.pagina-utenti div#Panel8 #dgw_tasti_rc td {
    white-space: nowrap;
}

/* gestione categorie: etichetta, campo e Aggiungi sulla stessa riga */
#pn_gestione_categorie > .linea {
    margin: -8px auto 18px !important;
}

#pn_gestione_categorie .nuova-cat {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#pn_gestione_categorie .nuova-cat > label {
    white-space: nowrap;
}

/*----------------------------- TASTO X DI CHIUSURA (tutto il portale) ------------------------------*/
/* Gli ImageButton con immagini/exit.png restano tali (stesso evento Click lato server), ma l'immagine
statica viene nascosta e la X è disegnata in SVG: cerchio blu iOpen e X che ruota al passaggio del mouse */
input[type="image"][src$="exit.png"] {
    border: none !important;
    border-radius: 50% !important;
    /* sposta l'immagine statica fuori dal pulsante */
    object-position: -9999px 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 1.5l11 11M12.5 1.5l-11 11' stroke='%230277bd' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat !important;
    transition: background-color 0.2s ease, transform 0.25s ease, box-shadow 0.2s ease;
    z-index: 5;
}

/* la misura vince sempre: alcune pagine fissano larghezza/altezza della X con !important e selettori con più ID
(es. ".contenitore-acc #form1 .acc-temp #Panel1 input#btn_close"); i :not(#_) alzano la specificità */
input[type="image"][src$="exit.png"]:not(#_):not(#_):not(#_):not(#_) {
    width: 32px !important;
    height: 32px !important;
}

input[type="image"][src$="exit.png"]:hover {
    background-color: #0277bd !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 1.5l11 11M12.5 1.5l-11 11' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    box-shadow: 0 2px 8px rgba(2, 119, 189, 0.35);
    transform: rotate(90deg);
}

input[type="image"][src$="exit.png"]:active {
    transform: rotate(90deg) scale(0.9);
}

input[type="image"][src$="exit.png"]:focus-visible {
    outline: 3px solid rgba(2, 119, 189, 0.35);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    input[type="image"][src$="exit.png"] {
        transition: none;
    }

    input[type="image"][src$="exit.png"]:hover, input[type="image"][src$="exit.png"]:active {
        transform: none;
    }
}

/*----------------------------- PAGINE MIGRATE A PORTALE-UI: AGGIUSTAMENTI SPECIFICI ------------------------------*/
/* Accessi_temporanei: prima di scegliere l'utente i campi tra i <br /> sono nascosti ma gli a capo restano */
.acc-temp #Panel1:not(:has(#tb_data_start)) > br {
    display: none;
}

/* Schedulazione: la linea centrale fissa non segue le colonne, la sostituisce il bordo delle .colonna */
.schedu-layout.layout-due-colonne::before, .schedu-layout.layout-due-colonne > .line {
    display: none !important;
}

.schedu-layout.layout-due-colonne .small-width, .schedu-layout.layout-due-colonne table#dgw_utenti {
    max-width: none !important;
}

/* Schedulazione: titolo, ricerca e tabella con gli stessi spazi sia nella lista utenti sia dopo Seleziona
   (ricerca 12px sotto il titolo e 12px sopra la tabella) */
.tabella #form1 .schedu-layout #lb_prima_tabella {
    margin-bottom: 12px;
}

.tabella #form1 .ricerca-schedu + div > table#dgw_utenti {
    margin-top: 0 !important;
}

/* pannello di copia: Seleziona Tutte, poi la ricerca 12px sotto e la tabella 12px sotto la ricerca */
#Panel1 > .pannel.this #pn_ricerca {
    margin-top: 12px !important;
}

#Panel1 > .pannel.this #pn_ricerca + div > table#dgw_copia,
#Panel1 > .pannel.this #pn_ricerca + table#dgw_copia {
    margin-top: 0 !important;
}

/* la ricerca della lista utenti uguale a quella delle automazioni (input.ui-ricerca) */
.tabella #form1 .ricerca-schedu input#tb_cerca {
    width: 155px;
    padding: 2px 8px !important;
}

/* Doppia_autenticazione: 600px fissi erano pochi per la tabella delle automazioni */
.doppia:has(.ui-ricerca-riga) > #form1 table#dgw_automazioni {
    width: min(800px, 60vw) !important;
}

.doppia:has(.ui-ricerca-riga) > #form1 table#dgw_automazioni tr th {
    width: auto !important;
    padding: 0 10px !important;
}

/* Storico_utente: nel pannello di scelta utente il contenitore della tabella aveva larghezza e margine fissi */
#Panel1.pannello-centrato > .tabella.sei {
    width: auto !important;
    margin: 0 !important;
}

/* Stato_abbonamento: 600px erano pochi per le tabelle di gruppi, gateway e riceventi */
.stato_abb:has(.ui-ricerca-riga) > #form1 {
    width: min(900px, 65vw) !important;
}

.stato_abb:has(.ui-ricerca-riga) #div_opacizzato_1 {
    max-width: none !important;
}

/* Videoguida: i pulsanti hanno testi lunghi in una larghezza fissa */
.centra-btn-guida .btn-supp input[type="submit"] {
    font-size: 13.3333px;
}


/* =====================================================================================
2. COMPONENTI COMUNI (layout, pannelli, ricerca, animazioni)
===================================================================================== */
/* ---------- Niente barra di scorrimento orizzontale ----------
diverse pagine hanno contenitori larghi 100% più un margine sinistro che sforano di pochi pixel.
Solo su body: il browser lo passa alla finestra, così la pagina scorre normalmente in verticale
(su html e body insieme il body diventerebbe un riquadro a sé e taglierebbe il fondo della pagina) */
body {
    overflow-x: hidden;
}

/* ---------- Layout a due colonne affiancate a destra del menu (.col-2 = 20% della larghezza) ---------- */
/* la regola generale #form1 { width: 300px } stringerebbe tutto */
:is(#form1, #form2):has(.layout-due-colonne) {
    width: 100% !important;
    max-width: none !important;
}

/* la pagina non scorre: scorre ciascuna colonna */
body:has(.layout-due-colonne) {
    overflow: hidden;
}

/* posizionato rispetto alla finestra, così non dipende da come è annidato il form nella pagina */
:is(#form1, #form2) .layout-due-colonne {
    position: fixed !important;
    top: 0 !important;
    left: 20vw !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    width: 80vw !important;
    max-width: none !important;
    height: 100vh;
    min-height: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

:is(#form1, #form2) .layout-due-colonne > .colonna {
    position: relative !important;
    top: auto !important;
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    height: 100vh;
    margin: 0 !important;
    padding: 25px 2vw !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box !important;
}

/* separatore tra le colonne */
:is(#form1, #form2) .layout-due-colonne > .colonna + .colonna {
    border-left: 2px solid #0776be;
}

/* i blocchi non si restringono per stare in altezza: deve scorrere la colonna, non la tabella */
:is(#form1, #form2) .layout-due-colonne > .colonna > * {
    flex-shrink: 0;
}

/* ---------- Ricerca in diretta sopra le tabelle ----------
markup da mettere subito prima della tabella (input semplice, non viene inviato al server):
  <div class="ui-ricerca-riga"><input type="text" class="ui-ricerca" placeholder="Cerca..." autocomplete="off"
       data-filtra-tabella="id_tabella" data-filtra-vuoto="Nessun risultato" data-invio="" /></div>
stesso aspetto dei campi del portale, allineato al bordo sinistro della tabella, 12px sopra di essa */
.ui-ricerca-riga {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    box-sizing: border-box;
}

input.ui-ricerca {
    width: 155px;
    height: 26px;
    margin: 0 !important;
    padding: 2px 8px !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 13.33px;
}

/* spazi uguali ovunque: la tabella subito dopo la ricerca sta 12px sotto (il margine della riga di ricerca),
   anche se una vecchia regola della pagina le dà un margine superiore; un pulsante subito prima (es. Seleziona Tutte) sta 12px sopra.
   :not(#\#) ripetuto serve solo a superare le vecchie regole per id con !important */
.ui-ricerca-riga + table:not(#\#):not(#\#):not(#\#):not(#\#),
.ui-ricerca-riga + div > table:first-child:not(#\#):not(#\#):not(#\#):not(#\#) {
    margin-top: 0 !important;
}

/* Amministratori: Seleziona Tutte è il primo elemento di .state (inline-block, i margini non si fondono) e finiva
   troppo lontano dal nome selezionato; stessa distanza del pannello di blocca_utenti */
.pannel > .state > input#btn_select_all:first-child {
    margin-top: 4px !important;
}

input[type="submit"] + .ui-ricerca-riga:not(#\#):not(#\#):not(#\#):not(#\#),
button + .ui-ricerca-riga:not(#\#):not(#\#):not(#\#):not(#\#) {
    margin-top: 12px !important;
}

/* ---------- Moduli con etichette e campi allineati ----------
<div class="ui-modulo">
    <div class="ui-campo-riga"><span class="ui-etichetta">Nome:</span> @Model.tb_nome</div>
    <div class="ui-campo-riga"><span class="ui-etichetta">Tipo:</span> @Model.dp_tipo</div>
</div>
colonna 1 = etichette allineate a destra | colonna 2 = campi, tutti larghi uguali | colonna 3 = eventuale pulsante */
.ui-modulo {
    display: grid !important;
    grid-template-columns: max-content 220px max-content;
    justify-content: center;
    align-items: center;
    gap: 10px 10px;
    width: auto !important;
    margin: 20px auto 0 !important;
}

/* le righe non fanno da contenitore: i loro elementi finiscono direttamente nella griglia */
.ui-modulo > .ui-campo-riga {
    display: contents !important;
}

.ui-modulo .ui-etichetta {
    grid-column: 1;
    margin: 0 !important;
    text-align: right;
    white-space: nowrap;
}

.ui-modulo .ui-campo-riga > select,
.ui-modulo .ui-campo-riga > input[type="text"],
.ui-modulo .ui-campo-riga > input[type="password"],
.ui-modulo .ui-campo-riga > input[type="number"],
.ui-modulo .ui-campo-riga > input[type="date"],
.ui-modulo .ui-campo-riga > input[type="time"],
.ui-modulo .ui-campo-riga > input[type="datetime-local"] {
    grid-column: 2;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* aspetto standard dei campi del portale (alcuni lo prendevano dal contenitore che avevano prima) */
.ui-modulo .ui-campo-riga > input[type="text"],
.ui-modulo .ui-campo-riga > input[type="password"],
.ui-modulo .ui-campo-riga > input[type="number"] {
    height: 26px;
    padding: 2px 8px !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
}

.ui-modulo .ui-campo-riga > input[type="submit"] {
    grid-column: 3;
    justify-self: start;
    margin: 0 !important;
}

/* nei moduli tutti i campi e i menu a tendina hanno la stessa altezza (prima 24, 26 o 30px a seconda di vecchie regole per id) */
.ui-modulo .ui-campo-riga > select:not(#\#):not(#\#):not(#\#):not(#\#),
.ui-modulo .ui-campo-riga > input[type="text"]:not(#\#):not(#\#):not(#\#):not(#\#),
.ui-modulo .ui-campo-riga > input[type="password"]:not(#\#):not(#\#):not(#\#):not(#\#),
.ui-modulo .ui-campo-riga > input[type="number"]:not(#\#):not(#\#):not(#\#):not(#\#) {
    height: 30px !important;
    box-sizing: border-box;
}

/* testo semplice al posto di un campo (es. nome dell'automazione selezionata) */
.ui-modulo .ui-campo-riga > .ui-valore {
    grid-column: 2;
    text-align: left;
    font-weight: 700;
}

/* Gestione_ble: la descrizione è lunga, colonna dei valori più larga e testo normale */
.ui-modulo.ble-modulo {
    grid-template-columns: max-content 360px;
    align-items: baseline;
    margin: 30px auto 24px !important;
}

.ui-modulo.ble-modulo .ui-campo-riga:last-child > .ui-valore {
    font-weight: 400;
}

.ui-modulo.ble-modulo .ui-campo-riga > select {
    width: 220px !important;
    justify-self: start;
}

/* messaggio della ricerca in diretta senza risultati (creato da portale-ui.js) */
p.ui-nessun-risultato {
    margin: 18px 0 0;
    color: #6b7280;
    font-size: 16px;
    text-align: center;
}

/* ---------- Pannelli centrati nell'area utile (20% menu + metà dell'80% restante = 60vw) ---------- */
:is(#form1, #form2) .pannello-centrato {
    position: fixed !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 60vw !important;
    margin: 0 !important;
    /* molti pannelli avevano 400px fissi e le tabelle andavano a capo */
    min-width: 460px;
    max-width: calc(80vw - 40px) !important;
    /* alto quanto il contenuto (alcuni pannelli avevano un'altezza fissa con spazio vuoto), mai più dello schermo */
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 40px) !important;
    padding: 32px 28px 26px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* spazio della barra di scorrimento sempre riservato (uguale ai due lati): il contenuto non si sposta
       quando la barra compare o sparisce, es. filtrando una tabella */
    scrollbar-gutter: stable both-edges;
    box-sizing: border-box !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000 !important;
    /* nessuna animazione di apertura: il pannello compare subito insieme alla pagina */
}

/* spaziature: titolo 20px sotto, tabelle 16px sopra */
:is(#form1, #form2) .pannello-centrato .pannello-titolo {
    display: block !important;
    margin: 0 0 20px !important;
    padding: 0 24px !important;
    line-height: 1.25 !important;
}

:is(#form1, #form2) .pannello-centrato table {
    margin: 16px auto 0 !important;
}

/* X di chiusura sempre nello stesso angolo */
:is(#form1, #form2) .pannello-centrato > input[type="image"] {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
}

/* ---------- Attesa del server (classi messe da portale-ui.js): cursore di attesa, niente barra di caricamento ---------- */
body.ui-in-caricamento, body.ui-in-caricamento * {
    cursor: progress !important;
}

/* il pulsante cliccato si "spegne" (non disabilitato: il server deve sapere quale pulsante è stato premuto) */
.ui-pulsante-in-attesa {
    opacity: 0.55 !important;
    pointer-events: none !important;
}

/* ---------- Pulsanti: cambio colore morbido e leggero "affondamento" al click ---------- */
input[type="submit"], input[type="button"], button, table td a {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, translate 0.08s ease;
}

input[type="submit"]:active, input[type="button"]:active, button:active, table td a:active {
    translate: 0 1px;
}

/* ---------- Tabelle: riga evidenziata al passaggio del mouse, riga selezionata con barra blu ---------- */
table tr:not(:first-child) td {
    transition: background-color 0.15s ease;
}

table tr:not(:first-child):hover td {
    background-color: #f0f0f0;
}

/* classe messa da portale-ui.js (data-evidenzia-riga) */
table tr.ui-riga-selezionata td:first-child {
    box-shadow: inset 4px 0 0 #0277bd;
}

/* ---------- Campi attivi: bordo blu con alone ---------- */
input[type="text"], input[type="password"], select, textarea {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
    border-color: #0277bd !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.18);
}

/* ---------- Menu a tendina: stesso carattere del portale e testo centrato, in tutte le pagine ---------- */
select,
select option {
    font-family: 'Roboto', sans-serif !important;
    text-align: center !important;
    text-align-last: center !important;
}

/* nelle pagine del portale anche la stessa dimensione e lo stesso spessore (le pagine da telefono tengono i loro) */
:where(body:not(.pagina-indipendente, .pagina-telefono)) select {
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* ---------- Menu a tendina (select) aperti: lista con lo stile del portale ----------
Solo nei browser che lo permettono (Chrome/Edge recenti, appearance: base-select); negli altri resta la lista di sistema.
Lo stile da chiuso (bordo, altezza, larghezza) resta quello definito nella sezione 1: qui :where() ha specificità zero */
@supports (appearance: base-select) {
    :where(select), ::picker(select) {
        appearance: base-select;
    }

    :where(select) {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: #ffffff;
        color: #000000;
        font-family: 'Roboto', sans-serif;
        font-size: 13px;
        cursor: pointer;
    }

    /* testo sempre centrato; la freccia sta a destra senza spostarlo (spazio uguale ai due lati).
       :not(#\#) ripetuto alza la specificità sopra le vecchie regole per id con padding !important (es. #dp_vista),
       che altrimenti stringono il margine e la freccia finisce sopra il testo */
    select:not(#\#):not(#\#):not(#\#) {
        position: relative;
        /* testo centrato in verticale anche dove una vecchia regola mette display:block (es. Badge/Pin/RC in All_utenti) */
        align-content: center;
        /* se la larghezza fissata dalla pagina è troppo stretta per la voce scelta, il menu si allarga invece di finire sotto la freccia */
        min-width: max-content;
        justify-content: center !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    /* freccia blu che si gira quando la lista è aperta */
    select::picker-icon {
        content: "";
        position: absolute;
        right: 9px;
        top: 50%;
        margin-top: -3px;
        width: 10px;
        height: 6px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230277bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
        transition: rotate 0.2s ease;
    }

    select:open::picker-icon {
        rotate: 180deg;
    }

    /* la lista: riquadro bianco con bordo blu, angoli arrotondati e ombra, compare con una breve dissolvenza */
    ::picker(select) {
        margin-top: 4px;
        padding: 4px;
        max-height: min(320px, 60vh);
        overflow-y: auto;
        border: 1px solid #0277bd;
        border-radius: 10px;
        background-color: #ffffff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        opacity: 1;
        translate: 0 0;
        transition: opacity 0.12s ease, translate 0.12s ease, display 0.12s allow-discrete, overlay 0.12s allow-discrete;
    }

    @starting-style {
        ::picker(select):popover-open {
            opacity: 0;
            translate: 0 -4px;
        }
    }

    select option {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 7px 12px;
        border-radius: 6px;
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        color: #333333;
        background-color: transparent;
        cursor: pointer;
        white-space: nowrap;
        transition: background-color 0.12s ease, color 0.12s ease;
    }

    select option:hover, select option:focus-visible {
        background-color: #f0f0f0;
        outline: none;
    }

    /* voce selezionata: grassetto blu iOpen, senza spunta */
    select option:checked {
        color: #0277bd;
        font-weight: 700;
    }

    select option::checkmark {
        display: none;
    }

    select option:disabled {
        color: #aaaaaa;
        cursor: default;
    }
}

/* ---------- Menu laterale: al passaggio del mouse sfondo grigio come la voce attiva e barra blu iOpen a sinistra, fissa sulla voce attiva ---------- */
.col-2 .nav a {
    position: relative;
    transition: background-color 0.45s ease, font-size 0.45s ease;
}

.col-2 .nav a:hover {
    background-color: #6c6c6f;
}

.col-2 .nav a::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background-color: #0277bd;
    transform: scaleY(0);
    transition: transform 0.45s ease;
}

.col-2 .nav a:hover::before, .col-2 .nav a.active::before {
    transform: scaleY(1);
}

/* ---------- Chi ha attivato "riduci animazioni" nel sistema: niente movimenti ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* =====================================================================================
3. PAGINE CON STILE PROPRIO E PICCOLE VARIANTI
===================================================================================== */
/* caselle di spunta ingrandite (pagine app) */
.spunte-piccole input[type="checkbox"] {
    transform: scale(1.3) !important;
}

.spunte-medie input[type="checkbox"] {
    transform: scale(1.5) !important;
}

.spunte-grandi input[type="checkbox"] {
    transform: scale(2.5) !important;
}

/* ---------- App (era nella pagina) ---------- */
:root:has(> body.pagina-app) {
    --bg: #0b1118;
    --card-ring: #6c7480;
    --card-fill: #aeb5be;
    --text-prim: #e7edf3;
    --text-sec: #9aa3ad;
    --accent: #21d07a;
}

html:has(> body.pagina-app), body.pagina-app {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
    color: var(--text-prim);
    overflow: hidden;
}

body.pagina-app form {
    height: 100%;
}

body.pagina-app .app {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 430px;
    margin: 0 auto;
}

body.pagina-app .scroll-container {
    flex-grow: 1;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.pagina-app .scroll-container::-webkit-scrollbar {
    display: none;
}

body.pagina-app .grid {
    padding: 18px 20px 10px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 22px;
}

body.pagina-app .tile {
    text-align: center;
}

body.pagina-app .circle, body.pagina-app .circle:focus, body.pagina-app .circle:active {
    outline: none !important;
    background: none !important;
    box-shadow: none !important;
}

body.pagina-app .circle span {
    display: none;
}

body.pagina-app .circle img {
    max-width: 60%;
    max-height: 60%;
}

body.pagina-app .circle.filled {
    background: var(--card-fill);
    border-color: var(--card-fill);
}

body.pagina-app .circle:active {
    transform: scale(0.98);
}

body.pagina-app .title {
    margin-top: 10px;
    font-weight: 600;
}

body.pagina-app .subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-sec);
}

body.pagina-app .tabbar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    padding: 12px 16px 18px 16px;
    gap: 8px;
    background-color: var(--bg);
    z-index: 10;
}

body.pagina-app .tabbar .center {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.pagina-app .tab-btn {
    color: #8ea2b1;
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    transition: color .15s;
}

body.pagina-app .tab-btn:hover {
    color: #cfe2f0;
}

body.pagina-app .toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 84px;
    padding: 8px 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #e8f0f6;
    border-radius: 10px;
    font-size: 14px;
    backdrop-filter: blur(6px);
    display: none;
}

body.pagina-app .toast.show {
    display: inline-block;
}

@keyframes lampeggio-arancione {
0%, 100% {
    background-color: #455a64; /* grigio */
}
50% {
    background-color: #ef6c00; /* lampeggio */
}
}

body.pagina-app .status-bar {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 14px 0 8px 0;
    background-color: var(--bg);
    z-index: 10;
}

body.pagina-app .status-pill.lampeggia {
    animation: lampeggio-arancione 1s ease-in-out infinite;
}

@keyframes pill-verde {
0% {
    background-color: #455a64; /* grigio iniziale */
}
50% {
    background-color: #4caf50; /* verde */
}
100% {
    background-color: #455a64; /* torna grigio */
}
}

body.pagina-app .status-pill.lampeggiaVerde {
    animation: pill-verde 2s ease-in-out 1 forwards;
}

@keyframes pill-rosso {
0% {
    background-color: #455a64; /* grigio iniziale */
}
50% {
    background-color: #f44335; /* rosso */
}
100% {
    background-color: #455a64; /* torna grigio */
}
}

body.pagina-app .status-pill.lampeggiaRosso {
    animation: pill-rosso 2s ease-in-out 1 forwards;
}

body.pagina-app .status-pill {
    height: 10px;
    width: 110px;
    background-color: #455a64;
    border-radius: 999px;
}

body.pagina-app .icon-btn {
    height: 33px;
    width: 33px;
    object-fit: contain;
}

/* ---------- App_login (era nella pagina) ---------- */
body.pagina-app-login {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
}

body.pagina-app-login .container {
    width: 300px;
    margin: 0 auto;
    margin-top: 60px;
    text-align: center;
}

body.pagina-app-login .logo {
    width: auto;
    height: 50px;
    margin-bottom: 5px;
}

body.pagina-app-login .label {
    display: block;
    margin-top: 30px;
    font-size: 18px;
    color: #333;
}

body.pagina-app-login .textbox {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #87CEEB;
    color: #007BFF;
}

body.pagina-app-login .button {
    width: 100%;
    padding: 10px;
    margin-top: 30px;
    background-color: transparent;
    border: 2px solid #007BFF;
    border-radius: 8px;
    font-size: 16px;
    color: #007BFF;
    cursor: pointer;
}

body.pagina-app-login .text-button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background: none;
    border: none;
    font-size: 16px;
    color: #007BFF;
    text-decoration: underline;
    cursor: pointer;
}

body.pagina-app-login .spinner {
    margin-top: 20px;
}

body.pagina-app-login .subtitle {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #007BFF;
    margin-bottom: 30px;
}

/* ---------- RC (era nella pagina) ---------- */
body.pagina-rc * {
    box-sizing: border-box;
}

body.pagina-rc {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fb;
    color: #20242a;
    font-family: 'Roboto', Arial, sans-serif;
}

body.pagina-rc .rename-rc-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
}

body.pagina-rc .rename-rc-card {
    width: 100%;
    max-width: 420px;
    padding: 28px 22px;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(23, 34, 52, 0.08);
}

body.pagina-rc .rename-rc-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

body.pagina-rc .rename-rc-sn {
    display: block;
    margin: 0 0 16px;
    color: #0277bd;
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
    text-align: center;
}

body.pagina-rc .rename-rc-text {
    margin: 0 0 24px;
    color: #68707b;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

body.pagina-rc .rename-rc-field {
    display: block;
    width: 100%;
    height: 48px;
    margin-bottom: 0;
    padding: 0 14px;
    border: 1px solid #ccd3dc !important;
    border-radius: 8px;
    font-size: 18px;
    text-align: left;
}

body.pagina-rc .rename-rc-notes {
    min-height: 88px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: none;
}

body.pagina-rc .rename-rc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

body.pagina-rc .rename-rc-form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

body.pagina-rc .rename-rc-form-label {
    color: #3f4b57;
    font-size: 14px;
    font-weight: 500;
}

body.pagina-rc .rename-rc-help {
    color: #7a8490;
    font-size: 12px;
    line-height: 1.35;
}

body.pagina-rc .rename-rc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3f4b57;
    font-size: 15px;
    font-weight: 500;
}

body.pagina-rc .rename-rc-check input {
    width: 20px;
    height: 20px;
    margin: 0;
}

body.pagina-rc .rename-rc-button {
    width: 100%;
    min-height: 48px;
    border: 2px solid #0277bd !important;
    border-radius: 8px;
    background: #0277bd;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

body.pagina-rc .rename-rc-button:active, body.pagina-rc .rename-rc-button:hover {
    background: #fff;
    color: #0277bd;
}

body.pagina-rc .rename-rc-message {
    display: block;
    margin-top: 16px;
    color: #247a38;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

body.pagina-rc .rename-rc-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

body.pagina-rc .rename-rc-row {
    padding: 14px;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    background: #f9fafc;
}

body.pagina-rc .rename-rc-label {
    display: block;
    margin-bottom: 6px;
    color: #68707b;
    font-size: 13px;
    text-transform: uppercase;
}

body.pagina-rc .rename-rc-value {
    display: block;
    color: #20242a;
    font-size: 20px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (max-width: 380px) {
    body.pagina-rc .rename-rc-card {
        padding: 24px 16px;
    }

    body.pagina-rc .rename-rc-title {
        font-size: 22px;
    }
}

/* ---------- Account_portale (era nella pagina) ---------- */
body.pagina-account #div_opacizzato {
    height: 518px;
}

/* ---------- app_accessi_temporanei: stesso aspetto delle altre pagine app_ (app_tessere, app_timer_apertura) ---------- */
.app-acc {
    box-sizing: border-box;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 12px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.app-acc .app-acc-titolo {
    margin: 0 0 30px;
    font-size: 22px;
    font-weight: 400;
}

.app-acc .app-acc-sottotitolo {
    margin: 0 0 14px;
    font-size: 16px;
}

.app-acc .app-acc-info {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.4;
}

.app-acc .app-acc-nota {
    color: #555555;
}

.app-acc .app-acc-errore {
    min-height: 20px;
    margin: 6px 0 14px;
    font-size: 15px;
}

/* pulsanti come in app_tessere: blu, angoli 8px, alti 38px */
.app-acc .app-acc-azioni {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px;
}

.app-acc .app-acc-azioni input[type="submit"] {
    min-width: 90px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #0776be;
    border-radius: 8px;
    background-color: #0776be;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    cursor: pointer;
}

.app-acc .app-acc-azioni input[type="submit"]:hover {
    background-color: #ffffff;
    color: #0776be;
}

/* Indietro: bianco con bordo blu */
.app-acc .app-acc-azioni input[id^="btn_indietro"],
.app-acc .app-acc-azioni input#btn_annulla_elimina {
    background-color: #ffffff;
    color: #0776be;
}

/* date, una sotto l'altra come i campi di app_tessere */
.app-acc .app-acc-campi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 24px;
}

.app-acc .app-acc-campi label {
    margin-top: 8px;
    font-size: 15px;
}

.app-acc .app-acc-campi input {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #b8c7cf;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

/* ricerca come il campo di app_tessere */
.app-acc input.ui-ricerca {
    width: 100%;
    height: 38px;
    padding: 0 12px !important;
    border: 1px solid #b8c7cf !important;
    border-radius: 8px;
    font-size: 15px;
}

.app-acc .app-acc-campi input:focus, .app-acc input.ui-ricerca:focus {
    outline: none;
    border-color: #0776be !important;
    box-shadow: 0 0 0 3px rgba(7, 118, 190, .15);
}

/* tabelle come in app_tessere e app_blocca_utenti */
.app-acc table {
    width: 100%;
    margin: 0 0 24px;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
}

.app-acc table th {
    height: 48px;
    padding: 0 4px;
    border: none;
    background-color: #455a64;
    color: #ffffff;
    font-size: 16px;
    font-weight: 100;
}

.app-acc table th:first-child {
    border-top-left-radius: 10px;
}

.app-acc table th:last-child {
    border-top-right-radius: 10px;
}

.app-acc table td {
    height: 48px;
    padding: 0 4px;
    border: none;
    border-bottom: 2px solid #0277bd;
    background-color: #ffffff;
    font-size: 15px;
}

.app-acc table td a {
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #0776be;
    border-radius: 4px;
    color: #0277bd;
    font-size: 15px;
    text-decoration: none;
}

.app-acc table td a:hover {
    background-color: #0277bd;
    color: #ffffff;
}

.app-acc table td input[type="checkbox"] {
    width: 20px;
    height: 20px;
}