﻿
/* FA6: garantisce font-weight:900 (solid) su icone dentro button/btn */
.btn i.fas, .btn i.far, button i.fas, button i.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg-footer > * {
    background-color: #424244 !important;
    font-size: 9pt !important;
}

.border-footer {
    border-top: 10px solid #39c7ce;
    border-top: 10px solid #115899;
}

.footer-h1 {
    color: #39c7ce !important;
    color: #ececec !important;
    font-size: 1.1rem;
    text-decoration: underline !important;
    font-weight: 700;
}

.form-label {
    min-width: 160px !important;
    padding-right: 0 !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
}


.text-primary {
    color: #115899 !important;
}


.section-sep {
    border-top: 1px solid #115899 !important;
    padding-top: 20px !important;
}


.gdpr-policy-box-2 {
    max-height: 400px !important;
    overflow-y: auto !important;
    border: 1px solid #979799 !important;
    padding: 10px 5px !important;
    background-color: white !important;
}

.gdpr-policy-box {
    max-height: 230px !important;
    overflow-y: auto !important;
    background-color: white !important;
}

    .gdpr-policy-box-2 *, .gdpr-policy-box * {
        font-size: 0.90rem !important;
    }


input[type='checkbox']:not(#chkNDAAccept) {
    width: 26px !important;
    height: 26px !important;
    cursor: pointer;
}

    input[type='checkbox'] + label {
        vertical-align: top;
        cursor: pointer;
    }

    input[type='checkbox']:checked + label {
        font-weight: 700;
    }


.border-0 {
    border: 0 solid #FFFFFF !important;
}

.bg-primary {
    background-color: #115899 !important;
}

.page-title {
    font-size: 1.3rem !important;
    font-weight: 400 !important;
}

.page-bg {
    border: 0px solid #115899 !important;
    border-radius: 20px !important;
    padding-top: 10px !important;
    background-color: #FFFFFF !important;
    background-color: #EEEEEE !important;
}



.titolo-sezione {
    font-size: 1.10rem !important;
    font-weight: 600 !important;
}

.fa {
    font-size: 1.1rem !important;
}

.icon-size {
    font-size: 1.1rem !important;
}

.user-icon {
    font-size: 1.31rem !important;
    font-weight: 400 !important;
}

.user-caret {
    font-size: 1.3rem !important;
    font-weight: 400 !important;
}

.fab {
    font-size: 2.0rem !important;
    font-weight: 400 !important;
    color: white !important;
}

.btn-outline-blue {
    color: #115899;
    border-color: #115899;
}

.btn-outline-blue-2 {
    color: #115899;
    border: 0;
    border-bottom: 1px solid #115899 !important;
}

    .btn-outline-blue:hover, .btn-outline-blue-2:hover {
        color: #fff;
        background-color: #55acdd;
        border-color: #115899;
    }




.btn-blue {
    background-color: #115899;
    color: #fefefe;
}

    .btn-blue:hover {
        color: #fff;
        background-color: #55acdd;
        font-weight: 400 !important;
    }


.btn-blue-disable {
    background-color: #115899;
    color: #fefefe;
    pointer-events: none;
}

.btn-green {
    background-color: #39c7ce;
    color: #fefefe;
}

    .btn-green:hover {
        color: #fff;
        background-color: #115899;
        font-weight: 400 !important;
    }



.btn-green-disable {
    background-color: #39c7ce;
    color: #fefefe;
    pointer-events: none;
}


.btn-footer {
    background-color: #ededed;
    color: #115899;
    font-weight: 500 !important;
    border: 1px solid #CBCBCB !important;
    border-radius: 7px !important;
    margin: auto !important;
}

    .btn-footer:hover {
        color: #fff;
        background-color: #115899;
        font-weight: 400 !important;
    }

.btn-footer-disable {
    background-color: #424244;
    color: #fefefe;
    pointer-events: none;
}

.bg-blue {
    background-color: #115899 !important;
}

.border-grigio-1 {
    border: 1px solid #cbcbcb !important;
}

.border-blue-1 {
    border: 1px solid #115899 !important;
}

.border-blue-2 {
    border: 2px solid #115899 !important;
}

.border-bottom-blue-2 {
    border-bottom: 0.5rem solid #115899 !important;
}

.border-top-blue-2 {
    border-top: 2px solid #115899 !important;
}

