/* (c) 2026 Ciegi Soft di Cavallaro Gaetano - P.IVA 04544040159 - www.ciegisoft.com - tutti i diritti riservati.
 * App agenti del Gestionale CiegiSoft, in licenza d'uso: vietati copia, modifica e distribuzione senza autorizzazione
 * scritta di Ciegi Soft. Condizioni in LICENZA.txt. */
/* 1.136.0: dettatura del pre-ordine (js/dettatura.js) */
.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 .pren-lavagna { scroll-padding-bottom: 140px; }

.dt-registro { margin-top: .6rem; max-height: 50vh; overflow: auto; }
.dt-registro table { font-size: .78rem; }
@media print { .dt-fascia { display: none; } }
.voce-ok { color: #166534; font-weight: 600; }
.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-tempi { margin-top: .35rem; font-size: .78rem; color: #94a3b8; }
.dt-tempi:empty { display: none; }
.dt-tempi.dt-lento { color: #fcd34d; }
.dt-modo { flex: none; width: auto; max-width: 9.5rem; background: #1e293b; color: #e2e8f0; border: 1px solid #475569; border-radius: 6px; font-size: .78rem; padding: .1rem .3rem; }
.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; }
/* 1.142.1: fuori dal pre-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-tempi, .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-tempi, .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; }
/* 1.143.0: domande sui dati (js/domande.js) */
.dq-domanda { font-style: italic; color: #475569; }
.dq-titolo { font-size: 1.1rem; margin: .6rem 0 .2rem; }
.dq-spieg { margin: 0 0 .4rem; }
.dq-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .4rem 0; }
.dq-tabella { overflow: auto; max-height: 65vh; border: 1px solid #e2e8f0; border-radius: 8px; }
.dq-tabella table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.dq-tabella th { position: sticky; top: 0; background: #f1f5f9; text-align: left; padding: .35rem .5rem; white-space: nowrap; }
.dq-tabella td { padding: .3rem .5rem; border-top: 1px solid #f1f5f9; }
.dq-tabella .num { text-align: right; white-space: nowrap; }
.dq-tabella .neg { color: #b91c1c; }
.dq-chiedi { display: flex; gap: .4rem; margin-top: .8rem; }
.dq-chiedi input { flex: 1; min-width: 0; }
.dq-err { color: #b91c1c; font-weight: 600; }
/* 1.144.0: Chiedi a Claude (js/chiedi.js) */
.cc-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.cc-barra small { flex: 1 1 260px; }
.cc-leggi { display: flex; align-items: center; gap: .25rem; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.cc-elenco { display: flex; flex-direction: column; gap: .5rem; max-height: 58vh; overflow: auto; padding: .5rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.cc-msg { position: relative; max-width: 85%; padding: .5rem .7rem; border-radius: 12px; line-height: 1.45; }
.cc-utente { align-self: flex-end; background: #dbeafe; color: #0f172a; border-bottom-right-radius: 4px; }
.cc-claude { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; padding-right: 2rem; }
.cc-testo { white-space: pre-wrap; word-break: break-word; }
.cc-copia { position: absolute; top: .3rem; right: .3rem; background: transparent; border: 0; cursor: pointer; opacity: .55; }
.cc-copia:hover { opacity: 1; }
.cc-attesa { color: #64748b; font-style: italic; }
.cc-scrivi { display: flex; gap: .4rem; margin-top: .6rem; align-items: flex-end; }
.cc-scrivi textarea { flex: 1; min-width: 0; resize: vertical; }
.cc-fonti { margin-top: .35rem; font-size: .78rem; color: #64748b; }
.cc-fonti a { color: #1d4ed8; word-break: break-word; }
