/* Stili extra app (placeholder per overrides puntuali) */

/* ===== Spinner icona per bottoni export ===== */
@keyframes sl-spin { to { transform: rotate(360deg); } }
.sl-icon-spin { display: inline-block; animation: sl-spin .7s linear infinite; }

/* ===== Riga espansa griglia recap prodotti ===== */
tr.sl-row-expanded td,
tr.sl-row-expanded:hover td { background-color: #fffde7 !important; }

/* ===== Header colonne con testo a capo ===== */
.rz-column-title { white-space: normal !important; line-height: 1.25 !important; text-align: center !important; }

/* ===== DataGrid: intestazioni bold, righe alternate, hover ===== */

/* Intestazioni colonne in grassetto + no troncamento */
.rz-grid-table th .rz-column-title,
.rz-grid-table th span.rz-column-title {
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* La cella header non tronca e si allarga quanto serve al testo */
.rz-grid-table th {
    white-space: nowrap !important;
}

/* Righe alternate */
.rz-grid-table tbody tr:nth-child(even) > td {
    background-color: rgba(227, 24, 55, 0.04) !important;
}
.rz-grid-table tbody tr:nth-child(odd) > td {
    background-color: #ffffff !important;
}

/* Hover riga */
.rz-grid-table tbody tr:hover > td {
    background-color: rgba(227, 24, 55, 0.11) !important;
    cursor: default;
}

/* ===== Celle di griglia con il testo a capo =====
   Radzen tronca il contenuto delle celle con i puntini. Va bene per un nome, non per una
   colonna che contiene un messaggio da leggere: «Modalita' di presentazione MIPAAF non
   definita su p…» non dice niente. Si applica per colonna, con CssClass, non a tutte le
   celle: altrove il troncamento tiene le righe basse e la griglia leggibile.
   La regola vale solo sulle celle (td), cosi' le intestazioni restano su una riga sola. */
.rz-grid-table td.sl-cella-multilinea,
.rz-grid-table td.sl-cella-multilinea .rz-cell-data {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
}

/* ===== Campi data più piccoli =====
   Nei RadzenDatePicker il testo risultava più grande di quello delle tendine e delle caselle
   di testo accanto (richiesta dell'utente, 13/11/2026). Lo Style="font-size:13px" messo sul
   componente non arriva all'input interno, che prende la misura dal tema Radzen. */
.rz-datepicker:has(.rz-datepicker-trigger) > .rz-inputtext {
    font-size: small;
}



/* Scheduler: riduce padding interno degli appointment per far entrare il testo */

.rz-event {
    height: 2em !important;
}

.rz-appointment-content {
    padding: 1px 3px !important;
    overflow: hidden !important;
}
.rz-appointment {
    min-height: 18px !important;
}

#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;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}
.loading-progress circle {
    fill: none;
    stroke: #E31837;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #E31837;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    color: #E31837;
    font-size: 16px;
    font-weight: 600;
}
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Caricamento Salumitalia Ispezioni...");
}
