/* Admin analytics tiles, charts and tables (Workstreaks Admin → Analytics).
   Flat black and blue from theme.css: no gradients or glows. */
.an-section {
  margin: 2rem 0 .85rem;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.an-section:first-child { margin-top: 0; }

.an-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .75rem;
}
.an-tile {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: var(--surface);
}
.an-tile span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.an-tile b {
  color: var(--text);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.an-tile em { color: var(--muted); font-size: .8rem; font-style: normal; }

.an-card { margin-bottom: .75rem; }
.an-card h3 { margin: 0 0 .9rem; font-size: 1rem; letter-spacing: -.01em; }

.an-chart { position: relative; }
.an-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.an-grid { stroke: var(--line); stroke-width: 1; }
.an-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.an-bar { fill: var(--accent); }
.an-hit { fill: transparent; cursor: default; }
.an-hit:hover { fill: var(--accent-soft); }
.an-tip {
  position: absolute;
  top: -.25rem;
  transform: translate(-50%, -100%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: .35rem .6rem;
  background: var(--surface-2);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}


.an-scroll { overflow-x: auto; margin: 0 -.25rem; padding: 0 .25rem; }
.an-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.an-table th,
.an-table td {
  padding: .6rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.an-table thead th { color: var(--muted); font-size: .78rem; font-weight: 650; }
.an-table tbody th { font-weight: 600; color: var(--text); }
.an-table tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.an-table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.an-table tbody tr:last-child > * { border-bottom: 0; }
.an-none { margin: 0; color: var(--muted); }
.an-foot { margin: 1.25rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

@media (max-width: 900px) {
  .an-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .an-tiles { gap: .5rem; }
  .an-tile { padding: .8rem .85rem; }
  .an-tick { font-size: 13px; }
}
