/**
 * @author FÉRÉ Adrien <adrien.fere@etudiant.unc.nc>
 
 * admin.css est inclus dans les fichiers :
 * - layout.php
 */

#admin {
    height: 93%;
    overflow-y: scroll;
    position: absolute;
    width: 100%;
}

#bloc_gestion {
    border-style: solid;
    border-width: 2px;
    height: 86%;
    /* margin-bottom: 1vh; */
}

#nav_onglets_moncompte {
    height: 28px;
}

#ul_onglets_moncompte {
    list-style: none;
}

#ul_onglets_moncompte a {
    border-color: black;
    border-radius: 10px 10px 0px 0px;
    border-style: solid;
    border-width: 2px;
    display: inline-block;
    font-size: 1.05vw; /* 14px */
    transform: translateY(5px);
}

.active {
    background-color: white;
    border-width: 2px 2px 0px 2px !important;
    padding: 0 3px;
    transform: translateY(7px) !important;
}

.inactive {
    background-color: #80baff;
    padding: 0 3px;
}

#espace_perso {
    align-self: center;
    width: 50vw;
}

#gestion_utilisateurs, #gestion_ressources, #gestion_projets, #prj_popup {
    display: none;
    /* Style directement appliqués aux <div> car sinon les en-têtes des tableaux apparaîssent lorsque l'on fait :
    $("#bloc_gestion > #gestion_utilisateurs, #gestion_ressources, #gestion_projets").hide(); */
    width: 90vw;
}

#prj_popup {
    /* background-color: black; */
    display: none; /* Pour cacher dès le début */
    height: 100%;
    position: fixed;
    text-align: center;
    z-index: 15; /* Pour que le <div> passe devant tout dans la page */
}

#table_info {
    height: 77vh;
    margin-bottom: 0rem;
}

.table thead {
    position: sticky;
    text-align: center;
    top: 0;
    vertical-align: middle;
}

thead tr, #table_info tbody {
    background-color: #e7eef7;
}

.tableTitle div {
    font-size: 1.5vw;
}

#changePasswd {
    background-color: #80b0dd;
    color: black !important;
    padding-left: 0.25rem !important;
    text-align: center;
}

#table_info tbody th, #table_info tbody td {
    border-bottom-width: 0px;
    vertical-align: middle;
    width: 50%;
}

#table_info tbody th {
    color: grey;
    font-weight: normal;
    padding-left: 1.5rem;
}

#table_info th div, #table_info th {
    font-size: 1.7vw;
}

th.delete {
    width: 5%;
}

th[data-field="code_app_prj"], th[data-field="name_rgt"], th[data-field="type_app_rsc"], th[data-field="code_prj"], th[data-field="type_rsc"], th[data-field="status_prj"] {
    width: 8%;
}

th[data-field="setAflRol"] {
    width: 15%;
}

th[data-field="date_app_rsc"], th[data-field="date_rsc"], th[data-field="date_app_prj"], th[data-field="date_prj"] {
    width: 16%;
}

th[data-field="addAfl"], th[data-field="delAfl"]:not(.delete), th[data-field="setAppRscStatus"], th[data-field="setRgt"], th[data-field="setAppPrjStatus"], th[data-field="setPrjStatus"], th[data-field="name_rol"], th[data-field="setAflRol"], th[data-field="setRgtRscByPrj"] {
    width: 17%;
}

th[data-field="setPrj"] {
    width: 18%;
}

th[data-field="username"] {
    width: 21%;
}

th {
    font-size: 1.1vw;
}

#table_info td, #table_info input {
    font-size: 1.2vw;
}

#table_prj_desc td {
    text-align: justify;
    vertical-align: top;
    white-space: normal;
}

td, select {
    font-size: 1vw;
}

td {
    max-width: 0;
    overflow: hidden;
    padding-bottom: 0rem !important;
    padding-top: 0rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fit {
    white-space: nowrap;
    width: 1%;
}

.full-table, .half-table, .third-table {
    transition: height 0.5s ease-out;
}

.bootstrap-table .fixed-table-container .full-table {
    height: 89%;
    /* 97% */
}

.bootstrap-table .fixed-table-container .half-table {
    height: 40%;
    /* 48% */
}

.bootstrap-table .fixed-table-container .third-table {
    height: 18%;
    /* 26% */
}

.fixed-table-container .table.table-sm .delete .th-inner {
    font-size: 0.7vw;
    padding-bottom: 0.45rem;
    padding-top: 0.45rem;
}

.hidden-column {
    display: none;
    visibility: hidden;
}

.code_prj {
    cursor: pointer;
}


#icon_password_novisibility, #icon_password_visibility {
    height: 1.2vw;
    width: 1.2vw;
}

#icon_password_novisibility {
    display: none;
}

form {
    margin-bottom: 0px;
    vertical-align: middle;
}

select, button {
    vertical-align: middle;
}

.bi {
    height: 1.2vw;
    width: 1.2vw;
}

#popup_close {
    position: absolute;
    right: -4vw;
    top: 1vh;
}

.clickable_div, .tableTitle {
    background-color: #80b0dd;
    border-bottom: 0px;
    border-top: 0px;
}

.clickable_div {
    border-width: 0 1px;
    cursor: pointer;
    font-size: 1.5vw;
    font-weight: bold;
    margin-left: 0vh;
    margin-right: 0vh;
    margin-top: 1vh;
    padding: .3rem;
    text-align: center;
}