.border-blue-3 {
    border: 3px solid #115899 !important;
}

.none-resize {
    resize: none;
}

.accordion-collapse {
    z-index: 1000 !important;
}

.accordion-w {
    min-width: 250px !important;
}

    .accordion-w * {
        font-size: 0.75rem !important;
    }

.fab {
    font-size: 2.5rem !important;
}



.bg-menu {
    background-color: #a2b4aa !important;
}

.navbar-toggler {
    width: 47px;
    height: 34px;
    background-color: #a2b4aa;
    border: none;
}

    .navbar-toggler .line {
        width: 100%;
        float: left;
        height: 2px;
        background-color: #fff !important;
        margin-bottom: 5px;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active,
    .navbar-toggler-icon:focus {
        outline: none;
        box-shadow: none;
    }

.fs-login-register * {
    font-size: 1rem !important;
    font-weight: 400 !important;
    border: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: Arial, sans-serif;*/
    overflow: hidden; /* Previene lo scroll della pagina principale */
}

/* Container principale - altezza 100% della finestra */
.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header fisso - larghezza 100%, altezza variabile */
.header {
    color: #333333;
    padding: 10px 20px 10px 10px;
   /* width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    background-color: #ffffff !important;
    border-bottom: 2px solid #115899 !important;
    margin-bottom: 0px !important;
}

/* Container per il contenuto sotto l'header */
.content-wrapper {
   /* display: flex;
    height: 100vh;*/
   /* padding-top: 20px;  Spazio per l'header fisso - da aggiustare in base all'altezza effettiva */
    justify-content: center !important; /* Centers horizontally */
}

/* Barra laterale sinistra - larghezza 350px */
.sidebar {
    max-width: 350px;
    padding: 0 10px 20px 10px;
}

/* Layout chat row - Mobile: colonna, Desktop: riga con altezza fissa */
.chat-layout-row {
    flex-direction: column;
}

/* Sidebar e Chat scrollabili solo su Desktop */
@media (min-width: 961px) {
    .chat-layout-row {
        flex-direction: row;
        height: calc(100vh - 70px) !important;
        align-items: stretch !important;
    }

    .sidebar {
        height: 100% !important;
        overflow: hidden !important;
    }

    /* sidebar-row1 (utente/menu/ricerca) e sidebar-row3 (loghi) restano fissi in alto/basso;
       sidebar-row2 (cronologia chat) occupa lo spazio rimanente e scorre internamente */
    #sidebar-row1,
    #sidebar-row3 {
        flex: 0 0 auto !important;
    }

    #sidebar-row2 {
        flex: 1 1 0 !important;
        height: 0 !important; /* neutralizza la classe Bootstrap h-100 già presente in markup: con flex-grow l'altezza reale la calcola il flex layout */
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* Intestazione di gruppo (OGGI / ULTIMI 30 GIORNI / MENO RECENTI) agganciata in cima
       a #sidebar-row2 durante lo scroll: resta visibile finché non arriva l'intestazione
       del gruppo successivo, che la sostituisce naturalmente (comportamento nativo di
       "position: sticky" con più elementi sticky in sequenza nello stesso contenitore) */
    #sidebar-row2 .session-group-header {
        position: sticky;
        top: 0;
        z-index: 5;
    }

    #chatMessagesContainer {
        height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* Contenuto principale - larghezza rimanente, scrollabile */
.main-content {
   /* flex: 1;
    margin-left: 450px; */ 
    background-color: #ecf0f1;
   /* padding: 40px;*/
   /*  height: calc(100vh - 48px); Altezza totale meno l'header */
}

    /* Stili aggiuntivi per il contenuto */

    .main-content h2 {
        color: #2c3e50;
        margin-bottom: 20px;
    }

.content-block {
    background-color: white;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive: per schermi piccoli */
@media (max-width: 960px) {
    .sidebar {
        min-width: 100% !important;
        margin: auto !important;
    }

    .main-content {
        margin: auto !important;
        width: 100% !important;
    }

    body {
        /*width: 900px !important;*/
        overflow-y: auto !important;
    }
}

.overflow-y-scroll {
    overflow-y: auto;
}

/* Titoli sessione in cronologia chat: niente più troncamento server-side a 48 caratteri,
   il titolo completo resta nel markup (e nel tooltip) ma viene mostrato su una riga sola
   con ellissi CSS quando non ci sta nello spazio disponibile */
#sidebar-row2 .table {
    table-layout: fixed;
    width: 100%;
}

#sidebar-row2 .session-title-ellipsis {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-footer {
    width: 100%;
}

