/* ------------------------- */ /* RESET E BASE */ /* ------------------------- */ * { box-sizing: border-box; margin: 0; padding: 0; } #logodashboard { float: none; margin: 0 auto; border-radius: 7px; /* angoli morbidi */ padding: 5px; background: rgba(255,255,255,0.15); /* leggero contrasto sullo sfondo */ backdrop-filter: blur(4px); /* effetto vetro */ box-shadow: 0 4px 10px rgba(0,0,0,0.25); transition: transform 0.3s ease, box-shadow 0.3s ease; } #logodashboard:hover { transform: scale(1.05); box-shadow: 0 6px 14px rgba(0,0,0,0.35); } .container_logo{ flex: 1; text-align: center; } body { font-family: 'Inter', sans-serif; /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/ background-color: #f4f4f9; color: #333; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; } /* ------------------------- */ /* HEADER */ /* ------------------------- */ header { background-color: #ffffff; padding: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; align-items: center; } header h1 { margin: 0; } #saluto { margin-left: auto; color: #2763AB; font-weight: bold; } /* ------------------------- */ /* FOOTER */ footer { background-color: #2763AB; color: white; padding: 1rem; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } /* ------------------------- */ /* CONTAINER */ .container { display: flex; flex: 1; min-height: 80vh; } aside { background-color: #ffffff; padding: 1rem; width: 200px; box-shadow: 2px 0 4px rgba(0,0,0,0.05); } nav ul { list-style: none; font-size: 0.9rem; font-weight: bold; } nav li { padding: 0 0 0 10px; margin: 0 0 2px 0; border-radius: 5px; border: 2px solid #FFEEBA; } nav li:nth-child(odd) { background-color: #2763AB; } nav li:nth-child(even) { background-color: #2763AB; } nav ul li a { display: block; padding: 0.5rem 0; color: #fff; text-decoration: none; transition: color 0.3s; border-radius: 10px; } nav ul li a:hover { color: #ffffff; background-color: #2763AB; padding-left: 7px; } main { flex-grow: 1; padding: 2rem; } h1 { color:#08A8D7; } #titolocontenuto { text-align: left; color: #ffffff; border: 3px solid #FFEEBA; background-color: #2763AB; margin-bottom: 1rem; border-radius: 10px; padding-left: 1.5rem; padding-top: 0.2rem; padding-bottom: 0.2rem; } /* ------------------------- */ /* TABELLE */ .table-container { overflow-x: auto; background: #fff; padding: 1rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); } table { width: 100%; border-collapse: collapse; margin: 0; } /* Classi TD e TH tabella */ .green{ background: green; text-align: center; color:#fff; border: 1px solid #FFEEBA; } .orange{ background: orange; text-align: center; color:#fff; border: 1px solid #FFEEBA; } .red{ background: red; text-align: center; color:#fff; border: 1px solid #FFEEBA; } /* Fine classe TD e TH tabella */ thead th { background-color: #2763AB; padding: 0.75rem; text-align: left; color:#fff; border: 1px solid #FFEEBA; } tbody td { padding: 0.75rem; border-bottom: 1px solid #ddd; } tbody tr:nth-child(even) { background-color: #f2f2f2; } tbody tr:hover { background-color: #e9ecef; } /* ------------------------- */ /* INPUT E PULSANTI */ #searchInput { width: 100%; padding: 10px; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); transition: border-color 0.3s; } #searchInput:focus { outline: none; border-color: #007bff; } .print-button { margin-bottom: 1rem; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; background-color: #28a745; color: white; border: none; border-radius: 4px; padding: 10px 15px; cursor: pointer; transition: background-color 0.2s ease; } .print-button:hover { background-color: #218838; } .export-button { background-color: #008000; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; margin-bottom: 1rem; font-size: 1rem; text-decoration: none; display: inline-block; } .export-button:hover { background-color: #006400; } /* CSS per warning */ .scrolling-message { width: 100%; overflow: hidden; color: #2763AB; padding: 0.9rem 0; font-size: 1.2rem; font-weight: bold; position: relative; box-sizing: border-box; border-radius: 10px; white-space: nowrap; } .scrolling-message a { color: #FFD700; text-decoration: underline; } .scrolling-inner { display: inline-block; white-space: nowrap; will-change: transform; position: absolute; top: 0; } /* RESPONSIVE MOBILE */ @media screen and (max-width: 768px) { /* Header: logo sopra, titolo e saluto sotto */ header { flex-direction: column; align-items: center; text-align: center; gap: 5px; } #saluto { margin-left: 0; } #titolocontenuto { text-align: center; padding-left:0; } /* Classi TD e TH tabella */ .green{ text-align: right; } .orange{ text-align: right; } .red{ text-align: right; } /* Fine classe TD e TH tabella */ /* Layout container verticale */ .container { flex-direction: column; } aside { width: 100%; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 1rem; } nav ul { display: flex; flex-direction: column; } nav ul li { margin: 0 0 5px 0; } nav ul li a { padding: 0.75rem 1rem; text-align: center; } /* Pulsanti full width */ .print-button, .export-button { width: 100%; justify-content: center; } /* Tabella responsive "No more tables" */ table, thead, tbody, th, td, tr { display: block; } thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; margin-bottom: 1rem; border-radius: 8px; padding: 10px; background: #fff; } td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; text-align: right; font-size: 0.95rem; } td:before { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; color: #007bff; content: attr(data-label); } /* Footer centrato su mobile */ footer p { text-align: center; font-size: 0.9rem; } }