/* (A) WRONG ORIENTATION - SHOW MESSAGE HIDE CONTENT */
@media only screen and (orientation:landscape) and (max-width : 800px) {
    #portrait { display:none; }
  }
   
  /* (B) CORRECT ORIENTATION - SHOW CONTENT HIDE MESSAGE */
@media only screen and (orientation:portrait)  and (max-width : 800px) {
    #portrait { display:block; }
}
body {
    color: aliceblue !important;
    background-color: #1F1F1F !important;
    color: aliceblue !important;
    line-height: unset !important;    
}
.lastReleve {
    border: 1px solid black;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}
.lastReleve > * > * > td {
    padding:2px;
    font-size: 16px;
    font-size: 4vw;
    text-align: center;
    white-space: nowrap;    
}
button[type="button"] {
    background-color: cadetblue;
    border-radius: 5px;    
}
#actuel {
    position: absolute;
    bottom: 10px;
    width: 100%;
    left: 0px;

    z-index: 2000;
    background-color: #5e3c7e;
    color: aquamarine;
    border: 2px solid black;
    overflow: hidden;    
}
#isMobile {
    display: block;
}
.navbar {
    display: none;
}
#legendContainer {
    font-size: 10px;
}

@media only screen and (min-width : 1000px) {
    #legendContainer {
        position: relative;
        right: 50px;
        width: 800px;
        height: 4.8em;
        float: right;
        font-size: 14px;
        padding: 5px;
    }
    .navbar {
        display: block;
    }
    #isMobile {
        display: none !important;
    }
    #actuel {
        left: calc(50% - 250px);
        width: 500px;
        height: 100px;
    }
    .lastReleve > * > * > td {
        font-size: 1vw;
    }
}
.dotm {
    height: 20px;
    width: 20px;
    background-color: #000;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    vertical-align: bottom;
    color:white;
    font-weight:bold;
    font-size:16px;
}
.dota {
    height: 20px;
    width: 20px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    vertical-align: bottom;
    color:black;
    font-weight:bold;
    font-size:16px;
  }

.list {
    border: 1px solid black;
    width: calc(100% - 25px);
    padding:5%;
}
.list > * > * > td {
    padding: 5px;
    font-size: 20px;
    border: 1px solid black;
}
.list > * > * > th {
    padding: 5px;
    font-size: 20px;
    border: 1px solid black;
    font-weight: bold;
    text-align: center;
    background-color: darkgray;    
    color: #1f1f1f;
}
@media only screen and (min-width : 1000px) {
    .list > * > * > td {
        font-size: 12px;
    }
    .list > * > * > th {
        font-size: 12px;
    }
}
td.edit {
    text-align: center;
    padding-left: 5px;
}
.editTable {
    padding: 5px;
    width:fit-content;
    border: 1px solid black;
    font-size: 14px;
    background-color: cadetblue;    
}
.editTable > * > * > td {
    padding: 5px;
    background-color: #5a5a5a;
}
.editTable > * > tr {
    height: 30px;
    border: 1px solid black;
}
.editTable > * > * > th {
    padding: 5px;
    font-weight: bold;
    text-align: left;
    background-color: #302e2e;
}
.editTable > * > * > .edit {
    background-color:#2d254a;
    vertical-align: top;    
}
.fas {
    cursor: pointer;
}
.legendColorBox > div {
    width: fit-content;
}

