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

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /*light theme*/
    --bg: #f7f7f7;
    --bg-container: white;
    --item-fill: lightgrey;
    --primary-color: rgba(234,85,90,1);
    --secondary-color: rgba(236,156,151,1);
    --bolt-color: black;
    --header-text-color: #fff;
    --primary-text: rgb(13, 31, 46);
    --secondary-text: rgba(13, 31, 46, 0.7);
    --light-text: rgba(13, 31, 46, 0.5);
    --only-dark-text: rgb(13, 31, 46);
    --active: rgba(0,0,0,0.15);
    --hover: rgba(0,0,0,0.05);
    --custom-bg: 255,255,255;
    --custom-color: 0,0,0;
    --link: #0d6efd;
    --bbt: #0d1f2e;
    --bbt-dark: 234,85,90;
    --bbt-dark-hex: var(--primary-color);
    --bbt-dark2: 255,255,255;
    --bbt-dark-orange: 234,85,90;
    --bbt-light-orange: 236,156,151;
    --bbt-light: 236,156,151;
    --bbt-light-hex: #ec9c97;
    --bbt-light2: 236,156,151;
    --bbt-dark-light: 234,85,90;
    --sidebar-bg: 255,255,255;
    --border-bottom-top-bar: #e1e1e1;
    --rz-base-background-color: var(--bg-container) !important;
    --rz-primary: var(--bbt-dark-hex) !important;
    --rz-primary-light: var(--bbt-light-hex) !important;
    --rz-on-primary-lighter: var(--bbt-dark-hex) !important;
    --rz-primary-lighter: rgba(var(--bbt-dark), 0.12) !important;
    --rz-primary-dark: #cb3d42 !important;
    --rz-border-radius: 8px !important;
    --rz-profile-menu-toggle-button-color: rgb(13, 31, 46) !important;
    --rz-navigation-item-text: rgb(13, 31, 46) !important;
    --rz-chart-axis-font-size: 0.75rem !important;
    --rz-input-font-size: 0.9rem !important;
    --rz-dropdown-open-background-color: var(--bg-container) !important;
    --rz-tabs-tab-selected-color: var(--primary-color) !important;
}

[data-bs-theme="dark"] {
    --bg: #1e1e1e;
    --bg-container: #2d2d30;
    --item-fill: #3e3e42;
    --primary-color: #ea555a;
    --secondary-color: #ea555a;
    --header-text-color: #000;
    --bolt-color: #ea555a;
    --primary-text: white;
    --secondary-text: rgba(255,255,255,0.7);
    --light-text: rgba(255, 255, 255, 0.5);
    --active: rgba(255,255,255,0.15);
    --hover: rgba(255,255,255,0.05);
    --custom-bg: 0,0,0;
    --custom-color: 255,255,255;
    --link: #409ce2;
    --bbt: #ffffff;
    --bbt-dark: 30,30,30;
    --bbt-dark2: 234,85,90;
    --bbt-light: 45,45,48;
    --bbt-dark-light: 236,156,151;
    --sidebar-bg: 45,45,48;
    --border-bottom-top-bar: #1e1e1e;
    --rz-base-background-color: var(--bg-container) !important;
    --rz-profile-menu-background-color: var(--item-fill) !important;
    --rz-menu-item-color: var(--secondary-text) !important;
    --rz-profile-menu-item-hover-background-color: var(--item-fill) !important;
    --rz-menu-item-hover-color: var(--primary-text) !important;
    --rz-dropdown-open-background-color: var(--bg-container) !important;
    --bs-body-color: var(--primary-text) !important;
    --bs-body-bg: var(--bg) !important;
    --rz-tabs-tab-hover-background-color: var(--item-fill) !important;
    --rz-tabs-tab-color: var(--light-text) !important;
    --rz-border-base-300: var(--light-text) !important;
    --rz-fieldset-border: var(--light-text) !important;
    --rz-navigation-item-text: rgb(255, 255, 255) !important;
    --rz-switch-background-color: var(--bg) !important;
}

html, body {
    
    overscroll-behavior: none; /* Prevents elastic overscroll */
    -webkit-overflow-scrolling: auto; /* For iOS */
    overflow-x: hidden; /* Additional prevention of horizontal overflow */
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    height: 100%;
}
main {
    font-family: var(--primary-font-family);
}

