/*
  Always-light colour fix for uk-visa-sponsor.
  Owner preference: the page always shows the classic light look (white
  background, dark text). The csvtotable auto/dark palettes are pinned to
  the light values below, so no saved theme, OS dark preference or
  half-applied engine state can put light text on a white page again.
  Loaded from link.html, after the csvtotable stylesheet, so it wins ties.
*/
:root,
[data-theme] {
  color-scheme: light;
  --ct-paper: #fff;
  --ct-ink: #15181d;
  --ct-muted: #61666e;
  --ct-rule: #e6e8eb;
  --ct-rule-strong: #cbd0d6;
  --ct-accent: #004da8;
  --ct-wash: #eaf1fc;
  --ct-hover: #f4f6f8;
}
@media (prefers-color-scheme: dark) {
  :root,
  :root:not([data-theme]),
  :root[data-theme] {
    color-scheme: light;
    --ct-paper: #fff;
    --ct-ink: #15181d;
    --ct-muted: #61666e;
    --ct-rule: #e6e8eb;
    --ct-rule-strong: #cbd0d6;
    --ct-accent: #004da8;
    --ct-wash: #eaf1fc;
    --ct-hover: #f4f6f8;
  }
}
html {
  background: #fff;
}
body {
  background: #fff;
  color: #15181d;
}
table.dataTable > tbody > tr > td {
  color: #15181d;
}
/* The built-in theme dropdown is now inert (everything renders light);
   hide it so it does not look broken. */
#csvtotable-theme {
  display: none !important;
}
/* Top title bar */
#csvtotable-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .9rem;
  margin-bottom: .8rem;
}
.csvtotable-topbar-title {
  margin: 0;
  font-weight: 600;
  font-size: var(--ct-text-base);
  color: var(--ct-ink);
}
.csvtotable-topbar-date {
  font-weight: 400;
  color: var(--ct-muted);
  font-size: var(--ct-text-xs);
  margin-left: .45rem;
}
#csvtotable-table tbody tr {
  cursor: pointer;
}
/* Narrower Town/City and County columns (2nd and 3rd columns).
   Explicit widths capped with ellipsis so they hold in DataTables'
   virtual-scroll (nowrap) mode; rare long values truncate with an
   ellipsis instead of stretching the column or wrapping rows.
   Small screens keep the natural auto sizing. */
table.dataTable > thead > tr > th:nth-child(2),
table.dataTable > tbody > tr > td:nth-child(2),
table.dataTable > tfoot > tr > th:nth-child(2) {
  width: 7.5rem;
  max-width: 7.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.dataTable > thead > tr > th:nth-child(3),
table.dataTable > tbody > tr > td:nth-child(3),
table.dataTable > tfoot > tr > th:nth-child(3) {
  width: 6.5rem;
  max-width: 6.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px) {
  table.dataTable > thead > tr > th:nth-child(2),
  table.dataTable > tbody > tr > td:nth-child(2),
  table.dataTable > tfoot > tr > th:nth-child(2),
  table.dataTable > thead > tr > th:nth-child(3),
  table.dataTable > tbody > tr > td:nth-child(3),
  table.dataTable > tfoot > tr > th:nth-child(3) {
    width: auto;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}