.stats-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.stats-tabs .tab {
  border: none;
  background: transparent;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border-radius: 999px;
  transition: .2s;
  color: #000;
}
.stats-tabs .tab.active {
  background: #f3f3f3;
  color: #482c7e;
}

/* GRID */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: flex-start;
}
.stat-card {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 200px;
}
.stat-card .label {
  font-size: 16px;
  color: #555;
  margin-bottom: 6px;
  display: block;
}
.stat-card .value {
  font-size: 22px;
  font-weight: 700;
}
.stat-card .value.green { color: #10b981; }
.stat-card .value.red { color: #ef4444; }

@media (max-width: 768px) {
  .stats-grid { flex-direction: column; align-items: center; }
  .stat-card { flex: 1 1 100%; width: 80%; }
}

/* Báo cáo */
.report {
  max-width: 1200px;
  margin: 20px auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  line-height: 1.6;
  font-size: 16px;
}
.report h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Table styles */
.transaction-table-wrapper {
  max-width: 1200px;
  overflow-x: auto;
  margin: 20px auto;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border: 1px solid #e2e8f0;
}
.transaction-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 16px;
}
.transaction-table thead {
  background: linear-gradient(90deg, #6b46c1, #805ad5);
  color: #fff;
  text-align: left;
  font-size: 16px;
}
.transaction-table th,
.transaction-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.transaction-table tbody tr:nth-child(even) { background-color: #f9f9f9; }
.transaction-table tbody tr:hover { background-color: #f0f0f0; }
.transaction-table .amount { color: #10b981; font-weight: 600; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
  font-size: 15px;
}
.pagination button {
  border: none;
  background: #f3f3f3;
  color: #555;
  padding: 8px 14px;
  margin-left: 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.pagination button.active,
.pagination button:hover {
  background: #fbd38d;
  color: #000;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Tab panes */
.stats-pane {
  position: absolute;   /* ẩn khỏi layout */
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none; /* tránh tương tác */
  transition: all 0.3s;
}

.stats-pane.active {
  position: static;
  left: auto;
  top: auto;
  opacity: 1;
  height: auto;
  overflow: visible;
  pointer-events: auto;
}

