/* tables.css: the styles of xslt/tables.xslt (with report.css, whose
   table.statement the tables are). */

span.tables-report { color: var(--fg-4); font-size: 0.9em; }
/* "All tables", "Edit selection", a page's neighbours (heading) and the
   tables selected (top of the content): a row of buttons */
nav.tables-browse, nav.tables-picked { display: flex; flex-wrap: wrap; gap: 4px; margin: 0.4em 0 0.8em; }
nav.tables-browse a, nav.tables-picked a { padding: 2px 10px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--fg); text-decoration: none; font-size: 0.9em; font-variant-numeric: tabular-nums; white-space: nowrap; }
nav.tables-browse a:hover, nav.tables-picked a:hover { background: var(--hover); }
nav.tables-browse a[aria-current] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
p.tables-about, p.tables-none { color: var(--fg-4); font-size: 0.85em; max-width: 60em; }

/* the list: the boxes, the filter and the buttons only with the script */
form.tables-pick:not(.js) .js-only { display: none; }
div.tables-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 1em 0 0.5em; font-size: 0.9em; }
div.tables-filter input[type=search] { font: inherit; width: 20em; max-width: 100%; padding: 4px 8px; border: 1px solid var(--border-3); border-radius: 4px; background: var(--bg); color: var(--fg); }
table.tables-index { border-collapse: collapse; font-size: 0.9em; margin: 0 0 1em; }
table.tables-index th, table.tables-index td { padding: 3px 10px; border-bottom: 1px solid var(--border-faint); text-align: left; vertical-align: baseline; }
table.tables-index thead th { font-weight: normal; color: var(--fg-2); border-bottom: 1px solid var(--border-4); }
table.tables-index .page { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tables-index td.kind, table.tables-index td.size, table.tables-index td.pdf { color: var(--fg-4); white-space: nowrap; }
table.tables-index thead th .sub { color: var(--fg-4); font-size: 0.85em; }
table.tables-index .size { text-align: right; font-variant-numeric: tabular-nums; }
table.tables-index tbody tr:hover { background: var(--hover-2); }
table.tables-index tbody tr:has(input:checked) { background: var(--mark); }
/* the buttons stay at the bottom of the window while the list is in view */
div.tables-tools { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 8px 0; background: var(--bg); border-top: 1px solid var(--border); }
div.tables-tools button { font: inherit; padding: 4px 14px; border: 1px solid var(--border-4); border-radius: 4px; background: var(--surface); color: var(--fg); cursor: pointer; }
div.tables-tools button:hover:not(:disabled) { background: var(--surface-hover); }
div.tables-tools button.show:not(:disabled) { background: var(--fg); border-color: var(--fg); color: var(--bg); }
div.tables-tools button:disabled { color: var(--fg-faint); cursor: default; }
div.tables-tools output { color: var(--fg-4); font-size: 0.9em; }

/* a table: wide ones scroll on their own, not the page */
section.grid { margin: 1.5em 0 2.5em; scroll-margin-top: 12em; }
section.grid h3 { margin: 0 0 0.2em; font-size: 1.05em; }
section.grid h3 a { color: var(--fg-strong); text-decoration: none; }
section.grid h3 a:hover { text-decoration: underline; }
section.grid p.meta { margin: 0 0 0.6em; }
div.grid-scroll { max-width: 100%; overflow-x: auto; }
table.statement.grid { margin: 0 0 0.5em; }
table.statement.grid thead th { white-space: normal; vertical-align: bottom; min-width: 4.5em; }
table.statement.grid thead th.group { text-align: center; border-bottom-color: var(--border-2); font-weight: 600; letter-spacing: 0.02em; }
table.statement.grid thead th.unit { vertical-align: bottom; min-width: 0; }
table.statement.grid tbody th { padding-left: calc(10px + var(--level, 0) * 1.2em); min-width: 14em; }
table.statement.grid tr.group th { font-weight: 600; padding-top: 0.6em; border-bottom-color: transparent; }
table.statement.grid tr.parent th, table.statement.grid tr.parent td { font-weight: 600; }
table.statement.grid tr.sum th, table.statement.grid tr.sum td { border-bottom-color: var(--border-3); }
table.statement.grid td.text { text-align: left; white-space: normal; min-width: 8em; max-width: 30em; }
ul.legend.notes { margin: 0.5em 0; }
details.grid-warnings { font-size: 0.8em; color: var(--fg-4); max-width: 60em; }
details.grid-warnings summary { cursor: pointer; }
details.grid-warnings ul { margin: 0.3em 0; padding-left: 1.4em; }
