.emwcCenteredText {
    text-align: center;
}

.emwcCenterWrapper {
    max-width: 300px;
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ui-slider-input {
    display: none;
}

.ui-slider-track {
    margin-left: 2%;
    width: 96%;
    margin-right: 2%;
}

.ui-panel {
    background: #222222;
    opacity:0.9;
}

.emwc-li-btn {
    text-shadow: none;
    font-weight: normal;
    background-image: none;
    text-shadow: none;
    z-index: 1;
}

.ui-header {
    font-weight: normal;
    line-height: 0;
}

.ui-content {
    position: relative;
}

.ui-page-active {
    padding-top: 48px;
}

.ui-popup .ui-title, .ui-title {
    font-weight: normal;
    line-height: 22px;
}

.ui-listview-filter {
    background: #ffffff;
}

.ui-listview-filter.ui-bar-c {
    border-bottom: 1px solid #000000;
}

.emwc-multi-list-content {
    padding-top: 0;
}

.ui-collapsible-set {
    margin: 0;
}

.ui-collapsible-heading-toggle {
    background: #7f7f7f;
    font-weight: normal;
    text-shadow: none;
}

.ui-collapsible-heading-toggle.ui-btn {
    color: #ffffff;
}


/*
The following classes are set to force jqm to use the proper color icon
for some reason, I assume it is because we are using a custom theme, jqm css
displays different color icons for the desktop versus running on a mobile device.
These rules fix that
*/

.ui-icon-edit,
.ui-icon-arrow-r,
.ui-icon-check,
.ui-icon-delete,
.ui-icon-searchfield:after {
    background-image: url(../jquery.mobile-1.3.2/themes/images/icons-18-black.png);
}

.ui-collapsible-heading,
.ui-collapsible-heading .ui-icon-arrow-r,
.ui-collapsible-heading .ui-icon-arrow-d
{
    background-image: url(../jquery.mobile-1.3.2/themes/images/icons-18-white.png);
}

.ui-icon-shadow {
    -webkit-box-shadow: none;
            box-shadow: none;
}

.ui-input-text.ui-body-c {
    background-color: #ffffff;
}

.ui-listview .ui-li-icon {
    top: 0;
}

.ui-li-thumb {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}

.emwc_popup {
    width:290px;
}

.listTagContainer {
    position: absolute;
    right: 30px;
    top: 50%;
    margin-top: -12px;
}

.listPage {
    margin: 0;
}

.listPage .ui-li-static.ui-li {
    padding: 0;
}

.listPage .ui-collapsible-content,
.listPage .ui-collapsible-content > .ui-listview {
    padding: 0;
    margin: 0;
}

.listPage .ui-collapsible-heading {
    margin: 0;
}

.listPage .ui-content {
    padding-left: 0;
    padding-right: 0;
}

.listPage .ui-content .ui-listview {
    margin: 0;
}

.listPage .ui-input-search {
    margin: 5px;
}

.listPage .emwc-li-btn.error {
    padding: 11px 15px;
    font-weight: bold;
}

.scrollContainer, .scrollContainer.ui-content {
    overflow: auto;
}

.glassPane {
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
}

.layoutItem .thumbnail {
    top: 0;
}

.layoutItem .text {
    line-height: 61px;
    padding-left: 80px;
}

.indicatorList .indicator {
    position: absolute;
    left: 10px;
}

.indicatorList li.ui-li a.ui-link-inherit {
    padding-left: 40px;
}

/*
 * Button State Styling
 */
.button.selected .icon {
    border: 1px solid white;
    border-radius: 5px;
    margin: -1px;
}

.ui-listview li.selected,
a.monitorSelect.selected,
.ui-controlgroup a.ui-shadow.monitorSelect.selected {
    -webkit-box-shadow: inset 0 0 3px #7f7f7f,0 0 9px #7f7f7f;
            box-shadow: inset 0 0 3px #7f7f7f,0 0 9px #7f7f7f;
}

.ui-focus, .ui-btn:focus {
    /* Override the jQM default styling for focus */
    -webkit-box-shadow: none;
            box-shadow: none;
}

/*
Blue - # 007ac3
Green - # 45af4d
Orange - # f89b42
Red - # bd2030
Purple - # 3e4898
*/

.group .header {
    line-height: 26px;
}

.group .header span {
    display: inline-block;
    vertical-align: middle;
    height: 24px;
}

.group .header .groupName {
    margin-left: 8px;
}

.showAllCameras {
    width: 44px;
    text-align: center;
}

.server .header {
    line-height: 24px;
}

.server .header span {
    vertical-align: middle;
}

#videoPushTargetListPage .footer {
    background: white;
}

