/* /Components/Cliente/MenuTavolo.razor.rz.scp.css */
/* Pagina cliente: mobile-first, un dito, contrasto alto. Colore principale come l'app (arancio). */
.tavolo[b-gas72i7kft] {
    --principale: #e65100;
    --testo: #1f1f1f;
    --tenue: #5f5f5f;
    --sfondo: #fafafa;
    --carta: #ffffff;
    --bordo: #e3e3e3;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    color: var(--testo);
    background: var(--sfondo);
    min-height: 100vh;
    padding-bottom: 88px; /* spazio per la barra del carrello */
}

.centro[b-gas72i7kft] { text-align: center; padding: 48px 16px; color: var(--tenue); }
.avviso-pagina[b-gas72i7kft] { margin: 48px 16px; padding: 20px; background: var(--carta); border-radius: 12px; text-align: center; line-height: 1.4; }

.testata[b-gas72i7kft] {
    position: sticky; top: 0; z-index: 5;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--carta); border-bottom: 1px solid var(--bordo);
}
.locale[b-gas72i7kft] { font-weight: 700; font-size: 1.15rem; }
.sottotitolo[b-gas72i7kft] { color: var(--tenue); font-size: 0.95rem; }
.lingua[b-gas72i7kft] { font-size: 1rem; padding: 8px; border-radius: 8px; border: 1px solid var(--bordo); background: var(--carta); min-height: 44px; }

.categorie[b-gas72i7kft] {
    position: sticky; top: 68px; z-index: 4;
    display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
    background: var(--sfondo); scrollbar-width: none;
}
.chip[b-gas72i7kft] {
    flex: 0 0 auto; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--bordo);
    background: var(--carta); font-size: 1rem; min-height: 44px;
}

.menu[b-gas72i7kft] { padding: 0 16px; }
.categoria[b-gas72i7kft] { scroll-margin-top: 130px; }
.categoria h2[b-gas72i7kft] { font-size: 1.3rem; margin: 20px 0 6px; }
.descr-categoria[b-gas72i7kft] { color: var(--tenue); margin: 0 0 8px; }

.piatto[b-gas72i7kft] {
    position: relative; display: flex; gap: 12px; align-items: flex-start;
    background: var(--carta); border-radius: 12px; padding: 14px; margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); cursor: pointer;
}
.piatto .testo[b-gas72i7kft] { flex: 1; min-width: 0; padding-right: 40px; }
.piatto h3[b-gas72i7kft] { font-size: 1.08rem; margin: 0 0 4px; }
.piatto .descr[b-gas72i7kft] {
    margin: 0 0 6px; color: var(--tenue); font-size: 0.95rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.piatto .prezzo[b-gas72i7kft] { font-weight: 700; }
.allergeni-breve[b-gas72i7kft] { margin-top: 4px; font-size: 0.85rem; color: var(--tenue); }
/* Foto facoltativa: solo se c'è, a destra come nelle app di consegna; senza foto la scheda resta compatta */
.piatto .miniatura[b-gas72i7kft] { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; margin-right: 36px; }
.piatto.senza-foto[b-gas72i7kft] { padding-top: 12px; padding-bottom: 12px; }
.aggiungi[b-gas72i7kft] {
    position: absolute; right: 10px; bottom: 10px;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: var(--principale); color: #fff; font-size: 1.6rem; line-height: 1;
}

.avviso-allergeni[b-gas72i7kft] { font-size: 0.85rem; color: var(--tenue); line-height: 1.4; margin: 16px 0; }

.barra[b-gas72i7kft] { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; display: flex; gap: 8px; align-items: stretch; }
.barra-inviati[b-gas72i7kft] {
    flex: 0 1 auto; max-width: 42%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--bordo);
    background: var(--carta); font-size: 0.95rem; font-weight: 600;
}
.barra-carrello[b-gas72i7kft] {
    flex: 1 1 auto;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 18px; border: none; border-radius: 14px;
    background: var(--principale); color: #fff; font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.velo[b-gas72i7kft] { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 10; }
.foglio[b-gas72i7kft] {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
    max-height: 92vh; overflow-y: auto; background: var(--carta);
    border-radius: 18px 18px 0 0; padding: 18px 16px 28px;
}
.foglio h2[b-gas72i7kft] { margin: 6px 0 8px; font-size: 1.3rem; }
.foglio h3[b-gas72i7kft] { margin: 18px 0 8px; font-size: 1.05rem; }
.foto-grande[b-gas72i7kft] { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; }

.ingrediente[b-gas72i7kft] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--bordo); }
.nome-ingrediente[b-gas72i7kft] { flex: 1 1 120px; }

.opzione[b-gas72i7kft] {
    min-height: 44px; padding: 8px 14px; border-radius: 10px;
    border: 1.5px solid var(--bordo); background: var(--carta); font-size: 0.98rem;
}
.opzione.attiva[b-gas72i7kft] { border-color: var(--principale); background: #fff3e0; color: #8a3000; font-weight: 600; }
.opzione.grande[b-gas72i7kft] { width: 100%; margin: 8px 0; }

.uscite[b-gas72i7kft] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uscite.piccole .opzione[b-gas72i7kft] { min-height: 40px; padding: 6px 4px; font-size: 0.85rem; }

.quantita[b-gas72i7kft] { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 18px 0; font-size: 1.3rem; }
.tondo[b-gas72i7kft] { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--bordo); background: var(--carta); font-size: 1.4rem; }

