/* Data tables on the AI agent pages (assets/js/rd-datatable.js).
   Markup: <div class="rd-data" data-table="…" data-rows="…"><table>…</table></div>.
   The script adds the search box and rows-per-page choice above the table and the count with
   previous and next below it, when the table has more rows than one page holds. Without the script
   the table reads as it is. */
/* A data table takes the full content width (1240px), even where it sits in the 760px text column:
   the section's container is the measure (cqi), so the table never reaches past the content edge. */
.rd-section:has(.rd-data) > .rd-container { container-type: inline-size; }
.rd-data { margin-block: 32px; width: 100cqi; }
.rd-data table {
    width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px;
    display: block; overflow-x: auto;
}
.rd-data :is(th, td) { padding: 8px 16px; border-bottom: 1px solid var(--rd-line); text-align: left; vertical-align: top; white-space: nowrap; }
.rd-data thead th { font-weight: 700; border-bottom-color: var(--rd-ink); }
.rd-data tbody th { font-weight: 600; }
.rd-data__controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 24px; margin-bottom: 24px; }
.rd-data__field { display: grid; gap: 8px; }
.rd-data__field--search { flex: 1 1 320px; max-width: 480px; }
.rd-data__controls select.rd-input { width: auto; }
/* Previous and Next are the secondary button (rd-btn--outline); a button with no page to go to is hidden. */
.rd-data__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 16px; }
.rd-data__status { margin: 0; color: var(--rd-muted); }
.rd-data__buttons { display: flex; gap: 8px; margin-left: auto; }
.rd-data__buttons .rd-btn[hidden] { display: none; }
