html,body {
    font-family: "Roboto","Helvetica","Arial",sans-serif;
}

.mdl-color--accent {
    background-color: #24368A !important;
}

.mdl-color--primary, .mdl-tabs.is-upgraded .mdl-tabs__tab.is-active:after, .mdl-textfield__label:after {
    background-color: #EFEA52 !important;
}

.mdl-color-text--primary-contrast {
    color: #000 !important;
}

.material-icons {
    vertical-align: middle;
}

.mdl-button {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.mdl-layout__header-row {
    padding: 0 16px;
    height: 35px;
}

.mdl-layout__header-row.location {
    height: 25px;
}

.mdl-layout > .mdl-button {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.location-view .mdl-list, .week-view .mdl-list {
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0;
    -moz-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
}

.mdl-list a {
    color: inherit;
    text-decoration: inherit;
}

.mdl-list__item-two-line .mdl-list__item-primary-content .mdl-list__item-sub-title {
    padding-left: 8px;
}

.mdl-tabs {
    position: relative;
    height: 100%;
}
.mdl-tabs__panel {
    position: absolute;
    top: 49px;
    left: 0;
    bottom: 0;
    right: 0;
}

.divider:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -moz-box-orient: horizontal;
    -moz-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.day-view .row {
    padding: 0 8px;
}

.day-view .title {
    display: inline-block;
    width: 100%;
    margin: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
}

.day-view .row :not(:first-child):not(:last-child) {
    padding: 0 4px;
}

.month-view .calendar, .month-view .calendar tr, .month-view .calendar th, .month-view .calendar td {
    border: 1px solid #444;
}

.month-view .calendar {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: collapse;
}

.month-view .calendar th, .month-view .calendar td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-view .calendar tr .now a {
    border: 2px solid #222;
}

.month-view .calendar th a, .month-view .calendar td a {
    color: inherit;
    text-decoration: inherit;
}

.month-view .calendar td.disabled {
    color: rgba(0, 0, 0, 0.4);
}

.month-view .calendar tr:not(.header) th, .month-view .calendar tr:not(.header) td {
    position: relative;
    padding: 0 0 12.5%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.month-view .calendar th a, .month-view .calendar td a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.month-view .calendar th a span, .month-view .calendar td a span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.week-view .mdl-list {
    padding: 0;
}

.week-view .mdl-list .mdl-list__item {
    height: auto;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 8px;
}

.week-view .mdl-list .mdl-list__item .mdl-list__item-primary-content {
    -webkit-flex-basis: 35%;
    -ms-flex-basis: 35%;
    flex-basis: 35%;
    -webkit-flex-grow: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
}

.week-view .mdl-list .mdl-list__item .mdl-list__item-primary-content .mdl-list__item-text {
    display: block;
}

.week-view .mdl-list .mdl-list__item .mdl-list__item-secondary-content {
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.week-view .mdl-list .mdl-list__item .mdl-list__item-secondary-content .mdl-list__item-secondary-info {
    margin-bottom: 4px;
}

.week-view .mdl-list .mdl-list__item .mdl-list__item-secondary-content .mdl-list__item-secondary-info:last-child {
    margin-bottom: 0;
}

.nowrap {
    white-space: nowrap;
}

@media only screen and (orientation: portrait) and (max-width: 320px) {
    .mdl-layout__header-row .mdl-button {
        font-size: 10px;
    }

    .mdl-layout__header-row .mdl-button .material-icons {
        font-size: 20px;
    }

    .mdl-layout__header-row .mdl-layout-title {
        font-size: 16px;
    }
}

/*
@media only screen and (orientation: landscape) and (max-height: 320px) {
    .mdl-layout__header-row .mdl-button {
        font-size: 10px;
    }

    .mdl-layout__header-row .mdl-button .material-icons {
        font-size: 20px;
    }

    .mdl-layout__header-row .mdl-layout-title {
        font-size: 16px;
    }
}

@media only screen and (orientation: landscape) {
    html {
        position: relative;
    }

    body {
        position: absolute;
        top: 50vh;
        left: 50vw;
        width: 100vh;
        height: 100vw;
        -webkit-transform: rotate(-90deg) translate(50vw, -50vh);
        -moz-transform: rotate(-90deg) translate(50vw, -50vh);
        -ms-transform: rotate(-90deg) translate(50vw, -50vh);
        -o-transform: rotate(-90deg) translate(50vw, -50vh);
        transform: rotate(-90deg) translate(50vw, -50vh);
    }
}
*/
