/* /Components/AzioniRapide/ChiusuraGiornata.razor.rz.scp.css */
/* Layout base - Segue le istruzioni layout-agent.instructions.md */
.pagina[b-gklbguz259] {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fisso[b-gklbguz259] {
    flex: 0 0 auto;
}

.contenuto-scroll[b-gklbguz259] {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ITEM 1 - Header con pulsante chiusura */
.item1[b-gklbguz259] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chiusura-header[b-gklbguz259] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.chiusura-header-left h3[b-gklbguz259] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.chiusura-header-left h3 i[b-gklbguz259] {
    margin-right: 0.5rem;
}

.chiusura-header-left .agente-info[b-gklbguz259] {
    margin: 0.5rem 0 0 0;
    padding-left: 1.95rem; /* Allineato con il testo (dopo icona + margin) */
    font-size: 0.95rem;
    color: white;
    opacity: 0.95;
    font-weight: 400;
}

.chiusura-header-right[b-gklbguz259] {
    flex-shrink: 0;
}

/* ITEM 3 - Footer con pulsante chiusura */
.item3[b-gklbguz259] {
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
    padding: 1rem 1.5rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.chiusura-footer[b-gklbguz259] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-summary[b-gklbguz259] {
    font-size: 1.1rem;
    color: #495057;
}

/* Contenuto principale */
.chiusura-content[b-gklbguz259] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Griglia KPI Cards */
.chiusura-kpi-grid[b-gklbguz259] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* KPI Cards */
.kpi-card[b-gklbguz259] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover[b-gklbguz259] {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.kpi-card-header[b-gklbguz259] {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.kpi-card-header i[b-gklbguz259] {
    font-size: 1.2rem;
}

.kpi-card-body[b-gklbguz259] {
    padding: 1.5rem;
    background: white;
}

.kpi-value[b-gklbguz259] {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kpi-label[b-gklbguz259] {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.kpi-amount[b-gklbguz259] {
    font-size: 1.3rem;
    font-weight: 600;
    color: #28a745;
}

.kpi-detail[b-gklbguz259] {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Colori specifici per card */
.kpi-card-ordini .kpi-card-header[b-gklbguz259] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.kpi-card-incassi .kpi-card-header[b-gklbguz259] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.kpi-card-articoli .kpi-card-header[b-gklbguz259] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.kpi-card-clienti .kpi-card-header[b-gklbguz259] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.kpi-card-ore .kpi-card-header[b-gklbguz259] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.kpi-card-medio .kpi-card-header[b-gklbguz259] {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.kpi-card-km .kpi-card-header[b-gklbguz259] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Responsive */
@media (max-width: 1200px) {
    .chiusura-kpi-grid[b-gklbguz259] {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .chiusura-header[b-gklbguz259],
    .chiusura-footer[b-gklbguz259] {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .chiusura-header-right[b-gklbguz259],
    .chiusura-footer-right[b-gklbguz259] {
        width: 100%;
    }

    .chiusura-kpi-grid[b-gklbguz259] {
        grid-template-columns: 1fr;
    }

    .kpi-value[b-gklbguz259] {
        font-size: 2rem;
    }
}
/* /Components/AzioniRapide/ClientiFuoriFido.razor.rz.scp.css */
/* ==========================================================================
   Clienti fuori fido - azione rapida della dashboard agente
   Palette VIOLA della card "Clienti Fuori Fido"; accenti rosso (fido superato)
   e ambra (partite oltre il limite), verde per i clienti rientrati nei limiti.
   Pensata per lo smartphone: testata compatta, elenco che occupa tutta
   l'altezza disponibile, righe su due righe, tocco sulla riga.
   ========================================================================== */

.ff-page[b-8cdfvoe2ii] {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Header compatto: titolo + riepilogo, pulsante ricarica ===== */
.ff-header[b-8cdfvoe2ii] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    border-radius: 12px;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.25);
    color: white;
}

.ff-header-main[b-8cdfvoe2ii] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.ff-header-icon[b-8cdfvoe2ii] {
    position: relative;
    flex-shrink: 0;
    font-size: 1.4rem;
    display: inline-flex;
    line-height: 1;
}

.ff-header-icon-badge[b-8cdfvoe2ii] {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fbbf24;
    color: #78350f;
    border: 2px solid #5b21b6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-header-icon-badge i[b-8cdfvoe2ii] {
    font-size: 0.42rem;
    line-height: 1;
}

.ff-header-testi[b-8cdfvoe2ii] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ff-header-titolo[b-8cdfvoe2ii] {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-header-sub[b-8cdfvoe2ii] {
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-header-btn[b-8cdfvoe2ii] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ff-header-btn:hover:not(:disabled)[b-8cdfvoe2ii] {
    background: rgba(255, 255, 255, 0.28);
}

.ff-header-btn:disabled[b-8cdfvoe2ii] {
    opacity: 0.5;
    cursor: default;
}

/* ===== Ricerca + ordinamento su una riga ===== */
.ff-filtri[b-8cdfvoe2ii] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

[b-8cdfvoe2ii] .ff-ricerca-box {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
}

.ff-chip[b-8cdfvoe2ii] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    min-height: 2.6rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ff-chip:hover[b-8cdfvoe2ii] {
    border-color: #7c3aed;
}

.ff-chip-attivo[b-8cdfvoe2ii] {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #4c1d95;
    font-weight: 600;
}

/* ===== Elenco: occupa tutta l'altezza residua e scorre da solo ===== */
.ff-lista[b-8cdfvoe2ii] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.1rem 0.1rem 1rem;
}

/* Riga cliente: pulsante a tutta larghezza, bordo sinistro colorato per motivo */
.ff-riga[b-8cdfvoe2ii] {
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #7c3aed;
    border-radius: 12px;
    padding: 0.5rem 0.6rem 0.5rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.ff-riga:hover[b-8cdfvoe2ii] {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.ff-riga:active[b-8cdfvoe2ii] {
    transform: scale(0.995);
}

.ff-riga-fido[b-8cdfvoe2ii] {
    border-left-color: #dc2626;
}

.ff-riga-partite[b-8cdfvoe2ii] {
    border-left-color: #d97706;
}

.ff-riga-entrambi[b-8cdfvoe2ii] {
    border-left-color: #b91c1c;
    background: #fff7f7;
}

.ff-riga-rientrato[b-8cdfvoe2ii] {
    border-left-color: #16a34a;
    opacity: 0.8;
}

.ff-riga-top[b-8cdfvoe2ii] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.ff-cod[b-8cdfvoe2ii] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6d28d9;
    background-color: rgba(124, 58, 237, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ff-tipo[b-8cdfvoe2ii] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: white;
    flex-shrink: 0;
}

.ff-tipo-pf[b-8cdfvoe2ii] {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.ff-tipo-pv[b-8cdfvoe2ii] {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.ff-nome[b-8cdfvoe2ii] {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.92rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-espo[b-8cdfvoe2ii] {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.ff-espo-debito[b-8cdfvoe2ii] {
    color: #b91c1c;
}

.ff-espo-credito[b-8cdfvoe2ii] {
    color: #15803d;
}

.ff-riga-bottom[b-8cdfvoe2ii] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.45rem;
    min-width: 0;
    font-size: 0.78rem;
    color: #6b7280;
}

/* Motivi: pillole compatte (fido rosso, partite ambra, neutro grigio, rientrato verde) */
.ff-motivo[b-8cdfvoe2ii] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.ff-motivo .oi[b-8cdfvoe2ii] {
    font-size: 0.68rem;
}

.ff-motivo-fido[b-8cdfvoe2ii] {
    background: #fee2e2;
    color: #991b1b;
}

.ff-motivo-partite[b-8cdfvoe2ii] {
    background: #fef3c7;
    color: #92400e;
}

.ff-motivo-neutro[b-8cdfvoe2ii] {
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 500;
}

.ff-motivo-ok[b-8cdfvoe2ii] {
    background: #dcfce7;
    color: #166534;
}

.ff-localita[b-8cdfvoe2ii] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-gg[b-8cdfvoe2ii] {
    margin-left: auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ff-chevron[b-8cdfvoe2ii] {
    flex-shrink: 0;
    color: #a78bfa;
    font-size: 0.75rem;
}

/* ===== Stati: vuoto, nessun risultato, errore ===== */
.ff-vuoto[b-8cdfvoe2ii] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 2rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.ff-vuoto-icona[b-8cdfvoe2ii] {
    font-size: 2.6rem;
    color: #16a34a;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.ff-vuoto-titolo[b-8cdfvoe2ii] {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.ff-vuoto-sub[b-8cdfvoe2ii] {
    font-size: 0.88rem;
    color: #6b7280;
    max-width: 380px;
}

.ff-vuoto-ricerca[b-8cdfvoe2ii] {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.ff-alert[b-8cdfvoe2ii] {
    flex-shrink: 0;
}

/* ===== Responsive: smartphone ===== */
@media (max-width: 576px) {
    .ff-header[b-8cdfvoe2ii] {
        padding: 0.4rem 0.45rem 0.4rem 0.7rem;
    }

    .ff-riga[b-8cdfvoe2ii] {
        padding: 0.45rem 0.5rem 0.45rem 0.6rem;
    }

    .ff-nome[b-8cdfvoe2ii] {
        font-size: 0.88rem;
    }

    .ff-espo[b-8cdfvoe2ii] {
        font-size: 0.9rem;
    }

    /* La località resta nel pannello del cliente: sui telefoni la riga è già piena */
    .ff-localita[b-8cdfvoe2ii] {
        display: none;
    }

    /* Lo sforamento complessivo non entra nella riga di riepilogo dei telefoni */
    .ff-header-sub-extra[b-8cdfvoe2ii] {
        display: none;
    }
}
/* /Components/AzioniRapide/IncassoPartiteSheet.razor.rz.scp.css */
/* ==========================================================================
   Incasso partite (clienti fuori fido) - pannello a scorrimento
   Palette VIOLA del modulo "Clienti fuori fido"; esposizione/partite oltre il
   limite in rosso, incasso registrato in verde.
   Pensato per il tocco: pulsanti alti (>= 48px), righe grandi, un'azione
   principale sempre visibile nel footer.
   ========================================================================== */

/* ===== Overlay e pannello ===== */
.ip-overlay[b-6vyax840zx] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    pointer-events: none;
    transition: background-color 0.28s ease, backdrop-filter 0.28s ease;
    z-index: 10000;
}

.ip-overlay.ip-open[b-6vyax840zx] {
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.ip-sheet[b-6vyax840zx] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(560px, 100vw);
    height: 100vh;
    height: 100dvh;
    background: #f8fafc;
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.22);
    transform: translateX(104%);
    transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.ip-sheet.ip-open[b-6vyax840zx] {
    transform: translateX(0);
}

/* ===== Header ===== */
.ip-header[b-6vyax840zx] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    color: #fff;
    flex-shrink: 0;
}

.ip-icon-btn[b-6vyax840zx] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.ip-icon-btn:hover[b-6vyax840zx] {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.ip-icon-btn:active[b-6vyax840zx] {
    transform: scale(0.94);
}

.ip-header-text[b-6vyax840zx] {
    min-width: 0;
    flex: 1;
}

.ip-title[b-6vyax840zx] {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.ip-subtitle[b-6vyax840zx] {
    font-size: 0.82rem;
    opacity: 0.92;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.ip-subtitle-nome[b-6vyax840zx] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-cod[b-6vyax840zx] {
    flex-shrink: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}

/* ===== Situazione fido (sempre visibile) ===== */
.ip-stato[b-6vyax840zx] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.5rem 0.9rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.ip-stato-item[b-6vyax840zx] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.ip-stato-k[b-6vyax840zx] {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 700;
    white-space: nowrap;
}

.ip-stato-v[b-6vyax840zx] {
    font-weight: 800;
    font-size: 1rem;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ip-stato-v-alert[b-6vyax840zx] {
    color: #b91c1c;
}

.ip-stato-sub[b-6vyax840zx] {
    font-size: 0.7rem;
    color: #6b7280;
    white-space: nowrap;
}

.ip-stato-esito[b-6vyax840zx] {
    margin-left: auto;
    flex-shrink: 0;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    white-space: nowrap;
}

.ip-stato-fuori .ip-stato-esito[b-6vyax840zx] {
    background: #fee2e2;
    color: #991b1b;
}

.ip-stato-ok .ip-stato-esito[b-6vyax840zx] {
    background: #dcfce7;
    color: #166534;
}

/* ===== Corpo scorrevole e animazione dei passi ===== */
.ip-body[b-6vyax840zx] {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem;
    min-height: 0;
}

.ip-step[b-6vyax840zx] {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ip-anim[b-6vyax840zx] {
    animation: ipSlideIn-b-6vyax840zx 0.28s ease-out;
}

@keyframes ipSlideIn-b-6vyax840zx {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Passo Partite: barra selezione e righe ===== */
.ip-selezione-bar[b-6vyax840zx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.ip-selezione-testo[b-6vyax840zx] {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.ip-selezione-testo b[b-6vyax840zx] {
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.ip-chip[b-6vyax840zx] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #c4b5fd;
    background: #fff;
    color: #5b21b6;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    min-height: 2.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.ip-chip:hover[b-6vyax840zx] {
    background: #f5f3ff;
}

.ip-lista[b-6vyax840zx] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ip-partita[b-6vyax840zx] {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem 0.65rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ip-partita:hover:not(:disabled)[b-6vyax840zx] {
    border-color: #c4b5fd;
}

.ip-partita-sel[b-6vyax840zx] {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.ip-partita-off[b-6vyax840zx] {
    opacity: 0.55;
    cursor: default;
}

.ip-check[b-6vyax840zx] {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

.ip-partita-sel .ip-check[b-6vyax840zx] {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.ip-partita-off .ip-check[b-6vyax840zx] {
    border-style: dashed;
}

.ip-partita-testi[b-6vyax840zx] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.ip-partita-r1[b-6vyax840zx] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.ip-partita-doc[b-6vyax840zx] {
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-partita-data[b-6vyax840zx] {
    color: #4b5563;
    font-size: 0.8rem;
    white-space: nowrap;
}

.ip-gg[b-6vyax840zx] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    white-space: nowrap;
}

.ip-gg-ambra[b-6vyax840zx] {
    background: #fef3c7;
    color: #92400e;
}

.ip-gg-rosso[b-6vyax840zx] {
    background: #fee2e2;
    color: #991b1b;
}

.ip-partita-r2[b-6vyax840zx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.6rem;
    font-size: 0.74rem;
    color: #6b7280;
}

.ip-partita-inc[b-6vyax840zx] {
    color: #15803d;
    font-weight: 600;
}

.ip-partita-dest[b-6vyax840zx] {
    color: #b45309;
    font-style: italic;
}

.ip-partita-saldo[b-6vyax840zx] {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.ip-saldo-debito[b-6vyax840zx] {
    color: #b91c1c;
}

.ip-saldo-credito[b-6vyax840zx] {
    color: #15803d;
}

.ip-saldo-zero[b-6vyax840zx] {
    color: #9ca3af;
}

/* ===== Card, hero e passo Incasso ===== */
.ip-card[b-6vyax840zx] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
}

.ip-card-title[b-6vyax840zx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #5b21b6;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.ip-hero[b-6vyax840zx] {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #c4b5fd;
    text-align: center;
}

.ip-hero-verde[b-6vyax840zx] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.ip-hero-label[b-6vyax840zx] {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5b21b6;
    font-weight: 700;
}

.ip-hero-verde .ip-hero-label[b-6vyax840zx] {
    color: #166534;
}

.ip-hero-importo[b-6vyax840zx] {
    font-size: 2rem;
    font-weight: 800;
    color: #3b0764;
    line-height: 1.15;
    margin: 0.15rem 0;
    font-variant-numeric: tabular-nums;
}

.ip-hero-verde .ip-hero-importo[b-6vyax840zx] {
    color: #14532d;
}

.ip-hero-sub[b-6vyax840zx] {
    font-size: 0.8rem;
    color: #6b7280;
}

.ip-hero-icona[b-6vyax840zx] {
    font-size: 2.2rem;
    color: #16a34a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

/* CasellaNumero: carattere e colore sulla casella, li ereditano numero e "€" */
[b-6vyax840zx] .ip-importo-edit {
    max-width: 260px;
    margin: 0.35rem auto;
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    color: #3b0764;
}

.ip-avviso[b-6vyax840zx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    font-weight: 600;
    color: #78350f;
    font-size: 0.85rem;
}

/* Tipi di incasso: pulsanti grandi, uno attivo */
.ip-tipi[b-6vyax840zx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ip-tipo[b-6vyax840zx] {
    flex: 1 1 auto;
    min-height: 46px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ip-tipo:hover[b-6vyax840zx] {
    border-color: #c4b5fd;
}

.ip-tipo-attivo[b-6vyax840zx] {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #4c1d95;
}

/* Editor nativi (data, elenco lungo dei tipi) */
.ip-input[b-6vyax840zx] {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    background: #fff;
    color: #1f2937;
}

.ip-input:focus[b-6vyax840zx] {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.ip-hint[b-6vyax840zx] {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

.ip-hint-centro[b-6vyax840zx] {
    text-align: center;
}

.ip-errore[b-6vyax840zx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fee2e2;
    border: 1.5px solid #ef4444;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    color: #991b1b;
    font-weight: 600;
    font-size: 0.88rem;
}

.ip-vuoto[b-6vyax840zx],
.ip-caricamento[b-6vyax840zx] {
    text-align: center;
    color: #6b7280;
    padding: 1.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ip-vuoto .oi[b-6vyax840zx] {
    color: #16a34a;
}

/* ===== Passo Fatto ===== */
.ip-kv-grid[b-6vyax840zx] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
}

.ip-kv[b-6vyax840zx] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ip-k[b-6vyax840zx] {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 700;
}

.ip-v[b-6vyax840zx] {
    font-weight: 700;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.ip-v-alert[b-6vyax840zx] {
    color: #b91c1c;
}

.ip-esito-testo[b-6vyax840zx] {
    margin-top: 0.65rem;
    padding: 0.55rem;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.ip-esito-fuori[b-6vyax840zx] {
    background: #fee2e2;
    color: #991b1b;
}

.ip-esito-ok[b-6vyax840zx] {
    background: #dcfce7;
    color: #166534;
}

/* ===== Footer con le azioni ===== */
.ip-footer[b-6vyax840zx] {
    flex-shrink: 0;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.ip-footer-row[b-6vyax840zx] {
    display: flex;
    gap: 0.5rem;
}

.ip-footer-row .ip-btn[b-6vyax840zx] {
    flex: 1;
}

.ip-btn[b-6vyax840zx] {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: none;
    padding: 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ip-btn:hover:not(:disabled)[b-6vyax840zx] {
    filter: brightness(1.05);
}

.ip-btn:active:not(:disabled)[b-6vyax840zx] {
    transform: scale(0.985);
}

.ip-btn:disabled[b-6vyax840zx] {
    opacity: 0.5;
    cursor: default;
}

.ip-btn-primary[b-6vyax840zx] {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.ip-btn-success[b-6vyax840zx] {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.ip-btn-secondary[b-6vyax840zx] {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

/* Spinner (salvataggio, caricamento) */
.ip-spinner[b-6vyax840zx] {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ipSpin-b-6vyax840zx 0.8s linear infinite;
    flex-shrink: 0;
}

.ip-caricamento .ip-spinner[b-6vyax840zx] {
    border-color: rgba(124, 58, 237, 0.25);
    border-top-color: #7c3aed;
}

@keyframes ipSpin-b-6vyax840zx {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Smartphone ===== */
@media (max-width: 768px) {
    .ip-sheet[b-6vyax840zx] {
        width: 100vw;
    }

    .ip-body[b-6vyax840zx] {
        padding: 0.6rem;
    }

    .ip-hero-importo[b-6vyax840zx] {
        font-size: 1.8rem;
    }

    .ip-stato[b-6vyax840zx] {
        gap: 0.7rem;
        padding: 0.45rem 0.7rem;
    }

    .ip-stato-v[b-6vyax840zx] {
        font-size: 0.95rem;
    }
}
/* /Components/AzioniRapide/ListaOrdini.razor.rz.scp.css */
/* ========================================
   LISTA ORDINI - Stili specifici componente
   Layout che si adatta all'altezza della pagina senza scroll esterno.
   La griglia ha scroll interno.
   ======================================== */

/* Container principale - occupa tutto lo spazio disponibile */
.lista-ordini-page[b-r8kg9yjcb3] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px); /* Altezza viewport meno header principale */
    height: calc(var(--viewport-height, 100vh) - 80px); /* Fix iOS Safari */
    overflow: hidden;
    padding: 0;
}

/* Container tabs - altezza fissa */
.tabs-container[b-r8kg9yjcb3] {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

/* Contenuto - flex per occupare lo spazio rimanente */
.lista-ordini-content[b-r8kg9yjcb3] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* Importante per flex shrink */
    gap: 0.75rem;
}

/* Card griglia - occupa tutto lo spazio rimanente */
.grid-card[b-r8kg9yjcb3] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    background-color: var(--ml-color-bg-card, #fff);
    border: 1px solid var(--ml-color-border, #e5e7eb);
    border-radius: var(--ml-radius-md, 0.5rem);
    box-shadow: var(--ml-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
}

.grid-card .card-header[b-r8kg9yjcb3] {
    flex-shrink: 0;
}

/* Wrapper griglia - si espande e ha scroll interno */
.grid-wrapper[b-r8kg9yjcb3] {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Griglia ordini - occupa tutto lo spazio e gestisce scroll interno */
[b-r8kg9yjcb3] .grid-ordini {
    height: 100% !important;
    max-height: 100% !important;
    background: white;
    border: none;
    display: flex;
    flex-direction: column;
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-table-container {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: auto;
    min-height: 0;
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-header {
    flex-shrink: 0;
    background-color: #f9fafb;
    border-bottom: 1px solid var(--ml-color-border, #e5e7eb);
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-header-cell {
    font-weight: 600;
    color: #374151;
    padding: 0.75rem 0.6rem;
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-data-row {
    min-height: 60px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-data-row:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-data-cell {
    padding: 0.75rem 0.6rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

/* Riga ordine da altro agente */
[b-r8kg9yjcb3] .grid-ordini .row-altro-agente {
    background-color: #fff3cd;
}

[b-r8kg9yjcb3] .grid-ordini .row-altro-agente:hover {
    background-color: #ffe69c;
}

/* Footer griglia con totali */
[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-footer-row {
    flex-shrink: 0;
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: 1px solid #dee2e6;
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-footer-cell {
    padding: 0.9rem 0.6rem;
    font-size: 1rem;
}

/* Paginatore touch-friendly - altezza fissa */
[b-r8kg9yjcb3] .grid-ordini .dxbl-pager {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-pager-button {
    min-width: var(--ml-touch-target, 44px);
    min-height: var(--ml-touch-target, 44px);
    border-radius: var(--ml-radius-sm, 0.375rem);
    margin: 0 0.25rem;
}

/* === CONTAINER RIGA ORDINE (stile compatto/espanso come ClientiPage) === */
.riga-ordine[b-r8kg9yjcb3] {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0.5rem;
    margin: 0.15rem 0;
}

/* === LAYOUT COMPATTO (riga non selezionata) === */
.riga-ordine-compatta[b-r8kg9yjcb3] {
    background-color: #fff;
}

.riga-ordine-compatta:hover[b-r8kg9yjcb3] {
    background-color: rgba(255, 193, 7, 0.1);
}

.riga-ordine-compatta-content[b-r8kg9yjcb3] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ordine-info-primaria[b-r8kg9yjcb3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ordine-data[b-r8kg9yjcb3] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
}

.ordine-numero[b-r8kg9yjcb3] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
    background-color: rgba(255, 193, 7, 0.2);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* Pallino arancione per ordini aperti */
.pallino-aperto[b-r8kg9yjcb3] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #f59e0b;
    flex-shrink: 0;
}

.badge-sm[b-r8kg9yjcb3] {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

.ordine-info-secondaria[b-r8kg9yjcb3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ordine-cliente[b-r8kg9yjcb3] {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 80px;
}

.ordine-data-consegna[b-r8kg9yjcb3] {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
}

.ordine-pagamento[b-r8kg9yjcb3] {
    font-size: 0.75rem;
    color: #495057;
    background-color: rgba(108, 117, 125, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    white-space: nowrap;
}

.ordine-totale[b-r8kg9yjcb3] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #28a745;
    white-space: nowrap;
}

/* === LAYOUT ESPANSO (riga selezionata) === */
.riga-ordine-espansa[b-r8kg9yjcb3] {
    background-color: rgba(255, 193, 7, 0.12);
    border: 2px solid rgba(255, 193, 7, 0.5);
}

/* Prima riga espansa: Data + Numero + Badge */
.riga-ordine-espansa-row1[b-r8kg9yjcb3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.ordine-data-espansa[b-r8kg9yjcb3] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.ordine-numero-espansa[b-r8kg9yjcb3] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #b45309;
    background-color: rgba(255, 193, 7, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

/* Seconda riga espansa: Dati cliente */
.riga-ordine-espansa-row2[b-r8kg9yjcb3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.ordine-cliente-espansa[b-r8kg9yjcb3] {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
}

.riga-ordine-espansa-row2b[b-r8kg9yjcb3] {
    margin-bottom: 0.5rem;
}

.ordine-indirizzo[b-r8kg9yjcb3] {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* Terza riga espansa: Dettagli economici */
.riga-ordine-espansa-row3[b-r8kg9yjcb3] {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    border-top: 1px dashed rgba(255, 193, 7, 0.3);
    border-bottom: 1px dashed rgba(255, 193, 7, 0.3);
    margin-bottom: 0.5rem;
}

.ordine-dettaglio[b-r8kg9yjcb3] {
    font-size: 0.85rem;
    color: #495057;
}

.ordine-totale-espanso[b-r8kg9yjcb3] {
    margin-left: auto;
}

/* === DETTAGLIO RIGHE ORDINE (tab Indisponibili) === */
.righe-ordine-dettaglio[b-r8kg9yjcb3] {
    margin-bottom: 0.5rem;
    cursor: default;
}

.righe-ordine-titolo[b-r8kg9yjcb3] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.righe-ordine-loading[b-r8kg9yjcb3],
.righe-ordine-vuote[b-r8kg9yjcb3] {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.righe-ordine-table-wrapper[b-r8kg9yjcb3] {
    overflow-x: auto;
    background-color: #fff;
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 6px;
}

.righe-ordine-table[b-r8kg9yjcb3] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.righe-ordine-table thead th[b-r8kg9yjcb3] {
    background-color: rgba(255, 193, 7, 0.15);
    color: #495057;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.4rem 0.6rem;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 193, 7, 0.4);
}

.righe-ordine-table tbody td[b-r8kg9yjcb3] {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}

.righe-ordine-table tbody tr:last-child td[b-r8kg9yjcb3] {
    border-bottom: none;
}

.righe-ordine-table tbody tr:hover[b-r8kg9yjcb3] {
    background-color: rgba(255, 193, 7, 0.06);
}

.righe-ordine-table .riga-cod-articolo[b-r8kg9yjcb3] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
    white-space: nowrap;
}

.righe-ordine-table .col-um[b-r8kg9yjcb3] {
    text-align: center;
    white-space: nowrap;
}

.righe-ordine-table .col-num[b-r8kg9yjcb3] {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Quarta riga espansa: Pulsanti azione */
.riga-ordine-espansa-row4[b-r8kg9yjcb3] {
    display: flex;
    justify-content: center;
}

.ordine-controlli-centrati[b-r8kg9yjcb3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-azione-ordine[b-r8kg9yjcb3] {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-azione-ordine:hover[b-r8kg9yjcb3] {
    transform: scale(1.05);
}

/* Rimuovi header colonne dalla griglia */
[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-header-row {
    display: none;
}

[b-r8kg9yjcb3] .grid-ordini .dxbl-grid-table tbody td {
    vertical-align: middle;
    padding: 0.25rem 0.5rem;
}

/* Toolbar - altezza fissa */
.lista-ordini-content .toolbar-container[b-r8kg9yjcb3] {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Toolbar specifico - estende lo stile globale */
[b-r8kg9yjcb3] .clienti-toolbar {
    background-color: transparent !important;
    border: none !important;
}

[b-r8kg9yjcb3] .clienti-toolbar .dxbl-toolbar-item {
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
}

[b-r8kg9yjcb3] .toolbar-search-box {
    min-width: 200px;
}

[b-r8kg9yjcb3] .toolbar-search-box .dxbl-edit {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem;
    min-height: 42px;
}

/* ========================================
   RESPONSIVE - Tablet (768px - 1200px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1200px) {
    .lista-ordini-page[b-r8kg9yjcb3] {
        height: calc(100vh - 70px);
        height: calc(var(--viewport-height, 100vh) - 70px);
    }

    [b-r8kg9yjcb3] .toolbar-search-box {
        min-width: 180px;
    }

    .ordine-cliente[b-r8kg9yjcb3] {
        font-size: 0.8rem;
    }
}

/* ========================================
   RESPONSIVE - Mobile (< 768px)
   ======================================== */
@media (max-width: 768px) {
    .lista-ordini-page[b-r8kg9yjcb3] {
        height: calc(100vh - 60px);
        height: calc(var(--viewport-height, 100vh) - 60px);
    }

    [b-r8kg9yjcb3] .toolbar-search-box {
        min-width: 120px;
    }

    .riga-ordine[b-r8kg9yjcb3] {
        padding: 0.4rem;
    }

    .ordine-data[b-r8kg9yjcb3],
    .ordine-numero[b-r8kg9yjcb3] {
        font-size: 0.7rem;
    }

    .ordine-cliente[b-r8kg9yjcb3] {
        font-size: 0.75rem;
    }

    .ordine-totale[b-r8kg9yjcb3] {
        font-size: 0.8rem;
    }

    .btn-azione-ordine[b-r8kg9yjcb3] {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .righe-ordine-table[b-r8kg9yjcb3] {
        font-size: 0.75rem;
    }

    .righe-ordine-table thead th[b-r8kg9yjcb3],
    .righe-ordine-table tbody td[b-r8kg9yjcb3] {
        padding: 0.3rem 0.4rem;
    }
}

/* ========================================
   RESPONSIVE - Small Mobile (< 576px)
   ======================================== */
@media (max-width: 576px) {
    .lista-ordini-page[b-r8kg9yjcb3] {
        height: calc(100vh - 50px);
        height: calc(var(--viewport-height, 100vh) - 50px);
    }

    .ordine-info-secondaria[b-r8kg9yjcb3] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .ordine-cliente-espansa[b-r8kg9yjcb3] {
        font-size: 0.8rem;
    }

    .ordine-indirizzo[b-r8kg9yjcb3] {
        font-size: 0.75rem;
    }

    .ordine-dettaglio[b-r8kg9yjcb3] {
        font-size: 0.8rem;
    }

    .ordine-controlli-centrati[b-r8kg9yjcb3] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-azione-ordine[b-r8kg9yjcb3] {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   SCHEDA CONSEGNE - giorno, filtri, esito
   ======================================== */

/* Selettore del giorno: frecce, calendario e "Oggi" */
.consegne-giorno[b-r8kg9yjcb3] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.consegne-giorno-btn[b-r8kg9yjcb3] {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.consegne-giorno-btn:hover:not(:disabled)[b-r8kg9yjcb3] {
    background: #f3f4f6;
}

.consegne-giorno-btn:disabled[b-r8kg9yjcb3] {
    opacity: 0.45;
    cursor: default;
}

.consegne-giorno-oggi[b-r8kg9yjcb3] {
    color: #b45309;
    border-color: rgba(255, 193, 7, 0.6);
}

[b-r8kg9yjcb3] .consegne-date-edit {
    width: 140px;
}

[b-r8kg9yjcb3] .consegne-date-edit .dxbl-edit {
    min-height: 40px;
    font-size: 1rem;
}

[b-r8kg9yjcb3] .toolbar-combo {
    min-width: 190px;
}

[b-r8kg9yjcb3] .toolbar-combo .dxbl-edit {
    min-height: 42px;
    border-radius: 6px;
}

/* Testata della card con i totali */
.consegne-card-header[b-r8kg9yjcb3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.consegne-totali[b-r8kg9yjcb3] {
    font-size: 0.85rem;
}

/* Badge dell'esito della consegna */
.badge-esito-inconsegna[b-r8kg9yjcb3] {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-esito-consegnata[b-r8kg9yjcb3] {
    background-color: #dcfce7;
    color: #166534;
}

.badge-esito-reso[b-r8kg9yjcb3] {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-esito-rifiutata[b-r8kg9yjcb3] {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Badge dello stato del pagamento alla consegna */
.badge-pag-pagata[b-r8kg9yjcb3] {
    background-color: #166534;
    color: #fff;
}

.badge-pag-parziale[b-r8kg9yjcb3] {
    background-color: #f59e0b;
    color: #1f2937;
}

.badge-pag-credito[b-r8kg9yjcb3] {
    background-color: #6b7280;
    color: #fff;
}

.badge-contabilizzata[b-r8kg9yjcb3] {
    background-color: #0f766e;
    color: #fff;
}

/* Importi incassati e resi nella riga compatta */
.consegna-incassato[b-r8kg9yjcb3] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
}

.consegna-reso[b-r8kg9yjcb3] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    white-space: nowrap;
}

/* Dettaglio esito nella riga espansa */
.consegna-esito-dettaglio[b-r8kg9yjcb3] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.25rem;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 6px;
}

.consegna-esito-dettaglio .oi[b-r8kg9yjcb3] {
    width: 1.1rem;
    color: #6c757d;
}

.consegna-note[b-r8kg9yjcb3] {
    font-style: italic;
}

/* Righe della griglia per stato */
[b-r8kg9yjcb3] .grid-ordini .row-consegna-rifiutata {
    background-color: #fff5f5;
}

[b-r8kg9yjcb3] .grid-ordini .row-consegna-contabilizzata .riga-ordine-compatta {
    opacity: 0.85;
}

@media (max-width: 768px) {
    [b-r8kg9yjcb3] .consegne-date-edit {
        width: 125px;
    }

    [b-r8kg9yjcb3] .toolbar-combo {
        min-width: 150px;
    }

    .consegne-giorno-btn[b-r8kg9yjcb3] {
        min-width: 36px;
        height: 36px;
    }
}

/* Barra filtri della scheda Consegne: due righe che vanno a capo sugli schermi stretti
   (niente menu adattivo della toolbar, i filtri restano sempre a portata di mano) */
.consegne-filtri[b-r8kg9yjcb3] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.45rem 0.5rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.consegne-filtri-riga[b-r8kg9yjcb3] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.consegne-ricarica[b-r8kg9yjcb3] {
    margin-left: auto;
}

[b-r8kg9yjcb3] .consegne-ricerca {
    flex: 2 1 200px;
    min-width: 160px;
}

[b-r8kg9yjcb3] .consegne-filtri .toolbar-combo {
    flex: 1 1 170px;
    min-width: 150px;
}
/* /Components/AzioniRapide/PartiteAperteAgente.razor.rz.scp.css */
/* ==========================================================================
   Partite aperte dell'agente - si apre dalla card "Partite aperte" della home
   Palette ROSSA della card; anzianità con i colori già usati nell'app:
   grigio fino a 30 giorni, ambra oltre 30, rosso oltre 90, rosso pieno oltre
   l'anno; verde per note credito e saldi a credito.
   Pensata per lo smartphone: testata compatta, fasce 2x2, elenco che occupa
   tutta l'altezza residua con righe fisse di 64 px, 100 per volta.
   ========================================================================== */

.pa-page[b-v70qic0gyt] {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Header compatto: titolo + riepilogo, pulsante ricarica ===== */
.pa-header[b-v70qic0gyt] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7f1d1d 0%, #c0392b 100%);
    border-radius: 12px;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.25);
    color: white;
}

.pa-header-main[b-v70qic0gyt] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.pa-header-icon[b-v70qic0gyt] {
    position: relative;
    flex-shrink: 0;
    font-size: 1.4rem;
    display: inline-flex;
    line-height: 1;
}

.pa-header-icon-badge[b-v70qic0gyt] {
    position: absolute;
    top: -7px;
    right: -8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fbbf24;
    color: #78350f;
    border: 2px solid #991b1b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-header-icon-badge i[b-v70qic0gyt] {
    font-size: 0.42rem;
    line-height: 1;
}

.pa-header-testi[b-v70qic0gyt] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pa-header-titolo[b-v70qic0gyt] {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pa-header-sub[b-v70qic0gyt] {
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pa-header-btn[b-v70qic0gyt] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.pa-header-btn:hover:not(:disabled)[b-v70qic0gyt] {
    background: rgba(255, 255, 255, 0.28);
}

.pa-header-btn:disabled[b-v70qic0gyt] {
    opacity: 0.5;
    cursor: default;
}

/* ===== Fasce di anzianità: riepilogo del totale e filtro dell'elenco ===== */
.pa-fasce[b-v70qic0gyt] {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.pa-fascia[b-v70qic0gyt] {
    --pa-colore: #94a3b8;
    --pa-tinta: #f8fafc;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.05rem;
    min-width: 0;
    min-height: 2.9rem;
    padding: 0.3rem 0.6rem 0.45rem;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--pa-colore);
    border-radius: 10px;
    background: white;
    color: #1f2937;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.pa-fascia:hover:not(:disabled)[b-v70qic0gyt] {
    background: var(--pa-tinta);
}

.pa-fascia:active:not(:disabled)[b-v70qic0gyt] {
    transform: scale(0.98);
}

.pa-fascia-anno[b-v70qic0gyt] {
    --pa-colore: #991b1b;
    --pa-tinta: #fef2f2;
}

.pa-fascia-rosso[b-v70qic0gyt] {
    --pa-colore: #dc2626;
    --pa-tinta: #fef2f2;
}

.pa-fascia-ambra[b-v70qic0gyt] {
    --pa-colore: #d97706;
    --pa-tinta: #fffbeb;
}

/* La fascia più vecchia è quella da notare: sfondo già tinto */
.pa-fascia-anno:not(.pa-fascia-vuota)[b-v70qic0gyt] {
    background: #fef2f2;
}

.pa-fascia-attiva[b-v70qic0gyt],
.pa-fascia-attiva:hover:not(:disabled)[b-v70qic0gyt] {
    background: var(--pa-tinta);
    border-color: var(--pa-colore);
    box-shadow: 0 0 0 2px var(--pa-colore);
}

.pa-fascia-vuota[b-v70qic0gyt] {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.pa-fascia-nome[b-v70qic0gyt] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pa-colore);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pa-fascia-togli[b-v70qic0gyt] {
    font-size: 0.55rem;
}

.pa-fascia-val[b-v70qic0gyt] {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
    font-variant-numeric: tabular-nums;
}

.pa-fascia-val b[b-v70qic0gyt] {
    font-size: 1.05rem;
    line-height: 1.2;
}

.pa-fascia-importo[b-v70qic0gyt] {
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Barretta in fondo: peso della fascia rispetto alla più pesante */
.pa-fascia-barra[b-v70qic0gyt] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(15, 23, 42, 0.05);
}

.pa-fascia-barra > span[b-v70qic0gyt] {
    display: block;
    height: 100%;
    background: var(--pa-colore);
}

/* ===== Vista, ricerca e ordinamento ===== */
.pa-comandi[b-v70qic0gyt] {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.pa-viste[b-v70qic0gyt] {
    flex-shrink: 0;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
}

.pa-vista[b-v70qic0gyt] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.3rem;
    padding: 0.3rem 0.95rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pa-vista .oi[b-v70qic0gyt] {
    font-size: 0.75rem;
}

.pa-vista-attiva[b-v70qic0gyt] {
    background: white;
    color: #991b1b;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.pa-filtri[b-v70qic0gyt] {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[b-v70qic0gyt] .pa-ricerca-box {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
}

.pa-ordina[b-v70qic0gyt] {
    flex-shrink: 0;
    max-width: 9rem;
    min-height: 2.5rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background-color: white;
    color: #374151;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ===== Elenco: occupa tutta l'altezza residua e scorre da solo ===== */
.pa-lista[b-v70qic0gyt] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.1rem 0.1rem 1rem;
}

/* Riga di altezza fissa, 64 px spazio compreso: elenco regolare anche con migliaia di partite */
.pa-riga-box[b-v70qic0gyt] {
    height: 64px;
    padding-bottom: 6px;
    box-sizing: border-box;
}

.pa-riga[b-v70qic0gyt] {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.3rem 0.6rem 0.3rem 0.7rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #94a3b8;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    color: #1f2937;
    font: inherit;
    text-align: left;
    overflow: hidden;
}

button.pa-riga[b-v70qic0gyt] {
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

button.pa-riga:hover[b-v70qic0gyt] {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

button.pa-riga:active[b-v70qic0gyt] {
    transform: scale(0.995);
}

.pa-riga-anno[b-v70qic0gyt] {
    border-left-color: #7f1d1d;
}

.pa-riga-rosso[b-v70qic0gyt] {
    border-left-color: #dc2626;
}

.pa-riga-ambra[b-v70qic0gyt] {
    border-left-color: #d97706;
}

.pa-riga-recente[b-v70qic0gyt] {
    border-left-color: #94a3b8;
}

.pa-riga-nc[b-v70qic0gyt] {
    border-left-color: #16a34a;
}

.pa-r1[b-v70qic0gyt],
.pa-r2[b-v70qic0gyt] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    white-space: nowrap;
}

.pa-r1[b-v70qic0gyt] {
    font-size: 0.92rem;
    line-height: 1.3;
}

.pa-r2[b-v70qic0gyt] {
    font-size: 0.76rem;
    line-height: 1.3;
    color: #6b7280;
}

.pa-nome[b-v70qic0gyt] {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pa-importo[b-v70qic0gyt] {
    flex-shrink: 0;
    margin-left: auto;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #b91c1c;
}

.pa-importo-credito[b-v70qic0gyt] {
    color: #15803d;
}

.pa-cod[b-v70qic0gyt] {
    flex-shrink: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #991b1b;
    background-color: rgba(192, 57, 43, 0.08);
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
}

/* Nelle partite il codice cliente sta in fondo alla seconda riga, prima della freccia */
.pa-r2 .pa-cod[b-v70qic0gyt] {
    margin-left: auto;
}

/* Anzianità: grigio fino a 30 gg, ambra, rosso, rosso pieno oltre l'anno, verde a credito */
.pa-eta[b-v70qic0gyt] {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-variant-numeric: tabular-nums;
}

.pa-eta-anno[b-v70qic0gyt] {
    background: #991b1b;
    color: white;
}

.pa-eta-rosso[b-v70qic0gyt] {
    background: #fee2e2;
    color: #991b1b;
}

.pa-eta-ambra[b-v70qic0gyt] {
    background: #fef3c7;
    color: #92400e;
}

.pa-eta-nc[b-v70qic0gyt] {
    background: #dcfce7;
    color: #166534;
}

.pa-doc[b-v70qic0gyt] {
    flex-shrink: 0;
    font-weight: 600;
    color: #374151;
}

.pa-doc-forte[b-v70qic0gyt] {
    font-weight: 700;
    color: #1f2937;
}

/* Data e pillola delle note credito cedono spazio per prime: anzianità, documento e
   comando restano sempre interi */
.pa-data[b-v70qic0gyt] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Destinazione e importi secondari cedono spazio prima della data */
.pa-dest[b-v70qic0gyt],
.pa-totale-doc[b-v70qic0gyt],
.pa-incassato[b-v70qic0gyt] {
    flex-shrink: 10;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pa-incassato[b-v70qic0gyt] {
    color: #1d4ed8;
    font-weight: 600;
}

.pa-nc-pill[b-v70qic0gyt] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.pa-chevron[b-v70qic0gyt] {
    flex-shrink: 0;
    color: #f87171;
    font-size: 0.7rem;
}

/* Testata del cliente: tutta toccabile, con il verbo scritto ("Vedi 3 partite") */
.pa-espandi[b-v70qic0gyt] {
    flex-shrink: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 700;
}

.pa-espandi .oi[b-v70qic0gyt] {
    font-size: 0.6rem;
}

.pa-riga-aperta[b-v70qic0gyt] {
    background: #fff7f7;
    border-color: #fecaca;
}

.pa-riga-aperta .pa-espandi[b-v70qic0gyt] {
    background: #991b1b;
    color: white;
}

/* Partite e comandi del cliente aperto: rientrati sotto la testata */
.pa-riga-dettaglio[b-v70qic0gyt],
.pa-riga-azioni[b-v70qic0gyt] {
    margin-left: 1.1rem;
    width: calc(100% - 1.1rem);
    box-shadow: none;
}

.pa-riga-dettaglio[b-v70qic0gyt] {
    background: #fcfcfd;
    border-radius: 10px;
}

.pa-riga-azioni[b-v70qic0gyt] {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #fca5a5;
    border-radius: 10px;
}

/* ===== Pulsanti con il verbo scritto ===== */
.pa-btn[b-v70qic0gyt] {
    flex: 1 1 0;
    max-width: 14rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.6rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.pa-btn:active:not(:disabled)[b-v70qic0gyt] {
    transform: scale(0.98);
}

.pa-btn-primario[b-v70qic0gyt] {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    color: white;
}

.pa-btn-primario:hover:not(:disabled)[b-v70qic0gyt] {
    filter: brightness(1.08);
    color: white;
}

.pa-btn-secondario[b-v70qic0gyt] {
    background: white;
    border-color: #e5e7eb;
    color: #374151;
}

.pa-btn-secondario:hover[b-v70qic0gyt] {
    border-color: #c0392b;
    color: #991b1b;
}

.pa-btn:disabled[b-v70qic0gyt] {
    opacity: 0.5;
    cursor: default;
}

/* "Mostra altre 100 partite": in fondo all'elenco, largo quanto le righe */
.pa-mostra-altre[b-v70qic0gyt] {
    width: 100%;
    max-width: none;
    margin-top: 0.1rem;
}

/* ===== Stati: vuoto, nessun risultato, errore ===== */
.pa-vuoto[b-v70qic0gyt] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 2rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.pa-vuoto-icona[b-v70qic0gyt] {
    font-size: 2.6rem;
    color: #16a34a;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.pa-vuoto-titolo[b-v70qic0gyt] {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.pa-vuoto-sub[b-v70qic0gyt] {
    font-size: 0.88rem;
    color: #6b7280;
    max-width: 380px;
}

.pa-vuoto-ricerca[b-v70qic0gyt] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.pa-vuoto-ricerca .pa-btn[b-v70qic0gyt] {
    flex: 0 0 auto;
    max-width: none;
}

.pa-alert[b-v70qic0gyt] {
    flex-shrink: 0;
}

/* ===== Responsive: smartphone ===== */
@media (max-width: 576px) {
    .pa-header[b-v70qic0gyt] {
        padding: 0.4rem 0.45rem 0.4rem 0.7rem;
    }

    /* Fasce 2x2: tutte in vista senza scorrere */
    .pa-fasce[b-v70qic0gyt] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pa-viste[b-v70qic0gyt] {
        width: 100%;
    }

    .pa-vista[b-v70qic0gyt] {
        flex: 1;
    }

    .pa-filtri[b-v70qic0gyt] {
        flex-basis: 100%;
    }

    .pa-riga[b-v70qic0gyt] {
        padding: 0.3rem 0.5rem 0.3rem 0.6rem;
    }

    .pa-r1[b-v70qic0gyt] {
        font-size: 0.88rem;
    }

    /* Le note credito restano nel pannello: sui telefoni la riga di riepilogo è già piena */
    .pa-header-sub-extra[b-v70qic0gyt] {
        display: none;
    }

    .pa-riga-dettaglio[b-v70qic0gyt],
    .pa-riga-azioni[b-v70qic0gyt] {
        margin-left: 0.6rem;
        width: calc(100% - 0.6rem);
    }

    /* Cliente con note credito: la data della più vecchia lascia posto alla pillola NC
       (l'anzianità è scritta accanto, la data si legge aprendo il cliente) */
    .pa-con-nc .pa-data[b-v70qic0gyt] {
        display: none;
    }
}
/* /Components/AzioniRapide/ReportGiornata.razor.rz.scp.css */
/* ========================================
   REPORT GIORNATA - Stili specifici componente
   Layout responsive con grafici e griglie
   ======================================== */

/* Container principale */
.report-giornata-page[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    height: calc(var(--viewport-height, 100vh) - 80px);
    overflow: hidden;
    padding: 0;
}

/* Contenuto - scroll verticale */
.report-giornata-content[b-9pvfze5rki] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
    gap: 1rem;
}

/* Header pagina */
.page-header-moselink[b-9pvfze5rki] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
}

.page-header-center[b-9pvfze5rki] {
    flex: 1;
    text-align: center;
}

.page-header-right[b-9pvfze5rki] {
    flex: 0 0 auto;
}

.page-title[b-9pvfze5rki] {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.page-title i[b-9pvfze5rki] {
    color: white;
}

.page-subtitle[b-9pvfze5rki] {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: capitalize;
}

/* ========================================
   KPI SUMMARY ROW
   ======================================== */

.kpi-summary-row[b-9pvfze5rki] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    flex-shrink: 0;
}

.kpi-box[b-9pvfze5rki] {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    gap: 0.75rem;
}

.kpi-box .kpi-icon[b-9pvfze5rki] {
    font-size: 2rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.kpi-box .kpi-content[b-9pvfze5rki] {
    flex: 1;
    min-width: 0;
}

.kpi-box .kpi-value[b-9pvfze5rki] {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-box .kpi-label[b-9pvfze5rki] {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-box .kpi-amount[b-9pvfze5rki] {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.kpi-box .kpi-percentage[b-9pvfze5rki] {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.15rem;
    opacity: 0.8;
}

/* Colori KPI */
.kpi-ordini[b-9pvfze5rki] {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
}

.kpi-incassi[b-9pvfze5rki] {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    color: #2e7d32;
}

.kpi-sconti[b-9pvfze5rki] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #7b1fa2;
}

.kpi-omaggi[b-9pvfze5rki] {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #1565c0;
}

/* ========================================
   CHARTS ROW
   ======================================== */

.charts-row[b-9pvfze5rki] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 280px;
}

.chart-card[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chart-card .card-header[b-9pvfze5rki] {
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}

.chart-card .card-header h5[b-9pvfze5rki] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.card-header-info[b-9pvfze5rki] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-header-success[b-9pvfze5rki] {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.card-header-warning[b-9pvfze5rki] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.chart-wrapper[b-9pvfze5rki] {
    flex: 1;
    padding: 0.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[b-9pvfze5rki] .chart-operazioni {
    width: 100%;
    height: 100%;
    min-height: 180px;
}

[b-9pvfze5rki] .chart-prodotti {
    width: 100%;
    height: 100%;
    min-height: 180px;
}

.chart-tooltip[b-9pvfze5rki] {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Lista articoli più venduti */
.articoli-list[b-9pvfze5rki] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 220px;
}

.articolo-item[b-9pvfze5rki] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    gap: 0.5rem;
}

.articolo-item:last-child[b-9pvfze5rki] {
    border-bottom: none;
}

.articolo-info[b-9pvfze5rki] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.articolo-codice[b-9pvfze5rki] {
    font-family: 'Consolas', monospace;
    font-size: 0.75rem;
    color: #666;
}

.articolo-descrizione[b-9pvfze5rki] {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.articolo-stats[b-9pvfze5rki] {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.articolo-stats .badge[b-9pvfze5rki] {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* ========================================
   LISTS ROW
   ======================================== */

.lists-row[b-9pvfze5rki] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 300px;
    flex-shrink: 0;
}

.list-card[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 0;
}

.list-card .card-header[b-9pvfze5rki] {
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}

.list-card .card-header h5[b-9pvfze5rki] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.list-wrapper[b-9pvfze5rki] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 400px;
}

/* Stili griglia report */
[b-9pvfze5rki] .grid-report {
    height: 100% !important;
    font-size: 0.85rem;
}

[b-9pvfze5rki] .grid-report .dxbl-grid-header-cell {
    font-size: 0.8rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
}

[b-9pvfze5rki] .grid-report .dxbl-grid-data-cell {
    padding: 0.4rem 0.5rem;
}

[b-9pvfze5rki] .grid-report .dxbl-grid-footer-cell {
    font-weight: 600;
    background-color: #f8f9fa;
    font-size: 0.85rem;
}

/* Header griglia ordini con bg-success (come GrigliaRigheOrdine) */
.list-card:first-child[b-9pvfze5rki]  .grid-report .dxbl-grid-header-cell {
    background-color: #198754;
    color: white;
}

/* ========================================
   NO DATA MESSAGE
   ======================================== */

.no-data-message[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
}

.no-data-message i[b-9pvfze5rki] {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.no-data-message p[b-9pvfze5rki] {
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE - Tablet (768px - 1200px)
   ======================================== */

@media (max-width: 1200px) {
    .kpi-summary-row[b-9pvfze5rki] {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row[b-9pvfze5rki] {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .lists-row[b-9pvfze5rki] {
        grid-template-columns: 1fr;
    }

    .chart-wrapper[b-9pvfze5rki] {
        min-height: 180px;
    }
}

/* ========================================
   RESPONSIVE - Mobile (< 768px)
   ======================================== */

@media (max-width: 768px) {
    .report-giornata-page[b-9pvfze5rki] {
        height: calc(100vh - 60px);
        height: calc(var(--viewport-height, 100vh) - 60px);
    }

    .report-giornata-content[b-9pvfze5rki] {
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .page-header-moselink[b-9pvfze5rki] {
        padding: 0.5rem 0.75rem;
    }

    .page-title[b-9pvfze5rki] {
        font-size: 1rem;
    }

    .page-subtitle[b-9pvfze5rki] {
        font-size: 0.75rem;
    }

    .kpi-summary-row[b-9pvfze5rki] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .kpi-box[b-9pvfze5rki] {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .kpi-box .kpi-icon[b-9pvfze5rki] {
        font-size: 1.5rem;
    }

    .kpi-box .kpi-value[b-9pvfze5rki] {
        font-size: 1.25rem;
    }

    .kpi-box .kpi-label[b-9pvfze5rki] {
        font-size: 0.7rem;
    }

    .kpi-box .kpi-amount[b-9pvfze5rki] {
        font-size: 0.8rem;
    }

    .chart-card .card-header h5[b-9pvfze5rki],
    .list-card .card-header h5[b-9pvfze5rki] {
        font-size: 0.85rem;
    }

    .articolo-stats[b-9pvfze5rki] {
        flex-wrap: wrap;
    }

    [b-9pvfze5rki] .grid-report {
        font-size: 0.8rem;
    }

    [b-9pvfze5rki] .grid-report .dxbl-grid-header-cell {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    [b-9pvfze5rki] .grid-report .dxbl-grid-data-cell {
        padding: 0.3rem 0.4rem;
    }
}

/* ========================================
   RESPONSIVE - Small Mobile (< 576px)
   ======================================== */

@media (max-width: 576px) {
    .report-giornata-page[b-9pvfze5rki] {
        height: calc(100vh - 50px);
        height: calc(var(--viewport-height, 100vh) - 50px);
    }

    .kpi-summary-row[b-9pvfze5rki] {
        grid-template-columns: 1fr 1fr;
    }

    .kpi-box .kpi-value[b-9pvfze5rki] {
        font-size: 1.1rem;
    }

    .articolo-item[b-9pvfze5rki] {
        flex-direction: column;
        align-items: flex-start;
    }

    .articolo-stats[b-9pvfze5rki] {
        margin-top: 0.25rem;
    }
}

/* ============================================================
   CONSOLIDATO 12 MESI - Dashboard moderna venduto agente
   ============================================================ */

.consolidato-section[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

/* Loading panel centrato nel tab Consolidato durante il caricamento lazy */
.consolidato-loading[b-9pvfze5rki] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
}

/* ============================================================
   DxTabs - styling moderno per il switcher di scheda
   ============================================================ */

[b-9pvfze5rki] .report-tabs {
    width: 100%;
}

[b-9pvfze5rki] .report-tabs .dxbl-tabs {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.4rem;
    margin-bottom: 1rem;
    border: none;
}

[b-9pvfze5rki] .report-tabs .dxbl-tab {
    background: transparent;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

[b-9pvfze5rki] .report-tabs .dxbl-tab:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

[b-9pvfze5rki] .report-tabs .dxbl-tab.dxbl-active,
[b-9pvfze5rki] .report-tabs .dxbl-tab[aria-selected="true"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

[b-9pvfze5rki] .report-tabs .dxbl-tab-content {
    padding: 0;
    background: transparent;
    border: none;
}

/* Icone dei tab piu visibili */
[b-9pvfze5rki] .report-tabs .dxbl-tab .oi {
    margin-right: 0.4rem;
    font-size: 0.95rem;
}

/* ============================================================
   FLASH ATTENTION sul tab Consolidato 12 Mesi (all'apertura)
   Lo span .tab-consolidato-marker e' renderizzato dentro TextTemplate
   del DxTabPage, quindi il CSS scoped lo aggancia direttamente.
   Animazione: 6 pulse colorati (~5.4s totali), poi si ferma da sola
   ============================================================ */
@keyframes flashTabMarker-b-9pvfze5rki {
    0%, 100% {
        background: transparent;
        color: inherit;
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
        box-shadow: 0 0 0 6px rgba(245, 87, 108, 0.35),
                    0 0 18px rgba(245, 87, 108, 0.65);
        transform: scale(1.08);
    }
}

.tab-consolidato-marker[b-9pvfze5rki] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    animation: flashTabMarker-b-9pvfze5rki 0.9s ease-in-out 6;
    transition: background 0.3s ease;
}

.tab-consolidato-marker i[b-9pvfze5rki] {
    font-size: 0.95rem;
}

/* ============================================================
   HERO HEADER
   ============================================================ */

.consolidato-hero[b-9pvfze5rki] {
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #6a82fb 100%);
    border-radius: 18px;
    padding: 1.5rem;
    color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.35);
}

.consolidato-hero[b-9pvfze5rki]::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.consolidato-hero[b-9pvfze5rki]::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: radial-gradient(circle, rgba(252, 70, 107, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title-row[b-9pvfze5rki] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-title[b-9pvfze5rki] {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-title i[b-9pvfze5rki] {
    color: #ffd166;
    filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.6));
}

.hero-subtitle[b-9pvfze5rki] {
    display: block;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.2rem;
    font-weight: 400;
}

.hero-period-badge[b-9pvfze5rki] {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.hero-stats-grid[b-9pvfze5rki] {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.hero-stat[b-9pvfze5rki] {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-stat:hover[b-9pvfze5rki] {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.18);
}

.hero-stat-icon[b-9pvfze5rki] {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.2);
}

.hero-stat-revenue .hero-stat-icon[b-9pvfze5rki] {
    background: linear-gradient(135deg, #fad961 0%, #f76b1c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(247, 107, 28, 0.4);
}

.hero-stat-collected .hero-stat-icon[b-9pvfze5rki] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 249, 215, 0.4);
}

.hero-stat-discount .hero-stat-icon[b-9pvfze5rki] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.hero-stat-visits .hero-stat-icon[b-9pvfze5rki] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.hero-stat-body[b-9pvfze5rki] {
    flex: 1;
    min-width: 0;
}

.hero-stat-label[b-9pvfze5rki] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 0.15rem;
}

.hero-stat-value[b-9pvfze5rki] {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-stat-sub[b-9pvfze5rki] {
    font-size: 0.72rem;
    opacity: 0.8;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* ============================================================
   CHART CARDS
   ============================================================ */

.consolidato-chart-card[b-9pvfze5rki] {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* NB: i background usano !important per vincere sul .card-header di Bootstrap
   (stessa specificità di classe) che altrimenti renderebbe l'header bianco/grigio,
   causando il testo bianco "invisibile" su sfondo chiaro. */
.card-header-consolidato[b-9pvfze5rki] {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    padding: 0.85rem 1.1rem;
    color: #ffffff !important;
}

.card-header-consolidato-alt[b-9pvfze5rki] {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%) !important;
    padding: 0.85rem 1.1rem;
    color: #ffffff !important;
}

.card-header-articoli[b-9pvfze5rki] {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%) !important;
    padding: 0.85rem 1.1rem;
    color: #ffffff !important;
}

.card-header-clienti[b-9pvfze5rki] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 0.85rem 1.1rem;
    color: #ffffff !important;
}

/* Tutti i titoli h5 degli header colorati del consolidato: testo bianco garantito */
.card-header-consolidato h5[b-9pvfze5rki],
.card-header-consolidato-alt h5[b-9pvfze5rki],
.card-header-articoli h5[b-9pvfze5rki],
.card-header-clienti h5[b-9pvfze5rki] {
    color: #ffffff !important;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.card-header-consolidato h5 i[b-9pvfze5rki],
.card-header-consolidato-alt h5 i[b-9pvfze5rki],
.card-header-articoli h5 i[b-9pvfze5rki],
.card-header-clienti h5 i[b-9pvfze5rki] {
    color: #ffffff !important;
}

.header-hint[b-9pvfze5rki] {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
    margin-left: 0.5rem;
}

.consolidato-chart-wrapper[b-9pvfze5rki] {
    padding: 0.75rem;
    min-height: 280px;
}

[b-9pvfze5rki] .chart-consolidato {
    width: 100%;
    height: 280px;
}

.chart-tooltip-consolidato[b-9pvfze5rki] {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #1a202c;
}

.chart-tooltip-consolidato strong[b-9pvfze5rki] {
    color: #1e3c72;
    font-size: 0.8rem;
}

/* ============================================================
   RAFFRONTI vs ANNO PRECEDENTE
   ============================================================ */

.consolidato-raffronti-section[b-9pvfze5rki] {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.consolidato-raffronti-grid[b-9pvfze5rki] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.raffronto-card[b-9pvfze5rki] {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fafbff;
    display: flex;
    flex-direction: column;
}

.raffronto-card-header[b-9pvfze5rki] {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0.7rem 0.9rem;
    color: #ffffff;
}

.raffronto-titolo[b-9pvfze5rki] {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.raffronto-titolo i[b-9pvfze5rki] {
    margin-right: 0.4rem;
    color: #ffd166;
}

.raffronto-periodi[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    line-height: 1.4;
}

.periodo-corr[b-9pvfze5rki] {
    color: #ffffff;
    font-weight: 600;
}

.periodo-prec[b-9pvfze5rki] {
    color: rgba(255, 255, 255, 0.7);
}

.raffronto-card-body[b-9pvfze5rki] {
    padding: 0.4rem 0.6rem 0.6rem;
    display: flex;
    flex-direction: column;
}

.raffronto-metrica[b-9pvfze5rki] {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid #edf2f7;
}

.raffronto-metrica:last-child[b-9pvfze5rki] {
    border-bottom: none;
}

.metrica-label[b-9pvfze5rki] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    min-width: 72px;
}

.metrica-valori[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.metrica-corr[b-9pvfze5rki] {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3c72;
    letter-spacing: -0.01em;
}

.metrica-prec[b-9pvfze5rki] {
    font-size: 0.72rem;
    color: #a0aec0;
    font-weight: 500;
}

.metrica-scostamento[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
    min-width: 78px;
}

.scost-riga[b-9pvfze5rki] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.scost-riga i[b-9pvfze5rki] {
    font-size: 0.6rem;
}

.scost-perc[b-9pvfze5rki] {
    font-size: 0.72rem;
    font-weight: 600;
}

.scost-positivo[b-9pvfze5rki] {
    color: #11875f;
}

.scost-negativo[b-9pvfze5rki] {
    color: #d92d20;
}

/* ============================================================
   CARDS MENSILI
   ============================================================ */

.consolidato-mesi-section[b-9pvfze5rki] {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.consolidato-mesi-grid[b-9pvfze5rki] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    padding: 1rem;
}

.mese-card[b-9pvfze5rki] {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.mese-card[b-9pvfze5rki]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.mese-card:hover[b-9pvfze5rki] {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

.mese-card:hover[b-9pvfze5rki]::before {
    transform: scaleX(1);
}

.mese-card-selected[b-9pvfze5rki] {
    background: linear-gradient(180deg, #f0f4ff 0%, #e6ecff 100%);
    border-color: #667eea;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3);
}

.mese-card-selected[b-9pvfze5rki]::before {
    transform: scaleX(1);
    height: 4px;
}

.mese-card-empty[b-9pvfze5rki] {
    opacity: 0.55;
}

.mese-card-header[b-9pvfze5rki] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.mese-card-label[b-9pvfze5rki] {
    font-size: 1rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mese-card-header i[b-9pvfze5rki] {
    color: #667eea;
    font-size: 1.05rem;
}

.mese-card-revenue[b-9pvfze5rki] {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 0.7rem;
    letter-spacing: -0.02em;
}

.mese-card-stats[b-9pvfze5rki] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mese-stat-row[b-9pvfze5rki] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #4a5568;
}

.mese-stat-icon[b-9pvfze5rki] {
    width: 22px;
    flex-shrink: 0;
    color: #667eea;
    font-size: 0.95rem;
}

.mese-stat-label[b-9pvfze5rki] {
    color: #718096;
    flex-shrink: 0;
    font-weight: 500;
}

.mese-stat-value[b-9pvfze5rki] {
    margin-left: auto;
    font-weight: 700;
    color: #2d3748;
    text-align: right;
}

.mese-stat-divider[b-9pvfze5rki] {
    padding-top: 0.35rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.2rem;
}

.mese-stat-incassi[b-9pvfze5rki] {
    color: #11998e;
    font-weight: 700;
}

.mese-card-progress[b-9pvfze5rki] {
    position: relative;
    margin-top: 0.6rem;
    height: 22px;
    background: #e2e8f0;
    border-radius: 11px;
    overflow: hidden;
}

.mese-card-progress-bar[b-9pvfze5rki] {
    height: 100%;
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
    border-radius: 11px;
    transition: width 0.6s ease;
}

.mese-card-progress-label[b-9pvfze5rki] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a202c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* ============================================================
   TOP ARTICOLI / CLIENTI
   ============================================================ */

.consolidato-top-section[b-9pvfze5rki] {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.consolidato-top-header[b-9pvfze5rki] {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #edf2f7;
    background: #f8faff;
}

.top-tabs[b-9pvfze5rki] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.top-tab[b-9pvfze5rki] {
    border: 2px solid transparent;
    background: white;
    color: #4a5568;
    padding: 0.45rem 0.95rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.top-tab:hover[b-9pvfze5rki] {
    border-color: #667eea;
    color: #667eea;
}

.top-tab-active[b-9pvfze5rki] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.consolidato-top-grid[b-9pvfze5rki] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.top-card[b-9pvfze5rki] {
    background: #fafbff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.top-card-body[b-9pvfze5rki] {
    padding: 0.5rem;
    max-height: 460px;
    overflow-y: auto;
}

.top-item[b-9pvfze5rki] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.top-item:hover[b-9pvfze5rki] {
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.top-item + .top-item[b-9pvfze5rki] {
    margin-top: 0.25rem;
}

.top-rank[b-9pvfze5rki] {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    background: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-rank-1[b-9pvfze5rki] {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    box-shadow: 0 3px 8px rgba(255, 140, 0, 0.45);
}

.top-rank-2[b-9pvfze5rki] {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    box-shadow: 0 3px 8px rgba(168, 168, 168, 0.4);
}

.top-rank-3[b-9pvfze5rki] {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    box-shadow: 0 3px 8px rgba(160, 82, 45, 0.4);
}

.top-rank-default[b-9pvfze5rki] {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.top-info[b-9pvfze5rki] {
    flex: 1;
    min-width: 0;
}

.top-name[b-9pvfze5rki] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-code[b-9pvfze5rki] {
    font-size: 0.7rem;
    color: #718096;
    font-family: 'Consolas', monospace;
    margin-top: 0.1rem;
}

.top-bar-container[b-9pvfze5rki] {
    margin-top: 0.35rem;
    height: 5px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

.top-bar[b-9pvfze5rki] {
    height: 100%;
    background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.top-bar-cliente[b-9pvfze5rki] {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.top-values[b-9pvfze5rki] {
    flex-shrink: 0;
    text-align: right;
    min-width: 90px;
}

.top-value-main[b-9pvfze5rki] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3c72;
    letter-spacing: -0.01em;
}

.top-value-sub[b-9pvfze5rki] {
    font-size: 0.7rem;
    color: #718096;
    margin-top: 0.1rem;
}

/* ============================================================
   RESPONSIVE - Tablet (768-1200)
   ============================================================ */

@media (max-width: 1200px) {
    .hero-stats-grid[b-9pvfze5rki] {
        grid-template-columns: repeat(2, 1fr);
    }

    .consolidato-mesi-grid[b-9pvfze5rki] {
        grid-template-columns: repeat(3, 1fr);
    }

    .consolidato-raffronti-grid[b-9pvfze5rki] {
        grid-template-columns: 1fr;
    }

    .consolidato-top-grid[b-9pvfze5rki] {
        grid-template-columns: 1fr;
    }

    [b-9pvfze5rki] .chart-consolidato {
        height: 260px;
    }
}

/* ============================================================
   RESPONSIVE - Mobile (< 768)
   ============================================================ */

@media (max-width: 768px) {
    .consolidato-hero[b-9pvfze5rki] {
        padding: 1rem;
        border-radius: 14px;
    }

    .hero-title[b-9pvfze5rki] {
        font-size: 1.15rem;
    }

    .hero-subtitle[b-9pvfze5rki] {
        font-size: 0.78rem;
    }

    .hero-period-badge[b-9pvfze5rki] {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-stats-grid[b-9pvfze5rki] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .hero-stat[b-9pvfze5rki] {
        padding: 0.7rem;
        gap: 0.55rem;
    }

    .hero-stat-icon[b-9pvfze5rki] {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .hero-stat-value[b-9pvfze5rki] {
        font-size: 1.15rem;
    }

    .hero-stat-label[b-9pvfze5rki] {
        font-size: 0.62rem;
    }

    .hero-stat-sub[b-9pvfze5rki] {
        font-size: 0.66rem;
    }

    .consolidato-mesi-grid[b-9pvfze5rki] {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .mese-card[b-9pvfze5rki] {
        padding: 0.75rem;
    }

    .mese-card-revenue[b-9pvfze5rki] {
        font-size: 1.35rem;
    }

    .mese-card-label[b-9pvfze5rki] {
        font-size: 0.9rem;
    }

    .mese-stat-row[b-9pvfze5rki] {
        font-size: 0.85rem;
    }

    .consolidato-top-grid[b-9pvfze5rki] {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .top-rank[b-9pvfze5rki] {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .top-name[b-9pvfze5rki] {
        font-size: 0.8rem;
    }

    .top-value-main[b-9pvfze5rki] {
        font-size: 0.85rem;
    }

    [b-9pvfze5rki] .chart-consolidato {
        height: 240px;
    }

    .consolidato-chart-wrapper[b-9pvfze5rki] {
        min-height: 240px;
        padding: 0.5rem;
    }
}

/* ============================================================
   RESPONSIVE - Small Mobile (< 576)
   ============================================================ */

@media (max-width: 576px) {
    .consolidato-section[b-9pvfze5rki] {
        gap: 1rem;
    }

    .hero-stats-grid[b-9pvfze5rki] {
        grid-template-columns: 1fr;
    }

    .hero-stat-value[b-9pvfze5rki] {
        font-size: 1.3rem;
    }

    .consolidato-mesi-grid[b-9pvfze5rki] {
        grid-template-columns: 1fr;
    }

    .mese-card-revenue[b-9pvfze5rki] {
        font-size: 1.4rem;
    }

    .top-values[b-9pvfze5rki] {
        min-width: 70px;
    }

    .top-value-main[b-9pvfze5rki] {
        font-size: 0.8rem;
    }

    .top-value-sub[b-9pvfze5rki] {
        font-size: 0.65rem;
    }

    .header-hint[b-9pvfze5rki] {
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
    }
}
/* /Components/AzioniRapide/VisualizzaChiusure.razor.rz.scp.css */
/* ==========================================================================
   Visualizza Chiusure - azione rapida della dashboard agente
   Stesso impianto delle pagine del consegnatario (testata compatta, sezioni a
   chip, card in una colonna) con la palette VERDE ACQUA della card
   "Visualizza Chiusure"; incassi in verde, attese in ambra.
   ========================================================================== */

.vc-page[b-tetrg3v8ua] {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Header compatto ===== */
.vc-header[b-tetrg3v8ua] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 12px;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    color: white;
}

.vc-header-main[b-tetrg3v8ua] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.vc-header-icon[b-tetrg3v8ua] {
    flex-shrink: 0;
    font-size: 1.4rem;
    display: inline-flex;
    line-height: 1;
}

.vc-header-testi[b-tetrg3v8ua] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vc-header-titolo[b-tetrg3v8ua] {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.vc-header-sub[b-tetrg3v8ua] {
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vc-header-btn[b-tetrg3v8ua] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.vc-header-btn:hover:not(:disabled)[b-tetrg3v8ua] {
    background: rgba(255, 255, 255, 0.28);
}

.vc-header-btn:disabled[b-tetrg3v8ua] {
    opacity: 0.5;
    cursor: default;
}

.vc-alert[b-tetrg3v8ua] {
    margin: 0.25rem 0;
}

/* ===== Sezioni a chip ===== */
.vc-tabs[b-tetrg3v8ua] {
    flex-shrink: 0;
    display: flex;
    /* Se le chip non entrano in una riga (etichette lunghe su schermi stretti)
       l'ultima va a capo a tutta larghezza invece di sbordare dal pill */
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.vc-tab[b-tetrg3v8ua] {
    /* Larghezze uguali quando c'è spazio, ma mai più strette del proprio
       contenuto: l'etichetta non deve uscire dal pill */
    flex: 1 1 0;
    min-width: max-content;
    white-space: nowrap;
    min-height: 44px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vc-tab-attiva[b-tetrg3v8ua] {
    background: #ccfbf1;
    border-color: #0d9488;
    color: #115e59;
}

.vc-tab-num[b-tetrg3v8ua] {
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vc-tab-attiva .vc-tab-num[b-tetrg3v8ua] {
    background: #0d9488;
    color: #fff;
}

/* ===== Corpo scorrevole ===== */
.vc-body[b-tetrg3v8ua] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
    animation: vcFadeIn-b-tetrg3v8ua 0.3s ease-out;
}

@keyframes vcFadeIn-b-tetrg3v8ua {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Hero ===== */
.vc-hero[b-tetrg3v8ua] {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #5eead4;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.vc-hero-label[b-tetrg3v8ua] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #115e59;
    font-weight: 700;
}

.vc-hero-importo[b-tetrg3v8ua] {
    font-size: 2.2rem;
    font-weight: 800;
    color: #134e4a;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.vc-hero-sub[b-tetrg3v8ua] {
    font-size: 0.8rem;
    color: #4b5563;
}

/* ===== Card ===== */
.vc-card[b-tetrg3v8ua] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.vc-card-attesa[b-tetrg3v8ua] {
    background: #fffbeb;
    border-color: #fcd34d;
}

.vc-card-title[b-tetrg3v8ua] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-weight: 700;
    color: #115e59;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vc-card-attesa .vc-card-title[b-tetrg3v8ua] {
    color: #92400e;
}

.vc-card-testata[b-tetrg3v8ua] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vc-card-toggle[b-tetrg3v8ua] {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    min-height: 44px;
}

.vc-card-testi[b-tetrg3v8ua] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.vc-card-titolo[b-tetrg3v8ua] {
    font-weight: 800;
    color: #1f2937;
    font-size: 1rem;
}

.vc-card-titolo .vc-mini[b-tetrg3v8ua] {
    margin-left: 0.4rem;
    text-transform: none;
    vertical-align: middle;
}

.vc-card-sub[b-tetrg3v8ua] {
    font-size: 0.78rem;
    color: #6b7280;
}

.vc-card-importo[b-tetrg3v8ua] {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.15rem;
    color: #134e4a;
    font-variant-numeric: tabular-nums;
}

.vc-mono[b-tetrg3v8ua] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
}

.vc-conteggi[b-tetrg3v8ua] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    text-transform: none;
    letter-spacing: 0;
}

.vc-mini[b-tetrg3v8ua] {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    white-space: nowrap;
}

.vc-mini-ok[b-tetrg3v8ua] {
    background: #ccfbf1;
    color: #115e59;
}

.vc-mini-attesa[b-tetrg3v8ua] {
    background: #fef3c7;
    color: #92400e;
}

/* Coppie etichetta/valore */
.vc-kv-grid[b-tetrg3v8ua] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem 0.9rem;
}

.vc-kv[b-tetrg3v8ua] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.vc-k[b-tetrg3v8ua] {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 600;
}

.vc-v[b-tetrg3v8ua] {
    font-weight: 700;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.vc-v small[b-tetrg3v8ua] {
    font-weight: 500;
    color: #9ca3af;
    margin-left: 0.25rem;
}

.vc-v-ok[b-tetrg3v8ua] {
    color: #166534;
}

/* ===== Azioni e pulsanti ===== */
.vc-azioni[b-tetrg3v8ua] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vc-azioni .vc-btn[b-tetrg3v8ua] {
    flex: 1;
    min-width: 150px;
}

.vc-btn[b-tetrg3v8ua] {
    min-height: 46px;
    border-radius: 12px;
    border: none;
    padding: 0 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.15s ease;
}

.vc-btn:active:not(:disabled)[b-tetrg3v8ua] {
    transform: scale(0.985);
}

.vc-btn:disabled[b-tetrg3v8ua] {
    opacity: 0.5;
    cursor: default;
}

.vc-btn-primary[b-tetrg3v8ua] {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}

.vc-btn-secondary[b-tetrg3v8ua] {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

.vc-spinner[b-tetrg3v8ua] {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vcSpin-b-tetrg3v8ua 0.8s linear infinite;
}

.vc-btn-secondary .vc-spinner[b-tetrg3v8ua] {
    border-color: rgba(55, 65, 81, 0.25);
    border-top-color: #374151;
}

@keyframes vcSpin-b-tetrg3v8ua {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Elenco ricevute (versamenti dell'agente) ===== */
.vc-elenco[b-tetrg3v8ua] {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.vc-voce[b-tetrg3v8ua] {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.vc-voce:hover:not(:disabled)[b-tetrg3v8ua] {
    border-color: #5eead4;
}

.vc-voce:disabled[b-tetrg3v8ua] {
    cursor: default;
}

.vc-voce-icona[b-tetrg3v8ua] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vc-voce-testi[b-tetrg3v8ua] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.vc-voce-titolo[b-tetrg3v8ua] {
    font-weight: 700;
    color: #1f2937;
}

.vc-voce-sub[b-tetrg3v8ua] {
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vc-chevron[b-tetrg3v8ua] {
    color: #9ca3af;
    flex-shrink: 0;
}

/* ===== Righe (partite) ===== */
.vc-righe[b-tetrg3v8ua] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px dashed #e5e7eb;
}

.vc-riga[b-tetrg3v8ua] {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vc-riga:last-child[b-tetrg3v8ua] {
    border-bottom: none;
}

.vc-riga-top[b-tetrg3v8ua] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vc-riga-doc[b-tetrg3v8ua] {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vc-riga-importo[b-tetrg3v8ua] {
    flex-shrink: 0;
    font-weight: 800;
    color: #134e4a;
    font-variant-numeric: tabular-nums;
}

.vc-riga-sub[b-tetrg3v8ua] {
    font-size: 0.78rem;
    color: #6b7280;
}

.vc-cod[b-tetrg3v8ua] {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    margin-right: 0.25rem;
}

/* ===== Note e vuoto ===== */
.vc-nota[b-tetrg3v8ua],
.vc-nota-card[b-tetrg3v8ua] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: #6b7280;
}

.vc-nota[b-tetrg3v8ua] {
    padding: 0 0.25rem;
}

.vc-nota-card[b-tetrg3v8ua] {
    color: #92400e;
}

.vc-nota .oi[b-tetrg3v8ua],
.vc-nota-card .oi[b-tetrg3v8ua] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.vc-vuoto[b-tetrg3v8ua] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 2rem 1rem;
    color: #6b7280;
}

.vc-vuoto-icona[b-tetrg3v8ua] {
    font-size: 2.6rem;
    color: #0d9488;
    line-height: 1;
}

.vc-vuoto-titolo[b-tetrg3v8ua] {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
}

.vc-vuoto-sub[b-tetrg3v8ua] {
    font-size: 0.85rem;
    max-width: 440px;
}

/* ===== Smartphone ===== */
@media (max-width: 768px) {
    .vc-hero-importo[b-tetrg3v8ua] {
        font-size: 1.9rem;
    }

    .vc-card[b-tetrg3v8ua] {
        padding: 0.75rem 0.85rem;
    }

    .vc-tab[b-tetrg3v8ua] {
        font-size: 0.82rem;
        gap: 0.3rem;
    }
}

/* Solo la data per esteso della chiusura va con l'iniziale maiuscola */
.vc-capitalize[b-tetrg3v8ua] {
    text-transform: capitalize;
}

/* Smartphone stretti: chip senza icone (se non entrano in una riga l'ultima
   va a capo), pulsanti impilati */
@media (max-width: 430px) {
    .vc-tabs[b-tetrg3v8ua] {
        gap: 0.3rem;
    }

    .vc-tab[b-tetrg3v8ua] {
        font-size: 0.78rem;
        padding: 0 0.35rem;
        gap: 0.25rem;
    }

    .vc-tab .oi[b-tetrg3v8ua] {
        display: none;
    }

    .vc-tab-num[b-tetrg3v8ua] {
        min-width: 18px;
        height: 18px;
        padding: 0 0.3rem;
        font-size: 0.68rem;
    }

    .vc-azioni .vc-btn[b-tetrg3v8ua] {
        flex-basis: 100%;
    }
}
/* /Components/AzioniRapide/VisualizzaOrdineSheet.razor.rz.scp.css */
/* ==========================================================================
   Ordine in sola lettura (Lista Ordini) - pannello a scorrimento
   Verde dell'intestazione "Elenco Ordini". Solo testi e importi: nessun campo
   modificabile, l'unico comando è "Chiudi" (pulsante largo nel footer).
   ========================================================================== */

/* ===== Overlay e pannello ===== */
.vo-overlay[b-r0p4wrcxby] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    pointer-events: none;
    transition: background-color 0.28s ease, backdrop-filter 0.28s ease;
    z-index: 10000;
}

.vo-overlay.vo-open[b-r0p4wrcxby] {
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.vo-sheet[b-r0p4wrcxby] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(560px, 100vw);
    height: 100vh;
    height: 100dvh;
    background: #f8fafc;
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.22);
    transform: translateX(104%);
    transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.vo-sheet.vo-open[b-r0p4wrcxby] {
    transform: translateX(0);
}

/* ===== Header ===== */
.vo-header[b-r0p4wrcxby] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: linear-gradient(135deg, var(--ml-color-success, #198754) 0%, var(--ml-color-success-dark, #157347) 100%);
    color: #fff;
    flex-shrink: 0;
}

.vo-icon-btn[b-r0p4wrcxby] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.05rem;
    transition: background 0.15s ease, transform 0.1s ease;
}

.vo-icon-btn:hover[b-r0p4wrcxby] {
    background: rgba(255, 255, 255, 0.28);
}

.vo-icon-btn:active[b-r0p4wrcxby] {
    transform: scale(0.94);
}

.vo-header-text[b-r0p4wrcxby] {
    min-width: 0;
    flex: 1;
}

.vo-title[b-r0p4wrcxby] {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vo-subtitle[b-r0p4wrcxby] {
    font-size: 0.82rem;
    opacity: 0.92;
}

.vo-stato[b-r0p4wrcxby] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== Avviso di sola lettura (una riga, sempre visibile) ===== */
.vo-sola-lettura[b-r0p4wrcxby] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: #ecfdf5;
    border-bottom: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

/* ===== Corpo scorrevole ===== */
.vo-body[b-r0p4wrcxby] {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem;
    min-height: 0;
}

.vo-step[b-r0p4wrcxby] {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    animation: voSlideIn-b-r0p4wrcxby 0.28s ease-out;
}

@keyframes voSlideIn-b-r0p4wrcxby {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.vo-card[b-r0p4wrcxby] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
}

.vo-card-title[b-r0p4wrcxby] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #157347;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* ===== Cliente ===== */
.vo-cliente-r1[b-r0p4wrcxby] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.vo-cod[b-r0p4wrcxby] {
    flex-shrink: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #374151;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.vo-cliente-nome[b-r0p4wrcxby] {
    font-weight: 700;
    color: #1f2937;
    min-width: 0;
    overflow-wrap: anywhere;
}

.vo-cliente-indirizzo[b-r0p4wrcxby] {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: #4b5563;
}

/* ===== Dati dell'ordine ===== */
.vo-kv-grid[b-r0p4wrcxby] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
}

.vo-kv[b-r0p4wrcxby] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.vo-k[b-r0p4wrcxby] {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 700;
}

.vo-v[b-r0p4wrcxby] {
    font-weight: 700;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.vo-note[b-r0p4wrcxby] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #1f2937;
    font-size: 0.88rem;
}

/* ===== Righe articolo ===== */
.vo-card-righe[b-r0p4wrcxby] {
    padding-bottom: 0.35rem;
}

.vo-righe[b-r0p4wrcxby] {
    display: flex;
    flex-direction: column;
}

.vo-riga[b-r0p4wrcxby] {
    padding: 0.5rem 0;
    border-top: 1px solid #f1f3f5;
}

.vo-riga:first-child[b-r0p4wrcxby] {
    border-top: none;
    padding-top: 0;
}

.vo-riga-descr[b-r0p4wrcxby] {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.vo-riga-dettagli[b-r0p4wrcxby] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.6rem;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.vo-riga-cod[b-r0p4wrcxby] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    color: #6b7280;
}

.vo-riga-omaggio .vo-riga-cod[b-r0p4wrcxby] {
    color: #b45309;
}

.vo-badge[b-r0p4wrcxby] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.vo-badge-omaggio[b-r0p4wrcxby] {
    background: #fef3c7;
    color: #92400e;
}

.vo-badge-promo[b-r0p4wrcxby] {
    background: #fce7f3;
    color: #9d174d;
}

.vo-riga-qta[b-r0p4wrcxby] {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.vo-riga-sconti[b-r0p4wrcxby] {
    font-weight: 700;
    color: #b45309;
    white-space: nowrap;
}

.vo-riga-importo[b-r0p4wrcxby] {
    margin-left: auto;
    font-weight: 800;
    color: #1f2937;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.vo-riga-gratis[b-r0p4wrcxby] {
    color: #15803d;
}

/* ===== Totali ===== */
.vo-totali[b-r0p4wrcxby] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.vo-totale-riga[b-r0p4wrcxby] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    color: #4b5563;
    font-size: 0.88rem;
}

.vo-totale-v[b-r0p4wrcxby] {
    font-weight: 700;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vo-totale-finale[b-r0p4wrcxby] {
    margin-top: 0.2rem;
    padding-top: 0.45rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.vo-totale-finale .vo-totale-v[b-r0p4wrcxby] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #157347;
}

/* ===== Caricamento, errore, nessuna riga ===== */
.vo-caricamento[b-r0p4wrcxby],
.vo-vuoto[b-r0p4wrcxby] {
    text-align: center;
    color: #6b7280;
    padding: 1.5rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vo-spinner[b-r0p4wrcxby] {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(25, 135, 84, 0.25);
    border-top-color: #198754;
    border-radius: 50%;
    animation: voSpin-b-r0p4wrcxby 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes voSpin-b-r0p4wrcxby {
    to {
        transform: rotate(360deg);
    }
}

.vo-errore[b-r0p4wrcxby] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fee2e2;
    border: 1.5px solid #ef4444;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    color: #991b1b;
    font-weight: 600;
    font-size: 0.88rem;
}

.vo-btn-riprova[b-r0p4wrcxby] {
    margin-top: 0.65rem;
}

/* ===== Footer: un solo comando, Chiudi ===== */
.vo-footer[b-r0p4wrcxby] {
    flex-shrink: 0;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.vo-btn[b-r0p4wrcxby] {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: none;
    padding: 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.15s ease;
}

.vo-btn:hover[b-r0p4wrcxby] {
    filter: brightness(0.97);
}

.vo-btn:active[b-r0p4wrcxby] {
    transform: scale(0.985);
}

.vo-btn-secondary[b-r0p4wrcxby] {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

/* ===== Smartphone ===== */
@media (max-width: 768px) {
    .vo-sheet[b-r0p4wrcxby] {
        width: 100vw;
    }

    .vo-body[b-r0p4wrcxby] {
        padding: 0.6rem;
    }
}
/* /Components/Consegne/CambioGiroPage.razor.rz.scp.css */
/* ==========================================================================
   Cambio Giro - azione rapida della home consegne
   Palette ARANCIO/AMBRA del modulo consegne; il rosso è riservato all'avviso
   di irreversibilità, il verde all'esito riuscito e agli importi da incassare.
   Pensata per lo smartphone: card grandi e toccabili, una per collega.
   ========================================================================== */

.cg-page[b-13o2ip4n7v] {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Header compatto ===== */
.cg-header[b-13o2ip4n7v] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    border-radius: 12px;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.25);
    color: white;
}

.cg-header-main[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cg-header-icon[b-13o2ip4n7v] {
    flex-shrink: 0;
    font-size: 1.4rem;
    display: inline-flex;
    line-height: 1;
}

.cg-header-testi[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cg-header-titolo[b-13o2ip4n7v] {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.cg-header-sub[b-13o2ip4n7v] {
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cg-header-btn[b-13o2ip4n7v] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cg-header-btn:hover:not(:disabled)[b-13o2ip4n7v] {
    background: rgba(255, 255, 255, 0.28);
}

.cg-header-btn:disabled[b-13o2ip4n7v] {
    opacity: 0.5;
    cursor: default;
}

.cg-alert[b-13o2ip4n7v] {
    margin: 0.25rem 0;
}

/* ===== Corpo scorrevole ===== */
.cg-body[b-13o2ip4n7v] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
    animation: cgFadeIn-b-13o2ip4n7v 0.3s ease-out;
}

@keyframes cgFadeIn-b-13o2ip4n7v {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Esito dell'ultimo spostamento ===== */
.cg-esito[b-13o2ip4n7v] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cg-esito-testata[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cg-esito-icona[b-13o2ip4n7v] {
    font-size: 1.5rem;
    color: #16a34a;
    line-height: 1;
    flex-shrink: 0;
}

.cg-esito-titolo[b-13o2ip4n7v] {
    font-weight: 800;
    color: #14532d;
    line-height: 1.25;
}

.cg-esito-dettagli[b-13o2ip4n7v] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cg-esito-sub[b-13o2ip4n7v] {
    font-size: 0.82rem;
    color: #166534;
    line-height: 1.35;
}

/* Spostamento riuscito solo in parte: ambra dentro il riquadro verde, così si vede */
.cg-esito-avviso[b-13o2ip4n7v] {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #92400e;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

/* ===== Introduzione ===== */
.cg-intro[b-13o2ip4n7v] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 14px;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    color: #7c2d12;
    line-height: 1.35;
}

.cg-intro-icona[b-13o2ip4n7v] {
    flex-shrink: 0;
    color: #b45309;
    line-height: 1.2;
}

/* ===== Ricerca ===== */
.cg-ricerca-riga[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[b-13o2ip4n7v] .cg-ricerca-box {
    flex: 1;
    min-width: 0;
}

.cg-nessun-filtro[b-13o2ip4n7v] {
    font-size: 0.85rem;
    color: #6b7280;
    padding: 0.5rem 0.25rem;
}

.cg-link-btn[b-13o2ip4n7v] {
    border: none;
    background: none;
    padding: 0 0.25rem;
    color: #b45309;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ===== Elenco dei colleghi ===== */
.cg-lista[b-13o2ip4n7v] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cg-collega[b-13o2ip4n7v] {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-left: 5px solid #d97706;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    min-height: 92px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.cg-collega:hover:not(:disabled)[b-13o2ip4n7v] {
    border-color: #d97706;
    box-shadow: 0 4px 14px rgba(146, 64, 14, 0.15);
}

.cg-collega:active:not(:disabled)[b-13o2ip4n7v] {
    transform: scale(0.995);
}

.cg-collega:focus-visible[b-13o2ip4n7v] {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.cg-collega:disabled[b-13o2ip4n7v] {
    opacity: 0.55;
    cursor: default;
}

.cg-collega-testata[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.cg-collega-codice[b-13o2ip4n7v] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: 9px;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.cg-collega-nome[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    font-weight: 800;
    font-size: 1.02rem;
    color: #1f2937;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cg-collega-freccia[b-13o2ip4n7v] {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1;
}

/* ===== Chip dei conteggi ===== */
.cg-chips[b-13o2ip4n7v] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cg-chip[b-13o2ip4n7v] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    color: #4b5563;
    white-space: nowrap;
}

.cg-chip .oi[b-13o2ip4n7v] {
    font-size: 0.7rem;
    color: #9ca3af;
}

.cg-chip-forte[b-13o2ip4n7v] {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
    font-weight: 700;
}

.cg-chip-forte .oi[b-13o2ip4n7v] {
    color: #d97706;
}

.cg-chip-incasso[b-13o2ip4n7v] {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.cg-chip-incasso .oi[b-13o2ip4n7v] {
    color: #16a34a;
}

/* ===== Importi della card ===== */
.cg-collega-importi[b-13o2ip4n7v] {
    display: flex;
    gap: 0.5rem;
    border-top: 1px dashed #e5e7eb;
    padding-top: 0.5rem;
}

.cg-importo[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cg-importo-label[b-13o2ip4n7v] {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
}

.cg-importo-valore[b-13o2ip4n7v] {
    font-weight: 800;
    font-size: 1.05rem;
    color: #92400e;
    font-variant-numeric: tabular-nums;
}

.cg-importo-incasso .cg-importo-valore[b-13o2ip4n7v] {
    color: #14532d;
}

.cg-collega-periodo[b-13o2ip4n7v] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.cg-collega-avviso[b-13o2ip4n7v] {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: 0.35rem 0.55rem;
    font-size: 0.76rem;
    color: #9a3412;
    line-height: 1.3;
}

/* ===== Nota e stato vuoto ===== */
.cg-nota[b-13o2ip4n7v] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: #6b7280;
    padding: 0 0.25rem;
    line-height: 1.35;
}

.cg-nota .oi[b-13o2ip4n7v] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.cg-vuoto[b-13o2ip4n7v] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 2rem 1rem;
    color: #6b7280;
}

.cg-vuoto-icona[b-13o2ip4n7v] {
    font-size: 2.6rem;
    color: #16a34a;
    line-height: 1;
}

.cg-vuoto-titolo[b-13o2ip4n7v] {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
}

.cg-vuoto-sub[b-13o2ip4n7v] {
    font-size: 0.85rem;
    max-width: 420px;
}

/* ==========================================================================
   Dialoghi: avviso di irreversibilità e frase di conferma
   ========================================================================== */

.cg-popup-body[b-13o2ip4n7v] {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.5rem 0.25rem;
}

.cg-popup-collega[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.cg-popup-collega-nome[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

/* Avviso: rosso, è l'unico punto della pagina che lo usa */
.cg-avviso-box[b-13o2ip4n7v] {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
}

.cg-avviso-titolo[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    color: #991b1b;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.cg-avviso-elenco[b-13o2ip4n7v] {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: #7f1d1d;
    line-height: 1.35;
}

.cg-fuori-orizzonte[b-13o2ip4n7v] {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    color: #9a3412;
    line-height: 1.35;
}

.cg-conferma-titolo[b-13o2ip4n7v] {
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.35;
}

.cg-conferma-riepilogo[b-13o2ip4n7v] {
    font-size: 0.82rem;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

/* Scelta parziale: quante consegne restano al collega, detto chiaro prima della frase */
.cg-conferma-restano[b-13o2ip4n7v] {
    display: block;
    margin-top: 0.25rem;
    color: #92400e;
    font-weight: 600;
}

/* ===== Frase di conferma ===== */
.cg-frase-blocco[b-13o2ip4n7v] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
}

.cg-frase-label[b-13o2ip4n7v] {
    font-size: 0.86rem;
    color: #374151;
    margin: 0;
}

.cg-frase-attesa[b-13o2ip4n7v] {
    display: inline-block;
    background: #1f2937;
    color: #fbbf24;
    border-radius: 7px;
    padding: 0.12rem 0.45rem;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

[b-13o2ip4n7v] .cg-frase-box {
    width: 100%;
}

.cg-frase-stato[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    min-height: 1.2rem;
}

.cg-frase-ok[b-13o2ip4n7v] {
    color: #166534;
    font-weight: 700;
}

.cg-frase-ko[b-13o2ip4n7v] {
    color: #6b7280;
}

/* ===== Attesa durante lo spostamento ===== */
.cg-attesa[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 600;
}

.cg-attesa-spinner[b-13o2ip4n7v] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid #fcd34d;
    border-top-color: #92400e;
    animation: cgSpin-b-13o2ip4n7v 0.8s linear infinite;
}

@keyframes cgSpin-b-13o2ip4n7v {
    to {
        transform: rotate(360deg);
    }
}

.cg-popup-azioni[b-13o2ip4n7v] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

/* ===== Smartphone ===== */
@media (max-width: 768px) {
    .cg-collega[b-13o2ip4n7v] {
        padding: 0.7rem 0.75rem;
    }

    .cg-collega-nome[b-13o2ip4n7v] {
        font-size: 0.98rem;
    }

    .cg-importo-valore[b-13o2ip4n7v] {
        font-size: 1rem;
    }

    /* Nei dialoghi i pulsanti diventano larghi: sono bersagli da pollice */
    .cg-popup-azioni[b-13o2ip4n7v] {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* ==========================================================================
   Scelta delle consegne da prendere (giro diviso fra più furgoni)
   Stessa palette: ambra per quello che si sta prendendo, verde per gli incassi.
   Ogni riga è un pulsante-spunta grande, toccabile con il pollice.
   ========================================================================== */

.cg-selezione[b-13o2ip4n7v] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cg-selezione-testata[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cg-indietro[b-13o2ip4n7v] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #92400e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cg-indietro:hover:not(:disabled)[b-13o2ip4n7v] {
    border-color: #d97706;
    background: #fffbeb;
}

.cg-indietro:focus-visible[b-13o2ip4n7v] {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.cg-indietro:disabled[b-13o2ip4n7v] {
    opacity: 0.5;
    cursor: default;
}

.cg-selezione-titoli[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cg-selezione-titolo[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.cg-selezione-nome[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    font-weight: 800;
    font-size: 1.02rem;
    color: #1f2937;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-selezione-sub[b-13o2ip4n7v] {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Barra di selezione rapida: conteggio a sinistra, Tutte / Nessuna a destra */
.cg-selezione-strumenti[b-13o2ip4n7v] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.25rem;
}

.cg-selezione-conteggio[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    color: #4b5563;
    font-variant-numeric: tabular-nums;
}

.cg-selezione-strumenti .cg-link-btn[b-13o2ip4n7v] {
    min-height: 36px;
}

.cg-selezione-strumenti .cg-link-btn:disabled[b-13o2ip4n7v] {
    color: #9ca3af;
    text-decoration: none;
    cursor: default;
}

/* Segno di spunta condiviso da giorni e consegne */
.cg-check[b-13o2ip4n7v] {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid #d1d5db;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.8rem;
    line-height: 1;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.cg-check-on[b-13o2ip4n7v] {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

/* Giorno scelto solo in parte: trattino ambra su fondo bianco */
.cg-check-parte[b-13o2ip4n7v] {
    background: #fff;
    border-color: #d97706;
    color: #d97706;
}

/* ===== Giorno di giro: la testata sceglie o toglie tutte le consegne del giorno ===== */
.cg-giorno[b-13o2ip4n7v] {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cg-giorno-testata[b-13o2ip4n7v] {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    min-height: 52px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.cg-giorno-testata:hover:not(:disabled)[b-13o2ip4n7v] {
    border-color: #d97706;
}

.cg-giorno-testata:focus-visible[b-13o2ip4n7v] {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.cg-giorno-testata:disabled[b-13o2ip4n7v] {
    opacity: 0.55;
    cursor: default;
}

.cg-giorno-testi[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.cg-giorno-titolo[b-13o2ip4n7v] {
    font-weight: 800;
    color: #92400e;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cg-giorno-badge[b-13o2ip4n7v] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
}

.cg-giorno-sub[b-13o2ip4n7v] {
    font-size: 0.78rem;
    color: #78350f;
    font-variant-numeric: tabular-nums;
}

/* ===== Consegne del giorno ===== */
.cg-consegne[b-13o2ip4n7v] {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cg-consegna[b-13o2ip4n7v] {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    min-height: 60px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cg-consegna:hover:not(:disabled)[b-13o2ip4n7v] {
    border-color: #d97706;
}

.cg-consegna:focus-visible[b-13o2ip4n7v] {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.cg-consegna:disabled[b-13o2ip4n7v] {
    opacity: 0.55;
    cursor: default;
}

.cg-consegna-scelta[b-13o2ip4n7v] {
    background: #fffbeb;
    border-color: #f59e0b;
    box-shadow: 0 2px 10px rgba(146, 64, 14, 0.12);
}

.cg-consegna .cg-check[b-13o2ip4n7v] {
    margin-top: 0.1rem;
}

.cg-consegna-corpo[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    line-height: 1.25;
}

.cg-consegna-cliente[b-13o2ip4n7v] {
    font-weight: 800;
    color: #1f2937;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-consegna-indirizzo[b-13o2ip4n7v] {
    font-size: 0.78rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-consegna-doc[b-13o2ip4n7v] {
    font-size: 0.76rem;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-consegna-doc .oi[b-13o2ip4n7v] {
    font-size: 0.65rem;
    flex-shrink: 0;
}

.cg-consegna-numeri[b-13o2ip4n7v] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.cg-consegna-importo[b-13o2ip4n7v] {
    font-weight: 800;
    color: #92400e;
    font-size: 0.95rem;
    white-space: nowrap;
}

.cg-consegna-incasso[b-13o2ip4n7v] {
    font-size: 0.74rem;
    font-weight: 700;
    color: #166534;
    white-space: nowrap;
}

.cg-consegna-colli[b-13o2ip4n7v] {
    font-size: 0.74rem;
    color: #6b7280;
    white-space: nowrap;
}

/* ===== Piede fisso in fondo al corpo scorrevole: totali e Continua ===== */
.cg-selezione-piede[b-13o2ip4n7v] {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1.5px solid #fcd34d;
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    margin-top: 0.25rem;
}

.cg-selezione-totali[b-13o2ip4n7v] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.cg-selezione-totali-riga1[b-13o2ip4n7v] {
    font-size: 0.88rem;
    color: #1f2937;
}

.cg-selezione-totali-riga2[b-13o2ip4n7v] {
    font-size: 0.78rem;
    color: #6b7280;
}

.cg-selezione-totali-vuoto[b-13o2ip4n7v] {
    font-size: 0.85rem;
    color: #9ca3af;
}

[b-13o2ip4n7v] .cg-selezione-continua {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cg-consegna-numeri[b-13o2ip4n7v] {
        max-width: 42%;
    }

    /* Sui telefoni il piede si impila: totali sopra, Continua largo sotto */
    .cg-selezione-piede[b-13o2ip4n7v] {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.6rem 0.75rem;
    }

    [b-13o2ip4n7v] .cg-selezione-continua {
        width: 100%;
    }
}
/* /Components/Consegne/CassaConsegnatarioPage.razor.rz.scp.css */
/* ==========================================================================
   Cassa del consegnatario - azione rapida della home consegne
   Palette ARANCIO/AMBRA del modulo consegne; totale da versare in verde,
   consegne in ambra, partite aperte in blu.
   Pensata per lo smartphone: testata compatta, card grandi in una colonna.
   ========================================================================== */

.cs-page[b-1a7ih1myff] {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Header compatto ===== */
.cs-header[b-1a7ih1myff] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    border-radius: 12px;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.25);
    color: white;
}

.cs-header-main[b-1a7ih1myff] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cs-header-icon[b-1a7ih1myff] {
    flex-shrink: 0;
    font-size: 1.4rem;
    display: inline-flex;
    line-height: 1;
}

.cs-header-testi[b-1a7ih1myff] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cs-header-titolo[b-1a7ih1myff] {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.cs-header-sub[b-1a7ih1myff] {
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-header-btn[b-1a7ih1myff] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cs-header-btn:hover:not(:disabled)[b-1a7ih1myff] {
    background: rgba(255, 255, 255, 0.28);
}

.cs-header-btn:disabled[b-1a7ih1myff] {
    opacity: 0.5;
    cursor: default;
}

.cs-alert[b-1a7ih1myff] {
    margin: 0.25rem 0;
}

/* ===== Corpo scorrevole ===== */
.cs-body[b-1a7ih1myff] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
    animation: csFadeIn-b-1a7ih1myff 0.3s ease-out;
}

@keyframes csFadeIn-b-1a7ih1myff {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Totale generale ===== */
.cs-hero[b-1a7ih1myff] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.cs-hero-label[b-1a7ih1myff] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #166534;
    font-weight: 700;
}

.cs-hero-importo[b-1a7ih1myff] {
    font-size: 2.4rem;
    font-weight: 800;
    color: #14532d;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.cs-hero-chips[b-1a7ih1myff] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.cs-hero-chip[b-1a7ih1myff] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
    color: #166534;
}

.cs-hero-chip b[b-1a7ih1myff] {
    font-variant-numeric: tabular-nums;
}

.cs-hero-sub[b-1a7ih1myff] {
    font-size: 0.8rem;
    color: #4b5563;
}

/* ===== Card ===== */
.cs-card[b-1a7ih1myff] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cs-card-title[b-1a7ih1myff] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #92400e;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.cs-lista[b-1a7ih1myff] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cs-riga[b-1a7ih1myff] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
    min-height: 52px;
}

.cs-riga:last-child[b-1a7ih1myff] {
    border-bottom: none;
}

.cs-riga-testi[b-1a7ih1myff] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.cs-riga-titolo[b-1a7ih1myff] {
    font-weight: 700;
    color: #1f2937;
    text-transform: capitalize;
}

.cs-riga-sub[b-1a7ih1myff] {
    font-size: 0.78rem;
    color: #6b7280;
}

.cs-riga-importo[b-1a7ih1myff] {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.05rem;
    color: #92400e;
    font-variant-numeric: tabular-nums;
}

.cs-subtotale[b-1a7ih1myff] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    border-top: 2px solid #e5e7eb;
    font-size: 0.9rem;
    color: #4b5563;
}

.cs-subtotale b[b-1a7ih1myff] {
    font-size: 1.1rem;
    color: #14532d;
    font-variant-numeric: tabular-nums;
}

/* ===== Per origine ===== */
.cs-origini[b-1a7ih1myff] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.cs-origine[b-1a7ih1myff] {
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    border: 1.5px solid #e5e7eb;
}

.cs-origine-consegne[b-1a7ih1myff] {
    background: #fffbeb;
    border-color: #fcd34d;
}

.cs-origine-partite[b-1a7ih1myff] {
    background: #eff6ff;
    border-color: #93c5fd;
}

.cs-origine-assente[b-1a7ih1myff] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #f9fafb;
    border-style: dashed;
    color: #9ca3af;
}

.cs-origine-testata[b-1a7ih1myff] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cs-origine-icona[b-1a7ih1myff] {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.cs-origine-consegne .cs-origine-icona[b-1a7ih1myff] {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.cs-origine-partite .cs-origine-icona[b-1a7ih1myff] {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.cs-origine-assente .cs-origine-icona[b-1a7ih1myff] {
    background: #e5e7eb;
    color: #9ca3af;
}

.cs-origine-testi[b-1a7ih1myff] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cs-origine-titolo[b-1a7ih1myff] {
    font-weight: 800;
    color: #1f2937;
}

.cs-origine-assente .cs-origine-titolo[b-1a7ih1myff] {
    color: #6b7280;
}

.cs-origine-sub[b-1a7ih1myff] {
    font-size: 0.78rem;
    color: #6b7280;
}

.cs-origine-importo[b-1a7ih1myff] {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
}

.cs-origine-consegne .cs-origine-importo[b-1a7ih1myff] {
    color: #92400e;
}

.cs-origine-partite .cs-origine-importo[b-1a7ih1myff] {
    color: #1e40af;
}

.cs-origine-tipi[b-1a7ih1myff] {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0.5rem 0 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.88rem;
    color: #374151;
}

.cs-origine-tipi li[b-1a7ih1myff] {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
}

.cs-origine-tipi .oi[b-1a7ih1myff] {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-right: 0.2rem;
}

.cs-origine-tipi b[b-1a7ih1myff] {
    font-variant-numeric: tabular-nums;
}

/* ===== Nota e link ===== */
.cs-nota[b-1a7ih1myff] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: #6b7280;
    padding: 0 0.25rem;
}

.cs-nota .oi[b-1a7ih1myff] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.cs-link-versamenti[b-1a7ih1myff] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.cs-link-versamenti:hover[b-1a7ih1myff] {
    border-color: #d97706;
    color: #92400e;
}

/* ===== Vuoto ===== */
.cs-vuoto[b-1a7ih1myff] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 2rem 1rem;
    color: #6b7280;
}

.cs-vuoto-icona[b-1a7ih1myff] {
    font-size: 2.6rem;
    color: #16a34a;
    line-height: 1;
}

.cs-vuoto-titolo[b-1a7ih1myff] {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
}

.cs-vuoto-sub[b-1a7ih1myff] {
    font-size: 0.85rem;
    max-width: 420px;
}

/* ===== Smartphone ===== */
@media (max-width: 768px) {
    .cs-hero-importo[b-1a7ih1myff] {
        font-size: 2rem;
    }

    .cs-card[b-1a7ih1myff] {
        padding: 0.75rem 0.85rem;
    }
}

/* ===== Merce resa alla consegna (informativa) ===== */
.cs-resi[b-1a7ih1myff] {
    background: #fff7ed;
    border-color: #fdba74;
}

.cs-resi .cs-card-title[b-1a7ih1myff] {
    color: #9a3412;
}

.cs-resi-riga[b-1a7ih1myff] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cs-resi-testi[b-1a7ih1myff] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cs-resi-titolo[b-1a7ih1myff] {
    font-weight: 700;
    color: #7c2d12;
}

.cs-resi-sub[b-1a7ih1myff] {
    font-size: 0.78rem;
    color: #9a3412;
}

.cs-resi-importo[b-1a7ih1myff] {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.15rem;
    color: #7c2d12;
    font-variant-numeric: tabular-nums;
}
/* /Components/Consegne/ConfermaConsegnaSheet.razor.rz.scp.css */
/* ==========================================================================
   Conferma consegna - pannello a scorrimento del giro consegna
   Palette ARANCIO/AMBRA del modulo consegne; esiti: verde (pagata),
   ambra (acconto), blu (a credito), rosso (rifiutata).
   Pensato per il tocco: pulsanti alti (>= 48px), card grandi, un'azione
   principale per passo sempre visibile nel footer.
   ========================================================================== */

/* ===== Overlay e pannello ===== */
.cc-overlay[b-yyhn3hmhth] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    pointer-events: none;
    transition: background-color 0.28s ease, backdrop-filter 0.28s ease;
    z-index: 10000;
}

.cc-overlay.cc-open[b-yyhn3hmhth] {
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.cc-sheet[b-yyhn3hmhth] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(600px, 100vw);
    height: 100vh;
    height: 100dvh;
    background: #f8fafc;
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.22);
    transform: translateX(104%);
    transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.cc-sheet.cc-open[b-yyhn3hmhth] {
    transform: translateX(0);
}

/* ===== Header ===== */
.cc-header[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    color: #fff;
    flex-shrink: 0;
}

.cc-icon-btn[b-yyhn3hmhth] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.05rem;
    transition: background 0.15s ease, transform 0.1s ease;
}

.cc-icon-btn:hover[b-yyhn3hmhth] {
    background: rgba(255, 255, 255, 0.28);
}

.cc-icon-btn:active[b-yyhn3hmhth] {
    transform: scale(0.94);
}

.cc-icon-btn:disabled[b-yyhn3hmhth] {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* «Aggiorna» mentre rilegge i dati: l'icona gira */
.cc-gira[b-yyhn3hmhth] {
    animation: ccSpin-b-yyhn3hmhth 0.8s linear infinite;
}

/* Esito di «Aggiorna», fisso sotto i passi (non scorre con il contenuto) */
.cc-aggiornato[b-yyhn3hmhth] {
    margin: 0.6rem 1rem 0;
    flex-shrink: 0;
    cursor: pointer;
}

.cc-aggiornato > .oi[b-yyhn3hmhth] {
    font-size: 1.1rem;
}

.cc-header-text[b-yyhn3hmhth] {
    min-width: 0;
    flex: 1;
}

.cc-title[b-yyhn3hmhth] {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.cc-subtitle[b-yyhn3hmhth] {
    font-size: 0.82rem;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-progressivo[b-yyhn3hmhth] {
    min-width: 36px;
    height: 36px;
    padding: 0 0.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== Indicatore dei passi ===== */
.cc-stepper[b-yyhn3hmhth] {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0.7rem 1rem 0.2rem;
    flex-shrink: 0;
}

.cc-step-dot[b-yyhn3hmhth] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #9ca3af;
    position: relative;
}

/* Linea di collegamento tra i passi */
.cc-step-dot:not(:last-child)[b-yyhn3hmhth]::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.cc-step-num[b-yyhn3hmhth] {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.cc-step-num .oi[b-yyhn3hmhth] {
    font-size: 0.6rem;
}

.cc-step-attivo[b-yyhn3hmhth] {
    color: #92400e;
    font-weight: 700;
}

.cc-step-attivo .cc-step-num[b-yyhn3hmhth] {
    background: #d97706;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.cc-step-fatto .cc-step-num[b-yyhn3hmhth] {
    background: #16a34a;
    color: #fff;
}

.cc-step-fatto:not(:last-child)[b-yyhn3hmhth]::before {
    background: #16a34a;
}

/* ===== Corpo scorrevole e animazione dei passi ===== */
.cc-body[b-yyhn3hmhth] {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    min-height: 0;
}

.cc-step[b-yyhn3hmhth] {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cc-anim[b-yyhn3hmhth] {
    animation: ccSlideIn-b-yyhn3hmhth 0.28s ease-out;
}

@keyframes ccSlideIn-b-yyhn3hmhth {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Footer con l'azione principale ===== */
.cc-footer[b-yyhn3hmhth] {
    flex-shrink: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cc-footer-row[b-yyhn3hmhth] {
    display: flex;
    gap: 0.5rem;
}

.cc-footer-row .cc-btn[b-yyhn3hmhth] {
    flex: 1;
}

.cc-conferma-annulla[b-yyhn3hmhth] {
    font-size: 0.9rem;
    color: #991b1b;
    font-weight: 600;
    text-align: center;
}

.cc-btn[b-yyhn3hmhth] {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cc-btn:hover:not(:disabled)[b-yyhn3hmhth] {
    filter: brightness(1.05);
}

.cc-btn:active:not(:disabled)[b-yyhn3hmhth] {
    transform: scale(0.985);
}

.cc-btn:disabled[b-yyhn3hmhth] {
    opacity: 0.55;
    cursor: default;
}

.cc-btn-primary[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.cc-btn-success[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.cc-btn-danger[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.cc-btn-secondary[b-yyhn3hmhth] {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

.cc-btn-link[b-yyhn3hmhth] {
    background: transparent;
    color: #b91c1c;
    min-height: 40px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Card ===== */
.cc-card[b-yyhn3hmhth] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cc-card-title[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #92400e;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

/* Blocco in evidenza con l'importo */
.cc-hero[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    text-align: center;
}

.cc-hero-label[b-yyhn3hmhth] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #92400e;
    font-weight: 700;
}

.cc-hero-importo[b-yyhn3hmhth] {
    font-size: 2.2rem;
    font-weight: 800;
    color: #78350f;
    line-height: 1.15;
    margin: 0.15rem 0;
    font-variant-numeric: tabular-nums;
}

.cc-hero-sub[b-yyhn3hmhth] {
    font-size: 0.85rem;
    color: #6b7280;
}

.cc-hero-verde[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

/* Documento senza incasso alla consegna: niente da riscuotere, niente allarme giallo */
.cc-hero-neutro[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: #d1d5db;
}

.cc-hero-neutro .cc-hero-label[b-yyhn3hmhth],
.cc-hero-neutro .cc-hero-importo[b-yyhn3hmhth] {
    color: #4b5563;
}

.cc-hero-verde .cc-hero-label[b-yyhn3hmhth],
.cc-hero-verde .cc-hero-importo[b-yyhn3hmhth] {
    color: #166534;
}

/* Coppie etichetta/valore del documento */
.cc-kv-grid[b-yyhn3hmhth] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem 0.9rem;
}

.cc-kv[b-yyhn3hmhth] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cc-k[b-yyhn3hmhth] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 600;
}

.cc-v[b-yyhn3hmhth] {
    font-size: 0.95rem;
    color: #1f2937;
}

.cc-v-strong[b-yyhn3hmhth] {
    font-weight: 700;
}

.cc-v-big[b-yyhn3hmhth] {
    font-size: 1.4rem;
    color: #92400e;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cc-v-big .oi[b-yyhn3hmhth] {
    font-size: 1rem;
}

.cc-messaggio[b-yyhn3hmhth] {
    margin-top: 0.6rem;
    padding: 0.5rem 0.7rem;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #92400e;
    font-style: italic;
}

/* Intestatario (PF) e destinazione (PD): le colonne non si allargano oltre la card
   (minmax(0, 1fr)) e i nomi lunghi, anche senza spazi, vanno a capo dentro la loro colonna */
.cc-soggetti[b-yyhn3hmhth] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.9rem;
}

.cc-soggetto[b-yyhn3hmhth] {
    border-left: 3px solid #d97706;
    padding-left: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.cc-soggetto-pd[b-yyhn3hmhth] {
    border-left-color: #2563eb;
}

.cc-soggetto-tag[b-yyhn3hmhth] {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #b45309;
}

.cc-soggetto-pd .cc-soggetto-tag[b-yyhn3hmhth] {
    color: #1d4ed8;
}

.cc-soggetto-nome[b-yyhn3hmhth] {
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cc-cod[b-yyhn3hmhth] {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 0 0.4rem;
    font-size: 0.72rem;
    color: #6b7280;
    margin-right: 0.3rem;
    font-weight: 600;
    vertical-align: middle;
}

.cc-soggetto-ind[b-yyhn3hmhth] {
    font-size: 0.85rem;
    color: #4b5563;
    overflow-wrap: anywhere;
}

.cc-soggetto-ind .oi[b-yyhn3hmhth] {
    font-size: 0.7rem;
    color: #9ca3af;
}

.cc-soggetto-tel[b-yyhn3hmhth] {
    font-size: 0.9rem;
    color: #1d4ed8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
}

.cc-soggetto-nota[b-yyhn3hmhth] {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
}

/* Righe del documento (accordion) */
.cc-righe-card[b-yyhn3hmhth] {
    padding: 0;
    overflow: hidden;
}

.cc-righe-toggle[b-yyhn3hmhth] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    background: none;
    border: none;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    text-align: left;
    min-height: 52px;
}

.cc-righe-toggle > .oi:first-child[b-yyhn3hmhth] {
    color: #d97706;
}

.cc-righe-count[b-yyhn3hmhth] {
    background: #fde68a;
    color: #92400e;
    border-radius: 999px;
    padding: 0 0.55rem;
    font-size: 0.78rem;
}

.cc-righe-chevron[b-yyhn3hmhth] {
    margin-left: auto;
    color: #9ca3af;
}

.cc-righe-scroll[b-yyhn3hmhth] {
    overflow-x: auto;
}

.cc-righe-table[b-yyhn3hmhth] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cc-righe-table th[b-yyhn3hmhth] {
    text-align: left;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    padding: 0.45rem 0.75rem;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

.cc-righe-table td[b-yyhn3hmhth] {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    color: #1f2937;
}

.cc-righe-table .cc-qta[b-yyhn3hmhth] {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.cc-um[b-yyhn3hmhth] {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 500;
    margin-left: 0.2rem;
}

.cc-righe-cod[b-yyhn3hmhth] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
}

.cc-righe-lotto[b-yyhn3hmhth] {
    font-size: 0.75rem;
    color: #9ca3af;
}

.cc-righe-vuote[b-yyhn3hmhth] {
    padding: 0.75rem 1rem 1rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.cc-omaggio[b-yyhn3hmhth] {
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    padding: 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: 0.3rem;
    vertical-align: middle;
}

/* Banner di stato del documento */
.cc-banner[b-yyhn3hmhth] {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.cc-banner > .oi[b-yyhn3hmhth] {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Il testo si stringe con il pannello invece di allargarlo */
.cc-banner > div[b-yyhn3hmhth] {
    min-width: 0;
}

.cc-banner-ok[b-yyhn3hmhth] {
    background: #dcfce7;
    color: #166534;
}

.cc-banner-rifiutata[b-yyhn3hmhth],
.cc-banner-danger[b-yyhn3hmhth] {
    background: #fee2e2;
    color: #991b1b;
}

.cc-banner-info[b-yyhn3hmhth] {
    background: #e0f2fe;
    color: #0c4a6e;
}

.cc-banner-title[b-yyhn3hmhth] {
    font-weight: 700;
}

.cc-banner-sub[b-yyhn3hmhth] {
    font-size: 0.8rem;
    opacity: 0.9;
    /* Va a capo anche dentro le parole lunghe (ragioni sociali senza spazi) */
    overflow-wrap: anywhere;
}

/* Selettore dei documenti della consegna */
.cc-doc-chips[b-yyhn3hmhth] {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
}

.cc-doc-chip[b-yyhn3hmhth] {
    flex: 0 0 auto;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    min-height: 40px;
}

.cc-doc-chip-attivo[b-yyhn3hmhth] {
    border-color: #d97706;
    background: #fef3c7;
    color: #92400e;
}

.cc-doc-chip-fatto .oi[b-yyhn3hmhth] {
    color: #16a34a;
}

.cc-doc-chip-rifiutato .oi[b-yyhn3hmhth] {
    color: #dc2626;
}

/* ===== Passo Esito: le quattro card ===== */
.cc-domanda[b-yyhn3hmhth] {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem;
}

.cc-opzioni[b-yyhn3hmhth] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cc-opzione[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    min-height: 76px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.cc-opzione:hover:not(:disabled)[b-yyhn3hmhth] {
    border-color: #d1d5db;
}

.cc-opzione:active:not(:disabled)[b-yyhn3hmhth] {
    transform: scale(0.985);
}

.cc-opzione:disabled[b-yyhn3hmhth] {
    opacity: 0.45;
    cursor: default;
}

.cc-opzione-icona[b-yyhn3hmhth] {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    color: #fff;
}

.cc-opzione-consegnata .cc-opzione-icona[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.cc-opzione-rifiutata .cc-opzione-icona[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.cc-opzione-testi[b-yyhn3hmhth] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.cc-opzione-titolo[b-yyhn3hmhth] {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
}

.cc-opzione-sub[b-yyhn3hmhth] {
    font-size: 0.82rem;
    color: #6b7280;
}

.cc-opzione-chevron[b-yyhn3hmhth] {
    color: #9ca3af;
}

.cc-opzione-attiva[b-yyhn3hmhth] {
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.cc-opzione-consegnata.cc-opzione-attiva[b-yyhn3hmhth] {
    border-color: #16a34a;
}

.cc-opzione-rifiutata.cc-opzione-attiva[b-yyhn3hmhth] {
    border-color: #dc2626;
}

/* ===== Passo Incasso: importo incassato e ripartizione ===== */
/* CasellaNumero: carattere e colore sulla casella, li ereditano numero e "€" */
[b-yyhn3hmhth] .cc-incasso-edit {
    max-width: 260px;
    margin: 0.35rem auto;
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    color: #78350f;
}

.cc-percentuali[b-yyhn3hmhth] {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin: 0.2rem 0 0.5rem;
    flex-wrap: wrap;
}

/* I pagamenti (tipo, importo e data) hanno il loro componente: FrazioniIncasso.razor.css */

.cc-mini-btn[b-yyhn3hmhth] {
    border: 1.5px solid #d97706;
    color: #92400e;
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    min-height: 38px;
}

.cc-mini-btn:active[b-yyhn3hmhth] {
    background: #fef3c7;
}

.cc-mini-btn-attivo[b-yyhn3hmhth],
.cc-mini-btn-attivo:active[b-yyhn3hmhth] {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

/* ===== Passo Conferma: riepilogo ===== */
.cc-riepilogo[b-yyhn3hmhth] {
    border-radius: 18px;
    padding: 1.4rem 1rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.cc-riepilogo-pagata[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #15803d, #22c55e);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.3);
}

.cc-riepilogo-acconto[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #b45309, #f59e0b);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.3);
}

.cc-riepilogo-credito[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.cc-riepilogo-rifiutata[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.3);
}

.cc-riepilogo-icona[b-yyhn3hmhth] {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
}

.cc-riepilogo-stato[b-yyhn3hmhth] {
    font-size: 1.25rem;
    font-weight: 800;
}

.cc-riepilogo-doc[b-yyhn3hmhth] {
    font-size: 0.85rem;
    opacity: 0.92;
}

.cc-riepilogo-importo[b-yyhn3hmhth] {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0.3rem;
    font-variant-numeric: tabular-nums;
}

.cc-riepilogo-quote[b-yyhn3hmhth] {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cc-pill[b-yyhn3hmhth] {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.cc-pill-scuro[b-yyhn3hmhth] {
    background: #fef3c7;
    color: #92400e;
}

.cc-riepilogo-sub[b-yyhn3hmhth] {
    font-size: 0.85rem;
    opacity: 0.92;
}

.cc-label[b-yyhn3hmhth] {
    font-weight: 700;
    color: #374151;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.4rem;
}

.cc-facoltativo[b-yyhn3hmhth] {
    font-weight: 400;
    color: #9ca3af;
}

[b-yyhn3hmhth] .cc-note textarea {
    font-size: 1rem;
}

.cc-applica-tutti[b-yyhn3hmhth] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    margin: 0;
}

.cc-avviso[b-yyhn3hmhth] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.82rem;
    color: #6b7280;
}

.cc-avviso-warn[b-yyhn3hmhth] {
    color: #b45309;
    font-weight: 600;
}

/* Incasso obbligatorio (pagamento con «Imponi incasso alla consegna» in MOSE.AI): stesso colore del badge del giro */
.cc-avviso-incasso[b-yyhn3hmhth] {
    color: #be123c;
    font-weight: 600;
}

.cc-banner-incasso[b-yyhn3hmhth] {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fda4af;
    border-left: 5px solid #e11d48;
}

.cc-errore[b-yyhn3hmhth] {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Passo Fatto ===== */
.cc-fatto[b-yyhn3hmhth] {
    align-items: center;
    text-align: center;
    padding-top: 1.5rem;
}

.cc-fatto-icona[b-yyhn3hmhth] {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: #fff;
    animation: ccPop-b-yyhn3hmhth 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cc-fatto-ok[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #15803d, #22c55e);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
}

.cc-fatto-rifiutata[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.3);
}

@keyframes ccPop-b-yyhn3hmhth {
    from {
        transform: scale(0.4);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cc-fatto h3[b-yyhn3hmhth] {
    margin: 0.5rem 0 0;
    font-weight: 800;
    color: #1f2937;
}

.cc-fatto-stato[b-yyhn3hmhth] {
    margin: 0;
    color: #374151;
    font-weight: 600;
}

.cc-fatto-importo[b-yyhn3hmhth] {
    font-size: 2rem;
    font-weight: 800;
    color: #166534;
    margin: 0.2rem 0 0;
    font-variant-numeric: tabular-nums;
}

.cc-fatto-sub[b-yyhn3hmhth] {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

/* ===== Caricamento ===== */
.cc-loading[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #92400e;
    padding: 1.5rem 0;
    font-weight: 600;
}

.cc-spinner[b-yyhn3hmhth] {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(217, 119, 6, 0.25);
    border-top-color: #d97706;
    border-radius: 50%;
    animation: ccSpin-b-yyhn3hmhth 0.8s linear infinite;
    flex-shrink: 0;
}

.cc-spinner-bianco[b-yyhn3hmhth] {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

@keyframes ccSpin-b-yyhn3hmhth {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Smartphone ===== */
@media (max-width: 768px) {
    .cc-sheet[b-yyhn3hmhth] {
        width: 100vw;
    }

    .cc-body[b-yyhn3hmhth] {
        padding: 0.75rem;
    }

    .cc-hero-importo[b-yyhn3hmhth] {
        font-size: 2rem;
    }

    .cc-soggetti[b-yyhn3hmhth] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== Partite aperte del cliente (card nel passo Documento / Fatto) ===== */
.cc-loading-compatto[b-yyhn3hmhth] {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.cc-pa-card-fatto[b-yyhn3hmhth] {
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
}

.cc-pa-riga-info[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.cc-pa-riga-info > span[b-yyhn3hmhth] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.cc-pa-ok[b-yyhn3hmhth] {
    color: #166534;
    justify-content: flex-start;
    gap: 0.45rem;
}

.cc-pa-ok .oi[b-yyhn3hmhth] {
    color: #16a34a;
}

.cc-pa-errore[b-yyhn3hmhth] {
    color: #b45309;
}

.cc-pa-vuoto[b-yyhn3hmhth] {
    padding: 1.2rem 0.5rem;
    justify-content: center;
}

.cc-pa-riepilogo[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cc-pa-riepilogo-testi[b-yyhn3hmhth] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.cc-pa-riepilogo-num[b-yyhn3hmhth] {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
}

.cc-pa-riepilogo-tot[b-yyhn3hmhth] {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.cc-pa-riepilogo-sub[b-yyhn3hmhth] {
    font-size: 0.78rem;
    color: #166534;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.cc-pa-debito[b-yyhn3hmhth] {
    color: #b91c1c;
}

.cc-pa-credito[b-yyhn3hmhth] {
    color: #15803d;
}

.cc-pa-zero[b-yyhn3hmhth] {
    color: #9ca3af;
}

.cc-btn-compatto[b-yyhn3hmhth] {
    width: auto;
    flex-shrink: 0;
    min-height: 46px;
    padding: 0 0.9rem;
    font-size: 0.92rem;
}

/* Pulsanti icona su sfondo chiaro (banner, righe) */
.cc-icon-btn-scuro[b-yyhn3hmhth] {
    width: 36px;
    height: 36px;
    margin-left: auto;
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
    font-size: 0.85rem;
}

.cc-icon-btn-scuro:hover[b-yyhn3hmhth] {
    background: rgba(22, 101, 52, 0.22);
}

.cc-icon-btn-grigio[b-yyhn3hmhth] {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.9rem;
}

.cc-icon-btn-grigio:hover[b-yyhn3hmhth] {
    background: #fee2e2;
    color: #b91c1c;
}

.cc-icon-btn-grigio:disabled[b-yyhn3hmhth] {
    opacity: 0.5;
    cursor: default;
}

/* ===== Passo Partite aperte: incassi registrati, selezione, elenco ===== */
.cc-pa-incassati-lista[b-yyhn3hmhth] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cc-pa-incassato[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cc-pa-incassato:last-child[b-yyhn3hmhth] {
    border-bottom: none;
}

.cc-pa-incassato-testi[b-yyhn3hmhth] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cc-pa-incassato-doc[b-yyhn3hmhth] {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.9rem;
}

.cc-pa-incassato-doc small[b-yyhn3hmhth] {
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.3rem;
}

.cc-pa-incassato-sub[b-yyhn3hmhth] {
    font-size: 0.76rem;
    color: #6b7280;
}

.cc-pa-incassato-importo[b-yyhn3hmhth] {
    font-weight: 800;
    color: #166534;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cc-pa-incassati-totale[b-yyhn3hmhth] {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
    font-size: 0.85rem;
    color: #4b5563;
}

.cc-pa-incassati-totale b[b-yyhn3hmhth] {
    color: #166534;
    font-variant-numeric: tabular-nums;
}

.cc-mini-btn-pericolo[b-yyhn3hmhth] {
    border-color: #dc2626;
    color: #b91c1c;
}

.cc-mini-btn-pericolo:active[b-yyhn3hmhth] {
    background: #fee2e2;
}

.cc-pa-selezione-bar[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.cc-pa-selezione-testo[b-yyhn3hmhth] {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

.cc-pa-selezione-testo b[b-yyhn3hmhth] {
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.cc-pa-lista[b-yyhn3hmhth] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cc-pa-partita[b-yyhn3hmhth] {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem 0.65rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cc-pa-partita:hover:not(:disabled)[b-yyhn3hmhth] {
    border-color: #fcd34d;
}

.cc-pa-partita-sel[b-yyhn3hmhth] {
    border-color: #d97706;
    background: #fffbeb;
}

.cc-pa-partita-off[b-yyhn3hmhth] {
    opacity: 0.55;
    cursor: default;
}

.cc-pa-check[b-yyhn3hmhth] {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

.cc-pa-partita-sel .cc-pa-check[b-yyhn3hmhth] {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.cc-pa-partita-off .cc-pa-check[b-yyhn3hmhth] {
    border-style: dashed;
}

.cc-pa-partita-testi[b-yyhn3hmhth] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.cc-pa-partita-r1[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.cc-pa-partita-doc[b-yyhn3hmhth] {
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-pa-partita-data[b-yyhn3hmhth] {
    color: #4b5563;
    font-size: 0.8rem;
    white-space: nowrap;
}

.cc-pa-gg[b-yyhn3hmhth] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    white-space: nowrap;
}

.cc-pa-gg-ambra[b-yyhn3hmhth] {
    background: #fef3c7;
    color: #92400e;
}

.cc-pa-gg-rosso[b-yyhn3hmhth] {
    background: #fee2e2;
    color: #991b1b;
}

/* Partita scaduta da più giorni di quanti ne ammette il suo pagamento (passo 78 di MOSE.AI): va incassata prima di
   consegnare, stesso colore dell'avviso di incasso */
.cc-pa-scaduta[b-yyhn3hmhth] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fda4af;
    white-space: nowrap;
}

.cc-pa-partita-r2[b-yyhn3hmhth] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.6rem;
    font-size: 0.74rem;
    color: #6b7280;
}

.cc-pa-partita-agente[b-yyhn3hmhth] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #1d4ed8;
    font-weight: 600;
}

.cc-pa-partita-inc[b-yyhn3hmhth] {
    color: #15803d;
    font-weight: 600;
}

.cc-pa-partita-dest[b-yyhn3hmhth] {
    color: #b45309;
    font-style: italic;
}

.cc-pa-partita-saldo[b-yyhn3hmhth] {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

/* ===== Passo Incassa partite: anteprima ripartizione e tipi ===== */
.cc-pa-anteprima[b-yyhn3hmhth] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #1f2937;
}

.cc-pa-anteprima li[b-yyhn3hmhth] {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cc-pa-anteprima li:last-child[b-yyhn3hmhth] {
    border-bottom: none;
}

.cc-pa-anteprima small[b-yyhn3hmhth] {
    color: #6b7280;
    margin-left: 0.3rem;
}

.cc-pa-anteprima b[b-yyhn3hmhth] {
    font-variant-numeric: tabular-nums;
    color: #92400e;
}

/* ===== Esito "Consegnata con resi" e passo Colli resi ===== */
.cc-opzione-resi .cc-opzione-icona[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #c2410c, #fb923c);
}

.cc-opzione-resi.cc-opzione-attiva[b-yyhn3hmhth] {
    border-color: #ea580c;
}

.cc-hero-reso[b-yyhn3hmhth] {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
}

.cc-hero-reso .cc-hero-label[b-yyhn3hmhth],
.cc-hero-reso .cc-hero-importo[b-yyhn3hmhth] {
    color: #7c2d12;
}

.cc-hero-dovuto[b-yyhn3hmhth] {
    font-size: 0.85rem;
    color: #7c2d12;
    margin-bottom: 0.2rem;
}

.cc-resi-lista[b-yyhn3hmhth] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cc-reso-riga[b-yyhn3hmhth] {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.65rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cc-reso-riga-attiva[b-yyhn3hmhth] {
    border-color: #ea580c;
    background: #fff7ed;
}

.cc-reso-testata[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cc-reso-testi[b-yyhn3hmhth] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.cc-reso-descr[b-yyhn3hmhth] {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.92rem;
}

.cc-reso-sub[b-yyhn3hmhth] {
    font-size: 0.76rem;
    color: #6b7280;
}

.cc-reso-stepper[b-yyhn3hmhth] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cc-reso-btn[b-yyhn3hmhth] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #fdba74;
    background: #fff;
    color: #c2410c;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.cc-reso-btn:active:not(:disabled)[b-yyhn3hmhth] {
    transform: scale(0.94);
    background: #ffedd5;
}

.cc-reso-btn:disabled[b-yyhn3hmhth] {
    opacity: 0.4;
    cursor: default;
}

[b-yyhn3hmhth] .cc-reso-edit {
    width: 78px;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    color: #7c2d12;
}

.cc-reso-dettaglio[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #7c2d12;
}

.cc-reso-valore small[b-yyhn3hmhth] {
    color: #9a3412;
    font-size: 0.75rem;
}

.cc-reso-motivi[b-yyhn3hmhth] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cc-reso-motivi .cc-mini-btn[b-yyhn3hmhth] {
    border-color: #fdba74;
    color: #9a3412;
    font-weight: 600;
    min-height: 36px;
}

.cc-reso-motivi .cc-mini-btn-attivo[b-yyhn3hmhth] {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff;
}

.cc-riepilogo-reso[b-yyhn3hmhth] {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 0.35rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cc-fatto-reso[b-yyhn3hmhth] {
    margin-top: 0.4rem;
    background: #fff7ed;
    border: 1px dashed #fdba74;
    border-radius: 12px;
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    color: #7c2d12;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-align: left;
}

/* ===== Posizione del cliente rilevata alla consegna (passo Conferma) ===== */
.cc-posizione[b-yyhn3hmhth] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cc-posizione-testo[b-yyhn3hmhth] {
    margin: 0;
    font-size: 0.88rem;
    color: #374151;
}

/* Stato "rilevazione in corso" con lo spinner ambra della card */
.cc-posizione-stato[b-yyhn3hmhth] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #6b7280;
}

/* La spunta di conferma riusa lo stile "applica a tutti" ma dentro la card, senza bordo doppio */
.cc-posizione-scelta[b-yyhn3hmhth] {
    background: #fffbeb;
    border-color: #fcd34d;
}

.cc-posizione-btn[b-yyhn3hmhth] {
    align-self: flex-start;
    min-height: 40px;
}

/* Rilevazione richiesta dalla sede (GeoRilevazione 'O'): card con bordo ambra marcato */
.cc-posizione-obbligatoria[b-yyhn3hmhth] {
    border: 1.5px solid #f59e0b;
}

.cc-posizione-obbligatoria .cc-card-title[b-yyhn3hmhth] {
    color: #b45309;
}

/* Passo Fatto: posizione salvata (blu) oppure avviso di mancato salvataggio (ambra) */
.cc-fatto-posizione[b-yyhn3hmhth] {
    margin-top: 0.4rem;
    background: #eff6ff;
    border: 1px dashed #93c5fd;
    border-radius: 12px;
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-align: left;
}

.cc-fatto-posizione-avviso[b-yyhn3hmhth] {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

/* Regole della sede sulla registrazione delle consegne: minuti da attendere e posizione (ambra) */
.cc-banner-attesa[b-yyhn3hmhth] {
    background: #fef3c7;
    color: #92400e;
}

/* Pulsante dentro un banner (Riprova, Rileva di nuovo) */
.cc-banner-btn[b-yyhn3hmhth] {
    margin-top: 0.45rem;
}

/* Conto alla rovescia: cifre a larghezza fissa, il titolo non balla a ogni secondo */
.cc-conto-rovescia[b-yyhn3hmhth] {
    font-variant-numeric: tabular-nums;
}

/* Passo Fatto: quando e dove si potrà registrare il prossimo cliente */
.cc-fatto-blocco[b-yyhn3hmhth] {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}
/* /Components/Consegne/FrazioniIncasso.razor.rz.scp.css */
/* ==========================================================================
   Incasso frazionato (pannello di conferma consegna): un pagamento per tipo e
   data. Palette ARANCIO/AMBRA del modulo consegne; pagamenti differiti (data
   futura, es. assegno postdatato) in blu. Pensato per il tocco (>= 44px).
   ========================================================================== */

.fi[b-qv74h4o0l9] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fi-hint[b-qv74h4o0l9] {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}

.fi-lista[b-qv74h4o0l9] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== Pagamento ===== */
.fi-riga[b-qv74h4o0l9] {
    border: 1.5px solid #d97706;
    background: #fffbeb;
    border-radius: 14px;
    padding: 0.6rem 0.75rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fi-riga-differita[b-qv74h4o0l9] {
    border-color: #2563eb;
    background: #eff6ff;
}

.fi-riga-errore[b-qv74h4o0l9] {
    border-color: #dc2626;
    background: #fef2f2;
}

.fi-riga-testata[b-qv74h4o0l9] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.fi-num[b-qv74h4o0l9] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d97706;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fi-riga-differita .fi-num[b-qv74h4o0l9] {
    background: #2563eb;
}

.fi-tipo[b-qv74h4o0l9] {
    font-weight: 700;
    color: #1f2937;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-badge-differita[b-qv74h4o0l9] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.fi-elimina[b-qv74h4o0l9] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.fi-elimina:hover[b-qv74h4o0l9],
.fi-elimina:active[b-qv74h4o0l9] {
    background: #fee2e2;
    color: #b91c1c;
}

/* ===== Importo e data: affiancati, uno sotto l'altro sui telefoni stretti ===== */
.fi-campi[b-qv74h4o0l9] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fi-campo[b-qv74h4o0l9] {
    flex: 1 1 140px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.fi-etichetta[b-qv74h4o0l9] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #92400e;
    margin: 0;
}

.fi-riga-differita .fi-etichetta[b-qv74h4o0l9] {
    color: #1e40af;
}

/* CasellaNumero: carattere e allineamento sulla casella, li ereditano numero e "€" */
[b-qv74h4o0l9] .fi-importo-edit {
    width: 100%;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
}

.fi-data[b-qv74h4o0l9] {
    width: 100%;
    min-height: 44px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 0.35rem 0.6rem;
    font-size: 1rem;
    background: #fff;
    color: #1f2937;
}

.fi-data:focus[b-qv74h4o0l9] {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.fi-riga-differita .fi-data[b-qv74h4o0l9] {
    border-color: #93c5fd;
    color: #1e40af;
    font-weight: 700;
}

.fi-errore-data[b-qv74h4o0l9] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b91c1c;
}

.fi-azioni[b-qv74h4o0l9] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fi-mini-btn[b-qv74h4o0l9] {
    border: 1.5px solid #d97706;
    color: #92400e;
    background: #fff;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
}

.fi-mini-btn:active[b-qv74h4o0l9] {
    background: #fef3c7;
}

/* ===== Aggiunta di un pagamento ===== */
.fi-aggiungi[b-qv74h4o0l9] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fi-aggiungi-titolo[b-qv74h4o0l9] {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4b5563;
}

.fi-tipi[b-qv74h4o0l9] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fi-tipo-btn[b-qv74h4o0l9] {
    flex: 1 1 auto;
    min-height: 44px;
    border: 1.5px dashed #d97706;
    background: #fff;
    color: #92400e;
    border-radius: 12px;
    padding: 0.4rem 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: background-color 0.15s ease;
}

.fi-tipo-btn:active[b-qv74h4o0l9] {
    background: #fef3c7;
}

/* Nessun pagamento ancora indicato: i tipi sono la scelta principale del passo */
.fi-tipo-btn-primo[b-qv74h4o0l9] {
    border-style: solid;
    min-height: 52px;
    font-size: 1rem;
}

/* ===== Parte non assegnata ===== */
.fi-residuo[b-qv74h4o0l9] {
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fi-residuo-ok[b-qv74h4o0l9] {
    background: #dcfce7;
    color: #166534;
}

.fi-residuo-errore[b-qv74h4o0l9] {
    background: #fee2e2;
    color: #991b1b;
}

.fi-nota[b-qv74h4o0l9] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #6b7280;
}
/* /Components/Consegne/GiroConsegnaPage.razor.rz.scp.css */
/* ==========================================================================
   Giro Consegna - modulo consegnatario
   Palette ARANCIO/AMBRA per differenziare il modulo consegne dal modulo agente.
   Pensato per lo smartphone: testata compatta, ricerca sempre visibile,
   comandi secondari nel drawer laterale, righe compatte, modalità "zoom"
   della griglia a tutto schermo.
   ========================================================================== */

.giro-page[b-iusyntyx7k] {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Header compatto: una riga toccabile (apre il drawer) + ricarica + menu ===== */
.giro-header[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    border-radius: 12px;
    padding: 0.45rem 0.55rem 0.45rem 0.8rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.25);
    color: white;
}

.giro-header-main[b-iusyntyx7k] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: none;
    color: white;
    text-align: left;
    padding: 0.15rem 0;
    cursor: pointer;
}

.giro-header-icon[b-iusyntyx7k] {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.giro-header-testi[b-iusyntyx7k] {
    display: block;
    flex: 1;
    min-width: 0;
}

.giro-header-titolo[b-iusyntyx7k] {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.giro-header-data[b-iusyntyx7k] {
    font-weight: 700;
    color: white;
}

.giro-header-sub[b-iusyntyx7k] {
    display: block;
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pulsanti tondi dell'header (ricarica, menu): bianchi traslucidi */
.giro-header-btn[b-iusyntyx7k] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
}

.giro-header-btn:hover:not(:disabled)[b-iusyntyx7k] {
    background: rgba(255, 255, 255, 0.3);
}

.giro-header-btn:disabled[b-iusyntyx7k] {
    opacity: 0.5;
    cursor: default;
}

[b-iusyntyx7k] .giro-date-edit {
    min-width: 150px;
    flex: 1;
}

/* ===== Riga ricerca + zoom: sempre visibile, anche a schermo intero ===== */
.giro-ricerca-riga[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

[b-iusyntyx7k] .giro-ricerca-box {
    flex: 1;
    min-width: 0;
}

/* Pulsante icona quadrato (zoom, menu in zoom) */
.giro-icona-btn[b-iusyntyx7k] {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #92400e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.giro-icona-btn:hover[b-iusyntyx7k] {
    border-color: #d97706;
}

.giro-icona-btn-attivo[b-iusyntyx7k] {
    background: #92400e;
    border-color: #92400e;
    color: white;
}

/* ===== Barra informativa (riepilogo nel drawer) ===== */
.giro-info-bar[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    color: #92400e;
}

.giro-info-item[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.giro-info-consegnate[b-iusyntyx7k] {
    color: #166534;
}

.giro-info-incassato[b-iusyntyx7k] {
    color: #166534;
}

.giro-info-reso[b-iusyntyx7k] {
    color: #9a3412;
}

.giro-info-rifiutate[b-iusyntyx7k] {
    color: #991b1b;
}

/* ===== Toolbar azioni =====
   Una riga che NON va a capo: sugli smartphone si scorre in orizzontale,
   così i pulsanti mantengono sempre una dimensione comoda al tocco. */
.giro-toolbar[b-iusyntyx7k] {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.1rem 0.1rem 0.3rem;
    margin-bottom: 0.5rem;
}

.giro-toolbar > *[b-iusyntyx7k] {
    flex: 0 0 auto;
}

[b-iusyntyx7k] .giro-toolbar-btn {
    white-space: nowrap;
    min-height: 2.6rem;
}

.giro-toolbar .giro-filtro-chip[b-iusyntyx7k] {
    white-space: nowrap;
    min-height: 2.6rem;
}

/* Riga dello slider del raggio sotto la toolbar (componente RaggioVicinoSlider):
   la pagina spazia gli elementi con i margini, non con il gap flex */
.giro-vicino-riga[b-iusyntyx7k] {
    margin-bottom: 0.5rem;
}

/* ===== Stato vuoto ===== */
.giro-empty[b-iusyntyx7k] {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.giro-empty i[b-iusyntyx7k] {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #d97706;
}

/* Nessun risultato per ricerca/filtri: più compatto, con azione per azzerare */
.giro-empty-filtri[b-iusyntyx7k] {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.giro-empty-filtri i[b-iusyntyx7k] {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.giro-empty-filtri p[b-iusyntyx7k] {
    margin: 0;
}

/* ===== Griglia ===== */
.giro-grid-wrapper[b-iusyntyx7k] {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

[b-iusyntyx7k] .giro-grid {
    height: 100%;
}

/* Intestazioni griglia in tinta con il modulo consegne */
[b-iusyntyx7k] .giro-grid .dxbl-grid-header {
    background: #fffbeb;
    color: #92400e;
    font-weight: 700;
}

/* Griglia compatta (smartphone): celle più strette in verticale */
[b-iusyntyx7k] .giro-grid-compatta td {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
}

/* Riga già consegnata: attenuata e non riordinabile */
[b-iusyntyx7k] .riga-consegnata {
    opacity: 0.6;
    background-color: #f0fdf4 !important;
}

[b-iusyntyx7k] .riga-consegnata:hover {
    cursor: not-allowed;
}

/* Riga annullata: attenuata con testo barrato */
[b-iusyntyx7k] .riga-annullata {
    opacity: 0.55;
    background-color: #fef2f2 !important;
}

[b-iusyntyx7k] .riga-annullata .giro-cliente-nome-testo,
[b-iusyntyx7k] .riga-annullata .giro-importo {
    text-decoration: line-through;
}

/* ===== Celle ===== */
.giro-progressivo[b-iusyntyx7k],
[b-iusyntyx7k] .giro-progressivo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d97706;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

[b-iusyntyx7k] .giro-progressivo-consegnato {
    background: #16a34a;
}

/* Consegna parziale del gruppo (alcuni documenti consegnati): numero giallo */
[b-iusyntyx7k] .giro-progressivo-parziale {
    background: #eab308;
    color: #713f12;
}

/* Progressivo toccabile: apre il popup di spostamento rapido.
   Bordo chiaro come affordance e area di tocco leggermente più ampia */
[b-iusyntyx7k] .giro-progressivo-toccabile {
    cursor: pointer;
    min-width: 32px;
    height: 32px;
    border: 2px solid rgba(217, 119, 6, 0.35);
    box-shadow: 0 1px 4px rgba(146, 64, 14, 0.3);
    user-select: none;
}

[b-iusyntyx7k] .giro-progressivo-toccabile:active {
    transform: scale(1.12);
}

/* Documento successivo al primo dello stesso cliente: numero condiviso, attenuato */
[b-iusyntyx7k] .giro-progressivo-secondario {
    opacity: 0.45;
}

/* Cella cliente su tre righe: nome / via / località · documento */
[b-iusyntyx7k] .giro-cliente-cell {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.25;
    padding: 0.1rem 0;
    min-width: 0;
}

[b-iusyntyx7k] .giro-cliente-nome {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    font-weight: 600;
    color: #1f2937;
}

[b-iusyntyx7k] .giro-cliente-nome-testo {
    min-width: 0;
}

[b-iusyntyx7k] .giro-cliente-doc {
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-iusyntyx7k] .giro-cliente-localita {
    font-weight: 600;
    color: #4b5563;
}

[b-iusyntyx7k] .giro-cliente-indirizzo {
    font-size: 0.78rem;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge "N documenti" sulla prima riga del gruppo cliente */
[b-iusyntyx7k] .giro-badge-gruppo {
    flex-shrink: 0;
    background: #fde68a;
    color: #92400e;
    border: 1px solid #f59e0b;
    font-size: 0.7rem;
    vertical-align: middle;
}

/* Spille di posizione: scelta oggi dal consegnatario (ambra) o abituale (blu) */
[b-iusyntyx7k] .giro-pin {
    flex-shrink: 0;
    font-size: 0.7rem;
}

[b-iusyntyx7k] .giro-pin-manuale {
    color: #d97706;
}

[b-iusyntyx7k] .giro-pin-abituale {
    color: #2563eb;
}

/* Indicazione "documento X di N" sulle righe del gruppo */
[b-iusyntyx7k] .giro-cliente-doc-indice {
    color: #b45309;
    font-weight: 600;
}

/* Distanza stradale dalla posizione del dispositivo (filtro "Vicino a me") */
[b-iusyntyx7k] .giro-cliente-distanza {
    font-weight: 600;
    color: #1d4ed8;
}

[b-iusyntyx7k] .giro-cliente-distanza .oi {
    font-size: 0.7rem;
}

[b-iusyntyx7k] .giro-cliente-indirizzo .oi {
    font-size: 0.7rem;
    color: #d97706;
}

[b-iusyntyx7k] .giro-cliente-messaggio {
    font-size: 0.78rem;
    font-style: italic;
    color: #b45309;
}

/* Partite aperte del cliente (saldi netti), incassabili dal pannello di conferma */
[b-iusyntyx7k] .giro-cliente-partite {
    font-size: 0.76rem;
    font-weight: 600;
    color: #b91c1c;
}

[b-iusyntyx7k] .giro-cliente-partite .oi {
    font-size: 0.68rem;
}

[b-iusyntyx7k] .giro-cliente-partite-inc {
    color: #15803d;
}

[b-iusyntyx7k] .giro-pagamento-cell {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.85rem;
}

[b-iusyntyx7k] .giro-agente {
    font-size: 0.75rem;
    color: #6b7280;
}

[b-iusyntyx7k] .giro-importo {
    font-weight: 600;
    color: #1f2937;
}

[b-iusyntyx7k] .giro-incasso {
    font-weight: 700;
    color: #b45309;
}

[b-iusyntyx7k] .giro-incasso-vuoto {
    color: #9ca3af;
}

[b-iusyntyx7k] .giro-colli {
    font-weight: 600;
}

[b-iusyntyx7k] .giro-badge-da-consegnare {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Badge "arretrato": documento rimasto da consegnare in un giro precedente,
   riproposto nel giro corrente con la data del giro di origine */
[b-iusyntyx7k] .giro-badge-arretrato {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-left: 0.3rem;
    font-size: 0.68rem;
    white-space: nowrap;
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}

/* Badge "Parziale X/N": consegna con solo alcuni documenti consegnati */
[b-iusyntyx7k] .giro-badge-parziale {
    background: #fde047;
    color: #713f12;
    border: 1px solid #eab308;
}

/* ===== Badge georeferenziazione ===== */
[b-iusyntyx7k] .giro-badge-geo {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #2563eb;
    color: white;
    cursor: pointer;
    user-select: none;
}

[b-iusyntyx7k] .giro-badge-geo:hover {
    background: #1d4ed8;
}

/* Posizione approssimativa (GeoPrecisione 'L' = solo località): badge ambra */
[b-iusyntyx7k] .giro-badge-geo-approssimata {
    background: #d97706;
}

[b-iusyntyx7k] .giro-badge-geo-approssimata:hover {
    background: #b45309;
}

/* Cliente oltre il limite km dalla sede (guardia MOSEDBVERSIONE 'GEO MAP LIMITE KM'):
   escluso dalla mappa del giro, badge marcato in rosso */
[b-iusyntyx7k] .giro-badge-geo-fuori {
    background: #dc2626;
}

[b-iusyntyx7k] .giro-badge-geo-fuori:hover {
    background: #b91c1c;
}

[b-iusyntyx7k] .giro-badge-no-geo {
    background: #e5e7eb;
    color: #6b7280;
}

/* Badge "GPS" accanto al nome: la sede richiede di rilevare la posizione del cliente alla consegna */
[b-iusyntyx7k] .giro-badge-posizione {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #d97706;
    color: white;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 1px 6px;
    border-radius: 999px;
    flex-shrink: 0;
}

/* Incasso obbligatorio: la sede chiede di incassare il documento alla consegna
   (spunta «Incassa» di «Imponi incassi al giro» in MOSE.AI) */
[b-iusyntyx7k] .giro-badge-incasso {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.3rem;
    background: #e11d48;
    color: white;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 1px 6px;
    border-radius: 999px;
    white-space: nowrap;
    vertical-align: middle;
}

[b-iusyntyx7k] .giro-badge-incasso .oi {
    font-size: 0.6rem;
}

/* ===== Popup mappa cliente ===== */
.giro-mappa-body[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
}

.giro-mappa-alert[b-iusyntyx7k] {
    margin-bottom: 0;
}

/* Mappa Google incorporata: riempie la finestra come una WebView integrata */
.giro-mappa-iframe[b-iusyntyx7k] {
    width: 100%;
    height: min(480px, 62vh);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #e5e7eb;
}

/* Contenitore della DxMap del cliente: altezza fissa su desktop
   (su smartphone il popup è fullscreen e la estende via site.css) */
.giro-mappa-dx-wrap[b-iusyntyx7k] {
    width: 100%;
    height: min(480px, 62vh);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #e5e7eb;
}

/* ===== Anteprima giro su mappa (Leaflet) ===== */
.giro-anteprima-mappa[b-iusyntyx7k] {
    position: relative;
    z-index: 0; /* confina gli z-index interni di Leaflet sotto i popup DevExpress */
    height: min(560px, 68vh);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #e5e7eb;
}

/* Segnaposto numerato delle tappe: stesso stile del progressivo in griglia.
   ::deep perché i pin sono generati da Leaflet (fuori dal markup del componente) */
[b-iusyntyx7k] .giro-mappa-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d97706;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

[b-iusyntyx7k] .giro-mappa-pin-consegnato {
    background: #16a34a;
}

/* Pin di consegna parziale (alcuni documenti consegnati): giallo */
[b-iusyntyx7k] .giro-mappa-pin-parziale {
    background: #eab308;
    color: #713f12;
}

[b-iusyntyx7k] .giro-mappa-pin-legenda {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    box-shadow: none;
}

/* Pin con posizione approssimativa (geocodifica a livello località):
   bordo tratteggiato come segnale visivo */
[b-iusyntyx7k] .giro-mappa-pin-approssimato {
    border-style: dashed;
}

/* Pin della sede (rientro a fine giro): grigio scuro con icona casa */
[b-iusyntyx7k] .giro-mappa-pin-sede {
    background: #374151;
}

[b-iusyntyx7k] .giro-mappa-pin-sede .oi {
    font-size: 0.85rem;
}

/* Posizione del dispositivo sulla mappa: punto blu stile navigatore.
   ::deep perché il pin è generato da Leaflet (fuori dal markup del componente) */
[b-iusyntyx7k] .giro-mappa-posizione {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35), 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ===== Striscia delle tappe nell'anteprima giro =====
   Numeri scorrevoli in orizzontale: tocco = centra la mappa sulla consegna */
.giro-tappe-strip[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    flex: 0 0 auto;
    padding: 0.15rem 0.1rem;
}

.giro-tappa-chip[b-iusyntyx7k] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #d97706;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s, box-shadow 0.1s;
}

.giro-tappa-chip-consegnata[b-iusyntyx7k] {
    background: #16a34a;
    opacity: 0.75;
}

/* Chip di tappa con consegna parziale: giallo */
.giro-tappa-chip-parziale[b-iusyntyx7k] {
    background: #eab308;
    color: #713f12;
}

.giro-tappa-chip-attiva[b-iusyntyx7k] {
    border-color: #92400e;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.35);
    transform: scale(1.08);
}

.giro-anteprima-legenda[b-iusyntyx7k] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
}

/* Etichetta del selettore di rientro (footer mappa e popup ordina) */
.giro-rientro-label[b-iusyntyx7k] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

/* Selettore rientro nel popup "Ordina il giro" */
.giro-ordina-rientro[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.giro-ordina-rientro-chips[b-iusyntyx7k] {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.giro-anteprima-non-geo[b-iusyntyx7k] {
    color: #b45309;
    font-style: italic;
}

.giro-anteprima-stima[b-iusyntyx7k] {
    font-weight: 700;
    color: #92400e;
}

/* Chip della legenda: cliccabili per filtrare le tappe sulla mappa */
.giro-filtro-chip[b-iusyntyx7k] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 999px;
    padding: 0.2rem 0.65rem 0.2rem 0.3rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.giro-filtro-chip:hover:not(:disabled)[b-iusyntyx7k] {
    border-color: #d97706;
}

.giro-filtro-chip:disabled[b-iusyntyx7k] {
    opacity: 0.45;
    cursor: default;
}

.giro-filtro-chip-attivo[b-iusyntyx7k] {
    border-color: #d97706;
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

/* Chip di azione "pericolosa" (dimentica posizioni): rosso tenue, conferma al secondo tocco */
.giro-chip-pericolo[b-iusyntyx7k] {
    border-color: #fca5a5;
    color: #991b1b;
}

.giro-chip-pericolo:hover:not(:disabled)[b-iusyntyx7k] {
    border-color: #dc2626;
    background: #fef2f2;
}

.giro-chip-pericolo-conferma[b-iusyntyx7k] {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    font-weight: 700;
}

/* Variante del chip per la barra informativa: area di tocco più generosa */
.giro-chip-bar[b-iusyntyx7k] {
    min-height: 2.4rem;
    padding: 0.35rem 0.9rem;
    gap: 0.45rem;
}

/* Chip attivo nella barra (sfondo ambra della barra): inverte i colori per contrasto */
.giro-info-bar .giro-filtro-chip-attivo[b-iusyntyx7k] {
    background: #92400e;
    border-color: #92400e;
    color: white;
}

/* ===== Popup ordinamento logico del giro ===== */
.giro-ordina-body[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
}

.giro-ordina-descrizione[b-iusyntyx7k] {
    margin: 0;
    font-size: 0.9rem;
    color: #374151;
}

.giro-ordina-alert[b-iusyntyx7k] {
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Pulsanti a tutta larghezza: comodi al tocco */
[b-iusyntyx7k] .giro-ordina-btn {
    width: 100%;
    justify-content: center;
}

.giro-ordina-nota-sede[b-iusyntyx7k] {
    color: #b45309;
    font-style: italic;
}

.giro-ordina-nota[b-iusyntyx7k] {
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.6rem;
}

.giro-ordina-nota-abituali[b-iusyntyx7k] {
    color: #6b7280;
    font-size: 0.78rem;
}

/* ===== Popup spostamento rapido ===== */
.giro-sposta-body[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0.25rem;
}

.giro-sposta-cliente[b-iusyntyx7k] {
    font-weight: 700;
    color: #1f2937;
}

.giro-sposta-corrente[b-iusyntyx7k] {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Posizione abituale del cliente nel popup "Sposta": con link per dimenticarla */
.giro-sposta-abituale[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #1e40af;
    font-weight: 600;
}

.giro-link-btn[b-iusyntyx7k] {
    border: none;
    background: none;
    padding: 0.2rem 0.3rem;
    color: #991b1b;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
}

.giro-sposta-riga[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.giro-sposta-riga label[b-iusyntyx7k] {
    font-weight: 600;
    color: #374151;
    margin: 0;
}

[b-iusyntyx7k] .giro-sposta-spin {
    width: 130px;
}

.giro-sposta-rapidi[b-iusyntyx7k] {
    display: flex;
    gap: 0.5rem;
}

.giro-sposta-azioni[b-iusyntyx7k] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.giro-mappa-footer[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.giro-mappa-coordinate[b-iusyntyx7k] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Nota "posizione approssimativa" nel popup del singolo cliente */
.giro-posizione-approssimativa[b-iusyntyx7k] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-style: italic;
    color: #b45309;
}

/* ==========================================================================
   Drawer laterale dei comandi del giro (pannello in pagina, stesso pattern
   del pannello di conferma consegna): data, riepilogo, mappe, cassa, filtri,
   rientro. Libera la parte alta della pagina per la griglia.
   ========================================================================== */
.giro-drawer-overlay[b-iusyntyx7k] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0);
    pointer-events: none;
    transition: background-color 0.25s ease;
    z-index: 10000;
}

.giro-drawer-overlay.giro-drawer-aperto[b-iusyntyx7k] {
    background-color: rgba(15, 23, 42, 0.5);
    pointer-events: auto;
}

.giro-drawer[b-iusyntyx7k] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 90vw);
    height: 100vh;
    height: 100dvh;
    background: #f8fafc;
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.22);
    transform: translateX(104%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.giro-drawer.giro-drawer-aperto[b-iusyntyx7k] {
    transform: translateX(0);
}

.giro-drawer-header[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    color: white;
    flex-shrink: 0;
}

.giro-drawer-header-testi[b-iusyntyx7k] {
    flex: 1;
    min-width: 0;
}

.giro-drawer-titolo[b-iusyntyx7k] {
    font-weight: 700;
    font-size: 1.05rem;
}

.giro-drawer-sub[b-iusyntyx7k] {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.giro-drawer-body[b-iusyntyx7k] {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.giro-drawer-sezione[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.giro-drawer-sezione-titolo[b-iusyntyx7k] {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #92400e;
    font-weight: 700;
}

.giro-drawer-riga[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.giro-drawer-azioni[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Pulsanti del drawer: a tutta larghezza, alti, allineati a sinistra */
[b-iusyntyx7k] .giro-drawer-btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
}

.giro-drawer-chips[b-iusyntyx7k] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.giro-drawer-nota[b-iusyntyx7k] {
    font-size: 0.78rem;
    color: #6b7280;
}

/* ==========================================================================
   Modalità "zoom": la griglia occupa tutto lo schermo (la pagina si stacca
   dal layout e copre anche la barra di navigazione). Resta la riga con
   ricerca, menu e pulsante di uscita.
   ========================================================================== */
.giro-page-zoom[b-iusyntyx7k] {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: #f8fafc;
    max-width: none;
    margin: 0;
    padding: 0.35rem 0.35rem 0;
    overflow: hidden;
}

/* In zoom la pagina copre la barra di navigazione ma non l'indicatore di
   connessione in alto a destra: la riga lascia spazio per non finirci sotto */
.giro-page-zoom .giro-ricerca-riga[b-iusyntyx7k] {
    margin-bottom: 0.35rem;
    padding-right: 46px;
}

.giro-page-zoom .giro-grid-wrapper[b-iusyntyx7k] {
    border-radius: 8px;
}

.giro-page-zoom .giro-azione-bar[b-iusyntyx7k] {
    margin-top: 0.35rem;
}

/* ==========================================================================
   Conferma consegna: esiti registrati dal terminale, selezione al tocco,
   barra azione e popup "Cassa"
   ========================================================================== */

/* Riga con consegna rifiutata: attenuata su fondo rosso chiaro */
[b-iusyntyx7k] .riga-rifiutata {
    opacity: 0.7;
    background-color: #fef2f2 !important;
}

/* Consegna selezionata al tocco (tutti i documenti del cliente): fondo ambra e bordo sinistro */
[b-iusyntyx7k] .riga-selezionata {
    background-color: #fef3c7 !important;
    box-shadow: inset 4px 0 0 #d97706;
    opacity: 1;
}

[b-iusyntyx7k] .giro-progressivo-rifiutato {
    background: #dc2626;
}

/* Badge dell'esito in griglia: colore per stato, importo incassato in grassetto */
[b-iusyntyx7k] .giro-badge-esito {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

[b-iusyntyx7k] .giro-badge-esito-importo {
    font-weight: 800;
}

/* Esito registrato da un altro consegnatario (documento spostato di vettore dalla sede):
   nome del collega con ellissi, così la riga compatta non si allarga */
[b-iusyntyx7k] .giro-badge-esito-altro {
    display: inline-block;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
    font-weight: 500;
    vertical-align: bottom;
}

/* Colli resi alla consegna: valore da accreditare con nota di credito, non incasso */
[b-iusyntyx7k] .giro-badge-reso {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    margin-top: 0.15rem;
    background: #ffedd5;
    color: #7c2d12;
    border: 1px solid #fdba74;
    white-space: nowrap;
}

[b-iusyntyx7k] .giro-badge-esito-pagata {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

[b-iusyntyx7k] .giro-badge-esito-acconto {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

[b-iusyntyx7k] .giro-badge-esito-credito {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

/* Documenti neutri consegnati: nessun incasso e nessun credito */
[b-iusyntyx7k] .giro-badge-esito-neutro {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db;
}

[b-iusyntyx7k] .giro-badge-esito-rifiutata {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* Pin e chip della tappa rifiutata sulla mappa del giro */
[b-iusyntyx7k] .giro-mappa-pin-rifiutato {
    background: #dc2626;
}

.giro-tappa-chip-rifiutata[b-iusyntyx7k] {
    background: #dc2626;
    opacity: 0.8;
}

/* ===== Barra azione della consegna selezionata (sotto la griglia) =====
   Due righe: testata (numero, cliente, chiudi) e comandi (frecce su/giù,
   sposta, mappa, azione principale). Tutto raggiungibile col pollice. */
.giro-azione-bar[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.55rem 0.7rem 0.6rem;
    background: #fff;
    border: 2px solid #d97706;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.18);
    animation: giroAzioneIn-b-iusyntyx7k 0.22s ease-out;
}

@keyframes giroAzioneIn-b-iusyntyx7k {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.giro-azione-testata[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.giro-azione-num[b-iusyntyx7k] {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    font-size: 0.95rem;
}

.giro-azione-testi[b-iusyntyx7k] {
    flex: 1;
    min-width: 0;
}

.giro-azione-cliente[b-iusyntyx7k] {
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.giro-azione-dett[b-iusyntyx7k] {
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.giro-azione-stato[b-iusyntyx7k] {
    color: #92400e;
    font-weight: 600;
}

.giro-azione-incasso[b-iusyntyx7k] {
    color: #b45309;
    font-weight: 700;
}

.giro-azione-partite[b-iusyntyx7k] {
    color: #b91c1c;
    font-weight: 700;
}

.giro-azione-reso[b-iusyntyx7k] {
    color: #7c2d12;
    font-weight: 700;
}

/* La sede chiede di incassare il documento alla consegna (spunta «Incassa» di MOSE.AI) */
.giro-azione-obbligo[b-iusyntyx7k] {
    color: #be123c;
    font-weight: 700;
}

.giro-azione-obbligo .oi[b-iusyntyx7k] {
    font-size: 0.7rem;
}

/* Comandi: frecce, sposta, mappa e azione principale. Quando non c'è spazio
   (smartphone) l'azione principale va a capo a tutta larghezza */
.giro-azione-comandi[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Gruppo dei comandi di riordino: frecce, sposta, mappa */
.giro-azione-ordina[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
}

.giro-azione-mini[b-iusyntyx7k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 44px;
    height: 44px;
    padding: 0 0.55rem;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #92400e;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.giro-azione-mini:hover:not(:disabled)[b-iusyntyx7k] {
    border-color: #d97706;
    background: #fffbeb;
}

.giro-azione-mini:disabled[b-iusyntyx7k] {
    opacity: 0.4;
    cursor: default;
}

.giro-azione-btn[b-iusyntyx7k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1 1 180px;
    min-height: 44px;
    padding: 0 0.9rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.1s ease, filter 0.15s ease;
}

.giro-azione-btn:hover[b-iusyntyx7k] {
    filter: brightness(1.05);
}

.giro-azione-btn:active[b-iusyntyx7k] {
    transform: scale(0.97);
}

.giro-azione-btn-primaria[b-iusyntyx7k] {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
}

.giro-azione-btn-secondaria[b-iusyntyx7k] {
    background: #fff;
    color: #92400e;
    border: 1.5px solid #d97706;
}

.giro-azione-chiudi[b-iusyntyx7k] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.giro-azione-chiudi:hover[b-iusyntyx7k] {
    background: #e5e7eb;
}

/* ===== Popup "Cassa" del giro ===== */
.giro-cassa-body[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
}

.giro-cassa-totale[b-iusyntyx7k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 14px;
    padding: 0.9rem;
}

.giro-cassa-label[b-iusyntyx7k] {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #166534;
    font-weight: 700;
}

.giro-cassa-importo[b-iusyntyx7k] {
    font-size: 2rem;
    font-weight: 800;
    color: #166534;
    font-variant-numeric: tabular-nums;
}

.giro-cassa-lista[b-iusyntyx7k] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.giro-cassa-lista li[b-iusyntyx7k] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}

.giro-cassa-tipo[b-iusyntyx7k] {
    font-weight: 600;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.giro-cassa-tipo .oi[b-iusyntyx7k] {
    color: #d97706;
}

.giro-cassa-tipo small[b-iusyntyx7k] {
    color: #9ca3af;
    font-weight: 500;
}

.giro-cassa-valore[b-iusyntyx7k] {
    font-weight: 800;
    color: #92400e;
    font-variant-numeric: tabular-nums;
}

.giro-cassa-vuota[b-iusyntyx7k] {
    margin: 0;
    color: #6b7280;
    text-align: center;
}

.giro-cassa-split[b-iusyntyx7k] {
    font-size: 0.8rem;
    color: #166534;
    margin-top: 0.15rem;
}

.giro-cassa-sezione[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #92400e;
    margin-top: 0.25rem;
}

.giro-cassa-sezione b[b-iusyntyx7k] {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
}

[b-iusyntyx7k] .giro-cassa-link {
    width: 100%;
}

/* Merce resa nel giro (popup Cassa): informativa, non è denaro in cassa */
.giro-cassa-resi[b-iusyntyx7k] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff7ed;
    border: 1px dashed #fdba74;
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
}

.giro-cassa-resi-testi[b-iusyntyx7k] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.giro-cassa-resi-titolo[b-iusyntyx7k] {
    font-weight: 700;
    color: #7c2d12;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.giro-cassa-resi-sub[b-iusyntyx7k] {
    font-size: 0.74rem;
    color: #9a3412;
}

.giro-cassa-resi-importo[b-iusyntyx7k] {
    font-weight: 800;
    color: #7c2d12;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.giro-cassa-stati[b-iusyntyx7k] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.giro-cassa-nota[b-iusyntyx7k] {
    color: #6b7280;
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
}

/* ===== Responsive: smartphone ===== */
@media (max-width: 768px) {
    .giro-page[b-iusyntyx7k] {
        padding: 0.5rem;
    }

    .giro-page-zoom[b-iusyntyx7k] {
        padding: 0.3rem 0.3rem 0;
    }

    /* Ragione sociale su una sola riga: il nome completo resta nel tooltip
       e nella barra azione al tocco */
    [b-iusyntyx7k] .giro-cliente-nome-testo {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    [b-iusyntyx7k] .giro-cliente-cell {
        font-size: 0.9rem;
    }

    .giro-azione-bar[b-iusyntyx7k] {
        padding: 0.5rem 0.55rem 0.55rem;
    }

    .giro-azione-mini[b-iusyntyx7k] {
        padding: 0 0.45rem;
    }
}
/* /Components/Consegne/VersamentiConsegnatarioPage.razor.rz.scp.css */
/* ==========================================================================
   Versamenti del consegnatario - azione rapida della home consegne
   Palette ARANCIO/AMBRA del modulo consegne; incassi in verde, partite in blu,
   merce resa in arancio, rifiuti in rosso.
   Pensata per lo smartphone: testata compatta, due sezioni a chip, card in
   una colonna; la ricevuta ha una versione di stampa (regole @media print).
   ========================================================================== */

.vs-page[b-z386f11fup] {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Header compatto ===== */
.vs-header[b-z386f11fup] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    border-radius: 12px;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.25);
    color: white;
}

.vs-header-main[b-z386f11fup] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.vs-header-icon[b-z386f11fup] {
    flex-shrink: 0;
    font-size: 1.4rem;
    display: inline-flex;
    line-height: 1;
}

.vs-header-testi[b-z386f11fup] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vs-header-titolo[b-z386f11fup] {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.vs-header-sub[b-z386f11fup] {
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-header-btn[b-z386f11fup] {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.vs-header-btn:hover:not(:disabled)[b-z386f11fup] {
    background: rgba(255, 255, 255, 0.28);
}

.vs-header-btn:disabled[b-z386f11fup] {
    opacity: 0.5;
    cursor: default;
}

.vs-alert[b-z386f11fup] {
    margin: 0.25rem 0;
}

/* ===== Sezioni a chip ===== */
.vs-tabs[b-z386f11fup] {
    flex-shrink: 0;
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.vs-tab[b-z386f11fup] {
    flex: 1;
    min-height: 44px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.vs-tab-attiva[b-z386f11fup] {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
}

.vs-tab-num[b-z386f11fup] {
    min-width: 22px;
    height: 22px;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vs-tab-attiva .vs-tab-num[b-z386f11fup] {
    background: #d97706;
    color: #fff;
}

/* ===== Corpo scorrevole ===== */
.vs-body[b-z386f11fup],
.vs-ricevuta[b-z386f11fup] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
    animation: vsFadeIn-b-z386f11fup 0.3s ease-out;
}

@keyframes vsFadeIn-b-z386f11fup {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ===== Hero "da versare" ===== */
.vs-hero[b-z386f11fup] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.vs-hero-label[b-z386f11fup] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #166534;
    font-weight: 700;
}

.vs-hero-importo[b-z386f11fup] {
    font-size: 2.2rem;
    font-weight: 800;
    color: #14532d;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.vs-hero-sub[b-z386f11fup] {
    font-size: 0.8rem;
    color: #4b5563;
}

/* ===== Card ===== */
.vs-card[b-z386f11fup] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vs-card-title[b-z386f11fup] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-weight: 700;
    color: #92400e;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.vs-card-resi[b-z386f11fup] {
    background: #fff7ed;
    border-color: #fdba74;
}

.vs-card-resi .vs-card-title[b-z386f11fup] {
    color: #9a3412;
}

/* Conteggi a badge (pagati, acconti, ...) */
.vs-conteggi[b-z386f11fup] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    text-transform: none;
    letter-spacing: 0;
}

.vs-conteggi-giro[b-z386f11fup] {
    margin: 0.5rem 0;
}

.vs-mini[b-z386f11fup] {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    white-space: nowrap;
}

.vs-mini-pagata[b-z386f11fup] {
    background: #dcfce7;
    color: #166534;
}

.vs-mini-acconto[b-z386f11fup] {
    background: #fef3c7;
    color: #92400e;
}

.vs-mini-credito[b-z386f11fup] {
    background: #dbeafe;
    color: #1e40af;
}

.vs-mini-rifiutata[b-z386f11fup] {
    background: #fee2e2;
    color: #991b1b;
}

.vs-mini-daconsegnare[b-z386f11fup] {
    background: #fff;
    border: 1px dashed #9ca3af;
    color: #4b5563;
}

/* ===== Giro da versare ===== */
.vs-giro-testata[b-z386f11fup] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vs-giro-data[b-z386f11fup] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.vs-giro-giorno[b-z386f11fup] {
    font-weight: 800;
    color: #1f2937;
    text-transform: capitalize;
    font-size: 1rem;
}

.vs-giro-sub[b-z386f11fup] {
    font-size: 0.78rem;
    color: #6b7280;
}

.vs-giro-totale[b-z386f11fup] {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.25rem;
    color: #14532d;
    font-variant-numeric: tabular-nums;
}

.vs-giro-importi[b-z386f11fup] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem 0.9rem;
    margin-bottom: 0.7rem;
}

.vs-kv[b-z386f11fup] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.vs-k[b-z386f11fup] {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 600;
}

.vs-v[b-z386f11fup] {
    font-weight: 700;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.vs-v small[b-z386f11fup] {
    font-weight: 500;
    color: #9ca3af;
    margin-left: 0.25rem;
}

.vs-v-ok[b-z386f11fup] {
    color: #166534;
}

.vs-v-blu[b-z386f11fup] {
    color: #1e40af;
}

.vs-v-arancio[b-z386f11fup] {
    color: #9a3412;
}

.vs-btn[b-z386f11fup] {
    min-height: 46px;
    border-radius: 12px;
    border: none;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.15s ease;
}

.vs-btn:active:not(:disabled)[b-z386f11fup] {
    transform: scale(0.985);
}

.vs-btn:disabled[b-z386f11fup] {
    opacity: 0.5;
    cursor: default;
}

.vs-btn-primary[b-z386f11fup] {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.vs-btn-secondary[b-z386f11fup] {
    background: #fff;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

.vs-btn-giro[b-z386f11fup] {
    width: 100%;
}

/* ===== Elenco versamenti confermati ===== */
.vs-elenco[b-z386f11fup] {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.vs-versamento[b-z386f11fup] {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vs-versamento:hover:not(:disabled)[b-z386f11fup] {
    border-color: #fcd34d;
}

.vs-versamento:disabled[b-z386f11fup] {
    cursor: default;
}

.vs-versamento-icona[b-z386f11fup] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b45309, #f59e0b);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vs-versamento-testi[b-z386f11fup] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.vs-versamento-r1[b-z386f11fup] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.vs-versamento-numero[b-z386f11fup] {
    font-weight: 700;
    color: #1f2937;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-versamento-data[b-z386f11fup] {
    font-size: 0.8rem;
    color: #4b5563;
    white-space: nowrap;
}

.vs-versamento-r2[b-z386f11fup] {
    font-size: 0.76rem;
    color: #6b7280;
}

.vs-versamento-importo[b-z386f11fup] {
    flex-shrink: 0;
    font-weight: 800;
    color: #14532d;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vs-chevron[b-z386f11fup] {
    color: #9ca3af;
    flex-shrink: 0;
}

.vs-spinner[b-z386f11fup] {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vsSpin-b-z386f11fup 0.8s linear infinite;
}

@keyframes vsSpin-b-z386f11fup {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Ricevuta ===== */
.vs-ricevuta-azioni[b-z386f11fup] {
    display: flex;
    gap: 0.5rem;
}

.vs-ricevuta-azioni .vs-btn[b-z386f11fup] {
    flex: 1;
}

.vs-ricevuta-testata[b-z386f11fup] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 5px solid #d97706;
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.vs-ricevuta-titolo[b-z386f11fup] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #92400e;
    font-weight: 700;
}

.vs-ricevuta-numero[b-z386f11fup] {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2937;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin: 0.15rem 0 0.6rem;
    word-break: break-all;
}

.vs-ricevuta-kv[b-z386f11fup] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem 0.9rem;
}

.vs-totale[b-z386f11fup] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    text-align: center;
}

.vs-totale-label[b-z386f11fup] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #166534;
    font-weight: 700;
}

.vs-totale-importo[b-z386f11fup] {
    font-size: 2.2rem;
    font-weight: 800;
    color: #14532d;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    margin: 0.1rem 0 0.4rem;
}

.vs-chips[b-z386f11fup] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.vs-chip[b-z386f11fup] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
    color: #374151;
}

.vs-chip b[b-z386f11fup] {
    font-variant-numeric: tabular-nums;
}

.vs-chip-verde[b-z386f11fup] {
    border-color: #bbf7d0;
    color: #166534;
}

.vs-chip-blu[b-z386f11fup] {
    border-color: #bfdbfe;
    color: #1e40af;
}

.vs-chip-arancio[b-z386f11fup] {
    border-color: #fdba74;
    color: #9a3412;
}

.vs-tipi[b-z386f11fup] {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0.5rem 0 0;
    border-top: 1px dashed #86efac;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.vs-tipi li[b-z386f11fup] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #1f2937;
}

.vs-tipo-nome[b-z386f11fup] {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.vs-tipo-nome .oi[b-z386f11fup] {
    color: #9ca3af;
    font-size: 0.75rem;
}

.vs-tipo-sub[b-z386f11fup] {
    flex: 1;
    font-size: 0.75rem;
    color: #6b7280;
}

.vs-tipo-importo[b-z386f11fup] {
    font-variant-numeric: tabular-nums;
    color: #14532d;
}

/* Righe della ricevuta (documenti, partite, resi) */
.vs-righe[b-z386f11fup] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.vs-riga[b-z386f11fup] {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.vs-riga:last-child[b-z386f11fup] {
    border-bottom: none;
}

.vs-riga-top[b-z386f11fup] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vs-riga-doc[b-z386f11fup] {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-riga-doc small[b-z386f11fup],
.vs-riga-cliente small[b-z386f11fup] {
    font-weight: 400;
    color: #6b7280;
}

.vs-riga-importo[b-z386f11fup] {
    flex-shrink: 0;
    font-weight: 800;
    color: #14532d;
    font-variant-numeric: tabular-nums;
}

.vs-riga-cliente[b-z386f11fup] {
    font-size: 0.85rem;
    color: #374151;
}

.vs-cod[b-z386f11fup] {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
    margin-right: 0.25rem;
}

.vs-riga-importi[b-z386f11fup] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.vs-riga-importi b[b-z386f11fup] {
    color: #1f2937;
    font-variant-numeric: tabular-nums;
}

.vs-riga-note[b-z386f11fup] {
    font-size: 0.8rem;
    color: #92400e;
    font-style: italic;
}

.vs-stato[b-z386f11fup] {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    white-space: nowrap;
}

.vs-stato-pagata[b-z386f11fup] {
    background: #dcfce7;
    color: #166534;
}

.vs-stato-acconto[b-z386f11fup] {
    background: #fef3c7;
    color: #92400e;
}

.vs-stato-credito[b-z386f11fup] {
    background: #dbeafe;
    color: #1e40af;
}

.vs-stato-rifiutata[b-z386f11fup] {
    background: #fee2e2;
    color: #991b1b;
}

.vs-quota[b-z386f11fup] {
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
    font-weight: 600;
}

.vs-txt-blu[b-z386f11fup] {
    color: #1e40af;
}

.vs-txt-arancio[b-z386f11fup] {
    color: #9a3412;
}

.vs-txt-grigio[b-z386f11fup] {
    color: #9ca3af;
}

.vs-nc[b-z386f11fup] {
    color: #166534;
    font-weight: 600;
}

.vs-vuoto-sezione[b-z386f11fup] {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ===== Nota e vuoto ===== */
.vs-nota[b-z386f11fup] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: #6b7280;
    padding: 0 0.25rem;
}

.vs-nota .oi[b-z386f11fup] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.vs-vuoto[b-z386f11fup] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 2rem 1rem;
    color: #6b7280;
}

.vs-vuoto-icona[b-z386f11fup] {
    font-size: 2.6rem;
    color: #16a34a;
    line-height: 1;
}

.vs-vuoto-titolo[b-z386f11fup] {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
}

.vs-vuoto-sub[b-z386f11fup] {
    font-size: 0.85rem;
    max-width: 420px;
}

/* ===== Smartphone ===== */
@media (max-width: 768px) {
    .vs-hero-importo[b-z386f11fup],
    .vs-totale-importo[b-z386f11fup] {
        font-size: 1.9rem;
    }

    .vs-card[b-z386f11fup] {
        padding: 0.75rem 0.85rem;
    }
}

/* ===== Stampa della ricevuta: solo il contenuto, senza ombre e colori di sfondo ===== */
@media print {
    .vs-page[b-z386f11fup],
    .vs-ricevuta[b-z386f11fup] {
        height: auto;
        overflow: visible;
        max-width: none;
    }

    .vs-no-print[b-z386f11fup] {
        display: none !important;
    }

    .vs-card[b-z386f11fup],
    .vs-ricevuta-testata[b-z386f11fup],
    .vs-totale[b-z386f11fup] {
        box-shadow: none;
        break-inside: avoid;
        background: #fff !important;
    }
}

/* ===== PDF della ricevuta generato dalla sede ===== */
.vs-ricevuta-azioni[b-z386f11fup] {
    flex-wrap: wrap;
}

.vs-ricevuta-azioni .vs-btn[b-z386f11fup] {
    min-width: 140px;
}

.vs-spinner-scuro[b-z386f11fup] {
    border-color: rgba(55, 65, 81, 0.25);
    border-top-color: #374151;
}

.vs-pdf-chip[b-z386f11fup] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    white-space: nowrap;
}

.vs-pdf-assente[b-z386f11fup] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0 0.25rem;
}

/* ===== Sezione "Da consegnare" ===== */
.vs-hero-consegne[b-z386f11fup] {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.vs-hero-consegne .vs-hero-label[b-z386f11fup],
.vs-hero-consegne .vs-hero-importo[b-z386f11fup] {
    color: #78350f;
}

.vs-giro-ritardo[b-z386f11fup] {
    border-color: #fecaca;
}

.vs-giro-toggle[b-z386f11fup] {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    min-height: 48px;
}

.vs-giro-giorno .vs-mini[b-z386f11fup] {
    margin-left: 0.4rem;
    vertical-align: middle;
    text-transform: none;
}

.vs-giro-totale-blocco[b-z386f11fup] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.vs-giro-incasso[b-z386f11fup] {
    font-size: 0.72rem;
    color: #b45309;
    font-weight: 600;
    white-space: nowrap;
}

.vs-consegne[b-z386f11fup] {
    margin: 0.5rem 0 0.7rem;
    border-top: 1px dashed #e5e7eb;
    padding-top: 0.3rem;
}

.vs-txt-scuro[b-z386f11fup] {
    color: #1f2937;
}

/* Due numeri nel riquadro delle consegne: consegne (come nel giro) e documenti da consegnare */
.vs-hero-numeri[b-z386f11fup] {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1.25rem;
}

.vs-hero-numero[b-z386f11fup] {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.vs-hero-numero-label[b-z386f11fup] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
}

.vs-hero-separatore[b-z386f11fup] {
    width: 1px;
    background: #fcd34d;
}

/* Arretrati: documenti rimasti da giri precedenti, stessi colori del badge della pagina del giro */
.vs-chip-viola[b-z386f11fup] {
    border-color: #c4b5fd;
    color: #5b21b6;
}

.vs-txt-viola[b-z386f11fup] {
    color: #5b21b6;
}

.vs-arretrato[b-z386f11fup] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}
/* /Components/Layout/Drawer.razor.rz.scp.css */
.drawer-container[b-hps168us5k] {
    height: 100%;
}

[b-hps168us5k] .panel-open:not(.mobile) .menu-button {
    display: none;
}

[b-hps168us5k] .navigation-drawer > .dxbl-drawer-panel {
    background-image: linear-gradient(180deg, var(--bs-primary, var(--dxds-primary-90)) 0%, var(--bs-black, #000) 150%);
}

[b-hps168us5k] .navigation-drawer > .dxbl-drawer-content {
    overflow: auto;
}

[b-hps168us5k] .navigation-drawer > .dxbl-drawer-panel > .dxbl-drawer-header {
    border-bottom: none;
    padding: 2rem 1rem;
    background: none;
}

[b-hps168us5k] .navigation-drawer > .dxbl-drawer-panel > .dxbl-drawer-header > .navigation-drawer-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

[b-hps168us5k] .navigation-drawer > .dxbl-drawer-panel > .dxbl-drawer-body {
    --dxbl-drawer-panel-body-padding-x: 0;
    --dxbl-drawer-panel-body-padding-y: 1rem;
}

[b-hps168us5k] .navigation-drawer > .dxbl-drawer-panel > .dxbl-drawer-footer {
    --dxbl-drawer-panel-footer-justify-content: center;
    border-top: none;
    padding-bottom: 1.5rem;
    width: 240px;
    background: none;
}

[b-hps168us5k] .navigation-drawer > .dxbl-drawer-panel {
    display: flex;
}

[b-hps168us5k] .navigation-drawer.mobile > .dxbl-drawer-panel {
    display: none;
}

[b-hps168us5k] .navigation-drawer > .dxbl-drawer-content > .navigation-drawer-shading {
    display: none;
}
/* Il contenuto del Drawer non scrolla - le pagine interne gestiscono il proprio scroll */
[b-hps168us5k] .dxbl-drawer-content {
    overflow: hidden !important;
    height: 100% !important;
}

/* Transizione smooth per cambio contenuto */
[b-hps168us5k] .dxbl-drawer-content > div {
    animation: drawerContentTransition-b-hps168us5k 0.3s ease-out;
}

@keyframes drawerContentTransition-b-hps168us5k {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Personalizza scrollbar per browser Webkit (Chrome, Edge, Safari) */
[b-hps168us5k] .dxbl-drawer-content::-webkit-scrollbar {
    width: 8px;
}

[b-hps168us5k] .dxbl-drawer-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

[b-hps168us5k] .dxbl-drawer-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

[b-hps168us5k] .dxbl-drawer-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Media query per tablet e Surface Go */
@media (min-width: 768px) and (max-width: 1200px) {
    /* Su tablet, usa Overlap mode invece di Shrink per non riservare spazio */
    [b-hps168us5k] .navigation-drawer:not(.mobile):not(.panel-open) > .dxbl-drawer-panel {
        display: none !important;
        width: 0 !important;
    }

    [b-hps168us5k] .navigation-drawer:not(.mobile):not(.panel-open) > .dxbl-drawer-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Quando aperto, mostra normalmente */
    [b-hps168us5k] .navigation-drawer:not(.mobile).panel-open > .dxbl-drawer-panel {
        display: flex !important;
        width: 240px !important;
    }
}

@media (max-width: 768px) {
    [b-hps168us5k] .panel-open:not(.mobile) .menu-button {
        display: inline-flex;
    }

    /* Nascondi completamente il drawer desktop (Shrink mode) su mobile */
    [b-hps168us5k] .navigation-drawer:not(.mobile) > .dxbl-drawer-panel {
        display: none !important;
        width: 0 !important;
    }

    /* Forza il contenuto del drawer desktop a occupare tutta la larghezza */
    [b-hps168us5k] .navigation-drawer:not(.mobile) > .dxbl-drawer-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Mostra solo il drawer mobile (Overlap mode) */
    [b-hps168us5k] .navigation-drawer.mobile > .dxbl-drawer-panel {
        display: flex;
    }

    [b-hps168us5k] .navigation-drawer > .dxbl-drawer-content > .navigation-drawer-shading {
        background-color: var(--dxbl-drawer-content-shading-bg);
        display: block;
        height: 100%;
        position: absolute;
        transition: ease var(--dxbl-drawer-animation-duration);
        transition-property: opacity, visibility;
        visibility: visible;
        width: 100%;
        z-index: 99;
        opacity: var(--dxbl-drawer-content-shading-opacity);
    }

    [b-hps168us5k] .navigation-drawer.mobile.panel-closed .navigation-drawer-shading {
        opacity: 0;
        visibility: hidden;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ============================================================================
   MainLayout.razor.css
   Scopo: Stili di layout principale per l'app Blazor.
   - Gestisce struttura generale della pagina.
   - Definisce icone (via CSS variables e ::deep per componenti DevExpress).
   - Ottimizza area dei pulsanti di navigazione per minore altezza.
   - Fornisce stati hover uniformi per icone/pulsanti.
   - Supporta viewport dinamico e classi dispositivo.
   Nota: ::deep è utilizzato per penetrare lo scoped CSS dei componenti Blazor.
   ============================================================================ */

.page[b-i9hl9achde] {
    /* Contenitore principale della pagina: altezza piena e font consistente */
    height: 100vh;
    height: calc(var(--viewport-vh, 1vh) * 100); /* Fix iOS Safari */
    font-family: var(--bs-font-sans-serif, var(--dxds-font-family-sans-serif));
    overflow: hidden; /* Nessuna scrollbar sulla pagina principale */
    display: flex;
    flex-direction: column;
}

/* Area contenuto principale - si adatta all'altezza disponibile */
.main-content-area[b-i9hl9achde] {
    flex: 1;
    padding: 1rem;
    overflow: hidden; /* Di default nessuno scroll - le pagine che ne hanno bisogno lo abilitano */
    min-height: 0; /* Importante per flex shrink */
}

.logo[b-i9hl9achde] {
    /* Allinea il blocco logo al centro orizzontalmente */
    text-align: center;
    max-width: 180px;
    width: 100%;
    height: auto; /* mantiene le proporzioni */
}

/* ----------------------------------------------------------------------------
   Classi dispositivo - applicate automaticamente dal ViewportService
   ---------------------------------------------------------------------------- */
.page.device-small-mobile[b-i9hl9achde] {
    --page-padding: 0.25rem;
    --font-scale: 0.85;
}

.page.device-mobile[b-i9hl9achde] {
    --page-padding: 0.5rem;
    --font-scale: 0.9;
}

.page.device-tablet[b-i9hl9achde] {
    --page-padding: 0.75rem;
    --font-scale: 0.95;
}

.page.device-desktop[b-i9hl9achde] {
    --page-padding: 1rem;
    --font-scale: 1;
}

/* Applica padding basato sul dispositivo */
.page.device-small-mobile .main-content-area[b-i9hl9achde],
.page.device-mobile .main-content-area[b-i9hl9achde] {
    padding: var(--page-padding, 0.5rem);
}

/* ----------------------------------------------------------------------------
   Mapping icone a mask-image tramite variabili CSS.
   Ogni classe associa una variabile che verrà usata per generare l'icona.
   ---------------------------------------------------------------------------- */
[b-i9hl9achde] .icon-back {
    --icon-mask-image: var(--icon-back-mask-image);
}
[b-i9hl9achde] .icon-close { --icon-mask-image: var(--icon-close-mask-image); }
[b-i9hl9achde] .icon-menu { --icon-mask-image: var(--icon-menu-mask-image); }
[b-i9hl9achde] .docs-icon { --icon-mask-image: var(--icon-docs-mask-image); }
[b-i9hl9achde] .demos-icon { --icon-mask-image: var(--icon-demos-mask-image); }

/* ----------------------------------------------------------------------------
   Stati hover: uniforma il colore di sfondo per icone di menu, documenti, demo.
   Usa la variabile DevExpress (--dxbl-btn-hover-color) per coerenza visiva.
   ---------------------------------------------------------------------------- */
[b-i9hl9achde] .footer-button:hover .demos-icon,
[b-i9hl9achde] .footer-button:hover .docs-icon,
[b-i9hl9achde] .menu-button:hover .icon,
[b-i9hl9achde] .menu-button-nav:hover .icon {
    background-color: var(--dxbl-btn-hover-color);
}

/* ----------------------------------------------------------------------------
   Quando il pannello è aperto, forza visualizzazione del pulsante menu.
   Utile per transizioni responsive o overlay di navigazione.
   ---------------------------------------------------------------------------- */
.panel-open .menu-button[b-i9hl9achde] {
    display: inline-flex;
}

/* RIDOTTA ALTEZZA (prima: padding: 2rem 1rem;) */
.nav-buttons-container[b-i9hl9achde] {
    display: flex;
    gap: 6px;
    padding: .4rem .75rem;
    align-items: center;
    flex-shrink: 0; /* Non permettere al nav di restringersi */
}

/* ----------------------------------------------------------------------------
   Riduzione dimensioni pulsanti DevExpress all'interno del container:
   - Minor padding interno per compattezza
   - line-height ridotta per evitare dispersione verticale
   - min-height controllata per coerenza multiplatform
   ---------------------------------------------------------------------------- */
.nav-buttons-container[b-i9hl9achde]  .dxbl-btn {
    padding: .25rem .5rem;
    line-height: 1.1;
    min-height: 1.9rem;
}

/* ----------------------------------------------------------------------------
   Allinea un pulsante specifico (menubutton-float-end) all'estremità destra.
   Usa margin-left: auto per spingere l'elemento in fondo al flex container.
   ---------------------------------------------------------------------------- */
.nav-buttons-container[b-i9hl9achde]  .menubutton-float-end {
    margin-left: auto;
}

/* Wrapper per il contenuto del target del drawer */
.layout-content-wrapper[b-i9hl9achde] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ============================================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================================ */

/* Mobile - smartphone */
@media (max-width: 768px) {
    .nav-buttons-container[b-i9hl9achde] {
        padding: .3rem .5rem;
        gap: 4px;
    }

    .nav-buttons-container[b-i9hl9achde]  .dxbl-btn {
        padding: .2rem .4rem;
        min-height: 1.7rem;
        font-size: 0.85rem;
    }

    /* Riduci padding del contenuto principale su mobile */
    .main-content-area[b-i9hl9achde] {
        padding: 0.5rem !important;
    }

    .page[b-i9hl9achde]  .dxbl-drawer-content > div {
        padding: 0.5rem !important;
    }
}

/* Tablet e Surface Go */
@media (min-width: 768px) and (max-width: 1200px) {
    .nav-buttons-container[b-i9hl9achde] {
        padding: .35rem .6rem;
        gap: 5px;
    }

    .nav-buttons-container[b-i9hl9achde]  .dxbl-btn {
        padding: .22rem .45rem;
        min-height: 1.8rem;
    }

    .main-content-area[b-i9hl9achde] {
        padding: 0.75rem;
    }
}

/* Desktop grande */
@media (min-width: 1200px) {
    .main-content-area[b-i9hl9achde] {
        padding: 1.5rem;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
[b-9th237q23n] .menu.display-mobile {
    margin-bottom: 2rem;
}

[b-9th237q23n] .menu {
    --dxbl-menu-bottom-left-border-radius: 0;
    --dxbl-menu-bottom-right-border-radius: 0;
    --dxbl-menu-top-left-border-radius: 0;
    --dxbl-menu-top-right-border-radius: 0;

    background-color: inherit;
}

[b-9th237q23n] .menu .dxbl-menu-item-list {
    gap: 0.5rem;
}

[b-9th237q23n] .menu-item {
    color: var(--bs-white, #fff);
}

[b-9th237q23n] .icon {
    margin-left: 0.5rem;
}

[b-9th237q23n] .home-icon {
    --icon-mask-image: var(--icon-home-mask-image);
}

[b-9th237q23n] .weather-icon {
    --icon-mask-image: var(--icon-weather-mask-image);
}

[b-9th237q23n] .counter-icon {
    --icon-mask-image: var(--icon-counter-mask-image);
}


@media (max-width: 768px) {
    #sidebar[b-9th237q23n] {
        min-width: inherit;
        max-width: inherit;
        display: block;
    }

    .logo[b-9th237q23n] {
        text-align: inherit;
    }
}
/* /Components/Orders/ClienteDetailsSidebar.razor.rz.scp.css */
/* ========================================
   CLIENTE DETAILS SIDEBAR - Stili componente
   Sidebar laterale per visualizzare i dettagli del cliente
   ======================================== */

/* ===== SIDEBAR CLIENTE ===== */
.cliente-sidebar[b-uowyw44boq] {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cliente-sidebar.visible[b-uowyw44boq] {
    right: 0;
}

.sidebar-header[b-uowyw44boq] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--ml-color-border, #e5e7eb);
    background: linear-gradient(135deg, var(--ml-color-primary, #667eea) 0%, var(--ml-color-secondary, #764ba2) 100%);
    color: white;
    flex-shrink: 0;
}

.sidebar-header h5[b-uowyw44boq] {
    font-weight: 600;
    color: white;
}

.sidebar-header .btn-link[b-uowyw44boq] {
    color: white;
    font-size: 1.25rem;
    padding: 0.25rem;
    text-decoration: none;
}

.sidebar-header .btn-link:hover[b-uowyw44boq] {
    opacity: 0.8;
}

.sidebar-content[b-uowyw44boq] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.sidebar-overlay[b-uowyw44boq] {
    display: none;
}

/* Info sections */
.info-group-title[b-uowyw44boq] {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ml-color-primary, #667eea);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ml-color-border, #e5e7eb);
}

.info-group-title:first-child[b-uowyw44boq] {
    margin-top: 0;
}

.info-section[b-uowyw44boq] {
    margin-bottom: 1.25rem;
}

.info-label[b-uowyw44boq] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value[b-uowyw44boq] {
    font-size: 1rem;
    color: var(--ml-color-text, #1f2937);
    word-wrap: break-word;
}

.contact-link[b-uowyw44boq] {
    color: var(--ml-color-primary, #667eea);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.contact-link:hover[b-uowyw44boq] {
    color: var(--ml-color-secondary, #764ba2);
    text-decoration: underline;
}

/* Saldo badges */
.saldo-badge[b-uowyw44boq] {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
}

.saldo-negativo[b-uowyw44boq] {
    background-color: #fee2e2;
    color: var(--ml-color-danger, #dc2626);
}

.saldo-positivo[b-uowyw44boq] {
    background-color: #d1fae5;
    color: #059669;
}

.saldo-zero[b-uowyw44boq] {
    background-color: #f3f4f6;
    color: var(--ml-color-text-muted, #6b7280);
}

/* Giorni settimana */
.giorni-settimana[b-uowyw44boq],
.giorni-settimana-edit[b-uowyw44boq] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.giorno-badge[b-uowyw44boq] {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #f3f4f6;
    color: #9ca3af;
    border: 2px solid var(--ml-color-border, #e5e7eb);
    transition: all 0.2s;
}

.giorno-badge.active[b-uowyw44boq] {
    background: linear-gradient(135deg, var(--ml-color-primary, #667eea) 0%, var(--ml-color-secondary, #764ba2) 100%);
    color: white;
    border-color: var(--ml-color-primary, #667eea);
}

.giorno-badge.editable[b-uowyw44boq] {
    cursor: pointer;
    user-select: none;
}

.giorno-badge.editable:hover[b-uowyw44boq] {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.giorno-badge.editable.active:hover[b-uowyw44boq] {
    background: linear-gradient(135deg, #5568d3 0%, #63428b 100%);
}

.giorno-badge.editable:not(.active):hover[b-uowyw44boq] {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

/* Note content */
.note-content[b-uowyw44boq] {
    background-color: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    font-style: italic;
    color: #92400e;
}

/* Sidebar quick action */
.sidebar-quick-action[b-uowyw44boq] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.sidebar-quick-action .dxbl-btn[b-uowyw44boq] {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Matricole Grid */
.matricole-grid[b-uowyw44boq] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.matricola-card[b-uowyw44boq] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-left: 4px solid var(--ml-color-primary, #667eea);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.matricola-card:hover[b-uowyw44boq] {
    transform: translateX(-4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.matricola-id[b-uowyw44boq] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--ml-color-primary, #667eea);
}

.matricola-id strong[b-uowyw44boq] {
    font-size: 1rem;
    color: #495057;
}

.matricola-descrizione[b-uowyw44boq] {
    font-size: 0.875rem;
    color: var(--ml-color-text-muted, #6c757d);
    line-height: 1.4;
}

/* Fattura Card */
.fattura-card[b-uowyw44boq] {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fattura-card .info-label[b-uowyw44boq] {
    font-size: 0.7rem;
    color: #2e7d32;
    margin-bottom: 0.25rem;
}

.fattura-card .info-value[b-uowyw44boq] {
    font-size: 0.95rem;
    color: #1b5e20;
}

/* Alert light */
.alert-light[b-uowyw44boq] {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
}

.alert-sm[b-uowyw44boq] {
    font-size: 0.75rem;
    padding: 0.5rem;
}

/* ========================================
   RESPONSIVE - Tablet (768px - 1200px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1200px) {
    .cliente-sidebar[b-uowyw44boq] {
        width: 380px;
        right: -380px;
    }
}

/* ========================================
   RESPONSIVE - Mobile (< 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Sidebar full-width on mobile */
    .cliente-sidebar[b-uowyw44boq] {
        width: 100%;
        right: -100%;
    }

    .sidebar-overlay[b-uowyw44boq] {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .sidebar-content[b-uowyw44boq] {
        padding: 1rem;
    }

    .info-group-title[b-uowyw44boq] {
        font-size: 0.8rem;
        margin-top: 1.25rem;
    }

    .info-value[b-uowyw44boq] {
        font-size: 0.9rem;
    }

    .saldo-badge[b-uowyw44boq] {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .matricole-grid[b-uowyw44boq] {
        gap: 0.5rem;
    }

    .matricola-card[b-uowyw44boq] {
        padding: 0.5rem 0.75rem;
    }

    .matricola-id[b-uowyw44boq] {
        font-size: 0.8rem;
    }

    .matricola-id strong[b-uowyw44boq] {
        font-size: 0.9rem;
    }

    .matricola-descrizione[b-uowyw44boq] {
        font-size: 0.8rem;
    }

    .fattura-card[b-uowyw44boq] {
        padding: 0.75rem;
    }

    .fattura-card .info-label[b-uowyw44boq] {
        font-size: 0.65rem;
    }

    .fattura-card .info-value[b-uowyw44boq] {
        font-size: 0.85rem;
    }
}

/* ========================================
   RESPONSIVE - Small Mobile (< 576px)
   ======================================== */
@media (max-width: 576px) {
    .sidebar-header[b-uowyw44boq] {
        padding: 1rem;
    }

    .sidebar-header h5[b-uowyw44boq] {
        font-size: 1rem;
    }

    .info-section[b-uowyw44boq] {
        margin-bottom: 1rem;
    }

    .giorni-settimana[b-uowyw44boq] {
        gap: 0.4rem;
    }

    .giorno-badge[b-uowyw44boq] {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .matricola-card[b-uowyw44boq] {
        padding: 0.5rem;
    }

    .fattura-card[b-uowyw44boq] {
        padding: 0.6rem;
    }
}

/* ============================================================================
   BADGE GEO E POPUP POSIZIONE CLIENTE
   Stessa iconografia del giro consegna: badge blu = georeferenziato,
   ambra = posizione approssimativa (solo località), grigio = non
   georeferenziato. Il popup riusa le classi giro-* così le regole globali
   di site.css (fullscreen smartphone) valgono anche qui.
   ============================================================================ */
.giro-badge-geo[b-uowyw44boq] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #2563eb;
    color: white;
    cursor: pointer;
    user-select: none;
}

.giro-badge-geo:hover[b-uowyw44boq] {
    background: #1d4ed8;
}

/* Posizione approssimativa (GeoPrecisione 'L' = solo località): badge ambra */
.giro-badge-geo-approssimata[b-uowyw44boq] {
    background: #d97706;
}

.giro-badge-geo-approssimata:hover[b-uowyw44boq] {
    background: #b45309;
}

.giro-badge-no-geo[b-uowyw44boq] {
    background: #e5e7eb;
    color: #6b7280;
}

/* ===== Popup posizione cliente (stessa struttura del giro consegna) ===== */
.giro-mappa-body[b-uowyw44boq] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
}

/* Mappa Google incorporata: riempie la finestra come una WebView integrata */
.giro-mappa-iframe[b-uowyw44boq] {
    width: 100%;
    height: min(480px, 62vh);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #e5e7eb;
}

/* Contenitore della DxMap del cliente: altezza fissa su desktop
   (su smartphone il popup è fullscreen e la estende via site.css) */
.giro-mappa-dx-wrap[b-uowyw44boq] {
    width: 100%;
    height: min(480px, 62vh);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #e5e7eb;
}

.giro-mappa-footer[b-uowyw44boq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.giro-mappa-coordinate[b-uowyw44boq] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Nota "posizione approssimativa" nel popup posizione */
.giro-posizione-approssimativa[b-uowyw44boq] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-style: italic;
    color: #b45309;
}

/* Nota "posizione rilevata sul posto dal terminale" nel popup posizione */
.giro-posizione-terminale[b-uowyw44boq] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-style: italic;
    color: #1d4ed8;
}

/* ============================================================================
   CARD "POSIZIONE DEL CLIENTE" (rilevazione dal terminale)
   Mostrata sotto l'indirizzo quando il cliente non è localizzato al civico:
   sfondo ambra tenue per attirare l'attenzione senza allarmare; verde a
   salvataggio avvenuto.
   ============================================================================ */
.posizione-card[b-uowyw44boq] {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    margin-bottom: 1.25rem;
}

.posizione-card-salvata[b-uowyw44boq] {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

/* Rilevazione richiesta dalla sede (GeoRilevazione 'O'): bordo più marcato */
.posizione-card-obbligatoria[b-uowyw44boq] {
    border-color: #f59e0b;
    border-width: 2px;
}

/* Avviso prima di "Acquisisci Ordine": la sede richiede la posizione, sei presso il cliente? */
.posizione-avviso[b-uowyw44boq] {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.posizione-avviso-testo[b-uowyw44boq] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.posizione-card-titolo[b-uowyw44boq] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.posizione-card-salvata .posizione-card-titolo[b-uowyw44boq] {
    color: #065f46;
}

.posizione-card-testo[b-uowyw44boq] {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.posizione-card-salvata .posizione-card-testo[b-uowyw44boq] {
    margin-bottom: 0;
}

/* Riga "posizione rilevata: ±12 m" */
.posizione-rilevata[b-uowyw44boq] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #1f2937;
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.75rem;
}

.posizione-rilevata .oi[b-uowyw44boq] {
    color: #2563eb;
    margin-top: 0.15rem;
}
/* /Components/Orders/ClientiPage.razor.rz.scp.css */
/* ========================================
   CLIENTI PAGE - Stili specifici componente
   Layout che si adatta all'altezza del container padre (IndexOrders).
   La griglia ha scroll interno.
   ======================================== */

/* Container principale - eredita l'altezza dal container padre */
.clienti-page[b-n8z129wdzg] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* Importante per flex shrink */
    padding: 0;
}

/* Header con titolo - altezza fissa */
.clienti-header[b-n8z129wdzg] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.clienti-header h3[b-n8z129wdzg] {
    font-size: 1.25rem;
    margin: 0;
}

/* Content wrapper - flex per sidebar */
.clienti-content-wrapper[b-n8z129wdzg] {
    position: relative;
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

/* Contenuto principale - flex column */
.clienti-content[b-n8z129wdzg] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    gap: 0.5rem;
}

/* Alert cliente selezionato - compatto */
.cliente-selezionato-alert[b-n8z129wdzg] {
    flex-shrink: 0;
    margin-bottom: 0 !important;
    padding: 0.5rem 1rem;
}

/* Toolbar - altezza fissa */
/* ===== Filtri principali: ricerca e giorno di visita su una riga ===== */
.clienti-toolbar-filtri[b-n8z129wdzg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

/* La ricerca occupa lo spazio residuo; il combo giorni ha larghezza fissa.
   ATTENZIONE: gli editor DevExpress hanno width:100% di default, quindi nel
   flex servono basi esplicite (basis 0 per la ricerca, width fissa per il
   combo), altrimenti il combo reclama tutta la riga e la ricerca collassa a 0. */
.clienti-toolbar-filtri[b-n8z129wdzg]  .toolbar-search-box {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
}

.clienti-toolbar-filtri[b-n8z129wdzg]  .giorni-combobox {
    flex: 0 0 auto;
    width: 175px;
}

/* ===== Toolbar azioni: una riga che NON va a capo, comoda al tocco.
   Sugli smartphone si scorre in orizzontale col dito, così i pulsanti
   mantengono sempre una dimensione comoda (stessa impostazione del
   giro consegna). ===== */
.clienti-toolbar[b-n8z129wdzg] {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.1rem 0.1rem 0.35rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.clienti-toolbar > *[b-n8z129wdzg] {
    flex: 0 0 auto;
}

[b-n8z129wdzg] .clienti-toolbar-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 2.6rem;
}

/* Chip filtro/azione touch-friendly (stessa forma dei chip del giro consegna,
   accento blu del modulo ordini) */
.clienti-filtro-chip[b-n8z129wdzg] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 999px;
    padding: 0.2rem 0.65rem 0.2rem 0.3rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.clienti-filtro-chip:hover:not(:disabled)[b-n8z129wdzg] {
    border-color: #2563eb;
}

.clienti-filtro-chip:disabled[b-n8z129wdzg] {
    opacity: 0.45;
    cursor: default;
}

.clienti-filtro-chip-attivo[b-n8z129wdzg] {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

/* Variante del chip per la toolbar: area di tocco più generosa */
.clienti-chip-bar[b-n8z129wdzg] {
    min-height: 2.6rem;
    padding: 0.35rem 0.9rem;
    gap: 0.45rem;
    white-space: nowrap;
}

/* Wrapper griglia - usa l'altezza definita dallo stile inline */
.grid-wrapper[b-n8z129wdzg] {
    flex: 0 0 auto; /* Non cresce, non si riduce - usa l'altezza dallo style inline */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--ml-color-bg-card, #fff);
    border: 1px solid var(--ml-color-border, #e5e7eb);
    border-radius: var(--ml-radius-md, 0.5rem);
    box-shadow: var(--ml-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Footer con statistiche - altezza fissa, SEMPRE visibile */
.clienti-footer[b-n8z129wdzg] {
    flex: 0 0 auto; /* Non cresce, non si riduce */
    flex-shrink: 0; /* Garantisce che non si riduca mai */
    padding: 0.5rem 0;
    color: var(--ml-color-text-muted, #6c757d);
    min-height: 32px; /* Altezza minima garantita */
    background-color: inherit; /* Eredita sfondo per visibilità */
}

/* Distanza stradale dalla posizione del dispositivo (filtro "Vicino a me"),
   stesso stile della distanza in griglia del giro consegna */
.cliente-distanza-strada[b-n8z129wdzg] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1d4ed8;
    white-space: nowrap;
}

.cliente-distanza-strada .oi[b-n8z129wdzg] {
    font-size: 0.7rem;
}

/* ===== Filtro "Vicino a me": messaggio d'esito inline sotto la toolbar =====
   (lo slider del raggio è il componente condiviso RaggioVicinoSlider) */
.clienti-vicino-alert[b-n8z129wdzg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Griglia clienti - occupa tutto lo spazio disponibile */
[b-n8z129wdzg] .clienti-grid {
    height: 100% !important;
    max-height: 100% !important;
    border: none !important;
    display: flex;
    flex-direction: column;
}

[b-n8z129wdzg] .clienti-grid .dxbl-grid-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

[b-n8z129wdzg] .clienti-grid .dxbl-grid-table-container {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: auto;
    min-height: 0;
}

[b-n8z129wdzg] .clienti-grid .dxbl-grid-header {
    flex-shrink: 0;
    background-color: #f9fafb;
    border-bottom: 1px solid var(--ml-color-border, #e5e7eb);
}

[b-n8z129wdzg] .clienti-grid .dxbl-grid-header-cell {
    font-weight: 600;
    color: #374151;
}

[b-n8z129wdzg] .clienti-grid .dxbs-grid-row {
    min-height: 60px;
}

[b-n8z129wdzg] .clienti-grid .dxbs-grid-data-cell {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

/* Rimuovi header colonne dalla griglia (come GrigliaRigheOrdine) */
[b-n8z129wdzg] .clienti-grid .dxbl-grid-header-row {
    display: none;
}

[b-n8z129wdzg] .clienti-grid .dxbl-grid-table tbody td {
    vertical-align: middle;
    padding: 0.25rem 0.5rem;
}

/* Paginatore - altezza fissa */
[b-n8z129wdzg] .clienti-grid .dxbl-pager {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

[b-n8z129wdzg] .clienti-grid .dxbl-pager-button {
    min-width: var(--ml-touch-target, 44px);
    min-height: var(--ml-touch-target, 44px);
    border-radius: var(--ml-radius-sm, 0.375rem);
    margin: 0 0.25rem;
}

/* === CONTAINER RIGA CLIENTE (stile come GrigliaRigheOrdine) === */
.riga-cliente[b-n8z129wdzg] {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0.5rem;
    margin: 0.15rem 0;
}

/* === LAYOUT COMPATTO (riga non selezionata) === */
.riga-cliente-compatta[b-n8z129wdzg] {
    background-color: #fff;
}

    .riga-cliente-compatta:hover[b-n8z129wdzg] {
        background-color: rgba(59, 130, 246, 0.05);
    }

.riga-cliente-compatta-content[b-n8z129wdzg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cliente-codice-compact[b-n8z129wdzg] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    white-space: nowrap;
}

.cliente-descrizione-compact[b-n8z129wdzg] {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 80px;
}

.cliente-telefono-compact[b-n8z129wdzg] {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
}

.cliente-localita-compact[b-n8z129wdzg] {
    font-size: 0.8rem;
    color: #495057;
    white-space: nowrap;
}

/* === LAYOUT ESPANSO (riga selezionata) === */
.riga-cliente-espansa[b-n8z129wdzg] {
    background-color: rgba(59, 130, 246, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

/* Prima riga espansa: Codice, Descrizione, Telefono */
.riga-cliente-espansa-row1[b-n8z129wdzg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 0.5rem;
}

.cliente-codice[b-n8z129wdzg] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.cliente-descrizione-espansa[b-n8z129wdzg] {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 60px;
}

.cliente-telefono-espansa[b-n8z129wdzg] {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* Seconda riga espansa: Indirizzo */
.riga-cliente-espansa-row2[b-n8z129wdzg] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #495057;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Terza riga espansa: Pulsante Seleziona */
.riga-cliente-espansa-row3[b-n8z129wdzg] {
    display: flex;
    justify-content: center;
}

.riga-cliente-controlli-centrati[b-n8z129wdzg] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-azione-cliente[b-n8z129wdzg] {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .btn-azione-cliente:hover[b-n8z129wdzg] {
        transform: scale(1.05);
    }

.saldo-value[b-n8z129wdzg] {
    font-weight: 600;
    white-space: nowrap;
}

/* ComboBox giorni e search box */
[b-n8z129wdzg] .giorni-combobox {
    min-width: 160px;
}

[b-n8z129wdzg] .giorni-combobox .dxbl-edit,
[b-n8z129wdzg] .toolbar-search-box .dxbl-edit {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem;
    min-height: 42px;
}

[b-n8z129wdzg] .giorni-combobox .dxbl-dropdown-btn {
    min-width: 42px;
    min-height: 42px;
}

[b-n8z129wdzg] .giorni-combobox .dxbl-listbox-item {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
}

[b-n8z129wdzg] .toolbar-search-box {
    min-width: 250px;
}

/* ========================================
   RESPONSIVE - Tablet (768px - 1200px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1200px) {
    .clienti-header h3[b-n8z129wdzg] {
        font-size: 1.1rem;
    }

    [b-n8z129wdzg] .toolbar-search-box {
        min-width: 180px;
    }

    [b-n8z129wdzg] .giorni-combobox {
        min-width: 130px;
    }

    .clienti-toolbar-filtri[b-n8z129wdzg]  .giorni-combobox {
        width: 150px;
    }
}

/* ========================================
   RESPONSIVE - Mobile (< 768px)
   ======================================== */
@media (max-width: 768px) {
    .clienti-header[b-n8z129wdzg] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .clienti-header h3[b-n8z129wdzg] {
        font-size: 1rem;
    }

    .cliente-descrizione small[b-n8z129wdzg] {
        font-size: 0.75rem;
    }

    .cliente-indirizzo[b-n8z129wdzg] {
        font-size: 0.85rem;
    }

    [b-n8z129wdzg] .toolbar-search-box {
        min-width: 150px;
    }

    [b-n8z129wdzg] .giorni-combobox {
        min-width: 100px;
    }

    .clienti-toolbar-filtri[b-n8z129wdzg]  .giorni-combobox {
        width: 130px;
    }

    [b-n8z129wdzg] .clienti-grid .dxbs-grid-row {
        min-height: 50px;
    }

    [b-n8z129wdzg] .clienti-grid .dxbs-grid-data-cell {
        padding: 0.5rem 0.35rem;
        font-size: 0.85rem;
    }

    [b-n8z129wdzg] .clienti-grid .dxbl-pager-button {
        min-width: 36px;
        min-height: 36px;
    }

    .clienti-footer[b-n8z129wdzg] {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Badge tipo cliente (PF / PV) - mostrato accanto al codice nelle righe griglia
   - PF = Punto Fattura (viola)
   - PV = Punto Vendita (azzurro)
   Tooltip esteso al hover ("Punto Fattura" / "Punto Vendita").
   ========================================================================== */
.cliente-tipo-badge[b-n8z129wdzg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
    cursor: help;
}

.cliente-tipo-pf[b-n8z129wdzg] {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.cliente-tipo-pv[b-n8z129wdzg] {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

/* Badge "GPS": la sede richiede di rilevare la posizione del cliente (AnaClienti.GeoRilevazione 'O') */
.cliente-posizione-badge[b-n8z129wdzg] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    flex-shrink: 0;
}
/* /Components/Orders/ConfermaPage.razor.rz.scp.css */
/* ========================================
   CONFERMA PAGE - Stili specifici componente
   Gli stili base sono definiti in wwwroot/css/site.css
   ======================================== */

.conferma-page[b-6zxpt6hwgu] {
    /* Altezza massima disponibile nel viewport, sottraendo header nav (~50px) e padding */
    height: 100%;
    max-height: calc(100vh - 80px);
    max-height: calc(var(--viewport-vh, 1vh) * 100 - 80px); /* Fix iOS Safari */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header con titolo e badge - sempre visibile in alto */
.conferma-header[b-6zxpt6hwgu] {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    z-index: 10;
}

/* Wrapper per contenuto scrollabile */
.conferma-content-wrapper[b-6zxpt6hwgu] {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Critico per flex scroll */
    /* Lascia spazio sufficiente per il footer e previene sovrapposizioni */
    padding-bottom: 1rem;
}

.conferma-content[b-6zxpt6hwgu] {
    /* Contenitore interno */
}

/* Footer sticky per i pulsanti azione - sempre visibile */
.conferma-footer[b-6zxpt6hwgu] {
    flex: 0 0 auto;
    background: var(--bs-body-bg, #fff);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    padding: 0.75rem 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    /* Garantisce che sia sempre visibile in fondo */
    position: sticky;
    bottom: 0;
    z-index: 10;
    /* Mantiene il footer visibile anche su resize */
    margin-top: auto;
}

/* Viewport griglia conferma con scroll */
.grid-viewport-conferma[b-6zxpt6hwgu] {
    overflow-y: auto;
    overflow-x: hidden;
}

[b-6zxpt6hwgu] .grid-viewport-conferma .dxbl-grid {
    height: 100%;
}

[b-6zxpt6hwgu] .grid-viewport-conferma .dxbl-grid-table tbody tr {
    min-height: 50px;
}

[b-6zxpt6hwgu] .grid-viewport-conferma .dxbl-grid-table tbody td {
    vertical-align: middle;
    padding: 0.5rem;
}

/* SpinEdit compatti per quantità e sconto */
[b-6zxpt6hwgu] .spin-qta-conferma,
[b-6zxpt6hwgu] .spin-sconto-conferma {
    width: 100%;
    max-width: 80px;
}

[b-6zxpt6hwgu] .spin-qta-conferma .dxbl-spin-edit-input,
[b-6zxpt6hwgu] .spin-sconto-conferma .dxbl-spin-edit-input {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.35rem;
}

/* Badge specifico */
.badge[b-6zxpt6hwgu] {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    font-weight: 600;
}

/* Spinner */
.spinner-border-sm[b-6zxpt6hwgu] {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive */
@media (max-width: 991px) {
    [b-6zxpt6hwgu] .spin-qta-conferma,
    [b-6zxpt6hwgu] .spin-sconto-conferma {
        max-width: 70px;
    }

    [b-6zxpt6hwgu] .spin-qta-conferma .dxbl-spin-edit-input,
    [b-6zxpt6hwgu] .spin-sconto-conferma .dxbl-spin-edit-input {
        font-size: 0.8rem;
        padding: 0.2rem 0.25rem;
    }
}

@media (max-width: 767px) {
    .conferma-header[b-6zxpt6hwgu] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .conferma-header .d-flex.gap-3[b-6zxpt6hwgu] {
        flex-wrap: wrap;
        width: 100%;
    }

    .conferma-footer .d-flex.gap-3[b-6zxpt6hwgu] {
        flex-direction: column;
    }

    .conferma-footer .btn-lg[b-6zxpt6hwgu] {
        width: 100%;
    }

    .conferma-footer .btn-lg.px-5[b-6zxpt6hwgu] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
/* /Components/Orders/DocumentiClienteDrawer.razor.rz.scp.css */
/* ==========================================================================
   DocumentiClienteDrawer
   Drawer off-canvas per la stampa/invio email dei documenti di vendita cliente.
   Layout simile a EstrattoContoPanel ma piu largo (griglia + footer azioni).
   ========================================================================== */

.doc-overlay[b-davloxpr9c] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    z-index: 1040;
    pointer-events: none;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.doc-overlay.open[b-davloxpr9c] {
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

/* Larghezza coerente con ClienteDetailsSidebar:
   - desktop large : 450px
   - desktop medio : 380px (768-1200)
   - mobile        : 100vw  */
.doc-drawer[b-davloxpr9c] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 450px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    box-shadow: -16px 0 30px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) and (max-width: 1200px) {
    .doc-drawer[b-davloxpr9c] {
        width: 380px;
    }
}

@media (max-width: 768px) {
    .doc-drawer[b-davloxpr9c] {
        width: 100%;
    }
}

.doc-drawer.open[b-davloxpr9c] {
    transform: translateX(0);
}

.doc-drawer-inner[b-davloxpr9c] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ----- Header ----- */
.doc-header[b-davloxpr9c] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1f3a8a 0%, #2d6cdf 100%);
    color: #fff;
    flex-shrink: 0;
}

.doc-header-titolo[b-davloxpr9c] {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.doc-header-icon[b-davloxpr9c] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-header-icon .oi[b-davloxpr9c] {
    font-size: 20px;
}

.doc-titolo[b-davloxpr9c] {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.doc-sottotitolo[b-davloxpr9c] {
    font-size: 0.78rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.92);
}

.doc-close-btn[b-davloxpr9c] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.doc-close-btn:hover[b-davloxpr9c] { background: rgba(255, 255, 255, 0.28); }
.doc-close-btn:active[b-davloxpr9c] { transform: scale(0.94); }
.doc-close-btn .oi[b-davloxpr9c] { font-size: 16px; }

/* ----- Card cliente ----- */
.doc-cliente-card[b-davloxpr9c] {
    margin: 14px 18px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e9f2;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.doc-cliente-badge[b-davloxpr9c] {
    background: #1f2a44;
    color: #fff;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.doc-cliente-nome[b-davloxpr9c] {
    font-weight: 700;
    color: #1f2a44;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-cliente-card-empty[b-davloxpr9c] {
    background: #fffbe6;
    border-color: #facc15;
    color: #92400e;
}

.doc-cliente-card-empty .oi[b-davloxpr9c] { color: #b45309; }

/* ----- Filtri ----- */
.doc-filters[b-davloxpr9c] {
    padding: 12px 18px 0;
    flex-shrink: 0;
}

.doc-filters-row[b-davloxpr9c] {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.doc-filter-cell[b-davloxpr9c] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.doc-filter-cell-btn[b-davloxpr9c] {
    min-width: 110px;
}

.doc-label[b-davloxpr9c] {
    font-weight: 600;
    color: #1f2a44;
    font-size: 0.82rem;
    margin: 0;
}

.doc-hint[b-davloxpr9c] {
    color: #6b7a90;
    font-size: 0.72rem;
}

[b-davloxpr9c] .doc-input {
    width: 100%;
}

@media (max-width: 560px) {
    .doc-filters-row[b-davloxpr9c] {
        grid-template-columns: 1fr 1fr;
    }
    .doc-filter-cell-btn[b-davloxpr9c] {
        grid-column: 1 / -1;
    }
}

/* ----- Alert ----- */
.doc-alert[b-davloxpr9c] {
    flex-shrink: 0;
    margin: 10px 18px 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.doc-alert-error[b-davloxpr9c] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.doc-alert-success[b-davloxpr9c] {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.doc-alert-info[b-davloxpr9c] {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.doc-alert-info .oi[b-davloxpr9c] { color: #b45309; }
.doc-alert-info strong[b-davloxpr9c] { font-weight: 700; }

/* ----- Griglia -----
   Tre regole chiave per evitare che DxGrid cresca all'infinito spingendo i pulsanti
   fuori vista:
   1. il wrapper e flex column con min-height:0 (rompe il default "auto-grow" dei flex)
   2. il wrapper ha overflow:hidden cosi delega lo scroll alla DxGrid interna
   3. ::deep .doc-grid prende flex:1 + min-height:0 + height:100% */
.doc-grid-wrapper[b-davloxpr9c] {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
}

[b-davloxpr9c] .doc-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    overflow: hidden;
}

/* La DxGrid all'interno deve poter scrollare verticalmente sulle righe. */
[b-davloxpr9c] .doc-grid .dxbl-grid {
    height: 100% !important;
}

.doc-empty[b-davloxpr9c] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7a90;
    gap: 10px;
    text-align: center;
}

.doc-empty .oi[b-davloxpr9c] { font-size: 36px; opacity: 0.6; }

/* ----- Action bar ----- */
.doc-actions[b-davloxpr9c] {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    background: #ffffff;
    border-top: 1px solid #e5e9f2;
    box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-actions-info[b-davloxpr9c] {
    font-size: 0.9rem;
    color: #1f2a44;
}

.doc-actions-buttons[b-davloxpr9c] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.doc-action-btn[b-davloxpr9c] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    font-weight: 600;
    font-size: 0.92rem;
}

.doc-action-btn .oi[b-davloxpr9c] { font-size: 18px; }
.doc-action-btn:hover:not(:disabled)[b-davloxpr9c] { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16); }
.doc-action-btn:active:not(:disabled)[b-davloxpr9c] { transform: translateY(0) scale(0.99); }
.doc-action-btn:disabled[b-davloxpr9c] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.doc-action-view[b-davloxpr9c]     { background: linear-gradient(135deg, #4f6bff, #6c84ff); }
.doc-action-download[b-davloxpr9c] { background: linear-gradient(135deg, #0ea371, #10b981); }
.doc-action-mail[b-davloxpr9c]     { background: linear-gradient(135deg, #ea580c, #f97316); }

@media (max-width: 560px) {
    .doc-actions-buttons[b-davloxpr9c] {
        grid-template-columns: 1fr;
    }
}

/* ----- Form mail (sotto-popup nel drawer) ----- */
.doc-mail-overlay[b-davloxpr9c] {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 30;
}

.doc-mail-form[b-davloxpr9c] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, 92%);
    max-height: 90%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
    z-index: 31;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.doc-mail-header[b-davloxpr9c] {
    padding: 12px 16px;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-mail-body[b-davloxpr9c] {
    padding: 14px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-field[b-davloxpr9c] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[b-davloxpr9c] .doc-memo .dxbl-edit-content {
    min-height: 90px;
    font-size: 0.9rem;
}

.doc-mail-footer[b-davloxpr9c] {
    padding: 12px 16px;
    border-top: 1px solid #e5e9f2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ----- Busy overlay (sopra a tutto, non occupa spazio nel layout) ----- */
.doc-busy-overlay[b-davloxpr9c] {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    animation: doc-busy-fade-in-b-davloxpr9c 0.18s ease-out;
}

@keyframes doc-busy-fade-in-b-davloxpr9c {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.doc-busy-card[b-davloxpr9c] {
    background: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    border: 1px solid #e5e9f2;
}

.doc-busy-spinner[b-davloxpr9c] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #e0e6f1;
    border-top-color: #2d6cdf;
    animation: doc-busy-spin-b-davloxpr9c 0.9s linear infinite;
}

@keyframes doc-busy-spin-b-davloxpr9c {
    to { transform: rotate(360deg); }
}

.doc-busy-text[b-davloxpr9c] {
    font-size: 0.9rem;
    color: #1f2a44;
    font-weight: 600;
    text-align: center;
}

/* Mobile: drawer a tutta larghezza, padding ridotti */
@media (max-width: 520px) {
    .doc-drawer[b-davloxpr9c] { width: 100vw; }
    .doc-header[b-davloxpr9c] { padding: 14px 16px; }
    .doc-cliente-card[b-davloxpr9c] { margin: 12px 12px 0; }
    .doc-filters[b-davloxpr9c] { padding: 10px 12px 0; }
    .doc-grid-wrapper[b-davloxpr9c] { padding: 10px 12px; }
    .doc-actions[b-davloxpr9c] { padding: 10px 12px 14px; }
}

/* Filter menu del DxGrid touch-friendly:
   FilterMenuButtonDisplayMode="Always" mostra l'icona filtro su ogni header,
   l'altezza minima dei tap target migliora l'uso col dito. */
[b-davloxpr9c] .doc-grid .dxbl-grid-header-filter-button {
    min-width: 28px;
    min-height: 28px;
}

/* ==========================================================================
   Cell renderer: Stato SDI (colonna ST)
   Solo icona monocromatica: il TIPO di icona codifica lo stato, niente colori.
   Il tooltip (title) rivela il significato esteso al hover/long-press.
   - PROV -> oi-pencil
   - EG   -> oi-cog
   - EW   -> oi-cloud-upload
   - ES   -> oi-share-boxed
   - OK   -> oi-circle-check */
.doc-stato[b-davloxpr9c] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: help;
    color: #475569; /* slate-600: stesso colore per tutte le icone */
}

.doc-stato .oi[b-davloxpr9c] {
    font-size: 16px;
    line-height: 1;
}

/* Le classi color (doc-stato-eg, -ew, ecc.) sono mantenute per compatibilita
   col code-behind ma non applicano piu colori distinti. */
.doc-stato-prov[b-davloxpr9c],
.doc-stato-eg[b-davloxpr9c],
.doc-stato-ew[b-davloxpr9c],
.doc-stato-es[b-davloxpr9c],
.doc-stato-ok[b-davloxpr9c] {
    color: inherit;
}

/* Font leggermente piu piccolo per la griglia documenti, sopra il SizeMode.Small.
   Cosi le 6-7 colonne stanno comodamente nello spazio del drawer (450/380px). */
[b-davloxpr9c] .doc-grid .dxbl-grid-header-cell,
[b-davloxpr9c] .doc-grid .dxbl-grid-data-cell {
    font-size: 0.78rem;
}

[b-davloxpr9c] .doc-grid .dxbl-grid-header-cell {
    font-weight: 600;
}

/* ==========================================================================
   Anteprima PDF (DxPopup + DxPdfViewer)
   ========================================================================== */

/* Su mobile il popup deve riempire la viewport per usare bene lo schermo.
   ::deep necessario perche il root .dxbl-popup e fuori dal contenuto scoped. */
[b-davloxpr9c] .doc-pdf-popup .dxbl-popup-content {
    padding: 0;
}

@media (max-width: 768px) {
    [b-davloxpr9c] .doc-pdf-popup {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
    }
}

/* Body del popup = toolbar in alto + viewer che riempie il resto.
   Tutta in column con min-height:0 affinche il viewer prenda l'altezza disponibile
   senza spingere la toolbar fuori. */
.doc-pdf-popup-body[b-davloxpr9c] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #f1f5f9;
}

.doc-pdf-popup-toolbar[b-davloxpr9c] {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #e5e9f2;
}

.doc-pdf-popup-viewer-wrap[b-davloxpr9c] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

[b-davloxpr9c] .doc-pdf-popup-viewer-wrap > .doc-pdf-viewer,
[b-davloxpr9c] .doc-pdf-popup-viewer-wrap .dxbl-pdf-viewer {
    width: 100%;
    height: 100%;
}

/* Mobile: la toolbar diventa piu compatta; ridotti i target touch alle
   dimensioni minime accessibili (~44px), bottoni a tutta larghezza */
@media (max-width: 520px) {
    .doc-pdf-popup-toolbar[b-davloxpr9c] {
        padding: 6px 8px;
    }
    [b-davloxpr9c] .doc-pdf-popup-scarica,
    [b-davloxpr9c] .doc-pdf-popup-chiudi {
        flex: 1 1 0;
    }
}
/* /Components/Orders/DocumentiPartiteDrawer.razor.rz.scp.css */
/* ==========================================================================
   DocumentiPartiteDrawer
   Drawer off-canvas mobile-friendly per visualizzare / scaricare / inviare i
   documenti delle partite selezionate. Stesso stile di EstrattoContoPanel.
   ========================================================================== */

.ec-overlay[b-4nm8zyw3qd] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    z-index: 1040;
    pointer-events: none;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.ec-overlay.open[b-4nm8zyw3qd] {
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.ec-drawer[b-4nm8zyw3qd] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100vw);
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    box-shadow: -16px 0 30px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.ec-drawer.open[b-4nm8zyw3qd] {
    transform: translateX(0);
}

.ec-drawer-inner[b-4nm8zyw3qd] {
    position: relative; /* contenitore di riferimento per .ec-busy-overlay (position: absolute) */
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ----- Header ----- */
.ec-header[b-4nm8zyw3qd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px 20px;
    background: linear-gradient(135deg, #2e3a8c 0%, #4f6bff 100%);
    color: #fff;
    flex-shrink: 0;
}

.ec-header-titolo[b-4nm8zyw3qd] {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ec-header-icon[b-4nm8zyw3qd] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-header-icon .oi[b-4nm8zyw3qd] {
    font-size: 22px;
}

.ec-header-text[b-4nm8zyw3qd] {
    min-width: 0;
}

.ec-titolo[b-4nm8zyw3qd] {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
}

.ec-sottotitolo[b-4nm8zyw3qd] {
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.92);
}

.ec-close-btn[b-4nm8zyw3qd] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.ec-close-btn:hover[b-4nm8zyw3qd] {
    background: rgba(255, 255, 255, 0.28);
}

.ec-close-btn:active[b-4nm8zyw3qd] {
    transform: scale(0.94);
}

.ec-close-btn .oi[b-4nm8zyw3qd] {
    font-size: 18px;
}

/* ----- Card cliente ----- */
.ec-cliente-card[b-4nm8zyw3qd] {
    margin: 16px 20px 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e9f2;
    flex-shrink: 0;
}

.ec-cliente-row[b-4nm8zyw3qd] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-cliente-badge[b-4nm8zyw3qd] {
    background: #1f2a44;
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.ec-cliente-nome[b-4nm8zyw3qd] {
    font-weight: 700;
    color: #1f2a44;
    font-size: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-cliente-info[b-4nm8zyw3qd] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #5b6b85;
    font-size: 0.85rem;
}

.ec-cliente-info .oi[b-4nm8zyw3qd] {
    font-size: 12px;
    color: #7a8aa8;
}

/* ----- Body ----- */
.ec-body[b-4nm8zyw3qd] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ec-field[b-4nm8zyw3qd] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ec-label[b-4nm8zyw3qd] {
    font-weight: 600;
    color: #1f2a44;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 0;
}

.ec-label .oi[b-4nm8zyw3qd] {
    color: #4f6bff;
    font-size: 14px;
}

.ec-hint[b-4nm8zyw3qd] {
    color: #6b7a90;
    font-size: 0.75rem;
    margin-top: 2px;
}

[b-4nm8zyw3qd] .ec-input {
    width: 100%;
}

[b-4nm8zyw3qd] .ec-input .dxbl-edit-content {
    min-height: 46px;
    font-size: 1rem;
}

/* Memo multilinea: altezza compatta, resize verticale lasciato all'utente se serve piu spazio. */
[b-4nm8zyw3qd] .ec-memo .dxbl-edit-content {
    min-height: 90px;
    font-size: 0.9rem;
    line-height: 1.3;
}

[b-4nm8zyw3qd] .ec-memo textarea {
    resize: vertical;
    min-height: 80px;
}

/* ----- Alert / messaggi ----- */
.ec-alert[b-4nm8zyw3qd] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.ec-alert .oi[b-4nm8zyw3qd] {
    margin-top: 2px;
    font-size: 14px;
}

.ec-alert-error[b-4nm8zyw3qd] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ec-alert-success[b-4nm8zyw3qd] {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ec-alert-info[b-4nm8zyw3qd] {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

/* Banner specifico per "SMTP non configurato": piu compatto, icona warning */
.ec-alert-smtp .oi[b-4nm8zyw3qd] { color: #b45309; }
.ec-alert-smtp strong[b-4nm8zyw3qd] { font-weight: 700; }

/* ----- Overlay di attesa (sopra a tutto, NON occupa spazio nel layout) ----- */
.ec-busy-overlay[b-4nm8zyw3qd] {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: ec-busy-fade-in-b-4nm8zyw3qd 0.18s ease-out;
}

@keyframes ec-busy-fade-in-b-4nm8zyw3qd {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ec-busy-card[b-4nm8zyw3qd] {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    max-width: 80%;
    border: 1px solid #e5e9f2;
}

.ec-busy-spinner[b-4nm8zyw3qd] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #e0e6f1;
    border-top-color: #4f6bff;
    animation: ec-busy-spin-b-4nm8zyw3qd 0.9s linear infinite;
}

@keyframes ec-busy-spin-b-4nm8zyw3qd {
    to { transform: rotate(360deg); }
}

.ec-busy-text[b-4nm8zyw3qd] {
    font-size: 0.95rem;
    color: #1f2a44;
    font-weight: 600;
    text-align: center;
}

/* ----- Pulsanti azione ----- */
.ec-actions[b-4nm8zyw3qd] {
    flex-shrink: 0;
    padding: 14px 16px 20px 16px;
    background: #ffffff;
    border-top: 1px solid #e5e9f2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.06);
}

.ec-action-btn[b-4nm8zyw3qd] {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 60px;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    font-size: 0.95rem;
}

.ec-action-btn .oi[b-4nm8zyw3qd] {
    font-size: 22px;
    flex-shrink: 0;
}

.ec-action-btn .ec-action-text[b-4nm8zyw3qd] {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.ec-action-btn .ec-action-text strong[b-4nm8zyw3qd] {
    font-weight: 700;
    font-size: 1rem;
}

.ec-action-btn .ec-action-text small[b-4nm8zyw3qd] {
    font-size: 0.78rem;
    opacity: 0.92;
}

.ec-action-btn:hover:not(:disabled)[b-4nm8zyw3qd] {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.ec-action-btn:active:not(:disabled)[b-4nm8zyw3qd] {
    transform: translateY(0) scale(0.99);
}

.ec-action-btn:disabled[b-4nm8zyw3qd] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.ec-action-view[b-4nm8zyw3qd] {
    background: linear-gradient(135deg, #4f6bff 0%, #6c84ff 100%);
}

.ec-action-download[b-4nm8zyw3qd] {
    background: linear-gradient(135deg, #0ea371 0%, #10b981 100%);
}

.ec-action-mail[b-4nm8zyw3qd] {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

/* ==========================================================================
   Anteprima PDF (DxPopup + DxPdfViewer) - layout interno del popup.
   Gli stili di posizionamento (z-index, hide ConnectionStatusIndicator) sono globali in site.css.
   ========================================================================== */

[b-4nm8zyw3qd] .doc-pdf-popup .dxbl-popup-content {
    padding: 0;
}

@media (max-width: 768px) {
    [b-4nm8zyw3qd] .doc-pdf-popup {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
    }
}

.doc-pdf-popup-body[b-4nm8zyw3qd] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #f1f5f9;
}

.doc-pdf-popup-toolbar[b-4nm8zyw3qd] {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #e5e9f2;
}

.doc-pdf-popup-viewer-wrap[b-4nm8zyw3qd] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

[b-4nm8zyw3qd] .doc-pdf-popup-viewer-wrap > .doc-pdf-viewer,
[b-4nm8zyw3qd] .doc-pdf-popup-viewer-wrap .dxbl-pdf-viewer {
    width: 100%;
    height: 100%;
}

@media (max-width: 520px) {
    .doc-pdf-popup-toolbar[b-4nm8zyw3qd] {
        padding: 6px 8px;
    }
    [b-4nm8zyw3qd] .doc-pdf-popup-scarica,
    [b-4nm8zyw3qd] .doc-pdf-popup-chiudi {
        flex: 1 1 0;
    }
}

/* ----- Mobile fine-tuning ----- */
@media (max-width: 520px) {
    .ec-drawer[b-4nm8zyw3qd] {
        width: 100vw;
    }

    .ec-header[b-4nm8zyw3qd] {
        padding: 16px 16px 14px 16px;
    }

    .ec-titolo[b-4nm8zyw3qd] {
        font-size: 1.1rem;
    }

    .ec-cliente-card[b-4nm8zyw3qd] {
        margin: 12px 14px 0 14px;
    }

    .ec-body[b-4nm8zyw3qd] {
        padding: 14px 14px;
        gap: 14px;
    }

    .ec-actions[b-4nm8zyw3qd] {
        padding: 12px 12px 18px 12px;
    }

    .ec-action-btn[b-4nm8zyw3qd] {
        min-height: 64px;
    }
}
/* /Components/Orders/DropdownDettaglioArticolo.razor.rz.scp.css */
/* Stili per il componente DropdownDettaglioArticolo */

[b-r306vihwk9] .dropdown-dettaglio-articolo {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    max-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
}

.dettaglio-articolo-content[b-r306vihwk9] {
    padding: 1rem;
    max-height: 380px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.dettaglio-header[b-r306vihwk9] {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    max-width: 100%;
}

.dettaglio-immagine[b-r306vihwk9] {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.dettaglio-immagine .img-articolo[b-r306vihwk9] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Miniatura cliccabile -> apre la scheda catalogo */
.dettaglio-immagine.clickable[b-r306vihwk9] {
    cursor: pointer;
    position: relative;
}

.dettaglio-immagine.clickable:hover .img-articolo[b-r306vihwk9] {
    filter: brightness(0.92);
}

.dettaglio-immagine .img-zoom-hint[b-r306vihwk9] {
    position: absolute;
    right: 3px;
    bottom: 3px;
    background: rgba(13, 110, 253, 0.85);
    color: #fff;
    border-radius: 6px;
    padding: 2px 4px;
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.dettaglio-immagine.clickable:hover .img-zoom-hint[b-r306vihwk9] {
    opacity: 1;
}

.img-placeholder[b-r306vihwk9] {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    color: #adb5bd;
}

.img-placeholder .oi[b-r306vihwk9] {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
}

.img-placeholder small[b-r306vihwk9] {
    font-size: 0.6rem;
    text-align: center;
}

.dettaglio-titolo[b-r306vihwk9] {
    flex: 1;
    min-width: 0; /* Permette al testo di andare a capo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.dettaglio-titolo h6[b-r306vihwk9] {
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dettaglio-info-grid[b-r306vihwk9] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.info-item[b-r306vihwk9] {
    display: flex;
    flex-direction: column;
    padding: 0.4rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    min-width: 0;
    overflow: hidden;
}

.info-item.info-item-full[b-r306vihwk9] {
    grid-column: span 2;
}

.info-item label[b-r306vihwk9] {
    font-size: 0.65rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.info-item .info-value[b-r306vihwk9] {
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-item .info-value.prezzo[b-r306vihwk9] {
    font-size: 1rem;
    font-weight: 700;
    color: #198754;
}

.dettaglio-note[b-r306vihwk9] {
    margin-top: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.dettaglio-note label[b-r306vihwk9] {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

[b-r306vihwk9] .note-richedit {
    height: 100px;
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

[b-r306vihwk9] .note-memo {
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
}

/* Sezione lotti e scadenze */
.dettaglio-lotti[b-r306vihwk9] {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.dettaglio-lotti h6[b-r306vihwk9] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
}

.lotti-grid-container[b-r306vihwk9] {
    max-height: 180px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

[b-r306vihwk9] .grid-lotti-compatta {
    width: 100%;
    max-width: 100%;
}

[b-r306vihwk9] .grid-lotti-compatta .dxbl-grid-table {
    font-size: 0.75rem;
    table-layout: fixed;
    width: 100%;
}

[b-r306vihwk9] .grid-lotti-compatta .dxbl-grid-header-cell {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.3rem 0.4rem;
    font-size: 0.7rem;
}

[b-r306vihwk9] .grid-lotti-compatta .dxbl-grid-table tbody td {
    padding: 0.25rem 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Descrizione HTML (proiezione dell'RTF) e nota semplice */
.descrizione-html[b-r306vihwk9] {
    font-size: 0.85rem;
    color: #212529;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.descrizione-html img[b-r306vihwk9] {
    max-width: 100%;
    height: auto;
}

.descrizione-html table[b-r306vihwk9] {
    max-width: 100%;
}

.note-plain[b-r306vihwk9] {
    font-size: 0.85rem;
    color: #212529;
    white-space: pre-wrap;
    word-wrap: break-word;
}
/* /Components/Orders/DropdownStoricoArticolo.razor.rz.scp.css */
/* Stili per il componente DropdownStoricoArticolo */

[b-deubritw53] .dropdown-storico-articolo {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    width: 400px;
    max-width: 90vw;
    /* Fix per posizionamento su mobile */
    position: fixed !important;
}

.dropdown-storico-header[b-deubritw53] {
    padding: 0.75rem 1rem;
    background-color: #17a2b8;
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.dropdown-storico-header h6[b-deubritw53] {
    font-weight: 600;
}

.storico-content[b-deubritw53] {
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}

[b-deubritw53] .grid-storico-dropdown {
    font-size: 0.85rem;
}

[b-deubritw53] .grid-storico-dropdown .dxbl-grid-header-cell {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.5rem;
}

[b-deubritw53] .grid-storico-dropdown .dxbl-grid-table tbody td {
    padding: 0.4rem 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    [b-deubritw53] .dropdown-storico-articolo {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        left: 10px !important;
        right: 10px !important;
        margin: 0 auto !important;
    }

    .dropdown-storico-header[b-deubritw53] {
        padding: 0.5rem 0.75rem;
    }

    .dropdown-storico-header h6[b-deubritw53] {
        font-size: 0.9rem;
    }

    .storico-content[b-deubritw53] {
        max-height: 300px;
        padding: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    [b-deubritw53] .grid-storico-dropdown {
        font-size: 0.75rem;
        width: 100%;
        min-width: 440px;
    }

    [b-deubritw53] .grid-storico-dropdown .dxbl-grid-header-cell,
    [b-deubritw53] .grid-storico-dropdown .dxbl-grid-table tbody td {
        white-space: nowrap;
        padding: 0.3rem 0.4rem;
    }

    /* Forza lo scroll orizzontale per la griglia */
    [b-deubritw53] .grid-storico-dropdown .dxbl-grid-table-container {
        overflow-x: auto !important;
    }
}
/* /Components/Orders/EstrattoContoPanel.razor.rz.scp.css */
/* ==========================================================================
   EstrattoContoPanel
   Drawer off-canvas mobile-friendly per la generazione PDF estratto conto.
   ========================================================================== */

.ec-overlay[b-3b2mz78u0v] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    z-index: 1040;
    pointer-events: none;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.ec-overlay.open[b-3b2mz78u0v] {
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.ec-drawer[b-3b2mz78u0v] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100vw);
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    box-shadow: -16px 0 30px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.ec-drawer.open[b-3b2mz78u0v] {
    transform: translateX(0);
}

.ec-drawer-inner[b-3b2mz78u0v] {
    position: relative; /* contenitore di riferimento per .ec-busy-overlay (position: absolute) */
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ----- Header ----- */
.ec-header[b-3b2mz78u0v] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px 20px;
    background: linear-gradient(135deg, #2e3a8c 0%, #4f6bff 100%);
    color: #fff;
    flex-shrink: 0;
}

.ec-header-titolo[b-3b2mz78u0v] {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ec-header-icon[b-3b2mz78u0v] {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-header-icon .oi[b-3b2mz78u0v] {
    font-size: 22px;
}

.ec-header-text[b-3b2mz78u0v] {
    min-width: 0;
}

.ec-titolo[b-3b2mz78u0v] {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
}

.ec-sottotitolo[b-3b2mz78u0v] {
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.92);
}

.ec-close-btn[b-3b2mz78u0v] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.ec-close-btn:hover[b-3b2mz78u0v] {
    background: rgba(255, 255, 255, 0.28);
}

.ec-close-btn:active[b-3b2mz78u0v] {
    transform: scale(0.94);
}

.ec-close-btn .oi[b-3b2mz78u0v] {
    font-size: 18px;
}

/* ----- Card cliente ----- */
.ec-cliente-card[b-3b2mz78u0v] {
    margin: 16px 20px 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e9f2;
    flex-shrink: 0;
}

.ec-cliente-row[b-3b2mz78u0v] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-cliente-badge[b-3b2mz78u0v] {
    background: #1f2a44;
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
}

/* Badge PF/PV: indica visivamente il tipo cliente
   - PF = Punto Fattura (cliente che riceve fatture per altri punti vendita)
   - PV = Punto Vendita (cliente standard)
   Colori scelti per essere subito riconoscibili e differenziabili dal badge codice. */
.ec-tipo-badge[b-3b2mz78u0v] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: help;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.ec-tipo-pf[b-3b2mz78u0v] {
    /* viola = PF: cliente "padre" che fattura per altri */
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
}

.ec-tipo-pv[b-3b2mz78u0v] {
    /* azzurro = PV: cliente standard */
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
}

.ec-cliente-nome[b-3b2mz78u0v] {
    font-weight: 700;
    color: #1f2a44;
    font-size: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-cliente-info[b-3b2mz78u0v] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #5b6b85;
    font-size: 0.85rem;
}

.ec-cliente-info .oi[b-3b2mz78u0v] {
    font-size: 12px;
    color: #7a8aa8;
}

/* ----- Body ----- */
.ec-body[b-3b2mz78u0v] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ec-field[b-3b2mz78u0v] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Riga con due campi affiancati (es. Da data / A data). Sotto i 420px va in colonna. */
.ec-field-row[b-3b2mz78u0v] {
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.ec-field-half[b-3b2mz78u0v] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 420px) {
    .ec-field-row[b-3b2mz78u0v] {
        flex-direction: column;
    }
}

/* Check "Fatture mie": pill compatto con icona + descrizione secondaria */
.ec-field-check[b-3b2mz78u0v] {
    background: #f1f5fe;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 10px 12px;
}

[b-3b2mz78u0v] .ec-checkbox .dxbl-checkbox-content {
    font-size: 0.92rem;
    color: #1e1b4b;
    font-weight: 600;
}

[b-3b2mz78u0v] .ec-checkbox .oi {
    color: #4f46e5;
    margin-right: 4px;
}

.ec-checkbox-hint[b-3b2mz78u0v] {
    display: block;
    font-size: 0.74rem;
    color: #4338ca;
    font-weight: 400;
    margin-top: 2px;
}

.ec-label[b-3b2mz78u0v] {
    font-weight: 600;
    color: #1f2a44;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 0;
}

.ec-label .oi[b-3b2mz78u0v] {
    color: #4f6bff;
    font-size: 14px;
}

.ec-hint[b-3b2mz78u0v] {
    color: #6b7a90;
    font-size: 0.75rem;
    margin-top: 2px;
}

[b-3b2mz78u0v] .ec-combo,
[b-3b2mz78u0v] .ec-input {
    width: 100%;
}

[b-3b2mz78u0v] .ec-combo .dxbl-edit-content,
[b-3b2mz78u0v] .ec-input .dxbl-edit-content {
    min-height: 46px;
    font-size: 1rem;
}

/* Memo multilinea: altezza compatta, resize verticale lasciato all'utente se serve piu spazio. */
[b-3b2mz78u0v] .ec-memo .dxbl-edit-content {
    min-height: 90px;
    font-size: 0.9rem;
    line-height: 1.3;
}

[b-3b2mz78u0v] .ec-memo textarea {
    resize: vertical;
    min-height: 80px;
}

/* ----- Alert / messaggi ----- */
.ec-alert[b-3b2mz78u0v] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.ec-alert .oi[b-3b2mz78u0v] {
    margin-top: 2px;
    font-size: 14px;
}

.ec-alert-error[b-3b2mz78u0v] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ec-alert-success[b-3b2mz78u0v] {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ec-alert-info[b-3b2mz78u0v] {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

/* Banner specifico per "SMTP non configurato": piu compatto, icona warning */
.ec-alert-smtp .oi[b-3b2mz78u0v] { color: #b45309; }
.ec-alert-smtp strong[b-3b2mz78u0v] { font-weight: 700; }

/* ----- Overlay di attesa (sopra a tutto, NON occupa spazio nel layout) ----- */
.ec-busy-overlay[b-3b2mz78u0v] {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: ec-busy-fade-in-b-3b2mz78u0v 0.18s ease-out;
}

@keyframes ec-busy-fade-in-b-3b2mz78u0v {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ec-busy-card[b-3b2mz78u0v] {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    max-width: 80%;
    border: 1px solid #e5e9f2;
}

.ec-busy-spinner[b-3b2mz78u0v] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #e0e6f1;
    border-top-color: #4f6bff;
    animation: ec-busy-spin-b-3b2mz78u0v 0.9s linear infinite;
}

@keyframes ec-busy-spin-b-3b2mz78u0v {
    to { transform: rotate(360deg); }
}

.ec-busy-text[b-3b2mz78u0v] {
    font-size: 0.95rem;
    color: #1f2a44;
    font-weight: 600;
    text-align: center;
}

/* ----- Pulsanti azione ----- */
.ec-actions[b-3b2mz78u0v] {
    flex-shrink: 0;
    padding: 14px 16px 20px 16px;
    background: #ffffff;
    border-top: 1px solid #e5e9f2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.06);
}

.ec-action-btn[b-3b2mz78u0v] {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 60px;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    font-size: 0.95rem;
}

.ec-action-btn .oi[b-3b2mz78u0v] {
    font-size: 22px;
    flex-shrink: 0;
}

.ec-action-btn .ec-action-text[b-3b2mz78u0v] {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.ec-action-btn .ec-action-text strong[b-3b2mz78u0v] {
    font-weight: 700;
    font-size: 1rem;
}

.ec-action-btn .ec-action-text small[b-3b2mz78u0v] {
    font-size: 0.78rem;
    opacity: 0.92;
}

.ec-action-btn:hover:not(:disabled)[b-3b2mz78u0v] {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.ec-action-btn:active:not(:disabled)[b-3b2mz78u0v] {
    transform: translateY(0) scale(0.99);
}

.ec-action-btn:disabled[b-3b2mz78u0v] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.ec-action-view[b-3b2mz78u0v] {
    background: linear-gradient(135deg, #4f6bff 0%, #6c84ff 100%);
}

.ec-action-download[b-3b2mz78u0v] {
    background: linear-gradient(135deg, #0ea371 0%, #10b981 100%);
}

.ec-action-mail[b-3b2mz78u0v] {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

/* ----- Mobile fine-tuning ----- */
@media (max-width: 520px) {
    .ec-drawer[b-3b2mz78u0v] {
        width: 100vw;
    }

    .ec-header[b-3b2mz78u0v] {
        padding: 16px 16px 14px 16px;
    }

    .ec-titolo[b-3b2mz78u0v] {
        font-size: 1.1rem;
    }

    .ec-cliente-card[b-3b2mz78u0v] {
        margin: 12px 14px 0 14px;
    }

    .ec-body[b-3b2mz78u0v] {
        padding: 14px 14px;
        gap: 14px;
    }

    .ec-actions[b-3b2mz78u0v] {
        padding: 12px 12px 18px 12px;
    }

    .ec-action-btn[b-3b2mz78u0v] {
        min-height: 64px;
    }
}
/* /Components/Orders/GrigliaArticoliDisponibili.razor.rz.scp.css */
/* Stili per il componente GrigliaArticoliDisponibili */

/* Viewport container per le griglie - altezza dinamica con scroll interno */
.grid-viewport[b-cqm1weig0u] {
    min-height: 250px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Forza la griglia a riempire il viewport e gestire lo scroll */
[b-cqm1weig0u] .grid-viewport .dxbl-grid {
    height: 100% !important;
    max-height: 100% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

[b-cqm1weig0u] .grid-viewport .dxbl-grid-wrapper {
    height: 100% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

[b-cqm1weig0u] .grid-viewport .dxbl-grid-table-container {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    min-height: 0;
}

.grid-articoli-disponibili[b-cqm1weig0u] {
    height: 100%;
    max-height: 100%;
    flex: 1;
}

.card[b-cqm1weig0u] {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Testata: titolo a sinistra, a destra i pulsanti di chi sta in testa all'elenco (AI, "Top",
   "Promo", disegnati dalla pagina ordine); se non ci stanno scendono sotto il titolo */
.articoli-testata[b-cqm1weig0u] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.articoli-titolo[b-cqm1weig0u] {
    white-space: nowrap;
}

/* Su telefono il titolo si accorcia ("Articoli (N)") e la testata stringe i margini, così
   titolo e pulsanti stanno su una riga sola (a 384 px; più stretto i pulsanti vanno sotto) */
@media (max-width: 575.98px) {
    .articoli-testata[b-cqm1weig0u] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .articoli-titolo[b-cqm1weig0u] {
        font-size: 1.05rem;
    }

    .articoli-titolo-esteso[b-cqm1weig0u] {
        display: none;
    }
}

.articolo-cell[b-cqm1weig0u] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .articolo-cell:hover[b-cqm1weig0u] {
        background-color: rgba(13, 110, 253, 0.04);
    }

.articolo-header[b-cqm1weig0u] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    /* I badge restano su una riga: se non ci stanno (telefono) si accorcia solo il nome della
       promozione, con i puntini; condizioni, altri badge e freccia per chiudere restano interi */
    .articolo-header > *[b-cqm1weig0u] {
        flex-shrink: 0;
    }

.articolo-codice[b-cqm1weig0u] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Descrizione della riga aperta: per intero, va a capo, mai troncata */
.articolo-descrizione[b-cqm1weig0u] {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.articolo-footer[b-cqm1weig0u] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin-top: 0.15rem;
}

/* "Non lo prende più" (riga aperta) e "Riattiva" (articolo disattivato): nella riga del prezzo,
   a destra, con il verbo scritto; se la riga è stretta scende a capo da solo */
.btn-disattivazione[b-cqm1weig0u] {
    margin-left: auto;
    min-height: 32px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.articolo-prezzo[b-cqm1weig0u] {
    font-size: 1rem;
    font-weight: 700;
    color: #198754;
}

    .articolo-prezzo.prezzo-non-disponibile[b-cqm1weig0u] {
        color: #dc3545;
        opacity: 0.7;
    }

/* Prezzo senza la promozione, barrato accanto al prezzo promozionale (riga aperta) */
.articolo-prezzo-barrato[b-cqm1weig0u] {
    font-size: 0.8rem;
    color: #6c757d;
    text-decoration: line-through;
}

/* === PROMOZIONE ===
   Badge rosa (lo stesso colore del pulsante "Promo"): nella riga chiusa le condizioni ("-10%",
   "10+1", "PROMO" se dà solo il prezzo), nella riga aperta anche il nome */
.badge.badge-promo[b-cqm1weig0u] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    background-color: #d63384;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.articolo-header .badge.badge-promo[b-cqm1weig0u] {
    font-size: 0.7rem;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.badge.badge-promo .oi[b-cqm1weig0u] {
    flex-shrink: 0;
}

.badge-promo-nome[b-cqm1weig0u] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-promo-etichetta[b-cqm1weig0u] {
    flex-shrink: 0;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.25);
}

.articolo-footer-compatto .badge.badge-promo[b-cqm1weig0u] {
    font-size: 0.68rem;
    padding: 0.2rem 0.4rem;
}

/* === QUANTITÀ NEL CARRELLO (riga aperta, tra "-" e "+") ===
   Mostra quanti pezzi dell'articolo ci sono nell'ordine con la causale corrente e si può
   scrivere; sotto, se l'articolo c'è anche con l'altra causale, una nota ("+1 omaggio").
   "-", quantità e "+" non si separano mai */
.qta-stepper[b-cqm1weig0u] {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.4rem;
}

.qta-carrello[b-cqm1weig0u] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    width: 64px;
}

    /* Alta quanto i pulsanti "-" e "+" (--altezza-azione della riga dei pulsanti) e con gli
       stessi angoli, così i tre stanno allineati */
    .qta-carrello[b-cqm1weig0u]  .spin-qta-carrello {
        width: 64px;
        height: var(--altezza-azione, 44px);
        border-radius: 8px;
    }

    .qta-carrello[b-cqm1weig0u]  .spin-qta-carrello-input {
        text-align: center;
        font-size: 1.05rem;
        font-weight: 700;
    }

    /* Articolo nell'ordine: la quantità si vede in verde, come il bordo della riga */
    .qta-carrello.qta-carrello-piena[b-cqm1weig0u]  .spin-qta-carrello {
        border-color: #198754;
        box-shadow: 0 0 0 1px #198754;
    }

    .qta-carrello.qta-carrello-piena[b-cqm1weig0u]  .spin-qta-carrello-input {
        color: #146c43;
    }

.qta-carrello-nota[b-cqm1weig0u] {
    font-size: 0.65rem;
    font-weight: 600;
    color: #b45309;
    white-space: nowrap;
    line-height: 1.1;
}

.articolo-disp[b-cqm1weig0u] {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background-color: #f8f9fa;
}

    .articolo-disp.text-success[b-cqm1weig0u] {
        background-color: rgba(25, 135, 84, 0.1);
    }

    .articolo-disp.text-danger[b-cqm1weig0u] {
        background-color: rgba(220, 53, 69, 0.1);
    }

.articolo-header .badge[b-cqm1weig0u] {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    font-weight: 600;
}

/* Badge AI - Stile con gradiente viola/blu */
.articolo-header .badge.bg-ai[b-cqm1weig0u],
.articolo-footer-compatto .badge.bg-ai[b-cqm1weig0u],
.card-header .badge.bg-ai[b-cqm1weig0u] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    font-weight: 700;
}

.articolo-header .badge.bg-ai-score[b-cqm1weig0u],
.articolo-footer-compatto .badge.bg-ai-score[b-cqm1weig0u] {
    background: linear-gradient(135deg, #9b4dca 0%, #6366f1 100%) !important;
    font-weight: 600;
}

/* Badge AI cliccabile */
.badge-ai-clickable[b-cqm1weig0u] {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    padding: 0.2rem 0.5rem;
}

.badge-ai-clickable:hover[b-cqm1weig0u] {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

/* === LAYOUT ACCORDION: Riga Compatta vs Espansa === */

/* Riga COMPATTA (non selezionata) */
.articolo-cell-compatta[b-cqm1weig0u] {
    padding: 0.2rem 0.5rem;
    border-left: 3px solid transparent;
    gap: 0.1rem;
}

    .articolo-cell-compatta:hover[b-cqm1weig0u] {
        border-left-color: #0d6efd;
    }

/* Prima riga: la descrizione da sola, a tutta larghezza e su una riga sola, così le righe chiuse
   sono tutte alte uguali; quello che non ci sta finisce con i puntini (la riga aperta la mostra
   per intero) */
.articolo-descrizione-compatta[b-cqm1weig0u] {
    font-size: 0.8rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seconda riga: codice, prezzo, disponibilità e, a destra, proposta AI e freccia */
.articolo-footer-compatto[b-cqm1weig0u] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
}

    .articolo-footer-compatto .articolo-codice[b-cqm1weig0u] {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
        white-space: nowrap;
    }

/* Proposta AI (quantità e probabilità) e freccia: restano unite a destra nella riga del prezzo;
   se la riga è stretta scendono a capo insieme */
.articolo-footer-destra[b-cqm1weig0u] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

    .articolo-footer-compatto .articolo-prezzo[b-cqm1weig0u] {
        font-size: 0.8rem;
    }

    .articolo-footer-compatto .articolo-disp[b-cqm1weig0u] {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }

/* Riga ESPANSA (selezionata) */
.articolo-cell-espansa[b-cqm1weig0u] {
    padding: 0.5rem;
    border-left: 3px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.03);
    border-radius: 0 8px 8px 0;
}

    .articolo-cell-espansa:hover[b-cqm1weig0u] {
        background-color: rgba(13, 110, 253, 0.06);
    }

/* Footer Azioni nella riga espansa */
.articolo-azioni-footer[b-cqm1weig0u] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px dashed #dee2e6;
    /* Altezza dei pulsanti della riga, la stessa della casella della quantità */
    --altezza-azione: 44px;
}

    .articolo-azioni-footer .btn-azione[b-cqm1weig0u] {
        width: var(--altezza-azione);
        height: var(--altezza-azione);
    }

    .articolo-azioni-footer .btn-causale[b-cqm1weig0u] {
        width: 52px;
    }

    .articolo-azioni-footer .dropdown-storico-wrapper[b-cqm1weig0u],
    .articolo-azioni-footer .dropdown-dettaglio-wrapper[b-cqm1weig0u] {
        position: relative;
    }

/* Animazione chevron */
.articolo-header .badge .oi-chevron-top[b-cqm1weig0u],
.articolo-header .badge .oi-chevron-bottom[b-cqm1weig0u],
.articolo-footer-compatto .badge .oi-chevron-top[b-cqm1weig0u],
.articolo-footer-compatto .badge .oi-chevron-bottom[b-cqm1weig0u] {
    font-size: 0.6rem;
}

.articolo-senza-giacenza[b-cqm1weig0u] {
    background-color: rgba(255, 0, 0, 0.03) !important;
}

    .articolo-senza-giacenza:hover[b-cqm1weig0u] {
        background-color: rgba(255, 0, 0, 0.06) !important;
    }

    .articolo-senza-giacenza .articolo-descrizione[b-cqm1weig0u] {
        color: #6c757d;
    }

/* === Evidenziazione articoli già presenti nell'ordine === */

/* Stile riga della griglia DxGrid (applicato via OnCustomizeArticoloRow) */
[b-cqm1weig0u] .articolo-in-ordine {
    background-color: rgba(25, 135, 84, 0.06) !important;
}

/* Stile cella interna - bordino verde per articoli già in ordine */
.articolo-in-ordine-cell[b-cqm1weig0u] {
    border: 2px solid #198754 !important;
    border-radius: 6px;
}

    .articolo-in-ordine-cell.articolo-cell-espansa[b-cqm1weig0u] {
        background-color: rgba(25, 135, 84, 0.05);
    }

        .articolo-in-ordine-cell.articolo-cell-espansa:hover[b-cqm1weig0u] {
            background-color: rgba(25, 135, 84, 0.08);
        }

[b-cqm1weig0u] .grid-articoli-disponibili .dxbl-grid-table tbody tr {
    min-height: 80px;
}

[b-cqm1weig0u] .grid-articoli-disponibili .dxbl-grid-table tbody td {
    vertical-align: middle;
    padding: 0.5rem;
}

/* === SEZIONI DELL'ELENCO ===
   Con AI o "Top" accesi l'elenco ha due sezioni: in testa i consigliati AI (o i più acquistati),
   sotto "Altri articoli" con il resto del catalogo. In fondo, in qualunque vista, gli articoli
   che il cliente non prende più ("Non li prende più"), chiusi finché l'agente non li apre. */

/* Riga della griglia che ospita la testata di una sezione (classe da OnCustomizeArticoloRow):
   la testata riempie tutta la cella (!important: il padding delle celle lo impone il tema DevExpress) */
[b-cqm1weig0u] .grid-articoli-disponibili .dxbl-grid-table tbody tr.riga-sezione-elenco > td {
    padding: 0 !important;
}

.sezione-testata[b-cqm1weig0u] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border: 0;
    border-left: 4px solid transparent;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.sezione-titolo[b-cqm1weig0u] {
    white-space: nowrap;
}

/* Nota sull'ordine della sezione ("dal più probabile", "prima i già acquistati") */
.sezione-nota[b-cqm1weig0u] {
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Numero di articoli della sezione */
.sezione-conteggio[b-cqm1weig0u] {
    margin-left: auto;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.08);
    font-size: 0.72rem;
    white-space: nowrap;
}

/* Consigliati AI: tinta del badge AI */
.sezione-ai[b-cqm1weig0u] {
    background-color: #eef0fd;
    border-left-color: #667eea;
    color: #3f3689;
}

/* Più acquistati: tinta del pulsante "Top" */
.sezione-top[b-cqm1weig0u] {
    background-color: #fff6da;
    border-left-color: #ffc107;
    color: #664d03;
}

/* Una promozione: tinta del pulsante "Promo", con il nome e fino a quando vale */
.sezione-promo[b-cqm1weig0u] {
    background-color: #fce7f1;
    border-left-color: #d63384;
    color: #8c1d55;
}

.sezione-icona[b-cqm1weig0u] {
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* Il nome di una promozione può essere lungo: si tronca, il numero di articoli resta in vista */
.sezione-promo .sezione-titolo[b-cqm1weig0u] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sezione-altri[b-cqm1weig0u] {
    background-color: #f1f3f5;
    border-left-color: #adb5bd;
    color: #495057;
}

/* Articoli che il cliente non prende più: tinta tenue di "spento", in fondo all'elenco */
.sezione-disattivati[b-cqm1weig0u] {
    background-color: #fdf0f0;
    border-left-color: #dc3545;
    color: #842029;
}

/* Articolo disattivato per il cliente: si legge ma è spento; aperto mostra "Riattiva" */
.articolo-disattivato-cell .articolo-codice[b-cqm1weig0u],
.articolo-disattivato-cell .articolo-descrizione-compatta[b-cqm1weig0u],
.articolo-disattivato-cell .articolo-disp[b-cqm1weig0u] {
    opacity: 0.65;
}

.articolo-disattivato-cell .articolo-prezzo[b-cqm1weig0u] {
    color: #6c757d;
}

    .articolo-disattivato-cell:hover[b-cqm1weig0u] {
        border-left-color: #dc3545;
    }

.articolo-disattivato-cell.articolo-disattivato-aperto[b-cqm1weig0u] {
    border-left-color: #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

/* "Altri articoli" apribile con un tocco in qualsiasi punto della riga: area comoda per il dito */
.sezione-richiudibile[b-cqm1weig0u] {
    min-height: 44px;
    cursor: pointer;
}

    .sezione-testata.sezione-richiudibile:hover[b-cqm1weig0u] {
        background-color: #e6e9ed;
    }

    .sezione-richiudibile:focus-visible[b-cqm1weig0u] {
        outline: 2px solid #0d6efd;
        outline-offset: -2px;
    }

/* "Altri articoli" chiusa: la riga intera è un pulsante evidente, "Mostra altri N articoli".
   Si tocca tutta la riga (44px, la stessa altezza di prima): l'etichetta dentro ne è solo l'aspetto */
.sezione-mostra-altri[b-cqm1weig0u] {
    display: block;
    width: 100%;
    padding: 0.25rem 0.4rem;
    border: 0;
    background-color: transparent;
}

.sezione-mostra-altri-etichetta[b-cqm1weig0u] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 36px;
    padding: 0 0.75rem;
    border: 1px solid #6c757d;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #343a40;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

    .sezione-mostra-altri:hover .sezione-mostra-altri-etichetta[b-cqm1weig0u],
    .sezione-mostra-altri:active .sezione-mostra-altri-etichetta[b-cqm1weig0u] {
        border-color: #495057;
        background-color: #e9ecef;
    }

/* Pulsante che apre gli articoli che il cliente non prende più: bordo tratteggiato e tinta
   della sezione, per non confonderlo con "Mostra altri articoli" */
.sezione-mostra-disattivati .sezione-mostra-altri-etichetta[b-cqm1weig0u] {
    border-style: dashed;
    border-color: #b02a37;
    background-color: #fdf0f0;
    color: #842029;
}

    .sezione-mostra-disattivati:hover .sezione-mostra-altri-etichetta[b-cqm1weig0u],
    .sezione-mostra-disattivati:active .sezione-mostra-altri-etichetta[b-cqm1weig0u] {
        border-color: #842029;
        background-color: #f8e1e3;
    }

.sezione-testata.sezione-disattivati.sezione-richiudibile:hover[b-cqm1weig0u] {
    background-color: #f8e1e3;
}

/* "Altri articoli" aperta: a destra della testata la scritta che dice cosa fa il tocco */
.sezione-azione[b-cqm1weig0u] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid #6c757d;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #343a40;
    font-size: 0.72rem;
    white-space: nowrap;
}

.sezione-freccia[b-cqm1weig0u] {
    font-size: 0.7rem;
}

/* Su telefono, nella testata aperta di "Altri articoli" non c'è posto per la nota sull'ordine
   accanto a numero e "Nascondi": meglio toglierla che mostrarla troncata */
@media (max-width: 575.98px) {
    .sezione-testata.sezione-richiudibile .sezione-nota[b-cqm1weig0u] {
        display: none;
    }
}

.btn-azione[b-cqm1weig0u] {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

    .btn-azione:hover[b-cqm1weig0u] {
        transform: scale(1.08);
    }

    .btn-azione .oi[b-cqm1weig0u] {
        font-size: 1rem;
    }

/* Pulsante causale compatto */
.btn-causale[b-cqm1weig0u] {
    width: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

    .btn-causale .causale-text[b-cqm1weig0u] {
        font-size: 0.7rem;
        line-height: 1;
    }

.dropdown-dettaglio-wrapper[b-cqm1weig0u], .dropdown-storico-wrapper[b-cqm1weig0u] {
    position: relative;
}

/* Pulsante quantità vendita da fattura (VEN - cliccabile) */
.qta-fattura-btn[b-cqm1weig0u] {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

    .qta-fattura-btn:hover[b-cqm1weig0u] {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(25, 135, 84, 0.4);
    }

/* Badge quantità omaggio da fattura (SCM/OTK - non cliccabile) */
.qta-omaggio-badge[b-cqm1weig0u] {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    cursor: default;
}

/* === SCORRIMENTO RAPIDO ===
   Come nella rubrica dei telefoni Samsung: sul bordo destro una maniglia da trascinare, con
   accanto la bolla che dice la lettera (o la sezione) a cui salta l'elenco, e in basso "Torna su".
   Col dito compaiono mentre l'elenco scorre, col mouse la maniglia è sempre in vista al posto della
   barra di DevExpress. Li mostra e li sposta scorrimento-rapido.js, sempre dentro la parte di
   elenco che si vede (la griglia è più alta dello schermo); qui c'è solo l'aspetto. Nascosti non
   si toccano */
.sr-maniglia[b-cqm1weig0u],
.sr-bolla[b-cqm1weig0u],
.sr-torna-su[b-cqm1weig0u] {
    position: absolute;
    top: 0;
    z-index: 3;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

    .sr-maniglia[data-visibile][b-cqm1weig0u],
    .sr-bolla[data-visibile][b-cqm1weig0u],
    .sr-torna-su[data-visibile][b-cqm1weig0u] {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.15s ease;
    }

/* Maniglia: si prende su un'area larga 36px e alta 56px, si vede come una barretta sul bordo */
.sr-maniglia[b-cqm1weig0u] {
    right: 0;
    width: 36px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 3px;
    touch-action: none; /* il dito trascina la maniglia, non la pagina */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sr-maniglia-barra[b-cqm1weig0u] {
    width: 8px;
    height: 44px;
    border-radius: 4px;
    background-color: var(--bs-primary, #5f368d);
    opacity: 0.6;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
    transition: width 0.15s ease, opacity 0.15s ease;
}

.sr-maniglia[data-trascinata][b-cqm1weig0u] {
    cursor: grabbing;
}

    .sr-maniglia[data-trascinata] .sr-maniglia-barra[b-cqm1weig0u] {
        width: 12px;
        opacity: 1;
    }

/* Bolla: la lettera (o la sezione) a cui salta l'elenco, a sinistra della maniglia mentre la si
   trascina */
.sr-bolla[b-cqm1weig0u] {
    right: 44px;
    max-width: calc(100% - 60px);
    padding: 0.45rem 1rem;
    border-radius: 1.5rem;
    background-color: var(--bs-primary, #5f368d);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

    /* Una lettera sola: cerchio grande, come nella rubrica */
    .sr-bolla[data-lettera][b-cqm1weig0u] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        padding: 0;
        border-radius: 50%;
        font-size: 2rem;
        line-height: 1;
    }

/* "Torna su": pulsante con il verbo scritto, in basso al centro della parte di elenco che si vede */
.sr-torna-su[b-cqm1weig0u] {
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0 1rem;
    border: 1px solid var(--bs-primary, #5f368d);
    border-radius: 20px;
    background-color: #fff;
    color: var(--bs-primary, #5f368d);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
}

    .sr-torna-su:active[b-cqm1weig0u] {
        background-color: #f1ecf7;
    }

/* Col mouse la maniglia è la barra di scorrimento: più stretta, il puntatore è preciso */
@media (pointer: fine) {
    .sr-maniglia[b-cqm1weig0u] {
        width: 18px;
        padding-right: 2px;
    }

        .sr-maniglia:hover .sr-maniglia-barra[b-cqm1weig0u] {
            opacity: 0.9;
        }
}

/* Con lo scorrimento rapido attivo (elenchi lunghi) la barra di DevExpress non serve: col dito è
   sottile e non si prende, col mouse mentre la si trascina la griglia resta bianca finché non la
   si rilascia */
.grid-viewport[data-sr-attivo][b-cqm1weig0u]  .dxbl-scroll-viewer-vert-scroll-bar {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .sr-maniglia[b-cqm1weig0u],
    .sr-bolla[b-cqm1weig0u],
    .sr-torna-su[b-cqm1weig0u],
    .sr-maniglia-barra[b-cqm1weig0u] {
        transition: none !important;
    }
}

@media (max-width: 991px) {
    /* Le griglie su mobile hanno altezza fissa e non flex */
    .grid-viewport[b-cqm1weig0u] {
        flex: none;
    }

    /* Layout accordion su mobile */
    .articolo-cell-compatta[b-cqm1weig0u] {
        padding: 0.15rem 0.35rem;
    }

    .articolo-descrizione-compatta[b-cqm1weig0u] {
        font-size: 0.75rem;
    }

    .articolo-footer-compatto .articolo-codice[b-cqm1weig0u] {
        font-size: 0.65rem;
    }

    .articolo-footer-compatto .articolo-prezzo[b-cqm1weig0u] {
        font-size: 0.75rem;
    }

    .articolo-footer-compatto .articolo-prezzo[b-cqm1weig0u] {
        font-size: 0.85rem;
    }

    .articolo-azioni-footer[b-cqm1weig0u] {
        flex-wrap: wrap;
        gap: 0.4rem;
        padding-top: 0.5rem;
        --altezza-azione: 40px;
    }

        /* Gruppi (dettaglio, causale, quantità) meno distanti che su PC: tutto su una riga */
        .articolo-azioni-footer > .me-4[b-cqm1weig0u] {
            margin-right: 0.6rem !important;
        }

        .articolo-azioni-footer .btn-causale[b-cqm1weig0u] {
            width: 48px;
        }

    .articolo-descrizione[b-cqm1weig0u] {
        font-size: 0.85rem;
    }

    .articolo-prezzo[b-cqm1weig0u] {
        font-size: 0.9rem;
    }

    .btn-azione[b-cqm1weig0u] {
        width: 38px;
        height: 38px;
    }

    .qta-fattura-btn[b-cqm1weig0u], .qta-omaggio-badge[b-cqm1weig0u] {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Telefono: i pulsanti della riga aperta (storico, dettaglio, causale, "-", quantità, "+") stanno su
   una riga sola a 384 px, con i gruppi più vicini e la quantità più stretta; su schermi ancora più
   stretti "-", quantità e "+" vanno a capo insieme. Dopo il blocco sopra, che ha le stesse regole */
@media (max-width: 575.98px) {
    .articolo-azioni-footer > .me-4[b-cqm1weig0u] {
        margin-right: 0.15rem !important;
    }

    .qta-carrello[b-cqm1weig0u],
    .qta-carrello[b-cqm1weig0u]  .spin-qta-carrello {
        width: 56px;
    }
}

/* Responsive - Tablet e Surface Go */
@media (min-width: 768px) and (max-width: 1200px) {
    .grid-viewport[b-cqm1weig0u] {
        min-height: 220px;
    }

    .card-body[b-cqm1weig0u] {
        overflow-x: auto;
    }
}
/* /Components/Orders/GrigliaRigheOrdine.razor.rz.scp.css */
/* Stili per il componente GrigliaRigheOrdine */

/* Viewport container per le griglie - altezza dinamica con scroll interno */
.grid-viewport[b-sa9lceie62] {
    min-height: 250px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Forza la griglia a riempire il viewport e gestire lo scroll */
[b-sa9lceie62] .grid-viewport .dxbl-grid {
    height: 100% !important;
    max-height: 100% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

[b-sa9lceie62] .grid-viewport .dxbl-grid-wrapper {
    height: 100% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

[b-sa9lceie62] .grid-viewport .dxbl-grid-table-container {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    min-height: 0;
}

.grid-righe-ordine[b-sa9lceie62] {
    height: 100%;
    max-height: 100%;
    flex: 1;
}

.card[b-sa9lceie62] {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* === CONTAINER RIGA === */
.riga-container[b-sa9lceie62] {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0.5rem;
    margin: 0.15rem 0;
}

/* === LAYOUT COMPATTO (riga non selezionata) === */
.riga-compatta[b-sa9lceie62] {
    background-color: #fff;
}

    .riga-compatta:hover[b-sa9lceie62] {
        background-color: rgba(25, 135, 84, 0.05);
    }

/* Due righe, alte uguali in tutte le righe chiuse: sopra la descrizione, sotto codice e numeri */
.riga-compatta-content[b-sa9lceie62] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Prima riga: la descrizione da sola, a tutta larghezza e su una riga sola; quello che non ci
   sta finisce con i puntini (la riga aperta la mostra per intero) */
.riga-descrizione-compact[b-sa9lceie62] {
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seconda riga: codice (ed eventuale "OFF") a sinistra, numeri a destra */
.riga-compatta-dettagli[b-sa9lceie62] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

/* Quantità, sconto e imponibile: restano uniti e a destra */
.riga-compatta-numeri[b-sa9lceie62] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.riga-codice-compact[b-sa9lceie62] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* Codice articolo omaggio (SCM/OTK) - stile warning come badge */
.riga-codice-omaggio[b-sa9lceie62] {
    color: #000;
    background-color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.riga-qta-compact[b-sa9lceie62] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.riga-non-disponibile-dot[b-sa9lceie62] {
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 50%;
    flex-shrink: 0;
}

.riga-sconto-compact[b-sa9lceie62] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background-color: #dc3545;
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* Riga in promozione: badge rosa come nell'elenco articoli (sconto promo o "PROMO") */
.badge.riga-promo-badge[b-sa9lceie62] {
    background-color: #d63384;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}

.riga-imponibile-compact[b-sa9lceie62] {
    font-size: 0.9rem;
    font-weight: 700;
    color: #198754;
    white-space: nowrap;
}

/* === LAYOUT ESPANSO (riga selezionata) === */
.riga-espansa[b-sa9lceie62] {
    background-color: rgba(25, 135, 84, 0.08);
    border: 2px solid rgba(25, 135, 84, 0.3);
}

/* Prima riga espansa: la descrizione per intero; sotto codice e badge a sinistra, prezzi a destra */
.riga-espansa-row1[b-sa9lceie62] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(25, 135, 84, 0.15);
    margin-bottom: 0.5rem;
}

.riga-espansa-dettagli[b-sa9lceie62] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

    .riga-espansa-row1 .badge[b-sa9lceie62] {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        margin-right: 0.35rem;
        font-weight: 700;
    }

/* Codice e badge: se non ci stanno vanno a capo tra loro, i prezzi restano a destra */
.riga-espansa-testo[b-sa9lceie62] {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.6;
}

.riga-codice[b-sa9lceie62] {
    display: inline-block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
    padding: 0.15rem 0.4rem;
    margin-right: 0.35rem;
    border-radius: 4px;
    border: 1px solid rgba(25, 135, 84, 0.2);
    white-space: nowrap;
}

/* Descrizione della riga aperta per intero: niente troncamento, va a capo */
.riga-descrizione-espansa[b-sa9lceie62] {
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Prezzi espansa: restano uniti e a destra */
.riga-prezzi-espansa[b-sa9lceie62] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.riga-prezzo-unitario[b-sa9lceie62] {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
}

.riga-sconto-badge[b-sa9lceie62] {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background-color: #dc3545;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.riga-prezzo-scontato[b-sa9lceie62] {
    font-size: 1rem;
    font-weight: 700;
    color: #198754;
}

/* Prezzo omaggio */
.riga-prezzo-omaggio[b-sa9lceie62] {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* === SECONDA RIGA ESPANSA: CONTROLLI === */
.riga-espansa-row2[b-sa9lceie62] {
    display: flex;
    justify-content: center;
}

.riga-controlli-centrati[b-sa9lceie62] {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.riga-input-group[b-sa9lceie62] {
    display: flex;
    flex-direction: column;
    width: 55px;
    flex-shrink: 0;
}

.riga-totale-group[b-sa9lceie62] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    flex-shrink: 0;
}

.input-label[b-sa9lceie62] {
    font-size: 0.55rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.1rem;
    text-align: center;
}

[b-sa9lceie62] .spin-qta-compact,
[b-sa9lceie62] .spin-sconto-compact {
    width: 100%;
}

    [b-sa9lceie62] .spin-qta-compact .dxbl-spin-edit-input,
    [b-sa9lceie62] .spin-sconto-compact .dxbl-spin-edit-input {
        text-align: center;
        font-weight: 600;
        font-size: 0.8rem;
        padding: 0.2rem 0.2rem;
    }

.totale-value[b-sa9lceie62] {
    font-size: 0.9rem;
    font-weight: 700;
    color: #198754;
}

.btn-azione-ordine[b-sa9lceie62] {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .btn-azione-ordine:hover[b-sa9lceie62] {
        transform: scale(1.08);
    }

    .btn-azione-ordine .oi[b-sa9lceie62] {
        font-size: 0.85rem;
    }

/* Wrapper per dropdown storico - posizionamento relativo per il dropdown */
.dropdown-storico-wrapper[b-sa9lceie62] {
    position: relative;
    display: inline-block;
}

/* Rimuovi header colonne dalla griglia */
[b-sa9lceie62] .grid-righe-ordine .dxbl-grid-header-row {
    display: none;
}

[b-sa9lceie62] .grid-righe-ordine .dxbl-grid-table tbody td {
    vertical-align: middle;
    padding: 0.25rem 0.5rem;
}

/* Search Box Ordine - Compatta */
.search-box-container[b-sa9lceie62] {
    width: 100%;
}

[b-sa9lceie62] .search-box-ordine {
    width: 100%;
}

[b-sa9lceie62] .search-box-ordine input {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #212529;
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    height: 32px;
}

[b-sa9lceie62] .search-box-ordine input::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

[b-sa9lceie62] .search-box-ordine input:focus {
    background-color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

[b-sa9lceie62] .search-box-ordine .dxbl-searchbox-clear-btn {
    color: #6c757d;
}

/* Header Ordine Corrente con riepilogo inline */
.ordine-header-info[b-sa9lceie62] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.info-item-header[b-sa9lceie62] {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

    .info-item-header.highlight[b-sa9lceie62] {
        background-color: rgba(255, 255, 255, 0.15);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
    }

.info-label[b-sa9lceie62] {
    opacity: 0.9;
    font-weight: 500;
    font-size: 0.8rem;
}

.info-value[b-sa9lceie62] {
    font-weight: 700;
    font-size: 0.9rem;
}

.info-value-total[b-sa9lceie62] {
  /*  font-weight: 700;
    font-size: 1.1rem;*/
    font-weight: 700;
    font-size: 0.9rem;
}

.ordine-header-empty[b-sa9lceie62] {
    font-size: 0.85rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
}

/* === BADGE CLICCABILI PER INSERIMENTO MASSIVO === */
.badge-inserisci-tutti[b-sa9lceie62] {
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    display: inline-flex;
    align-items: center;
}

    .badge-inserisci-tutti:hover:not(.disabled)[b-sa9lceie62] {
        transform: scale(1.08);
        box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        filter: brightness(1.1);
    }

    .badge-inserisci-tutti:active:not(.disabled)[b-sa9lceie62] {
        transform: scale(0.96);
    }

    .badge-inserisci-tutti.disabled[b-sa9lceie62] {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Badge AI - Stile con gradiente viola/blu */
.card-header .badge.bg-ai[b-sa9lceie62],
.badge-inserisci-tutti.bg-ai[b-sa9lceie62] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 991px) {
    /* Le griglie su mobile hanno altezza fissa e non flex */
    .grid-viewport[b-sa9lceie62] {
        flex: none;
    }

    /* Search box più compatta su mobile */
    [b-sa9lceie62] .search-box-ordine input {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
        height: 30px;
    }

    /* Su mobile header ordine più compatto */
    .ordine-header-info[b-sa9lceie62] {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .info-label[b-sa9lceie62] {
        font-size: 0.7rem;
    }

    .info-value[b-sa9lceie62] {
        font-size: 0.8rem;
    }

    .info-value-total[b-sa9lceie62] {
        font-size: 0.95rem;
    }

    .ordine-header-empty[b-sa9lceie62] {
        font-size: 0.75rem;
    }

    /* Layout compatto su mobile */
    .riga-codice-compact[b-sa9lceie62] {
        font-size: 0.7rem;
    }

    .riga-descrizione-compact[b-sa9lceie62] {
        font-size: 0.8rem;
    }

    .riga-imponibile-compact[b-sa9lceie62] {
        font-size: 0.85rem;
    }

    /* Layout espanso su mobile */
    .riga-descrizione-espansa[b-sa9lceie62] {
        font-size: 0.8rem;
    }

    .riga-prezzo-scontato[b-sa9lceie62] {
        font-size: 0.9rem;
    }

    .btn-azione-ordine[b-sa9lceie62] {
        width: 32px;
        height: 32px;
    }

    .riga-input-group[b-sa9lceie62] {
        width: 50px;
    }

    .riga-totale-group[b-sa9lceie62] {
        width: 60px;
    }

    .riga-controlli-centrati[b-sa9lceie62] {
        gap: 0.4rem;
    }

    .totale-value[b-sa9lceie62] {
        font-size: 0.85rem;
    }
}

/* Responsive - Tablet e Surface Go */
@media (min-width: 768px) and (max-width: 1200px) {
    .grid-viewport[b-sa9lceie62] {
        min-height: 220px;
    }

    .card-body[b-sa9lceie62] {
        overflow-x: auto;
    }

    .ordine-header-info[b-sa9lceie62] {
        gap: 0.6rem;
        font-size: 0.8rem;
    }

    .info-value-total[b-sa9lceie62] {
        font-size: 1rem;
    }
}
/* /Components/Orders/OffertaConfermaPage.razor.rz.scp.css */
/* ========================================
   OFFERTA CONFERMA PAGE (OCL) - Stili specifici componente
   NB: i nomi classe .conferma-* coincidono con ConfermaPage ma, per via dell'isolamento
   CSS di Blazor, gli stili di ConfermaPage NON si applicano qui: vanno ridefiniti.
   ======================================== */

.conferma-page[b-2gvwwrrkar] {
    /* Altezza massima disponibile nel viewport, sottraendo header nav (~50px) e padding */
    height: 100%;
    max-height: calc(100vh - 80px);
    max-height: calc(var(--viewport-vh, 1vh) * 100 - 80px); /* Fix iOS Safari */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative; /* contenitore di riferimento per .ec-busy-overlay (position: absolute) */
}

/* Header con titolo e azioni - sempre visibile in alto */
.conferma-header[b-2gvwwrrkar] {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    z-index: 10;
}

/* Wrapper per contenuto scrollabile verticalmente */
.conferma-content-wrapper[b-2gvwwrrkar] {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Critico per lo scroll in flex */
    padding-bottom: 1rem;
}

.conferma-content[b-2gvwwrrkar] {
    /* Contenitore interno */
}

/* Tabella riepilogo righe offerta */
.ofc-righe-table th[b-2gvwwrrkar] {
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
}

.ofc-righe-table td[b-2gvwwrrkar] {
    vertical-align: middle;
}

/* ----- Overlay di attesa (riusato dal pattern EstrattoContoPanel) ----- */
.ec-busy-overlay[b-2gvwwrrkar] {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: ofc-busy-fade-in-b-2gvwwrrkar 0.18s ease-out;
}

@keyframes ofc-busy-fade-in-b-2gvwwrrkar {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ec-busy-card[b-2gvwwrrkar] {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.ec-busy-spinner[b-2gvwwrrkar] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #e0e6f1;
    border-top-color: #4f6bff;
    animation: ofc-busy-spin-b-2gvwwrrkar 0.9s linear infinite;
}

@keyframes ofc-busy-spin-b-2gvwwrrkar {
    to { transform: rotate(360deg); }
}

.ec-busy-text[b-2gvwwrrkar] {
    font-size: 0.95rem;
    color: #1f2a44;
    font-weight: 600;
    text-align: center;
}

/* Spinner del pulsante Conferma: stesse dimensioni di ConfermaPage (parità visiva) */
.spinner-border-sm[b-2gvwwrrkar] {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive: header impilato su mobile */
@media (max-width: 767px) {
    .conferma-header[b-2gvwwrrkar] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* /Components/Orders/OrdinePage.razor.rz.scp.css */
/* Stili specifici per OrdinePage.razor */
.ordine-page[b-x73lmiqj1h] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding: 1rem;
}

/* NOTE: Gli stili .ordine-header, .entity-info-compact, .entity-nome, .info-tag
   sono ora definiti globalmente in site.css come .page-header-compact */

.ordine-content[b-x73lmiqj1h] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Il contenuto scorre qui dentro: i contenitori di IndexOrders hanno altezza fissa e overflow hidden */
    overflow-y: auto;
    max-height: calc(100vh - 50px);
    /* Assicura che i figli non si sovrappongano */
    gap: 0;
}

    /* Ricerca e filtri - devono avere altezza naturale e non essere sovrapposti */
    .ordine-content > .ordine-filtri[b-x73lmiqj1h] {
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    /* Alert info cliente */
    .ordine-content > .alert[b-x73lmiqj1h] {
        flex-shrink: 0;
    }

    /* Container delle griglie */
    .ordine-content > .row.g-3.mb-3[b-x73lmiqj1h] {
        flex-shrink: 0;
    }

.btn-filtro-disponibili[b-x73lmiqj1h] {
    min-width: 100px;
}

/* Indicatore Filtri Attivi */
.filtri-attivi-indicator[b-x73lmiqj1h] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #664d03;
}

    .filtri-attivi-indicator .oi-filter[b-x73lmiqj1h] {
        color: #856404;
    }

    .filtri-attivi-indicator .badge[b-x73lmiqj1h] {
        font-size: 0.75rem;
        font-weight: 500;
    }

/* Pulsante Azzera Filtri */
.btn-azzera-filtri[b-x73lmiqj1h] {
    min-width: 120px;
}

/* ============================================================================
   RICERCA E FILTRI
   Una riga: la ricerca prende tutto lo spazio che resta, accanto "Disp." e, su telefono e
   tablet, "Filtri", che apre sotto classificazione, fattura e "Azzera". Su PC tutto nella
   stessa riga e "Filtri" non c'è.
   ============================================================================ */
/* stretch: la casella di ricerca prende l'altezza dei pulsanti (comoda al dito) */
.ordine-filtri[b-x73lmiqj1h] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

/* Gli editor DevExpress hanno width:100% di default: nel flex servono basi esplicite, altrimenti
   un editor reclama tutta la riga e gli altri collassano */
.ordine-filtri[b-x73lmiqj1h]  .ordine-filtri-ricerca {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
}

/* Pulsanti della barra: alti come gli editor, con il verbo scritto */
.ordine-filtro-btn[b-x73lmiqj1h] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0 0.7rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    color: #343a40;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .ordine-filtro-btn:hover:not(:disabled)[b-x73lmiqj1h] {
        border-color: #6c757d;
        background-color: #f8f9fa;
    }

    .ordine-filtro-btn:disabled[b-x73lmiqj1h] {
        opacity: 0.45;
        cursor: default;
    }

    .ordine-filtro-btn:focus-visible[b-x73lmiqj1h] {
        outline: 2px solid #0d6efd;
        outline-offset: 1px;
    }

/* "Disp." acceso: verde, come prima */
.ordine-filtro-disp.ordine-filtro-btn-attivo[b-x73lmiqj1h],
.ordine-filtro-disp.ordine-filtro-btn-attivo:hover:not(:disabled)[b-x73lmiqj1h] {
    border-color: #198754;
    background-color: #198754;
    color: #fff;
}

/* "Filtri" con classificazione o fattura scelte: bordo blu e il loro numero */
.ordine-filtro-altri.ordine-filtro-btn-attivo[b-x73lmiqj1h] {
    border-color: #0d6efd;
    background-color: #e7f1ff;
    color: #0a58ca;
}

.ordine-filtro-imbuto[b-x73lmiqj1h] {
    flex-shrink: 0;
}

.ordine-filtro-conteggio[b-x73lmiqj1h] {
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background-color: #0d6efd;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.2rem;
    text-align: center;
}

.ordine-filtro-azzera[b-x73lmiqj1h] {
    color: #dc3545;
}

    .ordine-filtro-azzera:hover:not(:disabled)[b-x73lmiqj1h] {
        border-color: #dc3545;
        background-color: #dc3545;
        color: #fff;
    }

.ordine-filtri-nota[b-x73lmiqj1h] {
    color: #6c757d;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Telefono e tablet: classificazione, fattura e "Azzera" in una riga sotto la ricerca,
   visibile solo quando l'agente la apre con "Filtri"; le due tendine si dividono lo spazio */
.ordine-filtri-secondari[b-x73lmiqj1h] {
    display: none;
    flex: 1 1 100%;
    align-items: stretch;
    gap: 0.4rem;
}

.ordine-filtri-aperti .ordine-filtri-secondari[b-x73lmiqj1h] {
    display: flex;
}

.ordine-filtri-secondari[b-x73lmiqj1h]  .toolbar-combobox-classe,
.ordine-filtri-secondari[b-x73lmiqj1h]  .toolbar-combobox-fattura,
.ordine-filtri-nota[b-x73lmiqj1h] {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
}

.ordine-filtri-nota[b-x73lmiqj1h] {
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PC: tutto nella riga della ricerca (classificazione, fattura, "Disp.", "Azzera" a destra) */
@media (min-width: 992px) {
    .ordine-filtro-altri[b-x73lmiqj1h] {
        display: none;
    }

    .ordine-filtri-secondari[b-x73lmiqj1h],
    .ordine-filtri-aperti .ordine-filtri-secondari[b-x73lmiqj1h] {
        display: contents;
    }

    .ordine-filtri[b-x73lmiqj1h]  .ordine-filtri-ricerca {
        flex: 0 1 320px;
    }

    .ordine-filtri-secondari[b-x73lmiqj1h]  .toolbar-combobox-classe {
        flex: 0 1 190px;
        order: 1;
    }

    .ordine-filtri-secondari[b-x73lmiqj1h]  .toolbar-combobox-fattura,
    .ordine-filtri-nota[b-x73lmiqj1h] {
        flex: 0 1 230px;
        order: 2;
    }

    .ordine-filtro-disp[b-x73lmiqj1h] {
        order: 3;
    }

    .ordine-filtro-azzera[b-x73lmiqj1h] {
        order: 4;
        margin-left: auto;
    }
}

/* ============================================================================
   CHI STA IN TESTA ALL'ELENCO: AI, "Top" e "Promo", nella testata della griglia articoli
   (li disegna questa pagina, quindi gli stili stanno qui). Spenti trasparenti sul colore
   della testata, accesi pieni con i colori di sempre: AI arancio, "Top" giallo, promozioni rosa
   ============================================================================ */
.vista-elenco[b-x73lmiqj1h] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.vista-chip[b-x73lmiqj1h] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    min-height: 32px;
    padding: 0 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .vista-chip:hover:not(:disabled)[b-x73lmiqj1h] {
        background-color: rgba(255, 255, 255, 0.26);
    }

    .vista-chip:disabled[b-x73lmiqj1h] {
        opacity: 0.45;
        cursor: default;
    }

    .vista-chip:focus-visible[b-x73lmiqj1h] {
        outline: 2px solid #fff;
        outline-offset: 1px;
    }

.vista-chip-ai.vista-chip-attivo[b-x73lmiqj1h],
.vista-chip-ai.vista-chip-attivo:hover:not(:disabled)[b-x73lmiqj1h] {
    border-color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
}

.vista-chip-top.vista-chip-attivo[b-x73lmiqj1h],
.vista-chip-top.vista-chip-attivo:hover:not(:disabled)[b-x73lmiqj1h] {
    border-color: #fff;
    background-color: #ffc107;
    color: #212529;
}

/* "Promo" c'è solo con promozioni attive: anche spento ha l'etichetta rosa, perché si noti */
.vista-chip-promo .oi-tag[b-x73lmiqj1h] {
    color: #ffb3d1;
}

.vista-chip-promo.vista-chip-attivo[b-x73lmiqj1h],
.vista-chip-promo.vista-chip-attivo:hover:not(:disabled)[b-x73lmiqj1h] {
    border-color: #fff;
    background-color: #d63384;
    color: #fff;
}

    .vista-chip-promo.vista-chip-attivo .oi-tag[b-x73lmiqj1h] {
        color: #fff;
    }

/* Nome della promozione (se ce n'è una sola): si tronca con i puntini se non ci sta */
.vista-chip-testo[b-x73lmiqj1h] {
    min-width: 0;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vista-chip-conteggio[b-x73lmiqj1h] {
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background-color: #d63384;
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.15rem;
    text-align: center;
}

.vista-chip-promo.vista-chip-attivo .vista-chip-conteggio[b-x73lmiqj1h] {
    background-color: #fff;
    color: #d63384;
}

@media (max-width: 991px) {
    /* Griglie impilate (telefono e tablet in verticale): la pagina non può scorrere perché i
       contenitori di IndexOrders hanno altezza fissa e overflow hidden. Scorre .ordine-content,
       che deve occupare esattamente lo spazio rimasto sotto l'intestazione: se è più alto, il
       fondo della card "Ordine" finisce sotto lo schermo e non si raggiunge. Serve una catena
       flex con min-height: 0 dall'host dei tab in giù (l'host è in IndexOrders.razor.css). */
    .ordine-page[b-x73lmiqj1h] {
        padding: 0.5rem;
        flex: 1 1 auto;
        min-height: 0;
    }

    .ordine-header[b-x73lmiqj1h] {
        flex-shrink: 0;
    }

    .ordine-content[b-x73lmiqj1h] {
        flex: 1 1 auto;
        min-height: 0;
        /* Il max-height della regola base qui non limita mai (lo spazio rimasto è più basso):
           resta come ripiego per i browser senza :has(), dove l'host non passa l'altezza */
    }

    /* Container griglie su mobile: non limitare altezza */
    .ordine-content > .row.g-3.mb-3[b-x73lmiqj1h] {
        flex-shrink: 0;
        height: auto;
    }

    /* Su telefono la barra sta stretta alla griglia */
    .ordine-filtri[b-x73lmiqj1h] {
        margin-bottom: 0.5rem;
    }

    .vista-chip-testo[b-x73lmiqj1h] {
        max-width: 7.5rem;
    }

    /* NOTE: Gli stili responsive per .page-header-compact, .entity-info-compact,
       .entity-nome, .info-tag sono ora in site.css */
}

/* Responsive - Tablet e Surface Go */
@media (min-width: 768px) and (max-width: 1200px) {
    .card-body[b-x73lmiqj1h] {
        overflow-x: auto;
    }
}

/* Il toast di conferma inserimento articolo usa il componente condiviso ToastNotifica */
/* /Components/Orders/PartiteApertePage.razor.rz.scp.css */
/* ========================================
   PARTITE APERTE - Stili specifici componente
   Gli stili base sono definiti in wwwroot/css/site.css
   ======================================== */

.partite-aperte-page[b-uwfkdz6jff] {
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.partite-aperte-content[b-uwfkdz6jff] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Wrapper griglia - usa l'altezza definita dallo stile inline */
.grid-wrapper[b-uwfkdz6jff] {
    flex: 0 0 auto; /* Non cresce, non si riduce - usa l'altezza dallo style inline */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--ml-color-bg-card, #fff);
    border: 1px solid var(--ml-color-border, #e5e7eb);
    border-radius: var(--ml-radius-md, 0.5rem);
    box-shadow: var(--ml-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Footer con statistiche - altezza fissa, SEMPRE visibile */
.partite-footer[b-uwfkdz6jff] {
    flex: 0 0 auto; /* Non cresce, non si riduce */
    flex-shrink: 0; /* Garantisce che non si riduca mai */
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    color: var(--ml-color-text-muted, #6c757d);
    min-height: 36px; /* Altezza minima garantita */
    background-color: inherit; /* Eredita sfondo per visibilità */
}

/* Toolbar specifico partite - estende stile globale */
[b-uwfkdz6jff] .partite-toolbar {
    background-color: transparent !important;
    border: none !important;
}

[b-uwfkdz6jff] .partite-toolbar .dxbl-toolbar-item {
    padding: 0.4rem 0.85rem;
    display: flex;
    align-items: center;
    margin: 0 0.35rem;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #adb5bd;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #495057;
    font-weight: 500;
}

[b-uwfkdz6jff] .partite-toolbar .dxbl-toolbar-item:hover {
    background-color: rgba(73, 80, 87, 0.08);
    border-color: #6c757d;
    transform: translateY(-1px);
    color: #212529;
}

[b-uwfkdz6jff] .partite-toolbar .dxbl-toolbar-item:active {
    transform: translateY(0);
    background-color: rgba(73, 80, 87, 0.12);
    border-color: #495057;
}

[b-uwfkdz6jff] .partite-toolbar .dxbl-toolbar-item [class*="oi-"] {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Griglia partite aperte - occupa tutto lo spazio disponibile */
[b-uwfkdz6jff] .partite-aperte-grid {
    height: 100% !important;
    max-height: 100% !important;
    border: none !important;
    display: flex;
    flex-direction: column;
}

[b-uwfkdz6jff] .partite-aperte-grid .dxbl-grid-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

[b-uwfkdz6jff] .partite-aperte-grid .dxbl-grid-table-container {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: auto;
    min-height: 0;
}

[b-uwfkdz6jff] .partite-aperte-grid .dxbl-grid-header {
    flex-shrink: 0;
    background-color: #f9fafb;
    border-bottom: 1px solid var(--ml-color-border, #e5e7eb);
}

[b-uwfkdz6jff] .partite-aperte-grid .dxbl-grid-header-cell {
    font-weight: 600;
    color: #374151;
}

[b-uwfkdz6jff] .partite-aperte-grid .dxbs-grid-row {
    min-height: 50px;
}

[b-uwfkdz6jff] .partite-aperte-grid .dxbs-grid-data-cell {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}


/* Stile checkbox */
[b-uwfkdz6jff] .partita-checkbox {
    transform: scale(1.3);
    cursor: pointer;
}

[b-uwfkdz6jff] .partita-checkbox .dxbl-checkbox {
    min-height: 36px;
    min-width: 36px;
}

/* Stile righe selezionate */
[b-uwfkdz6jff] .partite-aperte-grid .dxbs-grid-row:has(.partita-checkbox input:checked) {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

[b-uwfkdz6jff] .partite-aperte-grid .dxbs-grid-row:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Stile per righe disabilitate */
.row-disabled[b-uwfkdz6jff] {
    color: #9ca3af !important;
    opacity: 0.6;
}

/* Stile per partite provenienti da un'altra destinazione (Punto Fattura) */
.row-altra-destinazione[b-uwfkdz6jff] {
    color: #b45309 !important;
    font-style: italic;
}

/* ===== FINESTRA INCASSO ===== */
[b-uwfkdz6jff] .incasso-window {
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[b-uwfkdz6jff] .incasso-window .dxbl-window-header {
    background: linear-gradient(135deg, var(--ml-color-primary, #667eea) 0%, var(--ml-color-secondary, #764ba2) 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 1.125rem;
}

[b-uwfkdz6jff] .incasso-window .dxbl-window-body {
    padding: 0;
}

[b-uwfkdz6jff] .incasso-window .dxbl-window-footer {
    padding: 0;
    border-top: 1px solid var(--ml-color-border, #e5e7eb);
    background-color: #f9fafb;
    border-radius: 0 0 12px 12px;
}

.incasso-form[b-uwfkdz6jff] {
    display: flex;
    flex-direction: column;
}

.incasso-form .form-label[b-uwfkdz6jff] {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Display importo totale */
.incasso-totale-display[b-uwfkdz6jff] {
    background: linear-gradient(135deg, var(--ml-color-primary, #667eea) 0%, var(--ml-color-secondary, #764ba2) 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3);
    margin-bottom: 0.5rem;
}

.importo-value[b-uwfkdz6jff] {
    font-size: 2rem;
}

/* Stile ComboBox, DateEdit e SpinEdit */
[b-uwfkdz6jff] .tipo-incasso-combo,
[b-uwfkdz6jff] .data-incasso-edit,
[b-uwfkdz6jff] .importo-incasso-edit {
    width: 100%;
}

[b-uwfkdz6jff] .tipo-incasso-combo .dxbl-edit,
[b-uwfkdz6jff] .data-incasso-edit .dxbl-edit,
[b-uwfkdz6jff] .importo-incasso-edit .dxbl-edit {
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 1rem;
    padding: 0.75rem;
    min-height: 50px;
    transition: all 0.2s;
}

[b-uwfkdz6jff] .tipo-incasso-combo .dxbl-edit:focus,
[b-uwfkdz6jff] .data-incasso-edit .dxbl-edit:focus,
[b-uwfkdz6jff] .importo-incasso-edit .dxbl-edit:focus {
    border-color: var(--ml-color-primary, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

[b-uwfkdz6jff] .importo-incasso-edit input {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

/* Dropdown items */
[b-uwfkdz6jff] .tipo-incasso-combo .dxbl-listbox-item {
    font-size: 1rem;
    padding: 0.875rem 1rem;
    min-height: 48px;
    transition: background-color 0.2s;
}

[b-uwfkdz6jff] .tipo-incasso-combo .dxbl-listbox-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

[b-uwfkdz6jff] .tipo-incasso-combo .dxbl-listbox-item.dxbl-active {
    background-color: rgba(102, 126, 234, 0.2);
    font-weight: 600;
}

/* Alert personalizzato */
.incasso-form .alert-warning[b-uwfkdz6jff] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
}

.incasso-form .alert-danger[b-uwfkdz6jff] {
    background-color: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    color: #991b1b;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .partite-aperte-page[b-uwfkdz6jff] {
        padding: 0.5rem;
    }

    [b-uwfkdz6jff] .incasso-window {
        width: 95% !important;
    }

    .incasso-totale-display[b-uwfkdz6jff] {
        font-size: 1.25rem;
        padding: 1rem;
    }

    .importo-value[b-uwfkdz6jff] {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .incasso-totale-display[b-uwfkdz6jff] {
        font-size: 1rem;
        padding: 0.875rem;
    }

    .importo-value[b-uwfkdz6jff] {
        font-size: 1.25rem;
    }
}
/* /Components/Pages/Admin.razor.rz.scp.css */
/* === Layout pagina Admin (gestione utenti/dispositivi) === */
.pagina[b-dpy63xyxxr] {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fisso[b-dpy63xyxxr] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.contenuto-scroll[b-dpy63xyxxr] {
    flex: 1 1 auto;
    overflow: hidden; /* desktop: scroll interno ai pannelli, non qui */
    min-height: 0;
}

.item2-grid[b-dpy63xyxxr] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    height: 100%;
    min-height: 0;
}

@media (max-width: 800px) {
    .item2-grid[b-dpy63xyxxr] {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.grid-box[b-dpy63xyxxr] {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
    overflow-y: auto;
    min-height: 0;
}

/* === Override MainLayout padding per layout Admin === */
[b-dpy63xyxxr] .main-content-area {
    padding: 0;
    overflow: hidden;
}

/* === Header (Item 1) === */
.index-header[b-dpy63xyxxr] {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
}

.header-content[b-dpy63xyxxr] {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.header-title[b-dpy63xyxxr] {
    margin: 0;
    white-space: nowrap;
    font-size: 1.25rem;
    font-weight: 600;
}

[b-dpy63xyxxr] .db-combobox {
    min-width: 250px;
    max-width: 400px;
}

/* === Gruppo ricarica + timer === */
.header-refresh-group[b-dpy63xyxxr] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-reload[b-dpy63xyxxr] {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-reload:hover[b-dpy63xyxxr] {
    background-color: #e9ecef;
    color: #212529;
}

.btn-reload:disabled[b-dpy63xyxxr] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-reload .spin[b-dpy63xyxxr] {
    animation: spin-b-dpy63xyxxr 0.8s linear infinite;
}

@keyframes spin-b-dpy63xyxxr {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-timer[b-dpy63xyxxr] {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    flex-shrink: 0;
}

.db-item-template[b-dpy63xyxxr] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

.db-item-template svg[b-dpy63xyxxr] {
    color: #6c757d;
    flex-shrink: 0;
}

/* === Pannelli header === */
.panel-header[b-dpy63xyxxr] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.panel-header h5[b-dpy63xyxxr] {
    margin: 0;
    font-weight: 600;
}

/* === Filtri === */
.panel-filters[b-dpy63xyxxr] {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

[b-dpy63xyxxr] .filtro-testo {
    flex: 1;
    min-width: 180px;
}

[b-dpy63xyxxr] .filtro-tipo {
    width: 160px;
    flex-shrink: 0;
}

[b-dpy63xyxxr] .filtro-toggle {
    white-space: nowrap;
}

/* === Lista card utenti === */
.utenti-cards-list[b-dpy63xyxxr] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    flex: 1 1 0%;
    min-height: 0;
}

.utenti-panel[b-dpy63xyxxr] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* === Card utente === */
.utente-card[b-dpy63xyxxr] {
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: max(48px, min-content);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.utente-card:hover[b-dpy63xyxxr] {
    filter: brightness(0.97);
}

.utente-card:active[b-dpy63xyxxr] {
    transform: scale(0.99);
}

.card-attivo[b-dpy63xyxxr] {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.card-in-attesa[b-dpy63xyxxr] {
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.card-sospeso[b-dpy63xyxxr] {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.card-selected[b-dpy63xyxxr] {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.card-top-row[b-dpy63xyxxr] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.card-idfrase[b-dpy63xyxxr] {
    font-family: monospace;
    font-size: 0.7rem;
}

.card-devices-count[b-dpy63xyxxr] {
    font-size: 0.7rem;
}

.card-name[b-dpy63xyxxr] {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.card-badges[b-dpy63xyxxr] {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* === Sezione editing inline (card espansa) === */
.card-edit-section[b-dpy63xyxxr] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-row[b-dpy63xyxxr] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.edit-row > *:not(label)[b-dpy63xyxxr] {
    flex: 1;
    min-width: 0;
}

.edit-row label[b-dpy63xyxxr] {
    min-width: 90px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
    flex-shrink: 0;
}

.readonly-value[b-dpy63xyxxr] {
    font-family: monospace;
    font-size: 0.8rem;
    color: #6c757d;
    word-break: break-all;
}

.edit-row-delete[b-dpy63xyxxr] {
    justify-content: flex-end;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.btn-elimina-utente[b-dpy63xyxxr] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-elimina-utente:hover[b-dpy63xyxxr] {
    background-color: #bb2d3b;
}

.btn-delete-device[b-dpy63xyxxr] {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-delete-device:hover[b-dpy63xyxxr] {
    background-color: #dc3545;
    color: #fff;
}

/* === Pannello dispositivi === */
.devices-panel[b-dpy63xyxxr] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.devices-filter[b-dpy63xyxxr] {
    margin-bottom: 0.75rem;
}

[b-dpy63xyxxr] .devices-grid {
    font-size: 0.9rem;
    flex: 1;
    min-height: 0;
}

/* === Stato vuoto === */
.empty-state[b-dpy63xyxxr] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* === Footer (Item 3) === */
.index-footer[b-dpy63xyxxr] {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    gap: 1rem;
    justify-content: flex-start;
}

.footer-status[b-dpy63xyxxr] {
    font-size: 0.85rem;
    color: #6c757d;
}

/* === Responsive === */
@media (max-width: 800px) {
    /* Layout sovrapposto: il contenuto esterno scrolla normalmente */
    .contenuto-scroll[b-dpy63xyxxr] {
        overflow-y: auto;
    }

    /* Lista utenti: max 6 card visibili, poi scroll interno */
    .utenti-cards-list[b-dpy63xyxxr] {
        max-height: 32rem; /* circa 6 card × ~5rem + gap */
        overflow-y: auto;
        flex: none;
    }

    .index-header[b-dpy63xyxxr] {
        padding: 0.5rem 0.75rem;
    }

    .header-content[b-dpy63xyxxr] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    [b-dpy63xyxxr] .db-combobox {
        width: 100%;
        max-width: 100%;
    }

    .edit-row[b-dpy63xyxxr] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .edit-row label[b-dpy63xyxxr] {
        min-width: unset;
    }
}
/* /Components/Pages/ArticoloDettaglio.razor.rz.scp.css */
.art-page[b-s1cwaa4rgq] {
    --accent: #0d6efd;
    --accent-dark: #0a58ca;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f4f6f9;
    max-width: 920px;
    margin: 0 auto;
    padding: 12px;
    color: var(--ink);
    /* La .main-content-area dello shell è overflow:hidden a altezza fissa: la pagina
       deve abilitare il proprio scroll verticale, altrimenti su smartphone il contenuto
       (immagine grande + dati) viene tagliato e non scorre. */
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Stati (loading / errore) */
.art-state[b-s1cwaa4rgq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 50vh;
    color: var(--muted);
    text-align: center;
}

.art-state-ico[b-s1cwaa4rgq] {
    font-size: 2.2rem;
    color: var(--accent);
}

/* Card principale */
.art-card[b-s1cwaa4rgq] {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(17, 24, 39, .08);
    overflow: hidden;
    border: 1px solid var(--line);
}

/* Immagine */
.art-media[b-s1cwaa4rgq] {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #fafbfc, #eef1f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.art-media img[b-s1cwaa4rgq] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.art-media-ph[b-s1cwaa4rgq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: #b6bcc6;
}

.art-media-ph .oi[b-s1cwaa4rgq] {
    font-size: 2.4rem;
}

/* Info */
.art-info[b-s1cwaa4rgq] {
    padding: 16px;
}

.art-head[b-s1cwaa4rgq] {
    margin-bottom: 14px;
}

.art-cod[b-s1cwaa4rgq] {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--accent-dark);
    background: rgba(13, 110, 253, .10);
    border-radius: 999px;
    padding: .15rem .6rem;
    margin-bottom: .4rem;
}

.art-title[b-s1cwaa4rgq] {
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.art-sub[b-s1cwaa4rgq] {
    color: var(--muted);
    margin: .25rem 0 0;
    font-size: .92rem;
}

/* Specifiche tecniche */
.art-specs[b-s1cwaa4rgq] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 6px;
}

.spec[b-s1cwaa4rgq] {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .5rem .6rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.spec-l[b-s1cwaa4rgq] {
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    font-weight: 600;
}

.spec-v[b-s1cwaa4rgq] {
    font-size: .98rem;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: break-word;
}

.spec-v.pos[b-s1cwaa4rgq] { color: #16a34a; }
.spec-v.neg[b-s1cwaa4rgq] { color: #dc2626; }

/* Sezioni (descrizione, note) */
.art-section[b-s1cwaa4rgq] {
    margin-top: 18px;
}

.art-section > h2[b-s1cwaa4rgq] {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--accent-dark);
    font-weight: 700;
    margin: 0 0 .5rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--line);
}

/* Descrizione: HTML iniettato (MarkupString) -> serve ::deep per stilarne i figli */
.art-html[b-s1cwaa4rgq] {
    font-size: .95rem;
    line-height: 1.5;
    color: var(--ink);
    overflow-wrap: break-word;
}

.art-html[b-s1cwaa4rgq]  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.art-html[b-s1cwaa4rgq]  table {
    max-width: 100%;
    border-collapse: collapse;
}

.art-html[b-s1cwaa4rgq]  td,
.art-html[b-s1cwaa4rgq]  th {
    border: 1px solid var(--line);
    padding: .3rem .5rem;
}

.art-html[b-s1cwaa4rgq]  p { margin: 0 0 .5rem; }
.art-html[b-s1cwaa4rgq]  ul,
.art-html[b-s1cwaa4rgq]  ol { margin: 0 0 .5rem 1.2rem; }

/* Note */
.art-note[b-s1cwaa4rgq] {
    background: var(--bg);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: .6rem .8rem;
    margin: 0 0 .5rem;
    font-size: .92rem;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Desktop / tablet: layout a due colonne */
@media (min-width: 768px) {
    .art-page[b-s1cwaa4rgq] { padding: 24px; }

    .art-card[b-s1cwaa4rgq] {
        display: grid;
        grid-template-columns: 42% 58%;
    }

    .art-media[b-s1cwaa4rgq] {
        height: 100%;
        aspect-ratio: auto;
        min-height: 360px;
    }

    .art-info[b-s1cwaa4rgq] { padding: 24px; }
    .art-title[b-s1cwaa4rgq] { font-size: 1.5rem; }
    .art-specs[b-s1cwaa4rgq] { grid-template-columns: repeat(3, 1fr); }
}
/* /Components/Pages/Counter.razor.rz.scp.css */
.counter-block[b-7lwn17thuz] {
    display: flex;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    flex-direction: column;
    border-radius: 1rem;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    width: 16.875rem;
    height: 17rem;
    position: relative;
}

.counter-block .counter-content[b-7lwn17thuz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.counter-block .counter-count[b-7lwn17thuz] {
    font-size: 7.5rem;
    font-weight: 400;
    line-height: 7.75rem;
}

.counter-block .counter-block-back[b-7lwn17thuz] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bs-body-color, var(--dxds-color-content-neutral-default-rest));
    opacity: 0.05;
    border-radius: 1rem;
    z-index: -2;
}
/* /Components/Pages/Device.razor.rz.scp.css */
.device-page[b-ul35gkeppb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background-color: #f5f5f7;
}

.device-card[b-ul35gkeppb] {
    max-width: 700px;
    width: 100%;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.device-header[b-ul35gkeppb] {
    text-align: center;
    margin-bottom: 2rem;
}

.device-title[b-ul35gkeppb] {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.device-title .oi[b-ul35gkeppb] {
    font-size: 1.5rem;
}

.device-subtitle[b-ul35gkeppb] {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

.device-form[b-ul35gkeppb]  .dxbl-fl-item-caption {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-with-icon[b-ul35gkeppb] {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon[b-ul35gkeppb]  .dxbl-edit {
    flex: 1;
}

.input-end-icon[b-ul35gkeppb] {
    position: absolute;
    right: 12px;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
}

.readonly-field[b-ul35gkeppb]  .dxbl-edit {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.device-button[b-ul35gkeppb] {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.back-button[b-ul35gkeppb] {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

[b-ul35gkeppb] .w-100 {
    width: 100%;
}

.device-footer[b-ul35gkeppb] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Validation messages styling */
[b-ul35gkeppb] .validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .device-card[b-ul35gkeppb] {
        padding: 1.5rem;
    }

    .device-title[b-ul35gkeppb] {
        font-size: 1.5rem;
    }

    .device-subtitle[b-ul35gkeppb] {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .device-page[b-ul35gkeppb] {
        padding: 1rem 0.5rem;
    }

    .device-card[b-ul35gkeppb] {
        padding: 1.25rem;
    }

    .device-title[b-ul35gkeppb] {
        font-size: 1.35rem;
    }
}
/* /Components/Pages/HomeConsegne.razor.rz.scp.css */
/* ==========================================================================
   Home Consegnatario - stile coerente con la dashboard agente (Index.razor)
   ma con palette ARANCIO/AMBRA per differenziare il modulo consegne.
   ========================================================================== */

[b-8rfip3yenc] .consegne-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ========== SEZIONE 1: HEADER CONSEGNATARIO ========== */
[b-8rfip3yenc] .consegne-header {
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.25);
    animation: sectionFadeIn-b-8rfip3yenc 0.5s ease-out backwards;
}

[b-8rfip3yenc] .header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

[b-8rfip3yenc] .header-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

[b-8rfip3yenc] .header-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[b-8rfip3yenc] .header-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

[b-8rfip3yenc] .header-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

[b-8rfip3yenc] .header-meta-item i {
    font-size: 1rem;
}

/* ========== SEZIONE GENERICA ========== */
[b-8rfip3yenc] .consegne-section {
    margin-bottom: 3rem;
    animation: sectionFadeIn-b-8rfip3yenc 0.5s ease-out 0.2s backwards;
}

[b-8rfip3yenc] .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #d97706;
}

@keyframes sectionFadeIn-b-8rfip3yenc {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SEZIONE 2: AZIONI ========== */
[b-8rfip3yenc] .action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

[b-8rfip3yenc] .action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    cursor: pointer;
    animation: cardSlideIn-b-8rfip3yenc 0.4s ease-out backwards;
}

[b-8rfip3yenc] .action-card:nth-child(1) { animation-delay: 0.25s; }
[b-8rfip3yenc] .action-card:nth-child(2) { animation-delay: 0.3s; }
[b-8rfip3yenc] .action-card:nth-child(3) { animation-delay: 0.35s; }
[b-8rfip3yenc] .action-card:nth-child(4) { animation-delay: 0.4s; }
[b-8rfip3yenc] .action-card:nth-child(5) { animation-delay: 0.45s; }

@keyframes cardSlideIn-b-8rfip3yenc {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[b-8rfip3yenc] .action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

[b-8rfip3yenc] .action-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

[b-8rfip3yenc] .action-card-icon i {
    display: block;
}

[b-8rfip3yenc] .action-card-text {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
}

[b-8rfip3yenc] .action-card-desc {
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0.25rem;
    opacity: 0.95;
}

/* Varianti colore action cards - palette consegne (arancio/ambra) */
[b-8rfip3yenc] .action-card-giro {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.85) 0%, rgba(245, 158, 11, 0.85) 100%);
}

/* Cassa: verde (denaro da versare) */
[b-8rfip3yenc] .action-card-cassa {
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.85) 0%, rgba(34, 197, 94, 0.85) 100%);
}

/* Riepiloghi: blu (da consegnare, giri in attesa di conferma e ricevute della sede) */
[b-8rfip3yenc] .action-card-riepiloghi {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.85) 0%, rgba(59, 130, 246, 0.85) 100%);
}

/* Cambio Giro: viola (passaggio di consegne fra consegnatari, colore neutro rispetto a giro/cassa/riepiloghi) */
[b-8rfip3yenc] .action-card-cambio {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.85) 0%, rgba(139, 92, 246, 0.85) 100%);
}

/* Contatore sopra l'icona (consegne ancora da fare, di qualunque giorno) */
[b-8rfip3yenc] .action-card-icon-contatore {
    position: relative;
}

[b-8rfip3yenc] .action-card-contatore {
    position: absolute;
    top: -8px;
    right: -18px;
    min-width: 30px;
    height: 30px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #fff;
    color: #b45309;
    border: 2px solid #fde68a;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 26px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[b-8rfip3yenc] .action-card-danger {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.80) 0%, rgba(231, 76, 60, 0.80) 100%);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    [b-8rfip3yenc] .consegne-container {
        padding: 1rem;
    }

    [b-8rfip3yenc] .consegne-header {
        padding: 1.5rem;
    }

    [b-8rfip3yenc] .header-info {
        flex-direction: column;
        text-align: center;
    }

    [b-8rfip3yenc] .header-meta {
        justify-content: center;
        gap: 0.5rem;
    }

    [b-8rfip3yenc] .header-name {
        font-size: 1.4rem;
    }

    [b-8rfip3yenc] .action-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    [b-8rfip3yenc] .action-card {
        min-height: 140px;
        padding: 1.5rem 1rem;
    }

    [b-8rfip3yenc] .action-card-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    [b-8rfip3yenc] .section-title {
        font-size: 1.4rem;
    }

    [b-8rfip3yenc] .action-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* /Components/Pages/Index.razor.rz.scp.css */
/* ========== DASHBOARD PAGE WRAPPER - Abilita scroll per questa pagina ========== */
.dashboard-page-wrapper[b-bu360ztyhb] {
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* ========== DASHBOARD CONTAINER ========== */
[b-bu360ztyhb] .dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 3rem;
    height: auto;
    min-height: 100%;
    /* Animazione entrata pagina */
    animation: dashboardEnter-b-bu360ztyhb 0.4s ease-out;
}

@keyframes dashboardEnter-b-bu360ztyhb {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SEZIONE 1: HEADER AGENTE ========== */
[b-bu360ztyhb] .dashboard-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    color: white;
    /* Animazione entrata con delay */
    animation: sectionFadeIn-b-bu360ztyhb 0.5s ease-out 0.1s backwards;
}

@keyframes sectionFadeIn-b-bu360ztyhb {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[b-bu360ztyhb] .header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

[b-bu360ztyhb] .header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

[b-bu360ztyhb] .header-details {
    flex: 1;
}

[b-bu360ztyhb] .header-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[b-bu360ztyhb] .header-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

[b-bu360ztyhb] .header-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

[b-bu360ztyhb] .header-meta-item i {
    font-size: 1rem;
}

/* ========== SEZIONE GENERICA ========== */
[b-bu360ztyhb] .dashboard-section {
    margin-bottom: 3rem;
}

/* Animazione per sezione Azioni Rapide */
[b-bu360ztyhb] .dashboard-section:nth-of-type(1) {
    animation: sectionFadeIn-b-bu360ztyhb 0.5s ease-out 0.2s backwards;
}

/* Animazione per sezione KPI Cards */
[b-bu360ztyhb] .dashboard-section:nth-of-type(2) {
    animation: sectionFadeIn-b-bu360ztyhb 0.5s ease-out 0.3s backwards;
}

[b-bu360ztyhb] .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #2c3e50;
}

/* ========== SEZIONE 2: AZIONI RAPIDE ========== */
[b-bu360ztyhb] .action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

[b-bu360ztyhb] .action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    cursor: pointer;
    /* Animazione entrata card */
    animation: cardSlideIn-b-bu360ztyhb 0.4s ease-out backwards;
}

/* Animazioni staggered per ogni card */
[b-bu360ztyhb] .action-card:nth-child(1) { animation-delay: 0.25s; }
[b-bu360ztyhb] .action-card:nth-child(2) { animation-delay: 0.3s; }
[b-bu360ztyhb] .action-card:nth-child(3) { animation-delay: 0.35s; }
[b-bu360ztyhb] .action-card:nth-child(4) { animation-delay: 0.4s; }
[b-bu360ztyhb] .action-card:nth-child(5) { animation-delay: 0.45s; }
[b-bu360ztyhb] .action-card:nth-child(6) { animation-delay: 0.5s; }
[b-bu360ztyhb] .action-card:nth-child(7) { animation-delay: 0.55s; }
[b-bu360ztyhb] .action-card:nth-child(8) { animation-delay: 0.6s; }

@keyframes cardSlideIn-b-bu360ztyhb {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[b-bu360ztyhb] .action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 1;
    transition: opacity 0.3s ease;
}

[b-bu360ztyhb] .action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

[b-bu360ztyhb] .action-card:hover::before {
    opacity: 0.9;
}

[b-bu360ztyhb] .action-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

[b-bu360ztyhb] .action-card-icon i {
    display: block;
}

[b-bu360ztyhb] .action-card-text {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
}

[b-bu360ztyhb] .action-card-desc {
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0.25rem;
    opacity: 0.95;
}

/* Varianti colore per action cards - Palette professionale B2B con trasparenza 20% */
[b-bu360ztyhb] .action-card-primary {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.80) 0%, rgba(52, 152, 219, 0.80) 100%);
}

[b-bu360ztyhb] .action-card-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.80) 0%, rgba(46, 204, 113, 0.80) 100%);
}

[b-bu360ztyhb] .action-card-info {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.80) 0%, rgba(52, 73, 94, 0.80) 100%);
}

[b-bu360ztyhb] .action-card-warning {
    background: linear-gradient(135deg, rgba(211, 84, 0, 0.80) 0%, rgba(230, 126, 34, 0.80) 100%);
}

[b-bu360ztyhb] .action-card-danger {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.80) 0%, rgba(231, 76, 60, 0.80) 100%);
}

[b-bu360ztyhb] .action-card-secondary {
    background: linear-gradient(135deg, rgba(127, 140, 141, 0.80) 0%, rgba(149, 165, 166, 0.80) 100%);
}

[b-bu360ztyhb] .action-card-purple {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.80) 0%, rgba(142, 125, 234, 0.80) 100%);
}

[b-bu360ztyhb] .action-card-teal {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.80) 0%, rgba(26, 188, 156, 0.80) 100%);
}

/* ========== SEZIONE 3: KPI CARDS ========== */
[b-bu360ztyhb] .kpi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

[b-bu360ztyhb] .kpi-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    /* Animazione entrata KPI card */
    animation: kpiCardEnter-b-bu360ztyhb 0.5s ease-out backwards;
}

/* Animazioni staggered per KPI cards */
[b-bu360ztyhb] .kpi-card:nth-child(1) { animation-delay: 0.35s; }
[b-bu360ztyhb] .kpi-card:nth-child(2) { animation-delay: 0.45s; }
[b-bu360ztyhb] .kpi-card:nth-child(3) { animation-delay: 0.55s; }
[b-bu360ztyhb] .kpi-card:nth-child(4) { animation-delay: 0.65s; }

@keyframes kpiCardEnter-b-bu360ztyhb {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[b-bu360ztyhb] .kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: inherit;
}

/* Le card KPI sono da leggere: si sollevano al passaggio del mouse solo quelle che si
   aprono (kpi-card-link), per non far sembrare cliccabili le altre */

[b-bu360ztyhb] .kpi-card-icon {
    font-size: 3rem;
    opacity: 0.85;
    flex-shrink: 0;
}

[b-bu360ztyhb] .kpi-card-icon i {
    display: block;
}

[b-bu360ztyhb] .kpi-card-content {
    flex: 1;
}

[b-bu360ztyhb] .kpi-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

[b-bu360ztyhb] .kpi-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

[b-bu360ztyhb] .kpi-card-amount {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
}

/* Varianti colore per KPI cards - Palette professionale B2B */
[b-bu360ztyhb] .kpi-card-partite::before {
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
}

[b-bu360ztyhb] .kpi-card-partite .kpi-card-icon {
    color: #c0392b;
}

[b-bu360ztyhb] .kpi-card-ordini::before {
    background: linear-gradient(90deg, #2980b9 0%, #3498db 100%);
}

[b-bu360ztyhb] .kpi-card-ordini .kpi-card-icon {
    color: #2980b9;
}

[b-bu360ztyhb] .kpi-card-incassi::before {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}

[b-bu360ztyhb] .kpi-card-incassi .kpi-card-icon {
    color: #27ae60;
}

[b-bu360ztyhb] .kpi-card-visite::before {
    background: linear-gradient(90deg, #d35400 0%, #e67e22 100%);
}

[b-bu360ztyhb] .kpi-card-visite .kpi-card-icon {
    color: #d35400;
}

/* ========== CARD PARTITE APERTE: l'unica che si apre ==========
   Bordo e fondo rossi, numero in rosso, la partita più vecchia in una pillola e in fondo
   un pulsante largo con il verbo scritto ("Vedi le partite"): si capisce che si tocca. */
[b-bu360ztyhb] .kpi-card-link {
    flex-wrap: wrap;
    row-gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 2px solid #f5b7b1;
    background: linear-gradient(160deg, #fff1f0 0%, #ffffff 65%);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.16);
}

[b-bu360ztyhb] .kpi-card-link:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: #e74c3c;
    box-shadow: 0 14px 28px rgba(192, 57, 43, 0.25);
}

[b-bu360ztyhb] .kpi-card-link:active {
    transform: translateY(-1px) scale(0.99);
}

[b-bu360ztyhb] .kpi-card-link:focus-visible {
    outline: 3px solid #e74c3c;
    outline-offset: 3px;
}

[b-bu360ztyhb] .kpi-card-link .kpi-card-label {
    color: #991b1b;
}

[b-bu360ztyhb] .kpi-card-link .kpi-card-value {
    color: #991b1b;
}

[b-bu360ztyhb] .kpi-card-vecchia {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #991b1b;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

[b-bu360ztyhb] .kpi-card-vecchia .oi {
    font-size: 0.7rem;
}

[b-bu360ztyhb] .kpi-card-cta {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
}

/* La freccia del pulsante si muove appena: invita al tocco */
[b-bu360ztyhb] .kpi-card-cta .oi {
    font-size: 0.8rem;
    animation: kpiCtaFreccia-b-bu360ztyhb 1.6s ease-in-out infinite;
}

@keyframes kpiCtaFreccia-b-bu360ztyhb {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

/* Con "riduci animazioni" la freccia rallenta ma non si ferma */
@media (prefers-reduced-motion: reduce) {
    [b-bu360ztyhb] .kpi-card-cta .oi {
        animation-duration: 4s;
    }
}

/* ========== STATI DI CARICAMENTO/ERRORE ========== */
[b-bu360ztyhb] .kpi-loading,
[b-bu360ztyhb] .kpi-error {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[b-bu360ztyhb] .kpi-loading p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

[b-bu360ztyhb] .kpi-error p {
    font-size: 1.125rem;
    color: #dc2626;
    margin: 0;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    [b-bu360ztyhb] .dashboard-container {
        padding: 1.5rem;
    }

    [b-bu360ztyhb] .dashboard-header {
        padding: 1.5rem;
    }

    [b-bu360ztyhb] .header-info {
        flex-direction: column;
        text-align: center;
    }

    [b-bu360ztyhb] .header-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    [b-bu360ztyhb] .header-name {
        font-size: 1.5rem;
    }

    [b-bu360ztyhb] .header-meta {
        justify-content: center;
        gap: 1rem;
    }

    [b-bu360ztyhb] .header-meta-item {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    [b-bu360ztyhb] .section-title {
        font-size: 1.5rem;
    }

    [b-bu360ztyhb] .action-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    [b-bu360ztyhb] .action-card {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }

    [b-bu360ztyhb] .action-card-icon {
        font-size: 2.5rem;
    }

    [b-bu360ztyhb] .action-card-text {
        font-size: 1rem;
    }

    [b-bu360ztyhb] .kpi-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    [b-bu360ztyhb] .kpi-card {
        padding: 1.25rem;
    }

    [b-bu360ztyhb] .kpi-card-icon {
        font-size: 2.5rem;
    }

    [b-bu360ztyhb] .kpi-card-value {
        font-size: 2rem;
    }

    [b-bu360ztyhb] .kpi-card-amount {
        font-size: 1rem;
    }
}

/* Mobile (≤ 576px) */
@media (max-width: 576px) {
    [b-bu360ztyhb] .dashboard-container {
        padding: 1rem;
    }

    [b-bu360ztyhb] .dashboard-header {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    [b-bu360ztyhb] .header-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    [b-bu360ztyhb] .header-name {
        font-size: 1.25rem;
    }

    [b-bu360ztyhb] .header-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    [b-bu360ztyhb] .header-meta-item {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    [b-bu360ztyhb] .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    [b-bu360ztyhb] .action-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    [b-bu360ztyhb] .action-card {
        padding: 1.25rem 0.75rem;
        min-height: 130px;
    }

    [b-bu360ztyhb] .action-card-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    [b-bu360ztyhb] .action-card-text {
        font-size: 0.875rem;
    }

    [b-bu360ztyhb] .kpi-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    [b-bu360ztyhb] .kpi-card {
        padding: 1rem;
        gap: 1rem;
    }

    [b-bu360ztyhb] .kpi-card-icon {
        font-size: 2rem;
    }

    [b-bu360ztyhb] .kpi-card-value {
        font-size: 1.75rem;
    }

    [b-bu360ztyhb] .kpi-card-amount {
        font-size: 0.95rem;
    }
}

/* ========== CARD CLIENTI FUORI FIDO: carta di credito con spilla di avviso ========== */
[b-bu360ztyhb] .action-card-icon-fido {
    position: relative;
    display: inline-flex;
}

[b-bu360ztyhb] .action-card-icon-badge {
    position: absolute;
    top: -0.12em;
    right: -0.32em;
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: #fbbf24;
    color: #7c2d12;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

[b-bu360ztyhb] .action-card-icon-badge i {
    display: block;
    font-size: 0.28em;
    line-height: 1;
}
/* /Components/Pages/IndexOrders.razor.rz.scp.css */
/* Stili per la pagina IndexOrders */
.chi-220[b-d98djcp93x] {
    max-width: 100%;
    /* Layout flex per riempire tutta l'altezza disponibile */
    display: flex;
    flex-direction: column;
    /* Altezza calcolata: viewport - header nav (~50px) - padding main-content-area (~32px) */
    height: calc(100vh - 82px);
    height: calc(var(--viewport-height, 100vh) - 82px); /* Fix iOS Safari */
    min-height: 0; /* Importante per flex shrink */
    overflow: hidden; /* NON scrollare - il contenuto interno (griglia) gestisce lo scroll */
    /* Animazione entrata pagina */
    animation: pageSlideIn-b-d98djcp93x 0.4s ease-out;
}

@keyframes pageSlideIn-b-d98djcp93x {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[b-d98djcp93x] .orders-tabs {
    width: 100%;
    flex-shrink: 0; /* Non comprimere i tabs */
    /* Animazione entrata tabs */
    animation: tabsEnter-b-d98djcp93x 0.5s ease-out 0.1s backwards;
}

@keyframes tabsEnter-b-d98djcp93x {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[b-d98djcp93x] .orders-tabs .dxbl-tab-page {
    font-size: 1rem;
}

[b-d98djcp93x] .orders-tabs .icon {
    margin-right: 0.5rem;
}

/* Container per il contenuto dei tab - occupa tutto lo spazio rimanente */
.orders-content-container[b-d98djcp93x] {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* Importante per flex shrink */
    padding: 0.5rem;
    margin-top: 0.5rem !important; /* Override mt-4 bootstrap */
    /* Animazione per contenuto tab */
    animation: contentFadeSlide-b-d98djcp93x 0.4s ease-out;
}

@keyframes contentFadeSlide-b-d98djcp93x {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - tablet */
@media (min-width: 768px) and (max-width: 1200px) {
    .chi-220[b-d98djcp93x] {
        height: calc(100vh - 70px);
        height: calc(var(--viewport-height, 100vh) - 70px);
    }

    [b-d98djcp93x] .orders-tabs .dxbl-tab-page {
        font-size: 0.95rem;
        padding: 0.5rem;
    }

    .orders-content-container[b-d98djcp93x] {
        padding: 0.5rem;
    }
}

/* Responsive - smartphone */
@media (max-width: 768px) {
    .chi-220[b-d98djcp93x] {
        height: calc(100vh - 60px);
        height: calc(var(--viewport-height, 100vh) - 60px);
    }

    [b-d98djcp93x] .orders-tabs .dxbl-tab-page {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    [b-d98djcp93x] .orders-tabs .icon {
        margin-right: 0.25rem;
    }

    .orders-content-container[b-d98djcp93x] {
        padding: 0.25rem;
        margin-top: 0.25rem !important;
    }
}

/* Responsive - small smartphone */
@media (max-width: 576px) {
    .chi-220[b-d98djcp93x] {
        height: calc(100vh - 50px);
        height: calc(var(--viewport-height, 100vh) - 50px);
    }

    [b-d98djcp93x] .orders-tabs .dxbl-tab-page {
        font-size: 0.8rem;
        padding: 0.35rem;
    }
}

/* Stili per le pagine interne - devono ereditare l'altezza dal container */
.orders-navigation-host[b-d98djcp93x] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* La regola qui sopra non arriva all'host: senza ::deep il CSS isolato vale solo per gli
   elementi di questo componente, e l'host è di OrdersNavigationHost. Con le griglie impilate
   (fino a 991px, come il blocco mobile di OrdinePage.razor.css) la Composizione Ordine scorre
   dentro .ordine-content, quindi l'host le deve passare l'altezza del contenitore. */
@media (max-width: 991px) {
    .orders-content-container[b-d98djcp93x]  .orders-navigation-host:has(> .ordine-page) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
}

/* Override per le pagine interne - devono riempire lo spazio disponibile */
.clienti-page[b-d98djcp93x],
.sospesi-page[b-d98djcp93x],
.ordine-page[b-d98djcp93x],
.conferma-page[b-d98djcp93x] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    padding: 0; /* Rimosso padding, gestito internamente */
    /* Animazione cambio tab */
    animation: tabPageEnter-b-d98djcp93x 0.35s ease-out;
}

@keyframes tabPageEnter-b-d98djcp93x {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.clienti-content[b-d98djcp93x],
.sospesi-content[b-d98djcp93x],
.ordine-content[b-d98djcp93x],
.conferma-content[b-d98djcp93x] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    margin-top: 0; /* Rimosso margin-top */
    /* Animazione contenuto tab */
    animation: tabContentEnter-b-d98djcp93x 0.4s ease-out 0.1s backwards;
}

@keyframes tabContentEnter-b-d98djcp93x {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* /Components/Pages/Login.razor.rz.scp.css */
.login-page[b-5hafvsxxsi] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background-color: #f5f5f7;
}

.login-card[b-5hafvsxxsi] {
    max-width: 700px;
    width: 100%;
    background: var(--bs-body-bg,#fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: 01px 2px rgba(0,0,0,.08);
}

.app-title[b-5hafvsxxsi] {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
}

.login-title[b-5hafvsxxsi] {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.login-form[b-5hafvsxxsi]  .dxbl-fl-item-caption {
    font-weight: 500;
}

.login-links[b-5hafvsxxsi] {
    margin-top: 1.25rem;
}

.register-link[b-5hafvsxxsi] {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.register-link:hover[b-5hafvsxxsi] {
    text-decoration: underline;
}

[b-5hafvsxxsi] .w-100 {
    width: 100%;
}

.login-header[b-5hafvsxxsi] {
    text-align: center;
    margin-bottom: 20px;
}

.login-lock[b-5hafvsxxsi] {
    font-size: 1.8rem; /* grande come il titolo */
    color: #333; /* o il colore che preferisci */
}

/* Input token - stile coerente con DevExpress */
.token-input[b-5hafvsxxsi] {
    height: 36px;
    font-size: .875rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    padding: .375rem .75rem;
    padding-right: 60px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.token-input:focus[b-5hafvsxxsi] {
    border-color: #80bdff;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
    outline: 0;
}

/* Mascheramento tramite CSS - evita autocomplete/password manager del browser */
.token-masked[b-5hafvsxxsi] {
    -webkit-text-security: disc;
    text-security: disc;
    font-family: text-security-disc, serif;
}

/* Pulsante toggle visibilità token */
.token-toggle-btn[b-5hafvsxxsi] {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff !important;
    border: none !important;
    padding: 4px 10px;
    line-height: 1;
    color: #555;
    font-family: inherit;
    cursor: pointer;
}

/* Icona occhio barrata quando il token è mascherato */
.token-eye-off[b-5hafvsxxsi] {
    opacity: 0.5;
    text-decoration: line-through;
}

@media (max-width:576px) {
    .app-title[b-5hafvsxxsi] {
        font-size: 2rem;
    }

    .login-card[b-5hafvsxxsi] {
        padding: 1.25rem;
    }
}
/* /Components/Pages/Register.razor.rz.scp.css */
.register-page[b-5tzmmuc8hu] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background-color: #f5f5f7;
}

.register-card[b-5tzmmuc8hu] {
    max-width: 700px;
    width: 100%;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.register-header[b-5tzmmuc8hu] {
    text-align: center;
    margin-bottom: 2rem;
}

.register-title[b-5tzmmuc8hu] {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
}

.register-subtitle[b-5tzmmuc8hu] {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

.register-form[b-5tzmmuc8hu]  .dxbl-fl-item-caption {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-with-icon[b-5tzmmuc8hu] {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon[b-5tzmmuc8hu]  .dxbl-edit {
    flex: 1;
}

.input-end-icon[b-5tzmmuc8hu] {
    position: absolute;
    right: 12px;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
}

.terms-checkbox[b-5tzmmuc8hu] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.terms-checkbox label[b-5tzmmuc8hu] {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.terms-checkbox a[b-5tzmmuc8hu] {
    color: #0066cc;
    text-decoration: none;
}

.terms-checkbox a:hover[b-5tzmmuc8hu] {
    text-decoration: underline;
}

.register-button[b-5tzmmuc8hu] {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.back-button[b-5tzmmuc8hu] {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

[b-5tzmmuc8hu] .w-100 {
    width: 100%;
}

.register-footer[b-5tzmmuc8hu] {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Validation messages styling */
[b-5tzmmuc8hu] .validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .register-card[b-5tzmmuc8hu] {
        padding: 1.5rem;
    }

    .register-title[b-5tzmmuc8hu] {
        font-size: 1.5rem;
    }

    .register-subtitle[b-5tzmmuc8hu] {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .register-page[b-5tzmmuc8hu] {
        padding: 1rem 0.5rem;
    }

    .register-card[b-5tzmmuc8hu] {
        padding: 1.25rem;
    }

    .register-title[b-5tzmmuc8hu] {
        font-size: 1.35rem;
    }
}
/* /Components/Shared/ApprendimentoAIAnimazione.razor.rz.scp.css */
/* ============================================================================
   Animazione "Apprendimento AI" della home agente: card compatta con il marchio
   MOSE.AI a ingranaggio (vedi ApprendimentoAIAnimazione.razor). Altezza fissa per
   ogni larghezza, così il passaggio dal caricamento allo stato non sposta la pagina.
   ============================================================================ */

/* ========== CARD ========== */
.aia[b-0dpli80cgm] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    height: 104px;
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    overflow: hidden;
    /* Entra subito dopo la barra del titolo, prima delle Azioni Rapide */
    animation: aia-comparsa-b-0dpli80cgm 0.5s ease-out 0.15s backwards;
}

/* Alone tenue dietro il marchio: azzurro al lavoro, grigio a riposo */
.aia--on[b-0dpli80cgm] {
    background: radial-gradient(180px 120px at 58px 50%, rgba(27, 154, 210, 0.12), transparent 70%), #ffffff;
}

.aia--off[b-0dpli80cgm],
.aia--attesa[b-0dpli80cgm] {
    background: radial-gradient(180px 120px at 58px 50%, rgba(159, 182, 204, 0.18), transparent 70%), #ffffff;
}

@keyframes aia-comparsa-b-0dpli80cgm {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aia-scena[b-0dpli80cgm] {
    flex: none;
    width: 84px;
    height: 84px;
}

.aia-svg[b-0dpli80cgm] {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ========== MARCHIO: orbita, ingranaggio, pianeta ========== */
.aia-traccia[b-0dpli80cgm] {
    fill: none;
    stroke: #63A0FF;
    stroke-opacity: 0.55;
    stroke-width: 1.4;
    stroke-dasharray: 3.5 4.5;
    transition: stroke 0.6s ease, stroke-opacity 0.6s ease;
}

.aia-ingranaggio[b-0dpli80cgm] {
    fill: #1B9AD2;
    stroke: #1B9AD2;
    stroke-width: 1.2;
    stroke-linejoin: round;
    /* Ruota attorno al centro del marchio (origine del viewBox) */
    transform-origin: 0 0;
    transition: fill 0.6s ease, stroke 0.6s ease;
}

.aia-orbita[b-0dpli80cgm] {
    transform-origin: 0 0;
}

/* Scia del pianeta, come nel marchio: due puntini che lo seguono */
.aia-scia[b-0dpli80cgm] {
    fill: #FFB870;
    opacity: 0.55;
    transition: opacity 0.4s ease;
}

.aia-scia-lontana[b-0dpli80cgm] {
    opacity: 0.3;
}

/* ========== ATTIVO: l'ingranaggio gira, il pianeta orbita, scintille ========== */
.aia--on .aia-ingranaggio[b-0dpli80cgm] {
    animation: aia-giro-b-0dpli80cgm 9s linear infinite;
}

.aia--on .aia-orbita[b-0dpli80cgm] {
    animation: aia-giro-b-0dpli80cgm 4s linear infinite;
}

@keyframes aia-giro-b-0dpli80cgm {
    to {
        transform: rotate(360deg);
    }
}

.aia-scintille[b-0dpli80cgm] {
    fill: #FFB547;
}

.aia-scintille path[b-0dpli80cgm] {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: aia-scintilla-b-0dpli80cgm 2.4s ease-in-out infinite;
}

.aia-scintille path:nth-of-type(2)[b-0dpli80cgm] {
    animation-delay: 0.8s;
}

.aia-scintille path:nth-of-type(3)[b-0dpli80cgm] {
    animation-delay: 1.6s;
}

@keyframes aia-scintilla-b-0dpli80cgm {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    25% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
    50% {
        transform: scale(0) rotate(90deg);
        opacity: 0;
    }
}

/* ========== IN PAUSA / IN ATTESA: colori spenti ========== */
.aia--off .aia-traccia[b-0dpli80cgm],
.aia--attesa .aia-traccia[b-0dpli80cgm] {
    stroke: #C8D6E3;
    stroke-opacity: 1;
}

.aia--off .aia-ingranaggio[b-0dpli80cgm] {
    fill: #B5C6D6;
    stroke: #B5C6D6;
}

.aia--attesa .aia-ingranaggio[b-0dpli80cgm] {
    fill: #D5E0EA;
    stroke: #D5E0EA;
}

.aia--off .aia-pianeta[b-0dpli80cgm],
.aia--attesa .aia-pianeta[b-0dpli80cgm] {
    fill: #FFD29A;
}

/* In pausa il pianeta è fermo a ore 3, senza scia, e respira piano */
.aia--off .aia-scia[b-0dpli80cgm] {
    opacity: 0;
}

.aia--off .aia-pianeta[b-0dpli80cgm] {
    transform-box: fill-box;
    transform-origin: center;
    animation: aia-respiro-b-0dpli80cgm 4s ease-in-out infinite;
}

@keyframes aia-respiro-b-0dpli80cgm {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* "Zz" che sale dal centro dell'anello */
.aia-zzz[b-0dpli80cgm] {
    fill: none;
    stroke: #7F97AE;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aia-zzz path[b-0dpli80cgm] {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: aia-z-b-0dpli80cgm 3.6s ease-out infinite both;
}

.aia-zzz path:nth-of-type(2)[b-0dpli80cgm] {
    animation-delay: 1.2s;
}

.aia-zzz path:nth-of-type(3)[b-0dpli80cgm] {
    animation-delay: 2.4s;
}

@keyframes aia-z-b-0dpli80cgm {
    0% {
        transform: translate(0, 0) scale(0.4);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    75% {
        opacity: 0.85;
    }
    100% {
        transform: translate(9px, -20px) scale(1);
        opacity: 0;
    }
}

/* In attesa dello stato il pianeta gira come un indicatore di caricamento */
.aia--attesa .aia-orbita[b-0dpli80cgm] {
    animation: aia-giro-b-0dpli80cgm 1.4s linear infinite;
}

/* ========== TESTO ========== */
.aia-testo[b-0dpli80cgm] {
    flex: 1;
    min-width: 0;
}

/* Marchio MOSE•AI in piccolo, come nella nota di aggiornamento */
.aia-marca[b-0dpli80cgm] {
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    line-height: 1;
    color: #5B7590;
    white-space: nowrap;
}

.aia-marca b[b-0dpli80cgm] {
    font-weight: 700;
    color: #17293D;
}

.aia-marca i[b-0dpli80cgm] {
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin: 0 0.32em 0 0.02em;
    border-radius: 50%;
    background: #FF8A1F;
    vertical-align: 0.08em;
}

.aia-titolo[b-0dpli80cgm] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.65rem;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
}

.aia-stato[b-0dpli80cgm] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.62rem 0.22rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.aia-stato[b-0dpli80cgm]::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.aia--on .aia-stato[b-0dpli80cgm] {
    color: #0B7A43;
    background: #DDF5E8;
}

.aia--on .aia-stato[b-0dpli80cgm]::before {
    background: #1FAA64;
    animation: aia-ping-b-0dpli80cgm 2s ease-out infinite;
}

@keyframes aia-ping-b-0dpli80cgm {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 170, 100, 0.55);
    }
    70% {
        box-shadow: 0 0 0 0.4rem rgba(31, 170, 100, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 170, 100, 0);
    }
}

.aia--off .aia-stato[b-0dpli80cgm],
.aia--attesa .aia-stato[b-0dpli80cgm] {
    color: #5B7590;
    background: #EEF3F8;
}

.aia--off .aia-stato[b-0dpli80cgm]::before,
.aia--attesa .aia-stato[b-0dpli80cgm]::before {
    background: #9FB6CC;
}

.aia-desc[b-0dpli80cgm] {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== RESPONSIVE ========== */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    .aia[b-0dpli80cgm] {
        height: 96px;
        gap: 0.9rem;
        padding: 0.5rem 1.25rem 0.5rem 0.75rem;
        margin-bottom: 1.5rem;
    }

    .aia-scena[b-0dpli80cgm] {
        width: 76px;
        height: 76px;
    }

    .aia-titolo[b-0dpli80cgm] {
        font-size: 1.05rem;
    }

    .aia-desc[b-0dpli80cgm] {
        font-size: 0.84rem;
    }
}

/* Smartphone (≤ 576px): niente marchio in piccolo, testo su tre righe al massimo */
@media (max-width: 576px) {
    .aia[b-0dpli80cgm] {
        height: 92px;
        gap: 0.75rem;
        padding: 0.375rem 0.875rem 0.375rem 0.5rem;
        border-radius: 14px;
    }

    .aia-scena[b-0dpli80cgm] {
        width: 64px;
        height: 64px;
    }

    .aia-marca[b-0dpli80cgm] {
        display: none;
    }

    .aia-titolo[b-0dpli80cgm] {
        gap: 0.2rem 0.45rem;
        font-size: 0.95rem;
    }

    .aia-stato[b-0dpli80cgm] {
        gap: 0.3rem;
        padding: 0.16rem 0.5rem 0.16rem 0.4rem;
        font-size: 0.6rem;
    }

    .aia-stato[b-0dpli80cgm]::before {
        width: 0.42rem;
        height: 0.42rem;
    }

    .aia-desc[b-0dpli80cgm] {
        margin-top: 0.25rem;
        font-size: 0.76rem;
        line-height: 1.3;
        -webkit-line-clamp: 3;
    }
}

/* Smartphone stretti (≤ 374px) */
@media (max-width: 374px) {
    .aia-scena[b-0dpli80cgm] {
        width: 54px;
        height: 54px;
    }

    .aia-titolo[b-0dpli80cgm] {
        font-size: 0.9rem;
    }
}

/* ========== MOVIMENTO RIDOTTO ==========
   Con "riduci animazioni" attivo nel sistema (su Windows spesso spento per prestazioni o
   in desktop remoto) il marchio non si ferma del tutto, altrimenti sembrerebbe rotto: gira
   piano come nella schermata di avvio di MOSE.AI, senza comparsa della card, senza
   scintille che pulsano e senza l'onda sul pallino dello stato. */
@media (prefers-reduced-motion: reduce) {
    .aia[b-0dpli80cgm],
    .aia--on .aia-stato[b-0dpli80cgm]::before {
        animation: none;
    }

    .aia--on .aia-ingranaggio[b-0dpli80cgm] {
        animation-duration: 30s;
    }

    .aia--on .aia-orbita[b-0dpli80cgm] {
        animation-duration: 11s;
    }

    .aia-scintille path[b-0dpli80cgm] {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .aia--off .aia-pianeta[b-0dpli80cgm] {
        animation-duration: 6s;
    }

    .aia-zzz path[b-0dpli80cgm] {
        animation-duration: 6s;
    }

    .aia-zzz path:nth-of-type(2)[b-0dpli80cgm] {
        animation-delay: 2s;
    }

    .aia-zzz path:nth-of-type(3)[b-0dpli80cgm] {
        animation-delay: 4s;
    }
}
/* /Components/Shared/CasellaNumero.razor.rz.scp.css */
/* Casella numerica con l'aspetto degli editor di testo DevExpress del tema (bordo
   grigio, angoli appena arrotondati, anello viola quando ha il cursore). Le regole
   della casella hanno specificità bassa (:where): il padre ne cambia misure,
   carattere, colore e allineamento con la sua classe (CssClass) senza !important.
   L'input eredita carattere, colore e allineamento dalla casella, così il suffisso
   ("€") ha lo stesso stile del numero. */
:where(.casella-numero)[b-p9em18fr2v] {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0.5rem;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: 0.1875rem;
    color: #212529;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.375;
    cursor: text;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

:where(.casella-numero-lg)[b-p9em18fr2v] {
    font-size: 1.25rem;
}

:where(.casella-numero-sm)[b-p9em18fr2v] {
    font-size: 0.875rem;
}

.casella-numero:focus-within[b-p9em18fr2v] {
    border-color: #af9bc6;
    box-shadow: 0 0 0 0.125rem rgba(95, 54, 141, 0.25);
}

.casella-numero-input[b-p9em18fr2v] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 0.3125rem 0;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: inherit;
    letter-spacing: inherit;
}

/* Suffisso a destra e, a sinistra, uno spazio vuoto largo uguale: il numero
   centrato resta al centro della casella */
.casella-numero-suffisso[b-p9em18fr2v],
.casella-numero[data-suffisso][b-p9em18fr2v]::before {
    flex: 0 0 auto;
    white-space: nowrap;
}

.casella-numero-suffisso[b-p9em18fr2v] {
    padding-left: 0.25em;
}

.casella-numero[data-suffisso][b-p9em18fr2v]::before {
    content: attr(data-suffisso);
    visibility: hidden;
    padding-right: 0.25em;
}
/* /Components/Shared/ConnectionStatusIndicator.razor.rz.scp.css */
/* Indicatore stato connessione - compatto e sempre visibile */
.connection-status-indicator[b-srrvflt9g3] {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    user-select: none;
}

.connection-status-indicator:hover[b-srrvflt9g3] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.status-dot[b-srrvflt9g3] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-text[b-srrvflt9g3] {
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dettagli espansi */
.status-details[b-srrvflt9g3] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.status-row[b-srrvflt9g3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

.status-label[b-srrvflt9g3] {
    font-weight: 600;
    opacity: 0.8;
}

.status-value[b-srrvflt9g3] {
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

/* Stati di qualità - Eccellente (verde brillante) */
.quality-excellent[b-srrvflt9g3] {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #15803d;
}

.quality-excellent .status-dot[b-srrvflt9g3] {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    animation: pulse-gentle-b-srrvflt9g3 3s infinite;
}

/* Stati di qualità - Buona (verde chiaro) */
.quality-good[b-srrvflt9g3] {
    background-color: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #16a34a;
}

.quality-good .status-dot[b-srrvflt9g3] {
    background-color: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
    animation: pulse-gentle-b-srrvflt9g3 3s infinite;
}

/* Stati di qualità - Media (giallo) */
.quality-fair[b-srrvflt9g3] {
    background-color: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #a16207;
}

.quality-fair .status-dot[b-srrvflt9g3] {
    background-color: #eab308;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2);
    animation: pulse-gentle-b-srrvflt9g3 2s infinite;
}

/* Stati di qualità - Scarsa (arancione) */
.quality-poor[b-srrvflt9g3] {
    background-color: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #c2410c;
}

.quality-poor .status-dot[b-srrvflt9g3] {
    background-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
    animation: pulse-warning-b-srrvflt9g3 1.5s infinite;
}

/* Stati di qualità - Molto Scarsa (rosso scuro) */
.quality-verypoor[b-srrvflt9g3] {
    background-color: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #991b1b;
}

.quality-verypoor .status-dot[b-srrvflt9g3] {
    background-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
    animation: pulse-error-b-srrvflt9g3 1s infinite;
}

/* Stati di qualità - Riconnessione (arancione pulsante) */
.quality-reconnecting[b-srrvflt9g3] {
    background-color: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #c2410c;
}

.quality-reconnecting .status-dot[b-srrvflt9g3] {
    background-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3);
    animation: pulse-warning-b-srrvflt9g3 0.8s infinite;
}

/* Stati di qualità - Disconnesso (rosso) */
.quality-disconnected[b-srrvflt9g3] {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #b91c1c;
}

.quality-disconnected .status-dot[b-srrvflt9g3] {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
    animation: pulse-error-b-srrvflt9g3 0.6s infinite;
}

/* Classi per packet loss */
.packet-loss-excellent[b-srrvflt9g3] {
    color: #15803d;
}

.packet-loss-good[b-srrvflt9g3] {
    color: #16a34a;
}

.packet-loss-fair[b-srrvflt9g3] {
    color: #a16207;
}

.packet-loss-poor[b-srrvflt9g3] {
    color: #c2410c;
}

.packet-loss-critical[b-srrvflt9g3] {
    color: #991b1b;
    font-weight: 700;
}

/* Animazioni */
@keyframes pulse-gentle-b-srrvflt9g3 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

@keyframes pulse-warning-b-srrvflt9g3 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

@keyframes pulse-error-b-srrvflt9g3 {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.25);
    }
}

/* Responsive - su mobile */
@media (max-width: 768px) {
    .connection-status-indicator[b-srrvflt9g3] {
        top: 5px;
        right: 5px;
        padding: 6px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .status-dot[b-srrvflt9g3] {
        width: 8px;
        height: 8px;
    }

    /* Nascondi testo su mobile in modalità compatta */
    .connection-status-indicator:not(:hover) .status-text[b-srrvflt9g3] {
        display: none;
    }

    /* Dettagli espansi più compatti su mobile */
    .status-details[b-srrvflt9g3] {
        font-size: 10px;
        min-width: 120px;
    }

    .status-row[b-srrvflt9g3] {
        gap: 8px;
    }
}

/* Dark mode support (opzionale, se il tema lo supporta) */
@media (prefers-color-scheme: dark) {
    .connection-status-indicator[b-srrvflt9g3] {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }

    .connection-status-indicator:hover[b-srrvflt9g3] {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    }
}
/* /Components/Shared/RaggioVicinoSlider.razor.rz.scp.css */
/* Riga dello slider del raggio "Vicino a me": palette blu di default (modulo
   ordini/clienti); la variante ambra riprende i chip attivi del giro consegna.
   Nessun margine esterno: la spaziatura è dei contenitori che la ospitano. */
.raggio-vicino-row[b-af0bjnd6bc] {
    --raggio-bordo: #bfdbfe;
    --raggio-sfondo: #eff6ff;
    --raggio-testo: #1e40af;
    --raggio-accento: #2563eb;

    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--raggio-bordo);
    background: var(--raggio-sfondo);
    border-radius: 8px;
}

/* Variante ambra: stessa palette dei chip attivi del giro consegna */
.raggio-vicino-ambra[b-af0bjnd6bc] {
    --raggio-bordo: #fcd34d;
    --raggio-sfondo: #fef3c7;
    --raggio-testo: #92400e;
    --raggio-accento: #d97706;
}

.raggio-vicino-label[b-af0bjnd6bc] {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--raggio-testo);
    white-space: nowrap;
    /* Larghezza minima stabile: il numero che cambia non fa "ballare" lo slider */
    min-width: 7.5rem;
}

.raggio-vicino-input[b-af0bjnd6bc] {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.2rem; /* area di tocco comoda sugli smartphone */
    accent-color: var(--raggio-accento);
    cursor: pointer;
}
/* /Components/Shared/ResponsiveContainer.razor.rz.scp.css */
/* ============================================================================
   ResponsiveContainer - Stili per container responsive
   ============================================================================ */

.responsive-container[b-m8kogm8nan] {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Indicatore dispositivo (debug) */
.device-indicator[b-m8kogm8nan] {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    z-index: 9999;
    font-family: monospace;
}

/* Classi dispositivo per styling condizionale */
.device-small-mobile[b-m8kogm8nan] {
    --container-padding: 0.25rem;
    --font-scale: 0.85;
}

.device-mobile[b-m8kogm8nan] {
    --container-padding: 0.5rem;
    --font-scale: 0.9;
}

.device-tablet[b-m8kogm8nan] {
    --container-padding: 0.75rem;
    --font-scale: 0.95;
}

.device-desktop[b-m8kogm8nan] {
    --container-padding: 1rem;
    --font-scale: 1;
}

/* Padding automatico basato sul dispositivo */
.responsive-container.auto-padding[b-m8kogm8nan] {
    padding: var(--container-padding, 1rem);
}

/* Scala font automatica basata sul dispositivo */
.responsive-container.auto-font[b-m8kogm8nan] {
    font-size: calc(1rem * var(--font-scale, 1));
}
/* /Components/Shared/ToastNotifica.razor.rz.scp.css */
/* ==========================================================================
   Toast condiviso: desktop in basso a destra, smartphone in alto al centro
   (non copre la barra azione e i pulsanti raggiungibili col pollice).
   ========================================================================== */

.toast-notifica[b-a0e7nkdwmb] {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 12000; /* sopra i DxPopup e il pannello di conferma */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.6rem 0.65rem 1rem;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    max-width: min(92vw, 440px);
    animation: toast-notifica-in-b-a0e7nkdwmb 0.2s ease-out;
}

.toast-notifica-successo[b-a0e7nkdwmb] {
    background: #198754;
}

.toast-notifica-avviso[b-a0e7nkdwmb] {
    background: #d97706;
}

.toast-notifica-errore[b-a0e7nkdwmb] {
    background: #dc3545;
}

.toast-notifica-icona[b-a0e7nkdwmb] {
    flex-shrink: 0;
    font-size: 1rem;
}

.toast-notifica-testo[b-a0e7nkdwmb] {
    flex: 1;
    min-width: 0;
}

.toast-notifica-chiudi[b-a0e7nkdwmb] {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toast-notifica-chiudi:hover[b-a0e7nkdwmb] {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes toast-notifica-in-b-a0e7nkdwmb {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smartphone: in alto al centro, sotto la barra di navigazione */
@media (max-width: 768px) {
    .toast-notifica[b-a0e7nkdwmb] {
        top: 3.6rem;
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: max-content;
        max-width: 94vw;
        animation: toast-notifica-in-alto-b-a0e7nkdwmb 0.2s ease-out;
    }

    @keyframes toast-notifica-in-alto-b-a0e7nkdwmb {
        from {
            opacity: 0;
            transform: translate(-50%, -12px);
        }

        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }
}
