/* The Activity page (GAKA 1.114.0). Owned by public/js/activity.js and loaded after /styles.css. Class names here belong
   to this module; a look shared by several modules goes in /styles.css (npm run check-styles enforces this). */

/* Average times: four small tables side by side, one per team */
.activity-avgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.activity-avg h3 { margin: 0 0 .15rem; font-size: 1rem; }
.activity-avg p { margin: 0 0 .5rem; }

/* What kind of thing happened: a small coloured tag in the feed */
.activity-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .1rem .45rem;
  border-radius: 6px; margin-right: .35rem; background: var(--surface-2); color: var(--muted); }
.activity-tag.t-load { background: var(--accent-soft); color: var(--link); }
.activity-tag.t-document { background: color-mix(in srgb, var(--copper) 18%, transparent); color: var(--copper); }
.activity-tag.t-money { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.activity-tag.t-customer, .activity-tag.t-layby { background: var(--second-soft); color: var(--second); }

/* One average per line: the name, then the time and how many it is based on */
.activity-avg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.activity-avg-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border-bottom: 1px solid var(--border); }
.activity-avg-list li:last-child { border-bottom: 0; }
