﻿/*Basic styling*/
.body-container {
    max-width: 1024px;
    margin: auto;
}

.flex-page {
    height: 100%;
}

.flex-page-container {
    display: flex;
    flex-flow: column;
    height: 100%;
    overflow: auto;
}
.flex-page-container > .flex-page-header {
    z-index: 1000;/* Match jQuery Mobile header/footer z-depth */
    position: sticky;
    top: 0;
}
.flex-page-container > .flex-page-body {
    flex: 1;
}
.flex-page-container > .flex-page-footer {
    z-index: 1000; /* Match jQuery Mobile header/footer z-depth */
    position: sticky;
    bottom: 0;
}

.flex-page-body .container {
    margin-left: auto;
    margin-right: auto;
    padding-right: 2em;
    padding-left: 2em;
    max-width: 1024px;
}

/* pulls from Bootstrap */
.pull-left {
    float: left;
}
.pull-right {
    float: right;
}

/* visibility from Bootstrap */
.hidden {
    display: none !important;
}

/* Fix for jQM button styling in the header */
.flex-page-header > .ui-btn-inline {
    margin: 0;
}

.center-contents {
    text-align: center;
}

button.form-submit {
    max-width: 5em;
    display: inline-block;
    margin: auto;
}

.error-message-text {
    color: red;
}

.list-item-right {
    position: absolute;
    font-size: 80%;
    text-align: right;
    padding: .25em .5em;
    line-height: 1em;
    min-height: 1em;
    right: 0.8em;
    top: 50%;
    margin-top: -1.8em;/*Used to offset the approximate height of the element*/
    width: 5em;
}

.list-item-right input {
    text-align: right;
}

/*UI blocker*/
.ui-loader-background {
    width: 100%;
    height: 100%;
    top: 0;
    padding: 0;
    margin: 0;
    background: #B3B3B3;/*Fallback*/
    background: rgba(0, 0, 0, 0.3);
    display: none;
    position: fixed;
    z-index: 99999;
}

.ui-loading .ui-loader-background {
    display: block;
}

/*JQM styling extensions*/
.controlgroup-textinput {
    padding: .22em 0;
}
