﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }

.hc-logo-grid {
    width: 130px;
    height: 70px;
    font-size: 2.5em;
    padding: 13px 10px 10px 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

    .hc-logo-grid .hc-cube-top {
        font-family: monospace;
        text-align: center;
        width: 16.66%;
        height: 50%;
        line-height: 50%;
        color: #e51f2d;
        font-weight: 500;
        float: left;
        -webkit-animation: hc-logoScaleDelay 1.2s infinite ease-in-out;
        animation: hc-logoScaleDelay 1.2s infinite ease-in-out;
    }

    .hc-logo-grid .hc-cube-bottom {
        width: 16.66%;
        height: 50%;
        float: left;
        margin-top: -8px;
        font-weight: 400;
        color: black;
        -webkit-animation: hc-logoScaleDelay 1.2s infinite ease-in-out;
        animation: hc-logoScaleDelay 1.2s infinite ease-in-out;
    }

    .hc-logo-grid .hc-cube1 {
        -webkit-animation-delay: 0.1s;
        animation-delay: 0.1s;
    }

    .hc-logo-grid .hc-cube2 {
        -webkit-animation-delay: 0.2s;
        animation-delay: 0.2s;
    }

    .hc-logo-grid .hc-cube3 {
        -webkit-animation-delay: 0.3s;
        animation-delay: 0.3s;
    }

    .hc-logo-grid .hc-cube4 {
        -webkit-animation-delay: 0.4s;
        animation-delay: 0.4s;
    }

    .hc-logo-grid .hc-cube5 {
        -webkit-animation-delay: 0.5s;
        animation-delay: 0.5s;
    }

    .hc-logo-grid .hc-cube6 {
        -webkit-animation-delay: 0.6s;
        animation-delay: 0.6s;
    }

@-webkit-keyframes hc-logoScaleDelay {
    0%, 70%, 100% {
        -webkit-transform: scale3D(1, 1, 1);
        transform: scale3D(1, 1, 1);
    }

    35% {
        -webkit-transform: scale3D(0, 0, 1);
        transform: scale3D(0, 0, 1);
    }
}

@keyframes hc-logoScaleDelay {
    0%, 70%, 100% {
        -webkit-transform: scale3D(1, 1, 1);
        transform: scale3D(1, 1, 1);
    }

    35% {
        -webkit-transform: scale3D(0, 0, 1);
        transform: scale3D(0, 0, 1);
    }
}

/** Animation **/
.hc-animate.hc-fade {
    animation-duration: 0.5s;
    animation-name: animate-fade;
    animation-fill-mode: backwards;
}

@keyframes animate-fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

:root {
    --bs-light: #fffaf7;
    --b-bar-brand-light-background: #fffaf7 !important;
    --hc-table-border-color: #dee2e6;
    --bs-success: #4caf50;
    --bs-warning: #ff8507;
    --bs-danger: #F44336;
    --bs-info: #0288D1;
    --hc-gray: #d3d7db;
    --hc-lvri-color: #e51f2d;
}

html {
    font-size: 13px;
}

.blink_me {
    animation: blinker 2s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

#headerContainer {
    z-index: 1022;
    border-bottom: 1px solid var(--hc-gray);
}

    #headerContainer .hc-disconnect {
        border-color: var(--hc-gray);
    }

    #headerContainer .hc-top-menu-item {
        color: var(--hc-lvri-color);
        font-weight: 600;
        border-radius: 3px;
        border: 1px solid var(--hc-lvri-color);
        background-color: white;
    }

#contentContainer {
    height: 100%;
    overflow: hidden;
    background: #f5efe9;
    box-shadow: inset 0 6px 7px -7px rgb(0 0 0 / 40%);
}

#contentContainer, .b-layout-sider {
    margin-top: 58px;
}

