body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

h1 {
    color: #333;
    margin-top: 0;
}

.tabs {
    margin-bottom: 20px;
}

.tabs button {
    background-color: #eee;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

.tabs button.active {
    background-color: #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: #f0f0f0;
}

.add-row,
.edit-row,
.delete-row,
.duplicate-row,
.move-to-scadenzario,
.move-to-primanota,
.add-option {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 12px;
}

.edit-row,
.delete-row,
.duplicate-row {
    background-color: #f44336;
}

.move-to-scadenzario,
.move-to-primanota {
    background-color: #008CBA;
}

.add-option{
    background-color: #008CBA;
    font-size: 14px;
    margin-bottom: 20px;
}

.add-row:hover,
.edit-row:hover,
.delete-row:hover,
.duplicate-row:hover,
.move-to-scadenzario:hover,
.move-to-primanota:hover,
.add-option:hover {
    opacity: 0.8;
}

.editable {
    background-color: #ffffe0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#contextMenu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

#contextMenu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

#contextMenu button:hover {
    background-color: #f0f0f0;
}

.filter-container {
    margin-bottom: 20px;
}

.filter-container label {
    margin-right: 10px;
}

.filter-container input[type="date"],
.filter-container select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}
