/* Control Panel: ritocchi a Tabler. Compatto come il vecchio deployer (14px), prod verde e stage arancione. */
:root, [data-bs-theme=light] { --tblr-font-size: .875rem; --tblr-body-font-size: .875rem; }
body { font-size: .875rem; }
code { font-size: .8rem; }
form.d-contents { display: contents; }

.testata { background: #16233b; }
.marchio { font-weight: 700; letter-spacing: .02em; color: #fff !important; text-decoration: none; }
.sotto-marchio { font-size: .7rem; font-weight: 400; opacity: .6; margin-left: .4rem; }
.marchio-accesso { font-size: 1.6rem; font-weight: 700; }

.badge-prod { background: #e6f4ea; color: #1e7b34; }
.badge-stage { background: #fff1e0; color: #b35c00; }
.etichetta-base { min-width: 2.6rem; }
.filtri { display: flex; flex-wrap: wrap; gap: .35rem; }
.filtri .badge { font-size: .78rem; padding: .35rem .6rem; text-decoration: none; }
.cerca { width: 14rem; }

table.piattaforme tbody tr { cursor: pointer; }
table.piattaforme tbody tr.scelta > td { box-shadow: inset 0 0 0 9999px rgba(32,107,196,.08); }
table.piattaforme td[title]:not([title=""]) { cursor: help; }
.stato-punto { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .45rem; background: #2fb344; vertical-align: middle; }
.stato-punto.avviso { background: #f59f00; }
.stato-punto.ko { background: #d63939; }
td .base { white-space: nowrap; }
.base.ok { color: #1e7b34; font-weight: 600; }
.base.avviso { color: #946200; font-weight: 600; }

@media (min-width: 1200px) {
  .pannello-destro { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}
.pannello-destro .card-header { position: sticky; top: 0; z-index: 2; background: var(--tblr-bg-surface, #fff); }
.barra-dettaglio { background: var(--tblr-bg-surface-secondary, #f6f8fb); }
.sezione-dettaglio { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tblr-secondary, #667382); margin: 0 0 .6rem; cursor: default; }
details > summary.sezione-dettaglio { cursor: pointer; }
.datagrid { --tblr-datagrid-padding: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
pre.json { max-height: 420px; overflow: auto; font-size: .75rem; background: var(--tblr-bg-surface-secondary, #f6f8fb); padding: .75rem; border-radius: 4px; }

table.parametri td { vertical-align: top; }
.valore-cambiato { color: #c25700; }
td.valore-cambiato input.form-control { border-color: #f59f00; color: #c25700; background: #fff8ec; }
tr.stato-tolto td { opacity: .65; }
tr.stato-tolto input.form-control { text-decoration: line-through; }
tr.riga-nuova td { background: #f8fbff; }
.mascherato { letter-spacing: .15em; color: var(--tblr-secondary, #667382); }
.w-33 { width: 33%; }
.ts-dropdown { z-index: 2000; }
.ts-dropdown .optgroup-header { font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; color: var(--tblr-secondary, #667382); }
.cerca { width: 11rem; }

/* pagine di accesso (login, MFA): riquadro centrato standard, larghezza fissa */
.accesso { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem;
  background: linear-gradient(160deg, #eef2f7 0%, #f8fafc 55%, #e8eef6 100%); }
.accesso-box { width: 100%; max-width: 400px; }
.accesso-marchio { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.accesso-logo { width: 48px; height: 48px; border-radius: 12px; background: #1e293b; color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.accesso-nome { font-size: 1.35rem; font-weight: 700; color: #1e293b; line-height: 1; }
.accesso-sotto { font-size: .8rem; color: #64748b; }
.accesso .card { border: 0; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .06); }
.accesso .card-body { padding: 2rem; }
.accesso-titolo { text-align: center; font-size: 1.15rem; font-weight: 600; margin: 0 0 .35rem; }
.accesso-testo { text-align: center; color: #64748b; font-size: .875rem; margin-bottom: 1.5rem; }
.accesso .btn-primary { padding: .6rem 1rem; font-weight: 600; }
.accesso-piede { text-align: center; color: #94a3b8; font-size: .75rem; margin-top: 1.25rem; }
.accesso-codice { font-size: 1.5rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.accesso-qr { display: flex; justify-content: center; margin: .5rem 0 .75rem; }
.accesso-qr img { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; background: #fff; }
.accesso-chiave { text-align: center; font-size: .8rem; margin-bottom: 1.25rem; word-break: break-all; }
.accesso-passi { color: #475569; font-size: .85rem; padding-left: 1.1rem; margin-bottom: 1rem; }
.accesso-esci { text-align: center; margin-top: .75rem; }
.accesso-esci .btn-link { color: #64748b; font-size: .8rem; text-decoration: none; }
