.dashboard-controls {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(280px, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.year-filter, .lifetime-summary {
  background: #fff;
  border: 1px solid #dde2e8;
  border-radius: 12px;
  padding: 18px;
}
.year-filter label { display: block; font-weight: 750; margin-bottom: 8px; }
.year-filter select { max-width: 180px; }
.lifetime-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.lifetime-summary span, .lifetime-summary small { color: #667085; }
.lifetime-summary strong { font-size: 25px; }
.lifetime-summary small { grid-column: 1 / -1; margin-top: 4px; }
.table-heading h2 { margin: 0; }
.table-heading p { color: #667085; margin: 5px 0 18px; }
.agent-table-scroll { overflow-x: auto; }
.agent-transactions { min-width: 980px; }
.agent-transactions th:nth-child(1) { width: 15%; }
.agent-transactions th:nth-child(2) { width: 27%; }
.agent-transactions th:nth-child(3) { width: 18%; }
.agent-transactions th:nth-child(6) { width: 12%; }
.agent-transactions td { vertical-align: middle; }
.agent-transactions td:nth-child(3) { line-height: 1.3; }
.agent-transactions td:nth-child(6) { text-align: left; }
.agent-transactions td:nth-child(6) .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 112px;
  min-height: 32px;
  line-height: 1.15;
  text-align: center;
}
.agent-transactions td small { display: block; color: #667085; margin-top: 4px; }
.agent-transactions tfoot th, .agent-transactions tfoot td {
  background: #f7f8fa;
  border-top: 2px solid #cfd6df;
  border-bottom: 0;
  font-weight: 800;
}
@media (max-width: 720px) {
  .dashboard-controls { grid-template-columns: 1fr; }
  .lifetime-summary { grid-template-columns: 1fr; }
  .lifetime-summary strong { margin-top: 5px; }
  .lifetime-summary small { grid-column: auto; }
}
