/* Archivio Firme – grafica del gestionale dello studio (stile "Notte" + pannelli morbidi).
   File riordinato automaticamente: le regole sovrapposte delle versioni precedenti sono state fuse,
   resta solo quella che si vede davvero. Colori e misure base sono in base.css (variabili --bg, --sup, --pri…). */
@keyframes entra {
  0% {
    transform: translateX(30px);
    opacity: 0.6;
  }
}
@keyframes sale {
  0% {
    opacity: 0.4;
    transform: translateY(12px);
  }
}
@keyframes aa-tempo {
  to {
    transform: scaleX(0);
  }
}
#layout {
  display: block;
  min-height: 100vh;
}
#menu {
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 12px;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--lato-testo);
}
.logo {
  gap: 12px;
  padding: 0;
  flex: none;
}
#menu,
#menu nav a,
.logo,
.logo-segno {
  display: flex;
  align-items: center;
}
.logo-segno {
  width: 38px;
  height: 38px;
  background: var(--pri-btn);
  color: var(--pri-on);
  font-family: var(--titoli);
  font-weight: 700;
  font-size: 16px;
  justify-content: center;
  flex: none;
}
.logo b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--testo);
}
#menu .gruppo,
.logo small {
  display: none;
}
#menu .pill,
.tema-sel {
  display: flex;
  border: 1px solid var(--bordo);
}
#menu .pill {
  margin: 0 auto;
}
#menu nav {
  display: contents;
}
#menu nav a {
  color: var(--testo-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  white-space: nowrap;
  transition:
    background 0.12s,
    color 0.12s;
}
#menu nav a .ic {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}
#menu nav a.on,
#menu nav a:hover,
.tema-sel button:hover {
  color: var(--testo);
  background: var(--sup-2);
}
#menu nav a.on {
  background: var(--testo);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--bordo-forte);
  background: var(--pri-tenue);
  color: var(--pri-testo);
  box-shadow: none;
}
#menu nav a.on .ic {
  opacity: 1;
}
#menu nav a .conta {
  margin-left: 2px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--ok);
  color: var(--pri-on);
  border-radius: 5px;
  padding: 0 6px;
}
#menu .nuova {
  margin: 0;
  padding: 10px;
  width: 40px;
  height: 40px;
  flex: none;
  font-size: 0;
  gap: 0;
}
#menu .nuova .ic {
  width: 20px;
  height: 20px;
}
.tema-sel {
  gap: 2px;
  background: var(--sup);
  padding: 3px;
  flex: none;
}
.tema-sel button {
  background: 0 0;
  color: var(--tenue);
  padding: 0;
  width: 30px;
  height: 30px;
  font-size: 0;
  gap: 0;
}
.tema-sel button .ic {
  width: 15px;
  height: 15px;
}
.tema-sel button:hover {
  border: 0;
}
.tema-sel button.on {
  background: var(--pri-btn);
  color: var(--pri-on);
}
.utente {
  gap: 10px;
  flex: none;
}
.logo b,
.stat b,
.utente .av {
  font-family: var(--titoli);
}
.briciole,
.utente,
.utente .av {
  display: flex;
  align-items: center;
}
.briciole,
.utente .av {
  font-size: 13px;
}
.utente .av {
  width: 40px;
  height: 40px;
  background: var(--bordo);
  border: 0;
  justify-content: center;
  font-weight: 600;
  color: var(--testo);
  flex: none;
}
.utente button {
  padding: 8px;
  background: 0 0;
  border: 0;
  border-radius: 50%;
}
.utente button:hover {
  background: var(--sup);
  color: var(--testo);
}
#vista {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}
.briciole {
  margin-bottom: 6px;
  gap: 6px;
}
.briciole,
.briciole a,
.riep .dl span,
.testa p,
.utente button,
table.t td small {
  color: var(--tenue);
}
.testa {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.azioni,
.testa h1 {
  display: flex;
  align-items: center;
}
.testa h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  gap: 10px;
}
.testa p {
  margin: 4px 0 0;
  font-size: 14px;
}
.azioni {
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  border: 1px solid var(--bordo);
  box-shadow: var(--ombra-1);
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.stat:hover {
  box-shadow: var(--ombra-2);
}
.stat .riga {
  justify-content: space-between;
}
.stat .ico,
.stat .riga,
.tabella .barra-t {
  display: flex;
  align-items: center;
}
.stat .ico,
.tabella {
  border: 1px solid var(--bordo);
}
.stat .ico {
  justify-content: center;
}
.stat b {
  letter-spacing: -0.02em;
  display: block;
}
.stat.att .ico {
  border-color: var(--attesa-bordo);
}
.stat.ok .ico {
  border-color: var(--ok-bordo);
}
.tabella {
  background: var(--sup);
  border-radius: var(--r-l);
  box-shadow: var(--ombra-1);
  overflow: hidden;
}
.tabella .barra-t {
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.tabella .barra-t h2 {
  margin: 0;
  font-size: 15px;
}
.guida-sintassi table,
table.t {
  width: 100%;
  border-collapse: collapse;
}
table.t td,
table.t th {
  border-bottom-color: var(--bordo-l);
}
.tabella .barra-t,
table.t th {
  border-bottom: 1px solid var(--bordo);
}
table.t th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tenue);
  padding: 13px 20px;
  white-space: nowrap;
  background: 0 0;
}
table.t td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bordo-l);
  vertical-align: middle;
  font-size: 14px;
  color: var(--testo-2);
}
table.t td b {
  color: var(--testo);
  font-weight: 500;
}
table.t td small {
  font-size: 12.5px;
}
table.t tr:last-child td {
  border-bottom: 0;
}
table.t tr.cliccabile {
  cursor: pointer;
}
.parti-mod .pt-tab tr:hover td,
table.t tr.cliccabile:hover td {
  background: var(--hover);
}
table.t td.az {
  text-align: right;
  white-space: nowrap;
}
.av,
.cella-nome,
.fico {
  display: flex;
  align-items: center;
}
.cella-nome {
  gap: 12px;
  min-width: 0;
}
.cella-nome > div {
  min-width: 0;
}
.av,
.fico {
  justify-content: center;
  flex: none;
}
.av {
  width: 38px;
  height: 38px;
  font-size: 13px;
  font-weight: 600;
}
.av.privato {
  background: var(--pri-tenue);
  color: var(--pri);
}
.av.azienda {
  background: var(--viola-bg);
  color: var(--viola);
}
.av.ente_sportivo {
  background: var(--ok-bg);
  color: var(--ok);
}
.av.nuovo {
  background: var(--sup-2);
  color: var(--tenue);
  border: 1px dashed var(--bordo-forte);
}
.fico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ko-bg);
  color: var(--ko);
}
.fico.identita {
  background: var(--pri-tenue);
  color: var(--pri);
}
.fico.firma {
  background: var(--sup-2);
  color: var(--testo-2);
}
.editor textarea,
.hash,
.link-box code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.cp-hash,
.hash {
  color: var(--tenue);
}
.hash {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cp-hash {
  padding: 3px 5px;
  border-radius: 6px;
}
.cp-hash .ic {
  width: 14px;
  height: 14px;
}
.cp-hash:hover {
  color: var(--pri);
}
.vuoto-box {
  text-align: center;
  padding: 48px 20px;
  color: var(--tenue);
}
.vuoto-box .ic {
  color: var(--tenue-2);
  margin-bottom: 10px;
}
.opzione b,
.vuoto-box b {
  display: block;
  font-weight: 600;
  color: var(--testo);
}
.vuoto-box b {
  font-size: 15px;
  margin-bottom: 4px;
}
.vuoto-box .btn {
  margin-top: 14px;
}
.cerca {
  position: relative;
}
.cerca .ic {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tenue-2);
  pointer-events: none;
}
.cerca input {
  padding-left: 36px;
}
.sezione {
  margin-top: 20px;
}
.sezione > h2 {
  margin-bottom: 12px;
}
.filtri,
.selbar {
  display: flex;
  align-items: center;
}
.filtri {
  gap: 8px;
  flex-wrap: wrap;
}
.filtri select {
  width: auto;
  min-width: 150px;
}
.selbar {
  gap: 12px;
  padding: 10px 18px;
  background: var(--pri-tenue);
  border-bottom: 1px solid var(--pri-bordo);
  font-size: 13.5px;
  color: var(--pri);
  font-weight: 500;
}
.passo,
.passo .num.off {
  border: 1px solid var(--bordo);
}
.passo {
  background: var(--sup);
  border-radius: var(--r-l);
  box-shadow: var(--ombra-1);
  margin-bottom: 16px;
}
.passo > .intest {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 24px;
  border-bottom: 1px solid var(--bordo);
}
.passo .num {
  width: 30px;
  height: 30px;
  background: var(--pri-btn);
  color: var(--pri-on);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.passo .num.off {
  background: var(--sup-2);
  color: var(--tenue);
}
.passo .intest h2 {
  margin: 2px 0 0;
}
.passo .intest p {
  margin: 2px 0 0;
  color: var(--tenue);
  font-size: 13.5px;
}
.passo > .corpo {
  padding: 20px 24px;
}
.scelte3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.opzione {
  position: relative;
  border-radius: var(--r-l);
  padding: 14px 16px;
  cursor: pointer;
  background: var(--sup);
  gap: 12px;
  align-items: flex-start;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
  color: inherit;
  text-decoration: none !important;
}
.opzione.on {
  box-shadow: 0 0 0 1px var(--pri);
}
.opzione,
.opzione .oi {
  border: 1px solid var(--bordo);
  display: flex;
}
.opzione .oi {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--sup-2);
  align-items: center;
  justify-content: center;
  color: var(--testo-2);
  flex: none;
}
.opzione.on .oi {
  background: var(--pri-tenue);
  border-color: var(--pri-bordo);
  color: var(--pri);
}
.opzione b {
  font-size: 14px;
}
.chk small,
.opzione small {
  display: block;
  color: var(--tenue);
}
.opzione small {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}
.opzione input[type="radio"] {
  position: absolute;
  top: 14px;
  right: 14px;
}
.scelte3 .opzione {
  padding-right: 38px;
}
.mod-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.mod-lista .opzione input {
  margin: 2px 0 0;
  order: -1;
}
.lato {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.riep {
  position: sticky;
  top: 20px;
}
.riep h2,
.sezione > h2 {
  font-size: 15px;
}
.riep ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.chk,
.riep li {
  display: flex;
  align-items: flex-start;
  color: var(--testo-2);
}
.riep .dl,
.riep li {
  font-size: 13.5px;
  padding: 6px 0;
}
.riep li {
  gap: 8px;
}
.riep li .ic {
  color: var(--tenue);
  margin-top: 1px;
}
.riep .dl {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--bordo-l);
}
.riep button {
  width: 100%;
  margin-top: 8px;
}
.chk {
  gap: 10px;
  margin: 4px 0 10px;
  font-size: 14px;
  cursor: pointer;
}
.chk input {
  margin-top: 2px;
}
.chk small {
  font-size: 12.5px;
}
.esito {
  text-align: center;
  padding: 36px 24px 28px;
}
.esito .ok-ico,
.link-box {
  display: flex;
  align-items: center;
}
.esito .ok-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  justify-content: center;
  margin: 0 auto 14px;
  border: 8px solid var(--halo-ok);
  box-sizing: content-box;
}
.link-box {
  gap: 8px;
  background: var(--sup-2);
  border: 1px solid var(--bordo);
  padding: 6px 6px 6px 12px;
  border-radius: var(--r);
  max-width: 640px;
  margin: 0 auto;
}
.dati span,
.link-box .ic {
  color: var(--tenue);
}
.editor textarea,
.link-box code {
  font-size: 13px;
}
.link-box code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: var(--testo-2);
}
.canali {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.canali a {
  flex-direction: column;
  padding: 16px;
  gap: 6px;
  font-weight: 500;
}
.editor {
  display: grid;
  gap: 16px;
  align-items: start;
}
.editor textarea {
  line-height: 1.65;
  min-height: 600px;
  resize: vertical;
  border-radius: 0 0 var(--r-l) var(--r-l);
  border: 0;
  box-shadow: none;
  padding: 18px 20px;
}
.editor textarea:focus {
  box-shadow: none;
}
.ed-box {
  background: var(--sup);
  border: 1px solid var(--bordo);
  border-radius: var(--r-l);
  box-shadow: var(--ombra-1);
}
.ed-barra {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--bordo);
  background: var(--sup-2);
  border-radius: var(--r-l) var(--r-l) 0 0;
  flex-wrap: wrap;
}
.ed-barra button {
  background: 0 0;
  color: var(--testo-2);
  padding: 4px 9px;
  font-size: 12.5px;
}
.ed-barra button:hover {
  background: var(--sup);
  border-color: var(--bordo);
}
.segnaposti {
  max-height: 680px;
  overflow: auto;
  padding: 14px;
}
.cerca input,
.guida-indice .cerca input,
.segnaposti .cerca input {
  width: 100%;
}
.segnaposti h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tenue-2);
  margin: 16px 0 6px;
  font-weight: 600;
}
.segnaposti button {
  display: block;
  width: 100%;
  text-align: left;
  background: 0 0;
  border: 0;
  padding: 6px 8px;
  margin: 0;
  font-weight: 400;
  white-space: normal;
  box-shadow: none;
  border-radius: 6px;
}
.segnaposti button:hover {
  background: var(--pri-tenue);
  color: var(--pri);
}
.guida-sintassi code,
.segnaposti code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.segnaposti code {
  font-size: 11px;
  color: var(--tenue-2);
  display: block;
}
.guida-sintassi,
.segnaposti button {
  font-size: 13px;
  color: var(--testo-2);
}
.guida-sintassi td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--bordo-l);
  vertical-align: top;
}
.guida-sintassi code {
  background: var(--sup-2);
  border: 1px solid var(--bordo);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
  white-space: nowrap;
}
.imp {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--bordo);
}
.imp:first-of-type {
  padding-top: 0;
}
.imp h2 {
  font-size: 15px;
  margin-bottom: 4px;
}
.imp > div:first-child p {
  color: var(--tenue);
  font-size: 13.5px;
  margin: 0;
}
.firma-studio-box {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.firma-studio-box .anteprima {
  width: 280px;
  height: 100px;
  border: 1px solid var(--bordo);
  border-radius: var(--r);
  background: var(--sup);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(var(--bordo), var(--bordo));
  background-size: 80% 1px;
  background-repeat: no-repeat;
  background-position: center 78%;
}
.firma-studio-box .anteprima img {
  max-width: 250px;
  max-height: 84px;
}
.pad-studio {
  height: 200px;
  border: 1px dashed var(--bordo-forte);
  border-radius: var(--r-l);
  background: var(--sup);
  position: relative;
}
.pad-studio canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.modale {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  z-index: 40;
}
.modale > .card {
  width: 100%;
  max-width: 640px;
  height: 100vh;
  overflow: auto;
  border-radius: 0;
  border: 0;
  box-shadow: var(--ombra-3);
  padding: 0;
  animation: entra 0.18s ease-out;
}
.modale.centro {
  align-items: center;
  justify-content: center;
}
.modale.centro > .card {
  height: auto;
  max-width: 380px;
  border-radius: var(--r-l);
  padding: 24px;
  text-align: center;
}
.pann-testa {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--bordo);
  position: sticky;
  top: 0;
  background: var(--sup);
  z-index: 1;
}
.pann-testa h2 {
  margin: 0 0 4px;
  font-size: 17px;
}
.pann-corpo,
.pann-testa {
  padding: 20px 24px;
}
.pann-corpo h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tenue);
  margin: 22px 0 10px;
  font-weight: 600;
}
.dati {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 12px;
  font-size: 13.5px;
}
.lista-doc {
  border: 1px solid var(--bordo);
  border-radius: var(--r-l);
  overflow: hidden;
}
.lista-doc .r {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--bordo-l);
}
.lista-doc .r:last-child {
  border-bottom: 0;
}
.lista-doc .r .n {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
}
.lista-doc .r .n b {
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cronologia {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cronologia li {
  position: relative;
  padding: 0 0 16px 26px;
  font-size: 13.5px;
}
.cronologia li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pri);
  box-shadow: 0 0 0 3px var(--pri-tenue);
}
.cronologia li::after {
  content: "";
  position: absolute;
  left: 8.5px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--bordo);
}
.cronologia li:last-child::after {
  display: none;
}
.cronologia small {
  display: block;
  color: var(--tenue);
}
.accesso-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.accesso-lato {
  background: #0f1b3d;
  color: #c8d1e8;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: radial-gradient(circle at 80% 10%, rgba(29, 78, 216, 0.45), transparent 50%);
}
.accesso-lato h2 {
  color: #fff;
  font-size: 26px;
  line-height: 1.3;
  max-width: 420px;
  font-weight: 600;
}
.accesso-lato ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.accesso-lato li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14.5px;
}
.accesso-lato li .ic {
  color: #8fb0ff;
}
.accesso-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--sup);
}
.accesso-form > div {
  width: 100%;
  max-width: 400px;
}
.accesso-form .logo-segno {
  width: 44px;
  height: 44px;
  font-size: 16px;
  margin-bottom: 22px;
}
.accesso-form button {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
}
.guida-indice a,
.nota {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
}
.nota {
  background: var(--attesa-bg);
  color: var(--attesa-testo);
  border: 1px solid var(--attesa-bordo);
  border-radius: var(--r);
  padding: 10px 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.nota .ic {
  margin-top: 1px;
}
.nota.info {
  background: var(--pri-tenue);
  color: var(--pri-testo);
  border-color: var(--pri-bordo);
}
@media (max-width: 1000px) {
  .lato {
    grid-template-columns: 1fr;
  }
  .riep {
    position: static;
  }
  .imp {
    gap: 12px;
  }
  .accesso-wrap,
  .imp {
    grid-template-columns: 1fr;
  }
  .accesso-lato {
    display: none;
  }
}
@media (max-width: 1500px) {
  .logo b {
    display: none;
  }
  #menu nav a {
    padding: 9px 11px;
  }
}
@media (max-width: 1100px) {
  .logo b {
    display: block;
  }
  #menu {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
  }
  #menu .pill {
    order: 5;
    width: 100%;
    overflow-x: auto;
    margin: 0;
    scrollbar-width: none;
  }
  #menu .pill::-webkit-scrollbar {
    display: none;
  }
  #menu nav a {
    padding: 8px 13px;
    font-size: 13.5px;
  }
  .logo small {
    display: none;
  }
  .tema-sel {
    margin-left: auto;
  }
  #vista {
    padding: 14px 16px 90px;
  }
}
.utente {
  margin: 0;
  border: 0;
  padding: 0;
}
.utente div,
table.t .nascondi-m {
  display: none;
}
#vista {
  padding: 18px 14px 60px;
}
.stats {
  grid-template-columns: 1fr 1fr;
}
.canali,
.editor,
.scelte3 {
  grid-template-columns: 1fr;
}
.testa h1 .ic {
  color: var(--attesa);
}
.testa h1 .av {
  width: 34px;
  height: 34px;
}
.vis-tit b,
html.blocca,
html.blocca body {
  overflow: hidden;
}
.visore {
  inset: 0;
  z-index: 60;
  background: var(--visore);
  display: flex;
  flex-direction: column;
  animation: sale 0.16s ease-out;
}
.vis-barra {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--sup);
  border-bottom: 1px solid var(--bordo);
}
.vis-indietro {
  font-weight: 600;
  color: var(--pri) !important;
}
.vis-tit {
  flex: 1;
  min-width: 0;
}
.vis-tit b {
  display: block;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vis-tit small {
  color: var(--tenue);
  font-size: 12px;
}
.vis-az {
  display: flex;
  gap: 4px;
  align-items: center;
}
.vis-az [data-z] {
  font-size: 17px;
  width: 32px;
  padding: 3px 0;
}
.vis-nav {
  justify-content: center;
  gap: 10px;
  padding: 6px;
  background: var(--sup);
  border-bottom: 1px solid var(--bordo);
  font-size: 13px;
  color: var(--tenue);
}
.guida-cap h2,
.vis-nav,
.vis-pagine {
  display: flex;
  align-items: center;
}
.vis-pagine {
  flex: 1;
  overflow: auto;
  padding: 20px 12px 40px;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}
.vis-pag {
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.15);
  max-width: 100%;
  height: auto;
}
@media (max-width: 600px) {
  .vis-az [data-z],
  .vis-indietro span,
  .vis-scarica span {
    display: none;
  }
}
.guida-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}
.guida-indice,
.guida-testo {
  display: flex;
  flex-direction: column;
}
.guida-indice {
  position: sticky;
  top: 20px;
  padding: 12px;
  gap: 2px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.guida-indice .cerca {
  margin-bottom: 8px;
}
.guida-indice a {
  align-items: baseline;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--testo-2);
  text-decoration: none !important;
}
.guida-indice a span {
  color: var(--tenue-2);
  font-size: 12px;
  min-width: 16px;
}
.guida-indice a:hover {
  background: var(--sup-2);
}
.guida-indice a.on {
  background: var(--pri-tenue);
  color: var(--pri);
}
.guida-testo {
  gap: 16px;
  min-width: 0;
}
.guida-cap {
  scroll-margin-top: 16px;
}
.guida-cap h2 {
  gap: 10px;
  font-size: 17px;
}
.g-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--pri-tenue);
  color: var(--pri);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.g-corpo {
  color: var(--testo-2);
  font-size: 14.5px;
  line-height: 1.65;
}
.g-corpo h4 {
  font-size: 14px;
  margin: 1.2em 0 0.3em;
  color: var(--testo);
}
.g-corpo ol,
.g-corpo ul {
  padding-left: 1.3em;
  margin: 0.4em 0;
}
.g-corpo li {
  margin: 0.25em 0;
}
.g-corpo table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6em 0;
}
.g-corpo td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--bordo-l);
  vertical-align: top;
  font-size: 14px;
}
.g-corpo td:first-child {
  white-space: nowrap;
  width: 1%;
}
@media (max-width: 1000px) {
  .guida-wrap {
    grid-template-columns: 1fr;
  }
  .guida-indice {
    position: static;
    max-height: none;
  }
}
@media print {
  #menu,
  .demo-banda,
  .guida-indice,
  .testa .azioni,
  .toast {
    display: none !important;
  }
  #layout,
  .guida-wrap {
    display: block;
  }
  #vista {
    padding: 0;
    max-width: none;
  }
  body {
    background: #fff;
  }
  .guida-cap {
    box-shadow: none;
    border: 0;
    page-break-inside: avoid;
    break-inside: avoid;
    padding: 10px 0;
  }
  .guida-cap[hidden] {
    display: block !important;
  }
  .testa {
    border: 0;
  }
}
.agg-gruppo {
  margin-bottom: 18px;
}
.agg-gruppo h4 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.agg-griglia {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
button.agg {
  background: var(--sup);
  color: var(--testo);
  border: 1px solid var(--bordo);
  box-shadow: var(--ombra-1);
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  white-space: normal;
  padding: 10px 12px;
  gap: 2px;
}
button.agg:hover {
  background: var(--pri-tenue);
  border-color: var(--pri-bordo);
}
.agg-gruppo h4,
button.agg b {
  font-weight: 600;
}
.agg-box small,
.agg-gruppo h4,
button.agg small {
  color: var(--tenue);
  font-size: 12px;
}
button.agg small {
  font-weight: 400;
}
.agg-form {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.agg-box {
  border: 1px solid var(--bordo);
  border-radius: var(--r-l);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agg-box b,
button.agg b {
  font-size: 13.5px;
}
.agg-box small {
  margin-top: -6px;
}
.agg-box .chk {
  margin: 0;
  font-size: 13px;
}
.agg-box button {
  align-self: flex-start;
}
.agg-avanzati summary {
  cursor: pointer;
  color: var(--pri);
  font-weight: 500;
  font-size: 13.5px;
  margin: 6px 0 10px;
}
#liveDoc {
  max-height: 640px;
  overflow: auto;
}
.ed-barra .ed-sep {
  width: 1px;
  background: var(--bordo);
  margin: 2px 6px;
}
.ed-barra button:disabled {
  opacity: 0.35;
}
.num-fasc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cartella-bg);
  color: var(--attesa-testo);
  border: 1px solid var(--attesa-bordo);
  border-radius: 6px;
  padding: 2px 9px 2px 7px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.num-fasc .ic {
  width: 14px;
  height: 14px;
  color: var(--attesa);
}
.testa h1 .num-fasc {
  font-size: 17px;
  padding: 4px 12px 4px 9px;
}
.testa h1 .num-fasc .ic {
  width: 18px;
  height: 18px;
}
.num-lista,
.ricerca-grande {
  display: flex;
  align-items: center;
}
.num-lista {
  gap: 4px;
  flex-wrap: wrap;
}
.num-lista .num-fasc {
  font-size: 12px;
  padding: 1px 7px 1px 5px;
}
.arch-stats .stat {
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--sup);
  display: block;
  box-shadow: var(--ombra-1);
}
.arch-stats .stat:hover {
  border-color: var(--bordo-forte);
  background: var(--sup);
}
.arch-stats .stat.sel {
  border-color: var(--pri);
  box-shadow: 0 0 0 1px var(--pri);
}
.ricerca-grande {
  gap: 10px;
  border: 1px solid var(--bordo-forte);
  border-radius: var(--r-l);
  padding: 6px 8px 6px 16px;
  margin-bottom: 16px;
  box-shadow: var(--ombra-2);
}
.ricerca-grande:focus-within {
  border-color: var(--pri);
}
.ricerca-grande > .ic {
  color: var(--tenue);
}
.ricerca-grande input {
  border: 0;
  box-shadow: none;
  font-size: 16px;
  padding: 10px 0;
}
.schede-arch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--bordo);
  padding: 3px;
}
.schede-arch button {
  background: 0 0;
  color: var(--testo-2);
  padding: 6px 12px;
  font-size: 13.5px;
}
.schede-arch button:hover {
  background: var(--sup);
}
.schede-arch button.on,
.schede-ed button.on {
  background: var(--sup);
  color: var(--pri);
  box-shadow: var(--ombra-1);
}
.schede-arch .conta {
  font-size: 12px;
  color: var(--tenue);
  font-weight: 600;
}
.doc-griglia {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  padding: 16px 18px;
}
.doc-card {
  border: 1px solid var(--bordo);
  border-radius: var(--r-l);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--sup);
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.doc-card:hover {
  border-color: var(--bordo-forte);
  box-shadow: var(--ombra-2);
}
.doc-card .fico {
  width: 40px;
  height: 40px;
}
.dc-n b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dc-n small,
.imp-testa p,
.qr-testo span {
  color: var(--tenue);
  font-size: 12px;
}
.dc-az {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
@media (max-width: 900px) {
  .schede-arch button {
    padding: 6px 8px;
  }
  .ricerca-grande input {
    font-size: 15px;
  }
}
.modale.larga > .card {
  max-width: 1040px;
  width: 96vw;
  height: auto;
  max-height: 94vh;
  border-radius: var(--r-l);
  padding: 0;
  text-align: left;
  overflow: auto;
}
.imp {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.imp-testa {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.imp-testa h2 {
  font-size: 19px;
  margin: 0 0 4px;
}
.imp-testa p {
  margin: 0;
  font-size: 14px;
}
.imp-anteprima summary,
.imp-drop {
  cursor: pointer;
  color: var(--testo-2);
}
.imp-drop {
  border: 2px dashed var(--bordo-forte);
  border-radius: var(--r-l);
  padding: 44px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: var(--sup-2);
}
.imp-drop b {
  color: var(--testo);
  font-size: 16px;
}
.imp-drop.sopra,
.imp-drop:hover {
  border-color: var(--pri);
  background: var(--pri-tenue);
}
.imp-orig figcaption,
.imp-prog {
  color: var(--tenue);
  text-align: center;
}
.imp-prog {
  padding: 24px 0 10px;
}
.barra-prog {
  height: 8px;
  background: var(--sup-2);
  overflow: hidden;
  border: 1px solid var(--bordo);
  margin-bottom: 12px;
}
.barra-prog i {
  display: block;
  height: 100%;
  width: 4%;
  background: var(--pri);
  transition: width 0.25s;
}
.imp-corpo {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  min-height: 0;
}
.imp-orig {
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 4px;
}
.imp-orig figure {
  margin: 0;
}
.imp-orig img {
  width: 100%;
  border: 1px solid var(--bordo-forte);
  border-radius: 6px;
  display: block;
  box-shadow: var(--ombra-1);
}
.imp-orig figcaption {
  font-size: 12px;
  margin-top: 3px;
}
.imp-campi,
.imp-orig,
.imp-ris {
  display: flex;
  flex-direction: column;
}
.imp-ris {
  gap: 14px;
  min-width: 0;
}
.imp-campi {
  gap: 8px;
  max-height: 30vh;
  overflow: auto;
  border: 1px solid var(--bordo);
  border-radius: 10px;
  padding: 8px;
  background: var(--sup-2);
}
.imp-anteprima pre,
.imp-campo {
  border: 1px solid var(--bordo);
  border-radius: 8px;
}
.imp-campo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: var(--sup);
  padding: 8px 10px;
}
.imp-campo small {
  color: var(--testo-2);
  font-style: italic;
  overflow-wrap: anywhere;
}
.imp-anteprima summary {
  font-weight: 500;
}
.imp-anteprima pre {
  background: var(--sup-2);
  padding: 12px;
  max-height: 20vh;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12.5px;
}
.imp-piede {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--bordo);
  padding-top: 14px;
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .imp-corpo {
    grid-template-columns: 1fr;
  }
  .imp-orig {
    flex-direction: row;
    max-height: none;
  }
  .imp-orig figure {
    width: 110px;
    flex: none;
  }
  .imp-campo {
    grid-template-columns: 1fr;
  }
}
.aiuto-campo {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--tenue);
}
.qr-box,
.qr-img {
  border: 1px solid var(--bordo);
}
.qr-box {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  text-align: left;
  margin: 22px auto 0;
  max-width: 640px;
  padding: 18px;
  border-radius: var(--r-l);
  background: var(--sup);
}
.qr-img {
  width: 170px;
  flex: none;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  line-height: 0;
}
.qr-img svg {
  width: 100%;
  height: auto;
  display: block;
}
.qr-testo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.qr-testo b {
  font-size: 15px;
}
.qr-testo span {
  font-size: 13.5px;
}
.qr-picc {
  margin-top: 12px;
  padding: 12px;
  gap: 14px;
}
.qr-picc .qr-img {
  width: 120px;
}
.modale.qr-pieno > .card {
  max-width: min(92vw, 480px);
  width: 100%;
}
.qr-pieno .qr-img {
  width: 100%;
  margin: 0 auto 14px;
}
@media (max-width: 560px) {
  .qr-box {
    flex-direction: column;
    text-align: center;
  }
  .qr-testo {
    align-items: center;
  }
}
.ed-rib,
.schede-ed {
  display: flex;
  border: 1px solid var(--bordo);
}
.schede-ed {
  gap: 4px;
  background: var(--sup-2);
  border-radius: 9px;
  padding: 3px;
  width: fit-content;
  margin: 18px 0 12px;
}
.schede-ed button {
  background: 0 0;
  border: 0;
  color: var(--testo-2);
  box-shadow: none;
  padding: 6px 14px;
  font-size: 13.5px;
}
.ed-rib {
  position: sticky;
  top: 0;
  z-index: 12;
  flex-wrap: wrap;
  background: var(--sup);
  border-radius: 10px;
  padding: 6px 8px;
  margin-bottom: 14px;
  box-shadow: var(--ombra-2);
}
.rb-gr {
  display: flex;
  gap: 3px;
  align-items: center;
  padding-right: 10px;
  border-right: 1px solid var(--bordo);
}
.rb-gr:last-child {
  border-right: 0;
  padding-right: 0;
}
.rb-dx {
  margin-left: auto;
  gap: 8px;
}
.rb,
.rb-tg {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--testo-2);
}
.rb {
  background: 0 0;
  border: 1px solid transparent;
  box-shadow: none;
  padding: 5px 9px;
  gap: 5px;
  border-radius: 7px;
}
.rb:hover {
  background: var(--sup-2);
  border-color: var(--bordo);
}
.rb.on {
  background: var(--pri-tenue);
  color: var(--pri);
  border-color: var(--pri-bordo);
}
.rb[data-r="b"] span {
  font-weight: 800;
}
.rb[data-r="i"] span {
  font-style: italic;
  font-family: serif;
}
.ed-rib select {
  width: auto;
  padding: 5px 8px;
  font-size: 13px;
}
.rb-tg {
  gap: 6px;
  cursor: pointer;
}
.ed-foglio-box {
  background: var(--bg);
  padding: 6px 0 30px;
}
.ed-foglio {
  max-width: 860px;
  margin: 0 auto;
  min-height: 520px;
  padding: 54px 64px;
  outline: 0;
  cursor: text;
}
.ed-foglio .dl {
  position: relative;
  margin: 0;
  border-radius: 3px;
}
.ed-foglio .dt {
  outline: 0;
  min-height: 1.4em;
  white-space: pre-wrap;
  border-radius: 3px;
  padding: 0 2px;
}
.ed-foglio .dl:hover > .dt {
  background: #f6f9ff;
}
.ed-foglio .dt:focus {
  background: #f1f6ff;
  box-shadow: 0 0 0 2px #dbe6ff;
}
.ed-foglio .dt:empty::before {
  content: attr(data-vuoto);
  color: #b0b6c2;
}
.ed-foglio .dl-freccia .dt,
.ed-foglio .dl-p .dt,
.ed-foglio .dl-punto .dt,
.ed-foglio .dl-rientro .dt {
  text-align: justify;
}
.ed-foglio .dl-p {
  margin-bottom: 0.45em;
}
.ed-foglio .dl-vuota .dt {
  min-height: 0.55em;
}
.ed-foglio .dl-vuota .dt:focus {
  min-height: 1.4em;
}
.ed-foglio .dl-h1 .dt,
.ed-foglio .dl-titolone .dt {
  text-align: center;
  font-weight: 700;
  font-size: 1.07em;
  margin: 0.2em 0 0.5em;
}
.ed-foglio .dl-titolone .dt {
  font-size: 1.4em;
  margin: 0.4em 0 0.3em;
}
.ed-foglio .dl-h2 .dt {
  font-weight: 700;
  margin: 1.1em 0 0.3em;
}
.ed-foglio .dl-sezione .dt {
  text-align: center;
  margin: 1em 0 0.2em;
}
.ed-foglio .dl-sezione .dt,
.ed-foglio .dl-sottolineato .dt {
  font-weight: 700;
  text-decoration: underline;
}
.ed-foglio .dl-centro .dt {
  text-align: center;
}
.ed-foglio .dl-destra .dt {
  text-align: right;
}
.ed-foglio .dl-piccolo .dt {
  text-align: center;
  font-size: 0.8em;
  color: #666;
}
.ed-foglio .dl-freccia .dt,
.ed-foglio .dl-punto .dt,
.ed-foglio .dl-rientro .dt {
  margin-left: 1.3em;
  position: relative;
}
.ed-foglio .dl-punto .dt::before {
  content: "•";
  position: absolute;
  left: -1em;
}
.ed-foglio .dl-freccia .dt::before {
  content: "➤";
  position: absolute;
  left: -1.2em;
  font-size: 0.8em;
}
.chip,
.ed-foglio .dl-obj {
  margin: 0.4em 0;
  padding: 4px 6px;
  border: 1px dashed transparent;
  cursor: pointer;
  user-select: none;
}
.ed-foglio .dl-obj:hover {
  border-color: #c8ccd4;
}
.ed-foglio .dl-obj.sel {
  border-color: var(--pri);
  background: #f1f6ff;
}
.ed-foglio .obj-eti {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  letter-spacing: 0.02em;
}
.ed-foglio .obj-riq {
  text-align: left;
}
.ed-foglio .dl-coda {
  min-height: 48px;
  cursor: text;
}
.chip {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78em;
  line-height: 1.5;
  padding: 0 7px;
  margin: 0 1px;
  border-radius: 5px;
  border: 1px solid;
  white-space: nowrap;
  user-select: all;
  vertical-align: baseline;
}
.chip-cliente {
  background: #eaf1ff;
  border-color: #bcd0fb;
  color: #1d4ed8;
}
.chip-studio {
  background: #e8f7ee;
  border-color: #a9dcbc;
  color: #166534;
}
.chip-pratica {
  background: #fff3e0;
  border-color: #f5c98a;
  color: #b45309;
}
.chip-scelta {
  background: #f3e8ff;
  border-color: #d4b5f5;
  color: #7e22ce;
}
.chip-data,
.chip-fascicolo {
  background: #eef0f4;
  border-color: #cdd3de;
  color: #374151;
}
.chip-box {
  background: #fff;
  border-color: #9aa0aa;
  color: #111;
}
.chip-sez {
  background: #fdecef;
  border-color: #f4b6c0;
  color: #be123c;
  font-weight: 600;
}
.chip-altro {
  background: #eee;
  border-color: #ccc;
  color: #444;
}
.chip:hover {
  filter: brightness(0.96);
}
.cmenu {
  position: fixed;
  z-index: 70;
  width: 300px;
  background: var(--sup);
  border: 1px solid var(--bordo-forte);
  border-radius: 12px;
  box-shadow: var(--ombra-3);
  padding: 6px;
  font-family: var(--font, inherit);
  font-size: 13.5px;
}
.cm-cerca input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13.5px;
}
.cmenu ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.cm-lista {
  max-height: 70vh;
  overflow: visible;
}
.cm-ris,
.cm-sub > ul {
  max-height: 60vh;
  overflow: auto;
}
.cm-sub {
  position: relative;
}
.cm-sub > span,
.cm-voce {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--testo);
}
.cm-voce {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.cm-voce b {
  font-weight: 500;
}
.cm-voce small {
  color: var(--tenue);
  font-size: 12px;
  font-family: ui-monospace, Menlo, monospace;
}
.cm-sub > span i {
  font-style: normal;
  color: var(--tenue);
}
.cm-sub:hover > span,
.cm-voce.on,
.cm-voce:hover {
  background: var(--pri-tenue);
}
.cm-sub > ul {
  display: none;
  position: absolute;
  left: calc(100% + 4px);
  top: -6px;
  width: 320px;
  max-height: 72vh;
  background: var(--sup);
  border: 1px solid var(--bordo-forte);
  border-radius: 12px;
  box-shadow: var(--ombra-3);
  padding: 6px;
  margin: 0;
}
.cm-sub:hover > ul,
.ed-pal b {
  display: block;
}
.cmenu.flip .cm-sub > ul {
  left: auto;
  right: calc(100% + 4px);
}
.cm-int {
  padding: 8px 10px 3px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tenue);
  font-weight: 600;
}
.cm-sep {
  height: 1px;
  background: var(--bordo);
  margin: 5px 4px;
}
.ed-chiedi {
  text-align: left;
  max-width: 420px;
}
.ed-chiedi h3 {
  margin: 0 0 12px;
}
@media (max-width: 800px) {
  .ed-foglio {
    padding: 28px 18px;
  }
  .cm-sub > ul {
    position: static;
    width: auto;
    box-shadow: none;
  }
  .cm-sub:hover > ul {
    display: block;
  }
}
.ed-rib {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.rb-riga {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.rb[data-r="u"] span {
  text-decoration: underline;
}
.rb[data-r="col"] span {
  color: #b91c1c;
  font-weight: 700;
  border-bottom: 3px solid #b91c1c;
  line-height: 1;
  padding-bottom: 1px;
}
.rb[data-r="evid"] span {
  color: #111827;
  background: #fde68a;
  padding: 0 4px;
  border-radius: 3px;
}
.ed-pal {
  position: fixed;
  z-index: 75;
  background: var(--sup);
  border: 1px solid var(--bordo-forte);
  border-radius: 12px;
  box-shadow: var(--ombra-3);
  padding: 10px;
  width: 200px;
}
.ed-pal b {
  font-size: 12.5px;
  color: var(--testo-2);
  margin-bottom: 8px;
}
.pal-gr {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.sw {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c8ccd4;
  padding: 0;
  cursor: pointer;
}
.sw:hover {
  box-shadow: 0 0 0 2px var(--pri);
}
.pal-no {
  width: 100%;
  font-size: 13px;
  padding: 5px;
}
.edtab {
  border-collapse: collapse;
  width: 100%;
  margin: 0.6em 0;
  font-size: 0.92em;
}
.edtab td,
.edtab th {
  border: 1px solid #9aa0aa;
  padding: 4px 8px;
  vertical-align: top;
  min-width: 40px;
  outline: 0;
  white-space: pre-wrap;
}
.edtab th {
  background: #eef0f4;
  font-weight: 700;
}
.edtab td:focus,
.edtab th:focus {
  background: #f1f6ff;
  box-shadow: inset 0 0 0 2px #93b4fb;
}
.chip.spento,
.ed-foglio .spento {
  opacity: 0.32;
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}
.barra-salva {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1d2433;
  color: #fff;
  padding: 10px 12px 10px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.35);
  font-size: 14px;
}
.barra-salva[hidden] {
  display: none;
}
.barra-salva .pallino {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  margin-right: 9px;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}
.barra-salva .ghost {
  color: #cbd5e1;
}
.barra-salva .ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.modale.medio > .card {
  max-width: 520px;
  width: 94vw;
  text-align: left;
}
.modale.medio h3 {
  margin: 0 0 8px;
}
.dlg-az {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.dlg-az button {
  width: 100%;
  justify-content: center;
}
.peric-txt {
  color: var(--ko);
}
.bozza-riga,
.vers-orig,
.vers-riga {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--bordo);
  border-radius: 10px;
  margin-top: 8px;
  background: var(--sup-2);
}
.bozza-riga small,
.vers-orig small,
.vers-riga small {
  display: block;
  color: var(--tenue);
  font-size: 12.5px;
}
.vers-orig {
  background: var(--pri-tenue);
  border-color: var(--pri-bordo);
  margin-bottom: 14px;
}
.orig-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 46vh;
  overflow: auto;
  margin-top: 10px;
}
.orig-lista small {
  display: block;
  color: var(--tenue);
}
.nota.ok {
  background: var(--ok-bg);
  color: var(--ok-testo);
  border-color: var(--ok-bordo);
}
.nota.ko {
  background: var(--ko-bg);
  color: var(--ko-testo);
  border-color: var(--ko-bordo);
}
.fp-nav,
.rin-nome {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rin-nome input,
.voce-nuova input {
  flex: 1;
}
.modale.firma-pdf > .card {
  max-width: 760px;
  width: 96vw;
  padding: 22px 24px;
  max-height: 96vh;
  overflow: auto;
}
.fp-nav {
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.fp-area {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--bordo-forte);
  background: #fff;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
}
.fp-area canvas {
  display: block;
  max-width: 100%;
}
.fp-sel {
  position: absolute;
  border: 2px dashed var(--pri);
  background: rgba(47, 91, 231, 0.14);
  pointer-events: none;
}
.fp-ris {
  margin-top: 12px;
}
.fp-anteprima {
  margin-top: 4px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--r);
  padding: 8px;
}
.fp-anteprima img {
  max-height: 100px;
  max-width: 100%;
}
.avviso-blocco {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--avviso-bg, #fff7e0);
  border: 1px solid var(--avviso-bordo, #f0d38a);
  color: var(--avviso-testo, #6b4e00);
  font-size: 14px;
}
.avviso-blocco b {
  font-size: 15px;
}
.ed-bloccato {
  opacity: 0.62;
  filter: grayscale(0.25);
  user-select: text;
}
.ed-bloccato * {
  cursor: default !important;
}
html[data-tema="scuro"] .avviso-blocco {
  --avviso-bg: #3a2f10;
  --avviso-bordo: #6b5520;
  --avviso-testo: #f3dc9a;
}
.campo input.calcolato {
  background: #eaf6ee;
  border-color: #8fcfa3;
  color: #14532d;
  font-weight: 600;
}
.aiuto-campo.calc {
  color: #14532d;
  font-weight: 500;
}
html[data-tema="scuro"] .campo input.calcolato {
  background: #16301f;
  border-color: #2f6b45;
  color: #bdf0cc;
}
html[data-tema="scuro"] .aiuto-campo.calc {
  color: #bdf0cc;
}
.voci-btn {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  min-height: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 999px;
  background: 0 0;
  color: var(--pri-btn, var(--pri));
  border: 1px solid var(--bordo-forte);
  cursor: pointer;
}
.voci-btn svg {
  width: 13px;
  height: 13px;
}
.voci-btn:hover {
  background: var(--pri-tenue);
  border-color: var(--pri);
}
.imp-ris-t {
  font-weight: 500;
  color: var(--testo-2);
  margin-bottom: -6px;
}
.imp-doc {
  max-height: 36vh;
  overflow: auto;
  padding: 22px 26px;
  font-size: 12.5px;
}
.imp-doc.classico {
  font-family: "Times New Roman", Times, serif;
}
.parti-lista .n b {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.parti-lista .r {
  align-items: center;
}
.voce-r {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  border-bottom: 1px solid var(--bordo-l);
}
.voce-r .chk {
  flex: 1;
  margin: 8px 0;
}
.voce-x {
  color: var(--tenue);
  padding: 4px 8px;
  margin-top: 4px;
}
.voce-x:hover {
  color: var(--ko);
  background: var(--ko-bg);
}
.voce-nuova {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.visore {
  position: fixed;
}
.vis-contapag {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  z-index: 5;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(28, 28, 32, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  white-space: nowrap;
}
.vis-contapag.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.attiva-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 1px 9px;
  min-height: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  border-radius: 99px;
  background: 0 0;
  color: var(--pri);
  border: 1px solid var(--pri-bordo);
  vertical-align: middle;
}
.attiva-btn .ic,
.attiva-btn svg {
  width: 12px;
  height: 12px;
}
.attiva-btn:hover {
  background: var(--pri-tenue);
  border-color: var(--pri);
  color: var(--pri);
}
.pag-scelta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}
.pag-scelta input {
  width: 72px;
  padding: 6px 8px;
}
.btn-indietro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 99px;
  color: var(--testo);
  border: 1px solid var(--bordo-forte);
}
.btn-indietro .ic,
.btn-indietro svg {
  width: 16px;
  height: 16px;
}
.parti-mod > .card {
  max-width: 980px;
  display: flex;
  flex-direction: column;
}
.parti-mod .pt-testa {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 28px 14px;
  border-bottom: 1px solid var(--bordo);
}
.parti-mod .pt-testa h2 {
  margin: 0 0 4px;
  font-size: 22px;
}
.parti-mod .pt-testa p {
  margin: 0;
  font-size: 14px;
}
.parti-mod .pt-corpo {
  padding: 14px 28px 6px;
  overflow: auto;
}
.parti-mod .pt-nota {
  margin: 0 0 12px;
  font-size: 14px;
}
.parti-mod .pt-tab {
  border: 1px solid var(--bordo);
  border-radius: var(--r);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.parti-mod .pt-tab td {
  padding: 11px 16px;
  font-size: 14px;
}
.parti-mod .pt-tab th {
  padding: 10px 16px;
}
.parti-mod .pt-piede {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 28px 22px;
  border-top: 1px solid var(--bordo);
  background: var(--sup-2);
}
.avviso-annulla {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 520px;
  max-width: 760px;
  padding: 12px 12px 12px 20px;
  background: var(--toast-bg);
  color: var(--toast-tx);
  box-shadow: var(--ombra-3);
  font-size: 14px;
  overflow: hidden;
  animation: entra 0.18s ease-out;
}
.avviso-annulla .aa-testo {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avviso-annulla .aa-ok {
  background: var(--pri-btn);
  color: var(--pri-on);
  border-color: var(--pri-btn);
  padding: 7px 14px;
  font-size: 13.5px;
}
.avviso-annulla .aa-x {
  background: 0 0;
  border: 0;
  box-shadow: none;
  color: inherit;
  opacity: 0.7;
  padding: 6px 10px;
}
.avviso-annulla .aa-x:hover {
  opacity: 1;
  background: rgba(127, 127, 127, 0.2);
}
.avviso-annulla .aa-barra {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--pri);
  transform-origin: left;
  animation: aa-tempo 15s linear forwards;
}
:root {
  --rb: 8px;
}
#menu {
  -webkit-backdrop-filter: none;
  background: var(--bg);
  border-bottom: 1px solid var(--bordo);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 0;
}
#menu,
.modale {
  backdrop-filter: none;
}
.btn,
button {
  padding: 8px 16px;
  letter-spacing: 0.005em;
}
.btn.picc,
button.picc {
  border-radius: var(--rb);
  min-height: 30px;
  padding: 5px 11px;
}
.btn:not(.sec):not(.ghost):not(.peric),
button:not(.sec):not(.ghost):not(.peric) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%);
  box-shadow:
    inset 0-2px 0 rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(20, 18, 31, 0.12);
  background-image: none;
  box-shadow: none;
  border-color: var(--pri-btn);
}
.btn:not(.sec):not(.ghost):not(.peric):active,
button:not(.sec):not(.ghost):not(.peric):active {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.18);
}
.btn.sec,
button.sec {
  background: var(--sup);
  border-color: var(--bordo-forte);
  box-shadow: inset 0-1px 0 var(--bordo);
}
.btn.sec:hover,
button.sec:hover {
  border-color: var(--pri);
  background: var(--sup);
}
.btn.ghost,
button.ghost,
input,
select,
textarea {
  border-radius: var(--rb);
}
#menu .pill {
  padding: 4px;
  gap: 2px;
}
#menu nav a {
  padding: 8px 12px;
  position: relative;
  border-radius: 9px;
}
#menu nav a.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -5px;
  height: 3px;
  border-radius: 2px;
  background: var(--pri);
}
:root[data-tema="scuro"] #menu nav a.on::after {
  background: var(--ok);
}
.tema-sel button {
  min-height: 0;
  box-shadow: none;
  border: 0;
}
.tema-sel button.on {
  box-shadow: none;
}
.utente button {
  min-height: 0;
}
.attiva-btn,
.btn-indietro,
.utente button,
.voci-btn {
  border-radius: var(--rb);
}
.btn-indietro {
  min-height: 32px;
  padding: 5px 12px 5px 9px;
}
.passo .num {
  border-radius: 8px;
}
.av {
  border-radius: 10px;
}
.vis-contapag {
  border-radius: 6px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(20, 18, 31, 0.82);
}
.avviso-annulla {
  border-radius: 10px;
}
.barra-prog {
  border-radius: 4px;
}
.aa-x,
.attiva-btn,
.btn-indietro,
.ed-barra button,
.tema-sel button,
.utente button,
.voce-x,
.voci-btn {
  background-image: none !important;
}
.btn-indietro {
  border-color: var(--bordo-forte) !important;
  box-shadow: inset 0-1px 0 var(--bordo) !important;
}
.btn-indietro:hover {
  border-color: var(--pri) !important;
}
.attiva-btn,
.voci-btn {
  box-shadow: none !important;
}
.voci-btn {
  border-color: var(--bordo-forte) !important;
}
.attiva-btn {
  border-color: var(--pri-bordo) !important;
}
.aa-x,
.ed-barra button,
.utente button,
.voce-x {
  border-color: transparent !important;
  box-shadow: none !important;
}
.ed-foglio .dl-num1 .dt,
.ed-foglio .dl-num2 .dt {
  margin-left: 1.3em;
  text-indent: -1.3em;
  text-align: left;
}
.ed-foglio .dl-num2 .dt {
  margin-left: 3.6em;
}
.stato-attivo {
  display: inline-flex;
  min-height: 0 !important;
  padding: 2px 10px !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  border-radius: 6px !important;
  background: var(--ok-bg) !important;
  background-image: none !important;
  color: var(--ok-testo) !important;
  border: 1px solid var(--ok-bordo) !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-grid !important;
  height: 24px;
  box-sizing: border-box;
  align-items: center;
  justify-items: center;
}
.stato-attivo .sa-on .ic,
.stato-attivo .sa-on svg {
  width: 12px;
  height: 12px;
}
#menu nav a.on::after,
.stato-attivo .sa-off,
.stato-attivo:hover .sa-on {
  display: none;
}
.stato-attivo:hover {
  background: var(--ko-bg) !important;
  color: var(--ko-testo) !important;
  border-color: var(--ko-bordo) !important;
}
.stato-attivo:hover .sa-off {
  display: inline;
}
.stato-attivo .sa-off,
.stato-attivo .sa-on {
  grid-area: 1/1;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  line-height: 18px;
}
.stato-attivo .sa-off,
.stato-attivo:hover .sa-on {
  visibility: hidden;
}
.stato-attivo:hover .sa-off {
  visibility: visible;
}
:root {
  --rb: 10px;
}
.stats {
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ico num" "ico lab";
  column-gap: 14px;
  align-items: center;
  text-align: left;
  border: 0 !important;
  border-radius: 12px;
  padding: 14px 18px;
  font: inherit;
  color: inherit;
  min-height: 0;
}
.stat,
.stat:hover {
  box-shadow: none !important;
  background: var(--sup);
}
button.stat:hover {
  background: var(--pri-quasi) !important;
  transform: none;
}
.stat .riga {
  display: contents;
  color: var(--tenue);
  font-size: 13px;
  font-weight: 500;
}
.stat .ico {
  grid-area: ico;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0 !important;
  background: var(--sup-2);
  color: var(--testo-2);
}
.stat .ico .ic,
.stat .ico svg {
  width: 20px;
  height: 20px;
}
.stat b {
  grid-area: num;
  font-size: 26px !important;
  font-weight: 600;
  margin: 0 !important;
  line-height: 1.15;
  align-self: end;
}
.stat.ok .ico {
  background: var(--ok-bg);
  color: var(--ok);
}
.stat.att .ico {
  background: var(--attesa-bg);
  color: var(--attesa);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  border-radius: var(--rb);
  background: var(--sup-2);
  border: 1px solid transparent;
  box-shadow: none;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
select:hover,
textarea:hover {
  border-color: var(--bordo);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
select:focus,
textarea:focus {
  background: var(--sup);
  border-color: var(--pri);
  box-shadow: 0 0 0 3px var(--pri-fuoco);
}
#menu .pill,
.ricerca-grande {
  border: 0;
  border-radius: 12px;
  background: var(--sup);
}
.ricerca-grande input,
.ricerca-grande input:focus,
.ricerca-grande input:hover {
  background: 0 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.ricerca-grande:focus-within {
  box-shadow: 0 0 0 3px var(--pri-fuoco);
  border: 0;
}
.btn,
button {
  border-radius: var(--rb);
  min-height: 38px;
}
.btn:not(.sec):not(.ghost):not(.peric):hover,
button:not(.sec):not(.ghost):not(.peric):hover {
  background: var(--pri-btn-h);
  border-color: var(--pri-btn-h);
}
.btn:not(.sec):not(.ghost):not(.peric):active,
button:not(.sec):not(.ghost):not(.peric):active {
  box-shadow: none;
  transform: translateY(1px);
}
.btn.sec,
button.sec {
  border: 1px solid transparent;
  box-shadow: none;
  color: var(--testo);
}
.btn.sec:hover,
button.sec:hover {
  background: var(--pri-tenue);
  color: var(--pri-testo);
  border-color: transparent;
}
.btn.ghost:hover,
.btn.sec,
.card .btn.sec,
.card button.sec,
button.ghost:hover,
button.sec {
  background: var(--sup-2);
}
.btn.peric,
button.peric {
  border-radius: var(--rb);
}
.btn-indietro {
  background: var(--sup) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.btn-indietro:hover {
  color: var(--pri-testo);
}
.voci-btn {
  border: 0 !important;
  background: var(--sup-2) !important;
}
.attiva-btn,
.btn-indietro:hover {
  background: var(--pri-tenue) !important;
}
.attiva-btn {
  border: 0 !important;
}
.badge {
  border-radius: 8px;
}
.badge,
.tema-sel {
  border: 0;
}
.tema-sel button {
  border-radius: 9px;
}
#menu .nuova,
.logo-segno,
.schede-arch,
.tema-sel,
.utente .av {
  border-radius: 12px;
}
.schede-arch {
  border: 0 !important;
  background: var(--sup-2);
}
.schede-arch button {
  border-radius: 9px;
  border: 0 !important;
  box-shadow: none !important;
}
.arch-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.arch-stats .stat,
.stats .stat {
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ico num" "ico lab";
  width: 100%;
  box-shadow: none !important;
}
.arch-tab,
.card,
.ed-box,
.passo,
.riepilogo,
.tabella {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 14px !important;
}
.agg-box,
.doc-card,
.opzione {
  background: var(--sup-2);
  border-radius: 12px !important;
}
.opzione {
  border-color: transparent;
}
.opzione:hover {
  border-color: var(--bordo-forte);
}
.opzione.on {
  background: var(--pri-quasi);
  border-color: var(--pri);
}
.agg-box,
.doc-card {
  border: 0 !important;
}
.lista-doc {
  border-radius: 12px;
}
.stats:not([style]) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vista-sel {
  display: inline-flex;
  gap: 2px;
  background: var(--sup-2);
  border-radius: 10px;
  padding: 3px;
  margin-right: auto;
}
.vista-sel button {
  min-height: 32px !important;
  padding: 5px 12px !important;
  background: 0 0 !important;
  color: var(--testo-2) !important;
  border: 0 !important;
  font-size: 13.5px;
  font-weight: 500;
}
.vista-sel button .ic {
  width: 15px;
  height: 15px;
}
.vista-sel button.on {
  background: var(--sup) !important;
  color: var(--pri-testo) !important;
  box-shadow: 0 1px 2px rgba(20, 18, 31, 0.08) !important;
}
#filtri:has(.vista-sel) {
  width: 100%;
}
.bacheca {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  align-items: start;
}
.bc-col {
  border-radius: 14px;
  padding: 4px 4px 10px;
  min-height: 160px;
  transition:
    background 0.15s,
    outline-color 0.15s;
  outline: 2px dashed transparent;
  outline-offset: -2px;
}
.bc-col.sopra {
  background: var(--pri-quasi);
  outline-color: var(--pri);
}
.bc-testa {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px 14px;
  color: var(--testo-2);
  font-size: 14px;
  font-weight: 500;
}
.bc-testa b {
  font-family: var(--titoli);
  font-size: 30px;
  line-height: 1;
  color: var(--testo);
}
.bc-attesa .bc-testa b {
  color: var(--attesa);
}
.bc-aperti .bc-testa b {
  color: var(--ok);
}
.bc-chiusi .bc-testa b {
  color: var(--tenue);
}
.bc-lista {
  display: grid;
  gap: 12px;
}
.bc-carta {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  padding: 14px 16px 12px;
  transform: rotate(var(--giro));
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow:
    0 1px 2px rgba(20, 18, 31, 0.06),
    0 6px 14px -8px rgba(20, 18, 31, 0.18);
  cursor: grab;
}
.bc-carta:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    0 2px 4px rgba(20, 18, 31, 0.08),
    0 12px 24px -10px rgba(20, 18, 31, 0.25);
}
.bc-carta.trascina {
  opacity: 0.45;
  cursor: grabbing;
}
.bc-attesa .bc-carta {
  background: #fff4cc;
  color: #4a3305;
}
.bc-aperti .bc-carta {
  background: #e6f6d2;
  color: #22430a;
}
.bc-chiusi .bc-carta {
  background: var(--sup-2);
  color: var(--testo-2);
}
:root[data-tema="scuro"] .bc-attesa .bc-carta {
  background: #3a2c0c;
  color: #ffe2a8;
}
:root[data-tema="scuro"] .bc-aperti .bc-carta {
  background: #1f3312;
  color: #d9f5b0;
}
.bc-num,
.tm-riga b {
  font-family: var(--mono, ui-monospace, monospace);
}
.bc-num {
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.bc-tit {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 4px 0 10px;
}
.bc-cli {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}
.bc-cli .av {
  width: 26px !important;
  height: 26px !important;
  font-size: 10.5px !important;
  border-radius: 8px !important;
}
.bc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  opacity: 0.8;
}
.bc-att {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bc-att .ic {
  width: 13px;
  height: 13px;
}
.bc-vuoto {
  border: 1.5px dashed var(--bordo-forte);
  border-radius: 10px;
  padding: 26px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--tenue);
}
.tm-box {
  padding: 26px 30px 18px;
}
.tempo,
.tm-anno {
  position: relative;
  padding-left: 34px;
}
.tempo::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--bordo-forte);
  border-radius: 2px;
}
.tm-anno {
  font-family: var(--titoli);
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 12px -34px;
  color: var(--testo);
}
.tm-voce {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px 14px 12px;
  margin: 0 0 10px -14px;
  border-radius: 12px;
  transition: background 0.12s;
}
.tm-voce:hover {
  background: var(--sup-2);
}
.tm-punto {
  position: absolute;
  left: -31px;
  top: 15px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--sup);
  box-sizing: content-box;
}
.tm-aperto .tm-punto {
  background: var(--ok);
}
.tm-attesa .tm-punto {
  background: var(--attesa);
  box-shadow: 0 0 0 4px var(--attesa-bg);
}
.tm-chiuso .tm-punto {
  background: var(--tenue-2);
}
.tm-data {
  font-size: 12.5px;
  color: var(--tenue);
  margin-bottom: 2px;
}
.tm-riga {
  font-size: 15.5px;
}
.tm-riga b {
  font-size: 13.5px;
  margin-right: 6px;
}
.tm-info {
  font-size: 13px;
  color: var(--testo-2);
  margin-top: 3px;
}
.bc-altri,
.tm-att {
  color: var(--attesa);
  font-weight: 600;
}
.tm-chiuso .tm-riga,
.tm-riga b {
  color: var(--testo-2);
}
.bc-col.compatta .bc-lista {
  gap: 6px;
}
.bc-carta.bc-riga {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 9px 12px;
  transform: none;
  box-shadow: none;
  border-radius: 8px;
}
.bc-carta.bc-riga:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px -4px rgba(20, 18, 31, 0.25);
}
.bc-riga .bc-num {
  font-size: 12px;
}
.bc-riga .bc-cli-n,
.bc-riga .bc-tit {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-riga .bc-tit {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0;
}
.bc-riga .bc-cli-n {
  grid-column: 2/4;
  font-size: 12px;
  opacity: 0.75;
}
.bc-riga .bc-att {
  grid-row: 1;
  grid-column: 3;
  background: var(--attesa);
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.bc-altri {
  width: 100%;
  margin-top: 8px;
  min-height: 34px !important;
  background: 0 0 !important;
  color: var(--pri-testo) !important;
  border: 1.5px dashed var(--bordo-forte) !important;
  font-size: 13px;
}
.bc-altri:hover {
  background: var(--pri-quasi) !important;
  border-color: var(--pri) !important;
}
.bc-nota {
  margin-top: 8px;
  font-size: 12px;
  color: var(--tenue);
  text-align: center;
}
.dafare {
  padding-bottom: 8px;
}
.dafare .barra-t {
  align-items: baseline;
  gap: 14px;
}
.df-sez {
  padding: 6px 22px 12px;
}
.df-r,
.df-tit {
  display: flex;
  align-items: center;
}
.df-tit {
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin: 8px 0 4px;
}
.df-tit .ic {
  width: 18px;
  height: 18px;
}
.df-ok .df-tit {
  color: var(--ok-testo);
}
.df-att .df-tit {
  color: var(--attesa-testo);
}
.df-ko .df-tit {
  color: var(--ko-testo);
}
.df-r {
  gap: 14px;
  padding: 9px 12px;
  margin: 0-12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}
.df-r:hover,
a.df-r:hover {
  background: var(--sup-2);
}
.df-r b {
  min-width: 210px;
  font-weight: 600;
}
.df-r > span:not(.df-az) {
  flex: 1;
  color: var(--testo-2);
  font-size: 14px;
}
.df-r i {
  color: var(--tenue-2);
  font-style: normal;
  display: inline-flex;
}
.df-az {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
em.df-ko {
  color: var(--ko);
  font-style: normal;
  font-weight: 600;
}
.df-vuoto,
.pacchetti {
  display: flex;
  align-items: center;
}
.df-vuoto {
  gap: 12px;
  background: var(--ok-bg);
  color: var(--ok-testo);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.df-vuoto .ic {
  width: 20px;
  height: 20px;
}
.pacchetti {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pk,
.pk-tit {
  display: inline-flex;
}
.pk-tit {
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--testo-2);
  margin-right: 4px;
}
.pk-tit .ic {
  width: 16px;
  height: 16px;
}
.pk {
  align-items: stretch;
  background: var(--sup-2);
  border-radius: 10px;
  overflow: hidden;
}
.pk button {
  min-height: 32px !important;
  border: 0 !important;
  background: 0 0 !important;
  color: var(--testo) !important;
  padding: 5px 12px !important;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 0 !important;
}
.pk button small {
  color: var(--tenue);
  font-weight: 500;
  margin-left: 4px;
}
.pk button:hover,
.pk-nuovo {
  color: var(--pri-testo) !important;
}
.pk button:hover {
  background: var(--pri-tenue) !important;
}
.pk .pk-x {
  padding: 5px 9px !important;
  color: var(--tenue) !important;
  font-weight: 400;
}
.pk .pk-x:hover {
  background: var(--ko-bg) !important;
  color: var(--ko) !important;
}
.pk.on {
  background: var(--pri-tenue);
  box-shadow: inset 0 0 0 1.5px var(--pri);
}
.pk-nuovo {
  min-height: 32px !important;
  padding: 5px 12px !important;
  background: 0 0 !important;
  border: 1.5px dashed var(--pri-bordo) !important;
}
.pk-aiuto,
.pk-nuovo {
  font-size: 13px;
}
.codice-studio {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--attesa-bg);
  color: var(--attesa-testo);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  text-align: left;
}
.codice-studio > .ic {
  width: 22px;
  height: 22px;
  flex: none;
}
.codice-studio span {
  display: block;
  font-size: 13.5px;
}
.codice-studio .cod {
  display: inline-block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 26px;
  letter-spacing: 0.25em;
  margin-top: 2px;
  color: var(--testo);
}

/* finestra "Stampa da firmare a penna": si adatta ai campi di ogni modello */
.modale.stampa-dlg > .card {
  max-width: 640px;
  width: 94vw;
  text-align: left;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modale.stampa-dlg h3 {
  margin: 0 0 8px;
}
.st-corpo {
  overflow-y: auto;
  margin: 0 -24px;
  padding: 4px 24px;
}
.st-tit {
  margin: 20px 0 2px;
  font-size: 14px;
}
.st-aiuto {
  font-size: 13px;
  margin: 0 0 10px;
}
.st-campo {
  display: block;
  margin-bottom: 14px;
}
.st-lab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--testo-2);
  margin-bottom: 6px;
}
.st-lab span {
  display: flex;
  gap: 4px;
}
.st-spunte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  padding: 10px 12px;
  border: 1px solid var(--bordo);
  border-radius: var(--r-m, 10px);
  margin-bottom: 8px;
}
.st-spunte.st-voci {
  grid-template-columns: 1fr;
}
.st-spunte .chk {
  margin: 0;
  padding: 4px 0;
  font-size: 13.5px;
}
.st-campo textarea {
  width: 100%;
}

/* tipo di cliente nell'elenco clienti */
.badge.tipo-cl {
  gap: 6px;
  padding: 2px 10px 2px 8px;
  font-weight: 500;
}
.badge.tipo-cl svg {
  width: 14px;
  height: 14px;
}
.badge.tipo-privato {
  background: var(--pri-tenue);
  color: var(--pri-testo);
  border-color: var(--pri-bordo);
}
.badge.tipo-azienda {
  background: var(--attesa-bg);
  color: var(--attesa-testo);
  border-color: var(--attesa-bordo);
}
.badge.tipo-ente_sportivo {
  background: var(--ok-bg);
  color: var(--ok-testo);
  border-color: var(--ok-bordo);
}

/* ---------- Riepilogo (stile "Notte"), compatto come una lavagna: tutto in uno schermo ---------- */
.rp {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.rp-sx,
.rp-dx {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}
.rp-carta,
.rp-eroe {
  background: var(--sup);
  border: 1px solid var(--bordo);
  border-radius: 22px;
}
.rp-eroe {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 26px;
  border-radius: 24px;
  flex: none;
}
.rp-anello {
  flex: none;
  width: 124px;
  height: 124px;
}
.rp-a-fondo {
  stroke: var(--bordo);
}
.rp-a-pieno {
  stroke: var(--ok);
}
:root:not([data-tema="scuro"]) .rp-a-pieno {
  stroke: var(--pri);
}
.rp-a-num {
  font: 600 46px var(--titoli);
  fill: var(--testo);
}
.rp-a-sub {
  font: 13px var(--font);
  fill: var(--tenue);
}
.rp-etich {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--tenue);
  text-transform: uppercase;
}
.rp-eroe h1 {
  margin: 6px 0 0;
  font: 600 28px/1.15 var(--titoli);
  letter-spacing: -0.02em;
}
.rp-eroe h1 span {
  color: var(--pri);
}
.rp-az {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.rp-carta {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rp-attese,
.rp-attivita {
  flex: 1 1 0;
  min-height: 150px;
}
.rp-attese {
  min-height: 230px;
}
.rp-scorri {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  margin-right: -8px;
  padding-right: 8px;
  scrollbar-width: thin;
}
.rp-ct {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex: none;
}
.rp-ct h2 {
  margin: 0;
  font-size: 16.5px;
}
.rp-ct a {
  font-size: 13px;
  text-decoration: none;
}
.rp-t th {
  background: var(--sup);
  position: sticky;
  top: 0;
  z-index: 1;
  padding-top: 8px;
  padding-bottom: 8px;
}
.rp-t td {
  padding-top: 8px;
  padding-bottom: 8px;
}
.rp-t td,
.rp-t th {
  padding-left: 0;
}
.rp-t .dx {
  text-align: right;
  padding-right: 0;
}
.rp-t .cella-nome {
  gap: 10px;
}
.rp-t .av {
  width: 30px;
  height: 30px;
  font-size: 11.5px;
}
.rp-dafirm {
  background: var(--pri-tenue);
  color: var(--pri-testo);
  border-color: transparent;
}
.rp-urg {
  color: var(--attesa);
  font-weight: 500;
}
.rp-vuoto {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tenue);
  padding: 10px 0 4px;
}
.rp-vuoto svg {
  color: var(--ok);
}
.rp-due {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: none;
}
.rp-num {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--testo);
  padding: 14px 18px;
  transition: border-color 0.15s;
}
.rp-num:hover {
  border-color: var(--pri);
  color: var(--testo);
}
.rp-num b {
  font: 600 32px/1.2 var(--titoli);
  margin-top: 2px;
}
.rp-num small {
  font-size: 12.5px;
  color: var(--tenue);
}
.rp-nuovo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--pri);
  color: var(--pri-on);
  border-radius: 22px;
  padding: 14px 18px;
  text-decoration: none;
  transition: filter 0.15s;
  flex: none;
}
.rp-nuovo:hover {
  color: var(--pri-on);
  filter: brightness(1.06);
}
.rp-nuovo div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rp-nuovo b {
  font: 600 16.5px var(--titoli);
}
.rp-nuovo span {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}
.rp-freccia {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pri-on);
  color: var(--pri);
  display: grid;
  place-items: center;
  flex: none;
  opacity: 1 !important;
  margin: 0 !important;
}
.rp-linea {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.rp-ev {
  position: relative;
  padding: 0 0 12px 24px;
}
.rp-ev::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tenue);
}
.rp-ev::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  bottom: 1px;
  width: 2px;
  background: var(--bordo);
}
.rp-ev:last-child {
  padding-bottom: 0;
}
.rp-ev:last-child::after {
  display: none;
}
.rp-ev.ok::before {
  background: var(--ok);
}
.rp-ev.pri::before {
  background: var(--pri);
}
.rp-ev.ko::before {
  background: var(--ko);
}
.rp-ev a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--testo);
}
.rp-ev a:hover b {
  color: var(--pri);
}
.rp-ev b {
  font-size: 13.5px;
  font-weight: 600;
}
.rp-ev small {
  font-size: 12.5px;
  color: var(--tenue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp .dafare {
  border-radius: 22px;
  margin: 0;
  flex: 0 1 auto;
  min-height: 110px;
  max-height: 34%;
  overflow-y: auto;
  scrollbar-width: thin;
}
@media (max-width: 1100px) {
  .rp {
    grid-template-columns: 1fr;
  }
  .rp .dafare {
    max-height: none;
  }
}
/* finestra "Cosa vuoi aprire?" (clic su una firma o una richiesta nel Riepilogo) */
.modale.scelta-dlg > .card {
  max-width: 460px;
  width: 92vw;
  text-align: left;
}
.modale.scelta-dlg h3 {
  margin: 0;
}
.scelta-ap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scelta-op {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--sup-2, var(--sup));
  color: var(--testo);
  border: 1px solid var(--bordo);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.scelta-op:hover,
.scelta-op:focus-visible {
  border-color: var(--pri);
  background: var(--pri-tenue);
}
.scelta-op > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.scelta-op b {
  font-size: 14.5px;
}
.scelta-op small {
  font-size: 12.5px;
  color: var(--tenue);
  margin-top: 1px;
}
.scelta-op > svg {
  color: var(--tenue);
  width: 18px;
  height: 18px;
  flex: none;
}
.scelta-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--pri-tenue);
  color: var(--pri);
  display: grid;
  place-items: center;
  flex: none;
}
.scelta-ic svg {
  width: 19px;
  height: 19px;
}

/* pulsante "Installa sul computer" nella barra in alto (compare solo se il browser lo permette) */
.installa {
  white-space: nowrap;
}
.installa[hidden] {
  display: none;
}