#content {
    height: 100%;
}

    #content .hc-tabs .tab-content {
        height: 100%;
        flex: 1 1 0;
    }

    #contextMenu .hc-resetButton.btn,
    #content .hc-resetButton.btn {
        border: 1px solid lightgray;
        background: white;
    }

    #contextMenu .hc-hidden,
    #content .hc-hidden {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
    }

    #content .hc-datagrid-date-filter input::-webkit-calendar-picker-indicator,
    #content .hc-datagrid-date-form-input::-webkit-calendar-picker-indicator {
        width: 15px;
        padding: 0px;
        margin: 0px;
        cursor: pointer;
    }

    #content .hc-datagrid-date-form-input {
        width: 130px;
    }

    #content .hc-datagrid.hc-space-span-filter-input,
    #content .hc-datagrid.hc-space-span-filter-select,
    #content .hc-datagrid.hc-space-span-display {
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        display: block;
        opacity: 0;
        white-space: nowrap;
    }

    #content .hc-datagrid.hc-space-span-display {
        margin-left: 25px;
    }

    #content .hc-datagrid.hc-space-span-filter-input {
        margin-left: 35px;
    }

    #content .hc-datagrid.hc-space-span-filter-select {
        margin-left: 65px;
    }

    #content .hc-datagrid-loading-cell-content .sk-flow-dot {
        margin-top: 0.6em;
    }

    #contextMenu .hc-bullet::before,
    #content .hc-bullet::before {
        content: "\2022  ";
    }

    #contextMenu .hc-input-group-success button.btn,
    #content .hc-input-group-success button.btn {
        border-color: #28a745;
    }

    #contextMenu .hc-input-group-error button.btn,
    #content .hc-input-group-error button.btn {
        border-color: #dc3545;
    }

    /*************************************/
    /*Tooltips                           */
    /*************************************/
    .b-layout-sider .hc-tooltip-wrapper,
    #contextMenu .hc-tooltip-wrapper,
    #content .hc-tooltip-wrapper {
        position: relative;
        cursor: help;
    }

    #contextMenu .hc-tooltip-wrapper,
    #content .hc-tooltip-wrapper {
        display: inline-block;
    }

        .b-layout-sider .hc-tooltip-wrapper .hc-tooltip,
        #contextMenu .hc-tooltip-wrapper .hc-tooltip,
        #content .hc-tooltip-wrapper .hc-tooltip {
            visibility: hidden;
            font-size: 0.9em;
            position: absolute;
            width: auto;
            left: 50%;
            background-color: #363636;
            color: #fff;
            text-align: center;
            padding: 5px 0;
            border-radius: 6px;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.7s;
        }

    .b-layout-sider .hc-tooltip.hc-tooltip-placement-right,
    #content .hc-tooltip.hc-tooltip-placement-right {
        transform: translate(5%,55%);
        bottom: calc(100% + 5px);
    }

    .b-layout-sider .hc-tooltip.hc-tooltip-placement-bottom,
    #content .hc-tooltip.hc-tooltip-placement-bottom {
        -webkit-transform: translate(-50%,0);
        transform: translate(-50%,0);
        bottom: calc(100% + 5px);
    }

    .b-layout-sider .hc-tooltip-wrapper .hc-tooltip::after,
    #contextMenu .hc-tooltip-wrapper .hc-tooltip::after,
    #content .hc-tooltip-wrapper .hc-tooltip::after {
        content: "";
        position: absolute;
        border-style: solid;
        border-color: #363636;
    }

    #contextMenu .hc-tooltip-wrapper:hover .hc-tooltip,
    #content .hc-tooltip-wrapper:hover .hc-tooltip {
        visibility: visible;
        opacity: 1;
    }

    .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-info,
    #contextMenu .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-info,
    #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-info {
        color: #187D8C;
        background-color: #CCF1F6;
        border: 1px solid #8EE1EC;
    }

        .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-info::after,
        #contextMenu .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-info::after,
        #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-info::after {
            border-color: #8EE1EC;
        }

    .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-placement-right::after,
    #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-placement-right::after {
        top: 50%;
        left: 0%;
        border-top-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
        margin-left: -10px;
        border-width: 5px;
    }

    .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-placement-bottom::after,
    #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-placement-bottom::after {
        top: 100%;
        left: 50%;
        border-bottom-color: transparent;
        border-right-color: transparent;
        border-left-color: transparent;
        margin-left: -5px;
        border-width: 5px;
    }

    .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-success,
    #contextMenu .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-success,
    #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-success {
        color: #407648;
        background-color: #DBEFDC;
        border: 1px solid #B0DBB2;
    }

        .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-success::after,
        #contextMenu .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-success::after,
        #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-success::after {
            border-color: #B0DBB2 transparent transparent transparent;
        }

    .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-warning,
    #contextMenu .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-warning,
    #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-warning {
        color: #9D963D;
        background-color: #FFFBD7;
        border: 1px solid #FFF6A8;
    }

        .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-warning::after,
        #contextMenu .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-warning::after,
        #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-warning::after {
            border-color: #FFF6A8 transparent transparent transparent;
        }

    .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-danger,
    #contextMenu .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-danger,
    #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-danger {
        color: #973E3A;
        background-color: #FCD9D6;
        border: 1px solid #FAACA6;
    }

        .b-layout-sider .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-danger::after,
        #contextMenu .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-danger::after,
        #content .hc-tooltip-wrapper .hc-tooltip.hc-tooltip-danger::after {
            border-color: #FAACA6 transparent transparent transparent;
        }

