/**
 * 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: 'Roboto', 'Helvetica', sans-serif;
}

.vc-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: 15px;
    height: 200px;
}

.vc-icon {
    height: 130px;
    width: 130px;
    display: block;
    overflow: hidden;
    border-radius: 65px;
    margin: 0 auto;
    text-shadow: #01395f 1px 1px,
        #01395F 2px 2px,
        #01395F 3px 3px,
        #01395F 4px 4px,
        #01395F 5px 5px,
        #01395F 6px 6px,
        #01395F 7px 7px,
        #01395F 8px 8px,
        #01395F 9px 9px,
        #01395F 10px 10px,
        #01395F 11px 11px,
        #01395F 12px 12px,
        #01395F 13px 13px,
        #01395F 14px 14px,
        #01395F 15px 15px,
        #01395F 16px 16px,
        #01395F 17px 17px,
        #01395F 18px 18px,
        #01395F 19px 19px,
        #01395F 20px 20px,
        #01395F 21px 21px,
        #01395F 22px 22px,
        #01395F 23px 23px,
        #01395F 24px 24px,
        #01395F 25px 25px,
        #01395F 26px 26px,
        #01395F 27px 27px,
        #01395F 28px 28px,
        #01395F 29px 29px,
        #01395F 30px 30px,
        #01395F 31px 31px,
        #01395F 32px 32px,
        #01395F 33px 33px,
        #01395F 34px 34px,
        #01395F 35px 35px,
        #01395F 36px 36px,
        #01395F 37px 37px,
        #01395F 38px 38px,
        #01395F 39px 39px,
        #01395F 40px 40px,
        #01395F 41px 41px,
        #01395F 42px 42px,
        #01395F 43px 43px,
        #01395F 44px 44px,
        #01395F 45px 45px,
        #01395F 46px 46px,
        #01395F 47px 47px,
        #01395F 48px 48px,
        #01395F 49px 49px,
        #01395F 50px 50px,
        #01395F 51px 51px,
        #01395F 52px 52px,
        #01395F 53px 53px,
        #01395F 54px 54px,
        #01395F 55px 55px,
        #01395F 56px 56px,
        #01395F 57px 57px,
        #01395F 58px 58px,
        #01395F 59px 59px,
        #01395F 60px 60px,
        #01395F 61px 61px,
        #01395F 62px 62px,
        #01395F 63px 63px,
        #01395F 64px 64px,
        #01395F 65px 65px,
        #01395F 66px 66px,
        #01395F 67px 67px,
        #01395F 68px 68px,
        #01395F 69px 69px,
        #01395F 70px 70px,
        #01395F 71px 71px,
        #01395F 72px 72px,
        #01395F 73px 73px,
        #01395F 74px 74px,
        #01395F 75px 75px,
        #01395F 76px 76px,
        #01395F 77px 77px,
        #01395F 78px 78px,
        #01395F 79px 79px,
        #01395F 80px 80px,
        #01395F 81px 81px,
        #01395F 82px 82px,
        #01395F 83px 83px,
        #01395F 84px 84px,
        #01395F 85px 85px,
        #01395F 86px 86px,
        #01395F 87px 87px,
        #01395F 88px 88px,
        #01395F 89px 89px,
        #01395F 90px 90px,
        #01395F 91px 91px,
        #01395F 92px 92px,
        #01395F 93px 93px,
        #01395F 94px 94px,
        #01395F 95px 95px,
        #01395F 96px 96px,
        #01395F 97px 97px,
        #01395F 98px 98px,
        #01395F 99px 99px,
        #01395F 100px 100px;
}

.vc-icon a {
    display: block;
    margin: 0 auto;
    font-weight: bold;
    color: white;
    font-size: 65px;
    line-height: 130px;
    text-align: center;
    text-decoration: none;
}

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

.vc-layout .vc-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;
    color: rgba(255, 255, 255, 0.56);
    font-weight: 500;
}

.vc-layout .vc-navigation .mdl-navigation__link.is-active {
    color: #40c4ff;
}

.vc-layout .vc-navigation .mdl-navigation__link:hover {
    background-color: #0288D1;
    color: #37474F;
}

.vc-layout .vc-navigation .mdl-navigation__link.is-active:hover {
    background-color: #0288D1;
    color: white;
}

.vc-navigation .mdl-navigation__link .material-icons {
    font-size: 24px;
    margin-right: 32px;
}

.vc-search .mdl-button{
    top: initial;
}

.vc-header .mdl-button--icon {
    width: 55px;
    height: 55px;
}

.vc-header .mdl-textfield {
    top: 14px;
    right: 23px;
}

.vc-header .mdl-badge[data-badge]:after {
    background: #e91e63;
    color: white;
}

.vc-cards {
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    -ms-grid-row-align: flex-start;
    align-items: flex-start;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
}

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

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

.vc-cards ul {
    padding: 0;
}

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

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

.mdl-card__supporting-text{
    width: 100%;
    border: none;
}

.vc-cards .mdl-card__actions a {
    color: #40c4ff;
    text-decoration: none;
}

.vc-options h3 {
    margin: 0;
}

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

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

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

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

.vc-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;
}

.material-icons--info {
    font-size: 27px;
    margin: 0 2px;
}

.mdl-textfield__expandable-holder {
    position: relative;
    bottom: 16px;
    left: 13px;
}

/* Login */
.login-layout.mdl-layout {
    align-items: center;
    justify-content: center;
}

