﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    overscroll-behavior-y: contain;
}

body .pwa-updater[b-pwa-updater] {
    --pwa-updater-font-size: 16px;
    --pwa-updater-bar-height: 48px;
}

.floating-fab {
    position: fixed !important;
    bottom: 1em;
    right: 1em;
}

.div-scroll {
    overflow-y: scroll;
    scrollbar-width: none;
}

#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;
}

@media print {
    body * {
        visibility: hidden;
    }

    #statsPrint, #statsPrint * {
        visibility: visible;
    }

    #statsPrint {
        position: absolute;
        left: 0;
        top: 0;
    }

    #journalPrint, #journalPrint * {
        visibility: visible;
    }

    #journalPrint {
        position: absolute;
        left: 0;
        top: 0;

        .image-container {
            max-width: 8cm;

            .actions {
                display: none;
            }
        }
    }
}

.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-icon {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 2.5rem) 0 auto 0.2rem;
}

.loading-progress-icon:after {
    content: url("/favicon.ico");
}

/*noinspection CssUnresolvedCustomProperty*/
.opener-button-badge {
    background-color: var(--badge-background-color) !important;
    color: var(--mud-palette-primary-text) !important;
}