/**
 * 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;
}

.skiplink {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
/ / overflow: hidden;
}

.skiplink:focus, .skiplink:hover {
    position: relative;
    left: 0;
    font-size: 24px;
}

.ao-logout {
    position: relative;
    top: -2px;
}

.ao-header .mdl-layout__drawer-button .material-icons {
    line-height: 48px;
    color: rgb(117, 117, 117);
}

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

.ao-drawer-header .mdl-navigation__link {
    font-size: 14px;
}

.ao-icon {
    height: 130px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.ao-username {
    vertical-align: middle;
}

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

.ao-layout .ao-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.70);
}

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

.ao-layout .ao-navigation .mdl-navigation__link:hover {
    background-color: #043673;
}

.ao-layout .ao-navigation .mdl-navigation__link.is-active:hover {
    background-color: #043673;
    color: white;
}

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

.mdl-layout--fixed-drawer:not(.is-small-screen) > .mdl-layout__header {
    margin-left: 240px;
    width: calc(100% - 240px);
}

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

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

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

.ao-cards ul {
    padding: 0;
}

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

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

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

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

.ao-options h3 {
    margin: 0;
}

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

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

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

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

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

/* Login Styles */
.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%;
}

/* Fix floating labels overlapping browser-autofilled values */
.login-content .mdl-textfield__input:-webkit-autofill ~ .mdl-textfield__label {
    top: 4px;
    font-size: 12px;
    visibility: visible;
}

.login-content .mdl-textfield__input:-webkit-autofill {
    animation-name: onAutoFillStart;
}

@keyframes onAutoFillStart { from {/**/} to {/**/} }

@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;
}

button.flash__close {
    background-color: inherit;
    color: #fff;
    border: 0;
}

button.flash__close:focus {
    outline: solid;
    outline-color: #0fbad6;
}

/* Report Styles */
.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-data-table {
    display: none;
    padding: 0;
    overflow: scroll;
}

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

.report-data-table__footer {
    border-top: 1px solid rgba(0, 0, 0, .12);
    width: calc(100% - 16px);
}

.report-data-table .mdl-data-table {
    border-top: 2px solid rgba(0, 0, 0, .12);
}

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

/* Bulk order row styling in DataTables */
.mdl-data-table tr.bulk {
    background-color: #fff3e0;
    font-weight: 500;
}

.mdl-data-table tr.bulk:hover {
    background-color: #ffe0b2;
}

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

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

.mdl-data-table .child {
    text-align: left;
}

/* 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 Styles */
.form-title {
    margin-bottom: 16px;
}

.form-edit {
    margin-left: 10px;
    margin-right: 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-grid {
    padding: 0 8px;
    color: rgba(0, 0, 0, 0.87);
}

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

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

.picker__day--highlighted {
    border-radius: 50%;
    background-color: #2455a5;
    transform: scale(0.9);
    color: #ffffff;
}

.picker__day--highlighted.picker__day--today {
    color: #ffffff;
}

.mdl-required:after {
    content: ' *';
    color: #d50000;
}

.mdl-checkbox {
    margin: 0 12px;
}

.mdl-textfield.layout-column {
    padding: 8px 0 0 0;
}

.mdl-textfield.mdl-textfield--floating-label {
    margin: 0 12px;
}

.mdl-textfield--floating-label.is-invalid .mdl-textfield__label {
    font-size: 16px;
}

/* 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: #2455a5;
}

/* Spinner */
.spinner {
    margin: 10px auto 10px;
    width: 200px;
    text-align: center;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: rgba(0, 0, 0, .54);
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.28s;
    animation-delay: -0.28s;
}

.spinner .bounce3 {
    -webkit-animation-delay: -0.24s;
    animation-delay: -0.24s;
}

.spinner .bounce4 {
    -webkit-animation-delay: -0.20s;
    animation-delay: -0.20s;
}

.spinner .bounce5 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.spinner .bounce6 {
    -webkit-animation-delay: -0.12s;
    animation-delay: -0.12s;
}

.spinner .bounce7 {
    -webkit-animation-delay: -0.08s;
    animation-delay: -0.08s;
}

.spinner .bounce8 {
    -webkit-animation-delay: -0.04s;
    animation-delay: -0.04s;
}

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }
    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

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

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

.reject {
    background-color: rgb(217, 237, 247);
    border-bottom-color: rgba(0, 0, 0, 0);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-image-outset: 0px;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    border-left-color: rgba(0, 0, 0, 0);
    border-left-style: solid;
    border-left-width: 1px;
    border-right-color: rgba(0, 0, 0, 0);
    border-right-style: solid;
    border-right-width: 1px;
    border-top-color: rgba(0, 0, 0, 0);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-top-style: solid;
    border-top-width: 1px;
    box-sizing: border-box;
    color: rgb(4, 54, 115);
    display: block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 21px;
    margin: 0px;
    padding: 15px;
    text-align: left;
}

.reject-title {
    margin: 0px;
    color: rgb(4, 54, 115);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
}

