﻿
/* -- Div des informations de l'utilisateur -- */
#usermenuinput:checked ~ .user-menu {
    display: flex;
}

#usermenuinput:checked ~ header .button-user-menu + .triangle,
#usermenuinput:checked ~ header .button-user-menu + .triangle + .triangle-fond {
    display: block;
}


.user-menu {
    display: none;
    background: #f0f0f0;
    flex-direction: column;
    border: 1px solid #128ec8;
}


@media (min-width:470px) {
    .user-menu {
        position: absolute;
        right: 0;
        z-index: 5;
        width: 470px;
    }
}


.zone-buttons {
    display: flex;
    justify-content: center;
}


    .zone-buttons label {
        font-size: 3rem;
        font-family: 'Font Awesome Light';
        color: #128ec8;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        cursor: pointer;
        margin: 0 .6rem .2rem .6rem;
    }

    .zone-buttons .separator {
        align-self: flex-end;
        min-width: 1px;
        max-width: 1px;
        height: 90%;
        background: #128ec8;
        margin: 0;
    }



.zone-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-top: 1px solid #128ec8;
}

body.iphone .zone-content {
    overflow: auto;
    align-items: flex-start;
}

body.iphone .zone-keys {
    max-height: 100%;
}

body.iphone .zone-buttons {
    min-height: 45px;
    height: 45px;
    max-height: 45px;
}


/* Gestion du bouton actif, avec affichage de la zone désirée */


/*gestion de l'overflow pour edge et chrome lorsque le nom de base est trop long */
.Chrome .zone-main, .Edge .zone-main {
    overflow-x: visible;
}
/* De base chaque zone est masquée */
.zone-main,
.zone-user,
.zone-sessions,
.zone-keys {
    display: none;
}


#radio-main:checked ~ .zone-buttons .button-main,
#radio-user:checked ~ .zone-buttons .button-user,
#radio-sessions:checked ~ .zone-buttons .button-sessions,
#radio-keys:checked ~ .zone-buttons .button-keys,
.zone-buttons label:active {
    color: #128ec8;
    border-bottom: 5px solid rgb(252, 211, 7);
}


#radio-main:checked ~ .zone-content .zone-main,
#radio-user:checked ~ .zone-content .zone-user,
#radio-sessions:checked ~ .zone-content .zone-sessions,
#radio-keys:checked ~ .zone-content .zone-keys {
    display: flex;
}


.button-main:before {
    content: "\f129";
}

.button-user:before {
    content: "\f007";
}

.button-sessions:before {
    content: "\f0c0";
}

.button-keys:before {
    content: "\f084";
}

.zone-user,
.zone-sessions,
.zone-keys,
.zone-main {
    flex-wrap: wrap;
    overflow: hidden;
    white-space: nowrap;

}

.zone-sessions {
    width: 100%;
}


.user-desc {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
}

.user-logo {
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: .5em;
}

.labels-user {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    overflow: hidden;
}


.label-user {
    font-size: 1.5em;
    font-weight: 800;
    overflow : hidden;
    text-overflow: ellipsis;
}


.editPasswordArea {
    font-size: 1.1rem;
    align-self: flex-end;
    margin-right: .5em;
}

.user-logo::after {
    font-family: 'Font Awesome Light';
    content: "\f007";
    color: #128ec8;
    font-size: 5rem;
}

/*Region profils / groups */

.profiles, .groups {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 430px;
    width : 100%;
}

.groups {
    padding-top: 8px;
}

.title-profiles, .title-groups {
    background: #128ec8;
    color: white;
    padding-left: 1rem;
}

.item-profiles, .item-groups {
    padding-left: 1rem;
    border-right: 1px solid #128ec8;
    border-left: 1px solid #128ec8;
    border-bottom: 1px solid #128ec8;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    .item-profiles:nth-child(even),
    .item-groups:nth-child(even) {
        background-color: white;
    }

    .item-profiles:nth-child(odd),
    .item-groups:nth-child(odd) {
        background-color: #f0f0f0;
    }


/*Region postes de charge*/

.workcenters .selectBoxInput {
    width: 100%;
}

.workcenters CollapsibleTitle {
    border-bottom: 1px solid #128ec8;
    font-size: 16px;
}

.workcenters CollapsibleContent {
    padding: 0px;
    padding-top: 5px;
    flex-flow: row;
}


.workcenters .selectBoxContainer {
    flex: 1 1 90%;
}

.workCenterSelection CollapsibleContent {
    flex-direction: column;
}

.divWorkShop, .divWorkCenter {
    display: flex;
}

.divWorkShop {
    margin-bottom: 8px;
}

.divWorkCenter {
    flex-direction: column;
}

.selectBoxInput {
    width: 100%;
}

#SelectBoxWorkShop .selectBox.visible {
    background-color: white;
}

