.elementor-889 .elementor-element.elementor-element-7cb685d{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-889 .elementor-element.elementor-element-7cb685d.e-con{--flex-grow:0;--flex-shrink:0;}@media(min-width:768px){.elementor-889 .elementor-element.elementor-element-7cb685d{--width:100%;}}/* Start custom CSS for html, class: .elementor-element-e498765 *//* ESTILO GERAL */
#app-financeiro { font-family: 'Montserrat', sans-serif; color: #1f2328; max-width: 1200px; margin: auto; padding: 15px; }
#app-financeiro h1 { font-size: 2rem; margin: 0 0 4px; }
#app-financeiro h2 { font-size: 1.5rem; margin: 0 0 1rem; }
#app-financeiro .muted { font-size: 1rem; color: #6b7280; margin-bottom: 2rem; }
#app-financeiro .card { background: #fff; border-radius: 12px; padding: 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,.07); border: 1px solid #e5e7eb; margin-bottom: 1.5rem;}

/* PAINEL DE RESUMO */
#app-financeiro .dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; text-align: center; margin-bottom: 2rem; }
#app-financeiro .dash-item { padding: 1.25rem 1rem; }
#app-financeiro .dash-item .label { display: block; font-size: 0.9rem; color: #6b7280; margin-bottom: 0.5rem; }
#app-financeiro .dash-item .value { display: block; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 2.5rem; line-height: 1; }
#app-financeiro .dash-item.dash-receitas .value { color: #22c55e; }
#app-financeiro .dash-item.dash-despesas .value { color: #ef4444; }
#app-financeiro .dash-item.dash-saldo .value { color: #3b82f6; }

/* FORMULÁRIO */
#app-financeiro .form-card { max-width: 900px; margin-left: auto; margin-right: auto; }
#app-financeiro .form-card h2 { border-bottom: 1px solid #e5e7eb; padding-bottom: 0.75rem; }
#app-financeiro .form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
#app-financeiro .grid-span-2 { grid-column: span 2; }
#app-financeiro .grid-span-4 { grid-column: span 4; }
#app-financeiro label { font-size: 0.9rem; margin-bottom: 4px; display: block; font-weight: 500; }
#app-financeiro input[type="text"], input[type="number"], input[type="date"], select { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 1rem; font-family: 'Montserrat', sans-serif; }
.form-status-checkbox { display: flex; align-items: center; gap: 8px; margin-top: 1rem; }
.form-status-checkbox label { margin-bottom: 0; font-weight: 500; }
.form-status-checkbox input[type="checkbox"] { width: auto; height: 18px; width: 18px; accent-color: #3b82f6; }

/* GERENCIADOR DE GRUPOS */
#gerenciar-grupos { max-width: 900px; margin-left: auto; margin-right: auto; }
#gerenciar-grupos h2 { margin-bottom: 0.5rem; }
#lista-grupos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.categoria-item { background-color: #f3f4f6; padding: 5px 10px; border-radius: 15px; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.categoria-item button { background: #d1d5db; color: #4b5563; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; line-height: 1; }
#form-add-grupo { display: flex; gap: 10px; }
#form-add-grupo input { flex-grow: 1; }
#form-add-grupo button { background-color: #6b7280; color: white; }

/* BOTÕES */
#app-financeiro button { padding: 12px 16px; border-radius: 10px; border: 0; cursor: pointer; font-size: 1rem; font-weight: 600; transition: all 0.2s ease; white-space: nowrap; }
#app-financeiro .btn-primary { background:#3b82f6; color:#fff; } /* Mudei a cor do exportar para azul */
#app-financeiro .btn-danger { background:#ef4444; color:#fff; }
#app-financeiro .btn-ghost { background:#fff; border:1px solid #d1d5db; color: #374151; }
#app-financeiro .btn-secondary { background:#e5e7eb; color: #1f2328; padding: 6px 10px; font-size: 0.9rem; }
/* Ajuste na cor do botão do form */
#btn-adicionar.btn-primary { background:#22c55e; }

/* CABEÇALHO DA TABELA */
#app-financeiro .row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin: 2rem 0 1rem 0; }
#app-financeiro th[data-sort] { cursor: pointer; user-select: none; }

/* FILTROS */
#filter-toggle-icon { cursor: pointer; padding: 5px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.3s ease-out; }
#filter-toggle-icon:hover { background-color: #f3f4f6; }
#filter-toggle-icon.active { transform: rotate(180deg); }
#filter-toggle-icon.active svg { stroke: #3b82f6; }

#filter-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
#filter-section.visible {
    max-height: 150px; 
}
#app-financeiro .filtros { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 1.5rem; }
#app-financeiro .filtros > * { flex: 1 1 180px; }

/* ATUALIZAÇÃO V3: Estilo para o filtro de data customizado */
.filtro-data-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px; /* Dar mais espaço */
}
.filtro-data-range label {
  font-size: 0.9rem;
  margin: 0;
  color: #6b7280;
  white-space: nowrap;
}
.filtro-data-range input[type="date"] {
  padding: 12px 8px; /* Menor padding para caber */
  flex-grow: 1;
}

