riseup-squad23/src/pages/style/FinanceiroDashboard.css
2025-09-30 13:25:07 -03:00

278 lines
4.8 KiB
CSS

/* GERAL */
.financeiro-wrap {
display: flex;
flex-direction: column;
gap: 12px;
padding: 18px;
font-family: Inter, Roboto, Arial, sans-serif;
color: #333;
}
.financeiro-wrap h2 {
margin-bottom: 8px;
}
/* Container Cards de Resumo (Fluxo de Caixa) */
.summary-card-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 10px;
margin-bottom: 10px;
}
.summary-card {
flex: 1;
min-width: 200px;
padding: 20px;
border-radius: 10px;
color: #fff;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}
.summary-card:hover {
transform: translateY(-2px);
}
.summary-card h3 {
margin: 0 0 8px 0;
font-size: 14px;
font-weight: 500;
opacity: 0.9;
}
.summary-card .value {
font-size: 26px;
font-weight: 700;
margin: 0;
}
/* Cores dos Cards de Resumo */
.summary-card.green {
background: linear-gradient(45deg, #10b981, #059669); /* Recebido */
}
.summary-card.red {
background: linear-gradient(45deg, #f97316, #ea580c); /* A Receber */
}
.summary-card.blue {
background: linear-gradient(45deg, #3b82f6, #2563eb); /* Descontos */
}
/* Responsiidade básica para o resumo */
@media (max-width: 768px) {
.summary-card-container {
flex-direction: column;
gap: 12px;
}
.summary-card {
min-width: 100%;
}
}
/* CARD PRINCIPAL (LISTA) */
.list-page-card {
background-color: #ffffff;
border-radius: 8px;
padding: 24px;
margin-top: 16px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}
/* Tabela */
.table-container {
overflow-x: auto;
border-radius: 8px;
box-shadow: none;
}
.table-container table {
width: 100%;
border-collapse: collapse;
}
.table-container th,
.table-container td {
padding: 14px 12px;
text-align: left;
border-bottom: 1px solid #eef3f8;
font-size: 14px;
}
.table-container th {
background: #f1f5f9;
font-weight: 600;
color: #475569;
}
/* Botões de ação */
.action-group {
display: flex;
gap: 8px;
align-items: center;
}
.action-btn {
cursor: pointer;
padding: 6px 12px;
border-radius: 6px;
border: 1px solid #d7e6fb;
background: #fff;
transition: all 0.2s ease;
font-size: 13px;
}
.action-btn:hover {
background: #f6f9fc;
border-color: #93c5fd;
}
.action-btn.delete {
border-color: #fca5a5;
color: #b91c1c;
}
.action-btn.delete:hover {
background: #fee2e2;
border-color: #ef4444;
}
/* Badges de status */
.badge {
display: inline-block;
padding: 4px 10px;
border-radius: 9999px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
}
.badge.pago {
background: #d1fae5;
color: #065f46;
}
.badge.pendente {
background: #fef3c7;
color: #a16207;
}
.badge.vencido {
background: #fee2e2;
color: #991b1b;
}
/* Modal */
.modal {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 24px 12px;
background: rgba(0, 0, 0, 0.55);
z-index: 12000;
overflow-y: auto;
}
.modal-card {
background: #fff;
border-radius: 12px;
padding: 24px;
width: 100%;
max-width: 550px;
max-height: 90vh;
overflow-y: auto;
box-sizing: border-box;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.modal-header h2 {
font-size: 20px;
font-weight: 700;
color: #1f2937;
margin: 0;
}
.modal-body {
display: flex;
flex-direction: column;
gap: 16px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 4px;
}
.form-group label {
font-size: 13px;
font-weight: 600;
color: #4b5563;
}
.close-btn {
background: none;
border: none;
font-size: 20px;
font-weight: bold;
color: #6c757d;
cursor: pointer;
transition: color 0.2s;
line-height: 1;
}
.close-btn:hover {
color: #333;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 24px;
}
/* Inputs e selects */
.input-field,
.select-field,
textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
box-sizing: border-box;
font-size: 14px;
transition: border-color 0.2s, box-shadow 0.2s;
background-color: #fff;
}
.input-field:focus,
.select-field:focus,
textarea:focus {
border-color: #3b82f6;
outline: none;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
textarea {
resize: vertical;
min-height: 80px;
}
/* Mensagem quando não há pagamentos */
.empty {
text-align: center;
padding: 40px;
color: #7d97b4;
font-size: 16px;
}