﻿body {
    font-family: Arial;
    padding: 0px;
    margin: 0px;
}

input[type=text], input[type=password]
{
    font-size: 16px;
}

div#menu {
    overflow: hidden;
    background-color: #333;
}

div#menu a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

div#menu a:hover {
    background-color: #555;
    color: white;
}

div#menu a.active {
    background-color: #04AA6D;
    color: white;
}

div#menu a.icon {
    font-size: 15px;
    display: none;
}

div#menu a.logout {
    float: right;
}

@media screen and (max-width: 600px) {
    div#menu a {
        display: none;
    }

    div#menu a.icon {
        float: right;
        display: block;
    }

    div#menu.responsive {
        position: relative;
    }

    div#menu.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    div#menu.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}

div.page {
    margin: 1em;
    display: none;
}

div.page.active {
    display: block;
}

table.evChargerHistory, table.evChargerHistory th, table.evChargerHistory td {
    border: 1px solid black;
    border-collapse: collapse;
}

table.evChargerHistory th, table.evChargerHistory td {
    padding: 0.3em;
}

table.evChargerHistory th {
    text-align: left;
}

table.evChargerHistory td.number {
    text-align: right;
}

table.evChargerHistory tfoot {
    font-weight: bold;
}

div#evChargerWaitingForApproval div {
    border: 1px solid black;
    padding: 0.3em;
}

div#evChargerWaitingForApproval div form p {
    margin: 0em;
}

div#login {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 99;
    overflow: auto;
}

div#login div.form {
    background-color: white;
    border: 1px solid #888;
    margin: 0px auto;
    padding: 2em;
    max-width: 375px;
}

div#login div.form h1 {
    margin-top: 0px;
}

div#login input[type=text], input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

div#login input[type=submit], button {
    background-color: #04AA6D;
    color: white;
    padding: 14px 20px;
    margin: 8px 0px;
    border: none;
    width: 100%;
}

div#login div#validation-errors {
    color: red;
}

input[type=button], button, a.button {
    background-color: #04AA6D;
    color: white;
    padding: 14px 20px;
    margin: 8px 0px;
    border: none;
    text-decoration: none;
}

input[type=date], input[type=text], select {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

div.data-source p {
    font-size: 0.8em;
    margin: 0em;
    text-align: right;
    color: gray;
}

div.summary .item {
    padding: 1em;
    margin: 0em 1em 1em 0em;
    background-color: #D9EEE1;
    border: 1px solid #04AA6D;
    float: left;
    width: 200px;
}

div.summary .item .data {
    font-size: 1.5em;
}

div.summary .item .data span {
    font-weight: bold;
}

div.summary .item .description {
    margin: 0em;
    font-size: 0.8em;
}

div.export {
    margin: 1em 0em 0em 0em;
}

div.export a.button {
    border: 2px solid #333;
    background-color: #CCC;
    color: black;
    padding: 7px 20px;
}

@media screen and (max-width: 600px) {
    div.summary .item {
        width: calc(100% - 2em);
    }

    div.summary .item .data {
        float: left;
    }

    div.summary .item .description {
        float: left;
        margin-left: 1em;
        padding-top: 0.5em;
    }
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    display: block;
    background-color: #5cbc99;
    border: 1px solid green;
    color: white;
    padding: 10px 24px;
    cursor: pointer;
    float: left;
}

.radio-group label:hover,
.radio-group label:has(> input[type="radio"]:checked) {
    background-color: #04AA6D;
}

.radio-group:after {
    content: "";
    clear: both;
    display: block;
}

#electricity-meter-devices {
    margin: 1em 0em;
}

#electricity-meter-devices .title {
    font-weight: bold;
}

#electricity-meter-devices label {
    display: block;
}