body {
    font-family: Segoe UI, Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    color: #222;
}

.barra-superiore {
    background: #2c3e50;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.barra-superiore a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.contenuto {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 20px;
}

.pannello-login {
    max-width: 380px;
    margin: 80px auto;
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

h1 { font-size: 22px; }

label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #555;
}

input[type=text], input[type=password], input[type=email], input[type=number] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

button, .pulsante {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 16px;
}

button:hover, .pulsante:hover { background: #1a252f; }

.errore {
    color: #c0392b;
    margin-top: 10px;
    font-size: 13px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 16px;
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

th { background: #f0f0f0; }

/* ---- Pagine di gestione (rivenditori, installazioni) ---- */
a { color: #2c6fbb; }
.sottotitolo { color: #666; margin-top: -8px; }
.nota { color: #777; font-size: 13px; }
.vuoto { color: #777; }
.intestazione-pagina { display: flex; justify-content: space-between; align-items: center; }
a.pulsante { display: inline-block; text-decoration: none; margin-top: 0; color: white; }
.pulsante-secondario { background: #fff; color: #2c3e50 !important; border: 1px solid #2c3e50; }
.pulsante-secondario:hover { background: #eef1f4; }
.pulsante-piccolo { padding: 5px 10px; font-size: 12px; margin-top: 0; }
.pannello { background: white; padding: 20px 24px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); margin-top: 24px; }
.pannello h2 { margin-top: 0; font-size: 18px; }
.griglia-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
select { width: 100%; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; background: white; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; color: white; }
.badge-ok { background: #43a047; }
.badge-attesa { background: #fb8c00; }
.badge-scaduto { background: #c0392b; }
.codice-piccolo { font-family: Consolas, monospace; font-weight: bold; letter-spacing: 1px; margin-left: 6px; }
.riquadro-codice { background: #e8f5e9; border: 2px solid #43a047; border-radius: 8px; padding: 18px 24px; margin: 18px 0; }
.riquadro-codice .codice { font-size: 36px; font-weight: bold; letter-spacing: 4px; font-family: Consolas, monospace; margin: 8px 0; }
.validation-summary-errors ul { margin: 0 0 8px 18px; padding: 0; color: #c0392b; font-size: 13px; }
