@import url('colors.css');
@import url('fonts.css');

:root {
    --side-menu-width: 250px;
}

h1:focus {
    outline: none;
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.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;
    color: var(--blue80);
    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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxID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kU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.blazor-loading-container {
    width: 150px;
    height: 150px;
    padding: 10px;
    border-radius: 8px;
    background: #100169;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blazor-loading-logo {
    color: #FFFFFF;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    width: 100%;
    height: 100%;
}

.blazor-loading-progress-logo {
    color: var(--yellow50);
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    width: 100%;
    height: 100%;
    clip-path: inset(calc(100% - var(--blazor-load-percentage, 0%)) 0% 0% 0%);
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh 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: #1b6ec2;
            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(20vh + 3.25rem) 0 auto 0.2rem;
}

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

/* MAIN LAYOUT FLEX */
.main-flex-container {
    background: #F9F9FB;
    display: flex;
    height: 100vh;
}

.main-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-column-iconify-icon {
    margin-bottom: 0px;
}

.main-column-dev-test {
    background: #77018E;
}

.main-column-prod {
    background: #100169;
}

.main-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-icon-spacer {
    flex-grow: 1;
}

.home {
    color: var(--yellow50);
}

.sidebar-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 8px;
    width: 60px;
    cursor: pointer;
    color: var(--neutral0);
}

.sidebar-icon-container {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20%;
    margin: 0 0;
    padding: 6px;
}

.sidebar-icon-link.active .sidebar-icon-container {
    transition: background 0.2s;
    background-color: #273FBC;
}

.sidebar-icon-label {
    margin-top: 4px;
    text-align: center;
    font-size: 0.65rem;
    color: var(--neutral0);
    font-family: 'Helen Text', serif;
    font-style: normal;
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.main-column-fixed {
    background: #F9F9FB;
    flex: 0 0 var(--side-menu-width);
    overflow: hidden auto;
    display: flex;
    flex-direction: column;
    transition: flex 0.2s ease;
}

.main-column-flex {
    flex-grow: 1;
    overflow: hidden auto;
}

.icon-clickable {
    cursor: pointer;
}

.hidden {
    display: none;
}

.main-icon .company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-icon iconify-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: white;
}

@media (max-width: 850px) {
    .collapse-button {
        display: none;
    }

    .main-flex-container {
        flex-direction: column;
        height: auto;
    }

    .main-column {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        height: auto;
    }

    .sidebar-icon-link {
        margin: 8px;
    }

    .main-layout-env {
        padding-right: 8px;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

iconify-icon[icon="mdi:loading"] {
    animation: spin 1s linear infinite;
}

.search-result-loader {
    position: relative;
    width: 100%;
    height: 100%;
}

.search-result-loader > .loading-spinner {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #100169 !important;
}

.card {
    background-color: var(--neutral0);
    border-style: solid;
    border-color: var(--neutral10);
    border-width: 1px;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    font-family: 'Helen Text', serif;
    font-size: var(--fontSizes-16);
    font-style: normal;
    letter-spacing: 0.0625rem;
    box-shadow: 0px 4px 10px 2px var(--neutral20);
}

* {
    box-sizing: border-box;
}

.mandatory {
    color: var(--pink60)
}

.errortext-show {
    font-family: var(--fonts-helenText);
    font-style: normal;
    font-weight: var(--fontWeights-regular);
    font-size: var(--lineHeights-14);
    line-height: var(--lineHeights-24);
    color: var(--pink60);
    display: inherit;
}

.errortext-hide {
    display: none;
}

.details-heading {
    width: 100%;
    background: var(--neutral10);
    display: flex;
    align-items: center;
    height: auto;
    padding: 1rem;
    font-family: 'Helen Headline', monospace;
    color: var(--blue80);
    font-size: var(--fontSizes-24);
}

.back-icon {
    position: relative;
    top: 0.25rem;
}

.general-icon:hover {
    filter: brightness(0) saturate(100%) invert(23%) sepia(53%) saturate(2936%) hue-rotate(221deg) brightness(89%) contrast(103%);
}

.general-icon:hover {
    filter: brightness(0) saturate(100%) invert(23%) sepia(53%) saturate(2936%) hue-rotate(221deg) brightness(89%) contrast(103%);
}

.scrollbars {
    overflow: auto;
}

.main-layout-env {
    color: var(--neutral0);
}

.mud-treeview-item-content {
    align-items: flex-start;
}

.feedback-loop-status-ok {
    filter: brightness(0) saturate(100%) invert(86%) sepia(85%) saturate(3357%) hue-rotate(31deg) brightness(88%) contrast(75%);
}

.feedback-loop-status-warning {
    filter: brightness(0) saturate(100%) invert(86%) sepia(23%) saturate(4844%) hue-rotate(355deg) brightness(102%) contrast(106%);
}

.feedback-loop-status-error {
    filter: brightness(0) saturate(100%) invert(17%) sepia(64%) saturate(7278%) hue-rotate(319deg) brightness(87%) contrast(99%);
}

.feedback-loop-status-unknown {
    filter: brightness(0) saturate(100%) invert(42%) sepia(6%) saturate(1637%) hue-rotate(199deg) brightness(98%) contrast(92%);
}

.no-results {
    font-family: 'Helen Text', serif;
    font-size: var(--fontSizes-16);
    font-style: normal;
}

.mud-paper-select {
    min-width: 200px;
}

.mud-paper-select-feedback-loop {
    min-width: 180px;
}

.mud-paper-select-control-algorithm {
    min-width: 200px;
}

.state-on {
    background-color: var(--green60);
}

.state-off {
    background-color: var(--pink50);
}

.pending, .unknown {
    background-color: var(--neutral50);
}

.mud-table-head {
    position: sticky;
    top: 0;
    background: white;
    z-index: 3;
}

.alarm-filter-active {
    color: var(--yellow50);
}

.mud-tooltip {
    font-size: var(--fontSizes-16);
}

.dialog-title {
    font-weight: var(--fontWeights-bold);
}

.dialog-title, .dialog-content {
    font-family: 'Helen Text', serif;
    font-size: var(--fontSizes-16);
    font-style: normal;
    letter-spacing: 0.0625rem;
}

.right-align-input input {
    text-align: right;
}

.invalid-field .mud-input {
    border-radius: 6px;
    background-color: red;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.w-100 {
    width: 100%;    
}

.h-100 {
    height: 100%;
}

.text-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.bg-white {
    background-color: white;
}

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

::deep .guid-text {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.curve-point-field .mud-input > input.mud-input-root-outlined,
.curve-point-field div.mud-input-slot.mud-input-root-outlined,
.curve-point-field input.point-field-input {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    padding-left: 0 !important;
    margin: 0 !important;
    text-align: right;
}