@font-face {
  font-family: "Roboto";
  src: url("/.assets/fonts/Roboto/Roboto-Thin.ttf");
  font-weight: 100;
}
@font-face {
  font-family: "Roboto";
  src: url("/.assets/fonts/Roboto/Roboto-Light.ttf");
  font-weight: 300;
}
@font-face {
  font-family: "Roboto";
  src: url("/.assets/fonts/Roboto/Roboto-Regular.ttf");
  font-weight: 400;
}
@font-face {
  font-family: "Roboto";
  src: url("/.assets/fonts/Roboto/Roboto-Medium.ttf");
  font-weight: 500;
}
@font-face {
  font-family: "Roboto";
  src: url("/.assets/fonts/Roboto/Roboto-Bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: "Roboto";
  src: url("/.assets/fonts/Roboto/Roboto-Black.ttf");
  font-weight: 900;
}
@font-face {
  font-family: "RobotoCondensed";
  src: url("/.assets/fonts/Roboto/Condensed/RobotoCondensed-Light.ttf");
  font-weight: 300;
}
@font-face {
  font-family: "RobotoCondensed";
  src: url("/.assets/fonts/Roboto/Condensed/RobotoCondensed-Regular.ttf");
  font-weight: 400;
}
@font-face {
  font-family: "RobotoCondensed";
  src: url("/.assets/fonts/Roboto/Condensed/RobotoCondensed-Bold.ttf");
  font-weight: 700;
}
body {
  background: #eee;
  font-family: Roboto, sans serif;
  width: 100%;
  padding: 1em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90vh;
}
@media (min-width: 748px) {
  body {
    width: 748px;
    margin: auto;
  }
}

div.sh-global-banner {
  display: flex;
  width: 100%;
  margin: 0 0 1em 0;
  border-radius: 0.5em;
  background: #fff;
  overflow: hidden;
}
div.sh-global-banner span.e_icon, div.sh-global-banner span.e_action {
  width: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
}
div.sh-global-banner span.e_icon {
  background-color: #f9a800;
}
div.sh-global-banner span.e_info {
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.5em 1em;
  flex-grow: 1;
}
div.sh-global-banner span.e_action {
  cursor: pointer;
  color: rgba(0, 0, 0, 0.25);
}
div.sh-global-banner span.e_action:hover {
  color: #f9a800;
}

div.sh-global-menu {
  display: flex;
  width: 100%;
  margin: 0 0 1rem;
  box-sizing: border-box;
  padding: 0.5ex;
  border-radius: 1em;
  font-size: 0.9rem;
  font-family: RobotoCondensed, sans serif;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
}
div.sh-global-menu a {
  text-decoration: none;
  color: #eee;
  padding: 0 1ex;
  border-radius: 1ex;
}
div.sh-global-menu a:hover {
  color: #000;
  background: #eee;
}
div.sh-global-menu span {
  flex-grow: 1;
}

div.sh-layout-info {
  width: 100%;
}
div.sh-layout-info h1, div.sh-layout-info h2 {
  font-family: RobotoCondensed, sans serif;
}
div.sh-layout-info h1 {
  font-size: 1.5rem;
}
div.sh-layout-info h1 .e_context {
  font-weight: normal;
}
div.sh-layout-info h1 span.e_latest {
  float: right;
  padding: 0.5ex 1ex;
  border-radius: 0.5ex;
  font-size: 0.6em;
  font-family: Roboto, sans serif;
  color: #333;
  text-shadow: 1px 1px #fff9;
  background: #fff;
}
div.sh-layout-info h1 span.e_latest span.e_icon {
  opacity: 0.5;
}
div.sh-layout-info h1 span.e_latest span.e_value {
  margin-left: 0.5ex;
}
div.sh-layout-info h1 span.e_latest span.e_tally {
  margin-left: 0.5ex;
  font-weight: normal;
  font-size: 0.8em;
  color: #999;
}
div.sh-layout-info h1 span.e_latest.flip {
  color: #fff;
  text-shadow: 1px 1px #0003;
}
div.sh-layout-info h2.m-flex {
  display: flex;
  align-items: center;
  gap: 0.25ex;
}
div.sh-layout-info h2.m-flex > *:first-child {
  margin-left: 0.5em;
}
div.sh-layout-info h2 span.e_minmax {
  margin-left: 0.75ex;
  vertical-align: middle;
  background: #eee;
  padding: 1px 0.75ex;
  border-radius: 5px;
  font-size: 0.7em;
  font-family: Roboto, sans serif;
  color: #333;
}
div.sh-layout-info h2 span.e_minmax + span.e_minmax {
  margin-left: 0.25ex;
}
div.sh-layout-info h2 span.e_minmax i, div.sh-layout-info h2 span.e_minmax > span {
  font-size: 0.9em;
  color: #999;
  text-shadow: 0 1px #fff;
}
div.sh-layout-info h2 span.e_minmax.m-right {
  margin-left: auto !important;
}
div.sh-layout-info h2 span.e_pager {
  margin-left: auto;
  display: inline-flex;
  gap: 0.5em;
  font-size: 0.7em;
}
div.sh-layout-info h2 span.e_pager > a {
  text-decoration: none;
  color: #333;
  background: #eee;
  padding: 1px 0.75ex;
  border-radius: 5px;
}
div.sh-layout-info h2 span.e_pager > a i {
  font-size: 0.9em;
  color: #999;
  text-shadow: 0 1px #fff;
}
div.sh-layout-info h2 span.e_pager > a:hover {
  color: #fff;
  background: #333;
}
div.sh-layout-info h2 span.e_pager > a:hover i {
  color: #fff;
  text-shadow: none;
}

div.sh-footer-status {
  display: flex;
  width: 100%;
  margin: auto 0 0;
  box-sizing: border-box;
  padding: 0.5ex;
  border-radius: 1em;
  font-size: 0.9rem;
  font-family: RobotoCondensed, sans serif;
  color: #9999;
  border: 1px solid #9999;
}
div.sh-footer-status span {
  margin: 0 0.5em 0 0.25em;
}
div.sh-footer-status:hover {
  border: 1px solid transparent;
  color: #666;
  background: rgba(0, 0, 0, 0.15);
}
div.sh-footer-status:hover span i {
  color: green;
}
div.sh-footer-status:hover span.m-fifteen i {
  color: yellow;
}
div.sh-footer-status:hover span.m-hour i {
  color: orange;
}
div.sh-footer-status:hover span.m-day i {
  color: red;
}

div.sh-tiles {
  display: flex;
  flex-direction: column;
  margin: 0 auto 2rem;
}
div.sh-tiles h2 {
  margin-bottom: 0.25em;
  font-family: RobotoCondensed, sans serif;
}
div.sh-tiles div.e_tiles {
  display: flex;
  flex-wrap: wrap;
  width: 500px;
}
div.sh-tiles div.e_tiles a {
  text-decoration: none;
}
div.sh-tiles div.e_tiles div.e_tile {
  margin: 1ex;
  padding: 1em;
  width: 7rem;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 1ex;
  background: #fff;
  font-family: RobotoCondensed, sans serif;
  text-shadow: 1px 1px #fff9;
  color: #333;
}
div.sh-tiles div.e_tiles div.e_tile span.e_label {
  font-size: 0.8em;
  opacity: 0.75;
  text-align: center;
  text-transform: uppercase;
}
div.sh-tiles div.e_tiles div.e_tile span.e_icon {
  font-size: 3em;
  opacity: 0.5;
}
div.sh-tiles div.e_tiles div.e_tile span.e_label + span.e_icon {
  margin-top: 0.25ex;
}
div.sh-tiles div.e_tiles div.e_tile span.e_icon + span.e_label {
  margin-top: 1ex;
}

div.sh-tiles div.e_tiles div.e_tile.m-sensor.temperature.hot {
  background-color: #f00;
}
div.sh-tiles div.e_tiles div.e_tile.m-sensor.temperature.warm {
  background-color: #f003;
}
div.sh-tiles div.e_tiles div.e_tile.m-sensor.temperature.cold {
  background-color: #09f3;
}
div.sh-tiles div.e_tiles div.e_tile.m-sensor.temperature.freezing {
  background-color: #09f;
}
div.sh-tiles div.e_tiles div.e_tile.m-sensor.co2.bad, div.sh-tiles div.e_tiles div.e_tile.m-sensor.pm10.bad, div.sh-tiles div.e_tiles div.e_tile.m-sensor.pm25.bad {
  background-color: #f00;
}
div.sh-tiles div.e_tiles div.e_tile.m-sensor.co2.meh, div.sh-tiles div.e_tiles div.e_tile.m-sensor.pm10.meh, div.sh-tiles div.e_tiles div.e_tile.m-sensor.pm25.meh {
  background-color: #ff03;
}
div.sh-tiles div.e_tiles div.e_tile.m-sensor.co2.okay, div.sh-tiles div.e_tiles div.e_tile.m-sensor.pm10.okay, div.sh-tiles div.e_tiles div.e_tile.m-sensor.pm25.okay {
  background-color: #0f03;
}
div.sh-tiles div.e_tiles div.e_tile.m-sensor.power.off {
  background-color: #333;
}
div.sh-tiles div.e_tiles div.e_tile.m-sensor.flip {
  color: #fff;
  text-shadow: 1px 1px #0003;
}

div.sh-tiles div.e_tiles div.e_tile.m-consumer.m-today span.e_today {
  margin: 1ex 0 0 0;
  font-size: 1.2em;
  font-weight: bold;
}
div.sh-tiles div.e_tiles div.e_tile.m-consumer.m-today span.e_value {
  margin: 1ex 0 0 0;
  font-size: 0.8em;
  color: #999;
}
div.sh-tiles div.e_tiles div.e_tile.m-consumer.m-today span.e_logged {
  display: none;
}
div.sh-tiles div.e_tiles div.e_tile.m-consumer.m-tally span.e_today {
  display: none;
}
div.sh-tiles div.e_tiles div.e_tile.m-consumer.m-tally span.e_value {
  margin: 1ex 0 0 0;
  font-size: 1.2em;
  color: #999;
}
div.sh-tiles div.e_tiles div.e_tile.m-consumer.m-tally span.e_logged {
  margin: 1ex 0 0 0;
  font-size: 0.8em;
  color: #999;
}

div.sh-chart {
  margin-top: 1em;
  padding: 1ex;
  background: #fff;
  border-radius: 1ex;
}
div.sh-chart h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin-top: 0;
}

