
/* Frame for webview; */
@media (min-width: 1023px) {
    body {
        max-width: 1024px;
        margin: auto;
        /* border: 1px solid lightgray; */
    }
}

*[ng-click],
ons-list-item [ng-click] {
    cursor: pointer;
}

.toast {
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}
.toast__message {
    text-align: center;
    padding: 10px;
    font-size: 16px;
}

.text-normal {
    font-size: 14px;
}
.text-large {
    font-size: 16px;
}
.text-larger {
    font-size: 18px;
}
.text-largest {
    font-size: 20px;
}

ons-page {
    opacity: 1 !important;
}


em, .asterisk-required {
    color: red;
}

.text-input--material__label {
    width: 100%;
    text-align: left;
}

.button {
    margin-top: 2px;
    margin-bottom: 2px;
}
.button-action {
    background: #ffb344 !important;
}
.button-success {
    background: #49DCB1 !important;
}

ons-input.black-placeholder > .text-input--material__label {
    display: none;
}
ons-input.black-placeholder input:-ms-input-placeholder { /* IE 10+ */
    color: black;
}
ons-input.black-placeholder input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: black;
}
ons-input.black-placeholder input::-moz-placeholder { /* Firefox 19+ */
    color: black;
}
ons-input.black-placeholder input:-moz-placeholder { /* Firefox 18- */
    color: black;
}


.text-center,
ons-input.text-center input,
.text-center::-webkit-input-placeholder,
ons-input.text-center input::-webkit-input-placeholder,
ons-input.text-center .text-input--material__label
{
    text-align: center;
}
.text-input--material__label {
    overflow: hidden;
    max-height: 100%;
}

.tabbar__icon+.tabbar__label {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
    margin-left: 5%;
}

.alert-dialog-content {
    word-break: normal;
    word-wrap: break-word;
}

.text-right {
    text-align: right;
}
.text-red {
    color: red;
}
.text-green {
    color: green;
}
.modal__content {
    padding-left: 5px;
    padding-right: 5px;
    color: #1f1f21;
}
.modal__content > .card {
    max-width: 400px;
    margin: 0 auto;
}
.card__title {
    text-align: center;
}

/* Alert Dialog */
#loadingDialog > .alert-dialog {
    background-color: transparent;
}
#loadingDialog > .alert-dialog > .alert-dialog-container {
    box-shadow: none;
}
#loadingDialog > .alert-dialog-mask {
    background-color: rgba(255, 255, 255, 0.3);
}

