/* رتبه‌بندی، کشورها، بررسی گروهی */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.toolbar-grow { flex: 1 1 260px; min-width: 0; max-width: 460px; }

/* جدول استاندارد (tableHtml و جدول‌های همین بخش‌ها) */
.t { width: 100%; border-collapse: collapse; color: var(--text); font-size: .92rem; }
.t th, .t td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t thead th { color: var(--muted-ink); font-weight: 600; font-size: .85rem; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--nav-hover); color: var(--strong); }
.t .num { font-weight: 700; color: var(--strong); }

.th-sort { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 14px; margin-inline-start: -14px;
  background: transparent; border: 0; border-radius: var(--radius-pill);
  font: inherit; color: inherit; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.th-sort:hover, .th-sort:focus-visible { background: var(--nav-hover); color: var(--strong); }
.th-dir { display: inline-block; min-width: 1ch; }
.row-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 16px;
  background: var(--chip-bg); border: 1px solid var(--line); border-radius: var(--radius-pill);
  font: inherit; font-weight: 700; color: var(--strong); cursor: pointer; text-align: start;
  transition: background-color .15s var(--ease); }
.row-btn:hover, .row-btn:focus-visible { background: var(--nav-hover); }
@media (prefers-reduced-motion: reduce) {
  .th-sort, .row-btn { transition: none; }
}

.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.pager-info { color: var(--text-2); min-width: 8ch; text-align: center; }
.pager .btn { min-height: 44px; }
.pager .flip { transform: scaleX(-1); }

.bulk-in { direction: ltr; text-align: left; min-height: 160px; }
.bulk-bar { justify-content: flex-start; }
.bulk-bar .grow { flex: 1 1 auto; }
.bulk-filter { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: var(--radius-pill);
  background: var(--chip-bg); border: 1px solid var(--line); }
.bulk-filter .tab { min-height: 44px; cursor: pointer; background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted-ink); }
.bulk-filter .tab:hover { background: var(--nav-hover); color: var(--text); }
.bulk-filter .tab[aria-pressed="true"],
.bulk-filter .tab[aria-pressed="true"]:hover { background: var(--strong); color: var(--paper); }

@media (max-width: 599.98px) {
  .toolbar-grow { max-width: none; flex-basis: 100%; }
  .t th, .t td { padding: 10px 12px; }
}
