/* Accesso e utenti: profilo, permessi operatore, browser autorizzati, PIA GDPR.
   Solo le regole che Bootstrap e style.css non coprono. */

/* ------- testata del profilo ------- */

.profile-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sm-blue-light), var(--bs-primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex: none;
  text-transform: uppercase;
}
.profile-id { flex: 1; min-width: 0; }
.profile-id h1 { font-size: 1.25rem; margin-bottom: .1rem; }
.profile-id p { font-size: .9rem; }
.profile-badges { flex: none; }

/* ------- sezioni del profilo: colonna descrittiva e colonna dei comandi ------- */

.settings-info h2 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.settings-info h2 .bi { color: var(--sm-muted); margin-right: .45rem; }
.settings-info p { font-size: .84rem; color: var(--sm-muted); line-height: 1.5; margin-bottom: 0; }
.settings-body { min-width: 0; }
.settings-body .git-table .inline input { min-width: 130px; }
.setup-steps .qr { width: 190px; height: 190px; margin: .6rem 0; }

/* ------- permessi operatore (pagina utenti) ------- */

.perm-box {
  border: 1px solid var(--sm-line);
  border-radius: var(--bs-border-radius);
  background: var(--sm-bg);
  padding: .8rem 1rem .9rem;
}
.perm-box .form-check { margin-bottom: 0; }
.perm-sites { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: .55rem; }
.perm-list {
  margin-top: .7rem;
  padding-top: .5rem;
  border-top: 1px solid var(--sm-line);
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

/* ------- browser autorizzati nel profilo ------- */

.trust-table td { font-size: .88rem; }
.trust-table .badge { margin-left: .4rem; }

/* ------- PIA GDPR: barra dei modelli e strumento a tutta altezza ------- */

body.dpia main {
  max-width: none;
  margin: 0;
  padding: 1.2rem 1.4rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.dpia-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin-bottom: .8rem;
  font-size: .82rem;
  color: var(--sm-muted);
}
.dpia-tools span { margin-right: .4rem; }
.dpia-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1px solid var(--sm-line);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 991.98px) {
  body.dpia main { height: calc(100vh - 3.5rem); padding: 1rem; }
}
