:root {
    --header: #05395b;
    --header-text: #FFFFFF;
    --footer: #343a40;
    --footer-text: #FFFFFF;
    --background: #FFFFFF;
    --primary: #002e56;
    --primary-dark: #011a30;
    --text-primary: #333333;
    --success: #339900;
    --warning: #FF9966;
    --error: #CC3300;
}

.icon-primary {
    color: #05395b;
}

.icon-warning {
    color: #eb8f34;
}

.k-button-solid-error {
    background-color: #bb2d3b;
}

.k-button-solid-success {
    background-color: #157347;
}

.k-button-solid-primary {
    background-color: #05395b;
}

html {
    font-size: 14px;
}

.k-i-hardware-button-up-icon {
    background: url(/images/svg/up.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.k-i-hardware-button-down-icon {
    background: url(/images/svg/down.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    font-size: 40px;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    #timeZoneSelector {
        width: 250px;
        margin-left: 5px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    color: var(--text-primary);
    background: url(/images/background.png) no-repeat right top scroll;
    background-attachment: fixed;
    background-size: cover;
}

header {
}

    header nav {
        background-color: var(--header);
        color: var(--header-text);
    }

        header nav a.nav-link,
        header nav a.nav-link:link,
        header nav a.nav-link:visited,
        header nav a.nav-link:hover,
        header nav a.nav-link:active {
            color: var(--text-primary-header);
        }

    header .logo_container {
        position: absolute;
        z-index: 999;
    }

    header span.logo_helper {
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        width: 0;
    }

    header #logo {
        /* -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    margin-bottom: 0;
    padding-top: 25px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;*/
        max-height: 50px;
        /* display: inline-block;
    float: none;*/
        vertical-align: middle;
        /* -webkit-transform: translateZ(0);
    box-shadow: 0px 0px 6px -1px #000;
    border-radius: 0px 0px 20px 20px;*/
        background-color: var(--background);
    }

@media (min-width: 768px) {
    header .navbar-nav.navbar-menu {
        margin-left: 15px;
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-primary-header);
}

footer {
    background-color: var(--footer);
    color: var(--footer-text);
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 41px;
    line-height: 40px;
    z-index: 1000;
    font-size: 11px;
    letter-spacing: 1.2px;
}

    footer .container, footer .container a {
        color: var(--footer-text);
    }

        footer .container img {
            height: 25px;
            margin-top: -12px;
        }

input[type=text]:focus, textarea:focus, button:focus, select:focus {
    box-shadow: 0 0 5px var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: var(--primary-dark) !important;
        border-color: var(--primary) !important;
    }

.dropdown-menu.account {
    white-space: nowrap;
}

.er-button,
.er-button:link,
.er-button:visited {
    border-color: var(--primary) !important;
    background-color: var(--primary) !important;
}

    .er-button:hover,
    .er-button:focus,
    .er-button:active {
        color: #FFFFFF !important;
        border-color: var(--primary-dark) !important;
        background-color: var(--primary-dark) !important;
    }


dl {
    display: grid;
    grid-template-columns: 50% 50%;
}

dl.valves-list dd{
    float:right;
    text-align:center;
}
    dl.valves-list dt{
        padding:5px;
        display:flex;
        align-items:center;
    }

    dl.valves-list .InBetween {
        background: repeating-linear-gradient( 45deg, #002e56, #002e56 10px, #465298 10px, #465298 20px );
        color: #fff;
        padding: 5px;
    }

    dl.valves-list .Closed {
        background-color: #002e56;
        color:#ffffff;
        padding:5px;
    }

    dl.valves-list .Open {
        background-color: #ffffff;
        border: 1px solid #002e56;
        padding: 5px;
    }

.icon-margin-right svg {
    margin-right: 15px;
}

dl.actions-list dt {
    padding-top: 5px;
    padding-bottom: 5px;
}

.float-right {
    float: right;
}

.w-50-p{
    width:50%;
}

.action-card .btn.w-50-p {
    width: 50%;
}


.icon-margin-right svg {
    margin-right: 15px;
}

dl.actions-list dt {
    padding-top: 5px;
    padding-bottom: 5px;
}

footer {
    height: auto;
}

    footer .container {
        white-space: unset;
    }

.w-50-p {
    width: 50%;
}

.action-card .btn.w-50-p {
    width: 50%;
}

.fab-shadow {
    box-shadow: 0 3px 5px -1px rgb(0 0 0 / 20%), 0 6px 10px rgb(0 0 0 / 14%), 0 1px 18px rgb(0 0 0 / 12%);
}

.circle-60 {
    border: 0;
    width: 60px;
    height: 60px;
    padding: 5px;
    border-radius: 99999px;
}

.text-bold {
    font-weight: bold;
}

.icon-fs-70 span {
    font-size: 70px;
}

.icon-fs-40 span {
    font-size: 40px;
}

.outgoing-color {
    color: #339900
}

.incoming-color {
    color: #0c62ad
}

#speedUpDeviceButton .k-i-hardware-button-up-icon {
    font-size: 40px;
}

#speedDownDeviceButton .k-i-hardware-button-down-icon {
    font-size: 40px;
}

.grid2x2 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

    .grid2x2 > div {
        display: flex;
        flex-basis: 50%;
        justify-content: center;
        flex-direction: column;
        padding: 5px;
    }

        .grid2x2 > div > div {
            display: flex;
            justify-content: center;
            flex-direction: row;
        }

.sensorgrid {
    font-size: 30px;
}

    .sensorgrid svg {
        font-size: 45px;
    }

    .sensorgrid .value {
        align-items: start;
    }

.input-group-clear {
    background: transparent;
    border: none;
}

.circle-link {
    display: inline-block;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 33px;
    background-color: #05395b;
    font-size: 17px;
}

    .circle-link:hover {
        text-decoration: none;
        background-color: #194968;
    }

.button--loading, .button--loading:focus {
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
}

    .button--loading.disabled {
        animation: none;
    }

    .button--loading .k-button-text {
        content: "...";
    }

.disabled {
    background-color: grey;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.ventile dt {
    overflow: visible;
}

.min-width-225px {
    min-width: 225px;
}

.title-icon-button {
    color: #000000;
    background-color: #ffffff;
    border: none;
    font-size: 2.5rem;
}

legend {
    background-color: #05395b;
    color: #fff;
    padding: 3px 6px;
}

.fieldset {
    border: 1px solid;
    border-radius: 0.375rem;
    border-color: #05395b;
    padding: 1em;
    margin-bottom: 0.7rem;
    height: 100%;
}

    .fieldset > legend {
        width: auto;
        font-size: 1em;
        font-style: italic;
        float: none;
        margin-left: 5px;
        margin-top: -1.8rem;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .fieldset > h1 > span {
        float: left;
    }

.hidden {
    display: none;
}

.chartContainer {
    position: relative;
}

#chartStatus {
    display: inline-block;
}

#chartOverlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: .5;
    background-color: #e3edff;
    text-align: center;
}

    #chartOverlay div {
        position: relative;
        font-size: 34px;
        margin-top: -17px;
        top: 50%;
    }


.test-connection {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#test-connection-spinner {
    display: none;
}

#test-connection-successIcon, #test-connection-errorIcon {
    display: none;
    font-size: 24px;
}

@media (max-width: 576px) {
    .form-floating input {
        height: 3.5rem; /* Make input taller */
        padding-top: 1.5rem; /* More space for label */
    }

    .form-floating label {
        padding-left: 0.75rem;
    }
}