/* Ritocchi del portale referenti sopra tinydash (app-light.css) */
body { background: #f4f6f9; }
body.pubblica .scheda-accesso { max-width: 440px; margin: 0 auto; }
.main-content { padding-top: 1.5rem; }
.horizontal .navbar .nav-item.active > .nav-link { color: #1d1d1f; font-weight: 600; }

/* Conversazione */
.msg { max-width: 88%; border-radius: .5rem; }
.msg-mio      { background: #eaf1ff; border: 1px solid #c9dafc; margin-left: auto; }
.msg-tecnico  { background: #ffffff; border: 1px solid #e3e7ed; }
.msg-testo    { word-wrap: break-word; }
.msg-sistema  { font-size: .8rem; color: #8e98a6; text-align: center; }

/* Codice di accesso */
.campo-codice { font-size: 1.75rem; letter-spacing: .5rem; text-align: center; font-weight: 600; }

/* Elenco ticket su telefono: righe come schede */
.riga-ticket { display: block; color: inherit; text-decoration: none !important; }
.riga-ticket:hover { background: #f8f9fb; }

/* Campo trappola per i bot (registrazione) */
.campo-trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Niente blu "primary" di tinydash: colore d'accento scuro in tutto il portale */
a { color: #343a40; }
a:hover { color: #000000; }
.btn-link { color: #343a40; }
.btn-link:hover { color: #000000; }
.nav-tabs .nav-link.active { color: #1d1d1f; }
.list-group-item.active { background-color: #343a40; border-color: #343a40; color: #ffffff; }
.custom-control-input:checked ~ .custom-control-label::before { background-color: #343a40; border-color: #343a40; }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 .2rem rgba(52, 58, 64, .15); }
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: #adb5bd; }
.form-control:focus { border-color: #adb5bd; box-shadow: 0 0 0 .2rem rgba(52, 58, 64, .12); }
.page-item.active .page-link { background-color: #343a40; border-color: #343a40; }
.page-link { color: #343a40; }
.msg-mio { background: #f1f3f5; border-color: #dee2e6; }

/* FAQ */
.faq-domanda { cursor: pointer; color: #1d1d1f; }
.faq-domanda:hover { background: #f8f9fa; }
.faq-domanda .fe-chevron-down { transition: transform .2s; }
.faq-domanda[aria-expanded="true"] .fe-chevron-down { transform: rotate(180deg); }
.faq-risposta { font-size: .95rem; line-height: 1.6; }
.faq-risposta ol, .faq-risposta ul { padding-left: 1.4rem; }
.faq-risposta p:last-child { margin-bottom: 0; }
.faq-suggerimenti { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: .35rem; }

/* Allegati */
.allegati { display: flex; flex-wrap: wrap; align-items: flex-end; margin-top: .5rem; }
.allegato-img { max-height: 120px; max-width: 200px; border-radius: .3rem; border: 1px solid #dee2e6; margin: 0 .5rem .5rem 0; }
.allegato-file, .allegato-scelto { display: inline-block; font-size: .8rem; background: #fff; border: 1px solid #dee2e6; border-radius: .3rem; padding: .2rem .55rem; margin: 0 .4rem .4rem 0; }
form.allegati-sopra { outline: 2px dashed #6c757d; outline-offset: 4px; }

/* Logo zeropuntouno + "help desk - assistenza clienti"
   la larghezza la decide la scritta: il logo si adatta (width 0 + min-width 100%) */
.navbar-brand.marchio, .marchio-grande { display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1; }
.navbar-brand.marchio { padding: .35rem 0; }
img.logo-zpu { display: block; width: 0; min-width: 100%; height: auto; max-width: none; }
.sotto-logo { display: block; white-space: nowrap; text-align: center; font-size: .72rem; font-weight: 600; color: #6c757d; margin-top: .25rem; }
.sotto-logo-grande { font-size: 0.9rem; margin-top: .4rem; }

/* Piede: logo puntocall + concept by */
.piede { border-top: 1px solid #e9ecef; margin-top: 2rem; }
img.logo-puntocall { height: 26px; width: auto; opacity: .9; display: block; margin: 0 auto; }
.piede .concept { font-size: .75rem; color: #8e98a6; margin-top: .35rem; letter-spacing: .02em; }