.login-content.mdl-layout__content {
    padding: 24px;
    flex: none;
}

.login-content .mdl-card__supporting-text, .flash .mdl-card__supporting-text {
    width: calc(100% - 32px);
}

.login-content .mdl-textfield {
    width: 100%;
}

@media (min-width: 840px) {
    .login-content.mdl-layout__content {
        min-width: 650px;
    }
    .login-content .flash {
        width: calc(83.3333333333% - 16px);
        left: 8.3333333333%;
    }
}

input[value="Logout"] {
    width: 100%;
}

.flash {
    min-height: 50px;
    font-weight: 400;
}

.flash__close {
    float: right;
    margin: 0;
    cursor: pointer;
}

/* Dashboard */
.dashboard-card {
    position: relative;
    padding-bottom: 53px;
}

.dashboard-card > table {
    position: static;
}

.dashboard-card > div:last-of-type {
    position: absolute;
    bottom: 0;
}

/* Report */
.mdl-data-table th.sorting:hover {
    color: rgba(0,0,0,.26);
    cursor: pointer;
}

.mdl-data-table th.sorting_asc:hover, .mdl-data-table th.sorting_desc:hover {
    cursor: pointer;
}

.mdl-data-table th.sorting_asc:before, .mdl-data-table th.sorting_desc:before {
    font-family: 'Material Icons';
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    word-wrap: normal;
    -moz-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    margin-right: 5px;
    vertical-align: sub;
}

.mdl-data-table th.sorting_asc:before {
    content: "\e5d8";
}

.mdl-data-table th.sorting_desc:before {
    content: "\e5db";
}

.mdl-data-table th.sorting_asc:hover:before, .mdl-data-table th.sorting_desc:hover:before {
    color: rgba(0,0,0,.26);
}

.report-sorting-disabled {
    color: rgba(0,0,0,.26);
    cursor: default;
}

.report-table {
    display: none;
    padding: 0;
    overflow: scroll;
}

.report-table__footer {
    width: calc(100% - 16px);
}

.report-table .mdl-data-table {
    border: none;
}

.report-table .dataTables_empty, .report-table .child {
    text-align: left;
}

.report-table .child ul {
    width: 100%;
}

.file-uploads-table {
    padding: 0;
    overflow: scroll;
}

.file-uploads-table__footer {
    width: calc(100% - 16px);
}

.file-uploads-table .mdl-data-table {
    border: none;
}

.file-uploads-table .dataTables_empty, .file-uploads-table .child {
    text-align: left;
}

.file-uploads-table .child ul {
    width: 100%;
}

/* Pagination */
@media (max-width: 839px) {
    .pagination {
        text-align: center;
    }
}

.pagination select {
    margin-left: 16px;
}

.paginate_button.disabled {
    color: rgba(0,0,0,.26);
    cursor: default;
}

