a, a:active {
    color: #3F51B5;
}

md-toolbar.md-menu-toolbar {
    min-height: 74px;
    height: 74px;
    z-index: 3;
}

h2.md-toolbar-tools {
    padding: 12px 12px 6px !important;
    white-space: nowrap;
    display: inline-block;
    width: auto;
}

md-menu-bar {
    padding: 0 4px;
}

md-menu-bar button {
    font-size: 15px !important;
}

md-menu-bar > div.a {

    box-sizing: border-box;
    display: inline-block;
    font-family: Roboto, 'Helvetica Neue', sans-serif;
    height: 40px;
    margin: 0;
    padding: 0;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

md-menu-bar a {
    align-items: flex-start;
    height: 40px;
    padding: 0 10px;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    line-height: 40px;
    color: #000;
}

md-menu-bar a:active, md-menu-bar a:hover {
    background-color: rgb(238, 238, 238);
    color: #000;
}

.md-headline {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.005em;
}

.divider {
    border-bottom: 1px solid #1b1b1b;
    -webkit-box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Fix issue where IE 11 won't take md-card-title height
 * Apply flex-initial class-styles. */
md-card md-card-title {
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    box-sizing: border-box;
}

/* Fix issue where md-dynamic-height moves up */
md-tab-content.md-no-scroll {
    bottom: 0;
}

/* Details on map */
#details {
    position: absolute;
    bottom: 22px;
    left: 8px;
    z-index: 3;
    font-size: 80%;
    line-height: 30px;
}

#details md-card {
    margin: 0 0 8px 0;
    box-shadow: rgba(0, 0, 0, 0.298039) 0 1px 4px -1px;
}

#details md-card-content {
    padding: 8px 16px;
}

#details md-icon {
    margin-right: 6px;
    margin-left: -4px;
}

/* Fix disabled switch */
md-switch[disabled] .md-bar {
    background-color: rgba(0, 0, 0, 0.12) !important;
}

md-switch[disabled] .md-thumb {
    background-color: rgb(189, 189, 189) !important;
}

/* Input hint, used in profile (coupon and user url) */
md-input-container .hint {
    /* Copy styles from ng-messages */
    font-size: 12px;
    line-height: 14px;
    display: inline-block;
    padding-top: 5px;
    color: grey;
}

md-list-item.md-2-line > .md-button.md-no-style {
    min-height: unset;
}

md-list-item .md-button {
    margin: 0;
    font-weight: normal;
}

/* Md-tabs */
md-tabs {
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}

/* Next and previous buttons for md-tabs when pagination is active */
md-tabs md-tabs-wrapper md-prev-button md-icon, md-tabs md-tabs-wrapper md-next-button md-icon {
    color: rgba(255, 255, 255, 0.67);
}

md-tabs md-tabs-wrapper {
    background-color: rgb(63, 81, 181);
    -webkit-box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

md-tabs .md-tab md-icon {
    margin-top: -6px;
}

md-tabs .md-tab md-icon, md-tabs .md-tab {
    color: rgba(255, 255, 255, 0.67);
}

md-tabs .md-tab:hover md-icon, md-tabs .md-tab:hover {
    color: rgba(255, 255, 255, 0.87);
}

md-tabs .md-tab.md-active md-icon, md-tabs .md-tab.md-active {
    color: #fff;
}

md-tabs md-tabs-wrapper md-tabs-canvas md-pagination-wrapper md-ink-bar {
    color: #fff; /* this changes the colour of the ripple */
    background-color: #fff; /* this changes the colour of the ink bar */
}

/* Left ads */
.a_left {
    display: none;
    overflow: hidden;
    padding: 1px;
    border-right: 1px solid #ddd;
}

.a_left ins {
    display: block;
    height: 600px;
}

.a_left.no_grow {
    max-width: 120px;
}

.a_left.no_shrink {
    min-width: 160px;
}

@media (min-width: 888px) {
    .a_left {
        display: block;
        width: 120px;
    }
}

@media (min-width: 1000px) {
    .a_left {
        width: 160px;
    }
}

/* Footer */
#foot {
    font-size: 14px;
    margin-top: 24px;
    border-top: 1px solid #ddd;
    padding: 24px 16px 16px;
    cursor: default;
}

#foot a, #foot a:active {
    color: grey;
    text-decoration: none;
}

#foot a:hover {
    color: #000;
}

/* Used on registration page, and adddevice and addrelation dialogs */
md-input-container.md-input-invalid > md-icon {
    color: #DD2C00;
}