﻿
@font-face {
    font-family: def;
    src: url(/font/Catamaran/Catamaran-Regular.ttf);
}

html {
    font-family: def;
}

i-router {
    height: 100vh;
    flex: 1;
}

i-app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

i-router {
    padding: 10px 35px;
    height: calc(100vh - 150px);
    overflow: auto;
}


.float {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #00000066;
    opacity: 0;
    transition: all ease .2s;
    visibility: hidden;
    z-index: 1001;
    transition: all ease .2s;
}

.float-visible {
    opacity: 1;
    transition: all ease .2s;
    visibility: visible;
}

.float > i-target {
    position: fixed;
    left: 50%;
    max-width: 80vw;
    top: 50%;
    background-color: white;
    padding: 30px;
    box-shadow: 2px 2px 7px 1px #727272;
    border-radius: 10px;
    transform: translateY(-50%) translateX(-50%);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    min-width: 60vw;
}


.float .route {
    position: unset;
}

    .float .route:not([selected]) {
        display: none !important;
    }

/* row */
.row label {
    display: flex;
    align-items: center;
}

.row-wrap {
    display: flex;
    flex-wrap: wrap;
}

    .row-wrap > .row {
        flex-grow: 1;
    }

        .row-wrap > .row > div {
            flex-grow: 1;
            align-items: center;
        }

            .row-wrap > .row > div > * {
                flex: 1;
            }

.row-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row > div:last-child {
    border-left: 0;
}

.row, .row-slim {
    border: 1px solid #ddd;
    display: flex;
}


    .row-slim > div, .row-slim > div {
        border-left: 1px solid #ddd;
        display: flex;
        align-items: center;
    }

    .row > div, .row > span {
        border-left: 1px solid #ddd;
        padding: 5px;
        display: flex;
        align-items: center;
    }

    .row > .column, .column > .row {
        padding: 0;
    }

    .row > span, .column > span {
        font-weight: bold;
    }

/* column */
.column > div, .column > span {
    border-bottom: 1px solid #ddd;
    padding: 5px;
    display: flex;
}

.column {
    display: flex;
    flex-direction: column;
}

    .column > div:last-child {
        border-bottom: 0;
        flex: 1;
    }


.table-form {
    width: 100%;
    border-collapse: collapse;
}

    .table-form > tbody > tr > td:nth-child(1) {
        /*background-color: #4ebeec; */
        /* color: white; */
        font-weight: bold;
        padding: 8px;
        width: 120px;
    }


/* table-list */
.table-list {
    width: 100%;
    border-collapse: collapse;
}

    .table-list td, .table-form > tbody > tr > td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    .table-list tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .table-list tbody > tr:hover {
        background-color: #ddd;
    }

    .table-list thead {
        font-weight: bold;
        padding-top: 12px;
        padding-bottom: 12px;
        background-color: #4ebeec;
        color: white;
    }

    .table-list td > img {
        max-height: 36px;
        max-width: 36px;
    }

/* table-print */

.table-print {
    border-collapse: collapse;
    width: 100%;
}

    .table-print > thead {
        font-weight: bold;
        text-align: center;
        background: #e2e2e2;
    }

    .table-print > tbody > tr > td:first-child {
        font-weight: bold;
    }

    .table-print > tfoot {
        background: #e2e2e2;
    }

    .table-print td {
        padding: 2px;
        border: 1px solid #ddd;
    }

/* actions */

.actions {
    padding: 7px 8px;
    background-color: #f1f1f1;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    gap: 3px;
}

