﻿
.errorMessage {
    color: red;
    padding: 10px 0px;
}
.errorMessage:empty {
display: none;
}
div.hideIfEmpty:empty {
    display: none;
}

span.validImage {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(https://cdn.hsystemcontent.com/images/128.png);
    background-size: cover; /* Ensures the image covers the span */
    background-position: center;
}
span.notValidImage {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(https://cdn.hsystemcontent.com/images/131.png);
    background-size: cover; /* Ensures the image covers the span */
    background-position: center;
}
.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.visible {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}


/* Modal hack to compensate for removed scrollbar */
body.no-scroll {
    overflow: hidden; /* Hide the scrollbar */
    padding-right: var(--scrollbar-width); /* Compensate for scrollbar width */
}
/* Style for the loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

/* Style for full-page overlays */
.full-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
