/**
 * 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: Avenir, "Open Sans", "Helvetica Neue", Helvetica, Arial, Verdana, Roboto, "Meiryo UI", "メイリオ", Meiryo, "游ゴシック", "Yu Gothic", "游ゴシック体", "YuGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

.mz-avatar {
    width: 48px;
    height: 48px;
    border-radius: 24px;
}

.mz-layout .mz-header .mdl-textfield {
    padding-top: 27px;
}

.mz-layout .mdl-layout__header .mdl-layout__drawer-button {
    color: rgba(0, 0, 0, 0.54);
    height: 36px;
    width: 36px;
    line-height: 40px;
}

.mdl-layout__drawer .avatar {
    margin-bottom: 16px;
}

.mz-drawer {
    border: none;
}

/* iOS Safari specific workaround */
.mz-drawer .mdl-menu__container {
    z-index: -1;
}

.mz-drawer .mz-navigation {
    z-index: -2;
    padding-top: 8px;
}

/* END iOS Safari specific workaround */
.mz-drawer .mdl-menu .mdl-menu__item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.mz-drawer-header {
    box-sizing: border-box;
    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-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 16px;
}

.mz-avatar-dropdown {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
}

.mz-navigation {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.mz-layout .mz-navigation .mdl-navigation__link {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.56);
    font-weight: 200;
    padding: 1px 10px;
}

.mz-layout .mz-navigation .mdl-navigation__link:hover {
    background-color: #00BCD4;
    color: #37474F;
}

.mz-navigation .mdl-navigation__link .material-icons {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.56);
    margin-right: 32px;
}

.mz-content {
    /* max-width: 1080px; */
}

.mz-charts {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.mz-chart:nth-child(1) {
    color: #ACEC00;
}

.mz-chart:nth-child(2) {
    color: #00BBD6;
}

.mz-chart:nth-child(3) {
    color: #BA65C9;
}

.mz-chart:nth-child(4) {
    color: #EF3C79;
}

.mz-graphs {
    padding: 16px 32px;
    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-box-align: stretch;
    -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 .mz-graphs {
    min-height: 664px;
}

_:-ms-input-placeholder, :root .mz-graph {
    max-height: 300px;
}

/* TODO end */
.mz-graph:nth-child(1) {
    color: #00b9d8;
}

.mz-graph:nth-child(2) {
    color: #d9006e;
}

.mz-cards {
    -webkit-box-align: start;
    -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;
}

.mz-cards .mz-separator {
    height: 32px;
}

.mz-cards .mdl-card__title.mdl-card__title {
    color: white;
    font-size: 24px;
    font-weight: 400;
}

.mz-cards ul {
    padding: 0;
}

.mz-cards h3 {
    font-size: 1em;
}

.mz-updates .mdl-card__title {
    min-height: 200px;
    background-image: url('images/dog.png');
    background-position: 90% 100%;
    background-repeat: no-repeat;
}

.mz-cards .mdl-card__actions a {
    color: #00BCD4;
    text-decoration: none;
}

.mz-options h3 {
    margin: 0;
}

.mz-options .mdl-checkbox__box-outline {
    border-color: rgba(255, 255, 255, 0.89);
}

.mz-options ul {
    margin: 0;
    list-style-type: none;
}

.mz-options li {
    margin: 4px 0;
}

.mz-options .material-icons {
    color: rgba(255, 255, 255, 0.89);
}

.mz-options .mdl-card__actions {
    height: 64px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    box-sizing: border-box;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

/* Added */
.mz-buttons {
    text-align: center;
    margin: 0 auto;
    min-height: 52px !important;
}

#flashMessage.message {
    color: red;
}

/** */
.mdl-textfield {
	padding: 4px 0px;
}
.mdl-textfield__label {
	top: 4px;
}
.mdl-textfield__label::after {
	bottom: 4px;
}
.mdl-textfield.is-invalid .mdl-textfield__input {
    border-color: -moz-use-text-color -moz-use-text-color rgba(0, 0, 0, 0.12);
}

.mz-layout .mz-navigation .mdl-navigation__link.is-active {
    font-weight: 700;
    color: white;
}

.mz-layout .mdl-layout__header.is-compact {
    max-height: 40px;
}

.mz-layout .mdl-layout__header {
    min-height: 40px;
}

.mz-layout .mdl-layout__header-row {
    height: 40px;
}

.mz-layout .mdl-layout__header-row .mdl-navigation__link {
    line-height: 40px;
}

.mz-layout .mdl-layout__header .sub-menu .mdl-textfield {
    width: 200px;
    padding: 20px 0px;
}

.mz-layout .mdl-layout__header .mdl-textfield__label {
	top: 24px;
}

.mz-100p {
    width: 100%;
}

.mz-100px {
    width: 100px;
}

.mz-200px {
    width: 200px;
}

/* button icons */
.mz-button--56px {
    height: 56px;
    min-width: 56px;
    width: 56px;
}
.mz-button--56px .material-icons {
    -webkit-transform: translate(-28px,-28px);
    -ms-transform: translate(-28px,-28px);
    transform: translate(-28px,-28px);
    line-height: 56px;
    width: 56px;
    height: 56px;
    font-size: 56px;
}

.mz-button--48px {
    height: 48px;
    min-width: 48px;
    width: 48px;
}
.mz-button--48px .material-icons {
    -webkit-transform: translate(-24px,-24px);
    -ms-transform: translate(-24px,-24px);
    transform: translate(-24px,-24px);
    line-height: 48px;
    width: 48px;
    height: 48px;
    font-size: 48px;
}


/* common */
.red {
    color: #f00;
}

.bold {
    color: #f00;
    font-weight: bold;
}

/* status */
.closed, .pause, .draft {
    color: #d00;
}

.reserved, .standby, .future {
    color: #805;
    font-style: oblique;
}

.open {
    color: #0a8;
    font-weight: bold;
}

ul.vlist {
    padding: 0;
    margin: 0;
    list-style: none;
}

form {
    width: 100%;
    padding: 0;
    margin: 0;
}

.inline-box {
    display: inline-block;
}

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