.income-report-page {
  padding: 0;
  max-width: 100%;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: -0.5px;
}

.error-message {
  padding: 12px 16px;
  background-color: #ffebee;
  color: #c62828;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #ef9a9a;
  font-size: 14px;
  font-weight: 500;
}

.filters-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filters-section .date-range-filter {
  margin-bottom: 0;
}

.filter-select {
  padding: 10px 16px;
  border: none;
  border-radius: 30px;
  background-color: white;
  box-shadow: 0 0 0 2px #f4f4f4;
  font-size: 14px;
  color: #333;
  min-width: 180px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 42px;
  box-sizing: border-box;
}

.filter-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fcd200;
}

.filter-select:hover {
  box-shadow: 0 0 0 2px #e6e6e6;
}

.clear-filters-btn {
  padding: 10px 20px;
  background-color: white;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.2s ease;
  height: 42px;
  box-sizing: border-box;
  margin-top: 20px;
}

.clear-filters-btn:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
  color: #333;
}

.summary-actions-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.summary-card-wrapper {
  flex: 0 0 auto;
  min-width: 220px;
}

.new-income-btn {
  padding: 12px 24px;
  background-color: #5d1a2a;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(93, 26, 42, 0.3);
  white-space: nowrap;
}

.new-income-btn:hover {
  background-color: #7a2236;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 26, 42, 0.4);
}

.table-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 400px;
}

.table-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  gap: 16px;
}

.loading-spinner-large {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top-color: #5d1a2a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.table-loading p {
  color: #666;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .page-title {
    font-size: 24px;
  }

  .filters-section {
    padding: 16px;
  }

  .additional-filters {
    gap: 10px;
  }

  .table-section {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .income-report-page {
    padding: 0;
  }

  .page-title {
    font-size: 22px;
  }

  .filters-section {
    padding: 12px;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-select {
    min-width: 100%;
  }

  .clear-filters-btn {
    width: 100%;
  }

  .summary-actions-section {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-card-wrapper {
    min-width: 100%;
  }

  .new-income-btn {
    width: 100%;
    text-align: center;
  }

  .table-section {
    padding: 16px;
    border-radius: 12px;
  }

  .table-loading {
    min-height: 300px;
  }

  .loading-spinner-large {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 20px;
  }

  .filters-section {
    padding: 10px;
  }

  .table-section {
    padding: 12px;
  }
}