.fontfamily {
    font-family: var(--primary-font-family);
}

.bolt {
    color: var(--bolt-color);
}

.logo {
    margin-left: var(--logo-left-margin);
    width:var(--logo-width) ;
}

.logo-welcome {
    width: var(--logo-width-welcome);
}

.login-button {
    margin-top: var(--logo-margin-login-button);
    height: var(--logo-height-login-button);
    width: var(--logo-width-login-button);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.bg {
    background-color: var(--bg);
}

.bg-container {
    background-color: var(--bg-container);
}

.secondary-title {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.light-title {
    color: var(--light-text);
    font-size: 0.8rem;
}

.container-title {
    color: var(--secondary-text);
    font-size: 0.8rem;
}

.container-title-bold {
    color: var(--secondary-text);
    font-size: 0.8rem;
    font-weight: bold;
    /*font-family: 'OpenSans-Bold';*/
}

.init-dialog-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden !important;
    padding: 0px !important;
}

.init-dialog-content-container {
    padding: var(--rz-dialog-content-padding);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.init-dialog-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Critical for proper flex behavior */
}

.init-dialog-prog-bar-container {
    flex-shrink: 0;
}

.init-dialog-footer {
    padding: var(--rz-dialog-content-padding);
    flex-shrink: 0;
}

.rz-legend-item {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .rz-legend-item:hover {
        background-color: var(--secondary-color);
    }

    .rz-dropdown-label {
        align-content: center;
    }
#popup-gridconnection > .rz-dropdown-items-wrapper {
    max-height: 250px !important;
}

    #popup-gridconnection > .rz-dropdown-items-wrapper > ul.rz-dropdown-items > li.rz-dropdown-item {
        color: var(--secondary-text);
        cursor: pointer;
    }

        #popup-gridconnection > .rz-dropdown-items-wrapper > ul.rz-dropdown-items > li.rz-dropdown-item:hover {
            background-color: rgba(var(--custom-color),0.05);
            color: var(--primary-text);
        }

    #popup-gridconnection > .rz-dropdown-items-wrapper > ul.rz-dropdown-items > li.rz-state-highlight {
        background-color: rgba(var(--custom-color),0.15) !important;
        font-family: var(--primary-font-family-bold);
        color: var(--primary-text);
    }

    #popup-gridconnection > .rz-dropdown-items-wrapper > ul.rz-dropdown-items > li.rz-state-disabled {
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 10px;
        opacity: 0.4;
    }

        #popup-gridconnection > .rz-dropdown-items-wrapper > ul.rz-dropdown-items > li.rz-state-disabled:hover {
            background-color: var(--bg-container) !important;
            color: var(--secondary-text) !important;
            cursor: default;
        }

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

.invalid {
    outline: 1px solid red;
}
.rz-dropdown-label {
    align-content: center;
}

.rz-form-field-content > .rz-numeric > .rz-numeric-input {
    outline: none !important;
}

.rz-switch.rz-switch-checked .rz-switch-circle:before {
    background: rgb(var(--bbt-dark-orange)) !important;
}

.rz-switch.rz-switch-checked .rz-switch-circle {
    background-color: rgba(var(--bbt-dark-orange), 0.12) !important;
}

.rz-tabview-panel {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0.5rem !important;
}

.rz-tabview-nav {
    justify-content: space-evenly !important;
}

.rz-tabview.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected {
    border-bottom: 2px solid var(--primary-color) !important;
}

.rz-tabview-nav .rz-tabview-selected a {
    color: var(--primary-color) !important;
    font-weight: bold !important;
}

.rz-dialog {
    color: var(--primary-text) !important;
}

.rz-dropdown {
    background-color: var(--bg-container);
    color: var(--primary-text);
}

/*.rz-progressbar-value {
    background-color: var(--primary-color) !important;*/ /* Override the value background */
    /*color: white !important;*/ /* Change the text color inside the progress bar */
/*}

.rz-progressbar-track {
    background-color: lightgray !important;*/ /* Change the background of the track */
/*}*/

.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;
        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MgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 42vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #ea555a;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(42vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

*, *::before, *::after {
    box-sizing: border-box !important;
}


.validation-message {
    color: red;
}