﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: 'Digital-7';
    src: url('/fonts/digital-7-mono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/*@import url('switcher-resources/themes.css');*/
/*@import url('switcher-resources/theme-switcher.css');*/

html, body {
    /*height: 100% !important;*/
    min-height: 100vh !important;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: inherit;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row.navbar-dark .navbar-toggler {
        outline: none;
        height: 3.0rem;
        border-radius: 0;
        border: none;
        text-align: center;
        padding-left: .75rem;
        padding-right: .75rem;
    }

        .top-row.navbar-dark .navbar-toggler .navbar-toggler-icon {
            background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
            background-color: transparent !important;
            height: 2rem;
            width: 2rem;
        }

.icon {
    display: inline-block;
    text-rendering: auto;
    font-family: "demo-icons" !important;
    font-style: normal;
    font-weight: normal;
    line-height: 0.8;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.icon-settings:before {
    content: "\E01B";
}

.main {
    flex: 1;
}

.sidebar {
    padding-top: 5px;
    border: none;
    font-size: 11.2px !important;
}

.sidebar {
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.16);
    border: none;
}

    .sidebar .navbar-brand {
        /*    font-size: 1.1rem;*/
    }

    .sidebar .oi {
        width: 2rem;
        /*    font-size: 1.1rem;*/
        vertical-align: text-top;
        top: -2px;
    }

.app-sidebar > .nav-pills > .nav-item:first-of-type {
    padding-top: 1rem;
}

.app-sidebar > .nav-pills > .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.app-sidebar .nav-pills > .nav-item a {
    border-radius: 0px;
    display: flex;
    align-items: center;
}

.app-sidebar > .nav-pills > .nav-item > a {
    /*    font-size: 1rem !important;*/
    padding: .25rem .5rem !important;
    font-weight: 600 !important;
}

    .app-sidebar > .nav-pills > .nav-item > a[aria-expanded] ~ ul {
        margin: 0;
    }

.app-sidebar .nav-pills > .nav-item a:not(.active) {
    color: inherit !important;
}

.app-sidebar .nav-pills .nav-item .nav-link > span:not(.expand-btn):not(.image):not(.badge) {
    flex: 1;
}

.app-sidebar .nav-pills .nav-item .nav-link > span.expand-btn {
    margin-right: 9px;
}

.app-sidebar .nav-pills .nav-item .nav-link > span.badge {
    flex: 0;
    border-radius: 0.25rem !important;
    min-width: 2.7em;
}

.dxbl-tree.app-sidebar > ul.nav ul.nav {
    margin: 0 !important;
}

    .dxbl-tree.app-sidebar > ul.nav ul.nav .nav-item {
        padding-bottom: 0;
    }

    .dxbl-tree.app-sidebar > ul.nav ul.nav .nav-link {
        font-size: 0.825rem;
        font-weight: 400;
        padding: 0.25rem 1rem 0.25rem 2rem !important;
    }

.dxbl-tree > ul.nav ul.nav {
    margin: 0.1em 0 0.1em 1.2em !important;
    overflow-y: hidden !important;
}

.content {
    padding-top: 1.1rem;
}

/*.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}*/

/*.invalid {
    outline: 1px solid red;
}*/

.validation-message {
    color: red;
}

@media (max-width: 1199.98px) {
    .top-row {
        position: static !important;
    }

    .main,
    .sidebar {
        padding-top: 0 !important;
    }

    .sidebar {
        display: none;
    }
}

.main {
    padding-top: 3.5rem;
}

.navbar.top-row {
    justify-content: flex-start;
}

    .navbar.top-row .demo-btn-container {
        margin-left: auto;
    }

@media (min-width: 1200px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 300px;
        height: 100vh;
        position: sticky;
        top: 0;
        display: flex;
        flex-flow: column nowrap;
    }

        .sidebar .footer {
            display: block !important;
        }

    .main .footer {
        display: none;
    }

    .sidebar > div {
        flex: 1 1 auto;
    }

    #settingsbar {
        height: 100vh;
        position: fixed;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .sidebar > .logo-container {
        justify-content: flex-start !important;
    }
}

.download-btn.navbar-toggler {
    padding: calc((3.5rem - 22px)/2) !important;
}

.demo-download-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: currentColor;
    mask-image: url("../images/download.svg");
    -webkit-mask-image: url("../images/download.svg");
}

.demo-theme-icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-color: currentColor;
    mask-image: url("../images/theme.svg");
    -webkit-mask-image: url("../images/theme.svg");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.demo-products .row > div {
    margin-bottom: 2rem;
}

.demo-products .demo-product {
    cursor: pointer;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
    height: 100%;
    margin: 0;
}

    .demo-products .demo-product:hover {
        transform: translate(0, -6px);
        transition: all .2s ease-out;
        box-shadow: 0 0.25rem 0.25rem rgba(0,0,0,0.1) !important;
    }

    .demo-products .demo-product .demo-product-info {
        display: inline-block;
        font-size: 13px;
    }

.demo-product-icon {
    width: 40px;
    height: 40px;
}

.demo-product-icon-grid {
    mask-image: url("../images/landing/DataGrid.svg");
    -webkit-mask-image: url("../images/landing/DataGrid.svg");
}

.demo-product-icon-pivot {
    mask-image: url("../images/landing/PivotGrid.svg");
    -webkit-mask-image: url("../images/landing/PivotGrid.svg");
}

