/* 
 *  Copyright Suderiane - Anthony J.
*/
:root {
    --color-fnaim: rgb(204, 153, 51);
    --color-red: rgb(243, 50, 50);
    --color-red-rgba: rgba(243, 50, 50, 0.95);
    --color-red-darker: rgb(112, 34, 34);
    --color-green: rgb(50, 243, 76);
    --color-green-rgba: rgba(50, 243, 76, 0.95);
    --color-green-darker: rgb(28, 124, 41);
}

a[disabled], a.disabled {
    pointer-events: none;
    color: grey;
    background-color: ghostwhite;
}

.bd-navbar {
    position: sticky;
    top: 0;
    z-index: 1071;
}

body {
    height: 100%;
    min-height: 100%;
}

.btn.loading {
    color: rgba(0, 0, 0, 0) !important;
    position: relative;
}

    .btn.loading div {
        position: relative;
        display: flex;
        justify-content: space-around;
        align-items: center;
        top: 50%;
    }

    .btn.loading div .spinner-border {
        vertical-align: middle;
        margin-right: 2px;
        color: black !important;
        position: absolute;
    }

.btn-fnaim {
    background-color: var(--color-fnaim) !important;
    border: 1px solid #6c757d !important;
    color: black !important;
}

    .btn-fnaim:hover {
        background-color: rgb(167, 115, 81) !important;
    }



.btn-fnaim-red {
    background-color: rgb(209, 39, 39) !important;
    border-color: #6c757d !important;
    color: black;
}

    .btn-fnaim-red:hover {
        background-color: rgb(172, 53, 63);
    }

.btn-submit {
    padding: 10px !important;
}

/* Buttons alignés aux saisies dans le formulaire */
.btn-submit-input {
    width: 100px;
}

.btn-submit-input-edit-mission {
    width: 150px;
}

#buttonSideMenu {
    background: none;
    border: none;
    display: none;
    text-align: center;
    vertical-align: middle;
}

.dataTables_filter {
    display: none !important;
}

.disabled {
    color: grey;
    pointer-events: none;
}

#divError, #divSuccess {
    font-size: 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 5000;
    padding: 15px 0;
}

    /*#divError {
        color: var(--color-red-darker);
        background-color: var(--color-red-rgba);
        border: 3px solid var(--color-red-darker);
    }

    #divSuccess {
        color: var(--color-red-green);
        background-color: var(--color-green-rgba);
        border: 3px solid var(--color-green-darker);
    }*/

    #divError .closeDiv
    , #divSuccess .closeDiv{
        position: absolute;
        top: 0;
        right: 10px;
        padding: 0;
        background-color: rgba(197, 197, 197, 0);
        font-size: 17px;
        font-weight: bold;
    }


.flexColumn, .flexColumnCenter {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .flexColumnCenter {
        align-items: center;
    }

.flexColumnStart {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.flexColumnReverse {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between; 
}

.flexRow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /*flex-wrap: wrap;*/
}

.flexRowAround {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.flexRowEnd {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.flexRowStart {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

footer {
    padding: 10px;
    border-top: 2px solid rgb(204, 153, 51);
    color: grey;
    font-size: 13px;

    position: relative;
    bottom: 0;
    width: 100%;
    background-color: white;
    height:45px;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 0px !important;
    border-bottom: 2px solid rgb(204, 153, 51);
}

    header a {
        display: flex !important;
        text-decoration: none;
        height: 100%;
        justify-content: center;
        flex-direction: column;
        color: black;   
    }

    header a:hover {
        color: grey;

    }

.input-group-prepend{
    padding-left: 0;
    padding-right: 0;
}

.input-group.row {
    margin-left: 0;
    margin-right: 0;
}

.labelCompany {
    width: 160px;
}

.labelLogin {
    width: 150px;
}

.labelCreaMission {
    width: clamp(50px, 200px, 100%);
}


.labelMission, .labelRealEstate, .labelJP {
    width: 100%;
    /*white-space: normal;*/
}


.labelMissionDate {
    width: 180px;
}

.labelUser {
    width: 220px;
}

.labelProfil {
    width: 135px;
}

.labelPassword {
    width: 300px;
}

.legend
{
    font-size: 12px;
    color: grey;
}

.linkTab, .linkTabStart, .linkTabEnd {
    padding: 10px;
    border: 1px solid black;
    text-decoration: none !important;
    color: black;
    display: flex;
    align-items: center;
}
    .linkTab {
        border-left: 0px;
    }

    .linkTabStart {
        border-top-left-radius: 10px;
        border-left: 1px solid black;
    }

    .linkTabEnd {
        border-top-right-radius: 10px;
        border-left: 0px;
    }

    .linkTab:hover, .linkTabStart:hover, .linkTabEnd:hover {
        background-color: rgb(204, 153, 51);
    }

    .linkTab.active {
        border-bottom: none;
        background-image: linear-gradient(rgb(204, 153, 51), transparent);
    }


#loadSection {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%; width: 100%; 
    text-align: center; 
    margin: 0; 
    vertical-align: middle;
    z-index: 100000;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /*height: calc(100vh - 100px - 50px - 70px);*/
}

nav {
    display: flex;
    align-self: stretch;
}

.no-margin {
    margin: 0 !important;
}

#sideNav {
    transition: 0.5s;
    overflow-x: hidden;
    z-index: 1;
    width: 0;
    height: 100%;
    position: fixed;
    background-color: white;
}

.tabExtend {
    width: 100%;
    border-bottom: 1px solid black;
}

textarea.mail {
    height: 300px;
}


.dataTables_scrollHeadInner, .table {
    width: 100% !important;
}

    .table th {
        vertical-align: middle !important;
    }


@media (min-width: 992px) {
    .col-lg-6 {
        max-width: 48%;
    }
}

@media (max-width: 992px) {
    #buttonSideMenu {
        display: block;
    }

    #homepage_button > img {
        width: 300px;
    }

    nav {
        display: none;
        transition: all 0.5s ease;
        width: 100%;
    }

        nav.active {
            display: flex;
            flex-direction: column;
        }

        nav > div {
            flex-direction: column !important;
            width: 100%;
        }        

        nav a {
            padding: 0.75em 1em;
            border-top: 1px solid rgba(0, 0, 0, 0.3);
            text-align: center;
        }
}