* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

h1,
h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input,
select,
button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.paid-by {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    /* Added spacing between Hugo and Cheryl buttons */
}

.paid-by button {
    flex: 1;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.paid-by button:hover {
    background-color: #0056b3;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.summary,
.note-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.debt {
    color: red;
    font-weight: bold;
}

.surplus {
    color: green;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

th {
    background-color: #007bff;
    color: white;
}

tr.hidden {
    opacity: 0.5;
}

.history-link,
.back-link {
    display: inline-block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    background-color: #007bff;
    /* Matches Ajouter button */
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.history-link:hover,
.back-link:hover {
    background-color: #0056b3;
    /* Matches Ajouter button hover */
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    input,
    select,
    button,
    .history-link,
    .back-link {
        font-size: 16px;
    }
    table {
        font-size: 14px;
    }
}