/* 1. Reset and Box Model */
* {
    box-sizing: border-box;
}

/* 2. HTML Elements */
html {
    background-color: black;
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans";
    color: white;
}
body {
    display: block;
    margin: 0px;
}
header {}
main {
    margin-top: 50px;
}
footer, .footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: black;
    color: rgb(80, 80, 80);
    text-align: center;
}
nav {
    z-index: 10;
    position: fixed;
    top: 0px;
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    justify-content: space-between;
    background-color: black;
    border-bottom: 1px solid rgb(75,75,75);
}
nav a {
    text-decoration: none;
    font-size: 2em;
    vertical-align: middle;
}
nav ul {
    display: flex;
    z-index: 10;
    flex-direction: row;
    float: left;
    list-style: none;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}
nav li {
    padding: 10px;
}
nav li a {
    font-size: 1em;
    color: gray;
}
nav button {
    display: none;
    float: right;
    height: 3em;
    width: 3em;
    border: 1px solid grey;
    border-radius: 5px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-color: black;
}
img, svg {
    margin-left: auto;
    margin-right: auto;
}
svg {}
text {
    fill: black;
}
table {
    border-collapse: collapse;
}
article {
    text-align: center;
}

/* 3. Typography */
h1, h2, h3, h4, h5 {
    color: white;
    width: 100%;
    text-align: center;
}
h1 {
    font-size: 4vmin;
    line-height: 1.5;
    font-family: system-ui;
    background: linear-gradient( to left,darkgreen, midnightblue );
    margin: 10px 0px 10px 0px;
    padding: 20px;
}
h2 {
    color: dodgerblue;
    font-size: xx-large;
    font-weight: 500;
    margin: 70px auto 20px auto;
}
h3 {
    color: whitesmoke;
    font-size: x-large;
    font-weight: 500;
    margin: 50px auto 20px auto;
}
h4 {
    color: darkmagenta;
    font-size: large;
    font-weight: 500;
    margin: 40px auto 20px auto;
}
p {
    font-size: large;
    color: darkgrey;
    line-height: 1.4;
}
p2 {
    font-size: small;
    color: whitesmoke;
    line-height: 1;
}
label {
    color: whitesmoke;
    font-size: medium;
    margin: 0 0 30px 0;
}

/* 4. Forms */
form {
    width: 100%;
}
input {
    background-color: rgb(20,20,20);
    border-radius: 8px;
    color: white;
    padding: 6px;
}
input[type="email"], input[type="password"] {
    background-color: rgb(20,20,20);
}
input[type="email"]:-webkit-autofill,
input[type="password"]:-webkit-autofill {
    -webkit-box-shadow: none;
}
input[type="date"] {
    max-width: 180px;
}
textarea {
    color: black;
    font-size: xx-small;
    border-color: none;
    min-height: 50px;
    height: fit-content;
}
button {
    font-size: 0.8em;
    float: right;
    color: white;
    background-color: darkslategray;
    border-radius: 5px;
    padding: 4px;
    margin-top: 10px;
    cursor: pointer;
}
button:hover {
    transform: scale(1.1);
}

/* 5. Utility/Helper Classes */
.hidden {
    display: none !important;
}
.hiddenparameters {
    display: none;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
.gray, .grey { color: gray; }
.dimgray { color: dimgray; }
.lightgrey { color: lightgrey; }
.lightgreen { color: lightgreen; }
.black { color: black; }
.page-break {
    break-before: page;
    page-break-before: always;
}

/* 6. Layout/Structural Classes */
.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    vertical-align: middle;
    justify-content: space-between;
}
.row, .flex-row {
    display: flex;
    flex-direction: row;
}
.flexrow {
    display: flex;
    flex-wrap: wrap;
}
.flexcol {
    padding: 10px;
    min-width: 320px;
}

.flexcell {
    width: 100%;
    display: grid;
    align-items: flex-end;
    margin-bottom: 40px;
}
.column, .sub-column {
    width: 100%;
    float: left;
    padding: 20px;
}
.column-2, .sub-column-2 { width: 50%; float: left; padding:20px}
.column-3, .sub-column-3 { width: 33.3333%; float: left; }
.column-3 { min-width: 300px; }
.column-4, .sub-column-4 { width: 25%; float: left; }
.column-10 { width: 10%; }
.column-25 { width: 25%; }
.column-30 { width: 30%; }
.column-33 { width: 33.33%; }
.column-50 { width: 50%; }
.column-66 { width: 66%; }
.column-23rds { width: 66.66666%; float: left; }
.col-left  { padding-right: 10px; }
.col-right { padding-left: 10px; }
.page-shell { padding: 5px; }
.page-block {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 1800px;
    margin: 0 0 5px 0;
    padding: 5px;
    background-color: black;
    opacity: 0.95;
}
.row {
    position: relative;
}
.row:after {
    content: "";
    display: table;
    clear: both;
}
.rowBlock { display: inline-block; }