svg.sh-chart g.e_grid line {
  stroke-width: 0.5;
  stroke: #0003;
}
svg.sh-chart g.e_grid line.m-zero {
  stroke-width: 0.75;
  stroke: #0006;
}
svg.sh-chart g.e_grid text {
  font-family: RobotoCondensed, sans serif;
  fill: #000C;
}
svg.sh-chart g.e_grid text.e_hor {
  text-anchor: end;
  font-size: 7px;
}
svg.sh-chart g.e_grid text.e_ver {
  text-anchor: middle;
  font-size: 6px;
}
svg.sh-chart g.e_grid text.e_ver.m-start {
  text-anchor: start;
}
svg.sh-chart g.e_grid text.e_ver.m-end {
  text-anchor: end;
}
svg.sh-chart g.e_data text {
  font-family: Roboto, sans serif;
  font-size: 7px;
  fill: #000C;
}
svg.sh-chart g.e_data text.e_text {
  font-weight: bold;
  text-anchor: middle;
  text-shadow: 0 0 2px #fff;
}
svg.sh-chart g.e_data text.e_text.m-start {
  text-anchor: start;
}
svg.sh-chart g.e_data text.e_text.m-end {
  text-anchor: end;
}
svg.sh-chart.m-line g.e_data path.e_line {
  fill: none;
  stroke: #000;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.sh-chart.m-line g.e_data path.e_line.m-min, svg.sh-chart.m-line g.e_data path.e_line.m-max {
  stroke-width: 0.5;
  stroke: #0003;
  stroke-dasharray: 1;
}
svg.sh-chart.m-line g.e_data path.e_line.m-fine {
  stroke: #999;
  stroke-width: 0.5;
  stroke-dasharray: 1 2;
}
svg.sh-chart.m-line g.e_data path.e_line.m-dots {
  stroke: #999;
  stroke-width: 0.5;
  stroke-dasharray: 1 1;
}
svg.sh-chart.m-bars g.e_data rect.e_bar {
  fill: url(#sh_simple_bar_gradient) #888;
}
svg.sh-chart.m-bars g.e_data rect.e_bar.m-incomplete {
  opacity: 0.33;
}

div.sh-chart-pager {
  margin-top: 0.5em;
  display: flex;
  justify-content: space-between;
}
div.sh-chart-pager a {
  text-decoration: none;
  color: #333;
  background: #fff;
  padding: 0.5ex 1ex;
  border-radius: 0.5ex;
  font-family: Roboto, sans serif;
  font-size: 0.8rem;
}
div.sh-chart-pager a i {
  font-size: 0.9em;
  color: #999;
  text-shadow: 0 1px #fff;
}
div.sh-chart-pager a:hover {
  color: #fff;
  background-color: #666;
}
div.sh-chart-pager a:hover i {
  color: #fff;
  text-shadow: none;
}

svg.sh-usage-chart g.e_grid line {
  stroke-width: 0.5;
  stroke: #0003;
}
svg.sh-usage-chart g.e_grid line.m-zero {
  stroke-width: 0.75;
  stroke: #0006;
}
svg.sh-usage-chart g.e_grid text {
  font-family: RobotoCondensed, sans serif;
  fill: #000C;
}
svg.sh-usage-chart g.e_grid text.e_hor {
  text-anchor: end;
  font-size: 7px;
}
svg.sh-usage-chart g.e_grid text.e_ver {
  text-anchor: middle;
  font-size: 6px;
}
svg.sh-usage-chart g.e_data rect {
  fill: #ddd;
}
svg.sh-usage-chart g.e_data text {
  font-size: 7px;
  font-family: Roboto, sans serif;
  font-weight: bold;
  fill: #000C;
  text-anchor: middle;
}
svg.sh-usage-chart.m-natural-gas g.e_data rect.e_total {
  fill: #ddd;
}
svg.sh-usage-chart.m-natural-gas g.e_data rect.e_heat {
  fill: #ec7063;
}
svg.sh-usage-chart.m-natural-gas g.e_data rect.e_water {
  fill: #e74c3c;
}
svg.sh-usage-chart.m-electrical-power g.e_data rect.e_import {
  fill: #0ae;
}
svg.sh-usage-chart.m-electrical-power g.e_data rect.e_export {
  fill: #f51;
}
svg.sh-usage-chart.m-electrical-power g.e_data rect.e_solar {
  fill: #fd0;
}