ComboCheckContent {
    flex: 1 1 auto;
    width: 100%;
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 5px;
    overflow: auto;
    border: 1px solid #ccc !important;
    display: none;
    flex-direction: column;
    position: static !important;
}

    ComboCheckContent.visible {
        display: flex;
    }

    ComboCheckContent item {
        width: 100%;
        cursor: pointer;
        padding-left: 10px;
        display: none;
        align-items: center;
    }

    ComboCheckContent.visible item {
        display: flex;
        flex: 0 0 18px;
        width: 100%;
    }


/*Barre de validation poste du charge*/

.actionBar {
    display: none;
    flex: 1 1 auto;
}

/*Bouton clear*/
.workcenters .clearBar {
    display: flex;
    justify-content: center;
    border: 1px solid #128ec8;
    border-radius: 4px;
    width: 50%;
    height: 34px;
    margin: 8px 8px 8px 0;
    cursor: pointer;
}

.workcenters .clear {
    font-size: 18px;
    border: none;
}

    .workcenters .clear.readonly {
        pointer-events: none;
        color: #ccc;
    }

    .workcenters .clear.loading {
        pointer-events: none;
    }

        .workcenters .clear.loading::before {
            content: "\f110";
            animation: rotate 2000ms infinite linear;
        }


/*Bouton valide*/
.workcenters .validationBar {
    display: flex;
    justify-content: center;
    border: 1px solid #128ec8;
    border-radius: 4px;
    width: 50%;
    height: 34px;
    margin: 8px 0 8px 0;
    cursor: pointer;
}

.workcenters .valid {
    font-size: 18px;
    border: none;
}

    .workcenters .valid.readonly {
        pointer-events: none;
        color: #ccc;
    }

    .workcenters .valid.loading {
        pointer-events: none;
    }

        .workcenters .valid.loading::before {
            content: "\f110";
            animation: rotate 2000ms infinite linear;
        }

/* Fin zone poste de charge */


.zone-main {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.app-logo {
    background-image: url(../../Images/Qualaxy.svg);
    background-repeat: no-repeat;
    min-height: 100px;
    height: 100px;
    min-width: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

    .app-logo::before {
        content: attr(title);
        font-size: 1.1rem;
    }

.db-info {
    display: flex;
    width: 65%;
}


/* On masque le logo de l'appli sur smartphone avec faible résolution*/
/*@media (max-width:300px) {

    .app-logo {
        display: none;
    }
}*/



.head-db-info,
.content-db-info {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.head-db-info {
    margin-right: 1em;
    align-items: flex-end;
    flex: 0.8;
}

.content-db-info {
    overflow: hidden;
    text-overflow: ellipsis;
}

    .content-db-info label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

#panelheadsessions,
#panelheadlicense {
    display: flex;
}

.main-buttons {
    border-top: 1px solid #128ec8;
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.zone-buttons > a:first-child {
    align-self: flex-start;
}




.items-lang {
    display: flex;
}


    .items-lang a {
        height: 30px;
        width: 34px;
        background-repeat: no-repeat;
        background-position: center;
        margin: 0 1rem;
        cursor: pointer;
        border-bottom: 2px solid transparent;
    }

    .items-lang .fr {
        background-image: url(../../Images/flag_france.png);
    }

    .items-lang .en {
        background-image: url(../../Images/flag_great_britain.png);
    }

    .items-lang .us {
        background-image: url(../../Images/flag_usa.png);
    }

    .items-lang .de {
        background-image: url(../../Images/flag_germany.png);
    }

    .items-lang .sp {
        background-image: url(../../Images/flag_spain.png);
    }

    .items-lang .ru {
        background-image: url(../../Images/flag_russia.png);
    }

    .items-lang .it {
        background-image: url(../../Images/flag_italy.png);
    }

    .items-lang a:hover,
    .items-lang a:active,
    .items-lang a:visited,
    body.fr .items-lang .fr,
    body.en .items-lang .en,
    body.us .items-lang .us,
    body.de .items-lang .de,
    body.sp .items-lang .sp,
    body.ru .items-lang .ru,
    body.it .items-lang .it {
        border-color: #128ec8;
    }





#button_refresh_sessions,
#button_refresh_licenses {
    margin-left: auto;
    font-family: 'Font Awesome Light';
    font-size: 2rem;
    height: 30px;
    width: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #128ec8;
    color: white;
}

    #button_refresh_sessions:hover,
    #button_refresh_licenses:hover {
        border: 1px solid white;
    }

    #button_refresh_sessions:active,
    #button_refresh_licenses:active {
        color: #128ec8;
        background: white;
    }


    #button_refresh_sessions:after,
    #button_refresh_licenses:after {
        content: "\f021";
    }






#button_exit,
#button_parameters {
    font-family: 'Font Awesome Light';
    font-size: 3rem;
    color: #128ec8;
    cursor: pointer;
}

    #button_parameters:after {
        content: "\f013";
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