.videoPushTargetItem {
    clear: both;
}

.videoPushTargetItem .listCheckbox {
    float: left;
    width: 26px;
    margin: 0 8px 0 -8px;
    padding: 8px 0;
}

.videoPushTargetItem .name {
    font-weight: bold;
    font-family: Helvetica,Arial,sans-serif;
}

.videoPushTargetItem .webservice, .videoPushTargetItem .status {
    font-size: 12px;
    height: 12px;
    font-family: Helvetica,Arial,sans-serif;
}

/** Remove the default styling of ui-btn-active **/
#videoPushTargetListPage .sendButton.ui-btn-active {
    background: inherit;
    color: black;
    text-shadow: inherit;
}

#videoPushTargetListPage .sendButton.ui-btn-active:hover {
    background: #dddddd;
}

.settingsGroup {
    margin-top: 22px;
}

.errorText {
    color: red;
}

.successText {
    color: green;
}

.sendFullScreen {
    line-height: 48px;
    width: 32px;
    text-align: center;
}

.triggerStatus {
    padding: 0 0.5em;
    color: black;
    text-shadow: 0 0;
    font-weight: bold;
    background-color: #00f900;
}

.triggerStatus.alarm {
    background-color: #ff2600;
}

.slider {
    margin: 12px;

    height: 20px;

    /* allow panning on this element in IE */
    -ms-touch-action: none;
}

.slider.gray {
    /* give the slider "track" a gray background */
    background: #cccccc;
}

/* this blueSquare class is based off of the dragdealer red-bar css class*/
.dragdealer .blueSquare {
    width: 32px;
    height: 32px;

    top: -6px;

    background: #007ac3;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 32px;
    text-align: center;

    border-radius: 4px;
}

.thumbnail.search {
    margin-left: 40px;
}

.hammerElement {
    -ms-touch-action: none;
}

.eventMonitoringProfileItem .name {
    font-weight: bold;
    font-family: Helvetica,Arial,sans-serif;
}

.eventMonitoringProfileItem .webservice .description .type {
    font-size: 12px;
    height: 12px;
    font-family: Helvetica,Arial,sans-serif;
}

.eventMonitoringProfileItem {
    height: 80px;
}

.eventMonitoringProfileItem.fourLines {
    height: 92px;
}

.eventMonitoringProfileItem .thumbnail {
    top: 0;
}

.eventMonitoringProfileItem.fourLines .thumbnail {
    top: 4px;
}

.eventMonitoringProfileItem .itemContent {
    padding-left: 80px;
}

.eventMonitoringProfileItem .line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.centeredFooter {
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
}

.cardList {
    padding: 8px;
}

.eventList {
    padding-bottom: 32px;
}

.cardListItem {
    background-color: white;

    margin-bottom: 16px;

    color: #212121;

    cursor: pointer;

    border-radius: 2px;
}

.eventMonitoringEventItem.cardListItem {
    cursor: default;
}

.eventMonitoringEventItem.cardListItem .cardListItemHeader {
    cursor: pointer;
}

.eventMonitoringEventItem.cardListItem .cardListItemHeader .material.dropButton {
    margin: 0;
}

.cardListItem .materialButtonBar {
    border-radius: 0 0 2px 2px;
}

.cardListItemContent {
    padding: 24px 16px 16px;
}

.eventMonitoringEventItem .cardListItemContent .cardListItemBody .line {
    padding: 0;
}

/* https://news.layervault.com/stories/42319-calculating-shadow-values-for-material-design */
.materialShadow {
    -webkit-box-shadow: 0 2px 10px 0 rgba(0,0,0,.16), 0 2px 5px 0 rgba(0,0,0,.26);
            box-shadow: 0 2px 10px 0 rgba(0,0,0,.16), 0 2px 5px 0 rgba(0,0,0,.26);
}

.materialShadow.hover {
    -webkit-box-shadow: 0 6px 20px 0 rgba(0,0,0,.19), 0 8px 17px 0 rgba(0,0,0,.2);
            box-shadow: 0 6px 20px 0 rgba(0,0,0,.19), 0 8px 17px 0 rgba(0,0,0,.2);
}

.materialShadow.pressed {
    -webkit-box-shadow: 0 17px 50px 0 rgba(0,0,0,.19), 0 12px 15px 0 rgba(0,0,0,.24);
            box-shadow: 0 17px 50px 0 rgba(0,0,0,.19), 0 12px 15px 0 rgba(0,0,0,.24);
}

.materialCardTitle {
    font-size: 24px;
}