/** * Create the hover event of the tick */
.checkbox-style {
    padding: 0px;
    margin: 0px !important;
}
    /** * Create the checkbox state for the tick */
    .checkbox-style input[type=checkbox] {
    }

    .checkbox-style label {
        padding-left: 5px !important;
    }
    /** * Create the checkbox state for the tick */
    .checkbox-style input[type=checkbox]:checked + label {
        font-weight: bold;
    }

.col-lg-4, .col-lg-6, .col-lg-12 {
    padding: 0.5rem 0.5rem !important;
}

    .col-lg-4 *, .col-lg-6 *, .col-lg-12 * {
        font-size: 0.91rem !important;
    }

.label {
    min-width: 95px !important;
}

.c-border {
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
    border: 3px solid #115855 !important;
    border-radius: 18px !important;
}

.gdpr-policy-box-2 {
    max-height: 110px !important;
    margin-left: 6px !important;
}

.table-responsive * {
    font-size: 0.85rem !important;
    border: none !important;
    font-weight: 400 !important;
}

.section-sep {
    border: none !important;
    border-bottom: 3px solid white !important;
    border-bottom: 1px solid #115899 !important;
    border-bottom: 1px solid #4c4c4c !important;
}

.rounded-5 {
    border-radius: 0.90rem !important;
}

    .rounded-5 * {
        font-size: 1.20rem !important;
    }

@media (max-width:768px) {
    .fs-servizi * {
        font-size: 0.95rem !important;
    }
}

.fs-servizi, .fs-servizi * {
    font-size: 0.95rem !important;
    /*color: red !important;*/
    font-weight: 400;
}

.fs-legend * {
    font-size: 0.75rem !important;
}


.modalBackground {
    background-color: Black;
    opacity: 0.8;
}

