/* report.css: the styles of xslt/report.xslt. */

p.meta { color: var(--fg-4); font-size: 0.85em; }
div.company-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0.7em 0; }
div.company-head h2 { margin: 0; }
a.compare { padding: 2px 10px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--fg); text-decoration: none; font-size: 0.9em; }
a.compare:hover { background: var(--hover); }
table.statement { border-collapse: collapse; margin: 1.5em 0 2.5em; font-size: 0.9em; }
table.statement caption { text-align: left; font-weight: bold; font-size: 1.05em; padding-bottom: 0.5em; }
table.statement th, table.statement td { border-bottom: 1px solid var(--border-faint); padding: 3px 10px; vertical-align: bottom; }
table.statement thead th { font-weight: normal; color: var(--fg-2); border-bottom: 1px solid var(--border-4); text-align: right; white-space: nowrap; }
table.statement thead th.unit { text-align: left; font-style: italic; }
table.statement tbody th { font-weight: normal; text-align: left; max-width: 36em; overflow-wrap: break-word; }
table.statement td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.statement td.op { color: var(--fg-4); padding: 3px 0 3px 4px; text-align: center; }
table.statement tr.sum th, table.statement tr.sum td { font-weight: 600; border-bottom-color: var(--border-3); }
table.statement tr.total th, table.statement tr.total td { font-weight: bold; border-top: 1px solid var(--border-heavy); border-bottom: 2px solid var(--border-heavy); }
table.statement tbody + tbody tr:first-child th, table.statement tbody + tbody tr:first-child td { padding-top: 1.2em; }
table.statement td.neg { color: var(--neg); }
table.statement td.empty { color: var(--fg-faint); }
table.statement td.computed { font-style: italic; }
table.statement td.mismatch { background: var(--mismatch); }
/* the table key below the tables: its heading (h3.legend), then one entry
   per line */
h3.legend { font-size: 0.85em; color: var(--fg-2); max-width: 60em; margin: 1.5em 0 0.4em; }
h3.legend + ul.legend { margin-top: 0; }
ul.legend { font-size: 0.8em; color: var(--fg-3); max-width: 60em; margin: 1em 0; padding: 0; list-style: none; }
ul.legend li { margin: 0.25em 0; }
/* the report's auditor (report-auditor) and when the next report is
   expected (report-next), below the legend */
p.auditor, p.next-report { font-size: 0.9em; max-width: 60em; margin: 1em 0; }
/* "On the blog" (report-posts): the posts about the company, below the
   legend, like the teasers of /blog (blog.css) without the thumbnail */
section.posts { max-width: 40em; margin: 2em 0 1em; }
section.posts h3 { margin: 0 0 0.3em; }
section.posts article { padding: 0.8em 0; border-top: 1px solid var(--border-faint); }
section.posts p.meta { margin: 0; }
section.posts h4 { font-size: 1.1em; line-height: 1.25; margin: 0.2em 0 0.3em; }
section.posts h4 a { color: var(--fg-strong); text-decoration: none; }
section.posts h4 a:hover { text-decoration: underline; }
section.posts article p:not(.meta) { line-height: 1.6; color: var(--fg-2); margin: 0; }
/* the tables and the line below them (report-table-foot), as wide as the
   table shown: the language on the left, the radio buttons on the right,
   just below the table (into its bottom margin) */
div.tables { width: fit-content; max-width: 100%; }
div.table-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: -1.75em 0 1.5em; }
div.table-foot span.readable { margin-left: auto; }
/* the language (report-lang-select): a fly-over box under the button; a
   click outside lands on the clear layer of the open summary and closes
   it (no script), as details.peers */
details.langs { position: relative; font-size: 0.85em; }
details.langs > summary { list-style: none; padding: 2px 10px; border: 1px solid var(--border-2); border-radius: 4px; color: var(--fg); cursor: pointer; }
details.langs > summary::-webkit-details-marker { display: none; }
details.langs > summary::after { content: " ▾"; color: var(--fg-4); }
details.langs > summary:hover { background: var(--hover); }
details.langs[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 1; cursor: default; }
nav.langs { position: absolute; z-index: 2; top: 100%; left: 0; box-sizing: border-box; min-width: 100%; display: flex; flex-direction: column; margin-top: 0.3em; padding: 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); box-shadow: 0 8px 32px var(--shadow); }
nav.langs a { padding: 2px 8px; border-radius: 4px; color: var(--fg); text-decoration: none; white-space: nowrap; }
nav.langs a:hover { background: var(--surface-hover); }
nav.langs a[aria-current] { background: var(--fg); color: var(--bg); }
span.readable { display: inline-flex; flex-wrap: wrap; gap: 2px 14px; font-weight: normal; font-size: 0.8em; }
span.readable a { color: var(--fg-3); text-decoration: none; white-space: nowrap; }
span.readable a:hover { color: var(--fg-strong); }
span.readable a::before { content: ""; display: inline-block; box-sizing: border-box; width: 0.95em; height: 0.95em; margin-right: 0.35em; border: 1px solid var(--border-4); border-radius: 50%; vertical-align: -0.12em; }
span.readable a[aria-checked=true] { color: var(--fg-strong); }
span.readable a[aria-checked=true]::before { border-color: var(--fg); background: radial-gradient(circle, var(--fg) 0 40%, transparent 46%); }
table.statement.ifrs tbody th { font-family: "B612 Mono", monospace; font-size: 0.9em; }
