/* NavBar customization */

body {
    background-color: white;
    padding-top: 70px;
}

/* Modal customization */

.modal-dialog .modal-header {
    background-color: #eee;
    display: flex;
    align-items: center;
}

.modal-dialog .modal-header .modal-title {
    font-size: 18px;
    line-height: 1.2;
}

/* Button customization */

.btn-link {
    color: #2196f3;
    font-weight: bold;
}

.btn-link.btn-link-deemphasized {
    color: #666;
}

.btn-link.btn-link-deemphasized[disabled] {
    color: #999;
}

/* Speed up the default Navbar dropdown menu animation */
.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    -webkit-transition: height .10s ease;
    -o-transition: height .10s ease;
    transition: height .10s ease;
}

.navbar {
    font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
    min-height: 50px;
    margin-bottom: 20px;
}

.navbar-inverse {
    background-color: #343434;
}

.navbar-btn:focus {
    outline: none !important;
}

.nav .nav-divider {
    margin: 0px;
    background-color: #bbb !important;
}

.navbar-inverse .navbar-nav > li > a {
    color: #999;
}

.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
    border-color: inherit;
    background-color: #ccc;
}

.navbar-header {
    padding-left: 10px;
    padding-right: 10px;
}

a.enabled-nav-link {
    color: #343434 !important;
    background-color: #ccc;
}

.navbar-nav a.disabled {
    cursor: default;
}

.navbar-btn.pull-left {
    visibility: visible;
}

.navbar-nav {
    font-size: 16px;
    margin-right: 0px;
}

/* NavBar active selection */
.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
    color: #343434 !important;
    background-color: #bbb;
}

/* NavBar colors on tap enabled links */
.navbar-inverse .navbar-nav > li > a.enabled-nav-link:hover, .navbar-inverse .navbar-nav > li > a.enabled-nav-link:focus {
    color: #343434 !important;
    background-color: #bbb;
}

/* NavBar colors on tap disabled links */
.navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus {
    color: #999;
}

/* Navbar title is centered on mobile */
.navbar-brand {
    color: white !important;
    height: 50px;
    padding: 15px 15px;
    transform: translateX(-50%);
    left: 50%;
    position: absolute;
    font-size: 20px;
    height: inherit;
    line-height: 20px;
}

/* Show the Save button associated with the collapsed navbar */
.mobile-save-btn {
    display: initial;
}

/* Hide the Save button associated with the expanded navbar */
.desktop-save-btn {
    display: none;
}

/* Size the mobile Save button */
.navbar .save-form {
    padding: 4px 16px;
    margin: 10px 0px;
}

.navbar .hamburger-btn {
    background-color: #343434 !important;
    border-color: #555 !important;
    color: #9d9d9d !important;
    font-size: 16px !important;
    margin: 0;
    padding: 11px 0 10px 0;
    box-shadow: none;
}
.navbar .hamburger-btn .glyphicon {
    top: 2px;
    margin-right: 3px;
}

.page-content {
    padding-bottom: 36px;
}

.page-title {
    font-size: 30px;
    line-height: 1.2em;
    margin: 5px 0px 30px 0;
}

.page-subtitle {
    font-size: 22px;
    margin-bottom: 5px;
}

