body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 95%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    box-sizing: border-box;
}

.form-section-title {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    color: #007bff;
    font-size: 1.5em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

h1, h2 {
    color: #333;
    text-align: center;
}

form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="date"],
input[type="number"],
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.full-width-btn {
    width: 100%;
}

/* Estilos para a tabela */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead tr {
    background-color: #007bff;
    color: white;
    text-align: left;
}

th, td {
    padding: 2px 5px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Estilos para as linhas da tabela */
tr.vencido {
    color: #dc3545; /* Vermelho */
}

tr.liquidado {
    color: #0056b3; /* Azul */
}


tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #e9e9e9;
}

/* Estilos para a mensagem de feedback */
.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para o Modal de Feedback */
.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: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos adicionais para os cards do extrato */
.cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.card h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #555;
}
.card .valor {
    font-size: 1.5em;
    font-weight: bold;
    margin: 10px 0 0;
}
.card-pagar { background-color: #ffcccc; }
.card-receber { background-color: #ccffcc; }
.card-pagas { background-color: #f0f0f0; }
.card-recebidas { background-color: #e6f7ff; }
.card-saldo { background-color: #fff8e1; }

/* Estilos para os botões de ação na tabela */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.btn-action {
    padding: 5px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 0.9em;
}

.edit-btn { background-color: #ffc107; }
.delete-btn { background-color: #dc3545; }

.status-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}

.status-aberto i { color: #dc3545; }
.status-liquidado i { color: #28a745; }

/* Estilos para os botões de filtro */
.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    color: #555;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-data-group {
    display: flex;
    align-items: center;
    gap: 5px;
}
/* Estilos para o Card de Resumo Filtrado */
.summary-cards-container {
    display: flex;
    justify-content: flex-end; /* Alinha os cards à direita */
    gap: 15px;
    width: 50%; /* Reduz a largura do container */
    margin-left: auto; /* Garante que o container se alinhe à direita */
}

.summary-cards-container .card {
    flex: 1; /* Garante que os cards preencham o espaço disponível */
}

/* Garante que os cards da parte de cima não sejam afetados */
.cards-container:not(.summary-cards-container) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-content: start;
    margin-bottom: 20px;
}
/* Adicione estas classes ao seu arquivo style.css */

.actions-cell {
    white-space: nowrap; /* Evita quebra de linha entre os ícones */
}

.edit-icon, .delete-icon {
    cursor: pointer;
    font-size: 1.2em;
    margin: 0 5px; /* Adiciona espaçamento entre os ícones */
    transition: transform 0.2s;
}

.edit-icon {
    color: #ffc107; /* Amarelo para editar */
}

.delete-icon {
    color: #dc3545; /* Vermelho para excluir */
}

.edit-icon:hover, .delete-icon:hover {
    transform: scale(1.1); /* Efeito de zoom ao passar o mouse */
    opacity: 0.8;
}

.liquidate-icon {
    cursor: pointer;
    font-size: 1.2em;
    margin: 0 5px;
    transition: transform 0.2s;
    color: #0056b3; /* Cor azul para liquidar */
}

.liquidate-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}
/* Código adicionado para o pedido de ajuste de zoom */
#entriesTable th,
#entriesTable td {
    font-size: 10px;
    padding: 5px;
    white-space: nowrap;
}
