body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

h1 {
    text-align: center;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

form button[type="submit"] {
    display: block;           /* affichage en bloc */
    margin: 20px auto;        /* centrage horizontal avec marge */
    background-color: #2196F3;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

form button[type="submit"]:hover {
    background-color: #1976D2;
}

#operations-container {
    margin-bottom: 20px;
}

.month-container {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.month-container h3 {
    margin-top: 0;
}

.operation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
}

.operation select,
.operation input {
    margin-right: 10px;
    margin-bottom: 10px;
}

.operation .remove-operation {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.operation .remove-operation:hover {
    background-color: #ff1a1a;
}

.salary-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#results {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em; /* Réduire la taille de la police */
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 10px;
}

table th {
    background-color: #f2f2f2;
}

table th:first-child,
table td:first-child {
    width: 75%; /* Réduire la largeur de la colonne de gauche à 3/4 */
    text-align: left;
}

table th:last-child,
table td:last-child {
    text-align: right; /* Aligner les valeurs sur la droite */
}

#local-actions {
    text-align: center;
    margin-top: 20px;
}

.action-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

#local-actions button {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#local-actions button:hover {
    background-color: #45a049;
}

#year-section {
    text-align: center;
    margin-bottom: 20px;
    background-color: #e3f2fd;
    padding: 10px;
    border: 1px solid #90caf9;
    border-radius: 5px;
}

#declarant-section {
    text-align: center;
    margin-bottom: 20px;
    background-color: #e3f2fd;
    padding: 10px;
    border: 1px solid #90caf9;
    border-radius: 5px;
}

#year-select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
}

#declarant-select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
}