.demo-product-icon-charts {
    mask-image: url("../images/landing/Charts.svg");
    -webkit-mask-image: url("../images/landing/Charts.svg");
}

.demo-product-icon-scheduler {
    mask-image: url("../images/landing/Scheduler.svg");
    -webkit-mask-image: url("../images/landing/Scheduler.svg");
}

.demo-product-icon-editors {
    mask-image: url("../images/landing/Editors.svg");
    -webkit-mask-image: url("../images/landing/Editors.svg");
}

.demo-product-icon-navigation {
    mask-image: url("../images/landing/Navigation.svg");
    -webkit-mask-image: url("../images/landing/Navigation.svg");
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.spinner1 {
    /*background-color: red;*/
    background-image: url("/images/Op3.png");
    border: 8px solid white;
    border-top: 8px solid red;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 900ms linear infinite;
    top: 50%;
    left: 50%;
    position: absolute;
    z-index: 20000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.z-20000 {
    z-index: 20000 !important;
}

.spinnerX {
    color: red;
    background-image: url("/images/Op4.png");
    font-size: 90px;
    text-indent: -9999em;
    overflow: hidden;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin: 72px auto;
    top: 35%;
    left: 50%;
    position: absolute;
    z-index: 20000;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
    animation: load6 1.7s infinite ease, round 1.7s infinite ease;
}

.spinner {
    color: red;
    background-image: url("/images/Op4.png");
    font-size: 90px;
    text-indent: -9999em;
    overflow: hidden;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin: 72px auto;
    top: 40%; /* Adjusted */
    left: 50%; /* Adjusted */
    position: fixed; /* Changed from absolute to fixed */
    z-index: 20000;
    -webkit-transform: translate(-50%, -50%); /* Adjusted */
    -ms-transform: translate(-50%, -50%); /* Adjusted */
    transform: translate(-50%, -50%); /* Adjusted */
    -webkit-animation: load6 1.7s infinite ease, round 1.7s infinite ease;
    animation: load6 1.7s infinite ease, round 1.7s infinite ease;
}

@-webkit-keyframes load6 {
    0% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }

    5%, 95% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }

    10%, 59% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }

    20% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
    }

    38% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
    }

    100% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
}

@keyframes load6 {
    0% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }

    5%, 95% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }

    10%, 59% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }

    20% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em;
    }

    38% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em;
    }

    100% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
}

@-webkit-keyframes round {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes round {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.file-row {
    background-color: #e4e4e4;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-radius: 0.6rem;
    color: #555;
    display: flex;
    align-items: center;
}

    .file-row h2 {
        margin: 0.3rem 0 0.6rem 0;
        font-weight: bold;
        color: black;
        font-size: 1.1rem;
    }

    .file-row > div {
        flex-grow: 1;
    }

    .file-row button {
        padding: 0.5rem 1rem;
    }

.drag-drop-zone {
    border: 3px dashed #e68710;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: #aeaeae;
    font-size: 1.0rem;
    cursor: pointer;
    margin: 0;
    position: relative;
}

    .drag-drop-zone:hover {
        background-color: #f5f5f5;
    }

    .drag-drop-zone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

pre {
    background-color: #f0f0f0;
    overflow: auto;
    padding: 1rem;
    height: 10rem;
}

imgdoc {
    content: url("/images/icons/office-icon-1770.png");
    width: 48px;
}

imgxls {
    content: url("/images/icons/xls-icon-3379.png");
    width: 48px;
}

imgppt {
    content: url("/images/icons/ppt-icon-486.png");
    width: 48px;
}

imgtxt {
    content: url("/images/icons/txt-file-icon-1213.png");
    width: 48px;
}

imgpdf {
    content: url("/images/icons/pdf-icon-png-2062.png");
    width: 48px;
}

imgunk {
    content: url("/images/icons/unknown-attachment-icon-11167.png");
    width: 48px;
}

.sky-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: inherit;
    background-color: red;
    color: white;
    text-align: center;
}

.lcd-screen {
    display: inline-flex;
    align-items: baseline;
    justify-content: center; /* Center mass and unit horizontally */
    background: #222;
    color: #0f0;
    font-family: 'Digital-7', 'Consolas', monospace;
    font-size: 2.5rem;
    border-radius: 0.5rem;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 0 10px #0f0a, 0 0 2px #000;
    letter-spacing: 0.1em;
    border: 2px solid #0f0;
    min-width: 15rem;
    min-height: 2.5rem;
    user-select: none;
    transition: box-shadow 0.2s;
}
.lcd-mass {
    font-weight: bold;
    margin-right: 0.5rem;
}
.lcd-unit {
    font-size: 1.8rem;
    opacity: 1.0;
}
.lcd-highlight {
    box-shadow: 0 0 20px #0f0, 0 0 2px #000;
    border-color: #fff;
}
.lcd-tooltip {
    position: fixed;
    left: 50%;
    top: auto;
    /* You may want to adjust top dynamically with JS for perfect placement, but this will make it overlay above all content. */
    z-index: 20000 !important;
    background: #222;
    color: #fff;
    border: 1px solid #0f0;
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
    white-space: pre-line;
    /* Removed !important from here */
    font-size: 0.8rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    min-width: 10rem;
    max-width: 20rem;
    word-break: break-word;
}
.lcd-error {
    cursor: pointer;
    position: relative;
}
.lcd-device-name {
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 0.3em;
    color: #333;
    letter-spacing: 0.05em;
}
.lcd-container {
    display: inline-block;
    text-align: center;
}
