/* =============================================== *
  | ::::::::::::::::::::::::::::::::::::::::::::: |
  |  _____  ___     ___    ___  _  __       ____  |
  | |_   _||  _ \  / _ \  / __|| |/ /      |__  | |
  |   | |  | |_| || |_| || |   |   /         / /  |
  |   | |  |  _ / |  _  || |__ | |\ \   _   / /   |
  |   |_|  |_| \_\|_| |_| \___||_| \_\ (_) /_/    |
  |                                               |
  | ::::::::::::::::::::::::::::::::::::::::::::: |
 * ============= copyright 2018 IFMH ============= */

body {
    margin: 0px;
    color: #1D1C1C;
    background-color: #F5F4F4;
    font-family: sans-serif,Arial,Verdana,Helvetica;
    font-size: 14px;
}

input,
select,
textarea,
section,
aside,
div,
nav,
button,
a,
span {
    box-sizing: border-box;
}
button {
    border: none;
    background-color: transparent;
    font-size: inherit;
}
button.inline {
    background-color: #CED8F6;
    /*border: 1px solid #ADACAC;*/
    border-radius: 5px;
    font-size: 16px;
    line-height: 30px;
}
button.inline:hover {
    background-color: #AEC4FF;
}

button[class^='group'] {
    border-radius: 5px;
    font-size: 16px;
    line-height: 30px;
    border-top-style: solid;
    border-top-width: 3px;
}
button[class^='group']:hover {
    background-color: #AEC4FF;
    cursor: pointer;
}
button.group0 {
    background-color: #DFDEDE; 
}
button.group1 {
    border-top-color: #3366cc; 
    background-color: rgba(51, 102, 204, 0.2);
}
button.group2 {
    border-top-color: #dc3912;
    background-color: rgba(220, 57, 18, 0.2);
}
button.group3 {
    border-top-color: #ff9900;
    background-color: rgba(255, 153, 0, 0.2);
}
button.group4 {
    border-top-color: #109618; 
    background-color: rgba(16, 150, 24, 0.2);
}
button.group5 {
    border-top-color: #990099;
    background-color: rgba(153, 0, 153, 0.2);
}
button.group6 {
    border-top-color: #0099c6; 
    background-color: rgba(0, 153, 198, 0.2);
}
button.group7 {
    border-top-color: #dd4477; 
    background-color: rgba(221, 68, 119, 0.2);
}
button.group8 {
    border-top-color: #66aa00; 
    background-color: rgba(102, 170, 0, 0.2);
}
button.group9 {
    border-top-color: #b82e2e;
    background-color: rgba(184, 46, 46, 0.2);
}
button.group10 {
    border-top-color: #316395;
    background-color: rgba(49, 99, 149, 0.2);
}

button.tochart {
    width: 40px;
    height: 40px;
    border: 1px solid #9D9C9C;
    border-radius: 4px;
    background-color: #edecec;
    font-size: 18px;
    text-align: right;
   /* color: #9D9C9C;*/
}
button.tochart:hover {
    background-color: #AEC4FF;
}
input.datefilter,
select.datefilter {
    background-color: #ECEDED;
    border: 1px solid #ADACAC;
    border-radius: 5px;
    font-size: 14px;
    height: 30px;
    line-height: 30px;
}

/*=====================*
 |  POLICES IMPORTEES  |
 *=====================*/
