* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Design mais clean e delicado com cores suaves */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  color: #2d3748;
  line-height: 1.6;
  padding: 32px 20px;
  min-height: 100vh;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: 40px;
}

/* Header mais elegante e espaçado */
.header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.header h1 {
  font-size: 2.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1rem;
  color: #718096;
  font-weight: 400;
}

/* Navegação com estilo mais suave */
.navigation {
  margin-bottom: 36px;
}

.year-selector {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.year-btn {
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  color: #718096;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-btn:hover {
  border-color: #cbd5e0;
  background-color: #f7fafc;
  transform: translateY(-1px);
}

.year-btn.active {
  background-color: #4a5568;
  color: #ffffff;
  border-color: #4a5568;
  box-shadow: 0 2px 4px rgba(74, 85, 104, 0.2);
}

.month-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.month-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #718096;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.month-btn:hover {
  background-color: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.month-btn.active {
  background-color: #667eea;
  color: #ffffff;
  border-color: #667eea;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.25);
}

/* Info do período mais delicada */
.period-info {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 28px;
  border-left: 3px solid #667eea;
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
}

.report-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Container de tabela mais clean */
.table-container {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
}

/* Tabela com design mais suave e delicado */
.financial-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
}

.financial-table thead {
  background-color: #f7fafc;
}

.financial-table thead th {
  padding: 12px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
}

.financial-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.financial-table tbody tr:hover {
  background-color: #f8fafc;
}

.financial-table tbody td {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: #2d3748;
}

.code-column {
  font-weight: 500;
  color: #718096;
  font-family: "SF Mono", "Monaco", "Courier New", monospace;
  font-size: 0.8rem;
}

.value-column {
  text-align: right;
  font-weight: 600;
  color: #2d3748;
  font-family: "SF Mono", "Monaco", "Courier New", monospace;
  font-size: 0.875rem;
}

/* Linha de total mais elegante */
.financial-table tfoot .total-row {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  font-weight: 600;
}

.financial-table tfoot .total-row td {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: #1a202c;
  border-top: 2px solid #cbd5e0;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a0aec0;
}

.empty-state p {
  font-size: 1rem;
}

/* Responsivo otimizado */
@media (max-width: 768px) {
  .container {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .header h1 {
    font-size: 1.875rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .year-btn {
    padding: 9px 22px;
    font-size: 0.9rem;
  }

  .month-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1rem;
    padding: 14px 18px;
  }

  .financial-table thead th {
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .financial-table tbody td {
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  .code-column {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 16px 12px;
  }

  .container {
    padding: 20px 16px;
  }

  .header h1 {
    font-size: 1.625rem;
  }

  .year-selector {
    flex-direction: column;
  }

  .year-btn {
    width: 100%;
  }

  .financial-table thead th,
  .financial-table tbody td {
    padding: 10px 12px;
    font-size: 0.75rem;
  }

  .code-column {
    font-size: 0.7rem;
  }
}