.materialButtonBar {
    width: 100%;
    height: 48px;
    background-color: white;
}

.footer.materialButtonBar {
    /*
    use a box shadow here to make the button bar appear as though it is a higher z index
    we do this to ensure that the button bar appears slightly above any other content.
    */
    -webkit-box-shadow: 0 17px 50px 0 rgba(0,0,0,.19), 0 12px 15px 0 rgba(0,0,0,.24);
            box-shadow: 0 17px 50px 0 rgba(0,0,0,.19), 0 12px 15px 0 rgba(0,0,0,.24);
}

/**
 NOTE: This class has been deprecated.  Please use the .material-button class in emrc-styles.css instead.
 */
.materialButton {
    cursor: pointer;
    min-width: 64px;
    font-size: 16px;
    line-height: 48px;
    padding: 10px 8px 10px 8px;
    margin: 5px 4px 5px 4px;
    color: #0078c6;
    text-transform: uppercase;
}

.materialButton.hover {
    background-color: #EEEEEE;
}

.materialButton.pressed {
    background-color: #BDBDBD;
}

.materialButton.firstLeft {
    margin-left: 8px;
}

.materialButton.lastRight {
    margin-right: 8px;
}

.eventMonitoringEventItem .line {
    padding-top: 8px;
}

.eventMonitoringEventItem .line .noTopPadding {
    padding-top: 0;
}

.materialCardSubHeader {
    padding-bottom: 8px;
}

.materialSupportingText {
    color: #898989;
}

/*
The segmented control is styled similar to an iOS UISegmentedControl.
*/
.segmentedControl {
    height: 32px;
    /* use a 7 pixel margin because the border takes up 1 pixel */
    margin: 7px;
}

.segmentedControlButton {
    border: 1px solid #0078c6;
    color: #0078c6;
    background: none;
    line-height: 32px;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    width: 50%;
    font-size: 14px;
}

.segmentedControlButton.selected {
    color: #FFFFFF;
    background-color: #0078c6;
}

.segmentedControlButton.hover {
    background-color: #D6D6D6;
}

.segmentedControlButton.pressed {
    background-color: #BEBEBE;
}

.segmentedControlButton.selected.hover {
    background-color: #0084da;
}

.segmentedControlButton.selected.pressed {
    background-color: #0090ee;
}

.segmentedControlButton.leftAlign {
    float: left;
}

.segmentedControlButton.rightAlign {
    margin-left: 50%;
}

.materialButtonBar .materialButton.fl {
    line-height: 20px;
    width: 80px;
}

.eventMonitoringEventItem .line.materialCardTitle {
    padding-top: 0;
}

.eventMonitoringEventItem .tapMessage {
    margin-top: 8px;
}

.eventMonitoringEventItem .sourceThumbnail {
    margin-left: 4px;
    margin-right: 4px;
}

.settingsSection {
    margin: 8px 0 8px 0;
}

.subsection {
    border: 1px solid #999999;
    background-color: white;
    padding: 20px;
}

.subsection .header {
    color: #898989;
    height: 48px;
    width: 100%;
    line-height: 48px;
    font-size: 14px;
}

.subsection .button {
    height: 48px;
    width: 100%;
    line-height: 48px;
    cursor: pointer;
    font-size: 16px;
}

.subsection .button .label {
    margin-left: 4px;
    font-size: 16px;
}

.material.button.hover, li.material:not(.disabled).hover {
    background-color: #f0f0f0;
}

.material.button.pressed, li.material:not(.disabled).pressed {
    background-color: #eeeeee;
}

.disabled .materialSupportingText {
    color: #dddddd;
}

.greyLine {
    background-color: #dddddd;
    height: 1px;
}

.materialBlue {
    color: #0078c6;
}

.headsUpNotification {
    position: fixed;
    z-index: 1000;
    margin: 8px;
    padding: 16px 16px 0 16px;
    top: 0;
    left: 0;
    background-color: white;
    cursor: pointer;
    border-radius: 2px;
}

.headsUpNotification .title {
    color: #212121;
    font-size: 16px;
    padding-bottom: 4px;
}

.headsUpNotification .message {
    color: #898989;
    font-size: 14px;
}

li.multiLineListItem .ui-btn-inner .ui-btn-text a {
    white-space: normal;
}

/**
 * IE10+ override to hide the "X" button auto-added to form elements.
 */
input::-ms-clear {
  width : 0;
  height: 0;
}

/*
 * Override the base style of fieldset legends on non-small screens.
 */
@media (min-width: 28em) {
    .ui-field-contain .ui-controlgroup-label {
        display: block;
    }
}
