﻿input:-webkit-autofill {
    /*dans le cas d'un mot de passe retenu par chrome, empeche de coloriser la textbox en jaune*/
    -webkit-box-shadow: 0 0 0 50px #ffffff inset;
}

body {
    -webkit-overflow-scrolling: touch;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body, label, span, img, a, input {
    font-weight: 100;
    font-family: 'ID GDT Normal'; /* #45323 */
    color: black;
    /*permet de désactiver la sélection de texte*/
    /*-webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;*/
}

content {
    position: fixed;
    /*max-height: 350px;*/
    padding-bottom: 20px;
}



#inputs {
    float: left;
}


    #inputs input {
        width: 100%;
    }

#textbox_user,
#textbox_password,
#button_login_mire,
#textbox_user_mire {
    height: 50px;
    background-size: 25px;
}

#textbox_user,
#textbox_password,
#textbox_user_mire {
    background-position: 10px center;
    text-indent: 50px;
    font-size: 20px;
    width: 100%;
}


UserImage,
KeyImage {
    position: absolute;
    display: block;
    height: 30px;
    width: 30px;
    color: #128ec8;
    font-size: 25px;
    font-family: 'Font Awesome Solid';
    margin-left: 5px;
}


UserImage {
    margin-top: 3px;
}

KeyImage {
    margin-top: 12px;
}

UserImage:before {
    content: "\f007";
}

KeyImage:before {
    content: "\f084";
}


#textbox_password {
    margin-top: 10px;
    display: block;
}

#button_login,
#button_login_mire {
    background-position: center;
    background-image: url(../Images/login.svg);
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
}

    #button_login:active,
    #button_login_mire:active {
        border: none;
        background-color: transparent;
    }

    #button_login:hover,
    #button_login_mire:hover {
        cursor: pointer;
        background-color: white;
    }

#labelMire {
    margin-top: 10px;
    text-align: left;
}

#label_error {
    color: red;
    margin-top: 10px;
    text-align: left;
}

#label_warning {
    color: orange;
    margin-top: 20px;
    text-align: left;
    font-weight: bold;
}

@media screen and (min-width:200px) {
    content {
        height: 90%;
        top: 5%;
        width: 90%;
        left: 5%;
        text-align: center;
    }

    #image_logoApplication {
        width: 80%;
    }

    #inputs {
        width: 90%;
        margin-left: 5%;
    }

    #button_login,
    #button_login_mire {
        height: 40px;
        float: left;
        width: 40px;
        background-size: 30px;
        position: absolute;
        bottom: 5px;
        right: 5px;
    }

    #textbox_user,
    #textbox_password,
    #textbox_user_mire {
        background-position: 10px center;
        text-indent: 50px;
        font-size: 20px;
        height: 40px;
    }

    #image_logoInfodream {
        position: fixed;
        right: 15px;
        bottom: 15px;
        height: 80px;
        width: 160px;
        display: none;
    }
}

@media screen and (min-width:286px) {
    #image_logoApplication {
        width: 70%;
    }

    #label_error {
        width: 200px;
        /*margin-left:-35px;*/
    }
}

@media screen and (min-width:330px) {
    #image_logoApplication {
        width: 200px;
    }
}

@media screen and (min-width:500px) {
    #inputs {
        width: 370px;
    }

    #button_login {
        position: static;
        left: 0;
        bottom: 0;
        margin-top: 45px;
    }


    #button_login_mire {
        position: static;
        left: 0;
        bottom: 0;
        margin-top: -5px;
    }

    form {
        text-align: center;
    }


    content {
        position: inherit;
        top: 0;
        left: 0;
        display: inline-block;
        margin-top: 100px;
        width: 450px;
    }

    #button_login {
        position: static;
        left: 0;
        bottom: 0;
        margin-top: 50px;
        margin-left: 8px;
    }

    #button_login_mire {
        position: static;
        left: 0;
        bottom: 0;
        margin-top: -5px;
    }
}

@media screen and (min-height:500px) {
    #image_logoInfodream {
        display: block;
    }
}

@media screen and (max-height :380px) {
    #image_logoApplication {
        width: 50px;
    }
}



@media screen and (max-height :280px) {
    #image_logoApplication {
        display: none;
    }

    #inputs {
        margin-top: 20px;
    }
}






/************* MEDIA ***********************/


@media only screen and (max-width: 375px), (max-height: 700px) {

    .container {
        width: 100%;
        height: 100%;
    }

    .selectprofile {
        padding: 5px;
    }

    .container.PosteChargeNever {
        height: 100%;
    }
}