a.paginate_button, .ellipsis{
    vertical-align: top;
    line-height: 25px;
    margin: 2px;
    cursor: pointer;
}

/* Form */
.form-title {
    margin-bottom: 16px;
}
.form-edit {
    margin-left: 10px;
}

.form-edit:hover {
    background-color: rgba(100,100,100,.2);
}

.form-label {
    color: rgba(0,0,0,.87);
    font-weight: 700;
    min-height: 18px;
}

.form-input {
    border-bottom: 1px solid rgba(0,0,0,.12);
    min-height: 19px;
}

.form-input--shift-down {
    margin-top: 14px;
    display: inline-block;
}

.form-grid {
    padding: 0 8px;
    color: rgba(0,0,0,0.87);
}

.form-grid .form-label, .form-grid .form-input {
    margin: 0 8px;
    border: none;
}

.form-notes {
    margin: 0 8px 20px;
    border: 1px dotted rgba(0,0,0,.12);
    padding: 8px;
    font-size: 1rem;
    line-height: 18px;
}

.form-notes__entry {
    display: block;
    padding-bottom: 8px;
}

.form-notes__entry:not(:last-of-type) {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,.12);
}

.form-notes__title {
    display: block;
}

.form-notes__name {
    font-weight: 700;
}

.form-notes__date {
    font-size: .9rem;
}

.form-notes__entry ol, .form-notes__entry ul {
    line-height: 18px;
    margin: 4px 0 0;
}

iframe.mdl-cell {
    min-height: 210px;
}

.vc--float-right {
    float: right;
}

/* Uploader */
.qq-upload-list .mdl-button {
    margin: 5px 0;
    padding: 0 15px 0 10px;
    text-transform: capitalize;
}

.qq-upload-list .material-icons {
    position: relative;
    top: -1px;
    font-size: 18px;
}

.mdl-grid .qq-uploader {
    border: none;
    border-top: 1px solid rgba(0,0,0,.12);
    border-radius: 0;
}


/* Responsive Datatable Overrides */
.mdl-data-table {
    white-space: normal;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before {
    content: '-';
    background-color: #e91e63;
}
table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child:before {
    top: 15px;
    left: 8px;
    height: 14px;
    width: 14px;
    display: block;
    position: absolute;
    color: white;
    border: none;
    border-radius: 14px;
    box-shadow: none;
    box-sizing: content-box;
    text-align: center;
    font-family: 'Roboto', 'Helvetica', sans-serif;
    line-height: 14px;
    content: '+';
    background-color: #01579b;
}

/* Spinner */
.spinner {
    margin: 120px auto 20px;
    border: 16px solid #eee;
    border-top: 16px solid #01579b;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    margin: 20px auto 120px;
    text-align: center;
    font-size: 16px;
}

/* Dialog */
md-toolbar.md-default-theme:not(.md-menu-toolbar), md-toolbar:not(.md-menu-toolbar) {
    background-color: #01579b;
}

md-dialog .md-actions, md-dialog md-dialog-actions {
    padding: 0 16px;
}

md-dialog .md-actions .md-button, md-dialog md-dialog-actions .md-button {
    margin: 8px;
}

md-dialog .mdl-textfield {
    display: block;
}

.error-hidden {
    font-size: 12px;
    line-height: 14px;
    overflow: hidden;
    padding-top: 5px;
    color: rgb(221,44,0);
    display: inline-block;
    -webkit-transition: all .3s cubic-bezier(.55,0,.55,.2);
    transition: all .3s cubic-bezier(.55,0,.55,.2);
    opacity: 0;
    margin-top: -100px;
    float:left;
    pointer-events: none;
}

.error-show {
    font-size: 12px;
    line-height: 14px;
    overflow: hidden;
    padding-top: 5px;
    color: rgb(221,44,0);
    display: inline-block;
    -webkit-transition: all .3s cubic-bezier(.55,0,.55,.2);
    transition: all .3s cubic-bezier(.55,0,.55,.2);
    opacity: 1;
    margin-top: 0;
    float:left;
    pointer-events: auto;
}


/* Messages */
.message:not(:first-of-type) {
    border-top: 1px solid rgba(0,0,0,.1);
}
