﻿html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: #000000;
    font-family: arial;
    font-size: 13px;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: #008a17;
    cursor: pointer;
}

    a.button {
        background-color: #008a17;
        color: #ffffff !important;
        padding: 2px 6px 0 6px;
        font-size: 12px;
        border-radius: 1px;
        display: inline-block;
        min-width: 28px;
    }

img {
    border: none;
    padding: 0;
    margin: 0;
    vertical-align: middle;
}

h1 {
    font-weight: normal;
    font-size: 25px;
    margin: 0;
    padding: 0 0 4px 0;
}

h2 {
    font-weight: normal;
    color: green;
    padding-bottom: 5px;
    font-size: 15px;
    margin: 0;
}

table {
    border-collapse: collapse;
}

    table td {
        padding: 2px;
    }

    table input[type=text], table textarea {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

input::-ms-clear {
    display: none;
}

input[type=text], input[type=password] {
    border: none;
    background-color: #bfddb9;
    padding: 2px;
    margin: 0 4px 0 0;
}

input[type=checkbox] {
    vertical-align: bottom;
}

input[type=button] {
    min-width: 80px;
}

input::placeholder {
    font-style: italic;
    font-size: smaller;
}

select {
    border: none;
    background-color: #bfddb9;
    padding: 1px;
    margin: 0 4px 0 0;
}

textarea {
    border: none;
    background-color: #bfddb9;
}

div {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#dialog {
    display: none;
    font-style: italic;
}

#error {
    font-style: italic;
    margin-top: 20px;
    text-align: right;
    color: red;
    display: block;
}

.form {
    padding: 0;
    margin: 8px 6px 6px 0;
}

table.data {
    border: 1px solid gray;
    width: 100%;
}

    table.data #add {
        text-align: center;
        font-size: 12px;
        background-color: #e6e6e6
    }

    table.data th {
        border: 1px solid gray;
        padding: 3px;
        font-weight: bold;
        text-align: center;
    }

    table.data td {
        vertical-align: top;
        border: 1px solid gray;
        padding: 3px;
        border-style: dashed solid dashed solid;
    }

    table.data tr.top td {
        border-style: solid solid dashed solid;
    }

    table.data tr.bottom td {
        border-style: dashed solid solid solid;
    }

    table.data tr.note td {
        text-align: center;
        font-size: 12px;
        padding: 0;
        font-style: italic;
        border-style: solid;
    }

    table.data tr.sum td {
        text-align: right;
        border-style: solid;
        font-weight: bold;
    }

    table.data tr.form td {
        padding: 1px;
        vertical-align: middle;
        border-style: solid;
    }

    table.data tr.form input[type=text] {
        width: 100%;
    }

table.login {
    border-collapse: collapse;
    border: none;
    width: 350px;
}

    table.login td {
        border: none;
        padding: 4px;
    }

        table.login td.title {
            width: 80px;
            padding: 4px 4px 4px 15px;
        }

#map {
    width: 100%;
    height: 100%;
}

    #map .station {
        text-align: center;
        color: white;
        width: 48px;
        height: 48px;
        border-radius: 24px;
        vertical-align: middle;
        box-shadow: 0 3px 14px rgba(0,0,0,0.4);
        font-size: 14px;
        line-height: 14px;
        padding-top: 10px;
    }

        #map .station span {
            font-size: 12px;
        }

    #map .c1 {
        background-color: green;
    }

    #map .c2 {
        background-color: orange;
    }

    #map .c3 {
        background-color: red;
    }

    #map .c4 {
        background-color: gray;
    }



.function {
    position: absolute;
    z-index: 1001;
    left: 15px;
    top: 20px;
    width: 40px;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.4);
    background-color: #008a17;
    border-radius: 2px;
    padding: 8px 0 16px 4px;
}

    .function img {
        height: 32px;
        cursor: pointer;
        margin: 4px 0 4px 0;
    }

#sbox {
    display: none;
    position: absolute;
    z-index: 1002;
    left: 60px;
    top: 146px;
    width: 260px;
    background-color: white;
    padding: 4px;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.4);
}

    #sbox:before {
        content: '';
        width: 0;
        height: 0;
        display: block;
        border-width: 10px;
        border-style: solid;
        position: absolute;
        top: 7px;
        left: -20px;
        border-color: transparent white transparent transparent;
    }

    #sbox input {
        font-size: 18px;
        width: 95%;
    }

        #sbox input:focus {
            outline: none;
        }

.summary {
    position: absolute;
    right: 15px;
    top: 20px;
    width: 220px;
    height: 150px;
    background-color: white;
    z-index: 1001;
    padding: 16px;
    font-size: 24px;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.4)
}

    .summary .time {
        text-align: right;
        font-size: 14px;
        color: #808080
    }

    .summary .unit {
        width: 10%;
        font-size: 16px;
        font-style: italic;
        padding-top: 6px
    }

#log {
    position: absolute;
    right: 15px;
    top: 310px;
    width: 300px;
    height: calc(100% - 340px);
    background-color: white;
    z-index: 1001;
    padding: 16px;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.4)
}

.legend {
    position: absolute;
    bottom: 20px;
    left: 15px;
    width: 120px;
    z-index: 1000;
    padding: 12px;
    line-height: 16px;
    background-color: rgba(255, 255, 255, 0.4);
}

    .legend span {
        display: inline-block;
        width: 20px;
        height: 12px
    }