.page-subtitle-note {
    font-size: 12px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.notification-settings-handler {
    background-color: #f5f5f5;
    display: inline-block;
    padding: 10px 40px;
    text-align: center;
}

.notification-settings-handler-name {
    font-weight: bold;
    font-size: 14px;
}

.notification-settings-handler-numbers {
    font-size: 12px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.panel-heading.field .form-group, .panel-heading.field .checkbox {
    margin: 0;
}

.nav-back {
    border: hidden;
}

.message-container {
    display: none;
    position: fixed;
    width: 100%;
    bottom: 0%;
    z-index: 999;
}

.container.message-container {
    max-width: none;
}

.alert {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    line-height: 1.3;
}

.alert-dismissible .close {
    top: -4px;
}

.mobile-dashboard.alert {
    box-shadow: none;
}

.alert-info {
    background-color: #0c7cd5;
}
.alert-info-light {
    background-color:#d9edf7;
    border-color:#bce8f1;
    color:#3a87ad;
    font-size: 14px;
    line-height: 1.5;
}

.alert-warning {
    background: #fff3a1;
    color: #444;
}

.container {
    max-width: 800px;
}

/* fieldset */

fieldset {
    margin: 32px 0;
}

fieldset legend {
    border-bottom: none;
    margin-bottom: 8px;
}

fieldset legend ~ p {
    margin-top: -8px;
}

/* Material design floating label BEGIN */
/* NOTE: IE11 won't show the placeholder label. No idea why. */

.form-group {
    display: flex;
    flex-wrap: wrap;
}

.control-label {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.4;
    pointer-events: none;
    position: absolute;
    transform: translate3d(0, 22px, 0) scale(1);
    transform-origin: left top;
    transition: 400ms;
    color: #005faa;
}

.form-group.required .control-label::after {
    content: "\00A0*";
}

.form-group.focused .control-label {
    opacity: 1;
    transform: scale(0.75);
}

.form-control {
    margin-top: 18px;
}

.form-control::-webkit-input-placeholder {
    color: transparent;
    transition: 400ms;
}

.form-control::-moz-placeholder {
    color: transparent;
    transition: 400ms;
}

.form-control:-ms-input-placeholder {
    color: transparent;
    transition: 400ms;
}

.form-control:focus::-webkit-input-placeholder {
    transition: none;
}

.form-control:focus::-moz-placeholder {
    transition: none;
}

.form-control:focus:-ms-input-placeholder {
    transition: none;
}

.form-group.focused .form-control::-webkit-input-placeholder {
    color: #bbb;
}

.form-group.focused .form-control::-moz-placeholder {
    color: #bbb;
}

.form-group.focused .form-control:-ms-input-placeholder {
    color: #bbb !important;
}

/* Material design floating label END */

.notification_settings_note {
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Hack to fix lack of space between checkbox and "Enabled" label on iPhone */
.recipient-form input[type="checkbox"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
    margin-right: 5px;
}

/* Mobile phone CSS */

@media only screen and (max-width: 1200px) {

    /* Force the NavBar to remain collapsed */

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.in {
        display: block !important;
    }

    .navbar-header .collapse, .navbar-toggle {
        display: block !important;
    }

    .navbar-header {
        float: none;
    }
}

/* Tablet and desktop CSS */

@media only screen and (min-width: 1200px) {

    /* More top padding due to desktop layout and increased navbar height */
    body {
        padding-top: 100px;
    }

    /* The AceWatchDog title is on the left on the desktop */
    .navbar-brand {
        transform: inherit;
        left: inherit;
        position: inherit;
        font-size: 24px;
        font-weight: bold;
        line-height: 24px;
        padding: 18px 40px 18px 5px;
    }

    /* Don't show the hamburger menu with the expanded desktop navbar */
    .navbar-btn.pull-left {
        visibility: hidden;
    }

    /* Style the desktop navbar differently than the mobile version */

    .navbar-nav {
        font-size: 14px;
        margin-right: 0px;
    }

    .navbar-inverse .navbar-nav > li > a {
        background-color: #343434;
        color: #999 !important;
    }

    .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
        background-color: #343434;
        color: #999;
        border-color: inherit;
    }

    /* Show the Save button associated with the expanded navbar */
    .desktop-save-btn {
        display: inherit;
    }

    /* Hide the Save button associated with the collapsed navbar */
    .mobile-save-btn {
        display: none;
    }

    /* Adjust the Save button in the expanded navbar to fit the increased height of 64px */
    .navbar .save-form {
        padding: 6px 28px;
        margin: 13.5px 0px;
    }

    /* NavBar active selection */
    .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
        background-color: #343434;
        color: #fff !important;
        font-weight: bold;
    }

    /* NavBar colors on hover */
    .navbar-inverse .navbar-nav > li > a.enabled-nav-link:hover, .navbar-inverse .navbar-nav > li > a.enabled-nav-link:focus {
        background-color: #444;
        color: #fff !important;
    }

    /* NavBar colors on tap disabled links */
    .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus {
        color: #999;
    }
}

/* Unit Configuration page styles */

.notifs-paused-until-wrapper {
    display: flex;
    align-items: center;
}
.notifs-no-mb {
    margin-bottom: 0;
}
.notifs-currently-enabled-wrapper {
    align-items: center;
}
.notifs-currently-enabled {
    flex: 0 0 auto;
}
.notifs-paused-until-select {
    display: none;
    flex: 1 0 auto;
    max-width: 144px;
    margin-left: 32px;
    margin-right: 64px;
}
.notifs-show-paused-until-select {
    display: block;
}
.notifs-paused-until-state {
    margin-left: 64px;
    flex: 0 1 auto;
}


.awd-unit-dropdown {
    max-width: 200px;
}

.awd-unit-checkbox {
    height: 30px;
}

.awd-unit-warning-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.awd-unit-warning-checkbox {
    max-width: 120px;
    flex: 1;
}

.awd-unit-warning-value {
    margin-left: 20px;
    max-width: 140px;
    flex: 1;
}

.awd-unit-warning-note {
    margin-left: 20px;
    max-width: 100px;
    flex: 1;
}

.awd-unit-alarm-settings-banner {
    background-color: whitesmoke;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    color: #aaa;
    display: inline-block;
}

/* Handler Profile page styles */

.input-group-container {
    display: flex;
}

.input-group-field {
    flex: 1;
}

.input-group-button {
    margin: 20px 0px 0px 10px;
}

/* Forms */

.submit-row {
    margin-top: 20px;
}

input[type=submit] {
    min-width: 120px;
}

/* Login page */

.login-forgot-row {
    margin-top: 20px;
    text-align: right;
}

/* Configuration Alert */

.config-alert
{
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 30px;
}
.config-alert button.close
{
    color: #888;
    top: -8px;
}
.config-alert .title
{
    position: relative;
    top: -2px;
    font-weight: bold;
    text-decoration: none;
}
.config-alert .title > span
{
    letter-spacing: 2px;
}
.config-alert .content
{
    line-height: 20px;
    font-size: 0.9em;
    font-weight: normal;
    text-decoration: none;
}

/* Configuration Steps */

.config-checklist-page .page-title
{
    margin: 5px 0 10px 0;
}
.config-checklist-page .sub-title
{
    margin-bottom: 20px;
    font-size: 1.1em;
}
.config-checklist-page > .complete
{
    font-size: 1.1em;
    color: rgb(160, 160, 160);
}
.config-checklist
{
    list-style-type: none;
    padding: 0 4px;
    margin: 0 auto;
}
.config-checklist li
{
    font-size: 1.2em;
    position: relative;
}
.config-checklist li a
{
    display: block;
    position: relative;
    height: 100%;
    width: 100%;
    color: #555;
    padding: 10px 0;
}
.config-checklist li a:before
{
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}
.config-checklist li a > span
{
    display: inline-block;
    vertical-align: middle;
}
.config-checklist li .checkmark
{
    font-size: 2.5em;
    color: #ddd;
    margin-right: 25px;
    top: -2px;
}
.config-checklist li .checkmark.complete
{
    color: rgb(35, 182, 71);
}
.config-checklist li .title
{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    bottom: -2px;
}
.config-checklist li .arrow
{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-45%);
    font-size: 1.5em;
    color: #ddd;
}

