.a6-table-wrapper {
  overflow-x: auto;
  background-color: #001545;
}
.a6-countries-table {
  border-collapse: collapse;
  width: max-content; /* ensures min-widths apply and allows horizontal scroll */
  min-width: 100%;
}
.a6-countries-table .a6-header-head,
.a6-table-wrapper .a6-table-footer {
  border-color: #5B6B93;
  border-top: 1px solid;
  border-bottom: 1px solid;
}
.a6-countries-table th {
  font-weight: normal;
  font-size: 0.75rem;
  height: 2.5rem;
  vertical-align: top;
}
.a6-countries-table th,
.a6-countries-table td {
  padding: 6px 5px;
  min-width: 120px;
  color: #fff;
  text-align: left;
}

.a6-countries-table th:first-child,
.a6-countries-table td:first-child {
  min-width: 200px;
  text-align: left;
}
.a6-countries-table th:last-child,
.a6-countries-table td:last-child {
  min-width: 150px;
}

.a6-header-row th {
  cursor: pointer;
}

.a6-totals-row th {
  font-weight: bold;
}

/* Base style */
.a6-sortable .a6-sort-icon::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  opacity: 0.7;
  text-align:left;
  font-size: 0.75rem;
  line-height: 1;
}

/* Default state: not sorted (hollow down) */
.a6-sortable .a6-sort-icon::before {
  border-top: 6px solid currentColor; /* ▼ */
}

/* Active sorting: ascending */
.a6-sortable.asc .a6-sort-icon::before {
  border-top: none;
  border-bottom: 6px solid currentColor; /* ▲ */
  opacity: 1;
}

/* Active sorting: descending */
.a6-sortable.desc .a6-sort-icon::before {
  border-top: 6px solid currentColor; /* ▼ */
  border-bottom: none;
  opacity: 1;
}

.a6-sortable.active .a6-sort-icon::before {
  opacity: 1;
}

.a6-table-wrapper .a6-table-footer {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  padding: 1rem 0;
}
.a6-table-wrapper .a6-data-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
/* -------------------------
   New additions for scroll
------------------------- */
.a6-header-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.a6-body-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.a6-table-wrapper {
  background-color: #001545;
  padding: 0.5rem;
}

.a6-scroll-wrapper {
  overflow-x: auto;
}
.a6-filters-wrapper {
  margin: 1.5rem 0;
  border-top: 1px solid #5B6B93;
  width: 100%;
  overflow: hidden;
}
.a6-download {
  float: right;
  padding: 1.1rem 0;
  height: 2.5rem;
}
.a6-download a {
  color: #fff;
  font-size: 0.875rem;
}
.a6-download a:hover {
  color: #fff;
}
.a6-download a .download-ico {
  font-size: 1.2rem;
  padding: 0 0.25rem;
}
.a6-filters,
.a6-sorts {
  float:left;
  padding-top: 1rem;
}
.a6-filters label,
.a6-sorts  label {
  line-height: 1rem;
  height: 2.5rem;
  margin: 0 1rem;
  overflow: hidden;
}
.a6-filters .filter-caption,
.a6-sorts  .sort-caption {
  text-transform: uppercase;
  color: #99A1B5;
  font-size: 0.875rem;
  height: 2.5rem;
  vertical-align: bottom;
  display: inline-block;
}
.a6-filters select#a6-filter-region,
.a6-filters select#a6-filter-income,
.a6-sorts  select#a6-sort-type {
  border-bottom: 1px solid #fff;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  height: 2.5rem;
  overflow: hidden;
  width: 110%;
  min-width: max-content;
  appearance: none;        /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #001C59 url("data:image/svg+xml;utf8,<svg fill='%23fff' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
  background-size: 1rem;   /* size of arrow */
  padding-right: 1.5rem;     /* space for arrow */
}
.a6-filters select,
.a6-sorts select,
.a6-filters select option,
.a6-sorts  select option {
  background: #001C59;
  color: #fff;
  font-size: 0.875rem;
}

.a6-countries-table .a6-body .a6-name a {
  color: #FBC64A;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
}

.a6-countries-table .a6-body .a6-name a img.a6-flag {
  vertical-align: middle;
  margin-right: 5px;
  display: block;
  width: 20px;
  height: 13px;
}

.a6-table-wrapper .a6-table-footer .a6-table-info {
  color: #99A1B5;
}
.a6-table-wrapper .a6-table-footer .a6-table-info strong {
  color: #fff;
}

/* Pager wrapper */
.a6-table-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  gap: 0.25rem;
}

/* General button style */
.a6-table-pager button {
  background: none;
  border: none;
  cursor: pointer;
  color: #99a1b5;
  border-radius: 3px;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

/* Disabled state */
.a6-table-pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Hover effect */
.a6-table-pager button:hover:not(:disabled) {
  color: #ffffff;
}
.a6-table-pager .a6-pager-page {
  text-decoration: underline;
}
/* Active page */
.a6-table-pager .a6-pager-page.active {
  font-weight: bold;
  color: #ffffff;
  text-decoration: underline;
}

/* Ellipsis */
.a6-table-pager .a6-pager-ellipsis {
  color: #99a1b5;
  padding: 0 0.4rem;
}