#panel {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    max-width: 1600px;
    max-height: 1050px;
    z-index: 1002;
    background-color: white;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.4);
    overflow: auto;
}

    #panel .panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-width: 1400px;
        height: 100%;
        padding: 16px;
    }

    #panel .close {
        width: 32px;
        cursor: pointer;
        float: right;
    }

    #panel .title {
        font-size: 24px;
        width: 94%;
        padding-bottom: 6px;
    }

.tab-container {
    position: absolute;
    margin-top: 2px;
    width: calc(100% - 32px);
    height: calc(100% - 85px)
}

.tab-switch {
    text-decoration: none;
    cursor: pointer;
    background-color: #888888;
    color: #ffffff !important;
    padding: 2px 10px 2px 10px;
    font-size: 12px;
    display: inline-block;
    min-width: 32px;
    border: none;
}

.active {
    background-color: #008a17;
}

.tab {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: white;
}

.inverter {
    padding: 6px;
    border: 1px solid #e6e6e6;
    margin-bottom: 16px;
}

    .inverter table {
        width: 100%;
    }

    .inverter td {
        padding: 2px;
        width: 4.54%;
        white-space: nowrap;
    }

.scb {
    padding: 16px 0 6px 0;
}

    .scb table {
        width: 100%;
    }

    .scb th {
        padding: 2px;
        background-color: #e6e6e6;
    }

    .scb td {
        padding: 2px;
        text-align: center;
        width: 5%;
    }

.serial::before {
    content: "Serial ";
    color: gray;
}

.state::before {
    content: "Trạng thái";
    padding-right: 16px;
    color: gray;
}

.pc::after {
    content: "%";
    color: gray;
    font-size: smaller;
}

.kwh::before {
    content: "E ";
    color: gray;
}

.kwh::after {
    content: "KWh";
    color: gray;
    font-size: smaller;
}

.mwh::before {
    content: "ΣE ";
    color: gray;
}

.mwh::after {
    content: "MWh";
    color: gray;
    font-size: smaller;
}

.kw::before {
    content: "P ";
    color: gray;
}

.kw::after {
    content: "KW";
    color: gray;
    font-size: smaller;
}

.kwp::after {
    content: "KWp";
    color: gray;
    font-size: smaller;
}

.kva::before {
    content: "S ";
    color: gray;
}

.kva::after {
    content: "KVA";
    color: gray;
    font-size: smaller;
}

.kvar::before {
    content: "Q ";
    color: gray;
}

.kvar::after {
    content: "Kvar";
    color: gray;
    font-size: smaller;
}

.cosphi::before {
    content: "CosΦ ";
    color: gray;
}

.c::before {
    content: "T ";
    color: gray;
}

.c::after {
    content: "°C";
    color: gray;
    font-size: smaller;
}

.v1::before {
    content: "L1 ";
    color: gray;
    font-size: smaller;
}

.v2::before {
    content: "L2 ";
    color: gray;
    font-size: smaller;
}

.v3::before {
    content: "L3 ";
    color: gray;
    font-size: smaller;
}

.v::after, .v1::after, .v2::after, .v3::after {
    content: "V";
    color: gray;
    font-size: smaller;
}

.a1::before {
    content: "I1 ";
    color: gray;
    font-size: smaller;
}

.a2::before {
    content: "I2 ";
    color: gray;
    font-size: smaller;
}

.a3::before {
    content: "I3 ";
    color: gray;
    font-size: smaller;
}

.a::after, .a1::after, .a2::after, .a3::after {
    content: "A";
    color: gray;
    font-size: smaller;
}

.hz::before {
    content: "F ";
    color: gray;
}

.hz::after {
    content: "Hz";
    color: gray;
    font-size: smaller;
}

.s2::before {
    content: "(2)";
    color: gray;
    font-size: smaller;
    vertical-align: sub;
}

.s6::before {
    content: "(6)";
    color: gray;
    font-size: smaller;
    vertical-align: sub;
}

.s10::before {
    content: "(10)";
    color: gray;
    font-size: smaller;
    vertical-align: sub;
}

.s14::before {
    content: "(14)";
    color: gray;
    font-size: smaller;
    vertical-align: sub;
}

.s2::after, .s6::after, .s10::after, .s14::after {
    content: "A";
    color: gray;
    font-size: smaller;
}

/* jquery ui customize */

.ui-dialog .ui-dialog-buttonpane {
    border-width: 0 !important;
}

.ui-dialog {
    z-index: 101 !important;
}

.ui-autocomplete {
    z-index: 2000 !important
}

/* leaflet customize */

.leaflet-popup-content-wrapper {
    border-radius: 0 !important;
}

/*
 * Chart js
 * DOM element rendering detection
 * https://davidwalsh.name/detect-node-insertion
 */
@keyframes chartjs-render-animation {
    from {
        opacity: 0.99;
    }

    to {
        opacity: 1;
    }
}

.chartjs-render-monitor {
    animation: chartjs-render-animation 0.001s;
}

/*
 * DOM element resizing detection
 * https://github.com/marcj/css-element-queries
 */
.chartjs-size-monitor,
.chartjs-size-monitor-expand,
.chartjs-size-monitor-shrink {
    position: absolute;
    direction: ltr;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    z-index: -1;
}

    .chartjs-size-monitor-expand > div {
        position: absolute;
        width: 1000000px;
        height: 1000000px;
        left: 0;
        top: 0;
    }

    .chartjs-size-monitor-shrink > div {
        position: absolute;
        width: 200%;
        height: 200%;
        left: 0;
        top: 0;
    }