.flex-table {
    display: flex;
    flex-direction: column;

    max-width: 1400px;
    margin: 40px auto;
    /*background: #fff;    
    border: 1px solid rgb(25,25,25);
    border-radius: 6px;*/
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-header {
    /*background: #f5f5f5;*/
    font-weight: bold;
}

.flex-cell {
    flex: 1 1 0;
    padding: 12px 8px;
    border-bottom: 1px solid rgb(25,25,25);
    display: flex;
    font-size:larger;
    font-weight: 500;
    justify-content:center;
    align-items: center;
    min-width: 120px;
    box-sizing: border-box;
}

.flex-row:last-child .flex-cell {
    border-bottom: none;
}

.label-col {
    color: rgb(100,100,100);
    font-size: large;
    font-weight: 300;
    justify-content:flex-start;
    /*/background: #f9f9f9;
    font-weight: bold;*/
    min-width: 180px;
}

.unit-col {
    color: rgb(100,100,100);
    max-width: 60px;
    font-size: medium;
    font-weight: 200;
}


/* 7. Custom/Component Classes */
.navbar-controls {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.centreblock {
    display: block;
    width: 100%;
    padding: 5% 5% 5% 5%;
    text-align: center;
    align-items: center;
}
.energymapper {
    font-weight: 700;
    background: linear-gradient( to left, hsl(98 100% 62%), hsl(204 100% 59%) );
    color: lawngreen;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.energyMapperTitle {
    display: block;
    font-size: 64pt;
    font-weight: 700;
    text-align: center;
    background: linear-gradient( to left, hsl(98 100% 62%), hsl(204 100% 59%) );
    color: lawngreen;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 230px;
    margin: 20px auto 20px auto;
}
.loginblock {
    display: flex;
    font-size: x-large;
    align-items: center;
    height: 100vh;
}
.inputDiv {
    width: 400px;
    display: block;
    margin: 10px auto 30px auto;
}
.inputDiv label, input {
    width: 100%;
    font-size: 0.8em;
}
.inputDiv input {
    padding: 20px;
    margin-bottom: 30px;
    font-size: 1.25em;
}
.squareMap {
    width: 33%; 
    aspect-ratio: 16/9;
    margin: 5px;
    padding: 5px;
}
.commentaryContainer {
    padding: 30px 60px 20px 60px;
}
.commentaryContainer p {
    font-size: 2.5vmin;
    font-weight: 100;
    text-align: justify;
}
.commentaryContainer ol {
    font-size: 2.5vmin;
    font-weight: 100;
}
.svgContainer {
    padding: 40px 40px 20px 40px;
    width: 100%;
}
.close {
    color: lightgray;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin: 0px;
}
.close:hover,
.close:focus {
    color: dimgrey;
    text-decoration: none;
    cursor: pointer;
}
.bulletbutton {
    border: 2px outset darkgrey;
    border-radius: 24px;
    color: silver;
    min-width: 200px;
    padding: 10px;
    margin: 0 10px 30px 10px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}
.bulletbutton :hover {
    border: 1px inset white;
    color: white;
    transform: scale(1.05);
}
.locationname {
    color: white;
    font-size: 1.5em;
}
.hlabel {}
.back { z-index: -10; }
.whatsappfastlink {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 50px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
.whatsappfastlink:hover {
    transform: scale(2) translate(10px,-10px);
    transition: 0.3s;
}

/* 8. Media Queries and Print Styles */
@media screen and (max-width: 1000px) {
    main {
        padding: 0px;
    }
    nav {
        display: block;
    }
    nav ul {
        width: 100%;
        flex-direction: column;
    }
    nav button {
        display: inline-block;
    }
    .navbar-controls {
        width: 100%;
    }
    #navbar-list {
        display: none;
    }
    html {
    }
    .page-block {
        margin: 0 0 5px 0;
        width: 100%;
    }
    .row {
        display: block;
    }
    .column-10, .column-25, .column-30, .column-33, .column-50, .column-66 {
        width: 100%;
    }
    .column-2, .column-3, .column-4, .column-23rds {
        width: 100%;
    }
    .col-left, .col-right {
        padding-right: 0px;
        padding-left: 0px;
    }
    .sankeyflextainer {
        display: inline-grid;
    }
    .sankeyscrollbutton {
        width: 100%;
        height: 36px;
    }
    .sankeyscrollbuttonlabelholder {
        transform: rotate(0deg) translate(0px, 0px);
        transform-origin: 0% 0%;
        width: 100%;
    }
    .flex-row
    {
        width:100%;
        display:inline-block;
    }
    .squareMap{
        width:unset;
    }
}
@media screen and (max-width: 600px) {
    .page-shell {
        padding-left:0;
        padding-right:0;
    }
    .tablecol3 {
        width: 15%;
    }
    .col-left, .col-right {
        padding-right: 0px;
        padding-left: 0px;
    }
    .flexrow {
        display: block;
    }
    .flexcol {
        width: 100%;
    }
    .flex-cell {
        width:100%;
        display:block;
    }

    .meterserialdiv,
    .stepper-icon,
    .svgIconHolder {
        display: none;
    }
    .datestepper {
        width: 182px;
    }
    .datediv label,
    #Meter1SerialNumber,
    .meterserialdiv label,
    .meterdiv label {
        margin-left: 0px;
    }
    .meterstepper {
        width: 142px;
    }
    .meterstepper input {
        padding-right: 36px
    }
    .siteconfigdiv {
        width: 121px;
    }
    .siteconfigdiv .perUnit {
        right: 0px;
    }
    .siteconfigdiv input {
        width: 115px;
    }
    .siteconfigstepper {
        width: 110px;
    }
    .sub-column-2 {
        /*width: 100%;*/
    }
    #LocationName {
        width: 10em;
    }
    .roioutputdiv {width: 100%;}
    .roioutputlabelsdiv {width:100%}
    .roiStepperIcon { /*display: none;*/}
    .roiconfigdiv .roisteppertainer .inputoutput {
        width: 100%
    }
    .commentaryContainer {
        padding: 30px 20px 20px 20px;
    }
}

/* --- Begin moved from InverterSite.css --- */
.StatsPanel {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction:row;
}

.row-100pct {
    width:100%;
}

.BillForm {
    width:fit-content;
    margin: 5px auto 5px auto;
}

.BillRow {
    display: flex;
    align-items: flex-end;
    width: fit-content;
    margin: 5px auto 5px auto;
}

.BillRowDCell {
    display: flex;
    align-items: flex-end;
    margin: 5px auto 5px auto;
}

.BillLabel {
    font-size: 0.7em;
    width: 165px;
    text-align: left;
}

.BillDateCol {
    max-width: 220px;
    padding: 5px;
}

.BillDate {
    padding: 0;
    margin: 0;
    font-size: 1em;
    max-width: 130px;
    text-align: right;
}

.BillDays {
    padding: 0;
    margin: 0;
    font-size: 1em;
    max-width: 80px;
    text-align: right;
}

.BillkWh {
    padding: 0;
    margin: 0;
    font-size: 1em;
    max-width: 105px;
    text-align: right;
}

.BillCharge {
    padding: 0;
    margin: 0;
    font-size: 1em;
    max-width: 100px;
    text-align: right;
    margin-right: 25px;
}

.BillCurrency {
    font-size: 0.7em;
    width: 35px;
    text-align: left;
}

.BillUnits {
    font-size: 0.7em;
    width: 25px;
}

.explText {
    width: 150px;
    height: 20px;
    text-align: right;
}

/*Element ID Classes*/
#LocationName {
    max-width: 100%;
    width: fit-content;
    text-align: left;
    background-color: transparent;
    font-size: 28pt;
    color: white;
}

#LocationName option {
    background-color: lightgray;
}