.sk-wave {
    -webkit-filter: drop-shadow(2px 2px 5px #374a54);
    filter: drop-shadow(2px 2px 5px #374a54);
}
hr {
    border: 1px solid lightgray;
    border-style: solid;
    margin: 20px 5%;
}
ons-button > .fa {
    margin-right: 10px;
}

.carousel-button {
    border-radius: 20px;
    height: 20px;
    width: 20px;
    margin: 5px;
    display: inline-block;
    background-color: #1e1e1e;
    opacity: 0.3;
    cursor: pointer;
}
.carousel-button-active {
    opacity: 0.7 !important;
}
.highcharts-credits {
    display: none;
}


.gm-button-icon {
    direction: ltr;
    margin-top: 10px;
    padding: 0;
    height: 34px;
    font-size: 20px;
    line-height: 34px;
    min-width: 37px;
    overflow: hidden;
    text-align: center;
    position: relative;
    color: rgb(0, 0, 0);
    font-family: Roboto, Arial, sans-serif;
    user-select: none;
    background-color: rgb(255, 255, 255);
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    box-shadow: rgba(0, 0, 0, 0.298039) 0 1px 4px -1px;
    border-left: 0;
    font-weight: 500;
}





/* RS Cal */
.rsCal {

}
.rsCalMonth {
    padding-top: 5px;
}
.rsCalMonthHeadings {
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px solid lightgray;
    margin-bottom: 5px;
    text-align: center;
}

.rsCalMonthWeeks {
    margin: 5px auto;
    text-align: center;
    padding: 0 0;
}

.rsCalMonthWeekInput.ng-hide {
    display: block !important;
    height: 0px !important;
    overflow: hidden;
    padding: 0;
}

.rsCalMonthWeekInput {
    background-color: #1e88e5;
    color: white;
    padding: 10px;
    margin-top: -1px;
    border-radius: 5px;
    transition: height 0.25s linear;
    height: 50px;
}

.rsCalMonthWeekInput input {
    background-color: white;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    max-width: 150px;
    text-align: center;
}
.rsCalMonthWeekInputSensors {
    padding-top: 5px;
}


.rsCalMonthDays {
    text-align: center;

}
.rsCalMonthDay {
    width: 30px;
    height: 30px;
    margin-left: auto;
    margin-right: auto;
    line-height: 30px;
    border-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transition: background 0.25s linear;
}

.rsCalMonthDays.hasData > .rsCalMonthDay {
    color: white;
    font-weight: bold;
    background-color: rgba(30, 136, 229, 0.51);
}
.rsCalMonthDays.active > .rsCalMonthDay {
    color: white;
    font-weight: bold;
    background-color: #1e88e5 !important;
}

.rsCalMonthDays.today > .rsCalMonthDay:before {
    display: block;
    position: absolute;
    content: "";
    width: 30px;
    height: 2px;
    background-color: lightgray;
    margin-top: 32px;
    margin-left: 0px;
    border-radius: 1px;
}

/* RS Week Cal */
.rsWeekCal {

}
.rsWeekCalItem {

}
.rsWeekCalItem > ons-row {
    padding: 10px 0 10px 10px;
    text-align: center;
}
.rsWeekCalItemHeader {
    padding-bottom: 0 !important;
    text-align: center;
}
.rsWeekCalItemHeader {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
}
.rsWeekCalItemDates {
    padding-top: 0 !important;
    text-align: center;
}
.rsWeekCalItemDates > ons-col {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.rsWeekCalItem > ons-row > ons-col:first-child {
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    overflow: hidden;
}

.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStream > ons-col > ons-input > input {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStream > ons-col > ons-input > .text-input--material__label {
    width: 100%; /* Fixed left align */
    display: none;
}

.rsWeekCalItem > .rsWeekCalItemStreams {
    padding-left: 5px;
}

.rsWeekCalItem > .rsWeekCalItemStreams:nth-of-type(even) {
    background-color: rgba(211, 211, 211, 0.25);
}

.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStream > ons-col:first-child {
    line-height: 30px;
    font-weight: bold;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStreamsAssigned > ons-col {
    color: darkgray;
    text-align: center;
}
.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStreamsAssigned > ons-col:first-child {
    padding-right: 5px;
}
.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStreamsAssigned {
    padding-top: 10px;
    padding-bottom: 5px;
    font-size: 85%;
    font-style: italic;
}
.rsWeekCalItemStream {
    padding: 2px 0;
}
.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStream ons-input input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: black;
}
.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStream ons-input input::-moz-placeholder { /* Firefox 19+ */
    color: black;
}
.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStream ons-input input:-ms-input-placeholder { /* IE 10+ */
    color: black;
}
.rsWeekCalItem > .rsWeekCalItemStreams > .rsWeekCalItemStream ons-input input:-moz-placeholder { /* Firefox 18- */
    color: black;
}

.rsWeekCalItemStreamsAssigned .sensorName {
    white-space: nowrap;
    overflow: scroll;
    text-overflow: clip;
}

@media (max-width: 500px) {
    .rsWeekCalItemStreams * {font-size: 10px;}
}


/* Form Inputs */
.form {


}
.form > .form-input:nth-of-type(even) {
    background-color: rgba(211, 211, 211, 0.25);
    border-radius: 5px;
}
.form-input {
    padding: 10px 5px 10px 5px;
    min-height: 50px;
    line-height: 50px;
}
.form-input > .label {
    padding-left: 5px;
    align-items: center;
    display: flex;
}
.form-input > .label > label {
    display: block;
    line-height: 24px !important;
    padding: 0 5px 0 0;
}
.form-input > .field {
    flex: 1 0 125px; min-width: 125px;
    text-align: center;
}
.form-input > .field > ons-input,
.form-input > .field > ons-select {
    width: 100%;
}
.form-input > .field > ons-input > input,
.form-input > .field > ons-select > select,
.form-input > .field > input,
.form-input > .field > select {
    vertical-align: middle;
    font-size: 15px;
    padding-left: 5px;
    width: 100%;
}
/* Date Picker Overrides for Onsen */

/* Note to self, this is a horrid override. Currently the fix takes it's context into the tabs. The tab itself is 3 pages long and this is on the second. WILL BREAK ANY OTHER SCREENS! */
.picker--opened {
    position: fixed;
    width: 300%;
    left: 0;
    top: 0;
    height: 100%;
}
.picker--opened:after {
    width: 300% !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    transform: unset !important;
}

/* Fix Animations */
.picker__holder {
    width: 90%;
    max-width: 90vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20001;
    transition: opacity 0.25s ease-in !important;
}

.picker--opened .picker__holder {
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    z-index: 20001;
}

.picker--opened:after {
    content: "";
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    background: 0 0;
    border: none;
    line-height: normal;
    -webkit-user-select: none;
    user-select: none;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.2);
    z-index: 20000;
    opacity: 1;
    transition: all 0.2s cubic-bezier(0.1, 0.7, 0.4, 1);

    height: 100vh;
    transform: translate(0%, -50%);
}

.picker__select--month, .picker__select--year {
    padding: 0;
}

ons-dialog .picker--opened {
    position: initial;
}

#loadingDialog {
    z-index: 800000 !important; /* Top top topmost */
}

.menuIcon {
    width: 60%;
    height: auto;
}


.background-image-contain {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.float-vertical-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fa-passwd-reset, .fa-lock {
    font-size: 0.85rem;
}


.dialogMedium .dialog {
    max-width: 520px;
    width: 80vw;
}
.dialogLarge .dialog {
    max-width: 720px;
    width: 80vw;
}