/* Config Step Info */

.config-step-info
{
    background: #fff3a1;
    color: #444;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    font-family: Georgia; 
    font-size: 1.5rem;
    margin: 0px 15px 50px 15px;
}
.config-step-info .title
{
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}
.config-step-info .back-link
{
    font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
    display: block;
    text-align: left;
    font-weight: bold;
    box-shadow: none;
    padding: 0;
}
.config-step-info .back-link > span
{
    margin-right: 5px;
}
.config-step-info .checkbox
{
    margin-top: 3px;
    margin-bottom: 25px;
    font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
}
.config-step-info .checkbox label
{
    display: flex;
    align-items: center;
}
.config-step-info .checkbox label input
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    margin-bottom: 0;
}
.config-step-info .checkbox label input[type="checkbox"]:before
{
    top: 0px;
    left: 10px;
    width: 8px;
    height: 20px;
}
.config-step-info .checkbox label input:after
{
    width: 28px;
    height: 28px;
}
.config-step-info .checkbox label span
{
    display: inline-block;
    margin-left: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 19px;
}
.config-step-info .section-title
{
    font-size: 1.1em;
    font-weight: bold;
    margin: 5px 0;
}

.config-page .user-guide-link
{
    display: block;
    width: 100%;
    margin: 30px 0;
}