@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html, body {
    height: 100%;
    background-color: #fbfbfb;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif !important;
    touch-action: pan-x pan-y;
    overscroll-behavior: auto none !important;
}

.dx-device-generic {
    touch-action: pan-x pan-y;
}

.dx-device-generic .dx-scrollview-content {
    touch-action: pan-x pan-y;
}

.page {
    font-family: 'Poppins', sans-serif !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

.map-button {
    height: 50px;
    width: 50px;
    border-radius: 0.5rem;
    text-align: center;
}

#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;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.dxbl-menu {
    z-index: 1;
    position: fixed;
    width: 96vw;
    margin: 1vh 2vw;
    border-radius: 0.5rem;
}

.dxbl-menu-list-item {
    padding: 0.5rem 0;
}

.dxbl-menu-item-text {
    font-size: 1rem;
}

.combo-dropdown {
    max-height: 600px !important;
}

    .combo-dropdown .dxbl-list-box-render-container {
        max-height: 600px !important;
    }

.text-small {
    font-size: 0.8rem;
}

.text-xsmall {
    font-size: 0.55rem;
    font-weight: 600;
}

.cursor-pointer {
    cursor: pointer;
}

.glass {
    background-color: #ffffff88;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid #dedede;
}

.positivo {
    background-color: #aaf2bd;
    color: #005c00;
}
.negativo {
    background-color: #f2c2c2;
    color: #9c0000;
}

/*ANIMATIONS*/

.fade-transition {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.wiggle {
    animation: wiggle 500ms infinite;
}

.fade-flash {
    animation: fade-flash 0.5s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes fade-flash {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
        background-color: transparent;
    }

    100% {
        opacity: 1;
    }
}

/* Elements animated for page transitions */
.animate-in {
    animation: fade-in 0.3s ease-in-out;
}

/* For large screens, no truncation */
@media (min-width: 992px) {
    .intestazione {
        max-width: none;
    }
}

/* For medium screens (tablets), moderate truncation */
@media (min-width: 768px) and (max-width: 991px) {
    .intestazione {
        max-width: 600px;
    }
}

/* For small screens (mobile), apply truncation */
@media (max-width: 767px) {
    .intestazione {
        max-width: 200px;
    }
}