.footer {
    height: 42px;
    text-align: center;
    background: linear-gradient(0deg, #c3c3c3, #f7f7f7);
    position: absolute;
    width: 100%;
    bottom: 0;
}

.loading-panel {
    position: absolute;
    z-index: 1001;
    width: 100%;
    height: 100%;
    background: #545454;
    align-items: center;
    display: flex;
    justify-content: center;
    font-size: 12px;
    box-shadow: inset 0px 0px 9vh 5vh #3e3e3e;
    color: #9c9c9c;
    transition: all ease-out .5s .2s;
}

.loading-panel-hidden {
    opacity: 0;
    visibility: hidden;
    transition: all ease-out .5s .2s;
}


.title-bar {
    display: flex;
    background-color: #66788600;
    color: black;
    height: 60px;
    align-items: center;
    box-shadow: 0px 1px 3px 1px #dedede;
    background: #fff;
    margin: 10px;
}

    .title-bar h1 {
        font-size: 24px;
        margin: 9px;
        color: #4ebeec;
    }

i-router {
    padding: 10px 35px;
    height: calc(100vh - 150px);
    overflow: auto;
}

.loading {
    margin: 15vh auto;
    display: flex;
    font-weight: bold;
    /*color: #303030;*/
    align-items: center;
    flex-direction: column;
}


.app {
    transition: margin-left .5s;
    display: flex;
    flex-direction: column;
}

.app-shrunk {
    margin-left: 250px;
}

.side-bar {
    height: calc(100% - 132px);
    width: 0;
    position: fixed;
    z-index: 1;
    top: 81px;
    left: 10px;
    background-color: #efefef;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    box-shadow: inset -6px 0px 4px 2px #dfdfdf;
    overflow: hidden;
}

html[dir='rtl'] .side-bar {
    box-shadow: inset 6px 0px 4px 2px #dfdfdf;
}

.side-bar i-link {
    padding: 4px 8px 4px 4px;
    text-decoration: none;
    font-size: 15px;
    color: #818181;
    display: flex;
    align-items: center;
    height: 27px;
}

.side-bar span {
    width: 100%;
}


.side-bar i-link:hover {
    color: #4ebeec;
    background-color: #f8f8f8;
}

.side-bar i-link[selected]:hover {
    background-color: #4ebeec;
    color: #fff;
}

.side-bar-visible {
    width: 240px;
}


i-modellist > i-repeat {
    max-height: 260px;
    overflow-y: scroll;
    display: block;
    box-shadow: 1px 1px 2px 2px #d4d4d4;
    border: white 1px solid;
    padding: 10px;
    margin: 5px;
    margin-bottom: 10px;
}

.connection-0 {
    background: red;
}


.connection-1 {
    background: yellow;
    transition: background 2s;
}


.connection-2 {
    background: #5de198;
    transition: background 2s;
}

.navbar-item img {
    height: 20px;
    width: 20px;
    padding: 0px 6px 0px 4px;
}



.unit {
    padding: 20px;
    margin: 10px 20px;
    box-shadow: 0px 1px 3px 1px #dedede;
    border-radius: 10px;
    align-items: center;
    display: flex;
    flex-direction: column;
    background-color: white;
}

    .unit > .repeat {
        display: flex;
        flex-wrap: wrap;
    }

.title {
    text-align: center;
    margin-bottom: 17px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unit .chart {
    height: 500px;
    width: 800px;
}

.title > div {
    font-size: 25px;
    font-weight: bold;
    display: flex;
}

.title > span {
    font-size: small;
}

.title > div > img {
    height: 32px;
    padding-right: 4px;
}

.sub-title {
    align-self: normal;
    border-bottom: 1px solid #c8c8c8;
    font-size: 20px;
    color: #4f4f4f;
    /* border: 1px solid black; */
    padding: 5px;
    margin: 10px;
    background: #f3f3f3;
    display: flex;
    margin-bottom: 0;
}

    .sub-title > img {
        height: 32px;
        padding-right: 4px;
    }




.icon {
    height: 32px;
}

.property-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    /* border: 1px solid #c1c1c1; */
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0px 1px 3px 1px #dedede;
    margin: 5px;
}

.property {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    align-items: center;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0px 1px 3px 1px #dedede;
    margin: 5px;
}

.unitproperty {
    display: flex;
    flex-wrap: wrap;
}


.property > div {
    font-size: 32px;
    padding: 5px;
    border-radius: 100%;
    border: 4px outset #686868;
    width: 78px;
    height: 78px;
    line-height: 2.5em;
}

.property > img {
    width: 78px;
    height: 78px;
}

.property-Speed > div {
    background: #FFC107;
}

.property-DigitalInput-off > img {
    filter: grayscale(1);
}

.icon-online {
}

.icon-offline {
    filter: grayscale(1);
}

.tankmeter {
    /*    width: 200px;
    height: 200px;
*/
}

@media only screen and (max-width: 600px) {
    .desktop, .navbar-search {
        display: none;
    }
}

.add {
    display: flex;
}


.home {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 156px auto auto;
    grid-column-gap: 14px;
    grid-row-gap: 8px;
    --window-caption-color: white;
    --window-active-background: linear-gradient(126deg, #9D271A 20px, #ffffff 27px);
    --window-header-background: #4ebeec;
    height: calc(100% - 10px);
}

    .home .window-header {
    }

    .home > *:nth-child(1) {
        grid-area: 1 / 1 / 2 / 3;
        overflow-x: auto;
    }

    .home > *:nth-child(2) {
        grid-area: 2 / 1 / 3 / 2;
        overflow-x: auto;
    }

    .home > *:nth-child(3) {
        grid-area: 2 / 2 / 3 / 3;
        overflow-x: auto;
    }

    .home > *:nth-child(4) {
        grid-area: 3 / 1 / 4 / 3;
        overflow-x: auto;
    }

    .home > *:nth-child(5) {
        grid-area: 1 / 3 / 4 / 4;
    }


.dashboard {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.window-tools-close:before {
    content: "⚙";
    line-height: 10px;
    font-size: 18px;
    padding-top: 3px;
    color: white;
}



.runtime {
    display: flex;
    flex-flow: column;
    width: 100%;
}


.runtime > i-repeat {
    overflow-y: scroll;
    padding: 5px;
    /* gap: 2px; */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.runtime > i-repeat > div {
    display: flex;
}


.runtime > i-repeat > div > div {
    border: 1px solid gray;
}

.runtime-lastrun-date {
    display: flex;
    gap: 12px;
    padding: 5px;
    background: #f2d473;
    color: black;
    font-weight: bold;
}

.runtime-lastrun-duration {
    font-size: 50px;
    background: #26e7a6;
    text-align: center;
    border: 1px solid #acacac;
}