﻿
@font-face {
    font-family: def;
    src: url(/font/Markazi_Text/MarkaziText-VariableFont_wght.ttf);
    /*    src: url(/font/Catamaran/Catamaran-Regular.ttf); */
}



html {
    font-family: def, ui-sans-serif, -apple-system, system-ui, Segoe UI, Helvetica, Apple Color Emoji, Arial, sans-serif, Segoe UI Emoji, Segoe UI Symbol;
    font-size: 20px;
}

i-router {
    flex: 1;
    padding: 10px 35px;
    height: calc(100vh - 150px);
    overflow: auto;
}

i-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.float {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #00000066;
    opacity: 0;
    transition: all ease .2s;
    visibility: hidden;

    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);
    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;
    }

.form > * {
    width: calc(100% - 10px);
}

.remove-button, .add-button {
    height: 30px;
    border: none;
}

/* 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;
    }


.loading {
    margin: 15vh auto;
    display: flex;
    font-weight: bold;
    /*color: #303030;*/
    align-items: center;
    flex-direction: column;
}


.app {
    transition: margin-left .5s;
    transition: margin-right .5s;
    display: flex;
    flex-direction: column;
}

.app-shrunk {
    margin-left: 250px;
}

html[dir='rtl'] .app-shrunk {
    margin-right: 250px;
    margin-left: initial;
}

.side-bar {
    height: calc(100% - 88px);
    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 -4px 0px 4px 2px #dfdfdf;
    left: initial;
    right: 10px;
}

.side-bar i-link {
    padding: 6px 8px 6px 4px;
    text-decoration: none;
    font-size: 21px;
    color: #818181;
    display: flex;
    align-items: center;
}

.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;
}

.route-dashboard {
    background: linear-gradient(0deg, #cbcbcb, transparent);
    border-radius: 20px;
}

.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;
        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;
}

.progress-bar {
    background: gray;
    height: 15px;
    width: 426px;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    background: green;
    transition: all 0.3s;
    height: 100%;
    border-radius: 10px;
}

.red {
    background: red;
}

.sections {
    display: flex;
    flex-flow: column;
    /* box-shadow: 1px 1px 3px 1px #d0d0d0; */
    /* border: 1px solid #adadad; */
    padding: 10px;
}

.section {
    display In combination with 'float' and 'position', determines the type of box or boxes that are generated for an element. Widely available across major browsers (Baseline since January 2018) Learn more Don't show : flex;
    flex-flow: column;
    padding: 3px;
    gap: 10px;
    /* border-bottom: 1px solid #adadad; */
    position: relative;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 1px 0px;
}

.section-owner {
/*    background: #e9e9e9;*/
    display: flex;
    align-items: center;
    flex: 1;
}

.assignment-from {
    /*    background: #e9e9e9;*/
    display: flex;
    align-items: center;
    margin-left: 32px;
}

.assignment-to {
    /*    background: #e9e9e9;*/
    display: flex;
    align-items: center;
    margin-left: 32px;
}



