@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


:root {
    /* Bootstrap nav tab override */
    --bs-nav-tabs-link-active-color: #fff;
    --bs-nav-tabs-link-active-bg: red;
    --bs-nav-tabs-link-active-border-color: #0062cc;
    --type-ramp-base-font-size: 16px;
}

html, body {
    font-family: "Source Sans 3", sans-serif;
}

.custom-container {
    max-width: 1100px; /* Sostituisci questo valore con la larghezza massima desiderata */
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 2%;
    margin-bottom: 50px;
    line-height: 0px;
}

.custom-background {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/sfondo_tq.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh; /* Cambiato da 100% a 100vh */
    width: 100%;
    position: absolute; /* Cambiato da absolute a relative */
    z-index: -1;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #e69b6b;
    border-color: #e69b6b;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

/*.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}*/

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL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MjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.btn-primary {
    background-color: #1d3557;
    border-color: #1d3557;
}

    .btn-primary:hover {
        background-color: #457b9d;
        border-color: #457b9d;
    }

.e-tab .e-tab-header .e-toolbar-item.e-active {
    background: #1d3557;
}

    .e-tab .e-tab-header .e-toolbar-item.e-active.e-ileft .e-tab-text, .e-tab .e-tab-header .e-toolbar-item.e-active.e-iright .e-tab-text {
        color: white;
    }

        .e-tab .e-tab-header .e-toolbar-item.e-active.e-ileft .e-tab-text:hover, .e-tab .e-tab-header .e-toolbar-item.e-active.e-iright .e-tab-text:hover {
            color: white;
        }


    .e-tab .e-tab-header .e-toolbar-item.e-active.e-ileft .e-text-wrap:hover, .e-tab .e-tab-header .e-toolbar-item.e-active.e-iright .e-text-wrap:hover {
        color: white;
    }

    .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap:hover {
        color: white;
    }

.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap:hover {
    color: white;
}

.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
    color: #1d3557;
    font-weight: bold;
}

.e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    color: #1d3557;
    font-weight: bold;
}

.btn-padding-low {
    padding-top: 1px;
    padding-bottom: 1px;
}

.align-bottom {
    vertical-align: bottom;
}

.pointer {
    cursor: pointer;
}

.icon-button {
    padding: 2px;
    color: dimgray;
}

    .icon-button:hover {
        color: red;
    }

.is-in-service {
    border: solid;
    border-width: thin;
    border-color: red;
    border-left-width: 5px;
    border-radius: 3px;
}

.hidden {
    display: none;
}

.text-payment {
    color: rgb(0, 0, 0);
    font-weight: normal;
    font-size: 0.9rem;
}

.text-payment-value {
    color: white;
    font-weight: normal;
    font-size: 0.7rem;
}

.bg-green {
    background-color: #26b050;
    color: white;
}

.bg-red {
    background-color: #ff0000;
    color: white;
}

.bg-gray {
    background-color: dimgray;
    color: white;
}

.year-offert-report-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    background-color: #1d3557;
    padding-bottom: 7px;
    padding-top: 7px;
}

.year-offert-report-body {
    font-size: 0.8rem;
    font-weight: normal;
    color: black;
}

.custom-tabs-container {
    padding-top: 0.1rem;
    padding-bottom: 1rem;
    border-bottom-style: solid;
    border-bottom-width: thin;
    border-bottom-color: #dee2e6;
    border-left-style: solid;
    border-left-width: thin;
    border-left-color: #dee2e6;
    border-right-style: solid;
    border-right-width: thin;
    border-right-color: #dee2e6;
    min-height: 200px;
}

.check-custom-label {
    font-size: 12px;
    font-weight: bold;
    color: #343a40;
    padding-top: 4px;
    padding-bottom: 5px;
    padding-left: 5px;
}

.nav-tabs {
    --bs-nav-tabs-link-active-color: #ffffff; /* Cambia con il tuo colore del testo desiderato */
    --bs-nav-tabs-link-active-bg: #1d3557;
    --bs-nav-tabs-link-active-font-weight: normal;
    --bs-nav-tabs-link-active-border-color: #1d3557 #1d3557 #ffffff; /* Cambia con i tuoi colori del bordo desiderati */
}

.nav-link {
    --bs-nav-link-font-size: 0.8rem; /* Cambia con la tua dimensione del carattere desiderata */
    --bs-nav-link-font-weight: bold; /* Cambia con il tuo peso del carattere desiderato */
    --bs-nav-link-color: #1d3557; /* Cambia con il tuo colore del testo desiderato */
}


