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


#container_with_onglet {
    position: relative;
    background-color: inherit;
    font-size: 14px;
    margin-top: 65px;
}
#container_with_onglet > section {
    float: left;
    border: 1px solid #DDDCDC;
    background-color: #FFF;
    margin: 5px 0 0 5px;
    padding: 5px;
}
#container_with_onglet > section.w310 {
    width: 310px;
}
#container_with_onglet > section.w560 {
    width: 560px;
}
#container_with_onglet > section.w_full {
    width: 99%;
}
#container_with_onglet > section.dashboard {
    background-color: transparent;
    border: none;
}
#container_with_onglet > section.spacer {
    height: 60px;
    width: 99%;
    border: none;
    background-color: transparent;
}

#container_with_onglet section.full_ong {
    margin: 70px 10px 0 10px;
}



#haut_page {
    position: absolute;
    top: 0px;
    width: 0px;
    height: 0px;
}

table {
    width: 100%;
    border-spacing : 0;
    border-collapse : collapse;

    font-size: 14px;

}
th {
    background-color: #7D7C7C;
    color: #FFF;
    border-left: 1px solid #FFF;
    border-right: 1px solid #FFF;
    padding: 5px 0;
}
td {
    background-color: #FFF;
    border: 1px solid #7D7C7C;
    padding: 10px 3px;
}
caption {
    font-size: 16px;
    text-align: left;
    color: #7D7C7C;
    margin: 0 5px;
}
div.table_container {
    position: relative;
    margin: 0 5px;
}
div.table_container th:first-child {
    border-left-color: #7D7C7C;
}
div.table_container th:last-child {
    border-right-color: #7D7C7C;
}

/* Boutons dans tableau */
span.icobout {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    /*border: 1px solid #ADACAC;*/
    border-radius: 5px;
    background-color: #CED8F6;
}
span.icobout:hover {
    cursor: pointer;
    background-color: #AEC4FF;
}
span.textbout {
    display: inline-block;
    width: auto;
    height: 30px;
    line-height: 30px;
    text-align: center;
    padding: 0 5px;
    border-radius: 5px;
    background-color: #CED8F6;
}
span.textbout:hover {
    cursor: pointer;
    background-color: #AEC4FF;
}

h2.table_title {
    font-size: 1.2em;
    color: #9D9C9C;
    margin-bottom: 0px;
}

p.table_description {
    margin-top: 0px;
    color: #9D9C9C;
}

/* ========= *
 * DashBoard *
 * ========= */

h2.dboard_title {
    font-size: 1.2em;
    color: #9D9C9C;
    margin-top: 0px;
    margin-left: 10px;
    margin-bottom: 0px;
}
div.device_sum,
div.device_bloc,
div.schema_bloc {
    float: left;
    background-color: #FFF;
    margin: 5px 0 10px 5px;
    text-align: center;
    border: 1px solid #9D9C9C;
}
div.device_sum {
    width: 310px;
}
div.device_bloc {
    width: 310px;
    border-radius: 6px;
}
div.schema_bloc {
    width: 200px;
    height: auto;
    background-size: cover;
}
div.device_sum > div,
div.device_bloc > div,
div.schema_bloc > div {
    display: block;
    margin: 0px;
}
div.device_bloc > div.n_device {
    font-size: 16px;
    border-top-style: solid;
    border-top-width: 3px;
    border-radius: 6px 6px 0 0; 
}
div.schema_bloc > div.titre {
    font-size: 18px;
}

div.device_sum div.titre,
div.device_sum  div.nbre {
    display: inline-block;
    margin: 0;
}
div.device_sum div.titre {
    float: left;
    width: 236px;
    font-size: 24px;
}
div.device_sum  div.nbre {
    float: right;
    width: 60px;
    font-size: 32px;
}
div.info_container {
    display: inline-block;
    float: left;
    margin: 0;
    width: 258px;
}
div.db_bouton {
    display: inline-block;
    float: right;
    width: 40px;
    height: 40px;
    margin-right: 3px;
    margin-bottom: 3px;
}
div.device_sum div.db_bouton { margin-top: 50px;}
div.device_bloc div.db_bouton { margin-top: 16px;}
div.schema_bloc div.db_bouton { margin-top: 30px;}

div.info_container > div { /* default */
    display: inline-block;
    width: 60px;
    font-size: 24px;
    margin: 0;
    padding: 0;
    color: #9d9c9e;
}
div.info_container > div.value {
    width: 120px;
    padding: 5px;
    font-size: 18px;
    font-weight: bold;
}
div.info_container > div.status {
    padding: 5px;
    font-size: 18px;
}
div.info_container > div.trans {
    width: 120px;
    padding: 5px;
    font-size: 14px;
}

