/* InfraMOC - strumento operativo per tecnici: sobrio, leggibile, gli stati sempre con una parola.
   L'unico elemento con carattere e' il "battito" delle sonde (ultime 24 ore a tacche di 10 minuti). */
:root {
  --paper: #f3f5f6;
  --surface: #ffffff;
  --ink: #1d2b36;
  --muted: #586571;
  --rule: #d5dce0;
  --link: #24578a;
  --ok: #276b4e;
  --warn: #8a5a0b;
  --warn-fill: #d99a2b;
  --bad: #a33535;
  --none: #dbe1e5;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.9375rem/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

h1 { font-size: 1.6rem; line-height: 1.25; font-weight: 650; margin: 0.25rem 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; font-weight: 650; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
p { max-width: 75ch; }
code, .id { font-family: var(--mono); font-size: 0.875rem; }
.muted, .sub { color: var(--muted); }
.sub { display: block; font-size: 0.8125rem; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barra superiore */
.bar {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 0.6rem 1.5rem; background: var(--ink); color: #fff;
}
.brand { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.search { display: flex; gap: 0.4rem; flex: 1 1 18rem; max-width: 30rem; }
.search input { flex: 1; }
.who { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; color: #cfd8de; }

input, button { font: inherit; }
input {
  padding: 0.4rem 0.6rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--ink);
  min-width: 0;
}
button {
  padding: 0.4rem 0.9rem; border: 0; border-radius: 4px; background: var(--link); color: #fff; cursor: pointer; font-weight: 600;
}
.bar button { background: #3a5a78; }
button.link { background: none; color: #fff; text-decoration: underline; padding: 0; font-weight: 400; }

main { padding: 1.5rem; max-width: 78rem; margin: 0 auto; }
footer { padding: 2rem 1.5rem; color: var(--muted); font-size: 0.8125rem; text-align: center; }
.crumb { margin: 0 0 0.25rem; font-size: 0.875rem; }

/* Tabelle */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.8125rem; font-weight: 600; color: var(--muted); background: #f8fafb; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
.num { text-align: right; }
td.bad { color: var(--bad); font-weight: 700; }
td.warn { color: var(--warn); font-weight: 700; }
td.bad a, td.warn a { color: inherit; }        /* «1 critico» rosso anche come link (0.20.1) */
tr.attention > th:first-child { box-shadow: inset 4px 0 0 var(--warn-fill); }
tr.stale { color: var(--muted); }

/* Stati: sempre una parola, il colore la rafforza */
.state { display: inline-block; font-weight: 600; padding-left: 0.85rem; position: relative; margin-right: 0.4rem; }
.state::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: currentColor;
}
.state-ok { color: var(--ok); }
.state-partial, .state-late { color: var(--warn); }
.state-offline { color: var(--bad); }
.state-never, .state-disabled { color: var(--muted); }

/* Battito della sonda */
.beat { display: block; width: 100%; min-width: 12rem; height: 1.6rem; }
.clients .beat { height: 1.25rem; }
.beat-cell { width: 34%; vertical-align: middle; }
.beat-ok { fill: var(--ok); }
.beat-partial { fill: var(--warn-fill); }
.beat-none { fill: var(--none); }
.probe .beat { max-width: 48rem; margin: 0.5rem 0 0.25rem; height: 2.25rem; }
.axis { display: flex; justify-content: space-between; max-width: 48rem; margin: 0; color: var(--muted); font-size: 0.8125rem; }
.legend { color: var(--muted); font-size: 0.8125rem; display: flex; gap: 0.4rem 1rem; align-items: center; flex-wrap: wrap; }
.key { display: inline-block; width: 0.5rem; height: 0.85rem; margin-right: 0.3rem; vertical-align: -0.1rem; }
.key-ok { background: var(--ok); }
.key-partial { background: var(--warn-fill); }
.key-none { background: var(--none); }

.quiet { color: var(--ok); }
.error { color: var(--bad); font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 600; }
.warn-text { color: var(--warn); font-weight: 600; margin-bottom: 0.25rem; }
.errors { margin-top: 0; }

/* Accesso */
.login-page { display: grid; place-items: center; min-height: 100vh; }
.login {
  width: min(24rem, 92vw); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 2rem; margin: 0;
}
.login h1 { margin-top: 0; }
.login form { display: grid; gap: 0.35rem; margin-top: 1rem; }
.login label { font-weight: 600; margin-top: 0.5rem; }
.login button { margin-top: 1rem; padding: 0.6rem; }

/* Pannello frontale dello switch */
.panel-wrap { overflow-x: auto; padding-bottom: 0.25rem; }
.frontpanel { display: inline-flex; gap: 1.5rem; padding: 1.25rem 1.5rem; background: #2b3640; border: 1px solid var(--ink); border-radius: 8px; }
.block { display: flex; flex-direction: column; gap: 0.5rem; }
.prow { display: flex; gap: 0.5rem; }
.port {
  box-sizing: border-box; width: 3.4rem; height: 3.2rem; display: flex; align-items: center; justify-content: center;
  border: 3px solid transparent; border-radius: 4px; font-weight: 600; text-decoration: none; color: #fff; overflow: hidden;
}
.port:hover { filter: brightness(1.15); }
.port:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.port-fast { background: #1c5d99; }
.port-up { background: var(--ok); }
.port-down { background: var(--none); color: var(--ink); }
.port-off { background: #b9c2c9; color: var(--ink); border-style: dashed; border-color: #6b7782; }
.port-err { border-color: var(--warn-fill); }
.port[aria-current="true"] { box-shadow: 0 0 0 3px #2b3640, 0 0 0 6px #fff; }
.key-fast { background: #1c5d99; }
.key-off { background: #b9c2c9; }
.key-err { background: var(--surface); border: 3px solid var(--warn-fill); box-sizing: border-box; }
.portdetail { background: var(--surface); border: 1px solid var(--rule); padding: 0 1rem 1rem; margin-top: 1.5rem; max-width: 40rem; scroll-margin-top: 1rem; }
.portdetail h2 { margin-top: 1rem; }

/* Scheda apparato */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem 1.5rem; margin: 0.75rem 0 1rem; }
.facts dt { color: var(--muted); font-size: 0.8125rem; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.periods { display: flex; gap: 0.25rem; margin: 1.25rem 0 0; border-bottom: 1px solid var(--rule); }
.periods a { padding: 0.45rem 1rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.periods a:hover { color: var(--ink); }
.periods a.current { color: var(--ink); font-weight: 600; border-bottom-color: var(--link); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 34rem)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--rule); padding: 0.75rem 1rem 1rem; min-width: 0; }
.card h3 { margin: 0 0 0.25rem; }
.sub-inline { color: var(--muted); font-weight: 400; font-size: 0.875rem; }
.big { font-size: 1.6rem; font-weight: 650; margin: 0; line-height: 1.3; }
.big .state { font-size: 0.9375rem; margin-left: 0.5rem; }
.chart { display: block; width: 100%; height: auto; margin: 0.5rem 0; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.chart .nodata { fill: var(--muted); font-size: 13px; }
.chart .warn-line { stroke: var(--warn-fill); stroke-width: 1; stroke-dasharray: 5 4; }
.chart .area { fill: var(--link); opacity: 0.1; }
.chart path.line-0, .chart circle.line-0 { stroke: var(--link); }
.chart path.line-1, .chart circle.line-1 { stroke: #b3541e; }
.chart path { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.chart circle.line-0 { fill: var(--link); }
.chart circle.line-1 { fill: #b3541e; }
.key-line-0 { background: var(--link); }
.key-line-1 { background: #b3541e; }
.key-up { background: var(--ok); }
.key-down { background: var(--bad); }
.key-warn { background: var(--warn-fill); }
.key-bad { background: repeating-linear-gradient(0deg, var(--bad) 0 3px, transparent 3px 5px); outline: 1px solid var(--bad); }
table.stats { margin-top: 0.25rem; font-size: 0.875rem; }
table.stats th, table.stats td { padding: 0.3rem 0.5rem; }
table.stats td { white-space: nowrap; }
table.avail { max-width: 40rem; margin-top: 0.75rem; }
.strip-up { fill: var(--ok); }
.strip-partial { fill: var(--warn-fill); }
.strip-down { fill: var(--bad); }
.strip-none { fill: var(--none); }
.quiet-note { color: var(--muted); }

@media (max-width: 720px) {
  .chart .tick { font-size: 17px; }
  .chart .tick.alt { display: none; }
  .chart .nodata { font-size: 20px; }
  table.stats { display: table; font-size: 0.8125rem; }
  .bar { padding: 0.6rem 1rem; gap: 0.75rem; }
  main { padding: 1rem; }
  table { display: block; overflow-x: auto; }
  /* Panoramica: ogni cliente diventa un blocco; contatori sotto la striscia, con la loro etichetta */
  table.clients { display: block; overflow: visible; border: 0; background: none; }
  .clients thead { display: none; }
  .clients tbody { display: grid; gap: 0.75rem; }
  .clients tr {
    display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 0.75rem 1rem;
    background: var(--surface); border: 1px solid var(--rule);
  }
  .clients th, .clients td { padding: 0; border: 0; }
  .clients .c-state { text-align: right; }
  .clients .beat-cell { grid-column: 1 / -1; width: auto; min-width: 0; padding: 0.25rem 0; }
  .clients td.num { grid-column: 1 / -1; display: flex; justify-content: space-between; text-align: left; }
  .clients td.num::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .clients td.num .sub { display: inline; margin-left: 0.3rem; }
  .clients td.num { gap: 0.5rem; }
  tr.attention > th:first-child { box-shadow: none; }
  .clients tr.attention { box-shadow: inset 4px 0 0 var(--warn-fill); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Inventario */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; margin: 0.75rem 0 1rem; }
.tile { display: block; background: var(--surface); border: 1px solid var(--rule); padding: 0.6rem 1rem; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--link); }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin: 0 0 1rem; }
.filters label { display: block; font-size: 0.8125rem; color: var(--muted); }
.filters input, .filters select { min-width: 10rem; max-width: 100%; }
.filter-actions { display: flex; gap: 0.75rem; align-items: center; }
.count { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.5rem; }
.table-wrap { overflow-x: auto; }
table.inventory th { position: relative; }          /* il testo nascosto (.sr-only) resta dentro la cella */
table.inventory th a { color: inherit; text-decoration: none; }
table.inventory th a:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0 0.4rem; margin-left: 0.4rem; border: 1px solid currentColor; }
.tag-mon { color: var(--link); }
.tag-new { color: var(--warn); }
.tag-gone { color: var(--muted); }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem 0; }
.note { margin-top: 1.5rem; }
@media (max-width: 40rem) {
  .filters > div { flex: 1 1 100%; }
  .filters input, .filters select { width: 100%; }
}

/* Mappa */
.netmap { display: block; background: var(--surface); border: 1px solid var(--rule); max-width: 100%; height: auto; min-width: 640px; }
.netmap .edge { fill: none; stroke: #8a97a1; stroke-width: 1.5; }
.netmap .edge-label { font-size: 12px; fill: var(--muted); }
.netmap .node rect { fill: #fff; stroke: #8a97a1; stroke-width: 1.5; }
.netmap .node-ok rect { stroke: var(--ok); stroke-width: 3; }
.netmap .node-down rect { stroke: var(--bad); stroke-width: 3; }
.netmap .node-bad rect { stroke: var(--bad); stroke-width: 3; stroke-dasharray: 8 3; }
.netmap .node-warn rect { stroke: var(--warn-fill); stroke-width: 3; }
.netmap .node-down rect { fill: #fbebeb; }
.netmap .node-collapsed rect, .netmap .node-toggle rect { fill: #eef4fb; stroke: var(--link); stroke-dasharray: 4 3; }
.netmap .node-collapsed .n1, .netmap .node-toggle .n1 { fill: var(--link); }
.netmap .node-internet rect { fill: #eef2f5; }
.netmap .node-external rect, .netmap .node-more rect { stroke-dasharray: 5 3; }
.netmap .node-endpoint rect { fill: #f8fafb; }
.netmap .n1 { font-size: 14px; font-weight: 600; fill: var(--ink); }
.netmap .n2 { font-size: 12px; fill: var(--muted); }
.netmap a:hover rect, .netmap a:focus rect { stroke: var(--link); }

@media (max-width: 720px) {
  .netmap { max-width: none; }                        /* telefono: grandezza naturale, si scorre di lato */
}

/* Impostazioni */
.flash { padding: 0.6rem 0.9rem; border: 1px solid currentColor; background: var(--surface); font-weight: 600; max-width: 48rem; }
.flash-ok { color: var(--ok); }
.flash-error { color: var(--bad); }
.flash-detail { color: var(--bad); overflow-wrap: anywhere; max-width: 48rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin: 0.75rem 0 1.25rem; }
.inline-form label { display: block; font-size: 0.8125rem; color: var(--muted); }
.inline-form input:not([type=hidden]), .inline-form select { min-width: 12rem; max-width: 100%; }
button.secondary { background: var(--surface); color: var(--link); border: 1px solid var(--link); }
.barlink { color: #fff; }
@media (max-width: 40rem) { .inline-form > div { flex: 1 1 100%; } .inline-form input, .inline-form select { width: 100%; } }

/* Impostazioni: su telefono ogni riga diventa una scheda, cosi' i pulsanti (Rimuovi, Termina) restano visibili */
@media (max-width: 640px) {
  table.stack { display: table; overflow: visible; }
  table.stack thead { position: absolute; left: -9999px; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; }
  table.stack tr { padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
  table.stack td { border: 0; padding: 0.15rem 0.75rem; overflow-wrap: anywhere; }
  table.stack td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* Utenti e account */
a.button { display: inline-block; padding: 0.35rem 0.75rem; font-size: 0.875rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--link); color: var(--link); background: var(--surface); }
a.button.danger, button.danger { color: var(--bad); border: 1px solid var(--bad); background: var(--surface); }
.tag-admin { color: var(--link); margin-left: 0; }
.tag-viewer { color: var(--muted); margin-left: 0; }
.tag-superadmin { color: var(--bad); margin-left: 0; }
.tag-tenant { color: var(--warn); margin-left: 0; }
.inline-form label.check, .inline-form label.radio { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem;
  color: inherit; margin: 0.15rem 1rem 0.15rem 0; }
.inline-form label.check input, .inline-form label.radio input { min-width: 0; width: auto; }
fieldset.clients-pick { flex: 1 1 100%; border: 1px solid var(--rule); padding: 0.5rem 0.75rem; margin: 0; }
fieldset.clients-pick legend { font-size: 0.8125rem; color: var(--muted); padding: 0 0.25rem; }
fieldset.clients-pick .checks { margin: 0.25rem 0 0 1.4rem; }
.qr { display: inline-block; margin: 0.5rem 0; padding: 0.5rem; background: #fff; border: 1px solid var(--rule); max-width: 100%; }
.qr svg { display: block; width: 14rem; height: 14rem; max-width: 100%; height: auto; }

/* Icone del tipo di apparato */
.ico { width: 1.25rem; height: 1.25rem; vertical-align: -0.3rem; margin-right: 0.45rem; fill: none; stroke: var(--muted);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
tr.stale .ico { opacity: 0.6; }
table.facts th, table.facts td { white-space: normal; overflow-wrap: anywhere; }
table.facts th { width: 11rem; }
@media (max-width: 640px) { table.facts th { width: 7.5rem; } }
.token-once { display: block; margin-top: 0.4rem; padding: 0.5rem 0.7rem; word-break: break-all; user-select: all; font-size: 1.05rem; }

/* Gruppi di risorse con molte voci (thread, sensori, dischi) */
.group-title { margin: 1.5rem 0 0.5rem; }
details.group { margin: 0.75rem 0 1.25rem; }
details.group > summary { cursor: pointer; padding: 0.4rem 0; font-weight: 600; color: var(--link, inherit); }
details.group[open] > summary { margin-bottom: 0.5rem; }
details.group td, details.group th { padding-top: 0.3rem; padding-bottom: 0.3rem; }
/* Stato dei componenti (0.19.1): riepilogo in alto, una riga per famiglia, problemi in evidenza */
.comp-head { margin: 0.25rem 0 0.75rem; font-size: 1.05rem; }
ul.problems { list-style: none; margin: 0 0 1rem; padding: 0.5rem 0.9rem; background: var(--surface);
  border: 1px solid var(--rule); border-left: 4px solid var(--bad); }
.field-hint { color: var(--muted); font-size: 0.85rem; margin: 0.3rem 0 0; max-width: 34rem; }
ul.problems.only-warn { border-left-color: var(--warn-fill); }
ul.problems li { padding: 0.2rem 0; }
table.families { max-width: 40rem; }
table.families th[scope="row"] { width: 12rem; }
@media (max-width: 40rem) { table.families th[scope="row"] { width: auto; } table.families td .state { margin-right: 0.6rem; } }

/* Scheda computer a schede (0.15): una scheda per pagina, link normali (nessun JavaScript) */
.tabs { display: flex; gap: 0.15rem; margin: 1rem 0 1.25rem; border-bottom: 1px solid var(--rule); overflow-x: auto;
  overflow-y: hidden; scrollbar-width: thin; }
.tabs a { padding: 0.55rem 1rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent;
  margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.current { color: var(--ink); font-weight: 600; border-bottom-color: var(--link); }
.tabs .count { font-size: 0.75rem; color: var(--muted); margin-left: 0.3rem; font-weight: 400; }
.badge { font-size: 0.75rem; color: #fff; background: var(--warn); padding: 0 0.4rem; margin-left: 0.35rem;
  font-weight: 600; }
.badge-crit { background: var(--bad); }
.now { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; margin: 0 0 1.5rem; }
.now .tile { padding: 0.7rem 1rem 0.8rem; }
.now .lbl { font-size: 0.8125rem; color: var(--muted); display: flex; justify-content: space-between; gap: 0.5rem; }
.now .val { font-size: 1.5rem; font-weight: 650; line-height: 1.3; }
.now .val .state { font-size: 0.9375rem; margin-left: 0.4rem; }
.now .sub { font-size: 0.8125rem; color: var(--muted); display: block; }
.now meter { width: 100%; height: 0.55rem; margin-top: 0.35rem; }
.tile-disks .drow { display: block; margin-top: 0.35rem; }
.tile-disks .drow + .drow { margin-top: 0.6rem; }
.tile-disks .dhead { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.tile-disks .dname { font-weight: 600; overflow-wrap: anywhere; }
.tile-disks .dval { font-weight: 650; white-space: nowrap; }
.tile-disks .dval .state { font-size: 0.8125rem; margin-left: 0.4rem; }
.tile-disks meter { margin-top: 0.15rem; }
@media (min-width: 48rem) { .now .tile-wide { grid-column: span 2; } }
.tile-wide .drows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.tile-wide .drow + .drow { margin-top: 0.35rem; }
.thr { font-size: 0.75rem; color: var(--muted); }
.banner { border-left: 4px solid var(--warn); background: var(--surface); padding: 0.6rem 1rem; margin: 0 0 1rem; }
.banner-crit { border-left-color: var(--bad); }
.banner-quiet { border-left-color: var(--muted); }
.origin { font-size: 0.8125rem; color: var(--muted); }
.origin-own { color: var(--link); font-weight: 600; }
td.act form { display: inline; }
td.act button, td.act a.button { font-size: 0.8125rem; padding: 0.2rem 0.6rem; }
.edit { background: var(--surface); border: 1px solid var(--link); padding: 0.75rem 1rem; margin: 0.5rem 0 1.25rem; }
.edit .inline-form { margin: 0.5rem 0 0; }
.edit .inline-form input.short { min-width: 5.5rem; width: 6rem; }
h2 .count { margin: 0 0 0 0.4rem; font-weight: 400; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.plain li { padding: 0.2rem 0; }
.tag-unmanaged { color: var(--warn); }
.refresh { margin: 0 0 1rem; }
.refresh p { margin: 0.25rem 0; }
/* Sorveglianza di una porta nella tabella delle porte scollegate (0.21) */
.watch-form { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-top: 0.25rem; }
.watch-form select { width: auto; max-width: 100%; }
.watch-form button { padding: 0.15rem 0.6rem; }
/* 0.22: elenco di indirizzi (avvisi sulle iscrizioni) */
textarea { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--rule); border-radius: 4px;
  background: var(--surface); color: var(--ink); width: 26rem; max-width: 100%; resize: vertical; }
.inline-form > div.wide { flex: 0 1 26rem; max-width: 100%; }
.remove-device { margin: 0.75rem 0 0; }
ul.ceph-checks { list-style: none; margin: 0 0 1rem; padding: 0.4rem 0.9rem; background: var(--surface);
  border-left: 3px solid var(--warn-fill); font-size: 0.875rem; }
ul.ceph-checks li { padding: 0.15rem 0; overflow-wrap: anywhere; }

/* 0.28: riga «Da controllare» in cima alla pagina del cliente quando la sonda e in regola ma ci sono problemi */
.attention-line { border-left: 4px solid var(--warn-fill); padding: 0.4rem 0.75rem; background: var(--surface); }
/* 0.28.1: «Controlla con ping» nella riga dell'inventario */
.row-action { margin-top: 0.3rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.row-action button { font-size: 0.8125rem; padding: 0.15rem 0.5rem; }
.row-action select { font-size: 0.8125rem; padding: 0.1rem 0.3rem; margin-right: 0.25rem; }
.snmp-adds { margin: 0.5rem 0 1.25rem; }
.snmp-adds h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }

/* 0.31: «Scarica l'agent» */
.agent-downloads { margin: 0.5rem 0 1.5rem; }
.agent-downloads h3 { font-size: 0.95rem; margin: 1rem 0 0.25rem; }
.agent-downloads .hash { font-size: 0.75rem; word-break: break-all; }
.agent-downloads tr.older td { color: var(--muted); }
pre.cmd { font-family: var(--mono); font-size: 0.8125rem; background: var(--surface); border: 1px solid var(--rule);
          border-radius: 4px; padding: 0.5rem 0.75rem; overflow-x: auto; white-space: pre; margin: 0.25rem 0 0.5rem; }
.agent-howto summary { cursor: pointer; font-weight: 600; margin: 0.5rem 0; }
