body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
}

header {
    background: #0066cc;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Pulsanti in alto */
.top-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #e9f2fb;
    border-bottom: 1px solid #d0d7de;
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-buttons button {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: 1px solid #0066cc;
    background: #fff;
    color: #0066cc;
    border-radius: 6px;
    cursor: pointer;
}

.top-buttons button:hover {
    background: #0066cc;
    color: #fff;
}

/* Nascondi sezioni */
.hidden {
    display: none;
}

/* Sezioni dei registri */
.register-section {
    margin: 20px auto;
    max-width: 1200px;
    padding: 10px 16px;
}

/* Tabelle */
table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.9rem;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
}

th {
    background: #e9f2fb;
    cursor: pointer;
}

tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* Overlay grafico */
.overlay-chart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.overlay-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.overlay-close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}
