/* Import Infinity: adattamenti per uso da ufficio (tabelle larghe) sopra style.css */
body.wide .container { max-width: 1280px; }

.btn { font-family: Roboto, 'Open Sans', system-ui, sans-serif; }

/* Schermi stretti: intestazione compatta, menu su più righe */
@media (max-width: 700px) {
  .topbar { padding: 0 !important; }
  .topbar-main { padding: .5rem 16px; }
  .topbar .brand img { height: 32px; }
  .topbar .brand span { display: none; }
  .topbar nav { justify-content: flex-start; gap: .1rem 1rem; padding: .4rem 16px; }
  .topbar nav a { font-size: .8rem; }
}

/* Pagina di accesso: logo bianco su fascia blu notte */
.login-head { background: var(--navy); margin: 0 -1.5rem 1.2rem; padding: 1.6rem 1rem 1.3rem; text-align: center; }
.login-head img { height: 54px; width: auto; }
.login-head div { color: #fff; font: 700 .9rem Roboto, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-top: .6rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stats .card { margin: 0; }
.stat-num { font-size: 1.8rem; font-weight: 700; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }

.table .num, .num { font-variant-numeric: lining-nums tabular-nums; }
.table td.mono, .mono { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; overflow-wrap: anywhere; }
.table tr.bad td { background: #fff8eb; }
.table tr.off td { color: var(--muted); }
.table input { width: 100%; min-width: 0; padding: .3rem .45rem; font-size: .9rem; }
.table td.check { width: 2rem; }

.csv { background: #1a202c; color: #e2e8f0; padding: .9rem 1rem; border-radius: 10px; overflow-x: auto;
  font-family: ui-monospace, Consolas, monospace; font-size: .8rem; line-height: 1.45; max-height: 340px; white-space: pre; }

.test-banner { background: #f79009; color: #011321; text-align: center; padding: .45rem 1rem; font-size: .9rem; }
.warnbox { background: var(--warn-bg); color: var(--warn-text); border-left: 4px solid #f79009; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.warnbox ul, .okbox ul { margin: .3rem 0 0 1.1rem; padding: 0; }
.okbox { background: var(--ok-bg); color: var(--ok-text); border-left: 4px solid #12b76a; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0 1rem; }
.toolbar form { margin: 0; }
.steps { margin: 0 0 1rem 1.2rem; padding: 0; }
.steps li { margin-bottom: .3rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
details.edit summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
details.edit form { display: grid; grid-template-columns: 1.2fr .8fr 2fr .8fr auto; gap: .4rem; margin-top: .4rem; align-items: center; }
@media (max-width: 700px) { details.edit form { grid-template-columns: 1fr; } }

/* chassis and codes must stay on one line */
.table td.mono { white-space: nowrap; }