/* QUICKGRID default-grid INIT */
.quickgrid[theme=default-grid] {
    width: 100%;
    border: solid;
    border-width: thin;
    border-color: #e0e0e0;
    
}
    .quickgrid[theme=default-grid] thead tr {
        background-color: #f7f7f7;
    }
    .quickgrid[theme=default-grid] thead th {
        border: solid;
        border-width: thin; 
        border-color: #e0e0e0;
    }
    .quickgrid[theme=default-grid] .col-title {
        gap: 0.4rem;
        background-color: #f7f7f7;
        color: black;
        font-weight: bold;
        justify-content: center;
        font-size:0.8rem;
    }
    .quickgrid[theme=8default-grid] .sort-indicator {
        color: white;
    }
    .quickgrid[theme=default-grid] tbody tr {
        border-bottom: solid;
        border-bottom-width: thin;
        border-color: #e0e0e0;
    }
   /* .quickgrid[theme=default-grid] tr:nth-child(even) {
        background: #f2f2f2;
    }*/
    .quickgrid[theme=default-grid] .grid-cell {
        padding: 0.4rem;
    }
    .quickgrid[theme=default-grid] .grid-cell-button {
        padding: 0.3rem;
        text-align: center;
    }


/* QUICKGRID default-grid END */


.shadow-effect {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* Effetto ombra */
}

.text-default{ 
    font-size:0.8rem;
    font-weight: normal;

}

.full-height {
    height: 100vh; /* Altezza totale della viewport */
}

.half-height {
    height: 50%; /* 50% della riga */
    overflow-y: auto; /* Scorrimento verticale se necessario */
}

.buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Adatta l'altezza automaticamente */
}
}

.table-equal-width-seven th {
    width: 14.28%;
}

.kpi-table-title {
    background-color:black;
    color:white;
    font-weight:bold;
    padding:5px;
}

.kpi-item-ontop {
    align-content:center;
    font-weight:bold;
    text-align:center;
    display: flex;
    flex-direction:column;
    justify-content:center;
    font-size:1.2rem;
    margin-bottom:20px;
}

.my-fluent-grid td {
    min-height: 40px; 
}

.monaco-editor-container { /* applies to all editor instances */
    height: 400px;
    border-color: darkblue;
    border-style: solid;
    border-width: 1px;
}
.highlight-request {
    background-color: yellow;
    color: black;
    font-weight: bold;
}

.highlight-names {
    background-color: lightblue;
    color: black;
    font-weight: bold;
}

.highlight-company {
    background-color: lightcoral;
    color: black;
    font-weight: bold;
}
.highlight-event {
    background-color: lightgreen;
    color: black;
    font-weight: bold;
}

.chat-bubble-left {
    position: relative;
    background: #f1f1f1;
    border-radius: 10px;
    padding: 6px;
    max-width: 450px;
    margin-left: 6px;
    margin-right: 6px;
    margin-bottom:16px;

    font-family: Arial, sans-serif;
    color: #333;
}

    /* Triangolino della nuvoletta a sinistra */
    .chat-bubble-left::after {
        content: '';
        position: absolute;
        bottom: 0; /* Posizionato in basso */
        left: 30px; /* Posizionato a sinistra della nuvoletta */
        width: 0;
        height: 0;
        border: 15px solid transparent; /* Dimensione del triangolo */
        border-top-color: #f1f1f1; /* Colore del triangolo */
        border-bottom: 0;
        border-left: 0;
        margin-left: -15px;
        margin-bottom: -14px;
    }

/* Stile della nuvoletta a destra */
.chat-bubble-right {
    position: relative;
    background: #e3f1f9; /* Colore diverso per differenziare */
    border-radius: 10px;
    padding: 6px;
    max-width: 5000px;
    margin: 6px;
    font-family: Arial, sans-serif;
    color: #333;
    margin-left: auto; /* Allinea la nuvoletta a destra */
}
.chat-container {
    max-width: 800px;
    margin: 10px auto;
    padding: 6px;
    overflow-y: auto; /* Imposta lo scrolling verticale */
    display: flex;
    flex-direction: column;
    height: calc(100vh - 300px); /* Sottrae 150px dall'altezza disponibile della finestra */
    background: white;
}
    /* Triangolino della nuvoletta a destra */
    .chat-bubble-right::after {
        content: '';
        position: absolute;
        bottom: 0; /* Posizionato in basso */
        right: 30px; /* Posizionato a destra della nuvoletta */
        width: 0;
        height: 0;
        border: 15px solid transparent; /* Dimensione del triangolo */
        border-top-color: #e3f1f9; /* Colore del triangolo (uguale allo sfondo) */
        border-bottom: 0;
        border-right: 0;
        margin-right: -15px;
        margin-bottom: -14px;
    }

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.blink {
    animation: blink 1s infinite;

}


