body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
}

header, main, footer {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

header h1, main h2 {
    text-align: center;
    color: #333;
}

header p, main p {
    text-align: center;
    color: #666;
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    overflow-x: auto; /* Añadido para permitir el desplazamiento horizontal */
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button:hover {
    background: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

.saldo-row {
    display: table-row;
    align-items: center;
}

.saldo-header {
    font-weight: bold;
    text-align: center;
}

.saldo-row input[type="number"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

#saldosContainer {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 10px;
}

footer p {
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.form-group {
    margin-bottom: 15px;
}
