/* Colors */
html, body {
  font-family: Helvetica, Arial, sans-serif;
}
html table, body table {
  white-space: pre-wrap;
}

/* headings */
h1 {
  text-align: center;
}

h2 {
  margin: 3rem 0 0.5rem 1rem;
}

header {
  z-index: 5;
  background-color: #666;
  background-image: url("https://sbrs-backend.com/resources_pub/bg-meta-orange.png");
  padding: 1.5em;
  text-align: center;
  font-size: 10px;
  color: white;
  position: relative;
}
header .logo {
  max-width: 30em;
}
header .slogan {
  color: #A8A8A8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.7rem;
  position: absolute;
  bottom: -1rem;
  right: 1rem;
}

body {
  margin: 0 0 3rem 0;
  padding: 0;
  font-family: arial;
  height: 100%;
}

#body {
  padding: 1em;
  padding-bottom: 4em;
  text-align: center;
}

#container {
  min-height: 100%;
  position: relative;
}

#notification {
  vertical-align: top;
  padding: 1rem;
}
#notification h2 {
  margin-left: 0;
}
#notification button {
  line-height: 1.8rem;
  cursor: pointer;
  background-color: white;
  border: 1px solid grey;
  border-radius: 3px;
  transition: all ease 0.4s;
}
#notification button:hover, #notification button:active, #notification button:focus {
  background-color: #f67828;
}
#notification .submit {
  margin-top: 2rem;
}
#notification .submit input:disabled {
  border: 1px solid lightgrey;
  color: lightgrey;
  cursor: not-allowed;
}
#notification .submit input:disabled:hover {
  background-color: white;
}
#notification .submit #notification-submit-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#notification .submit #notification-submit-hint.show {
  opacity: 1;
}



/* Navigation-Buttons */
input {
  background-color: white;
  color: black;
  font-size: 0.8rem;
  padding: 0.7em;
  margin: 0.5rem;
  border: 1px solid black;
  border-radius: 0.2em;
  cursor: pointer;
  transition: all ease 0.4s;
}
input:hover, input:active, input:focus {
  background-color: #f67828;
}

/* former charger.php */
table {
  border-collapse: collapse;
}

td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

th {
  border: 1px solid #000;
  padding: 8px;
  text-align: left;
  background-color: #eee;
}

tr:nth-child(even) {
  background-color: #fff;
}

tr:nth-child(odd) {
  background-color: #eee;
}

.bottomCol {
  z-index: 5;

  display: block;
margin-left:37%;
margin-right:auto;

  position: fixed;
  bottom: 7%;
  width: auto;
  height: auto;
  max-height: 15em;
  max-width: 50%;

  text-align: center;
box-shadow : 0px 0px 0px 0px rgba(0,0,0,0.9);

}

/* Overview */
.button-frame {
  display: inline-block;
  width: 8rem;
  padding: 1rem;
  line-height: 0;
  font-size: 0.7rem;
  vertical-align: top;
}
.button-frame .health .icon {
  transform: translateX(-2.2em);
}
.button-frame .health .description {
  transform: translateX(2.2em);
  opacity: 1 !important;
}
.button-frame .more {
  transform: translateY(2em);
  opacity: 1 !important;
}
.button-frame .more.spin {
  transform: translateY(2em) rotate(180deg);
}
.button-frame h3 {
  display: inline-block;
  font-size: 0.7rem;
  position: relative;
}
.button-frame h3.charger {
  margin: 0 0 1em 0;
  width: 100%;
}
.button-frame h3.bus.clickable {
  cursor: pointer;
}
.button-frame .health {
  display: block;
  position: relative;
  height: 2rem;
}
.button-frame .health .icon {
  height: 1.8em;
  display: none;
  margin: 0 auto;
  position: relative;
  transition-timing-function: ease;
  transition-duration: 0.4s;
  transition-property: transform;
}
.button-frame .health .description {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.2em;
  opacity: 0;
  transition-timing-function: ease;
  transition-duration: 0.4s;
  transition-property: transform, opacity;
}
.button-frame .additional {
  margin: -2.2em 0 0 0;
  text-align: left;
  opacity: 0;
  font-size: 0.9em;
  transition-timing-function: ease;
  transition-duration: 0.4s;
  transition-property: margin, opacity;
}
.button-frame .additional.show {
  margin: 0 0 1rem 0;
  opacity: 1;
}
.button-frame .additional .left {
  width: 4rem;
  display: inline-block;
  margin-left: 1rem;
}
.button-frame .additional .right {
  width: 2.5rem;
  display: inline-block;
}
.button-frame .more {
  cursor: pointer;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 0;
  opacity: 0;
  transition-timing-function: ease;
  transition-duration: 0.4s;
  transition-property: transform, opacity;
}
.button-frame .more.spin {
  transform: rotate(180deg);
}
.button-frame .icon-charge {
  height: 1rem;
  display: block;
  margin: -0.1rem auto;
}
.button-frame .icon-charge[data-mac="0"] {
  display: none;
}

