 .tabs-and-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.reports-tabs {
  display: flex;
  gap: 10px;
}

.tab-button {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s, border-bottom 0.3s;
}

.tab-button.active {
  border-bottom: 2px solid #007bff;
}

.reports-section {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reports-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.report-date {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-date label {
  font-size: 14px;
  color: #333;
}

.report-date input[type="date"],
.report-date select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

#generate-report,
#export-report {
  padding: 8px 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

#generate-report:hover,
#export-report:hover {
  background: #0056b3;
}

.report-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 14px;
  color: #666;
}

.summary-value {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.report-table th,
.report-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.report-table th {
  background: #f1f3f5;
  font-weight: 600;
  color: #333;
}

.report-table td {
  font-size: 14px;
  color: #555;
}

.total-row {
  font-weight: bold;
  background: #f8f9fa;
}

.total-row td {
  color: #333;
}

.group-filter {
  margin-bottom: 15px;
}

.group-filter label {
  font-size: 14px;
  color: #333;
  margin-right: 10px;
}

.details-btn {
  margin-top: 5px;
  padding: 5px 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.details-btn:hover {
  background: #0056b3;
}

.details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.details-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.details-modal-content h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
}

.details-content {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.close-details-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-details-btn:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .tabs-and-date {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-date {
    margin-top: 10px;
  }

  .report-table th,
  .report-table td {
    padding: 8px;
    font-size: 12px;
  }

  .report-summary {
    flex-direction: column;
    gap: 10px;
  }

  .details-modal-content {
    width: 95%;
  }
}
