@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --primaryColor: 18, 49, 108;
    --secondaryColor: 141, 190, 78;
}


html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    overflow:hidden;
}

body {
    touch-action: manipulation;
    background-image: url('/images/montagne.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Optional: This makes the background image fixed when scrolling */
}
    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.5); /* White filter with 50% opacity */
        pointer-events: none; /* Ensure the overlay doesn't block interactions */
    }


.sticky-top-menu {
    position: sticky;
    top: 0; /* Le menu restera collé en haut de la page */
    z-index: 1000; /* Assurez-vous que le menu reste au-dessus du contenu lorsqu'il est collé */
    /* Ajoutez d'autres styles selon vos besoins */
}


.btn-primary {
    background-color: rgb(var(--primaryColor));
    color: white;
    border: none;
    border-radius: 10px;
}

.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;
    }


.update-info {
    width: auto;
    max-width: 100%;
    font-size: 14px;
}



.logo {
    width: auto;
    height: 15vh;
}


.btn-image {
    filter: brightness(0) saturate(100%) invert(13%) sepia(35%) saturate(5020%) hue-rotate(210deg) brightness(87%) contrast(90%);
    transition: transform 0.1s;
    max-width: 50px;
    max-height: 50px;
    cursor: pointer;
}

    .btn-image:active,
    .btn-image:hover,
    .btn-image:focus {
        transform: scale(1.2);
        filter: hue-rotate(90deg);
    }



.no-data-chart-container {
    height: 50vh;
    line-height: 50vh;
    text-align: center;
}




.chart-background {
    height: 70vh;
    background-color: #ffffffe3;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}
.soustraitance-background {
    height: 35vh;
    background-color: #ffffffe3;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

.chart-container {
    height: 50vh;
}

.rapport-container-sm {
    height: 50vh;
    overflow:scroll;
}

.logo-header {
    background-image: url("/images/logo_prudent.png");
    background-size: contain;
}


.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.data-label {
    position: absolute;
    display: inline-block;
    font-size: 18px;
    bottom: 15px;
    transform: translateX(-50%);
}

    .data-label .background {
        background-color: #9FA39D;
        color: white;
        padding: 2px 10px;
        border-radius: 10px;
        width: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .data-label .arrow {
        position: absolute;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 15px solid #9FA39D;
        left: 50%;
        bottom: -15px; 
        transform: translateX(-50%);
    }




.custom-annotation-conso {
    margin-bottom: 20px;
    font-size: 18px;
}
.next-button-right {
    width: 100px;
    float: right;
    margin-top: 10px;
}

.container {
    padding: 10px;

   
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

   

@media (max-width: 575px) {
    .btn-image {
        max-width: 35px;
        max-height: 35px;
    }

    .btn-image-index {
        max-width: 50px;
        max-height: 50px;
    }

    .logo {
        width: auto;
        height: auto;
        max-height: 100%;
        max-width: 100%;
    }

    .chart-background {
        height: 65vh;
    }



    .ca-detail-container {
        height: 60vh;
    }
}
    .ca-detail-container {
        height: 57vh;
    }
  


/* CARD VISU */

.budget {
    background-color: #4285F4;
    color: white;
}

.card-title {
    font-size: 1.em; /* Augmente la taille du titre */
    text-align: center;
    padding-bottom: 15px;
    text-decoration: underline; /* Souligne le titre */
}

.card-subtitle {
    font-size: 1.1em; /* Augmente la taille du sous-titre */
    text-align: center;
    padding-bottom: 10px;
}
.positive {
    background-color: #34A853;
    color: white;
}
.budget {
    background-color: #4285F4;
    color: white;
}

.negative {
    background-color: #FC3E24;
    color: white;
}

.card-container-sm {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card-item {
    width: 300px; /* Largeur fixe des cartes */
    margin-bottom: 20px; /* Espacement en bas des cartes */
    border: 1px solid #ccc; /* Bordure des cartes */
    border-radius: 8px; /* Coins arrondis des cartes */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    padding: 16px; /* Espacement intérieur des cartes */
}
.card-container {
    height: 42vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card-content {
    font-size: 2.5em;
    height: 9vh;
    margin-bottom: 20px;
    border-radius: 10px;
    display: inline-grid;
    justify-content: center;
    align-items: center;
    min-width: 37%;
    max-width: 70%;
    width: auto;
}

.card-content-sm {
    font-size: 2.5em;
    height: 9vh;
    margin-bottom: 20px;
    border-radius: 10px;
    display: inline-grid;
    justify-content: center;
    align-items: center;
    min-width: 63%;
    max-width: 70%;
    width: auto;
}

/**Entretiens*/
.entretiens-title {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: underline;
    text-align: center;
    padding-top: 20px;
}

.dropdown-width {
    width: 60%;
    margin-top: 20px;
    height: 5vh;
}
.custom-dropdown .e-list-item {
    font-size: 20px !important;

}

.e-ddl.e-input-group.e-control-wrapper .e-input {
    font-size: 20px !important;
    display: flex; /* Utilise Flexbox pour centrer */
    align-items: center; /* Centre verticalement le texte */
    height: 100%; /* Assure que le contenu prend toute la hauteur de l'élément */
    padding: 0 10px; /* Ajustez selon le design souhaité */
}
.right-button-container {
    display: flex;
    justify-content: right;
    align-items: center;

}
.form-container {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto; /* Centre le formulaire horizontalement */
    text-align: center;
    display: flex;
    flex-direction: column;
}

.input-container {
    margin-bottom: 15px;
}

.sf-numerictextbox {
    width: 100%;
}
.span.e-numeric.sf-numerictextbox.e-valid-input.e-input-group.e-control-container.e-control-wrapper {
    font-size: 20px !important;
}
.form-title {
    text-align : center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: rgb(var(--primaryColor));
  
}
.centered-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.vertical-center {
    display: flex;
    align-items: center;
    justify-content: center; /* Si nécessaire pour centrer horizontalement */
    height: 100%; /* Hauteur de la boîte parente */
}