html, body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Testo scritto dagli utenti: mantiene gli a capo e spezza le parole lunghe. */
.testo-utente {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.riga-cliccabile {
    cursor: pointer;
}

.riga-mia td:first-child {
    box-shadow: inset 4px 0 0 var(--mud-palette-primary);
}

.messaggio-interno {
    background-color: #fff8e1 !important;
}

.messaggio-richiesta {
    border-left: 4px solid var(--mud-palette-warning);
}

.messaggio-soluzione {
    border-left: 4px solid var(--mud-palette-success);
}

/* Pagine di accesso (statiche, senza componenti interattivi). */
.account-pagina {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    padding: 16px;
}

.account-riquadro {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    padding: 32px;
    color: #222;
}

.account-marchio {
    color: #1565c0;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.account-riquadro h1 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 20px;
}

.account-riquadro label {
    display: block;
    font-size: 14px;
    margin: 16px 0 6px;
}

.account-riquadro input[type=email],
.account-riquadro input[type=password],
.account-riquadro input[type=text] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #b0b8c1;
    border-radius: 4px;
    box-sizing: border-box;
}

.account-riquadro input:focus-visible {
    outline: 2px solid #1565c0;
    outline-offset: 1px;
}

.account-riquadro button[type=submit] {
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #1565c0;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.account-riquadro button[type=submit]:hover {
    background: #0d4f9e;
}

.account-riquadro .account-spunta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-nota {
    color: #5f6b7a;
    font-size: 13px;
    margin: 6px 0 0;
}

.account-link {
    margin: 20px 0 0;
    font-size: 14px;
}

.account-link a {
    color: #1565c0;
}

.account-errore,
.account-ok {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin: 0 0 8px;
}

.account-errore {
    background: #fdecea;
    color: #8a1c13;
}

.account-ok {
    background: #e8f5e9;
    color: #1b5e20;
}

.validation-message {
    color: #b3261e;
    font-size: 13px;
    margin-top: 4px;
}

#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: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.dettagli {
    margin: 0;
}

.dettagli dt {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
    margin-top: 8px;
}

.dettagli dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Icona del software accanto al nome. */
.con-icona {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icona-software {
    flex: none;
    object-fit: contain;
}

/* Logo del cliente: su fondo bianco per restare leggibile anche sulla barra colorata. */
.logo-cliente {
    flex: none;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
    box-sizing: content-box;
}

.logo-cliente-generico {
    color: #5f6b7a;
}
