html { overflow: hidden; }

.page, article, main { height: 100% !important; overflow: hidden; }

#app { height: 100vh; }

html, body {
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: black;
}

* { font-family: "Nunito", sans-serif !important; }

.mud-button-label { font-weight: 700 !important; }

a, .btn-link {
    /*color: #006bb7;*/
    text-decoration: none;
    color: inherit;
}

article {
    display: flex;
    flex-direction: column;
}

/*ServicesIsDown" : "SystemOk" : "NetworkKo*/

.Connection {
    padding: 0 .75rem;
    font-weight: 700;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    font-size: larger;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(-35px);
    min-height: 35px;
    align-items: center;
}

.Connection.ServicesIsDown, .Connection.NetworkKo {
    background-color: var(--mud-palette-error);
    color: white;
}

.Connection.SystemOk {
    background-color: var(--mud-palette-success);
    color: white;
}

.Connection.Show {
    opacity: 1;
    transform: translateY(0);
}

.Connection.Hide ~ .page {
    transition: all 0.5s ease;
    transform: translateY(-35px);
}

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

.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: 1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 90vh;
}

.content::-webkit-scrollbar { width: 3px; }

.content::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 2px;
}

h1:focus { outline: none; }

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

.invalid { outline: 1px solid #e50000; }

.validation-message { color: #e50000; }

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

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

.status-bar-safe-area { display: none; }

.page-title {
    font-size: x-large;
    font-weight: 800;
    margin: 0;
    line-height: normal;
    color: var(--mud-palette-text-primary);
}

.custom-mudfab {
    position: fixed !important;
    bottom: 4rem;
    margin-bottom: 16px;
    right: 16px;
}

.custom_popover {
    border-radius: 5px !important;
    background-color: var(--mud-palette-drawer-background) !important;
    box-shadow: 4px 4px 20px 0px rgba(0, 0, 0, 0.26), 0px 0px 0px 1px rgb(255 255 255 / 25%) !important;
    color: var(--mud-palette-text-primary) !important;
}

.custom_popover .mud-divider { border-color: var(--mud-palette-text-primary) !important; }

.custom_popover .mud-list-padding { padding: 3px 0px 3px 0px !important; }

.custom_popover .mud-list-item { padding: 5px 12px 5px 12px; }

.custom_popover .mud-menu-item-text { font-weight: 600; }

.custom_popover .mud-list-item-icon {
    min-width: fit-content !important;
    padding-right: 12px !important;
}

.divider {
    display: block;
    width: 100%;
    border: .05rem solid var(--card-border-color);
    margin: 1rem 0;
}

/*Spinner*/

.spinner-container {
    display: flex;
    justify-content: center;
    height: 100vh;
    align-items: center;
    color: var(--mud-palette-primary);
}

.not-fullScreen {
    height: auto !important;
    padding: 2rem 0 !important;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #0000;
    border-right-color: var(--mud-palette-secondary);
    position: relative;
    animation: l24 1s infinite linear;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: inherit;
    animation: inherit;
    animation-duration: 2s;
}

.loader:after { animation-duration: 4s; }

@keyframes l24 {
    100% { transform: rotate(1turn) }
}

/*MudBlazor Personalization*/

.mud-button-group-horizontal:not(.mud-button-group-rtl) > .mud-button-root:not(:last-child), .mud-button-group-horizontal:not(.mud-button-group-rtl) > :not(:last-child) .mud-button-root {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.mud-button-group-horizontal:not(.mud-button-group-rtl) > .mud-button-root:not(:first-child), .mud-button-group-horizontal:not(.mud-button-group-rtl) > :not(:first-child) .mud-button-root {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.customDialog-form .mud-dialog-content {
    padding: 0 .75rem;
    margin: 0;
    overflow: hidden;
}

.custom-item-select { padding: 6px 16px; }

.custom-item-select .mud-typography-body1 {
    font-weight: 600;
    font-size: .9rem;
}

.container {
    padding-right: var(--m-page-x) !important;
    padding-left: var(--m-page-x) !important;
}

.lm-container {
    padding-right: calc(var(--m-page-x) * 0.5) !important;
    padding-left: calc(var(--m-page-x) * 0.5) !important;
}

.mud-message-box > .mud-dialog-title > h6 { font-weight: 800 !important; }

.mud-dialog-actions button {
    margin-left: .5rem !important;
    margin-right: .5rem !important;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: fixed;
        top: 0;
        height: env(safe-area-inset-top);
        width: 100%;
        z-index: 1;
        background-color: var(--mud-palette-surface);
    }

    .modal { padding-top: env(safe-area-inset-top); }

    .safe-area-bottom { margin-bottom: env(safe-area-inset-bottom) !important; }

    .pb-safe-area { padding-bottom: env(safe-area-inset-bottom) !important; }

    #app {
        margin-top: env(safe-area-inset-top);
        height: calc(100vh - env(safe-area-inset-top));
    }

    .flex-column, .navbar-brand { padding-left: env(safe-area-inset-left); }

    .customDialog-form .mud-dialog-content { margin-top: env(safe-area-inset-top); }
}