:root {
  --blu: #118DF0;
  --arancio: #FF671C;
  --grigio-chiaro: #f5f5f5;
  --bordo: #ddd;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  background: #fff;
  color: #222;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 2px solid var(--blu);
}

.topbar .logo {
  font-weight: bold;
  color: var(--blu);
  text-decoration: none;
  font-size: 18px;
}

.logout-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
}

h1 { color: var(--blu); }

label {
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 14px;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--bordo);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.row { display: flex; gap: 16px; }
.row > label { flex: 1; }

.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }

.btn-primary {
  background: var(--blu);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button { cursor: pointer; }

.elenco-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--bordo); }
th { color: var(--blu); }

#canvas-firma {
  border: 1px solid var(--bordo);
  border-radius: 4px;
  touch-action: none;
  background: #fff;
}

.errore { color: #a4262c; font-weight: 600; }

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--grigio-chiaro);
}

.login-card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 320px;
}

#riepilogo-contenuto dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 12px;
}
#riepilogo-contenuto dt { font-weight: 600; color: #555; }