.renew {
    background-color: rgb(255, 255, 255);
    border-bottom-color: rgba(0, 0, 0, 0);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-image-outset: 0px;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    border-left-color: rgba(0, 0, 0, 0);
    border-left-style: solid;
    border-left-width: 1px;
    border-right-color: rgba(0, 0, 0, 0);
    border-right-style: solid;
    border-right-width: 1px;
    border-top-color: rgba(0, 0, 0, 0);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-top-style: solid;
    border-top-width: 1px;
    box-sizing: border-box;
    color: rgb(4, 54, 115);
    display: block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 21px;
    margin: 0px;
    padding: 15px;
    text-align: left;
}

.renew-title {
    margin: 0px;
    color: rgb(4, 54, 115);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.mdl-grid {
    padding: 8px 8px 0px 8px;
}

.smaller {
    font-size: 12px;
}

.striped:nth-of-type(even) {
    background: rgb(217, 237, 247);
}

.error-message {
    font-size: 14px;
}

.rowheader {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.mdl-button--accent:hover {
    background-color: #2d6acd !important;
}

label.md-placeholder {
    color: rgba(0, 0, 0, 0.87);
}

@media screen and (min-width: 1024px) {
    .mdl-layout .mdl-layout__drawer-button {
        display: none;
    }
}

/* Force the datepicker container to take 100% width */
md-datepicker {
    display: flex;
    width: 100%;
}

/* Ensure the internal input container also expands */
md-datepicker .md-datepicker-input-container {
    width: 260px;
    margin-left: 0 !important;
}

.calendar-picker .md-errors-spacer {
    display: none !important;
}

.rejectQuote {
    display: none
}

/* Make the actual input field fill the remaining space */
md-datepicker .md-datepicker-input {
    max-width: 100%;
    min-width: 100%;
}

._md-datepicker-floating-label._md-datepicker-has-calendar-icon > label:not(.md-no-float):not(.md-container-ignore) {
    right: 18px;
    left: 50px;
    width: 100%;
}

.mdl-button--raised:focus {
    outline: solid;
    outline-color: #0fbad6;
}

md-select {
    max-width: 300px;
}

md-select.md-default-theme .md-select-value.md-select-placeholder, md-select .md-select-value.md-select-placeholder {
    color: rgba(0, 0, 0, 0.87);
}

.submenu {
    background-color: rgb(65, 81, 89);
}

.file-uploader {
    padding: 0;
    overflow: scroll;
}

.mdl-button--logout {
    font-size: 18px;
    height: 32px;
    margin-left: 0;
    margin-right: 0;
    min-width: 32px;
    padding: 0px 10px;
    overflow: hidden;
    color: inherit;
    line-height: normal;
}

.mdl-span--logout {
    vertical-align: bottom;
    text-transform: capitalize;
}


.mdl-color--primary, .mdl-color--primary-dark {
    background-color: rgb(4, 54, 115) !important;
}

.mdl-button--accent {
    background-color: rgb(36, 85, 165) !important;
}

.mdl-textfield__label, md-input-container label {
    color: rgba(0, 0, 0, .75);
}

a {
    color: rgb(36, 85, 165);
}

.mdl-navigation__link {
    font-size: 16px;
}

.mdl-data-table {
    font-size: 14px;
}

.mdl-data-table th {
    font-size: 13px;
}

.mdl-color--teal {
    background-color: #007369 !important;
}

/* Panels */

#maincontent > .mdl-layout__container, #maincontent > .mdl-layout {
    width: calc(100% - 16px);
    width: calc(100% - 16px);
    position: relative;
}

#maincontent .mdl-layout__tab.is-active::after {
    background-color: rgba(255, 255, 255, .6);
}

.mdl-layout__tab-panel {
    display: none;
}


/* Images */
.software-logo {
    max-height: 50px;
    max-width: 50px;
    padding: 0 10px 10px 0;
}

/* Angular Material Tabs Overrides */
md-tabs.md-default-theme md-tabs-wrapper,
md-tabs md-tabs-wrapper {
    background-color: #303f9f;
}

md-tabs.md-default-theme .md-tab,
md-tabs .md-tab {
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
    text-transform: none;
    font-size: 14px;
    padding: 12px 24px;
    background-color: transparent;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

md-tabs.md-default-theme .md-tab:hover,
md-tabs .md-tab:hover {
    background-color: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .9);
}

md-tabs.md-default-theme .md-tab.md-active,
md-tabs .md-tab.md-active {
    color: #fff;
    background-color: rgba(255, 255, 255, .15);
}

md-tabs.md-default-theme md-ink-bar,
md-tabs md-ink-bar {
    background-color: #fff;
    height: 3px;
}

md-tabs .md-tab:focus {
    outline: 2px solid #fff;
    outline-offset: -4px;
    border-radius: 4px 4px 0 0;
}

md-tabs .md-tab.md-focused {
    color: #fff;
    background-color: rgba(255, 255, 255, .15);
}

md-tab-content {
    overflow: visible !important;
}
