@font-face {
 font-family: "Century Gothic";
 src: url("CenturyGothic.ttf") format("ttf");
}

:root{
    --fontCorp: Mulin, Roboto, sans-serif;
    --fontTitre: 'Century Gothic';
    --vert: #78B52E;
    --vert2: #1f7c16;
    --vert3: #b3d589;
    --orange: #dd9933;
    --rouge: #952121;
    --blanc: #fff;
    --noir: #000;
}
body
{
    margin: 0;
    width: 100%;
    font-family: var(--fontCorp);
    background-color: var(--blanc);
}
form
{
    margin: 0;
}
input, button
{
    font-family: var(--fontCorp);
}
ul
{
    list-style-type: none;
    padding: 0;
}
h1, h2, h3
{
    font-family: var(--fontTitre);
    font-weight: normal;
    margin: 0;
}

/** Scroll Bar
  * width */
.card::-webkit-scrollbar, .modalBody::-webkit-scrollbar
{
    width: 15px;
}
  /* Handle */
.card::-webkit-scrollbar-thumb , .modalBody::-webkit-scrollbar-thumb
{
    background: var(--vert);
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *              INDEX              *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/
#indexBack
{
    width: 100%;
    height: 40vh;
    margin-top: -20vh;
    background-image: url(../img/logoVV-BAT.svg);
    background-position: center;
    background-repeat: no-repeat;
}
#index
{
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}
#index form
{
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    border: solid 3px var(--vert);
    padding-top: 20px;
    border-radius: 10px;
    width: 30%;
}
#index h1
{
    position: absolute;
    top: calc(-0.6em - 3px);
    left: 10px;
    background-color: var(--blanc);
    padding: 0 3px;
    font-family: var(--fontTitre);
    color: var(--vert);
    font-weight: bold;
    font-size: 1.2em;
}
#index form input
{
    margin: 0;
    width: 90%;
    margin-bottom: 10px;
    color: var(--vert);
    padding: 3px;
    border: solid 1px var(--vert);
    border-radius: 5px;   
}
#index form input:focus
{
    outline-color: var(--vert);
}
#index form input[type=submit]
{
    background-color: var(--vert);
    border-color: var(--vert);
    color: var(--blanc);
    width: 50%;
}
#index form input[type="submit"]:hover
{
    opacity: 0.75;
    cursor: pointer;
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *             HEADER              *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

#navBar
{
    height: 20vh;
    width: 100%;
    position: absolute;
    background-color: var(--vert);
    color: #fff;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    box-shadow:  0 0 5px rgba(0, 0, 0, 0.5);
}
#navBar #logoVille
{
    height: 14vh;
}
#settings
{
    height: 5vh;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    align-content: center;
    justify-content: space-around;
}
#settings .btn
{
    position: relative;
}
#settings .btn #homeSVG,#settings .btn #chartSVG
{
    height: 1.2em;
    margin: 0;
}
#stat span
{
    padding-left: 0.5em;
}
#settings input, #settings button
{
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    border: none;
    background: none;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    height: 5vh;
    font-size: 0.9em;
    padding: 0 1em;
}
#settings button svg
{
    fill: var(--blanc);
    height: 0.7em;
    margin-left: 5px;
}
#settings input:hover, #settings button:hover
{
    cursor: pointer;
}
#settings .btn::after
{
    align-self: flex-end;
    position: absolute;
    bottom: 0;
    left: 50%;
    content: '';
    width: 0;
    height: 3px;
    background-color: var(--vert2);
    transition: all 0.35s;
}
#settings .btn:hover::after
{
    left: 0;
    width: 100%;
}
#changeMdp
{
    position: fixed;
    top: 20vh;
    left: 20vw;
    max-width: 60vw;
    z-index: 10;
    color: var(--noir);
    background-color: var(--blanc);
    box-shadow:  0 0 5px rgba(0, 0, 0, 0.5);
    width: calc(100% - 20px);
    padding: 10px 10px 0 10px;
    display: none;
}
#changeMdpBtn button:hover
{
    cursor: default;
}
#changeMdp form
{
    display: flex;
    flex-flow: column nowrap;
    align-content: center;
    align-items: center;
    width: 100%;
}
#changeMdp form input
{
    margin: 0;
    width: 90%;
    margin-bottom: 10px;
    color: var(--vert);
    border: solid 1px var(--vert);
    border-radius: 5px;
}
#changeMdp form input:disabled
{
    opacity: 0.50;
}
#changeMdp form input:focus
{
    outline-color: var(--vert);
}
#changeMdp ul
{
    width: 90%;
    list-style-type: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 0.9em;
}
#changeMdp li
{
    fill: var(--rouge);
    color: var(--rouge);
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: baseline;
    width: 100%;
}
#changeMdp li svg
{
    height: 1em;
    margin-right: 5px;
}
#changeMdp form input[type="submit"]
{
    background-color: var(--vert);
    border-color: var(--vert);
    color: var(--blanc);
}
#changeMdp form input[type="submit"]:disabled
{
    pointer-events: none;
}
#changeMdp form input[type="submit"]:enabled:hover
{
    opacity: 0.75;
    cursor: pointer;
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *            USER TDB             *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

#userTDB
{
    display: grid;
    grid-gap: 1vw;
    padding: 22vh 1vw 0 1vw;
    grid-template-columns: repeat(2, 1fr);
    height: 78vh;
    width: 98vw;
    max-height: 78vh;
}
.defiTitle label
{
    font-family: var(--fontTitre);
    font-weight: normal;
    margin: 0;
}

#title
{
    display: flex;
    align-items: center;
    align-content: center;
}
.card
{
    background-color: var(--blanc);
    padding: 10px;
    height: calc(100% - 4vh);
    overflow-y: scroll;
    box-shadow:  0 0 5px rgba(0, 0, 0, 0.5);
}
.defiCard, .histoCard
{
    border-left: solid 3px var(--vert);
    padding: 10px;
    margin: 1vh 0;
    position: relative;
    user-select: none;
}
.defiCard span, .histoCard span
{
    display: none;
}
.defiTitle
{
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: baseline;
    height: 20vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 -2.5em 10px -10px var(--blanc);
}
.defiTitle label
{
    font-weight: bold;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: baseline;
}
.defiTitle label:hover
{
    cursor: pointer;
}
.defiTitle input
{
    display: none;
}
.moreCheck
{
    width: 1em;
}
.validTask
{
    display: none;
    border: solid 3px var(--vert);
    background-color: var(--vert);
    color: #fff;
    font-weight: bold;
    padding: 1vh;
    position: absolute;
    right: 10px;
    bottom: 10px;
}
.validTask:hover
{
    opacity: 0.5;
    cursor: pointer;
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *         ADMIN NAV BAR           *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

#adminNavBar
{
    overflow: hidden;
}
#adminNavBar ul
{
    margin: 0;
}
#adminNavBar li
{
    margin-bottom: 15px;
    padding: 5px;
}
#adminNavBar li:hover
{
    background-color: var(--vert);
}
#adminNavBar li:hover a
{
    color: var(--blanc);
}
#adminNavBar li:hover .iconSvg
{
    fill: var(--blanc);
}
#adminNavBar .selected, #adminNavBar .selected a, #adminNavBar .selected .iconSvg
{
    color: var(--vert2);
    fill: var(--vert2);
    background: none;
    cursor: default;
}
#adminNavBar .selected:hover, #adminNavBar .selected:hover a, #adminNavBar .selected:hover .iconSvg
{
    color: var(--vert2);
    fill: var(--vert2);
    background: none;
    cursor: default;
    pointer-events: none;
}
#adminNavBar li a
{
    display: flex;
    justify-content: baseline;
    align-items: center;
    align-content: center;
    color: var(--vert);
    text-decoration: none;
    font-family: var(--fontTitre);
    font-weight: bold;
}
#adminNavBar .iconSvg
{
    fill: var(--vert);
    width: 1.8em;
}
#adminNavBar span
{
    display: none;
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *           ADMIN TDB             *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

#adminTDB
{
    display: grid;
    grid-gap: 1vw;
    padding: 22vh 1vw 0 1vw;
    grid-template-columns: calc(1.8em + 30px) repeat(2, 1fr);
    grid-template-rows: 1fr;
    height: 78vh;
    width: 98vw;
    max-height: 78vh;
}
#exportdiv 
{
    width: 100%;
    height: 40px;
    margin-top: -30px;
    position: relative;
}
#graphServices
{
    overflow: hidden;
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *         ADMIN VALID             *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

#adminValid
{
    display: grid;
    grid-gap: 1vw;
    padding: 22vh 1vw 0 1vw;
    grid-template-columns: calc(1.8em + 30px) 1fr;
    grid-template-rows: 1fr;
    height: 78vh;
    width: 98vw;
    max-height: 78vh;   
}
#validMan h2
{
    position: absolute;
    top: 10px;
    left: 10px;;
}
#validMan, #validForm, #validForm form
{
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    font-weight: bold;
}
#validForm
{
    width: 30%;
    padding: 10px 10px 0 10px;
    border-left: solid 3px var(--vert);
    border-bottom: solid 3px var(--vert);
}
#agentSelectDiv
{
    width: 100%;
    padding: 5px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}
#validForm form
{
    width: 100%;
}
#validForm input[type=text]
{
    margin: 0;
    width: calc(100% - 10px);
    padding: 5px;
    margin-bottom: 10px;
    color: var(--vert);
    border: solid 1px var(--vert);
    border-radius: 5px;
    font-weight: bold;
}
#validForm input[type=text]:focus
{
    outline-color: var(--vert);
}
#validForm input[type=submit], #validForm button
{
    margin: 0;
    width: calc(50% - 10px);
    margin-bottom: 10px;
    padding: 5px;
    border: solid 1px var(--vert);
    border-radius: 5px;
    background-color: var(--vert);
    border-color: var(--vert);
    color: var(--blanc);
    font-weight: bold;
}
#validForm input[type=submit]:hover , #validForm button:hover
{
    cursor: pointer;
    opacity: 0.75;
}
#validForm input[type=submit]:disabled , #validForm button:disabled
{
    cursor: default;
    opacity: 0.75;
}
#agentSelectDiv input[type=text]
{
    width: 70%;
}
#agentSelectDiv button
{
    width: 25%;
}
.inputError
{
    color: var(--rouge);
    font-size: 0.8em;
    font-family: var(--fontCorp);
    font-weight: normal;
    margin-top: -5px;
    margin-bottom: 5px;
    display: none;
}
#agentError, #agentError2
{
    margin-top: -10px;
    margin-bottom: 10px;
}
#selectedAgents
{
    display: flex;
    flex-flow: row;
    justify-content: center;
    margin-bottom: 20px;
    width: 80%;
    height: calc(1em + 12px);
}
#selectedAgents span
{
    border-radius: 10px;
    background-color: var(--vert);
    padding: 5px 10px;
    margin: 0 5px;
    color: var(--blanc);
}
#selectedAgents span:hover
{
    background-color: var(--rouge);
    cursor: pointer;
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *              CRUD               *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

table, th, td
{
    border-collapse: collapse;
}
th, td
{
    padding: 10px;
    text-align: start;
}
th
{
    background-color: var(--vert);
    color: var(--blanc);
    white-space:nowrap;
}
.trP
{
    background-color: var(--vert3);
}
table
{
    width: 100%;
}
.submitCRUD
{
    border: none;
    background: none;
    padding: 0;
}
.submitCRUD img
{
    height: 1.5em;
}
.submitCRUD:hover
{
    opacity: 0.5;
    cursor: pointer;
}
.formSupCRDU
{
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: end;
}
.actionCol
{
    text-align: center;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.formSupCRDU button
{
    width: 15em;
    margin: 0 0 10px 10px;
    color: var(--vert);
    background: none;
    font-size: 1em;
    font-weight: bold;
    padding: 1px;
    border: solid 3px var(--vert);
    border-radius: 5px; 
    background-color: var(--vert);
    color: var(--blanc);
}
.formSupCRDU button:hover
{
    opacity: 0.75;
    cursor: pointer;
}
#newLine
{
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    align-content: center;
    justify-content: center;
}
#addLine
{
    margin: 0;
    width: 50%;
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: bold;
    padding: 1px;
    border: solid 3px var(--vert);
    border-radius: 5px;
    background-color: var(--vert);
    border-color: var(--vert);
    color: var(--blanc);
}
#addLine:hover
{
    cursor: pointer;
    opacity: 0.75;
}
.miniature
{
    max-height: 5vh;
    max-width: 10vw;
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *             MODAL               *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

.modal
{
    z-index: 15;
    height: 100vh;
    width: 100vw;
    position: fixed;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    background-color: hsla(0, 0%, 0%, 0.5);
}
.modalBody
{
    height: 50vh;
    width: 50vw;
    background-color: var(--blanc);
    padding: 10px;
    border: solid 3px var(--vert);
    border-radius: 10px;
    overflow-y: scroll;
}
.modalBody h2
{
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}
.modalClose
{
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    top: calc(25vh + 5px);
    right: calc(25vw + 15px);
}
.modalClose:hover
{
    cursor: pointer;
    opacity: 0.5;
}
.modalClose img
{
    height: 1.5em;
}
.modalForm
{
    width: 100%;
    min-height: calc(100% - 40px);
    display: flex;
    flex-flow: column;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.modalForm input, .modalForm select, .modalForm textarea
{
    margin: 0;
    width: 50%;
    margin-bottom: 10px;
    color: var(--vert);
    font-size: 1em;
    font-weight: bold;
    padding: 3px;
    border: solid 1px var(--vert);
    border-radius: 5px;   
}
.modalForm textarea
{
    height: 7em;
    font-family: var(--fontCorp);
}
.modalForm input:focus, .modalForm select:focus, .modalForm textarea:focus
{
    outline-color: var(--vert);
}
.labelAlign
{
    margin: 0;
    width: 50%;
    margin-bottom: 10px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}
.labelAlign input
{
    width: 90%;
    margin: 0;
}
.labelAlign label
{
    color: var(--vert);
    font-family: var(--fontTitre);
}
.modalForm table
{
    margin-bottom: 10px;
}
.modalForm button
{
    margin: 0;
    width: 8em;
    margin-bottom: 10px;
    color: var(--vert);
    background: none;
    font-size: 1em;
    font-weight: bold;
    padding: 1px;
    border: solid 3px var(--vert);
    border-radius: 5px; 
}
.modalForm input[type=submit]
{
    background-color: var(--vert);
    border-color: var(--vert);
    color: var(--blanc);
    width: 8em;
}
.modalForm input[type="submit"]:hover, .modalForm button:hover
{
    opacity: 0.75;
    cursor: pointer;
}
.modalForm .miniature
{
    max-height: 3em;
    max-width: 100%;
    margin-bottom: 10px;
}
.deleteForm input, .deleteForm button, .deleteForm textarea
{
    border-color: var(--rouge);
    color: var(--rouge);
}
.deleteForm input[type=submit]
{
    background-color: var(--rouge);
    border-color: var(--rouge);
}
.fileInput
{
    background-color: aqua;
    width: 50%;
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *          CRUD AGENTS            *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

#agentCRUD
{
    display: grid;
    grid-gap: 1vw;
    padding: 22vh 1vw 0 1vw;
    grid-template-columns: calc(1.8em + 30px) 1fr;
    grid-template-rows: 1fr;
    height: 78vh;
    width: 98vw;
    max-height: 78vh;   
}

/**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  *                                 *
  *           CRUD DEFIS            *
  *                                 *
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**/

#defiCRUD
{
    display: grid;
    grid-gap: 1vw;
    padding: 22vh 1vw 0 1vw;
    grid-template-columns: calc(1.8em + 30px) 1fr;
    grid-template-rows: 1fr;
    height: 78vh;
    width: 98vw;
    max-height: 78vh;
}