body {
    background-color: #e0f7fa;
    font-family: Arial, sans-serif;
	
}
.form-container {
    max-width: 1000px;
    margin: auto;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	overflow-x: auto;
    overflow: hidden; /* Aggiungi questa linea */
}
.logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 100px;
}
.form-container h2 {
    background-color: #007bb5;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #007bb5;
}
input, textarea, select {
    width: 100%;
    padding: 5px;
    margin-top: -5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
input[type="submit"] {
    background-color: #007bb5;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 4px;
}
input[type="submit"]:hover {
    background-color: #005f8a;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word; /* Aggiungi questa linea */	
}

.interventi {
    font-size: 0.7em;
    padding: 5px;
}

.attivita-richieste {
    font-size: 0.8em;
}

.clienti, .listaprogetti {
    /* Stile per le tabelle con meno colonne, font leggermente più grande */
    font-size: 0.9em;
}

th {
    background-color: #007bb5;
    color: white;
}
tr:hover {
    background-color: #f1f1f1;
}
.btn {
    display: inline-block;
    padding: 5px 20px;
    margin-bottom: 20px;
    background-color: #007bb5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}
.btn:hover {
    background-color: #005f8a;
    color: white;
}

.inline-form {
    display: flex;
    align-items: center;
}

.inline-form label,
.inline-form select,
.inline-form button {
    margin-right: 10px;
}

input[readonly], textarea[readonly] {
    background-color: #e0e0e0; /* Grigio leggero */
    color: #000; /* Colore del testo */
}

.popup-anchor {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: #FFF;
}

.popup-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Posiziona il popup sopra l'ancora */
    left: 50%;
    margin-left: -100px; /* Centra il popup */
    opacity: 0;
    transition: opacity 0.3s;
}

.popup-anchor:hover .popup-text {
    visibility: visible;
    opacity: 1;
}

.footer { text-align: center; margin-top: 20px; font-size: 12px; color: #666; }

@media (min-width: 600px) {
    .form-container {
        width: 100%;
		overflow-x: auto;
    }
	
	.interventi {
    font-size: 0.7em;
    padding: 0px;
}

    nav ul li {
        display: inline;
        margin-right: 20px;
    }

    a.logout {
        float: none;
    }
	

	.form-group label, 
	.form-group input, 
	.form-group select, 
	.form-group textarea { width: 48%; } 
	.form-group label, 
	.form-group input, 
	.form-group select, 
	.form-group textarea:nth-child(odd) { margin-right: 4%; } 
}