#legendContainer > table {
    width: 100%;
    color: aliceblue;

}
.legendLabel {
    color:aliceblue;
}
span.drawcheck {
    padding-right: 10px;
}
div#drawcheck {
    left: 50px;
    padding-left: 10px;
}
.demo-container {
    box-sizing: border-box;
    width: 95%;
    margin: 15px auto 30px auto;
    border: 1px solid #ddd;
    background: linear-gradient(#f6f6f6 0, #fff 50px);
    background: -o-linear-gradient(#f6f6f6 0, #fff 50px);
    background: -ms-linear-gradient(#f6f6f6 0, #fff 50px);
    background: -moz-linear-gradient(#f6f6f6 0, #fff 50px);
    background: -webkit-linear-gradient(#2c2626 0, #484141 50px);    
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    -o-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    -ms-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#begin {
    display: none;
}
#graph {
    background-color: #1f1f1f;       
}
@media only screen and (min-width : 1000px) {
    #graph {
        padding-top:50px;
    }
    .demo-container {
        height: 450px;
        padding: 25px 25px 25px 25px;
    }
    #begin {
        display: block;
    }

}

.intervention {
    position:absolute;
    cursor:pointer;
}
#content {
    display: block;
    /* padding-top:20px;*/
}

.fa-circle-info {
  background-color: white;
}
.demo-placeholder {
width: 100%;
height: 100%;
font-size: 14px;
}
#DEBUG {
    overflow: auto;
    width: fit-content;
    height: 100%;
}
#tooltip {
    position: absolute;
    display: none;
    border: 1px solid #fdd;
    padding: 2px;
    background-color: #fee;
    color: #1f1f1f;
    opacity: 0.80;
    z-index: 5000;
}
#reltemphum {
    width: 420px;
    height: 80px;
    overflow: hidden;
}
#reltemphum>table {

    height: 100%;
    padding-bottom: 20%;
    background-color: darkcyan;
    cursor: e-resize;    
}
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    background-color: darkgray;
    border-radius: 5px !important;;
}
.ui-widget button:hover {
    background-color: gray !important;

}
.navbar-nav .exec:hover   {
    color: #fff !important;
    background-color: #000 !important;
}
pre {
    white-space: break-spaces;
}

i.automate {
    font-size: 30px;
    cursor: pointer;
    background-color: #0f0101;
    padding: 6px;
    border-radius: 12px;
    margin: 10px;
}
i.on {
    background-color: #0f0101;
    color: #f81e1e;
}
i.off {
    background-color: #312525;
    color: #787877;
}
i.offline {
    font-size: 30px;
    cursor: pointer;
    padding: 6px;
    border-radius: 12px;
    margin: 10px;
    background-color: #909090;
    color: #a0a0a0;
}
div.automate {
    float: left;
    font-size: 14px;
    border: 1px solid rgb(224, 224, 224);
    background-color: #8b7575;
    color: #dfd7d7;
    width: 100px;
    height: 100px;
    padding: 10px;
    margin: 3px;
    text-align: center;
    border-radius: 12px;
    position: relative;    
}
div.automaster {
    background-color: #9b3a3a !important;
}
div#automate {
    width: calc(100% - 20px);
}
span.automate {
    font-weight: bold;
}
span.autOffline {
    color: #ee3e3e !important;
}
div.automate_footer {
    position:absolute;
    bottom : 5px;
}
div.autoConso {
    position: absolute;
    bottom: 3px;
    right: 5px;
    font-size: 12px;
    font-style: italic;
}
#containDrag {
    position: absolute;
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid white;

}
#selectDrag {
    background-color: rgb(235 136 136 / 80%);
    position: absolute;
    border: 1px solid white;
    cursor: all-scroll;
}
.deviceInfo {
    color: white;
    font-size: 16px;
    font-style: italic;
    width: 96%;
    height: 100px;
    border: 1px solid white;
    margin-left: 2%;
    background: -webkit-linear-gradient(#2c2626 0, #484141 50px);
    padding: 5px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.consoInfo {
    color: white;
    font-size: 16px;
    font-style: italic;
    width: 96%;
    height: 100px;
    border: 1px solid white;
    margin-left: 2%;
    background: -webkit-linear-gradient(#2c2626 0, #484141 50px);    
    padding: 5px;    
}
.lastIdReleve {
    color:rgb(177, 177, 169);
    font-size: medium;
}
.lastIdReleveData {
    float:left;
    margin: 5px;
}
@media only screen and (min-width : 1000px) {
    #selectDrag {    
        background-color: rgba(235,136,136, 0.5);
    }
    .consoInfo {
        font-size: 14px;
        width: 350px;
        height: 100px;
        margin-left: 50px;
        padding: 10px;    
    }
    .deviceInfo {
        font-size: 14px;
        width: 95%;
        height: 200px;
        margin-left: 50px;
        padding: 10px; 
        overflow: auto;   
    }    
}

.notification-report {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.notification-report th,
.notification-report td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}
.notification-report th {
    background: #1e0249;
    text-align: left;
}
.notification-report tr:nth-child(even) {
    background: #6b0202;
}
.notification-trash {
    cursor: pointer;
}

.btn-refresh {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.btn-refresh:hover {
    opacity: 0.8;
}

.btn-refresh i {
    font-size: 20px;
}