.b-layout-sider .hc-tooltip-wrapper .hc-tooltip {
    width: max-content;
    left: 112%;
    transform: initial;
    bottom: initial;
    transition: none;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

    .b-layout-sider .hc-tooltip-wrapper .hc-tooltip::after {
        top: calc(50% - 4px) !important;
    }

.b-layout-sider .hc-tooltip-wrapper:hover .hc-tooltip {
    animation: fadeIn 1.5s alternate;
    animation-iteration-count: 2;
    animation-delay: 0.8s;
    visibility: visible;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
/*************************************/

/*************************************/
/*Console                            */
/*************************************/
#content .hc-console {
    background-color: #282828;
    display: inline-block;
    position: relative;
    min-height: 450px;
    max-height: 450px;
    overflow-y: auto;
    width: 100%;
    margin: 0;
    padding: 2rem;
    color: white;
    font: 1.15rem Inconsolata, monospace;
    text-shadow: 0 0 5px #C8C8C8;
}

    #content .hc-console .hc-console-message-error {
        color: #f08139;
    }

    #content .hc-console .hc-console-message-warning {
        color: #f8c045;
    }

    #content .hc-console::-webkit-scrollbar-thumb {
        background: #e5efe5;
        border-radius: 5px;
    }

    #content .hc-console::-webkit-scrollbar-track {
        border-radius: 0px;
    }

/*************************************/

/*************************************/
/*Blazorise step                 */
/*************************************/
#content .step-danger .step-circle,
#content .step-warning .step-circle,
#content .step-success .step-circle {
    color: #adb5bd;
    border-color: #adb5bd;
}

#content .step-danger .step-text,
#content .step-success .step-text {
    color: #adb5bd;
}

#content .step-danger.step-active .step-circle {
    color: white;
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

#content .step-danger.step-active .step-text {
    color: var(--bs-danger);
}

#content .step-warning.step-active .step-circle {
    color: white;
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
}

#content .step-warning.step-active .step-text {
    color: var(--bs-warning);
}

#content .step-success.step-active .step-circle {
    color: white;
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

#content .step-success.step-active .step-text {
    color: var(--bs-success);
}

/*************************************/

/*************************************/
/*Blazorise snackbar                 */
/*************************************/
.snackbar.snackbar-info {
    color: #187D8C;
    background-color: #CCF1F6;
    border: 1px solid #8EE1EC;
}

    .snackbar.snackbar-info button {
        color: #187D8C;
    }

.snackbar.snackbar-success {
    color: #407648;
    background-color: #DBEFDC;
    border: 1px solid #B0DBB2;
}

    .snackbar.snackbar-success button {
        color: #407648;
    }

.snackbar.snackbar-warning {
    color: #9D963D;
    background-color: #FFFBD7;
    border: 1px solid #FFF6A8;
}

    .snackbar.snackbar-warning button {
        color: #9D963D;
    }

.snackbar.snackbar-danger {
    color: #973E3A;
    background-color: #FCD9D6;
    border: 1px solid #FAACA6;
}

    .snackbar.snackbar-danger button {
        color: #973E3A;
    }

/*************************************/

/*************************************/
/*Blazorise tabs          */
/*************************************/
.nav.nav-tabs .nav-item .nav-link {
    color: gray;
    font-weight: normal;
    font-size: 1.25rem;
}

.nav.nav-tabs .nav-item a.nav-link:not(.active) {
    color: gray !important;
}

.nav.nav-tabs .nav-link.disabled {
    opacity: 0.6;
}

.nav.nav-tabs .nav-item .nav-link.show {
    color: #212529;
    font-weight: 500;
}

/*************************************/

/*Blazorise datagrid          */
/*************************************/
.b-datagrid th {
    background-color: var(--bs-light);
}

.b-datagrid td > div.gap-2.d-inline-flex {
    display: block !important;
}

/*Blazorise treeview          */
/*************************************/
.b-tree-view-node-title span:first-of-type {
    display: inline-block;
    line-height: 0.9;
}

/*************************************/

/*Label for required fields          */
/*************************************/
label.isRequired:after {
    content: "*";
    color: red;
    font-size: 1.3em;
    line-height: 0.5em;
    font-weight: bold;
    margin-left: 3px;
}
/*************************************/

/*Bootstrap overrides                */
/*************************************/
#contentContainer .form-group {
    margin-bottom: 0.5rem;
}

#contentContainer label {
    margin-bottom: 0.2rem;
}

#contentContainer input[disabled],
#contentContainer select[disabled],
#contentContainer input[readonly],
#contentContainer textarea[readonly] {
    background-color: var( --bs-light);
    color: #495057;
}

#contentContainer select[disabled] {
    opacity: 1;
}
/*************************************/
/*Scrollbars styling                */
/*************************************/
/* Works on Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.10) rgba(0,0,0,0.25);
}
    /* Works on Chrome, Edge, and Safari */
    *::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }

    *::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.10);
        border-radius: 10px;
        background: white;
    }

    *::-webkit-scrollbar-thumb {
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.30);
        background: white;
    }
/*************************************/