/* Reporter: correzioni di stile sopra il guscio condiviso (che qui non si modifica). Caricato da ogni pagina. */

/* La pagina cresce con il suo contenuto: il piede non resta a metà pagina e le ultime voci non finiscono sotto la barra in basso. */
html, body { height: auto; }
body { min-height: 100vh; min-height: 100dvh; }
.shell-footer { height: auto; min-height: var(--shell-footer-height); padding-top: .5rem; padding-bottom: .5rem; }
@media (max-width: 991.98px) {
  /* sul telefono la barra in basso (Home, Menu, Notifiche) è fissa: si lascia lo spazio sotto il piede */
  body { padding-bottom: calc(var(--shell-bottom-tab-height) + env(safe-area-inset-bottom, 0px)); }
}

/* «Cerca» nella barra in basso non esiste in Reporter (la ricerca non è prevista): si nasconde invece di mostrare un pulsante spento */
.shell-bottom-tab__item[disabled] { display: none; }

/* iPhone e iPad ingrandiscono la pagina quando si tocca un campo con il testo sotto i 16 px: sui dispositivi touch i campi sono a 16 px */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  select, textarea, .form-control, .form-select, .form-control-sm, .form-select-sm {
    font-size: 16px !important;
  }
}

/* ===================== Conversazione (tappa 2) ===================== */
.rp-riga { display: flex; margin-bottom: .6rem; }
.rp-riga-mia { justify-content: flex-end; }
.rp-bolla { max-width: min(92%, 560px); border-radius: .9rem; padding: .55rem .75rem; border: 1px solid var(--color-border, #d6dbe3); background: #fff; word-wrap: break-word; overflow-wrap: anywhere; }
.rp-bolla-mia { background: #dcebfb; border-color: #b9d4f2; }
.rp-segnalazione { border-left: 4px solid #1d5fa8; width: min(92%, 560px); }
.rp-avviso-ufficio { background: #fff4d6; border-color: #f0d98a; }
.rp-selezionata { box-shadow: 0 0 0 3px rgba(29, 95, 168, .45); }
.rp-intestazione { display: flex; align-items: center; font-size: .8rem; margin-bottom: .15rem; }
.rp-citazione { border-left: 3px solid #9bb4d3; padding: .1rem .5rem; margin-bottom: .35rem; font-size: .8rem; color: #5b6676; background: rgba(0, 0, 0, .03); border-radius: .25rem; }
.rp-testo { white-space: normal; }
.rp-giorno { text-align: center; margin: .9rem 0 .6rem; font-size: .75rem; color: #6b7585; }
.rp-giorno span { background: #eef1f6; padding: .1rem .6rem; border-radius: 1rem; }
.rp-allegati { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.rp-foto { display: block; width: 104px; height: 104px; border-radius: .5rem; overflow: hidden; background: #e9edf3; }
.rp-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-foto-eliminata { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #6b7585; text-align: center; }
.rp-foto-blocco { max-width: 104px; }
.rp-pdf { max-width: 100%; white-space: normal; text-align: left; }
.rp-letto { margin-top: .15rem; font-size: .75rem; }
.rp-azioni { margin-top: .35rem; }
.rp-gestione .btn { white-space: nowrap; }
.rp-gestione { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed #b9c3d1; }
.rp-nota { background: #fff8d6; border: 1px solid #ecdc8c; border-radius: .4rem; padding: .3rem .5rem; margin: .25rem 0; font-size: .85rem; }
.rp-composer { margin-top: .75rem; }
.rp-pagina-chat { padding-bottom: 1rem; }
.rp-elenco-file { display: flex; flex-wrap: wrap; gap: .5rem; }
.rp-file { position: relative; width: 104px; text-align: center; }
.rp-file img { width: 104px; height: 104px; object-fit: cover; border-radius: .5rem; display: block; }
.rp-file-nome { font-size: .7rem; line-height: 1.1; word-break: break-all; margin-top: .15rem; }
.rp-file-togli { position: absolute; top: 4px; right: 4px; background-color: rgba(255, 255, 255, .9); border-radius: 50%; padding: .35rem; }
.rp-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.rp-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rp-avviso-posta { position: sticky; top: 0; z-index: 1040; background: #b02a37; color: #fff; padding: .5rem 1rem; font-size: .9rem; }
.rp-avviso-posta code { color: #fff; background: rgba(255, 255, 255, .15); padding: 0 .25rem; border-radius: .2rem; }

/* ===================== Elenco dell'ufficio ===================== */
.rp-voce { border-left: 4px solid transparent; }
.rp-attenzione { border-left-color: #e0a800; background: #fff8e1; }
.rp-non-letto { background-color: #f3f8ff; }
.rp-attenzione.rp-non-letto { background: #fff3cd; }
.min-w-0 { min-width: 0; }
