html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 1;
    width: 180px !important;
    height: 70px !important;
    /* rimuovi la maschera monocromatica */
    -webkit-mask: none !important;
    mask: none !important;
    background-color: transparent !important;
    /* mostra l’SVG con i suoi colori originali */
    background-image: url('../images/LogoDiamanteMargini.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
}

.dxbs-splash-screen-logo  {
    width: 180px !important; /* stesse misure che usi nell’header */
    height: 60px !important;
    background-size: contain; /* preserva il rapporto */
}


/*.header-logo {
    flex-shrink: 1;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 180px;
    height: 60px;
}*/

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.xaf-view-caption-lg {
    width: fit-content;
}

/* Stili per il logo personalizzato dell'utente */
.header-logo.mx-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header-logo.mx-3 img {
    transition: opacity 0.2s ease-in-out;
}

.header-logo.mx-3 img:hover {
    opacity: 0.8;
}

/* Override del background-image predefinito di XAF */
.header-logo.mx-3 {
    background-image: none !important;
    background: transparent !important;
}

.alert-warning {
    --bs-alert-bg: rgb(241 90 1 / 89%) !important;
    /*font-size: x-large;*/
    font-weight: 600;
}

.alert-primary {
    --bs-alert-bg: rgb(241 90 1 / 89%) !important;
    /*font-size: x-large;*/
    font-weight: 600;
}

.alert-secondary {
    --bs-alert-bg: rgb(241 90 1 / 89%) !important;
    /*font-size: x-large;*/
    font-weight: 600;
}

.alert-success {
    --bs-alert-bg: rgb(241 90 1 / 89%) !important;
    /*font-size: x-large;*/
    font-weight: 600;
}

.alert-info {
    --bs-alert-bg: rgb(241 90 1 / 89%) !important;
    /*font-size: x-large;*/
    font-weight: 600;
}

.alert-danger {
    --bs-alert-bg: rgb(241 90 1 / 89%) !important;
    /*font-size: x-large;*/
    font-weight: 600;
}

body.debug-mode::before {
    content: "DEBUG";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 200px;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.05);
    z-index: -1;
    pointer-events: none;
    user-select: none;
}



