/* --- Stili del template (errori e validazione) --- */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

/* Indicatore di caricamento iniziale (prima che Blazor parta) */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 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: #03173d;
            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, "Caricamento");
    }

/* --- Interventi --- */
.nota { color: #666; font-size: 0.9rem; }
.ok { color: #1b7f3b; }
.ko { color: #b3261e; }
.centro { display: flex; justify-content: center; padding: 1rem; }

/* Scheda di un intervento: bordo sinistro colorato in base alla priorità */
.intervento { border-left: 5px solid #bdbdbd; cursor: pointer; }
.intervento.prio-media { border-left-color: #f9a825; }
.intervento.prio-alta { border-left-color: #c62828; }
.intervento .riga-alta { display: flex; justify-content: space-between; align-items: center; }
.intervento .titolo { font-weight: 600; line-height: 1.3; }

/* Testi lunghi: mantengono gli a capo originali */
.testo-lungo { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; }

/* Elenco "etichetta: valore" del dettaglio */
.campi { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0; }
.campi dt { color: #666; }
.campi dd { margin: 0; }
