/**
 * 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.
 */

.demo-layout .mdl-layout__header .mdl-layout__drawer-button {
  color: rgba(0, 0, 0, 0.54);
}
.demo-drawer {
  border: none;
}
/* iOS Safari specific workaround */
.mdl-menu__container {
  z-index: -1;
}
.demo-drawer .demo-navigation {
  z-index: -2;
}
/* END iOS Safari specific workaround */
.mdl-menu .mdl-menu__item {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
.demo-drawer-header {
  box-sizing: border-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 16px;
  /*height: 151px;*/
}
.demo-avatar-dropdown {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
}

.demo-navigation {
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}
.demo-layout .demo-navigation .mdl-navigation__link {
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  font-weight: 500;
}
.demo-navigation .mdl-navigation__link .material-icons {
  font-size: 24px;
  margin-right: 32px;
}

.demo-content {
  max-width: 1080px;
}

.demo-charts {
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
.demo-chart:nth-child(1) {
  color: #ACEC00;
}
.demo-chart:nth-child(2) {
  color: #00BBD6;
}
.demo-chart:nth-child(3) {
  color: #BA65C9;
}
.demo-chart:nth-child(4) {
  color: #EF3C79;
}
.demo-graphs {
  padding: 16px 32px;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-align-items: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
/* TODO: Find a proper solution to have the graphs
 * not float around outside their container in IE10/11.
 * Using a browserhacks.com solution for now.
 */
_:-ms-input-placeholder, :root .demo-graphs {
  min-height: 664px;
}
_:-ms-input-placeholder, :root .demo-graph {
  max-height: 300px;
}
/* TODO end */
.demo-graph:nth-child(1) {
  color: #00b9d8;
}
.demo-graph:nth-child(2) {
  color: #d9006e;
}

.demo-cards {
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-align-content: flex-start;
      -ms-flex-line-pack: start;
          align-content: flex-start;
}
.demo-cards .demo-separator {
  height: 32px;
}
.demo-cards .mdl-card__title.mdl-card__title {
  color: white;
  font-size: 24px;
  font-weight: 400;
}
.demo-cards ul {
  padding: 0;
}
.demo-cards h3 {
  font-size: 1em;
}
.demo-updates .mdl-card__title {
  min-height: 200px;
  background-image: url(https://o3l.gammeo.com/images/dog.png);
  background-position: 90% 100%;
  background-repeat: no-repeat;
}
.demo-cards .mdl-card__actions a {
  color: #00BCD4;
  text-decoration: none;
}

.demo-options h3 {
  margin: 0;
}
.demo-options .mdl-checkbox__box-outline {
  border-color: rgba(255, 255, 255, 0.89);
}
.demo-options ul {
  margin: 0;
  list-style-type: none;
}
.demo-options li {
  margin: 4px 0;
}
.demo-options .material-icons {
  color: rgba(255, 255, 255, 0.89);
}
.demo-options .mdl-card__actions {
  height: 64px;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  box-sizing: border-box;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@import "material-design-lite/material.min.css";

html, body {
  font-family: 'Roboto', 'Helvetica', sans-serif;
  height: 100%;
  --spacing: 8px;
}

h1 {
  margin-top: 0px;
}

h2 {
  margin-top: 0px;
  font-size: 24px;
  font-weight: 500;
}

h3 {
  margin-top: 0px;
  font-size: 18px;
  font-weight: 500;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 24px;
}
a {
  text-decoration: none
}
a.disabled {
  pointer-events: none;
  cursor: default;
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-end {
  justify-content: end;
}
.w-100 {
  width: 100%;
}
.h-a {
  height: auto;
}

.p-0  { padding: 0px; }
.pt-0 { padding-top: 0px; }
.pb-0 { padding-bottom: 0px; }
.pl-0 { padding-left: 0px; }
.pr-0 { padding-right: 0px; }

.p-1  { padding: var(--spacing); }
.pt-1 { padding-top: var(--spacing); }
.pb-1 { padding-bottom: var(--spacing); }
.pl-1 { padding-left: var(--spacing); }
.pr-1 { padding-right: var(--spacing); }

.p-2  { padding: calc(var(--spacing)*2); }
.pt-2 { padding-top: calc(var(--spacing)*2); }
.pb-2 { padding-bottom: calc(var(--spacing)*2); }
.pl-2 { padding-left: calc(var(--spacing)*2); }
.pr-2 { padding-right: calc(var(--spacing)*2); }

.p-3  { padding: calc(var(--spacing)*3); }
.pt-3 { padding-top: calc(var(--spacing)*3); }
.pb-3 { padding-bottom: calc(var(--spacing)*3); }
.pl-3 { padding-left: calc(var(--spacing)*3); }
.pr-3 { padding-right: calc(var(--spacing)*3); }

.m-0  { margin: 0px; }
.mt-0 { margin-top: 0px; }
.mb-0 { margin-bottom: 0px; }
.ml-0 { margin-left: 0px; }
.mr-0 { margin-right: 0px; }

.m-1  { margin: var(--spacing); }
.mt-1 { margin-top: var(--spacing); }
.mb-1 { margin-bottom: var(--spacing); }
.ml-1 { margin-left: var(--spacing); }
.mr-1 { margin-right: var(--spacing); }

.m-2  { margin: calc(var(--spacing)*2); }
.mt-2 { margin-top: calc(var(--spacing)*2); }
.mb-2 { margin-bottom: calc(var(--spacing)*2); }
.ml-2 { margin-left: calc(var(--spacing)*2); }
.mr-2 { margin-right: calc(var(--spacing)*2); }

.m-3  { margin: calc(var(--spacing)*3); }
.mt-3 { margin-top: calc(var(--spacing)*3); }
.mb-3 { margin-bottom: calc(var(--spacing)*3); }
.ml-3 { margin-left: calc(var(--spacing)*3); }
.mr-3 { margin-right: calc(var(--spacing)*3); }

.text-center {
  text-align: center;
}

.has-error .help-block {
  color: #d9534f;
}

.row {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.mdl-chip {
  height: 24px;
  line-height: 24px;
}

.mdl-chip .material-icons {
  font-size: 16px;
}

.mdl-chip__contact {
  height: 24px;
  width: 24px;
}

.mdl-chip__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mdl-card {
  min-height: 0px;
}

.mdl-card__supporting-text + .mdl-card__actions {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.mdl-card__actions {
  margin: 0;
  padding: 8px 40px;
  color: inherit;
}
.mdl-card > * {
  height: auto;
}

.label,
.mdl-menu__header {
  color: #777;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.mdl-menu__header {
  padding: 16px 16px 0;
  border-top: 1px solid rgba(0,0,0,.12);
}

.mdl-layout__drawer .mdl-navigation .mdl-navigation__link.is-active,
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link.is-active > i {
  color: #FFF !important;
  background-color: rgb(69,90,100) !important;
  font-weight: bold;
}
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link:hover,
.mdl-layout__drawer .mdl-navigation .mdl-navigation__link:hover > i {
  color: #FFF !important;
  background-color: rgb(96,125,139) !important;
}
.mdl-layout__header-row > * {
  -webkit-flex-shrink: 1;
  -ms-flex-negative: 1;
  flex-shrink: 1;
}
/*
.demo-logo {
  position: absolute;
  top: 24px;
  left: 16px;
  display: block;
  font-weight: bold;
  transform: rotate(-90deg);
  font-size: 2rem;
}
*/

.header-logo img {
  width: 48px;
  height: 48px;
}

.drawer-logo img {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
}

.input-lg > input,
.input-lg > label {
  font-size: 20px;
}

.input-lg > input {
  height: 38px;
}

.input-lg > label {
  top: 34px;
}

#fab {
  position: absolute;
  right: 40px;
  top: 36px;
  z-index: 999;
}

.labels-container {
  display: flex;
  white-space: normal;
  justify-content: left;
  flex-wrap: wrap;
}

table .labels-container {
  max-width: 360px;
}

.mdl-layout:not(.is-small-screen) .mdl-layout__tab-bar, .mdl-layout:not(.is-small-screen) .mdl-layout__tab-bar-container {
  overflow: visible;
}
.mdl-layout__tab-bar-container {
  height: 64px;
  overflow: visible;
}
.mdl-layout__tab-bar {
  position: relative;
  padding: 0;
  padding-left: 0px;
  padding-left: 16px;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  height: 64px;
}
.mdl-layout.is-upgraded .mdl-layout__tab.is-active {
  color: rgb(255,255,255);
  font-weight: 500;
}
.mdl-layout.is-upgraded .mdl-layout__tab.is-active::after {
  background-color: white;
  height: 4px;
}
.mdl-layout__tab-bar .mdl-layout__tab {
  height: 64px;
  line-height: 64px;
}

tr.disabled td {
  color: #999;
  background: #EAEAEA;
}

.mdl-data-table {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overflow-wrap: break-word;
}

.mdl-data-table td {
  white-space: normal;
}

.mdl-data-table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media screen and (max-width: 800px) and (orientation: portrait) {
  #fab {
    position: fixed;
    display: block;
    right: 0;
    bottom: 0;
    margin-right: 40px;
    margin-bottom: 40px;
    z-index: 900;
  }
  .hidden-xs {
    display: none;
  }

  .mdl-data-table {
    table-layout: fixed;
    display: block;
  }
  /*

  .mdl-data-table tbody tr,
  .mdl-data-table td {
    height: auto;
  }

  table {
    border: 0;
    border-top: none;
    overflow: hidden;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  table tbody td:nth-of-type(1) {
    display: table-cell;
    width: auto;
    border-top: none;
  }
  table tbody td:nth-of-type(2) {
    display: table-cell;
    width: 100%;
    border-top: none;
  }
  
  table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
  */
}

.mdl-layout__drawer-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    width: 280px;
    height: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    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);
    box-sizing: border-box;
    border-right: 1px solid #e0e0e0;
    background: #fafafa;
    -webkit-transform: translateX(290px);
    -ms-transform: translateX(290px);
    transform: translateX(290px);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
    -webkit-transition-duration: .2s;
    transition-duration: .2s;
    -webkit-transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    -webkit-transition-property: -webkit-transform;
    transition-property: transform;
    color: #424242;
    overflow: visible;
    overflow-y: auto;
    z-index: 5;
}

.is-active {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.mdl-layout__obfuscator-right {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 4;
    visibility: hidden;
    -webkit-transition-property: background-color;
    transition-property: background-color;
    -webkit-transition-duration: .2s;
    transition-duration: .2s;
    -webkit-transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.mdl-layout__drawer-right.is-active~.mdl-layout__obfuscator-right {
    background-color: rgba(0,0,0,.5);
    visibility: visible;
}

.mdl-layout__drawer-right>.mdl-layout-title {
    line-height: 56px;
    padding-left: 16px;
}
