﻿.alert {
    opacity: 0.8;
    background-color: #f44336;
    color: white;
}

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 1.5vw;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtnmsg {
    color: white;
    font-weight: bold;
    font-size: 1.5vw;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover {
    color: black;
}

.closebtnmsg:hover {
    color: black;
}



/* Tool tip */
.tooltip > .tooltip-inner {
    background-color: rgb(21,49,114);
    color: #F5f5f5;
    border: 1px solid rgb(0,3,56);
    padding: 15px;
    font-size: 20px;
}
/* Tooltip on top */
.tooltip.top > .tooltip-arrow {
    border-top: 5px solid rgb(0,3,56);
}
/* Tooltip on bottom */
.tooltip.bottom > .tooltip-arrow {
    border-bottom: 5px solid blue;
}
/* Tooltip on left */
.tooltip.left > .tooltip-arrow {
    border-left: 5px solid red;
}
/* Tooltip on right */
.tooltip.right > .tooltip-arrow {
    border-right: 5px solid black;
}

@media (max-width: 575.98px) {
    .sidebar {
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: rgb(21,49,114);
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        overflow: hidden;
    }

    #svgmain {
        width: 100%;
        height: calc(86vh - 55px);
    }

    #svgstage {
        width: 100%;
        height: 10vh;
    }

    .h-bottom {
        height: 4vh;
    }

    .value {
        font-size: 22px;
        color: #f1f1f1;
        text-align: center;
        vertical-align: middle;
    }

    .timer {
        font-size: 22px;
        fill: #990000;
        text-align: center;
        vertical-align: middle;
    }

    .d3-tip {
        line-height: 1;
        font: 18px sans-serif;
        padding: 12px;
        background-color: #990000;
        background: rgba(0, 0, 0,0.8);
        color: rgb(255, 255, 255);
        border-radius: 2px;
    }

    .inputfont {
        line-height: 1;
        font: 18px sans-serif;
        padding: 0px;
        color: rgb(255, 230, 50);
        border-radius: 1px;
        font-weight: bold;
        /*TEXT-SHADOW: -1PX 0 BLACK, 0 1PX BLACK, 1PX 0 BLACK, 0 -1PX BLACK;*/
    }

    .outputfont {
        line-height: 1;
        font: 18px sans-serif;
        padding: 0px;
        color: rgb(38, 220, 10);
        border-radius: 1px;
        font-weight: bold;
        /*	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
    }
}
/*sm*/
@media (min-width: 576px) and (max-width: 767.98px) {
    .sidebar {
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: rgb(21,49,114);
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        overflow: hidden;
    }

    #svgmain {
        width: 100%;
        height: calc(86vh - 55px);
    }

    #svgstage {
        width: 100%;
        height: 10vh;
    }

    .h-bottom {
        height: 4vh;
    }

    .value {
        font-size: 22px;
        color: #f1f1f1;
        text-align: center;
        vertical-align: middle;
    }

    .timer {
        font-size: 22px;
        fill: #990000;
        text-align: center;
        vertical-align: middle;
    }

    .d3-tip {
        line-height: 1;
        font: 18px sans-serif;
        padding: 12px;
        background-color: #990000;
        background: rgba(0, 0, 0,0.8);
        color: rgb(255, 255, 255);
        border-radius: 2px;
    }

    .inputfont {
        line-height: 1;
        font: 18px sans-serif;
        padding: 12px;
        color: rgb(255, 230, 50);
        border-radius: 1px;
        font-weight: bold;
        /*TEXT-SHADOW: -1PX 0 BLACK, 0 1PX BLACK, 1PX 0 BLACK, 0 -1PX BLACK;*/
    }

    .outputfont {
        line-height: 1;
        font: 18px sans-serif;
        padding: 12px;
        color: rgb(38, 220, 10);
        border-radius: 1px;
        font-weight: bold;
        /*	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
    }
}
/*md*/
@media (min-width: 768px) and (max-width: 991.98px) {
    #svgmain {
        width: 100%;
        height: calc(86vh - 55px);
    }

    #svgstage {
        width: 100%;
        height: 10vh;
    }

    .h-bottom {
        height: 4vh;
    }

    .value {
        font-size: 22px;
        color: #f1f1f1;
        text-align: center;
        vertical-align: middle;
    }

    .timer {
        font-size: 22px;
        fill: #990000;
        text-align: center;
        vertical-align: middle;
    }

    .d3-tip {
        line-height: 1;
        font: 20px sans-serif;
        padding: 12px;
        background-color: #990000;
        background: rgba(0, 0, 0,0.8);
        color: rgb(255, 255, 255);
        border-radius: 2px;
    }

    .inputfont {
        line-height: 1;
        font: 20px sans-serif;
        padding: 12px;
        color: rgb(255, 230, 50);
        border-radius: 1px;
        font-weight: bold;
        /*TEXT-SHADOW: -1PX 0 BLACK, 0 1PX BLACK, 1PX 0 BLACK, 0 -1PX BLACK;*/
    }

    .outputfont {
        line-height: 1;
        font: 20px sans-serif;
        padding: 12px;
        color: rgb(38, 220, 10);
        border-radius: 1px;
        font-weight: bold;
        /*	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
    }
}
/*lg*/
@media (min-width: 992px) and (max-width: 1199.98px) {

    #svgmain {
        width: 100%;
        height: calc(90vh - 55px);
    }

    #svgstage {
        width: 100%;
        height: 10vh;
    }

    .h-bottom {
        height: 10vh;
    }

    .value {
        font-size: 2vh;
        color: #f1f1f1;
        text-align: center;
        vertical-align: middle;
    }

    .timer {
        font-size: 2.5vw;
        fill: #990000;
        text-align: center;
        vertical-align: middle;
    }

    .d3-tip {
        line-height: 1;
        font: 2vw sans-serif;
        padding: 12px;
        background-color: #990000;
        background: rgba(0, 0, 0,0.8);
        color: rgb(255, 255, 255);
        border-radius: 2px;
    }

    .inputfont {
        line-height: 1;
        font: 2vw sans-serif;
        padding: 12px;
        color: rgb(255, 230, 50);
        border-radius: 1px;
        font-weight: bold;
        /*TEXT-SHADOW: -1PX 0 BLACK, 0 1PX BLACK, 1PX 0 BLACK, 0 -1PX BLACK;*/
    }

    .outputfont {
        line-height: 1;
        font: 2vw sans-serif;
        padding: 12px;
        color: rgb(38, 220, 10);
        border-radius: 1px;
        font-weight: bold;
        /*	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
    }
}
/*xl*/
@media (min-width: 1200px) {
    #svgmain {
        width: 100%;
        height: calc(90vh - 55px);
    }

    #svgstage {
        width: 100%;
        height: 10vh;
    }

    .h-bottom {
        height: 10vh;
    }

    .explantext {
        font-size: 1vw;
    }

    .value {
        font-size: 3vh;
        color: #f1f1f1;
        text-align: center;
        vertical-align: middle;
    }

    .timer {
        font-size: 2vw;
        fill: #990000;
        text-align: center;
        vertical-align: middle;
    }

    .d3-tip {
        line-height: 1;
        font: 1vw sans-serif;
        padding: 12px;
        background-color: #990000;
        background: rgba(0, 0, 0,0.8);
        color: rgb(255, 255, 255);
        border-radius: 2px;
    }

    .inputfont {
        line-height: 1;
        font: 1vw sans-serif;
        padding: 12px;
        color: rgb(255, 230, 50);
        border-radius: 1px;
        font-weight: bold;
        /*TEXT-SHADOW: -1PX 0 BLACK, 0 1PX BLACK, 1PX 0 BLACK, 0 -1PX BLACK;*/
    }

    .outputfont {
        line-height: 1;
        font: 1vw sans-serif;
        padding: 12px;
        color: rgb(38, 220, 10);
        border-radius: 1px;
        font-weight: bold;
        /*	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
    }
}

.sectiontime {
    font-size: 24px;
    fill: rgb(0, 0, 0);
    text-anchor: middle;
    vertical-align: middle;
}

.sidebar {
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(21,49,114);
    overflow-x: hidden;
    transition: 0.5s;
    /*padding-top: 60px; /*60px*/
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
}

    .sidebar a {
        /*padding: 8px 8px 8px 32px;*/
        text-decoration: none;
        font-size: 18px;
        color: #f5f5f5;
        display: block;
        transition: 0.3s;
    }