div.dashboard_sum,
div.dashboard_group {
    float: left;
    margin: 5px 0 15px 5px;
    min-height: 80px;
    text-align: center;
    color: #4c4c4c;
    border-radius: 10px;
    background-color: transparent;
    overflow: auto;
}
div.dashboard_sum { /* Cadre Entité */
    width: 640px;
    border: 2px solid #9D9C9C;
}
div.dashboard_group { /* Cadre Groupe */
    width: 1585px;
    border: 2px solid #9D9C9C;
}
div.dashboard_sum > div.titre,
div.dashboard_group > div.titre {
    width: 100%;
    height: auto;
    font-size: 24px;
    margin-bottom: 10px;
}
div.dashboard_sum > div.titre {
    background-color: #DADDEB;
}
div.dashboard_group > div.titre {
    background-color: #DAEBDD;
}
div.group_noborder {
    border-color: transparent;
}
div.group_dotted {
    border-style: dotted;
}
.sensor_color0 {
    border-top-color: #DFDEDE;
    background-color: #DFDEDE;
}
.sensor_color1 {
    border-top-color: #3366cc;
    background-color: rgba(51, 102, 204, 0.2);
}
.sensor_color2 {
    border-top-color: #dc3912; 
    background-color: rgba(220, 57, 18, 0.2);
}
.sensor_color3 {
    border-top-color: #ff9900; 
    background-color: rgba(255, 153, 0, 0.2);
}
.sensor_color4 {
    border-top-color: #109618; 
    background-color: rgba(16, 150, 24, 0.2);
}
.sensor_color5 {
    border-top-color: #990099; 
    background-color: rgba(153, 0, 153, 0.2);
}
.sensor_color6 {
    border-top-color: #0099c6; 
    background-color: rgba(0, 153, 198, 0.2);
}
.sensor_color7 {
    border-top-color: #dd4477; 
    background-color: rgba(221, 68, 119, 0.2);
}
.sensor_color8 {
    border-top-color: #66aa00; 
    background-color: rgba(102, 170, 0, 0.2);
}
.sensor_color9 {
    border-top-color: #b82e2e; 
    background-color: rgba(184, 46, 46, 0.2);
}
.sensor_color10 {
    border-top-color: #316395; 
    background-color: rgba(49, 99, 149, 0.2);
}

div #diagram_cont {
    position: relative;
    /* dimensions assignées par JS:AjusterContainerDiagramme() */
}
div #diagram_cont > div {
    position: absolute;
}
div #diagram_image {
    z-index: -1;
    border: 1px solid #DFDEDE;
    background-repeat: no-repeat;
    background-size: contain;
    /* dimensions et positions assignées par JS:AjusterContainerDiagramme() */
}
div #diagram_cont div.device_bloc {
    background-color: rgba(255, 255, 255, 0.8);
}
div.diag_header {
    display: block;
    min-height: 40px;
}
div.diag_header > div.db_bouton {
    
}
div.diag_header > div.bout_left{
    float: left;
    margin-left: 5px;
}
div.diag_header > div.diag_title {
    display: inline-block;
    float: left;
    width: auto;
    margin-right: 10px;
}
div.diag_header > div.diag_com { 
    display: inline-block;
    float: right;
    width: auto;
    height: 40px;
    margin-right: 5px;
    padding: 5px;
    font-weight: bold;
    color: #FF9900;
}
div.diag_frm {
    position: relative;
    width: 100%;
    text-align: center;
}
div.diag_frm > div {
    display: inline-block;
    width: 360px;
    min-height: 300px;
    margin: 30px auto 0 auto;
}
div.diag_frm input[type='file'] {
    width: 100%;
    height: 200px;
    border: 3px dashed #9D9C9C;
    border-radius: 10px;
    font-size: 18px;
}
div.diag_frm input[type='submit'] {
    width: 100%;
    background-color: #7D7C7C;
    border-radius: 5px;
    margin: 20px 0;
    height: 40px;
    font-size: 18px;
    line-height: 38px;
    text-align: center;
    color: #FFF;
}
div.diag_frm input[type='submit']:hover {
    cursor: pointer;
}
div #diagram_cont > article {
    position: relative;
    width: 360px;
}
div #diagram_cont > article > p {
    margin: 5px 10px;
    font-size: 16px;
    text-align: left;
}
/* Admin BDD */
div.detail_bdd {
    position: relative;
}
div.index_bdd {
    position: absolute;
    width: 1px;
    height: 1px;
    top: -130px;
}
a.a_bloc {
    display: block;
    background-color: #7D7C7C;
    color: #FFF;
    font-weight: 700;
    text-decoration: none;
    padding: 3px;
    margin: 1px 0;
}
a.a_bloc > span.light {
    float: right;
    font-weight: 400;
}

a.a_button {
    display: inline-block;
    margin-top: 3px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    color: #1D1C1C;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ADACAC;
    border-radius: 5px;
    background-color: #F8F7F7;
}

a.a_w60 {
    width: 60px;
}

a.a_w120 {
    width: 120px;
}

/* largeur <= 1640 */
@media screen and (max-width: 1700px) {

    div.dashboard_group {
        width: 1270px;
    }
}
/* largeur <= 1340 */
@media screen and (max-width: 1390px) {

    div.dashboard_group {
        width: 955px;
    }
}
/* largeur <= 1040 (iPad) */
@media screen and (max-width: 1080px) {

    div.dashboard_group {
        width: 640px;
    }
}
/* largeur <= 1040 (phone) Galaxy5S = 360x640 */
@media screen and (max-width: 650px) {

    div.dashboard_group,
    div.dashboard_sum {
        width: 325px;
    }
}

