body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-flow: column nowrap;
    /* height: 100dvh !important; */
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

@keyframes fade {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

header {
    z-index: 5;
    display: flex;
    flex-flow: row nowrap;
    background-color: white;
    margin: 0;
    width: 100%;

    position: sticky;
    position: -webkit-sticky;
    top: 0px;
    left: 0px;
    justify-content: space-between;
    box-shadow: 0px 2px 10px rgb(75, 179, 83);
}

nav{
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}

.global-info-container
{
    position:sticky;
    z-index: 4;
    top: 15px;
    height: fit-content;
    background-color: rgba(255, 0, 0, 0.5);
    color: white;
    padding-left: 1rem;
    padding-right: 1rem;
}
.global-info-container > p
{
    margin:0;
    padding: 0;
    font-weight: 600;
}

footer {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-end;
    justify-content: center;
}

#logo {
    max-height: 34px;
    transition: 0.5s;
    animation: rotation 2s infinite linear;
}


.selected {
    background-color: #3fa649;
    border-color: #2c8e34;
    color: white
}

.selected:hover {
    background-color: #2c8e4e;
}


.btn-group button {
    flex: 2;
    gap: 0px;
    margin-right: 0px;
    margin-left: 0px;
    cursor: pointer;
    /* Pointer/hand icon */
    float: left;
    /* Float the buttons side by side */
    padding-left: 5px;
    padding-right: 5px;
}

.btn-group button:not(:last-child) {
    border-right: none;
    /* Prevent double borders */
    border-radius: 0px;
}

.btn-group button:not(:first-child) {
    border-left: none;
    /* Prevent double borders */
    border-radius: 0px;
}

/* Clear floats (clearfix hack) */
.btn-group:after {
    content: "";
    clear: both;
    display: table;
}

button,
input,
select {
    border-radius: 5px;
    padding: 5px;
    margin: 2px;
    background-color: white;
    border-color: rgb(214, 255, 158);
    transition: 0.3s;
    accent-color: green;
}

button:hover,
input:hover {
    background-color: rgb(214, 255, 158);
    box-shadow: 0px 1px 2px black;

}

.cancel {
    border-color: rgb(255, 138, 138);
    background-color: rgb(255, 193, 193);
}

.cancel:hover {
    background-color: rgb(255, 164, 164);
}

#msg {
    border-radius: 8px;
    color: red;
    background-color: rgba(255, 0, 0, 0.212);
    padding: 5px;
}

.success {
    border-radius: 8px;
    color: rgb(0, 0, 0);
    background-color: rgba(169, 255, 103, 0.75);
    padding: 5px;
}



/**
PARTIE MENU DROITE avec menus déroulants
**/
.subnav,
.prenav {
    float: left;
}

.menuBtn, .menuBtnSup {
    margin: 0;
    padding: 0;
    list-style: none;
    width: inherit;
    color: #000000;
    background-color: inherit;
    border-radius: 5px;


}

.menuBtn:hover, .menuBtnSup:hover{
    background-color: rgb(208, 255, 131);
}

.menuBtn li, .menuBtnSup li {
    position: relative;
}

.menuBtn li a, .menuBtnSup li a {
    color: inherit;
    text-align: center;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.menuBtn li a:hover, .menuBtnSup li a:hover {
    background-color: rgb(208, 255, 131);
}


.menuBtn li ul {
    position: absolute;
    top: 100%;
    right: 2%; /* Permet d'éviter un overflow horizontal */
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
    line-height: normal;
    background-color: rgb(255, 255, 255);
    animation: fade 0.2s linear;
}

.menuBtnSup li ul {
    position: absolute;
    bottom: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
    line-height: normal;
    background-color: rgb(255, 255, 255);
    animation: fade 0.2s linear;

}

.menuBtn li ul li a, .menuBtnSup li ul li a {
    text-align: left;
    color: inherit;
    font-size: 14px;
    padding: 10px;
    display: block;
    white-space: nowrap;
    

}

.menuBtn li ul li a:hover, .menuBtnSup li ul li a:hover{
    background-color: rgb(208, 255, 131);
    color: inherit;
}


.menuBtn li ul li ul, .menuBtnSup li ul li ul {
    right: 100%;
    top: 0;
}

.exportBtn {
    background-color: white;
    box-shadow: 0px 1px 5px black;
}
.exportBtn:hover{
    box-shadow: 0px 0px 2px black;
}

ul li:hover>a {
    background-color: inherit;
    color: inherit;
}

ul li:hover>ul {
    display: block;
    box-shadow: 0px 2px 10px rgb(110, 209, 90);
    border-radius: 5px;
}

li:hover li:hover {
    background-color: rgb(222, 255, 213);
}

/* détails */
details,
details>* {
    font-size: smaller;
    font-weight: lighter;
    margin: 10px 0px;
    cursor: pointer;
}


@media only screen and (max-width: 950px) {

    header,
    nav {
        white-space: nowrap;
        z-index: 5;
        display: flex;
        flex-flow: column nowrap;
        background-color: white;
        margin: 0;
        padding: 0px;
        position: sticky;
        position: -webkit-sticky;
        top: 0px;
        justify-content: space-between;
        justify-items: center;
        align-items: center;
        width: 100%;
    }

    header img,
    nav img {
        display: none;
    }

    #topbarcontainer li a {
        padding: 5px;
    }


    .menuBtn, .menuBtnSup {
        min-width: 20px;
    }


    .menuBtn li, .menuBtnSup li {
        position: relative;
    }

    .menuBtn li a, .menuBtnSup li a {
        padding: 5px;
    }


    .menuBtn li ul, .menuBtnSup li ul {
        position: absolute;
        top: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        display: none;
        line-height: normal;
        background-color: rgb(255, 255, 255);
        animation: fade 0.2s linear;
    }

    .menuBtn li ul li a , .menuBtnSup li ul li a{
        text-align: left;
        color: inherit;
        font-size: 12px;
        padding: 5px;
        display: block;
        white-space: nowrap;
    }

    .menuBtn li ul li a:hover, .menuBtnSup li ul li a:hover {
        background-color: rgb(208, 255, 131);
        color: inherit;
    }

    .menuBtn li ul li ul, .menuBtnSup li ul li ul {
        right: 100%;
        top: 0;
    }


    ul li:hover>a {
        background-color: inherit;
        color: inherit;
    }

    ul li:hover>ul {
        display: inline;
        box-shadow: 0px 2px 10px rgb(110, 209, 90);
        border-radius: 5px;
    }

    li:hover li:hover {
        background-color: rgb(222, 255, 213);
    }
}



/* Modification d'apparence des tableaux en fonction des valeurs affichées */
.tooLow {
    font-weight: bold;
    background-color: rgba(44, 0, 204, 0.2) !important;
    transition: 0.3s;
}

.tooLowRow {
    background-color: rgba(44, 0, 204, 0.1) !important;
}

tr:hover .tooLow {
    background-color: rgba(44, 0, 204, 0.4) !important;
}


.tooHigh {
    font-weight: bold;
    background-color: rgba(204, 0, 0, 0.2) !important;
}

.tooHighRow {
    background-color: rgba(204, 0, 0, 0.1) !important;
}

tr:hover .tooHigh {
    background-color: rgba(204, 0, 0, 0.4) !important;
    transition: 0.3s;

}


