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

:root {
    font-size: var(--rz-root-font-size);
    --rz-white: #ffffff;
    --rz-black: #000000;
    --rz-base: #eeeeee;
    --rz-base-50: #fafafa;
    --rz-base-100: #f5f5f5;
    --rz-base-200: #eeeeee;
    --rz-base-300: #e0e0e0;
    --rz-base-400: #bdbdbd;
    --rz-base-500: #9e9e9e;
    --rz-base-600: #757575;
    --rz-base-700: #616161;
    --rz-base-800: #424242;
    --rz-base-900: #212121;
    --rz-base-light: #f5f5f5;
    --rz-base-lighter: #ffffff;
    --rz-base-dark: #757575;
    --rz-base-darker: #212121;
    --rz-primary: #009688;
    --rz-primary-light: #4db6ac;
    --rz-primary-lighter: rgba(0, 150, 136, 0.2);
    --rz-primary-dark: #00796a;
    --rz-primary-darker: #004d40;
    --rz-secondary: #3361ca;
    --rz-secondary-light: #5b80d4;
    --rz-secondary-lighter: rgba(51,97,202,0.12);
    --rz-secondary-dark: #284da1;
    --rz-secondary-darker: #224189;
    --rz-info: #2196f3;
    --rz-info-light: #64b5f6;
    --rz-info-lighter: rgba(30, 147, 243, 0.2);
    --rz-info-dark: #1565c0;
    --rz-info-darker: #0d47a1;
    --rz-success: #4caf50;
    --rz-success-light: #81c784;
    --rz-success-lighter: rgba(76, 175, 79, 0.2);
    --rz-success-dark: #2e7d31;
    --rz-success-darker: #1b5e20;
    --rz-warning: #ff9800;
    --rz-warning-light: #ffb74d;
    --rz-warning-lighter: rgba(255, 152, 0, 0.2);
    --rz-warning-dark: #f57c00;
    --rz-warning-darker: #e65100;
    --rz-danger: #f44336;
    --rz-danger-light: #e57272;
    --rz-danger-lighter: rgba(244, 67, 54, 0.2);
    --rz-danger-dark: #d32f2f;
    --rz-danger-darker: #b71b1b;
    --rz-on-base: #212121;
    --rz-on-base-light: #212121;
    --rz-on-base-lighter: #212121;
    --rz-on-base-dark: #ffffff;
    --rz-on-base-darker: #ffffff;
    --rz-on-primary: #ffffff;
    --rz-on-primary-lighter: #009688;
    --rz-on-primary-light: #ffffff;
    --rz-on-primary-dark: #ffffff;
    --rz-on-primary-darker: #ffffff;
    --rz-on-secondary: #ffffff;
    --rz-on-secondary-lighter: #3361ca;
    --rz-on-secondary-light: #ffffff;
    --rz-on-secondary-dark: #ffffff;
    --rz-on-secondary-darker: #ffffff;
    --rz-on-info: #ffffff;
    --rz-on-info-lighter: #2196f3;
    --rz-on-info-light: #ffffff;
    --rz-on-info-dark: #ffffff;
    --rz-on-info-darker: #ffffff;
    --rz-on-success: #ffffff;
    --rz-on-success-lighter: #4caf50;
    --rz-on-success-light: #ffffff;
    --rz-on-success-dark: #ffffff;
    --rz-on-success-darker: #ffffff;
    --rz-on-warning: #ffffff;
    --rz-on-warning-lighter: #ff9800;
    --rz-on-warning-light: #ffffff;
    --rz-on-warning-dark: #ffffff;
    --rz-on-warning-darker: #ffffff;
    --rz-on-danger: #ffffff;
    --rz-on-danger-lighter: #f44336;
    --rz-on-danger-light: #ffffff;
    --rz-on-danger-dark: #ffffff;
    --rz-on-danger-darker: #ffffff;
    --rz-series-1: #b6f075;
    --rz-series-2: #75f090;
    --rz-series-3: #75f0ec;
    --rz-series-4: #7598f0;
    --rz-series-5: #af75f0;
    --rz-series-6: #f075d5;
    --rz-series-7: #f07579;
    --rz-series-8: #f0cd75;
    --rz-series-9: #9eeb47;
    --rz-series-10: #47eb6b;
    --rz-series-11: #47ebe6;
    --rz-series-12: #4775eb;
    --rz-series-13: #9447eb;
    --rz-series-14: #eb47c7;
    --rz-series-15: #eb474d;
    --rz-series-16: #ebbd47;
    --rz-series-17: #7eb83d;
    --rz-series-18: #3db858;
    --rz-series-19: #3db8b4;
    --rz-series-20: #3d60b8;
    --rz-series-21: #773db8;
    --rz-series-22: #b83d9d;
    --rz-series-23: #b83d41;
    --rz-series-24: #b8953d;
    --rz-upload-files-background-color: white;
    --rz-upload-button-bar-background-color: white;
    --rz-upload-button-bar-border-radius: 0;
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

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

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.rz-login .rz-button[type="submit"] {
    background-color: #009688 !important;
    color: white !important;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 12px 24px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.rz-login .rz-button[type="submit"]:hover {
    background-color: #00796b !important;
}

.menu-sublevel {
    margin-left: 20px;
}

/* Alert non letto */
tr.alert-non-letto {
    background-color: #fff3cd !important; /* Giallo chiaro */
    font-weight: bold;
    color: #856404; /* Testo marrone scuro */
}

/* Alert letto */
.alert-letto {
    background-color: #f8f9fa !important; /* Grigio chiarissimo */
    color: #6c757d; /* Grigio medio */
}

/*.rz-grid-table-striped tbody > tr:not(.rz-expanded-row-content):nth-child(odd) > td*/

/* Nasconde la lista file */
.custom-upload-button .rz-fileupload-files {
    display: none !important;
}

/* Rende il bottone Choose identico a un RadzenButton */
.custom-upload-button {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -2px !important;
}

    .custom-upload-button .rz-button {
        background-color: var(--rz-primary);
        color: var(--rz-on-primary);
        border: none;
        border-radius: 4px !important;
        padding: 6px 12px !important; /* Match con Medium button */
        font-size: 14px !important;
        height: 36px !important; /* Altezza standard ButtonSize.Medium */
        display: inline-flex !important;
        align-items: center !important;
        box-shadow: none !important;
        transition: background-color 0.2s ease !important;
    }

        /* Effetto shade lighter (hover) */
        .custom-upload-button .rz-button:hover {
            background-color: var(--rz-primary-light) !important;
        }

        /* Applica stile "Flat" */
        .custom-upload-button .rz-button.rz-button-flat {
            background-color: var(--rz-primary) !important;
            box-shadow: none !important;
        }

        /* Icona */
        .custom-upload-button .rz-button .rz-button-icon {
            font-size: 18px !important;
        }

    .custom-upload-button .rz-fileupload-buttonbar {
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
    }

.fatture-intergruppo-tabs {
    margin-bottom: 0.15rem !important;
}

.fatture-intergruppo-tabs .rz-tabview-panels,
.fatture-intergruppo-tabs .rz-tabview-panel {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fatture-stato-tabs .rz-tabview-nav {
    margin-top: 0 !important;
}