.alert-back {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}


.cards-container {
    display: flex;
    gap: 0.5rem; /* Spaziatura orizzontale tra le card */
    padding: 0rem;
    margin-top:1rem;
}

.card-kpi {
    min-width: 130px;
    max-width: 300px;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    padding: 0.4rem;
    margin: 0 auto; /* centrala nella pagina per comodità */
}
    .card-kpi.total {
        background-color: lightyellow;
    }

    .card-kpi-subtitle {
        min-width: 130px;
        max-width: 300px;
        width: 100%;
        padding: 0.5rem;
        margin: 0 auto; /* centrala nella pagina per comodità */
    }

.top-row-kpi {
    display: flex;
    justify-content: space-between;
    align-items: center;
 
}

.info-section {
    display: flex;
    flex-direction: column;
    width:100%;
}

.title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
}

.ytd {
    font-size: 0.9rem;
    color: #777;
    margin-top:2px;
}
.ytd-history {
    font-size: 0.9rem;
    color: #777;
}
.donut-text-green {
   
    font-size: 0.9rem;
    font-weight: bold;
    color: #0c9c3e; /* colore del testo */
    display: flex; /* per centrare il contenuto */
    align-items: center;
    justify-content: center;
}

.donut-text-red {
   
    font-size: 0.9rem;
    font-weight: bold;
    color: red; /* colore del testo */
    display: flex; /* per centrare il contenuto */
    align-items: center;
    justify-content: center;
}
.cards-container-background {
    background-color: #f0e5e5;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.cards-container-background-ytd {
    background-color: #F5E8D7;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.cards-container-background-ytd-details {
    background-color: #F5E8D7;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.cards-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
}
.cards-subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
}
.cards-period {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;

}
.card-activity-money {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}

.top-row {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}

.ods-fixed-data {
    font-size:1.0rem;
    font-weight:bold;
}
.ods-customer {
    font-size: 1.0rem;
}

.ql-container {
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.ods-note-title{
    font-size:1.0rem;
    font-weight:bold;

}
.ods-note-subtitle {
    font-size: 1.0rem;
    font-weight: normal;
}

.ods-note-body p {
    margin-bottom: 0;
}



.full-height {
    height: 100vh; /* Altezza totale della viewport */
}

.half-height {
    height: 50%; /* 50% della riga */
    overflow-y: auto; /* Scorrimento verticale se necessario */
}

.buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Adatta l'altezza automaticamente */
}

.bg-custom-success {
    background-color: #d4edda;
   
}
.bg-custom-warning {
    background-color: #fff3cd;
    color: #856404;
}

.card-custom-text-success {
    color: #000 !Important;
}

.card-custom-text-warning {
    color: #856404 !important;
}
}

.disabled-icon {
    pointer-events: none; /* Disabilita i click */
    opacity: 0.5; /* Rende l'icona visivamente "disabilitata" */
}

.table-kpi-value {
    font-size: 1.0rem;
    font-weight: 700;
    color: #000;
}

.table-kpi-reference-value {
    font-size: 0.9rem;
    font-weight: normal;
    color: #000;
    padding:.1rem .1rem;
   
}

.table-text-green {
    font-size: 0.8rem;
    font-weight: bold;
    color: #0c9c3e !Important; /* colore del testo */
    padding: .1rem .1rem;
}

.table-text-red {
    font-size: 0.8rem;
    font-weight: bold;
    color: red !important; /* colore del testo */
    padding: .1rem .1rem;
}

.table-kpi-value,
.table-kpi-reference-value,
.table-text-green,
.table-text-red {
    text-align: center;
}

.fluent-menu-header {
    background-color: var(--neutral-fill-secondary, #fbfbfb); /* neutro coerente con Fluent */
    padding: 0.8rem 1.0rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.fluent-box-commands {
    background-color: var(--neutral-fill-secondary, #fbfbfb); /* neutro coerente con Fluent */
    padding: 0.8rem 1.0rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.my-text-grid {
    --type-ramp-base-font-size: 16px; /* o la dimensione che vuoi */
    font-size: var(--type-ramp-base-font-size); /* fallback per sicurezza */
}
.row-total {
    font-weight: bold;
    background-color: #f5f5f5; /* grigio chiaro per evidenziare */
    color: #333; /* testo più scuro per leggibilità */
    padding: 2px 4px;
    border-radius: 3px;
}

