/* sales-analytics — dashboard styling. Only affects the /insights/ page (the
   .sa-* elements client.js mounts). Uses currentColor so it adapts to whatever
   theme renders the page, light or dark. */

#sales-analytics { margin: 2rem 0; }

.sa-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.sa-stat {
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.sa-stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sa-stat-label { font-size: 0.85rem; opacity: 0.7; margin-top: 0.25rem; }

.sa-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sa-table th, .sa-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.sa-table th { font-size: 0.8rem; opacity: 0.7; font-weight: 600; }
.sa-table .sa-num { text-align: right; }
.sa-ctas { opacity: 0.75; font-size: 0.85rem; }

.sa-auth input { padding: 0.45rem 0.6rem; margin: 0 0.5rem; }
.sa-auth button { padding: 0.45rem 1rem; }
.sa-empty { opacity: 0.7; }
.sa-range { opacity: 0.6; font-size: 0.85rem; margin-top: 1rem; }