@font-face {
    font-family: "Awesome";
    src: url('../font/fontawesome-webfont.eot');
    src: url('../font/fontawesome-webfont.eot?#iefix') format('embedded-opentype'), 
        url('../font/fontawesome-webfont.woff2') format('woff2'), 
        url('../font/fontawesome-webfont.woff') format('woff'), 
        url('../font/fontawesome-webfont.ttf') format('truetype'), 
        url('../font/fontawesome-webfont.svg#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* ICONES */

span.awicons,
span.aw_large,
span.aw_medium,
span.aw_small {
    font-family: 'Awesome';
    white-space: nowrap;
    word-break: keep-all;
}
span.awicons { font-size:1.3em;}
span.aw_large { font-size:1.8em;}
span.aw_medium { font-size:1em;}
span.aw_small { font-size:.8em;}
input.awicons {font-family: 'Awesome';}
select.awicons,
select.awicons > option {
    font-family: 'Awesome',sans-serif,Arial,Verdana,Helvetica;
}
span.selected {
    color: #FF9900;
}
span.warning {
    background-color: yellow;
    animation-name: warning;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
@keyframes warning {
    0% {background-color: yellow;}
    20% {background-color: transparent; color:#ff0000;}
    80% {background-color: yellow;}
    100% {background-color: yellow;}
}

.alert {
    color: #B22222;
    font-weight: bold;
}
.succes {
    color: #393;
}
.t7_bleu0 { color: #8EA4E9;}
.t7_bleu1 { color: #505C7C;}
.t_vert { color: #393;}
.t_rouge { color: #B22222;}
.t_gris1 {color: #4c4c4c;}
.t_gris {color: #7D7C7C;}
.t_gris0 {color: #CDCCCC;}
.ts10 {font-size:10px;}
.ts12 {font-size:12px;}
.ts14 {font-size:14px;}
.ts16 {font-size:16px;}
.ts18 {font-size:18px;}
.ts20 {font-size:20px;}
.center {text-align: center;}
.mgleft10 {margin-left: 10px;}
.bold {font-weight: bold;}

li.margintop {
    margin-top: 10px;
}


/* ================ *
 * Authentification *
 * ================ */
div#authentif {
    width: 300px;
    margin:  auto;
    background-color: #FDFCFC;
    border: 1px solid #ADACAC;
    font-size: 18px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
div#authentif > section.logo{
    width: 100%;
    height: 85px;
    background-color: #303C5C;
    background-image: url('../img/logo_track7.png');
    background-repeat: no-repeat;
}
div#authentif p {
    text-align: center;
}
div#authentif p.message {
    margin: 0 20px;
    font-size: 14px;
}
div#authentif input[type=submit]:hover {
    cursor: pointer;
}
div#authentif > section.frm_auth >input {
    width: 260px;
    height: 50px;
    margin: 10px 20px;
    font-size: 18px;
}
div#authentif > section.frm_auth > input[type=email],
div#authentif > section.frm_auth > input[type=password]{
    background-color: transparent;
    border-style: solid;
    border-color: #ADACAC;
    border-width: 0 0 2px 0;
}
div#authentif > section.frm_auth > input[type=submit] {
    background-color: #6E84C9;
    color: #FDFCFC;
    border: none;
    border-radius: 10px;
}

div#authentif > section.forgot {
    height: 25px;
    margin: 5px 20px;
}
div#authentif > section.forgot input {
    width: 100%;
    height: 25px;
    background-color: transparent;
    color: #7D7C7C;
    font-size: 14px;
    text-decoration: underline;
    border: none;
}
div#authentif > section.lang {
    height: 25px;
    margin: 5px 20px;
}
div#authentif > section.lang > div {
    display: inline-block;
    background-color: transparent;
    background-repeat: no-repeat;
    width: 25px;
    height: 18px;
    margin: 3px 20px auto 0;
}
div#authentif > section.lang div#lang_fr {
    background-image: url('../img/lang_fr.png');
}
div#authentif > section.lang div#lang_en {
    margin-right:10px;
    background-image: url('../img/lang_en.png');
}

/* ============== *
 *  BOITE ALERTES *
 * ============== */
div#boite0 {
    position:fixed;
    top:50px;
    left:30px;
    height:auto;
    text-align:center;
    font-size: 14px;
    background-color: #FDFCFC;
    width:400px;
    visibility: visible;
    border: 1px solid #F33;
    box-shadow: 0 0 10px 5px #ADACAC;
    z-index:10;
}
div#boite0 > div.x_boite {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: 900;
    color: #7D7C7C;
    cursor: pointer;
    z-index:0;
}
div#boite0 > div.x_boite:hover { color: #F33;}
div#boite0 > header {
    position: relative;
    color:#7D7C7C;
    font-size: 18px;
    line-height: 24px;
    text-align:center;
    margin: 0 0 10px 0;
    background-color: #ECECEC;
    z-index:0;
}

/* ==================== *
 * Structure Principale *
 * ==================== */