.button-frame .icon-charge[data-mac="null"] {
  display: none;
}

.button-frame button, .button-frame div.button {
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  background-color: #323232;
  border: none;
  color: white;
  padding: 1rem 1rem 0 1rem;
  text-decoration: none;
  margin: 0;
  line-height: initial;
  border-radius: 0.5em;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  transition-property: background-color;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}
.button-frame button.status-old, .button-frame div.button.status-old {
  background-color: #868686;
}
.button-frame button.status-old .icon-old, .button-frame div.button.status-old .icon-old {
  display: block;
}

.button-frame button.status-can-old, .button-frame div.button.status-can-old {
  background-color: #A8A8A8;
}
.button-frame button.status-can-old .icon-old, .button-frame div.button.status-can-old .icon-can-old {
  display: block;
}

.button-frame button.status-red, .button-frame div.button.status-red {
  background-color: #E30614;
}
.button-frame button.status-red .icon-red, .button-frame div.button.status-red .icon-red {
  display: inline;
}
.button-frame button.status-orange, .button-frame div.button.status-orange {
  background-color: #FF8C00;
}
.button-frame button.status-orange .icon-orange, .button-frame div.button.status-orange .icon-orange {
  display: inline;
}
.button-frame button.status-orange-soc, .button-frame div.button.status-orange-soc {
  background-color: #FFDD00;
}
.button-frame button.status-orange-soc .icon-orange-soc, .button-frame div.button.status-orange-soc .icon-orange-soc {
  display: inline;
}
.button-frame button.status-green, .button-frame div.button.status-green {
  background-color: green;
}
.button-frame button.status-green .icon-green, .button-frame div.button.status-green .icon-green {
  display: inline;
}
.button-frame button.status-green-soc, .button-frame div.button.status-green-soc {
  background-color: #4CBB17;
}
.button-frame button.status-green-soc .icon-green, .button-frame div.button.status-green-soc .icon-green-soc {
  display: inline;
}
.button-frame button {
  cursor: pointer;
}
.button-frame .bus-area {
  position: relative;
  line-height: initial;
  width: 100%;
  width: calc(100% - 2px);
  border: 1px solid #A8A8A8;
  border-bottom-left-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
  text-align: center;
}
.button-frame .bus-area[data-mac="0"] {
  display: none;
}
.button-frame .bus-area[data-mac="0"] ~ .wheel {
  display: none;
}

.button-frame .bus-area[data-mac="null"] {
  display: none;
}
.button-frame .bus-area[data-mac="null"] ~ .wheel {
  display: none;
}

.button-frame .bus-area[data-mac="unknown"][data-soc="0"] {
  display: none;
}
.button-frame .bus-area[data-mac="unknown"][data-soc="0"] ~ .wheel {
  display: none;
}

