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

:root {
    color-scheme: light;
    min-height: 100vh;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: auto;
}

#app {
    height: 100vh;
}

h1:focus {
    outline: none;
}

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

.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: #ffe0b2;
    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;
    color: #000000;
}

#blazor-error-ui a {
    color: #2196f3;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    color: #000;
    text-decoration: none;
}

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

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

.app-loading-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.app-loading-wrapper .loading-progress-wrapper {
    position: relative;
    width: 12rem;
    height: 12rem;
}

.app-loading-wrapper .loading-logo {
    width: 40vw;
    min-width: 300px;
    max-width: 400px;
    height: 100px;
    background: url("../images/logo.webp") no-repeat center center;
    background-size: contain;
}

.app-loading-wrapper .loading-progress-wrapper .loading-progress {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.app-loading-wrapper .loading-progress-wrapper .loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    inset: 5.1rem 0 auto 0.2rem;
}

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


.height-0 {
    height: 0;
}

.width-0 {
    width: 0;
}

.min-width-0 {
    min-width: 0;
}

.min-height-0 {
    min-height: 0;
}

.width-full {
    width: 100%;
}

.height-full {
    height: 100%;
}

.opacity-5 {
    opacity: 0.5 !important;
}

.absolute-full {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.avatar-profile {
    width: 100px !important;
    height: 100px !important;
    font-size: 4em !important;
}

.upload-paper * {
}

.upload-paper.hidden {
    visibility: hidden;
}

.upload-paper.hidden div {
    visibility: visible;
}

.upload-paper.visible {
    visibility: visible;
}

.disable-pointer-events {
    pointer-events: none;
}

/* Fullscreen fix for dialogs */
.mud-dialog.mud-dialog-fullscreen > div.outline-none {
    flex-grow: 1;
}

.mud-dialog.mud-dialog-fullscreen > div.outline-none > div {
    height: 100%;
}

/* Table select */
.table-selected {
    background-color: var(--mud-palette-primary-hover) !important;
}

.mud-table-toolbar-flexible .mud-table-toolbar {
    margin-top: 16px;
    margin-bottom: 16px;
    height: auto !important;
}

/*.table-selected > td {*/
/*    color: white !important;*/
/*}*/

/*.table-selected > td .mud-input {*/
/*    color: white !important;*/
/*}*/
.cursor-pointer {
    cursor: pointer !important;
}

.filter-toggle-button.toggle-visible {
    background-color: rgba(255,255,255,0.05) !important;
}

.filter-toggle-button.toggle-invisible {
    color: rgba(255,255,255,0.5) !important;
}

/* Override dialog default styles */
.mud-dialog .mud-dialog-actions {
    margin: 4px 18px 12px 0;
}

.mud-dialog-container .mud-dialog {
    box-shadow: none;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;                                    /* TODO Override default --mud-default-borderradius */
}

/* Support for fixed size tabs with center flexbox */
.tabs-flexible.mud-tabs {
    height: 100%;
}

.tabs-flexible .mud-tabs-panels {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.overflow-scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
}

.overflow-scroll-y {
    overflow-x: hidden;
    overflow-y: auto;
}

.mud-button .mud-button-label {
    letter-spacing: normal;
    font-weight: 600;
    text-transform: none;
}

.mud-button .mud-button-label .mud-button-icon-start, .mud-button .mud-button-label .mud-button-icon-end {
    margin-top: -2px;
}

.mud-list-item.item-selected {
    background-color: var(--mud-palette-action-default-hover);
}

.mud-list-item .show-on-hover-or-selected {
    transition-property: opacity, transform;
    transition-duration: var(--transition-duration);
    transition-timing-function: var(--transition-ease);
    opacity: 0;
    visibility: hidden;
    transform: var(--transition-scale-in);
}

.mud-list-item:hover .show-on-hover-or-selected {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.mud-list-item.item-selected .show-on-hover-or-selected {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

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

.input-align-center .mud-input-label-outlined {
    left: 50%;
    text-align: center;
    transform: translate(-50%, 20px) scale(1);
}

.input-align-center .mud-shrink~label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined,
.input-align-center .mud-input:focus-within~label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(-37.5%, -6px) scale(.75);
}

.mud-container {
    margin-top: 28px;
}

.mud-popover.popover-outlined {
    box-shadow: none;
    border: 1px solid var(--mud-palette-lines-default);
}

.no-border-radius-top {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.mud-popover.profile-popover {
    margin-top: 0;
    background-color: var(--mud-palette-drawer-background);
    border-top: none;
}

.mud-popover.profile-popover .mud-list {
    padding-top: 0;
    padding-bottom: 0;
}

.mud-popover.mud-popover-open {
    box-shadow: 0 0 8px 2px rgba(0,0,0,0.15);
    border: 1px solid var(--mud-palette-lines-default);
}

.valign-top {
    vertical-align: top;
}

.valign-center {
    vertical-align: center;
}

.valign-bottom {
    vertical-align: bottom;
}

.margin-auto {
    margin: auto;
}

.parent-centered-main-panel {
    max-width: 700px;
}

.centered-main-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 2em !important;
    box-shadow: 0 0 15px 0 rgba(0,0,0,0.1);
}

.full-width-dialog .mud-dialog-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Grid helpers */
.g-gap-0 {
    grid-gap: 0 !important;
}

.g-gap-1 {
    grid-gap: .25rem !important;
}

.g-gap-2 {
    grid-gap: .5rem !important;
}

.g-gap-3 {
    grid-gap: 1rem !important;
}

.g-gap-4 {
    grid-gap: 1.5rem !important;
}

.g-gap-5 {
    grid-gap: 3rem !important;
}

.gr-gap-0 {
    grid-row-gap: 0 !important;
}

.gr-gap-1 {
    grid-row-gap: .25rem !important;
}

.gr-gap-2 {
    grid-row-gap: .5rem !important;
}

.gr-gap-3 {
    grid-row-gap: 1rem !important;
}

.gr-gap-4 {
    grid-row-gap: 1.5rem !important;
}

.gr-gap-5 {
    grid-row-gap: 3rem !important;
}

.gc-gap-0 {
    grid-column-gap: 0 !important;
}

.gc-gap-1 {
    grid-column-gap: .25rem !important;
}

.gc-gap-2 {
    grid-column-gap: .5rem !important;
}

.gc-gap-3 {
    grid-column-gap: 1rem !important;
}

.gc-gap-4 {
    grid-column-gap: 1.5rem !important;
}

.gc-gap-5 {
    grid-column-gap: 3rem !important;
}

.gtc-auto-1 {
    grid-template-columns: auto !important;
}

.gtc-auto-2 {
    grid-template-columns: repeat(2, auto) !important;
}

.gtc-auto-3 {
    grid-template-columns: repeat(3, auto) !important;
}

.gtc-auto-4 {
    grid-template-columns: repeat(4, auto) !important;
}

.lh-05 {
    line-height: 0.5rem !important;
}

.lh-06 {
    line-height: 0.6rem !important;
}

.lh-07 {
    line-height: 0.7rem !important;
}

.lh-08 {
    line-height: 0.8rem !important;
}

.lh-09 {
    line-height: 0.9rem !important;
}

.lh-10 {
    line-height: 1rem !important;
}

.lh-11 {
    line-height: 1.1rem !important;
}

.lh-12 {
    line-height: 1.2rem !important;
}

.lh-13 {
    line-height: 1.3rem !important;
}

.lh-14 {
    line-height: 1.4rem !important;
}

.lh-15 {
    line-height: 1.5rem !important;
}

.form-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-row-gap: 2.5rem;
    grid-column-gap: 2rem;
}

.form-grid > *:nth-child(even) {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ellipsis-text {
    text-overflow: ellipsis; 
    white-space: nowrap; 
    overflow: hidden;
}

.max-width-0 {
    max-width: 0;
}

.table-dense-padding {
    padding-right: 8px !important;
    padding-left: 8px !important;
    padding-inline-start: 8px !important;
    padding-inline-end: 8px !important;
}

.mud-expand-panel.no-padding > .mud-expand-panel-header {
    padding: 0 !important;
}

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