/* Gestionale, parte 01 di 10: Accesso, avvio, barra superiore. Spostato da app.css nella versione X senza cambiare una regola; i file si caricano in ordine (vedi index.html), che è l'ordine di prima. */
/* Gestionale (ristoratore e SuperAdmin). Pensato per tablet e telefono: aree di tocco da almeno 44px. */
:root { --blue: #3f5f8f; --on-blue: #ffffff; }

/* ---------- Accesso ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card {
  width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel);
}

/* ---------- Avvio e errori del framework ---------- */
.boot { padding: 24px 16px; }
.boot-error {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 12px 16px;
  background: var(--red-soft); color: var(--red-text); font-weight: 600;
}

/* ---------- Barra superiore ---------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding: 10px 16px; background: var(--black); color: #fff;
}
.topbar-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.topbar-marchio { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 40px; padding: 4px 10px; border-radius: var(--r-control); background: #f7f7f2; }
.topbar-logo img { display: block; max-height: 32px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-control);
  color: #d9e0dc; font-weight: 600; text-decoration: none;
}
.tab:hover { background: rgba(255, 255, 255, 0.12); }
.tab-badge {
  display: inline-block; min-width: 22px; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 0.85rem; font-weight: 700; text-align: center;
}
html.testo-grande { font-size: 125%; }
html.testo-grande body { font-size: 20px; }
.tab[aria-current="page"] { background: #fff; color: var(--black); }
.topbar-user { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar .topbar-email, .topbar .btn-quiet { color: #c9d3ce; }
.topbar .btn-quiet:hover { background: rgba(255, 255, 255, 0.12); }
.topbar :focus-visible { outline-color: #fff; }

.content { max-width: 1200px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.panel {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel);
}
.empty { color: var(--muted); padding: 8px 0; }