.button-frame .bus-area.show-soc-1 div.segment:nth-of-type(1) {
  background-color: #E30614;
}
.button-frame .bus-area.show-soc-2 div.segment:nth-of-type(-n+2) {
  background-color: #FF8C00;
}
.button-frame .bus-area.show-soc-3 div.segment:nth-of-type(-n+3) {
  background-color: #FFD700;
}
.button-frame .bus-area.show-soc-4 div.segment:nth-of-type(-n+4), .button-frame .bus-area.show-soc-5 div.segment:nth-of-type(-n+5), .button-frame .bus-area.show-soc-6 div.segment:nth-of-type(-n+6), .button-frame .bus-area.show-soc-7 div.segment:nth-of-type(-n+7), .button-frame .bus-area.show-soc-8 div.segment:nth-of-type(-n+8), .button-frame .bus-area.show-soc-9 div.segment:nth-of-type(-n+9), .button-frame .bus-area.show-soc-10 div.segment:nth-of-type(-n+10) {
  background-color: green;
}
.button-frame .bus-area .soc-progress {
  width: 6rem;
  height: 1.2rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  border: 1px solid #A8A8A8;
  border-radius: 0.3em;
}
.button-frame .bus-area .soc-progress:after {
  content: " ";
  position: absolute;
  width: 0.2rem;
  height: 40%;
  right: -0.3rem;
  top: 0.26rem;
  border: 1px solid #A8A8A8;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  background-color: #A8A8A8;
}
.button-frame .bus-area .soc {
  margin: 0.5rem auto;
  font-size: 0.8rem;
  font-weight: 600;
}
.button-frame .bus-area .soc:after {
  content: "%";
}
.button-frame .bus-area .segment {
  display: inline-block;
  height: auto;
  width: 0.45rem;
  margin: 0.12rem 0.05rem;
  background-color: #A8A8A8;
  transition-property: background-color;
  transition-duration: 0.1s;
  transition-timing-function: step-end;
}
.button-frame .bus-area .segment:first-of-type {
  margin: 0.12rem 0.05rem 0.12rem 0.12rem;
}
.button-frame .bus-area .segment:last-of-type {
  margin: 0.12rem 0.12rem 0.12rem 0.05rem;
}
.button-frame .bus-area .segment:nth-of-type(1) {
  transition-delay: 0.25s;
}
.button-frame .bus-area .segment:nth-of-type(2) {
  transition-delay: 0.5s;
}
.button-frame .bus-area .segment:nth-of-type(3) {
  transition-delay: 0.75s;
}
.button-frame .bus-area .segment:nth-of-type(4) {
  transition-delay: 1s;
}
.button-frame .bus-area .segment:nth-of-type(5) {
  transition-delay: 1.25s;
}
.button-frame .bus-area .segment:nth-of-type(6) {
  transition-delay: 1.5s;
}
.button-frame .bus-area .segment:nth-of-type(7) {
  transition-delay: 1.75s;
}
.button-frame .bus-area .segment:nth-of-type(8) {
  transition-delay: 2s;
}
.button-frame .bus-area .segment:nth-of-type(9) {
  transition-delay: 2.25s;
}
.button-frame .bus-area .segment:nth-of-type(10) {
  transition-delay: 2.5s;
}
.button-frame .bus-area .segment:nth-of-type(11) {
  transition-delay: 2.75s;
}
.button-frame .wheel {
  position: relative;
  width: 1rem;
  margin: -0.8rem 1rem 0;
  border: 4px solid #323232;
  border-radius: 1rem;
  height: 1rem;
  background-color: white;
}

/* details for one charger */
.charger-modules .charger-module {
  width: 100%;
  box-sizing: border-box;
  float: left;
}
.charger-modules .charger-module h2 {
  color: black;
  text-align: center;
}
.charger-modules .charger-module .table-border {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
  font-size: 0;
}
.charger-modules .charger-module .table-border:nth-of-type(2), .charger-modules .charger-module .table-border:nth-of-type(3) {
  margin-top: 1rem;
}
.charger-modules .charger-module .table-border.hidden {
  display: none;
}
.charger-modules .charger-module table {
  white-space: nowrap;
  width: 100%;
  font-size: 0.9rem;
}
.charger-modules .charger-module table tr {
  background-color: green;
  color: white;
}
.charger-modules .charger-module table tr td, .charger-modules .charger-module table tr th {
  background-color: green;
  padding-left: 1.2rem;
  width: 50%;
  border: none;
  border-bottom: 1px solid white;
}
.charger-modules .charger-module table tr td:first-of-type, .charger-modules .charger-module table tr th:first-of-type {
  border-right: 1px solid white;
}
.charger-modules .charger-module table tr td.errors:nth-of-type(2), .charger-modules .charger-module table tr th.errors:nth-of-type(2) {
  border-right: 1px solid white;
}
.charger-modules .charger-module table tr:last-of-type td {
  border-bottom: none;
}
.charger-modules .charger-module button {
  width: 50%;
  background-color: green;
  color: white;
  border: none;
  font-size: 0.9rem;
  line-height: 1rem;
  margin: 0;
  padding: 8px 8px 8px 1.2rem;
  cursor: pointer;
  text-align: left;
}
.charger-modules .charger-module button:first-of-type {
  border-right: 1px solid white;
}

