/* Shared table appearance. Surface styles retain column widths and scrolling. */
:root {
  --table-line: #e4e9ef;
  --table-heading: #f8fafc;
  --table-muted: #64748b;
  --table-hover: #f1f6f9;
}
html body :is(table, #cardBody table, .project-fund-guide table) {
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
}
html body :is(table, #cardBody table, .project-fund-guide table) :is(th, td) {
  padding: 12px 16px;
  border-bottom: 1px solid var(--table-line);
  vertical-align: middle;
  font-size: 13px;
}
html body :is(table, #cardBody table, .project-fund-guide table) thead th {
  background: var(--table-heading);
  color: var(--table-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  text-align: left;
  white-space: normal;
}
html body :is(table, #cardBody table) :is(th, td):first-child { padding-left: 20px; }
html body :is(table, #cardBody table) :is(th, td):last-child { padding-right: 20px; }
html body :is(table, .project-fund-guide table) tbody td { background: transparent; }
html body :is(table, #cardBody table) tbody tr:hover { background: var(--table-hover); }
html body table tbody tr:focus-visible { outline: 2px solid #075b72; outline-offset: -2px; }
html body :is(table, #cardBody table) :is(.amount, .efr-money) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html body table td :is(strong, .amount) { font-size: inherit; }
html body :is(table, #cardBody table) thead th:is(.amount, .efr-money) { white-space: normal; }
html body table tfoot :is(th, td) {
  background: var(--table-heading);
  border-top: 1px solid var(--table-line);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
html body :is(table, #cardBody table) tr:is(.deleted-card, .archived-card) { background: #fff1f2; }
html body :is(table, #cardBody table) tr:is(.deleted-card, .archived-card):hover { background: #ffe4e6; }
/* BI changes rows into labelled cards on narrow screens. */
@media (max-width: 1100px) {
  html body .efr-table-wrap :is(table, #cardBody table) :is(td, td:first-child, td:last-child) {
    padding: 0;
    border: 0;
    text-align: left;
  }
  html body .efr-table-wrap :is(table, #cardBody table) .efr-money { white-space: normal; }
  html body .efr-table-wrap :is(table, #cardBody table) tfoot tr { background: var(--table-heading); }
}
