body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    padding-bottom: 0.5rem;
}

nav ul {
    padding: 0;
    list-style: none;
    background: #444;
    text-align: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
}

nav ul li a:hover {
    background: #555;
}

main {
    padding: 20px;
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #333;
    color: #fff;
}

/* Form Styles */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    /* Important */
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form button {
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background: #555;
}

/* Signature Pad Styles */
.signature-pad-container {
    border: 1px solid #ccc;
    margin-bottom: 15px;
    position: relative;
    height: 200px;
    /* Adjust as needed */
}

.signature-pad-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.signature-pad-container button.clear-signature {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8em;
    padding: 3px 6px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
}


/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #f2f2f2;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Utility Classes */
.form-group {
    margin-bottom: 20px;
}

.error {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.success {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}

.photo-preview img {
    max-width: 150px;
    height: auto;
    margin: 5px;
    border: 1px solid #ccc;
}

fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

.operai-list label {
    display: inline-block;
    /* Or block */
    margin-right: 15px;
    font-weight: normal;
}

.operai-list input[type="checkbox"] {
    margin-right: 5px;
}