.line {
    border-bottom: 1px solid red;
}

.btnselect {
    background: rgba(45,100,255,0.9);
    color: #990000;
}

.sidebar a:hover {
    color: #f1f1f1;
}

/*.sidebar .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
        height: 100vh;

        overflow-y: auto;
    }*/

.value.dmppt.now {
    color: rgb(264,219,60);
}

.value.dmppt.today {
    color: rgb(234,114,79);
}

.value.dmppt.yesterday {
    color: rgb(74,229,229);
}

.value.inverter.today {
    color: rgb(222,195,168);
}

.value.inverter.all {
    color: rgb(222,195,168);
}


.value.inverter.yesterday {
    color: rgb(76,239,245);
}

.valueunit {
    font-size: 18px;
    text-align: left;
    vertical-align: middle;
}

.sidebar .value a {
    color: #f1f1f1;
    text-align: center;
    vertical-align: middle;
}

.fill {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-color: #990000;
    padding: 10px;
    color: #efefef;
}



.d3-tip:after {
    box-sizing: border-box;
    display: inline;
    font-size: 10px;
    width: 200px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
    /*content: "\25BC";*/
    position: absolute;
    text-align: center;
}

.d3-tip.n:after {
    margin: -1px 0 0 0;
    top: 50%;
    left: 0;
}

