body {
  font-family: 'Helvetica', 'Arial', sans-serif;
  margin: 0;
  background-color: #f9f9f9;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

h1 {
  font-size: 24px;
  color: #333;
}

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.filters .left,
.filters .right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filters input,
.filters select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #006EFF;
  color: white;
}

.btn-primary:hover {
  background-color: #0056d9;
}

.btn-secondary {
  background-color: #eee;
  color: #333;
}

.btn-secondary:hover {
  background-color: #ddd;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.card h3 {
  font-size: 14px;
  margin-bottom: 6px;
  color: #666;
}

.card p {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.chip {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  display: inline-block;
  text-transform: capitalize;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.entrada {
  background-color: #28a745;
}

.saida {
  background-color: #dc3545;
}

/* Categorias - Padronizadas sem caracteres especiais */
.chip.categoria-alimentacao { 
  background-color: #FFA726;
  color: #fff; 
}

.chip.categoria-salario { 
  background-color: #AB47BC;
  color: #fff;
}

.chip.categoria-software { 
  background-color: #42A5F5;
  color: #fff;
}

.chip.categoria-lazer { 
  background-color: #FFEE58;
  color: #333;
}

.chip.categoria-servico { 
  background-color: #78909C;
  color: #fff;
}

.chip.categoria-devolucao { 
  background-color: #EF5350;
  color: #fff;
}

.chip.categoria-compras { 
  background-color: #26C6DA;
  color: #fff;
}

.chip.categoria-beneficios { 
  background-color: #EC407A;
  color: #fff;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.action-icons {
  display: flex;
  gap: 8px;
}

.action-icons span {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  font-size: 16px;
}

.action-icons span:hover {
  opacity: 1;
}

#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
  color: #333;
}

.modal-content input,
.modal-content select {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.modal-content input:focus,
.modal-content select:focus {
  border-color: #006EFF;
  outline: none;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
}

input[readonly] {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters .left, .filters .right {
    flex-direction: column;
    width: 100%;
  }

  .filters input, .filters select {
    width: 100%;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px 12px;
  }

  .chip {
    padding: 3px 8px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .highlights {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 16px;
    margin: 0 16px;
  }
}