.App-MsgBox-Style {
    width: 95% !important;
    max-width: 420px !important;
    background-color: white;
    padding: 0 !important;
    font-size: 8pt !important;
    text-align: center;
    border-radius: 10px 10px !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.App-MsgBox-Title {
    width: 100% !important;
    text-align: left !important;
    background-color: #115899 !important;
    font-weight: bold;
    padding: 5px !important;
    border-radius: 10px 10px 0 0 !important;
}

.App-MsgBox-Body {
    max-width: 100% !important;
    text-align: left !important;
    padding: 5px 5px 10px 5px !important;
    font-size: 18pt !important;
    min-height: 70px !important;
    border-bottom: 2px solid #808080;
    overflow-wrap: anywhere !important;
}

    .App-MsgBox-Body * {
        text-align: justify !important;
        font-size: 1.0rem !important;
    }

.App-MsgBox-Footer {
    width: calc(100% - 10px) !important;
    text-align: right !important;
    padding: 5px 0px 0px 0px !important;
    font-size: 8pt !important;
    margin: 5px;
}



.login-panel {
    font-size: 0.85rem !important;
    max-width: 440px !important;
}

.min-col-w {
    min-width: 100px !important;
    margin-right: 3px !important;
}

.min-col-history {
    min-width: 345px !important;
}

.cb input[type=checkbox] {
    margin-right: 5px !important;
    display: inline !important;
    vertical-align: middle !important;
    width: 25px !important;
    height: 25px !important;
    cursor: pointer !important;
}

.cb label {
    display: inline !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    margin-bottom: 5px !important;
    font-size: 1.25rem !important;
}

.cb input[type=checkbox]:checked + label {
    font-weight: 600 !important;
}

input[type="text"], input[type="password"] {
    font-size: 0.85rem !important;
    min-height: 30px !important;
    padding-left: 10px !important;
    margin: 0px !important;
}

.control-label {
    font-size: 0.85rem !important;
}

input[type="submit"], input[type="bunton"] {
    font-size: 0.85em !important;
    padding: 5px 5px !important;
    min-width: 75px;
}

.csh input[type='checkbox'] {
    width: 17px !important;
    height: 17px !important;
    cursor: pointer !important;
    margin-right: 5px !important;
    margin-left: 0px !important;
    vertical-align: middle !important;
}

    .csh input[type='checkbox'] + label {
        margin-top: 0px !important;
        vertical-align: middle !important;
        cursor: pointer;
        display: inline-block !important;
        padding-top: 0px !important;
        text-wrap: nowrap !important;
        font-weight: 400 !important;
        /* font-size: 1.00rem !important;*/
    }

    .csh input[type='checkbox']:checked + label {
        font-weight: 700 !important;
    }

input[type="email"], input[type="text"], input[type="password"] {
    margin: auto !important;
     font-size: 0.85rem !important;
    padding: 3px 5px 4px 5px !important;
    border-radius: 5px !important;
    border: 0.02rem solid #020a5e !important;
}

.input-password {
    max-width: 100px !important;
    margin: auto !important;
    font-size: 0.85rem !important;
    padding: 2px 5px 2px 5px !important;
    border-radius: 5px !important;
}


.fs-video, .fs-video * {
    font-size: 0.90rem !important
}

.login-title {
    font-size: 0.80rem !important;
    font-weight: 700 !important;
}


/* Pulsante visualizza/nascondi password (icona occhio dentro il campo), usato in
   default.aspx (login) e profilo.aspx (cambio password) */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle-wrapper .form-control {
    /* !important necessario: sovrascrive input[type="password"] { padding: ... !important } sopra */
    padding-right: 2.5rem !important;
}

.btn-toggle-password {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.btn-toggle-password:hover {
    color: #115899;
}

.fs-130, .f-130 * {
    font-size: 0.90rem !important;
    font-weight: normal !important;
}

.fs-dati {
    max-width: 480px !important;
    margin-left: auto !important;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .fs-dati * {
        font-size: 0.85rem !important;
    }

.bg-content {
    background-color: #ededed !important;
}

.fs-head {
    font-size: 1.00rem !important;
    font-weight: 600 !important;
}

.fs-group {
    font-size: 0.90rem !important;
    font-weight: 600 !important;
}

.fs-logout {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.prompt {
    margin: 0 0 10px 0;
    padding: 5px;
    border-bottom: 1px solid #cecece;
    color: #0066cc;
    font-weight: 700 !important;
}

.response {
    margin: 5px 0;
    padding: 5px;
    color: #006600;
}

.datetime {
    margin: 5px 0;
    font-size: 0.9em;
    color: #888;
}

.go-up {
    font-size: 1.7em !important;
    font-weight: bolder !important;
    width: 50px !important;
}

.contenuto-item {
    display: block;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.container-login {
    max-width: 250px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #0056b3 !important;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    font-size: 1.3em !important;
    font-weight: 700 !important;
}

h2 {
    color: #007bff !important;
    margin-top: 10px !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
}

.question {
    background-color: #e9ecef !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin-bottom: 20px !important;
    font-style: italic;
    font-weight: 700;
}

.response-text {
    line-height: 1.6 !important;
}

.formula-display {
    font-size: 1.2em;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    overflow-x: auto;
}

.response-text b {
    color: #c82333;
}

* {
    outline: 0;
}

.parent {
    display: flex;
    text-align: center;
}

    .parent img {
        max-width: 100%; /* non più larga del contenitore */
        height: auto; /* mantiene le proporzioni */
        display: block; /* evita spazi bianchi sotto l'immagine */
    }

.errors {
    display: flex;
    margin: 10px auto;
    color: #c82333;
    line-height: 1.5rem;
    font-size: 0.90rem;
}

strong {
    font-weight: bold !important;
}

/*.text-center{text-align: center !important; background-color: red !important;}*/

/* Chat Action Menu - HoverMenu popup */
.chat-menu-trigger {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: inline-block;
}

.chat-menu-trigger:hover {
    background-color: #e9ecef;
}

.chat-popup-item {
    display: block;
    padding: 8px 15px;
    color: #212529 !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: normal !important;
    text-align: left;
    transition: background-color 0.2s;
    background-color: #ffffff;
    white-space: nowrap;
}

.chat-popup-item:hover {
    background-color: #f0f0f0 !important;
    text-decoration: none !important;
}

.chat-popup-item.text-danger {
    color: #dc3545 !important;
    font-weight: normal !important;
}

.chat-popup-item.text-danger:hover {
    background-color: #fff0f0 !important;
}
