/* pagination.css — the pager under the ticket table.
 *
 * Numbers rather than an endless scroll, so the reader can see how much queue
 * is left and come back to the same page after opening a ticket. The controls
 * are circles: a page number is one glyph, and a capsule around one glyph is a
 * circle whichever way the ladder is read. */

.pager {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pg-range {
  font-size: 13px;
  color: var(--ink-4);
  letter-spacing: -.006em;
}

.pg-pages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.pg-num,
.pg-step {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pg-num:hover,
.pg-step:hover:not(:disabled) {
  background: var(--hover);
  color: var(--ink);
}
.pg-num:active,
.pg-step:active:not(:disabled) { transform: scale(.9); }

/* The page you are on is filled, not outlined: it is a state, and the platform
   states a selection by filling the shape it lives in. */
.pg-num.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.pg-num.on:hover { background: var(--accent-dark); color: var(--on-accent); }

.pg-step.next svg { transform: rotate(180deg); }
.pg-step:disabled {
  opacity: .32;
  cursor: not-allowed;
}

.pg-gap {
  min-width: 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13.5px;
  user-select: none;
}

/* Compact: the pager sits INSIDE a card (a taxonomy list, the activity thread,
   rather than under a full-width table) so it drops the
   "x–y of n" line, centres itself and draws its own separator. */
.pager.compact {
  margin-top: 0;
  padding: 10px 14px;
  justify-content: center;
  border-top: 1px solid var(--line-soft);
}
.pager.compact .pg-pages { margin-left: 0; }
.pager.compact .pg-num,
.pager.compact .pg-step {
  min-width: 30px;
  height: 30px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .pager { gap: 10px; }
  .pg-pages { margin-left: 0; }
}
