@import url("https://fonts.googleapis.com/css?family=Montserrat:200,300,400,600,700");


:root {
    --primary-font-color: #2b7dc2;
    --primary-bg-color: #082a76;
    --background-summary-color: #204f77;
    --bg-warning-light: #fdf4d9;
    --bg-primary-dark-light: #e1f2ff;
    --bg-indigo-light: #f1e8ff;
    --dark-blue: #082a76;
    --bg-danger-light: #ffdfe6;
}

body {
    font-family: 'Montserrat', 'Open Sans', 'Helvetica Neue', sans-serif;
}

main>.container {
    padding: 50px 15px 20px;
}

main>.container>.site-login {
    padding-top: 40px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer>.container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li>form>button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav>li>form>button.logout:focus {
    outline: none;
}

.left-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
}

.left-menu-inner {
    position: sticky;
    top: 48px;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.content {
    background: #fff;
    -webkit-border-radius: 2em 0 0 2em;
    -moz-border-radius: 2em 0 0 2em;
    border-radius: 2em 0 0 2em;
}

li.nav-item a.nav-link:not(.active) {
    color: var(--white);
}

a.nav-link {
    color: var(--dark-blue);
}

li.nav-item a.nav-link.active div.nav-icon {
    background-color: var(--white);
    -webkit-border-radius: 30px 0 0 30px;
    -moz-border-radius: 30px 0 0 30px;
    border-radius: 30px 0 0 30px;
    padding: 0.4em;

}

ul.nav.flex-column.end {
    bottom: 0;
    position: fixed;
    width: 9%;
}

a.nav-item.active .top-curve:before,
a.nav-item.active .bottom-curve:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg-color);
}

a.nav-item.active .top-curve,
a.nav-item.active .bottom-curve {
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    background: #ffffff;
}

a.nav-link.active .top-curve {
    height: 5px;
}

a.nav-link.active .top-curve {
    /*top: -4px;*/
}

a.nav-link.active .bottom-curve {
    /*bottom: -20px;*/
}

a.nav-link.active .top-curve:before {
    border-bottom-right-radius: 25px;
}

a.nav-link.active .bottom-curve:before {
    border-top-right-radius: 25px;
}

.nav-item form {
    align-items: center;
}


@media (min-width: 375px) {
    .mt-6 {
        margin-top: 3.5rem;
    }
}

@media (max-width: 768px) {
    .content {
        -webkit-border-radius: 2em 2em 0 0;
        -moz-border-radius: 2em 2em 0 0;
        border-radius: 2em 2em 0 0;
    }
}


nav.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 55px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-bg-color) !important;
    display: flex;
    overflow-x: auto;
}

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    min-width: 50px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    color: #444444;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.1s ease-in-out;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}

.nav__link:hover {
    background-color: #eeeeee;
    color: var(--dark-blue) !important;
    text-decoration: none;
}

.nav__link--active {
    color: var(--dark-blue);
    background: #ffffff;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}


.nav__link:not(.nav__link--active) {
    color: var(--white);
}

.nav-link {
    color: var(--dark-blue);
}

.nav__icon {
    font-size: 18px;
}

body .main-content {
    margin-bottom: calc(2em + env(safe-area-inset-bottom));
}

/** Predefined */
.bg-primary-default {
    background: var(--primary-bg-color) !important;
}

.bg-summary {
    background: var(--background-summary-color) !important;
}

.bg-warning-light {
    background: var(--bg-warning-light) !important;
}

.bg-primary-dark-light {
    background: var(--bg-primary-dark-light) !important;
}

.bg-indigo-light {
    background: var(--bg-indigo-light) !important;
}

.border-indigo {
    border-color: var(--indigo) !important;
}

.text-indigo {
    color: var(--indigo) !important;
}

.text-primary-dark {
    color: var(--primary-font-color) !important;
}

.border-primary-dark {
    border-color: var(--primary-font-color) !important;
}

.border-left-no-color {
    border-left: 1px solid;
}

.btn-primary {
    background-color: var(--background-summary-color);
    border-color: var(--background-summary-color);
}

.btn-text-small {
    font-size: 1em;
}

.bg-danger-light {
    background-color: var(--bg-danger-light);
}

/** Danger blink config  */
.icon-danger-blink {
    animation: blinking-danger 0.5s infinite;
}

@keyframes blinking-danger {
    0% {
        color: var(--red);
    }

    100% {
        color: var(--dark);
    }
}

.inner-shadow {
    box-shadow: inset 0 0 10px 0 #c1c1c1;
    -webkit-box-shadow: inset 0 0 10px 0 #c1c1c1;
}

.card-round-1_2 {
    border-radius: 1.2em !important;
}

/** Plant CSS*/
.summary-border-radius-right-rounded {
    -webkit-border-top-right-radius: 1em;
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
    -webkit-border-bottom-right-radius: 1em;
}

.border-width-thick {
    border-width: thick !important;
}

.status-grey,
.status-green,
.status-red {
    min-height: 100%;
    min-height: fill-available;
    min-height: -moz-available;
    /* WebKit-based browsers will ignore this. */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: contain;
    /* Resize the background image to cover the entire container */
    width: 45px;
}

.plant-img {
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: 100%;
    /* Resize the background image to cover the entire container */
    height: calc(100vw / 2.9);
}

@media (min-width: 1440px) {
    .plant-img {
        height: 500px !important;
    }

    table.plant-table {
        height: 500px !important;
    }
}

.plant-b-bg {
    background-image: url('/resources/assets/plants/building_b.png');

}

.plant-c-bg {
    background-image: url('/resources/assets/plants/building_c.png');

}

.plant-d-bg {
    background-image: url('/resources/assets/plants/building_d.png');

}

.plant-e-bg {
    background-image: url('/resources/assets/plants/building_e.png');
}

.status-green {
    background-image: url('/resources/assets/bulb-green.svg');

}

.status-red {
    background-image: url('/resources/assets/bulb-red.svg');
}

.status-grey {
    background-image: url('/resources/assets/bulb-grey.svg') !important;
}

table.plant-table {
    table-layout: fixed;
    min-height: 100% !important;
}

/* Plant CSS End */

/** Plant Settings */
table.plant-settings tbody tr td:nth-child(2),
table.plant-settings thead tr th:nth-child(2) {
    text-align: right;
}

table.plant-settings.table.table-hover.table-bordered th,
table.table.table-hover.table-bordered td {
    border-left: none;
    border-right: none;
}


@media (max-width: 767px) {
    .status-grey,
    .status-green,
    .status-red {
        /*min-height:20px;*/
        width: 20px;
    }

    .w-md-100 {
        width: 100% !important
    }
}