/**
 * Copyright 2015 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

html, body {
  /*font-family: 'Titillium Web', 'Helvetica', sans-serif;*/
}
fieldset {
  margin-top: 16px;
  /*border-bottom: 1px solid rgba(0,0,0,.1);*/
}
h1, h2, h3, h4 {
  font-size: 22px;
  padding: 0;
  margin: 0;
  font-family: 'Titillium Web', sans-serif;
  color: rgba(0, 0, 0, 0.56);
}
a {
  font-weight: normal;
  text-decoration: none;
}

.unsupported {
  /*min-width: 400px;*/
}
.unsupported .content {
  margin: 100px auto;
  width: 50%;
  min-width: 300px;
}
.unsupported h1 {
  font-size: 20px;
  padding: 16px;
  font-weight: normal;
  font-family: 'Stereo Gothic 750', Sans-Serif;
}

.link {
  cursor: pointer;
}

.app-avatar {
  width: 100px;
  height: 88px;
  border-radius: 8px;
  background-color: rgba(255,255,255,0.7);
  background-size: 100px;
  background-repeat: no-repeat;
  background-position: center;
}
.app-layout .mdl-layout__header button,
.app-layout .mdl-layout__header .mdl-layout__drawer-button {
  color: rgba(0, 0, 0, 0.54);
}
.mdl-layout__drawer .avatar {
  margin-bottom: 16px;
}
.app-drawer {
  border: none;
  background-color: #333;
  color: rgba(255, 255, 255, 0.56);

}
.app-drawer .mdl-navigation .router-link-active {
  background-color: rgba(226, 0, 49, .20);
}
/* iOS Safari specific workaround */
.app-drawer .mdl-menu__container {
  z-index: -1;
}
.app-drawer .app-navigation {
  z-index: -2;
  background-color: #545454;
}
/* END iOS Safari specific workaround */
.app-drawer .mdl-menu .mdl-menu__item {
  display: flex;
  align-items: center;
}
.app-drawer-header {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  /*height: 151px;*/
}
.app-avatar-dropdown {
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  width: 100%;
}
.app-navigation {
  flex-grow: 1;
}
.app-layout .app-navigation .mdl-navigation__link {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 500;
}
.app-layout .app-navigation .mdl-navigation__link:hover {
  background-color: #d90000;
  color: #eee;
  text-decoration: none;
}
.app-navigation .mdl-navigation__link .material-icons {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.56);
  margin-right: 32px;
}
.app-main {
  min-width: 320px;
}
.app-content {
  /*max-width: 1080px;*/
  overflow: auto;
  height: 100%;
}
.app-content-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 200px;
}
.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.app-main {
  height: 100%;
  margin: 0;
}
.app-cards {
  align-items: flex-start;
  align-content: flex-start;
}
.app-cards .app-separator {
  height: 32px;
}
.app-cards ul {
  padding: 0;
}
.app-cards h3 {
  font-size: 1em;
}
.app-card-heater-stats {
  min-height: 0;
  margin-bottom: 32px;
}
.app-card-heater-stat {
  padding-bottom: 32px;
}
.app-card-heater-stat {
  font-size: 24px;
  text-align: center;
}
.app-updates .mdl-card__title {
  min-height: 200px;
}
.app-cards .mdl-card__actions a {
  color: #d91720;
  text-decoration: none;
}
.app-options h3 {
  margin: 0;
}
.app-options .mdl-checkbox__box-outline {
  border-color: rgba(255, 255, 255, 0.89);
}
.app-options ul {
  margin: 0;
  list-style-type: none;
}
.app-options li {
  margin: 4px 0;
}
.app-options .material-icons {
  color: rgba(255, 255, 255, 0.89);
}
.app-options .mdl-card__actions {
  height: 64px;
  display: flex;
  box-sizing: border-box;
  align-items: center;
}
.app-overlay {
  width: 100%;
  height: 100%;
  z-index: 8;
  top: 0;
  left: 0;
  position: absolute;
  background-color: white;
}
.app-link {
  cursor: pointer;
}
.page-header h2 {
  display: block;
  float: left;
}
.page-content .mdl-grid {
  padding: 8px 0 0 0;
}
.page-content .no-results {
  text-align: center;
  font-size: 16px;
  opacity: 0.8;
  padding: 48px 8px;
  margin: 0 auto;
  height: 32px;
}
.app-table-search {
  margin: 0;
  padding: 0;
  margin-left: 16px;
  margin-bottom: -6px;
  padding-top: 12px;
  display: block;
  float: left;
}
.app-table-search label.search-query-label {
  /*position: static;
  float: left;
  width: 24px;
  margin-right: -24px;
  padding-top: 2px;*/
  float: left;
  display: block;
  margin-right: -40px;
  opacity: 0.3;
}
.app-table-search input {
  outline: none;
  margin-left: 32px;
  float: left;
  margin-top: 2px;
}
.app-table-search .mdl-grid {
  padding: 0;
}
.app-table-search .mdl-grid .mdl-cell {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.app-table {
  display: table;
  margin-bottom: 8px;
  width: 100%;
}
.app-table-outer {
  /*overflow-x: auto;*/
  display: block;
  margin: 0 8px;
}
.mdl-cell > .app-table-outer {
  margin: 0;
}

.app-form .mdl-grid {
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.app-form .mdl-grid .mdl-cell:first-child {
  margin-left: 0;
}

.form-actions {
  text-align: right;
}

 /*@media only screen and (min-width:1025px){*/
  .app-form{
    padding: 8px 16px;
    background-color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
  }
/*}*/
.app-contact .mdl-textfield,
.app-contact {
  width: 100%;
}
.app-contact .mdl-card__actions {
  text-align: right;
}
.app-contact .app-contact-message-field {
  border-top: 1px solid rgba(0,0,0,.1);
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.app-contact .app-contact-message-field textarea {
  outline: none;
  border: none;
  margin: 0 16px;
}
.app-list__float .mdl-list__item {
  float: left;
  /*border-left: 1px solid rgba(0,0,0,.1);*/
  /*border-top: 1px solid rgba(0,0,0,.1);*/
}
.app-list__float .mdl-list__item:first-child {
  /*border-left: none;*/
}

.mdl-tabs .router-link-active {
  color: rgba(0,0,0,.87);
  border-bottom: 2px solid #E20031;
}

.block-header {
  padding: 0 22px;
  background-color: #ababab;
  color: #fff;
  font-size: 24px;
}

.page-header {
  clear: both;
  /*min-height: 74px;*/
}

/* Overrides */
.mdl-textfield__error {
  visibility: visible;
}
/* End overrides */


/* Maps */
.heater-info-window-link {
  display: block;
  /*border: 1px solid #eee;*/
  padding: 8px;
}
.heater-info-window-link:hover {
  background-color: #efefef;
}
.heater-info-window-link .material-icons {
  display: block;
  float: left;
  padding-top: 4px;
}
.heater-info-window-link .wrap-info {
  display: block;
}
.heater-info-window-link .account-info {
  font-size: 16px;
}
.heater-info-window-link .heater-status-time {
  font-style: italic;
}

/* Param lists*/

ul.heater-params
{
  list-style: none;
  margin: 0;
  padding: 0;
}
li.heater-param {
  clear: both;
  border-bottom: 1px solid #DDD;
  padding: 10px 0;
  overflow: hidden;;
}
.heater-param .param_code {
  float: left;
  width: 40px;
  padding: 0 4px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}
.heater-param .param_name {
  font-size: 1.2em
}
.heater-param .param_content {
  opacity: 0.8;
  font-size: 0.9;
}
.heater-param .param_details {
  float: left;
  margin-left: 16px;
  max-width: calc(100% - 110px);
  /*width: 400px;*/
}
.heater-param .param_default {
  text-align: center;
  float: right;
  opacity: 0.8;
  font-size: 14px;
  padding: 10px;
  width: 40px;
}

/* Warnings */
.app-warning {
  color: #DD5B04;
  text-align: center;
  padding: 16px;
  border: 1px solid #DD5B04;
  margin: 16px 16px 0;
  background-color: #fff;
}

/* Spinner */

.loader {
  /*margin: 60px auto;*/
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid #C8C8C8;
  border-right: 1.1em solid #C8C8C8;
  border-bottom: 1.1em solid #C8C8C8;
  border-left: 1.1em solid #e20031;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
  overflow: hidden;
}
.loader,
.loader:after {
  border-radius: 50%;
  width: 6em;
  height: 6em;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/* End spinner */

/* MDL overrides */
.mdl-cell--6-col,
.mdl-cell--6-col-tablet.mdl-cell--6-col-tablet {
    width: calc(100% - 16px);
}
@media (min-width: 840px){
.mdl-cell--6-col,
.mdl-cell--6-col-desktop.mdl-cell--6-col-desktop {
    width: calc(50% - 16px);
}}
@media (min-width: 1025px) {
  .page-content {
    padding: 35px 25px 0;
    height: 100%;
    overflow: auto;
  }
}

.mdl-card {
  margin-bottom: 32px;
}

.mdl-card__title h2 {
  /*color: #fff;*/
  font-size: 24px;
  font-weight: normal;
}
/*
.md-button:hover:not([disabled]):not(.md-raised) {
  background-color: #e53935 !important;
}*/

.page-header {
  background-color: #fff;
  /*margin-top: 28px;*/
  padding: 13px 40px 13px;
  /*overflow: hidden;*/
  margin-bottom: 12px;
}
@media (max-width: 1024px) {
  .page-header {
    padding-left: 15px;
  }
}
/*.mdl-grid {
  width: 100%;
}*/
.app-main {
  padding: 0 !important;
}
.app-content {
  margin: 0 !important;
  width: 100% !important;
}

.md-input-container div {
  width: 100%;
}

.heater-fault-card .mdl-card--supporting-text > *{
  margin: 0;
}
.mdl-layout-title {
  max-width: calc(100% - 32px);
}

.mdl-button .material-icons,
.md-button .material-icons {
  vertical-align: middle;
  /*margin-top: -4px;*/
  margin-right: 8px;
}

.md-select:after {
    margin-top: 0px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) scaleY(.85) scaleX(1.85);
    transition: all .15s linear;
    content: "\25BC";
}

.heater-realtime .md-input-container .md-select:after {
  color: #fff;
}

.heater-realtime .md-input-container .md-select-value {
  font-size: 22px;
  padding: 0;
  margin: 0;
  font-family: 'Titillium Web', sans-serif;
  color: #fff;
}


.dashboard .mdl-card__title {
  background-color: #ababab;
}

.dashboard.heater-failures .mdl-card__title {
  background-color: #d91720; !important;
}