.d3-tip.time {
    line-height: 1;
    font: 9px sans-serif;
    padding: 12px;
    background-color: rgba(0, 0, 0,0.5);
    background: rgba(0, 0, 0,0.5);
    color: rgb(255, 255, 255);
    border-radius: 2px;
}

.line {
    border-bottom: 1px solid red;
}



.normalfont {
    line-height: 1;
    font: 1vw sans-serif;
    padding: 12px;
    border-radius: 1px;
}

.mainbackground {
    width: 100%;
    height: 100%;
    fill: rgba(50, 50, 50,6.0);
}

.inverterbackground {
    fill: rgba(0, 0, 0,1.0);
    stroke: black;
    stroke-width: 5;
    opacity: 0.5;
}

.inverter {
    fill: rgb(38, 220, 10);
    stroke: black;
    stroke-width: 4;
    /*opacity: 0.5;*/
}

.groups {
    fill: rgba(255,255,255,0.80);
    stroke: black;
    stroke-width: 8;
}

.groupviewtype2 {
    stroke-width: 6;
}

.groupviewtype3 {
    stroke-width: 10;
}

.group {
    fill: rgb(255,255,255);
    text-anchor: start;
    font-size: 22px;
    font-weight: bold;
}

.viewtype2.group {
    fill: rgb(0,0,0);
    text-anchor: middle;
    font-size: 50px;
    font-weight: bold;
    /*stroke: rgb(255,255,255);*/
    /*stroke-width: 2;*/
    font-weight: bold;
    background-color: rgba(255, 0, 0,0.5);
    background: rgba(255, 0, 0,0.5);
}

.grouptotal {
    fill: rgb(255,255,255);
    text-anchor: middle;
    font-size: 40px;
    font-weight: bold;
    stroke: black;
    stroke-width: 1;
}

.viewtype2.grouptotal {
    fill: rgb(21,49,114);
    text-anchor: middle;
    font-size: 50px;
    font-weight: bold;
    stroke: black;
    stroke-width: 1;
    font-weight: bold;
}



.dmppt {
    fill: rgba(255, 255, 255,1.0);
    stroke: black;
    stroke-width: 2;
}

/* Creates a small triangle extender for the tooltip */

/*d3 css */
.status {
    fill: rgba(125, 125, 125,0.50);
    stroke: black;
    stroke-width: 2;
}

    .status.on {
        fill: rgba(45,100,255,0.9);
    }

    .status.off {
        fill: rgba(125, 125, 125,0.80);
    }

    .status.on.fail {
        fill: rgba(255, 120, 120, 0.80);
    }

.alert {
    padding: 20px;
    background-color: #f44336;
    color: white;
}

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

    .closebtn:hover {
        color: black;
    }