/* Activity (ui/activity/activity.js): the admin's feed of what happened. Drawn with the studio's frame (.st-top,
   .st-pane, .st-sec, .st-empty) and the Credits page's parts (credits.css: .cr-stat, .cr-k, .cr-mid, .cr-note,
   .cr-table, .cr-link, .cr-plus, .cr-foot), so the two pages read as one. Owned here, and by no other file:
   #page-activity and .ac-*. Tokens only: nothing here needs a light-theme twin. */

#page-activity .page-header{margin-bottom:18px}

/* ── the numbers: four of them, side by side while they fit, two by two on a phone ── */
.ac-stats{display:grid;grid-auto-flow:row;grid-template-rows:none;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:14px 28px;width:100%;min-width:0}
.ac-stats .cr-stat{display:flex;flex-direction:column;gap:2px;min-width:0}
.ac-stats .cr-mid{margin-top:2px}

/* ── the filters, at the right of the part's head ── */
.ac-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
select.ac-pick{width:auto;min-width:150px;max-width:220px;padding:7px 10px;font-size:13.5px;background:var(--bg);
  border-color:var(--border-hover);text-overflow:ellipsis}

/* ── the feed: the date, the customer and the amount keep their width, "What" takes the rest ── */
.ac-feed{table-layout:fixed}
.ac-feed .ac-c-when{width:136px}
.ac-feed .ac-c-who{width:200px}
.ac-feed .ac-c-amt{width:112px}
.ac-feed td{overflow-wrap:anywhere}
.ac-feed td.ac-when{white-space:nowrap}
.ac-feed td.ac-what{font-size:14px;line-height:1.45}
.ac-feed .ac-name{font-weight:600;overflow-wrap:anywhere}
.ac-feed td.ac-amt{white-space:nowrap;font-variant-numeric:tabular-nums}
.ac-feed tbody tr:last-child td{border-bottom:0}
.ac-m{display:none}                                           /* what a row says on a phone only: when, and what kind */

/* ── a phone: the numbers two by two; a line is the customer and the amount, then what happened, then when ── */
@media (max-width:768px){
  #page-activity .page-header{margin-bottom:14px}
  #page-activity .page-sub{display:none}
  .ac-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
  .ac-filters{flex:1 1 100%}
  select.ac-pick{flex:1 1 140px;min-width:0;max-width:none}
  .ac-feed,.ac-feed tbody{display:block}
  .ac-feed thead,.ac-feed td.ac-when{display:none}
  .ac-feed tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px 10px;padding:12px 0;
    border-bottom:1px solid var(--border)}
  .ac-feed tbody tr:last-child{border-bottom:0}
  .ac-feed td{display:block;padding:0;border:0}
  .ac-feed td.ac-who{grid-column:1;grid-row:1}
  .ac-feed td.ac-amt{grid-column:2;grid-row:1}
  .ac-feed td.ac-what{grid-column:1/-1;grid-row:2}
  .ac-feed td:empty{display:none}
  .ac-m{display:block}
}