#WaitingSVG {
    animation: 2s linear infinite svg-animation;
    max-width: 100px;
}

.dataInputDIV {
    display:flex;
    width: 250px;
    padding-top: 30px;
    margin-left:auto;
    margin-right:auto;
}

.dataInputDIV label {
    text-align: center;
    justify-content: center;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: black;
    color: rgb(80,80,80);
    text-align: center;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.hidden {
    display:none
}

.gray, .grey {
    color: gray;
}

.dimgray {
    color: dimgray;
}

.lightgrey {
    color: lightgrey;
}

.lightgreen {color:lightgreen;}
.black      {color:black;}


.page-break {
    break-before: page;
    page-break-before: always;
}

.InverterSiteLogo {
    position: absolute;
    right: 20px;
    top: 85px;
    height: 40px;
}

@media print {
    .noPrint {
        display: none !important;
    }

    body {
        font-size: 10pt;
        color: black;
        background: white;
        transform-origin: top left;
    }

    nav, footer, button, .noPrint {
        display: none;
    }

    svg {
        margin: 0px auto 0px auto;
    }

    text {
        fill: rgb(50,50,50);
        stroke: black;
        font-size: 2.5vmin;
        font-weight: 100;
    }

    h1 {
        font-size: large;
        margin-top: 0px;
        margin-bottom: 0px;
        padding: 0px;
    }

    h2 {
        font-size: large;
        margin-top: 0px;
        margin-bottom: 0px;
        padding: 0px;
    }

    input, .keyStat {
        font-size: x-large;
    }

    textarea {
        padding: 2px;
        color: black;
        border-color: none;
    }

    .page-break {
        break-before: page;
        page-break-before: always;
    }
}


@page {
    size: A4 portrait;
    margin-top: 0.0in;
    margin-left: 0.1in;
    margin-right: 0.1in;
    margin-bottom: 0.05in;
}
