/* G4-STM4: the IFRS 18 presentation (category headers, display subtotals) and the multi-period comparison of the income statement */
.statement-row.header td,.statement-analysis-table tr.header td,.stm4-table tr.header td{font-weight:800;font-size:12px;letter-spacing:.02em;color:var(--text-muted);padding-top:14px;border-bottom:1px solid var(--border)}
tr[data-stm4-header] td{text-align:start}
.statement-row.subtotal.stm4-display td,.stm4-table tr.subtotal.stm4-display td{font-weight:750}
.designer-lock[data-stm4-display]{color:var(--accent,#5b8cff)}
.stm4-compare{margin:0 0 14px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.stm4-compare[hidden]{display:none}
.stm4-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:baseline}.stm4-head span{color:var(--text-muted);font-size:12px;max-width:62ch}
.stm4-shortcuts,.stm4-chips,.stm4-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.stm4-shortcuts button{font-size:12px}
.stm4-chips{gap:6px}.stm4-chips button{border-radius:999px;padding:4px 10px;font-size:12px;min-height:32px;font-variant-numeric:tabular-nums}
.stm4-chips button[aria-pressed="true"]{border-color:var(--accent,#5b8cff);box-shadow:0 0 0 1px var(--accent,#5b8cff) inset;font-weight:700}
.stm4-year{font-size:11px;color:var(--text-muted);padding:0 2px 0 6px;align-self:center}
.stm4-compare[data-stm4-mode="years"] .stm4-chips button{padding:6px 14px;font-weight:600}
#stm4Status{font-size:12px;color:var(--text-muted);display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}#stm4Status.error{color:var(--danger,#e5484d)}#stm4Status b{font-weight:600}
#stm4CompareTable{margin-top:10px}#stm4CompareTable:empty{display:none}
.stm4-table th small{display:block;font-weight:500;color:var(--text-muted);font-size:11px;margin-top:2px}
.stm4-table th.stm4-delta,.stm4-table td.stm4-delta{font-size:12px;color:var(--text-muted);white-space:nowrap}
.stm4-table .statement-compare-hint{caption-side:top;text-align:start;font-size:12px;color:var(--text-muted);padding:0 0 8px}
em[data-months]{font-style:normal}em[data-months]::after{content:" (" attr(data-months) ")"}
.stm4-table[data-stm4-columns="2"]{min-width:0}
@media(max-width:600px){.stm4-compare{padding:10px}.stm4-shortcuts button,#stm4Run{flex:1 1 100%}.stm4-head span{max-width:none}.stm4-table th:not(:first-child),.stm4-table td:not(:first-child){position:static}}