@media only screen and (max-width: 768px) and (min-width: 375px) {

    .selectprofile {
        padding: 25px;
    }
}

/******************************************************************/




/* Zone profils et poste de charge */

* {
    box-sizing: border-box;
}

.selectprofile {
    display: flex;
    flex:1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding-top: 40px;
    padding-bottom: 40px;
}

    .selectprofile.readonly {
        pointer-events: none;
    }

.container {
    display: flex;
    border: 1px solid #ccc;
    flex-direction: column;
    width: 400px;
    overflow: hidden;
    height: auto;
}


.collapsibleContainer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100% - 50px);
}


.profilesSelection {
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 260px;
}

.workCenterSelection {
    flex: 1 0 auto;
    overflow: hidden;
}

    .workCenterSelection.withoutprofilechoice {
        flex: none;
    }


.profilesSelection collapsiblecontent {
    overflow: hidden;
}


.divSelectAllLinks {
    width: 100%;
    flex: 0 0 auto;
    height: 30px;
}

.divKeyInUse {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    height: 30px;
    align-items: center;
}

.keyInUse {
    padding-left: 5px;
    color: #128ec8;
    font-weight: bold;
    width: 0;
}


.profileCollection {
    width: 100%;
    flex: 1 1 auto;
    max-height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    overflow: auto;
    border: 1px solid #ccc;
    min-height: 150px;
}

    .profileCollection .profileItem:nth-child(odd) {
        background-color: #f0f0f0;
    }


CollapsibleBlock {
    padding: 5px;
    width: 100%;
}


.linkSelectAll, .linkUnSelectAll {
    color: #128ec8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    position: absolute;
    margin-top: 5px;
}

    .linkSelectAll.hidden, .linkUnSelectAll.hidden {
        display: none;
    }



.profileItem {
    align-items: center;
    display: flex;
    flex: 0 0 50px;
    width: 100%;
    padding-left: 5px;
}

.profileDescription {
    line-height: 50px;
    padding-left: 10px;
    width: 100%;
    height: 100%;
    cursor: pointer;
}


/**
    BLOC POSTES DE CHARGE
*/

.workCenterSelection.hidden {
    display: none;
}

.workCenterSelection CollapsibleContent {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: auto;
}

.divWorkShop, .divWorkCenter {
    display: flex;
}

.divWorkShop {
    margin-bottom: 8px;
}

.divWorkCenter {
    overflow: hidden;
    /*    min-height: 34px;*/
}

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%;
    }


.selectBoxInput {
    width: 100%;
}

/* Zone de validation */
.validationBar {
    display: flex;
    flex: 0 0 50px;
    width: 400px;
    height: 50px;
    background-color: #f0f0f0;
    border-top: none !important;
    border: 1px solid #ccc;
    align-items: center;
    justify-content: center;
}


.selectprofile .valid {
    cursor: pointer;
    height: 100%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
}

/** Gestion du consentement **/
.consentcontainer {
    display: flex;
    border: 1px solid #ccc;
    flex-direction: column;
    width: 800px;
    overflow: hidden;
    height: auto;
}

.consentvalidationBar {
    display: flex;
    flex: 0 0 50px;
    width: 800px;
    height: 50px;
    background-color: #f0f0f0;
    border-top: none !important;
    border: 1px solid #ccc;
    align-items: center;
    justify-content: center;
}
.validconsent::before {
    font-family: 'Font Awesome Solid';
    content: "\f00c";
    color: rgb(34,177,76);
    /*font-size: 2em;*/
}


.cancelconsent::before {
    font-family: 'Font Awesome Solid';
    content: "\f00d";
    color: red;
}

.consent {
    border-bottom: 1px solid #ccc;
    padding: 5px;
    font-size: 20px;
    /*font-weight: bold;*/
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
/**
    VALIDATION PROFILS ET POSTES DE CHARGES
*/
#button_login, #button_login_mire {
}


.selectprofile .valid.readonly {
    pointer-events: none;
    color: #ccc;
}

.selectprofile .valid:hover {
    background: white;
}

.selectprofile .valid.loading {
    pointer-events: none;
}

    .selectprofile .valid.loading::before {
        content: "\f110";
        animation: rotate 2000ms infinite linear;
    }


.profileCollection, .workCenterSelection .selectBox.visible {
    overflow: auto;
}
