/* (c) 2026 Ciegi Soft di Cavallaro Gaetano - P.IVA 04544040159 - www.ciegisoft.com - tutti i diritti riservati.
 * Ordini online, app clienti del Gestionale CiegiSoft, in licenza d'uso: vietati copia, modifica e distribuzione senza autorizzazione
 * scritta di Ciegi Soft. Condizioni in LICENZA.txt. */
/* Ordini online: dettatura a voce dell'ordine in preparazione (js/dettatura.js), come VisiteClienti/css/dettatura.css */
.dt-bottone.dt-acceso { background: #dc2626; border-color: #dc2626; color: #fff; animation: dt-pulsa 1.6s ease-in-out infinite; }
.dt-bottone.dt-attende { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
@keyframes dt-pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } }
.dt-fascia { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 900;
  width: min(720px, calc(100% - 16px)); background: #0f172a; color: #f8fafc; border-radius: 12px; padding: .55rem .75rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .35); font-size: .9rem; }
.dt-fascia.dt-in-attesa { background: #1e293b; opacity: .92; }
.dt-riga { display: flex; align-items: center; gap: .55rem; }
.dt-stato { flex: 1; min-width: 0; }
.dt-livello { width: 46px; height: 8px; border-radius: 4px; background: #334155; overflow: hidden; flex: none; }
.dt-livello i { display: block; height: 100%; width: 0; background: #22c55e; transition: width .08s linear; }
.dt-attesa { display: flex; align-items: center; gap: .25rem; font-size: .8rem; color: #cbd5e1; white-space: nowrap; cursor: pointer; }
.dt-chiudi { background: transparent; border: 0; color: #cbd5e1; font-size: 1.05rem; cursor: pointer; padding: 0 .2rem; }
.dt-frase { color: #cbd5e1; font-style: italic; margin-top: .3rem; }
.dt-frase:empty, .dt-capito:empty, .dt-azioni:empty { display: none; }
.dt-capito { margin-top: .2rem; font-weight: 600; }
.dt-capito.dt-err, .dt-azioni .dt-err { color: #fca5a5; }
.dt-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .4rem; }
.dt-azioni .btn { background: #f8fafc; color: #0f172a; }
.dt-scelte { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.dt-scelte small { color: #cbd5e1; }
body.dt-aperta .pn-lavagna { scroll-padding-bottom: 140px; }
@media print { .dt-fascia { display: none; } }
.dt-guida { margin-top: .4rem; font-size: .82rem; color: #e2e8f0; line-height: 1.45; max-height: 40vh; overflow: auto; }
.dt-guida b { color: #fff; }
.dt-elenco { margin-top: .45rem; display: flex; flex-direction: column; gap: .25rem; max-height: 46vh; overflow: auto; }
.dt-elenco-tit { font-weight: 600; color: #fde68a; display: flex; justify-content: space-between; align-items: center; }
.dt-voce { display: flex; align-items: baseline; gap: .5rem; text-align: left; background: #1e293b; color: #f8fafc; border: 1px solid #475569; border-radius: 8px; padding: .3rem .5rem; cursor: pointer; font-size: .88rem; }
.dt-voce:hover { border-color: #fde68a; }
.dt-voce b { flex: none; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fde68a; color: #0f172a; display: inline-flex; align-items: center; justify-content: center; }
.dt-voce small { color: #94a3b8; }
.dt-premuto { outline: 3px solid #f59e0b !important; outline-offset: 2px; transition: outline .2s; }
/* fuori dall'ordine un fumetto piccolo e chiaro sotto la barretta (niente fascia nera); nel pre-ordine la fascia si sposta e si riduce */
.dt-fascia.dt-compatta { left: auto; right: 10px; transform: none; bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 100px);
  width: min(380px, calc(100% - 20px)); background: #fff; color: #0f172a; border: 1px solid #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
  padding: .4rem .6rem; font-size: .85rem; opacity: 1; }
.dt-fascia.dt-compatta.dt-vuota { display: none; }
.dt-compatta .dt-riga, .dt-compatta .dt-guida { display: none; }
.dt-compatta .dt-frase { color: #475569; margin-top: 0; }
.dt-compatta .dt-capito.dt-err { color: #b91c1c; }
.dt-compatta .dt-voce { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
.dt-compatta .dt-elenco-tit { color: #92400e; }
.dt-compatta .dt-chiudi { color: #64748b; }
.dt-compatta .dt-azioni .btn { background: #f1f5f9; }
.dt-fascia:not(.dt-compatta) .dt-riga { cursor: move; touch-action: none; }
.dt-ridotta .dt-frase, .dt-ridotta .dt-capito, .dt-ridotta .dt-azioni, .dt-ridotta .dt-guida { display: none; }
[data-utility="detta"].dt-acceso { background: #dc2626 !important; color: #fff !important; animation: dt-pulsa 1.6s ease-in-out infinite; }
[data-utility="detta"].dt-attende { background: #fef3c7 !important; color: #92400e !important; }
/* proposte «Era un altro?» (nell'app sono i chip delle email del pre-ordine) */
.dt-chip { background: #1e293b; color: #f8fafc; border: 1px solid #475569; border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; cursor: pointer; }
.dt-chip.su { background: #166534; border-color: #22c55e; }
.dt-compatta .dt-chip { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
.dt-compatta .dt-chip.su { background: #dcfce7; border-color: #16a34a; }
.pn-testa-dati .dt-bottone { margin-left: auto; padding: .2rem .55rem; font-size: .88rem; min-height: 0; line-height: 1.2; flex: 0 0 auto; }
/* sul telefono stretto la riga della consegna e' piena: resta il 🎤 Detta della barretta in alto */
@media (max-width: 440px) { .pn-testa-dati .dt-bottone { display: none; } }