.section-owner-name > div, .assignment-user-name {
    display: flex;
    flex-direction: column;
}

    .section-owner-name > div:first-child, .assignment-user-name > div:first-child,
    .participant-user-name > div:first-child, .participant-unit-name > div:first-child {
        font-size: 18px;
        font-weight: bold;
        text-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .section-owner-name > div:last-child, .assignment-user-name > div:last-child,
    .participant-user-name > div:last-child, .participant-unit-name > div:last-child {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.section-owner > img, .assignment-from > img, .assignment-to > img, .participant-user > img, .participant-unit > img {
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    border-radius: 100%;
    box-shadow: 0px 0px 3px 1px #bdbdbd;
    padding: 4px;
    margin: 5px;
}

.section > i-include {
    flex: 1;
}

.section-header, .assignment-header {
    background: #f6f6f6;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 5px;
}

.attachment-icon {
    max-width: 28px;
}

.section-unseen .message-info {
    background: #fffae9;
}

.section-unseen .assignment-header {
    background: white;
}


.message-info {
    font-size: 20px;
    display: flex;
    background: #e4e4e4;
    /*    border: 1px solid #b5b5b5;*/
    padding: 7px;
}

.message-subject {
    font-weight: bold;
    padding-left: 10px;
}
.message-subject::before {
    font-weight: 300;
    content: 'الموضوع: ';
}

.message-type {
    padding-left: 10px;
    color: #688537;
}

.message-description {
    flex: 1;
    color: #4a4a4a;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0; /* أهم نقطة داخل flex */
}

.message-issue {
    padding-left: 10px;
}

.message-date {
    display: flex;
    flex-direction: column;
    /* font-size: 12px; */
    text-align: center;
}

    .message-date > *:first-child{
        font-size: 15px;
    }
    .message-date > *:last-child {
        font-size: 10px;
    }
   
    .message-actions {
        margin: 10px;
        padding: 10px;
    }

.method-action {
    display: flex;
    gap: 20px;
}

    .method-action > *:first-child {
        flex: 1;
    }

.arrow-container {
    position: relative;
    display: flex;
    flex-direction: column; /* النص فوق السهم */
    align-items: stretch;
    flex: 1;
}

/* النص فوق السهم */
.arrow-label {
    text-align: center; /* يمكن تغييره */
    font-size: 16px;
    font-weight: 600;
    color: black;
}

.arrow-rtl {
    display: flex;
    flex-direction: row-reverse; /* RTL */
    align-items: center;
    width: 100%;
}

.arrow-head {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 12px solid #498d63;
    flex-shrink: 0;
}

.arrow-line {
    flex: 1;
    height: 2px;
    background-color: #5eab89;
    border-radius: 2px;
}

.arrow-subtitle {
    text-align: center;
    font-size: 12px;
}

.assignment-tools {
    display: flex;
    gap: 10px;
    padding: 2px;
    flex-wrap: wrap;
}

.assignment-tools > * {
    padding: 10px;
    font-weight: 400;
    /*        background: #b8e4ff;
    border: 1px solid #ffffff;
    border-radius: 6px;
    color: #000000;
    line-height: 100%;
*/
}

.autocomplete-item {
    
}
.autocomplete-item > img {
    height: 14px;
}

.actions-box {
    text-align: left;
    display: flex;
    flex-direction: row-reverse;
    background: #f7f7f7;
    padding: 10px;
}

.attachments-section{
    display: flex;
}

.attachments-section > div {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 10px;
    padding: 7px 25px;
    font-size: 14px;
}

.attachment-link {
    text-decoration: none;
    border-left: 2px dashed #d3d3d3;
    padding-left: 16px;
}

/*.attachments-section .attachment-link:last-child {
    border-left: none;
}*/

.comment-section {
    padding:10px;
}

.approval-section {
    display: flex;
    padding-right: 4px;
}

.approval-status {
    padding: 0px 10px;
    /* border-top-right-radius: 10px; */
    border-bottom-right-radius: 10px;
    line-height: 40px;
    width: 100px;
}

/* DoNotCare */
.approval-status[status="1"] {
    background: linear-gradient(270deg,rgba(199, 197, 87, 1) 0%, rgba(255, 255, 255, 1) 100%);
}
/* Approved */
.approval-status[status="2"] {
    background: linear-gradient(270deg,rgba(87, 199, 133, 1) 0%, rgba(255, 255, 255, 1) 100%);
}
    

/*    Denied,*/
.approval-status[status="3"] {
    background: linear-gradient(270deg,rgba(199, 87, 87, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

/*ApprovedByLaw*/
.approval-status[status="4"] {
    background: linear-gradient(270deg,rgba(141, 87, 199, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.approval-comment {
    padding: 10px;
}

.clickable {
    cursor: pointer;
    border: 2px solid white;
}

.clickable:hover {
    border: 2px solid #78bee9;
}

.clickable:hover {
    background: none;
}

.tox-statusbar__right-container, .tox-promotion {
    display: none !important;
}

.participants {
    display: flex;
    flex-wrap: wrap;
}

.participant-header {

}

.participant-user {
    display: flex;
}

.participant-unit {
    display: flex;
}

.participant-unit-name, .participant-user-name {
    max-width: 130px;
    padding: 0px 6px;
}

.name-separator {
    width: 2px;
    background: red;
    margin: 10px 4px;
}


i-input > input {
    width: calc(100% - 10px);
}

.stats-counter{
    display: flex;
}

.stats-counter > div {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px;
    align-items:center;
}

.stats-counter-number {
    border: 4px solid #ffb0b0;
    border-radius: 50px;
    /* border-bottom: 0; */
    height: 60px;
    width: 60px;
    line-height: 61px;
    font-size: 30px;
}