.primario[b-gas72i7kft], .secondario[b-gas72i7kft], .testo-link[b-gas72i7kft] { font-size: 1.05rem; }
.primario[b-gas72i7kft] {
    width: 100%; min-height: 54px; border: none; border-radius: 12px;
    background: var(--principale); color: #fff; font-weight: 700; margin-top: 8px;
}
.primario:disabled[b-gas72i7kft] { opacity: 0.5; }
.secondario[b-gas72i7kft] { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--bordo); background: var(--carta); margin-top: 8px; }
.testo-link[b-gas72i7kft] { border: none; background: none; color: var(--principale); text-decoration: underline; min-height: 44px; }

.carrello .intestazione[b-gas72i7kft] { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.carrello .intestazione .secondario[b-gas72i7kft] { width: auto; padding: 0 16px; margin: 0; }
.uscita[b-gas72i7kft] { text-transform: uppercase; letter-spacing: 0.04em; color: var(--principale); }
.riga[b-gas72i7kft] { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--bordo); }
.riga.mia[b-gas72i7kft] { background: #fffaf5; margin: 0 -16px; padding: 10px 16px; }
.modifiche[b-gas72i7kft] { font-size: 0.9rem; color: #8a3000; }
.chi[b-gas72i7kft] { font-size: 0.85rem; color: var(--tenue); }
.importo[b-gas72i7kft] { font-weight: 600; }
.comandi[b-gas72i7kft] { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comandi .uscite[b-gas72i7kft] { flex: 1 1 100%; }
.vuoto[b-gas72i7kft], .nota[b-gas72i7kft] { color: var(--tenue); font-size: 0.92rem; }

.totali[b-gas72i7kft] { margin-top: 16px; }
.totali > div[b-gas72i7kft] { display: flex; justify-content: space-between; padding: 4px 0; }
.totali .totale[b-gas72i7kft] { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--bordo); padding-top: 10px; }

.commensali[b-gas72i7kft] { margin-top: 18px; }
.nome[b-gas72i7kft] { width: 100%; min-height: 48px; font-size: 1rem; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--bordo); box-sizing: border-box; }
.pronti[b-gas72i7kft] { text-align: center; font-weight: 600; }
.chi-manca[b-gas72i7kft] { text-align: center; margin: 8px 0 0; color: #6d4c41; }
.chi-manca.pronti-tutti[b-gas72i7kft] { color: #2e7d32; font-weight: 600; }
.conferma[b-gas72i7kft] { margin-top: 12px; padding: 14px; border-radius: 12px; background: #fff3e0; }

.toast[b-gas72i7kft] {
    position: fixed; left: 16px; right: 16px; bottom: 92px; z-index: 20;
    padding: 14px 16px; border-radius: 12px; background: #263238; color: #fff; text-align: center;
}

/* Stato "Sei pronto" con "Modifica ordine" (regola 13) */
.stato-pronto[b-gas72i7kft] { display: flex; align-items: center; gap: 8px; min-height: 54px; margin-top: 8px; padding: 0 12px; border-radius: 12px; background: #e8f5e9; color: #1b5e20; font-size: 1.05rem; }
.stato-pronto .spunta[b-gas72i7kft] { font-size: 1.3rem; font-weight: 700; }
.stato-pronto .modifica-ordine[b-gas72i7kft] { margin-left: auto; }

/* "Già ordinato": round inviati in sola lettura */
.ordine-inviato[b-gas72i7kft] { margin-top: 12px; padding-top: 4px; border-top: 2px solid var(--bordo); }
.titolo-ordine[b-gas72i7kft] { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ora-invio[b-gas72i7kft] { font-size: 0.9rem; font-weight: 400; color: var(--tenue); }
.gia-ordinato h4.uscita[b-gas72i7kft] { margin: 12px 0 4px; font-size: 0.9rem; }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-xdg4nqbh2p] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-xdg4nqbh2p] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-4arslda9a2],
.components-reconnect-repeated-attempt-visible[b-4arslda9a2],
.components-reconnect-failed-visible[b-4arslda9a2],
.components-pause-visible[b-4arslda9a2],
.components-resume-failed-visible[b-4arslda9a2],
.components-rejoining-animation[b-4arslda9a2] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-4arslda9a2],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-4arslda9a2],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-4arslda9a2],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-4arslda9a2],
#components-reconnect-modal.components-reconnect-retrying[b-4arslda9a2],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-4arslda9a2],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-4arslda9a2],
#components-reconnect-modal.components-reconnect-failed[b-4arslda9a2],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-4arslda9a2] {
    display: block;
}


#components-reconnect-modal[b-4arslda9a2] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-4arslda9a2 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-4arslda9a2 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-4arslda9a2 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-4arslda9a2]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-4arslda9a2 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-4arslda9a2 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-4arslda9a2 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-4arslda9a2 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-4arslda9a2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-4arslda9a2] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-4arslda9a2] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-4arslda9a2] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-4arslda9a2] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-4arslda9a2] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-4arslda9a2] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-4arslda9a2 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-4arslda9a2] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-4arslda9a2 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
