/* Layout Generale */
body { margin: 0; font-family: sans-serif; display: flex; flex-direction: column; height: 100vh; overflow-x: hidden; }
header { height: 10vh; background-color: #34495e; color: white; display: flex; justify-content: center; align-items: center; }
footer { height: 5vh; background-color: #2c3e50; color: white; display: flex; justify-content: center; align-items: center; }
main { display: flex; flex-grow: 1; overflow: hidden; }

/* Menu e Sidebar */
.menu { width: 20%; min-width: 150px; background-color: #ecf0f1; padding: 20px; box-sizing: border-box; overflow-y: auto; }
.content { width: 80%; padding: 20px; box-sizing: border-box; overflow-y: auto; background-color: white; }

/* Pulsanti */
.button, .subbutton { display: block; width: 100%; padding: 10px; margin-bottom: 10px; border: none; cursor: pointer; font-size: 1em; transition: 0.3s; border-radius: 5px; color: white; text-align: center; }
.button { background-color: #3445DB; }
.button:hover { background-color: #B96329; }
.subbutton { background-color: #3498db; }
.subbutton:hover { background-color: #2980b9; }

.submenu { display: none; margin-top: 10px; }

/* Tabelle */
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
th { background-color: #f2f2f2; }

/* Classi dinamiche per l'analisi */
.highlighted-sum { background-color: #FFFF00; font-weight: bold; }
.color-success { background-color: #a8e6a8 !important; font-weight: bold; }
.color-warning { background-color: #ffe899 !important; }
.color-danger { background-color: #ff9999 !important; font-weight: bold; }
.color-gray { background-color: #e0e0e0 !important; }