/* TABELA */
#app-financeiro table { width: 100%; border-collapse: collapse; font-size: 1rem; }
#app-financeiro thead th { text-align: left; padding: 12px; border-bottom: 2px solid #e5e7eb; text-transform: uppercase; font-size: 0.8rem; color: #6b7280; }
#app-financeiro tbody td { padding: 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
#app-financeiro .tipo-receita { color: #16a34a; font-weight: 600; }
#app-financeiro .tipo-despesa { color: #dc2626; font-weight: 600; }
#app-financeiro .acoes-cell { display: flex; gap: 5px; align-items: center; }
.status-badge { padding: 4px 10px; border-radius: 15px; font-size: 0.85rem; font-weight: 600; text-align: center; }
.status-pago { background-color: #dcfce7; color: #16a34a; }
.status-a_pagar { background-color: #fffbeb; color: #b45309; }
.checkbox-col { width: 20px; }
.checkbox-col input, td input[type="checkbox"] { width: 18px; height: 18px; }

/* ATUALIZAÇÃO V3: Rodapé da tabela com botões alinhados */
#app-financeiro .table-footer { 
  padding-top: 1rem; 
  border-top: 1px solid #e5e7eb; 
  margin-top: 1rem; 
  display: flex; 
  gap: 10px; 
  justify-content: space-between; /* ALINHADO */
  flex-wrap: wrap; /* ADICIONADO */
}
/* Grupos de botões */
.table-footer-actions-left, .table-footer-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* REMOVIDO: #delete-selected-btn { margin-right: auto; } */


/* PAGINAÇÃO E SELETOR DE ITENS */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1rem;
    gap: 20px;
}
#pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}
.page-item { background-color: #fff; border: 1px solid #d1d5db; color: #374151; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 500; }
.page-item:hover { background-color: #f9fafb; }
.page-item.active { background-color: #3b82f6; color: #fff; border-color: #3b82f6; }
.page-item.disabled { color: #9ca3af; cursor: not-allowed; background-color: #f9fafb; }

.items-per-page-.elementor-889 .elementor-element.elementor-element-e498765 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.items-per-page-.elementor-889 .elementor-element.elementor-element-e498765 label {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}
.items-per-page-.elementor-889 .elementor-element.elementor-element-e498765 select {
    padding: 8px 12px;
    font-size: 0.9rem;
    width: auto;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    #app-financeiro h1 { font-size: 1.5rem; }
    #app-financeiro .form-grid { grid-template-columns: 1fr; }
    #app-financeiro .grid-span-2, #app-financeiro .grid-span-4 { grid-column: span 1; }
    #app-financeiro .dashboard { grid-template-columns: 1fr; }
    #app-financeiro .dash-item.dash-saldo { order: -1; }
    #app-financeiro .filtros > * { flex-basis: 100%; } /* Filtros ocupam 100% */
    .filtro-data-range { flex-basis: 100%; } /* Filtro de data também */
    .pagination-container { flex-direction: column; }
    .table-footer-actions-left, .table-footer-actions-right { flex-basis: 100%; justify-content: center; }
    .table-footer-actions-left { order: 2; }
    .table-footer-actions-right { order: 1; }


    #app-financeiro table, thead, tbody, th, td, tr { display: block; }
    #app-financeiro thead { display: none; }
    #app-financeiro tbody tr { border: 1px solid #e5e7eb; border-radius: 12px; padding: 0.5rem; margin-bottom: 1rem; display: block; }
    #app-financeiro tbody td { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; border: none; border-bottom: 1px solid #f3f4f6; }
    #app-financeiro tbody tr td:last-child { border-bottom: none; }
    #app-financeiro tbody td::before { content: attr(data-label); font-weight: bold; margin-right: 1rem; color: #374151; }
}/* End custom CSS */