.charger-details {
  background-color: white;
}
.charger-details #modal-infos table {
  border-collapse: collapse;
}
.charger-details #modal-infos td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}
.charger-details #modal-infos th {
  border: 1px solid #000;
  padding: 8px;
  text-align: left;
  background-color: #eee;
}
.charger-details #modal-infos tr:nth-child(even) {
  background-color: #fff;
}
.charger-details #modal-infos tr:nth-child(odd) {
  background-color: #eee;
}

#toggle-modal {
  width: 2rem;
  height: 2rem;
  position: fixed;
  right: 1rem;
  top: 10rem;
  text-align: center;
  cursor: pointer;
  z-index: 5;
}
#toggle-modal img {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.4s ease;
}
#toggle-modal img:nth-of-type(1) {
  opacity: 1;
}
#toggle-modal img:nth-of-type(2) {
  opacity: 0;
}
#toggle-modal.show img:nth-of-type(1) {
  opacity: 0;
}
#toggle-modal.show img:nth-of-type(2) {
  opacity: 1;
}

#modal-infos {
  z-index: 1;
  position: fixed;
  top: 0;
  right: 0;
  box-sizing: border-box;
  width: 31rem;
  max-width: 90vw;
  max-height: 100%;
  overflow: scroll;
  padding: 8rem 0 4rem 1rem;
  border-left: lightgrey 1px solid;
  background-color: white;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
#modal-infos.show {
  transform: translateX(0);
}

footer {
  z-index: 5;
  position: fixed;
  display: block;
  bottom: 0;
  width: 100%;
  background-color: #323232;
  height: auto;
  max-height: 4em;
  text-align: center;
  color: white;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
footer input {
  float: left;
}
footer a {
  text-decoration: none;
  color: white;
}

@media all and (min-width: 40rem) {
  header .logo {
    float: right;
  }

  .charger-modules .charger-module {
    width: 50%;
    padding: 1rem;
  }
  .charger-modules .charger-module .table-border {
    border-radius: 0.8rem;
  }

  #toggle-modal {
    top: 7rem;
  }
}
@media all and (min-width: 60rem) {
  .charger-modules .charger-module {
    width: 33%;
  }
}
@media all and (min-width: 80rem) {
  .charger-modules .charger-module {
    width: 25%;
  }
}
@media all and (hover: hover) {
  .button-frame .health .icon {
    transform: translateX(0);
  }
  .button-frame .health .description {
    transform: translateX(0);
    opacity: 0 !important;
  }
  .button-frame .more {
    transform: translateY(0);
    opacity: 0 !important;
  }
  .button-frame .more.spin {
    transform: translateY(0) rotate(0);
  }
  .button-frame:hover .health .icon, .button-frame:focus .health .icon, .button-frame:active .health .icon {
    transform: translateX(-2.2em);
  }
  .button-frame:hover .health .description, .button-frame:focus .health .description, .button-frame:active .health .description {
    transform: translateX(2.2em);
    opacity: 1 !important;
  }
  .button-frame:hover .more, .button-frame:focus .more, .button-frame:active .more {
    transform: translateY(2em);
    opacity: 1 !important;
  }
  .button-frame:hover .more.spin, .button-frame:focus .more.spin, .button-frame:active .more.spin {
    transform: translateY(2em) rotate(180deg);
  }
}

/*# sourceMappingURL=style.css.map */
