﻿#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;
}

.card-hoover {
    border: 2px solid transparent;
    transition: 0.3s;
    cursor: pointer;
}

.card-hoover:hover {
    border: 2px solid var(--mud-palette-primary);
    transition: 0.3s;
    cursor: pointer;
}

.list-preview-image {
    width: 100px;
    height: 100px;
    border-radius: 3px;
}

.drawings-list-item {
    border-radius: 3px;
    background-color: white;
    margin: 5px;
    padding: 9px;
    user-select: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.drawings-list-item:hover {
    border-radius: 3px;
    background-color: lightgray;
    transition: 0.3s;
}

.drawings-list-item.active {
    border-radius: 3px;
    background-color: var(--mud-palette-primary);
    transition: 0.3s;
    color: white;
}

.ly-stretch {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 100%;
}

.ly-center {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 100%;
    align-items: center;
    justify-items: center;
}

.ly-vertical {
    display: grid;
}

.ly-horizontal {
    display: grid;
    grid-auto-flow: column;
}

.ly-layers {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.ly-layers > * {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-row: 1/span 1;
    grid-column: 1/span 1;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.small-text {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: lighter;
    color: grey;
}

.configurator-status-frame {
    width: 100%;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    pointer-events: none;
}

.configurator-status-frame.warning {
    border: 4px solid orange;
}

.configurator-status-frame.error {
    border: 4px solid red;
}

.configurator-status-frame.ok {
    border: 4px solid transparent;
    animation: configurator-status-frame-ok-anim;
    animation-duration: 1.5s;
}

@keyframes configurator-status-frame-ok-anim {
    0% {
        border: 4px solid transparent;
    }

    10% {
        border: 4px solid #31FF1E;
    }

    50% {
        border: 4px solid #31FF1E;
    }

    100% {
        border: 4px solid transparent;
    }
}

.cf-viewer-tabsbg-model {
    background-color: transparent;
    backdrop-filter: none;
    visibility: hidden;
    pointer-events: none;
    transition: background-color 0.3s, backdrop-filter 0.3s, visibility 0.3s;
}

.cf-viewer-tabsbg-other {
    background-color: rgba(237,237,237,0.7);
    backdrop-filter: blur(5px);
    visibility: visible;
    pointer-events: auto;
    transition: background-color 1s, backdrop-filter 1s;
}

/* Enables MudCheckBox to be dense by applying Class="dense" to it. */
label.mud-checkbox.dense > .mud-icon-button {
    padding: 4px;
}

label.mud-radio.dense > .mud-icon-button {
    padding: 4px;
}

.nti-cf-scroll-shadows-v {
    background: linear-gradient(#ffffff 33%, rgba(255,255,255, 0)), linear-gradient(rgba(255,255,255, 0), #ffffff 66%) 0 100%, radial-gradient(farthest-side at 50% 0, rgba(163,163,163, 0.5), rgba(0,0,0,0)), radial-gradient(farthest-side at 50% 100%, rgba(163,163,163, 0.5), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
    background-size: 100% 42px, 100% 42px, 100% 14px, 100% 14px;
}

.nti-cf-checkbox {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nti-cf-checkbox-frame {
    display: inline-flex;
    vertical-align: middle;
    position: relative;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    color: rgb(220, 220, 220);
}

.nti-cf-checkbox-frame.dense {
    display: inline-flex;
    vertical-align: baseline;
    position: relative;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    color: rgb(220, 220, 220);
}

/* Fix for problem with tooltip inside tables https://github.com/MudBlazor/MudBlazor/issues/2351 */
td .portal {
    height: unset;
}

