/* Container do Filtro */
.transaction-filter-form {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* Sombra elegante */
  width: 100%;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Espaçamento entre as seções */
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Títulos das seções de filtro */
.filter-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

/* Grupo de botões estilo "pílula" (Chips) para rádio ou checkbox */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Estilos individuais dos Chips */
.chip-group input[type="radio"],
.chip-group input[type="checkbox"] {
  display: none;
  /* Oculta o input padrão */
}

.chip-group label {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ced4da;
  background-color: #f8f9fa;
  color: #495057;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  margin: 0 !important;
  user-select: none;
}

.chip-group label:hover {
  background-color: #e2e6ea;
}

/* Estado selecionado dos Chips */
.chip-group input[type="radio"]:checked+label,
.chip-group input[type="checkbox"]:checked+label {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

/* Container flex para inputs (datas/selects) */
.input-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 140px;
}

.input-group label {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

.input-control {
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
  outline: none;
  transition: all 0.2s;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
}

.input-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Ações do Filtro */
.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.btn-filter {
  padding: 10px 24px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsividade (Mobile) */
@media (max-width: 768px) {
  .transaction-filter-form {
    padding: 15px;
  }

  .chip-group {
    justify-content: stretch;
    width: 100%;
  }

  .chip-group label {
    flex: 1;
    text-align: center;
  }

  .input-row {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .input-group {
    width: 100%;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .btn-filter {
    width: 100%;
    justify-content: center;
  }
}

/*----------editar transação--------*/
.modal {
  display: none;
  /* Oculta o modal por padrão */
  position: fixed;
  /* Fica fixo na tela */
  z-index: 1000;
  /* Certifica-se de que está na frente */
  left: 0;
  top: 0;
  width: 100%;
  /* Largura total */
  height: 100%;
  /* Altura total */
  overflow: auto;
  /* Habilita scroll se necessário */
  background-color: rgba(0, 0, 0, 0.5);
  /* Fundo semi-transparente */
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  /* Centraliza o conteúdo */
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  /* Largura do modal */
  max-width: 600px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}