/* adl-tables.js: search box, column filters, sorting, counter and paging for every data table */
.adl-tb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; width: 100%; margin: 0 auto 10px; color: #1B3065; font-weight: 600; }
.adl-tb-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.adl-tb-search > i, .adl-fw > i { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: #8a96b3; font-size: .85rem; pointer-events: none; }
.adl-tb-q, .adl-colq { width: 100%; box-sizing: border-box; height: 42px; padding: 0 34px; font-size: .95rem; font-weight: 400; text-align: center; border: 1px solid #cfd6e3; border-radius: 10px; background: #fff; color: #1B3065; }
.adl-colq { height: 38px; }
.adl-tb-q:focus, .adl-colq:focus { border-color: #4A65B2; outline: 0; box-shadow: 0 0 0 3px rgba(74, 101, 178, 0.18); }
.adl-tb-q.adl-on, .adl-colq.adl-on { border-color: #4A65B2; background: #f4f7ff; }
.adl-x { display: none; position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); border: 0; background: #dfe5f2; color: #1B3065; width: 22px; height: 22px; border-radius: 50%; line-height: 20px; padding: 0; cursor: pointer; font-size: 14px; }
.adl-x:hover { background: #c9d3ea; }
.adl-tb-count { background: #eef2fb; border-radius: 20px; padding: 4px 14px; }
.adl-tb-clear { display: none; border: 1px solid #cfd6e3; background: #fff; color: #1B3065; border-radius: 20px; padding: 4px 14px; cursor: pointer; font-weight: 600; }
.adl-tb-clear:hover { background: #e9eef8; }
.adl-filter-row th { background: #f3f5f9 !important; padding: 8px !important; font-weight: 400; }
.adl-fw { position: relative; }
.adl-tbl th.adl-sortable { cursor: pointer; user-select: none; }
.adl-tbl th.adl-sortable .adl-sicon { margin-inline-start: 6px; opacity: .55; font-size: .85em; }
.adl-tbl th.adl-sortable.adl-sorted .adl-sicon { opacity: 1; }
.adl-tbl mark.adl-mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 3px; }
/* stripes are painted by the script on the visible rows (the page rows that are hidden would break nth-child stripes) */
.adl-tbl.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; background-color: transparent; box-shadow: none; }
.adl-tbl > tbody > tr.adl-alt > td { background-color: #f1f4fa; }
.adl-tbl tr.adl-none td { text-align: center; color: #6b7893; }
.adl-pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; width: 100%; margin: 14px auto; color: #1B3065; font-weight: 600; }
.adl-pager select { min-width: 80px; height: 36px; padding: 2px 28px 2px 10px; border: 1px solid #cfd6e3; border-radius: 8px; background-color: #fff; color: #1B3065; font-weight: 600; width: auto; display: inline-block; }
.adl-pager .pagination { gap: 4px; margin: 0; }
.adl-pager .page-link { min-width: 38px; text-align: center; color: #1B3065; background: #fff; border: 1px solid #cfd6e3; border-radius: 8px !important; font-weight: 600; box-shadow: none; }
.adl-pager .page-item.active .page-link { background: linear-gradient(135deg, #4A65B2 0%, #365090 100%); border-color: transparent; color: #fff; }
.adl-pager .page-item.disabled .page-link { color: #9aa5bd; background: #f3f5f9; pointer-events: none; }
.adl-pager .page-link:hover { background: #e9eef8; }
@media (max-width: 768px) { .adl-tb-search { max-width: none; } }