header {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 60px;
    width: 100%;
    background-color: #6E84C9;
    box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.1);
}
#logo {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100px;
    height: 60px;
    background-color: #222D45;
    background-image: url('../img/logo_track7.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}
#nom_page {
    position: absolute;
    top: 0px;
    left: 110px;
    width: auto;
    height: 60px;
    text-align: left;
    line-height: 60px;
    color: #8EA4E9;
    font-size: 20px;
    white-space: nowrap;
}
#nom_page > span.page {
    font-size: 28px;
    font-weight: bold;

}
#user {
    position: absolute;
    top: 0px;
    right: 0px;    
}
#user > div.username {
    height: 60px;
    min-width: 100px;
    text-align: right;
    line-height: 60px;
    background-color: #6E84C9;
    color: #FFF;
}
#user > div.username:hover {
    color: #FF9900;
    cursor: pointer;
}
#user span.name {
    display: inline-block;
    font-size: 18px;
    width: auto;
    white-space: nowrap;
}
#user span.dw {
    background-color: #6E84C9;
    display: inline-block;
    text-align: center;
    width: 28px;
    height: 55px;
}
#dropdown_menu {
    position: absolute;
    top: 5px; /*defaut, modifié par JS*/
    right: 10px;
    width: 100px;
    height: 50px; /*defaut, modifié par JS*/
    color: #2D2C2C;
    font-size: 14px;
    background-color: #EDECEC;
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
    opacity: 0; /*defaut, modifié par JS*/
    z-index:-1; /*defaut, modifié par JS*/
    overflow: hidden;
    transition: top .2s, height .5s, opacity .2s;
}
#dropdown_menu > button {
    width: 100%;
    height: 60px;
    margin: 0px;
    text-align: center;
    padding-top: 10px;
    border-bottom: 1px solid #CDCCCC;
}
#dropdown_menu  p {
    margin: 0;
}
#dropdown_menu > span {
    font-size: 10px;
    margin: 0 6px;
}
#dropdown_menu > button:hover {
    background-color: #CDCCCC;
    cursor: pointer;
}
#dropdown_menu > button.selected {
    background-color: #CDCCCC;
}

#fond_menu {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100px;
    height: 100%;
    background-color: #303C5C;
    box-shadow: 3px 0px 6px 0px rgba(0,0,0,0.2);
}
#main_menu {
    position: fixed;
    top: 50px;
    left: 0px;
    width: 100px;
    height: auto;
    background-color: #303C5C;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-size: 16px;
    font-weight: 100;
}
#main_menu > button {
    width: 100px;
    height: 60px;
    margin-top: 20px;
    margin-bottom: 0px;
    color: #FFF;
    text-align: center;
    border-radius: 5px;
}
#main_menu p {
    margin: 0;
    display: block;
}
#main_menu > button:hover {
    color: #FF9900;
    cursor: pointer;
}
#main_menu > button.selected {
    color: #FF9900;
}

#container {
    position: relative;
    margin-top: 60px;
    margin-left: 100px;
    margin-bottom: auto;
    border: 1px solid transparent;
    animation-name: slideup;
    animation-duration: .5s;
}
@keyframes slideup {
    from { margin-top: 100px;}
    to {margin-top: 60px;}
}

#patience {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 300px;
    visibility:hidden;
}
#loading {
    position: relative;
    width: 80px;
    height: auto;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    font-size: 68px;
    text-align: center;
    animation-name: spin;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-play-state: paused;
}
#loading > span {
    display: block;
    color: rgba(48,60,92,0.4); /*#303c5c;*/
}
@keyframes spin {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

div.debug_report {
    font-size: 12px;
    padding: 10px 100px;
}


#onglets {
    position: fixed;
    top: 60px;
    left: 100px;
    width: 100%;
    height: 60px;
    background-color: #EDECEC;
    box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
#onglets > button {
    width: 100px;
    height: 60px;
    margin-left:10px;
    text-align: center;
    font-size: 16px;
}

#onglets > button.selected {
    border-bottom: 4px solid #FF9900;
}
#onglets > button.csv_bout {
    font-size: 24px;
    border-radius: 10px;
    background-color: #DDDCDC;
}
#onglets > button:hover {
    background-color: #CDCCCC;
    cursor: pointer;
}
#onglets > div {
    display: inline-block;
    height: 45px;
    margin-left: 20px;
    margin-top: 10px;
    border: 1px solid #CDCCCC;
    border-radius: 5px;
    background-color: #f5f4f4;
}
#onglets div.filtre {
    position: relative;
    margin: 7px;
}


/* largeur 768 (tablette, vertical) */
@media screen and (max-width: 770px) {

    #container {
        margin-left: 0px;
        margin-bottom: 60px;
    }
    #fond_menu {
        display: none;
    }
    #main_menu {
        top: auto;
        bottom: 0px;
        left: 0px;
        height: 60px;
        width: 100%;
        flex-direction: row;
    }
    #main_menu > button {
        margin: 0px;
    }
    #user span.name {
        font-size: 14px;
        max-width: 200px;
    }
    #onglets {
        left: 0px;
    }
}

@media screen and (max-width: 700px) {

    #nom_page > span.page {
        font-size: 18px;
    }
}
@media screen and (max-width: 640px) {

    #user span.name {
        display: none;
    }
}
/* Grand phone vertical */
@media screen and (max-width: 420px) {

    #nom_page > span.page {
        display: none;
    }
    #main_menu p {
        display: none;
    }

}
/* largeur <= 360 petit phone vertical */
@media screen and (max-width: 361px) {

}