#button_parameters {
    animation: linear;
    animation-name: rotate;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
}

    #button_parameters:hover,
    #button_parameters:active,
    #button_parameters:focus {
        will-change: animation;
        animation-play-state: running;
    }




#button_exit:after {
    content: "\f08b";
    transition: .5s color;
    border-radius: 5px;
}

#button_exit:hover,
#button_exit:active,
#button_exit:focus {
    color: red;
}


.zone-user {
    flex: 1 1 auto;
    flex-direction: column;
}

.EditPassword {
    color: #128ec8;
    cursor: pointer;
}


#editpasswordinput:checked ~ .user-desc,
#editpasswordinput:checked ~ .profiles {
    display: none;
}

#editpasswordinput:checked ~ .edit-password {
    display: flex;
}


.edit-password {
    display: none;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
}

    .edit-password > * {
        min-width: 100%;
        margin-bottom: .6rem;
    }

.head-edit-password {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-edit-password {
    border-top: 1px solid #128ec8;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between
}

    .footer-edit-password > * {
        cursor: pointer;
    }




/***** DEBUT ZONE SESSIONS *****/


.zone-sessions {
    display: none;
    flex-direction: column;
}

.title-sessions {
    background: #128ec8;
    color: white;
    font-weight: 900;
    width: 100%;
    padding: .5rem;
    display: flex;
}

.content-sessions {
    border: 1px solid #128ec8;
    display: block;
    flex: 1 1 auto;
    height: 100%;
    flex-direction: column;
    width: 100%;
}


    /*** HEADER SESSIONS ***/

    .content-sessions .header {
        background: white;
        display: flex;
        width: 100%;
        border-bottom: 1px solid #128ec8;
        padding: 5px;
    }

    .content-sessions .head {
        display: flex;
        justify-content: center;
    }

        .content-sessions .head.browser {
            flex: 1 1 5%;
            color: transparent;
        }

        .content-sessions .head.username {
            flex: 1 1 25%;
        }

        .content-sessions .head.hostname {
            flex: 1 1 26%;
        }

        .content-sessions .head.datetime {
            flex: 1 1 24%;
        }

        .content-sessions .head.borrowed {
            flex: 1 1 15%;
        }

        .content-sessions .head.disconnect {
            flex: 1 1 5%;
            color: transparent;
        }


    /*** CONTENT SESSIONS ***/

    .content-sessions .user-session-content {
        display: flex;
        flex-direction: column;
        overflow: auto;
    }

        .content-sessions .user-session-content .session-item {
            display: flex;
            padding: 5px;
            width: 100%;
            align-items: center;
        }

            .content-sessions .user-session-content .session-item:nth-child(even) {
                background: #fff
            }


    .content-sessions .item {
        display: flex;
        justify-content: center;
    }


        .content-sessions .item.browser {
            flex: 1 1 5%;
            justify-content: center;
            color: #128ec8;
        }

            .content-sessions .item.browser.Chrome:before {
                color: green
            }

            .content-sessions .item.browser.Firefox:before {
                color: orange;
            }

            .content-sessions .item.browser.Safari:before {
                color: black;
            }

            .content-sessions .item.browser.Opera:before {
                color: red;
            }


        .content-sessions .item.username {
            flex: 1 1 25%;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

            .content-sessions .item.username p {
                font-size: 11px;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
            }

        .content-sessions .item.hostname {
            flex: 1 1 26%;
        }

            .content-sessions .item.hostname p {
                font-size: 11px;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
            }

        .content-sessions .item.datetime {
            flex: 1 1 24%;
        }

            .content-sessions .item.datetime p {
                font-size: 11px;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
            }

        .content-sessions .item.borrowed {
            flex: 1 1 15%;
            font-family: 'Font Awesome Light';
            color: #128ec8;
            width: 100%;
            padding-left: 0;
            display: flex;
            justify-content: center;
        }

            .content-sessions .item.Borrowed:before {
                content: "\f064";
            }


        .content-sessions .item.disconnect {
            flex: 1 1 5%;
            justify-content: center;
        }

            .content-sessions .item.disconnect:not(.ReadOnly) {
                cursor: pointer;
            }

                .content-sessions .item.disconnect:not(.ReadOnly):after {
                    content: "\f08b";
                    font-family: 'Font Awesome Light';
                    color: red;
                }


        .content-sessions .item.lost {
            color: red;
        }


    /*TFS786*/
    .content-sessions .browser .fa-wifi {
        color: red;
    }




/* FIN ZONE SESSIONS */



.about {
    flex: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.legalnotice
.releaseNote {
    color: #128ec8;
    font-size: 11px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-right: 2rem;
}

    .legalnotice
    .releaseNote:hover {
        cursor: pointer;
        text-decoration: underline;
    }

.releaseNote.disabled {
    display: none;
}
