@import url('fontawesome-free-6.4.2-web/css/all.css');

* {
    -moz-border-radius: 0 !important;
    -ms-border-radius: 0 !important;
    -o-border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    border-radius: 0 !important;
}

.unselectable {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -webkit-touch-callout: none;
	-moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.navbar.bg-primary {
    background-image: none;
}

body {
    accent-color: #008cba; /* TODO: test colore checkbox, radiobutton, ecc. */
}

html, body {
}

html, body, #app {
    height: 100%;
    overflow: hidden;
}

#app {
    background-color: inherit;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

.toast {
    color: #856404;
    background-color: #fff3cd;
    z-index: 999999;
    position: absolute;
    bottom: 0;
}

/* Popup edit form */
.popup-edit-form .dxbl-modal-header.dxbl-popup-header {
    color: var(--bs-primary) !important;
}

/* Popup edit form */
@media (min-width: 800px) {
    .dxbl-modal > .dxbl-modal-root > .dxbl-popup {
        max-width: 80% !important;
    }
}

.popup-edit-form .dxbl-modal-header.dxbl-popup-header {
    color: var(--bs-primary) !important;
}

/* DxWindow headers */
.danger-alert {
    background-color: #cc0000 !important;
    color: white !important;
    width: 100%;
    height: 100%;
}
.warning-alert {
    background-color: var(--bs-warning) !important;
    color: white !important;
    width: 100%;
    height: 100%;
}
.info-alert {
    background-color: var(--bs-primary) !important;
    color: white !important;
    width: 100%;
    height: 100%;
}


/* Personalizzazioni Tabs */
.dxbl-grid > .dxbl-scroll-viewer {
    height: 100px; /* Questa assegnazione fittizia consente di attivare la barra di scorrimento verticale del componente */
}

.dxbl-tabs.dxbl-tabs-top > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled),
.dxbl-tabs.dxbl-tabs-top > .dxbl-tabs-tablist > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled) {
    border: 0;
}

.dxbl-tabs > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-active):not(.dxbl-disabled):not(:disabled):not(.dxbl-disabled):not(:disabled):hover,
.dxbl-tabs > .dxbl-tabs-tablist > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-active):not(.dxbl-disabled):not(:disabled):not(.dxbl-disabled):not(:disabled):hover {
    position: unset;
    background-color: white;
    border-bottom-width: 4px;
    border-bottom-style: solid;
    border-bottom-color: lightgray;
}

.dxbl-tabs.dxbl-tabs-top > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled).dxbl-active:not(.dxbl-disabled):not(:disabled),
.dxbl-tabs.dxbl-tabs-top > .dxbl-tabs-tablist > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled).dxbl-active:not(.dxbl-disabled):not(:disabled) {
    border-bottom-width: 4px;
    border-bottom-style: solid;
    border-bottom-color: var(--bs-primary-rgb);
}

.dxbl-tabs.dxbl-tabs-top > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled).dxbl-active:not(.dxbl-disabled):not(:disabled):hover,
.dxbl-tabs.dxbl-tabs-top > .dxbl-tabs-tablist > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled).dxbl-active:not(.dxbl-disabled):not(:disabled):hover {
    border-bottom-color: #c00;
    color: #c00;
}

.fas, .fa-classic, .fa-solid, .far, .fa-regular {
    width: 22px;
}


/* IconCssClass color */
.ts-dred {
    color: #cc0000 !important;
}

.ts-green {
    color: #008800 !important;
}

.ts-dyellow {
    color: #ffcc00 !important;
}

.ts-orange {
    color: #ff9900 !important;
}

.ts-gray {
    color: #bbbbbb !important;
}

.ts-black {
    color: #000000 !important;
}

.ts-white {
    color: #ffffff !important;
}

.ts-fuchsia {
    color: #ff00ff !important;
}

.ts-purple {
    color: #ee82ee !important;
}

.ts-lgreen {
    color: #90ee90 !important;
}

.ts-yellow {
    color: #ffff00 !important;
}

.ts-red {
    color: #ff0000 !important;
}

.ts-lime {
    color: #00ff00 !important;
}

.ts-blue {
    color: #005eb8 !important;
}

.ts-azure {
    color: #2fa4e7 !important;
}

.ts-brown {
    color: #9e3e00 !important;
}

.ts-lgray {
    color: #cccccc !important;
}

.ts-dgray {
    color: #777777 !important;
}

.ts-aqua {
    color: #00ffff !important;
}

.ts-pink {
    color: #eb9bd8 !important;
}


/* FadIn/Out */
.fade-out {
    -webkit-animation: fade-out 2s ease-in forwards;
    -moz-animation: fade-out 2s ease-in forwards;
    -o-animation: fade-out 2s ease-in forwards;
    -ms-animation: fade-out 2s ease-in forwards;
    animation: fade-out 2s ease-in forwards;
}

.fade-in {
    -webkit-animation: fade-in 1s ease-in forwards;
    -moz-animation: fade-in 1s ease-in forwards;
    -o-animation: fade-in 1s ease-in forwards;
    -ms-animation: fade-in 1s ease-in forwards;
    animation: fade-in 1s ease-in forwards;
}

/* Fad out */
@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-moz-keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-o-keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-ms-keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Fade in */
@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-ms-keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}