riseup-squad23/src/pages/style/FinanceiroDashboard.css

443 lines
8.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;
color: #fff;
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 */
.btn-view {
background-color: #E6F2FF !important;
color: #004085 !important;
border: 1px solid #B8D4F0 !important;
padding: 0.375rem 0.75rem;
font-size: 0.875rem;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease-in-out;
text-decoration: none;
display: inline-block;
text-align: center;
}
.btn-view:hover {
background-color: #D1E7FF !important;
border-color: #9EC5FE !important;
}
.btn-edit {
background-color: #FFF3CD !important;
color: #856404 !important;
border: 1px solid #FFEAA7 !important;
padding: 0.375rem 0.75rem;
font-size: 0.875rem;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease-in-out;
text-decoration: none;
display: inline-block;
text-align: center;
}
.btn-edit:hover {
background-color: #FFEEBA !important;
border-color: #FFE087 !important;
}
.btn-delete:hover {
background-color: #F1B0B7 !important;
border-color: #ED969E !important;
}
.btn-delete {
background-color: #F8D7DA !important;
color: #721C24 !important;
border: 1px solid #F5C6CB !important;
padding: 0.375rem 0.75rem;
font-size: 0.875rem;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease-in-out;
text-decoration: none;
display: inline-block;
text-align: center;
}
html[data-bs-theme="dark"] .btn-view {
background-color: #1e3a8a !important;
color: #e0e0e0 !important;
border-color: #374151 !important;
}
html[data-bs-theme="dark"] .btn-edit {
background-color: #78350f !important;
color: #fef3c7 !important;
border-color: #374151 !important;
}
html[data-bs-theme="dark"] .btn-delete {
background-color: #7f1d1d !important;
color: #fee2e2 !important;
border-color: #374151 !important;
}
/* Badges de status */
.badge {
display: inline-block;
padding: 8px 18px !important;
border-radius: 9999px;
font-size: 14px !important;
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: 85vh;
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: #fff;
margin: 0;
}
.modal-body {
display: flex;
flex-direction: column;
gap: 16px;
}
.modal-card .input-field,
.modal-card .select-field,
.modal-card textarea {
width: 100%;
}
.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;
}
.input-field,
.select-field,
textarea {
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;
}
/* Inputs e selects */
.input-field,
.select-field,
textarea {
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;
}
.financeiro-wrap .input-field:not(.modal-card *),
.financeiro-wrap .select-field:not(.modal-card *),
.financeiro-wrap textarea:not(.modal-card *) {
width: 30%;
}
.modal-card .input-field,
.modal-card .select-field,
.modal-card textarea {
width: 100%;
}
/* Mensagem quando não há pagamentos */
.empty {
text-align: center;
padding: 40px;
color: #7d97b4;
font-size: 16px;
}
html[data-bs-theme="dark"] .financeiro-wrap {
background-color: #121212;
color: #e0e0e0;
}
html[data-bs-theme="dark"] .list-page-card {
background-color: #1e1e1e;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
}
html[data-bs-theme="dark"] .table-container th {
background: #2c2c2c;
color: #cbd5e1;
}
html[data-bs-theme="dark"] .table-container th,
html[data-bs-theme="dark"] .table-container td {
border-bottom: 1px solid #333;
color: #e0e0e0;
}
html[data-bs-theme="dark"] .table-container tr:nth-child(even) {
background-color: #1a1a1a;
}
html[data-bs-theme="dark"] .table-container tr:hover {
background-color: #333 !important;
}
html[data-bs-theme="dark"] .action-btn {
background: #2c2c2c;
border: 1px solid #444 !important;
color: #e0e0e0;
}
html[data-bs-theme="dark"] .action-btn:hover {
background: #3a3a3a !important;
border-color: #666 !important;
}
html[data-bs-theme="dark"] .action-btn.delete {
border-color: #f87171 !important;
color: #fca5a5 !important;
}
html[data-bs-theme="dark"] .action-btn.delete:hover {
background: #7f1d1d !important;
border-color: #f87171 !important;
}
html[data-bs-theme="dark"] .badge.pago {
background: #064e3b !important;
color: #d1fae5;
}
html[data-bs-theme="dark"] .badge.pendente {
background: #78350f !important;
color: #fef3c7;
}
html[data-bs-theme="dark"] .badge.vencido {
background: #7f1d1d !important;
color: #fee2e2;
}
html[data-bs-theme="dark"] .modal-card {
background: #1e1e1e;
color: #e0e0e0;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
}
html[data-bs-theme="dark"] .modal-header h2 {
color: #e0e0e0;
}
html[data-bs-theme="dark"] .input-field,
html[data-bs-theme="dark"] .select-field,
html[data-bs-theme="dark"] textarea {
background-color: #23272f;
color: #e0e0e0;
border: 1px solid #444;
}
html[data-bs-theme="dark"] .input-field:focus,
html[data-bs-theme="dark"] .select-field:focus,
html[data-bs-theme="dark"] textarea:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
outline: none;
}