:root { --pico-font-size: 95%; }
.topbar { border-bottom: 1px solid var(--pico-muted-border-color); margin-bottom: 1.5rem; padding: .25rem 1rem; }
.topbar .brand { text-decoration: none; }
.topbar form.inline { display: inline; margin: 0; }
.topbar button.small { padding: .25rem .75rem; font-size: .85rem; margin: 0; }
.auth-card { max-width: 28rem; margin: 3rem auto; }
.msg { padding: .75rem 1rem; }
.msg-error { border-left: 4px solid #c0392b; }
.msg-success { border-left: 4px solid #27ae60; }
.msg-warning { border-left: 4px solid #e67e22; }
footer.container { margin-top: 3rem; color: var(--pico-muted-color); }

/* --- pilotage --- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { padding: 1rem 1.25rem; margin: 0; }
.kpi h3 { margin: 0 0 .25rem; font-size: 1rem; }
.kpi .big { font-size: 1.6rem; font-weight: 600; margin: 0; }
.kpi small { color: var(--pico-muted-color); }
.pos { color: #008300; } .neg { color: #c0392b; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.compact td, table.compact th { padding: .35rem .5rem; font-size: .9rem; }
.clickable { cursor: pointer; text-decoration: underline dotted; }
.clickable:hover { background: var(--pico-secondary-background); }
.chart-box { position: relative; height: 320px; margin: 1rem 0 1.5rem; }
.chart-box.tall { height: 400px; }
.moisnav { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.moisnav h1, .moisnav h2 { margin: 0; }
dialog article { max-width: 42rem; }
.muted { color: var(--pico-muted-color); }
th.sticky, td.sticky { position: sticky; left: 0; background: var(--pico-background-color); }
.scroll-x { overflow-x: auto; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; font-size: .75rem; background: var(--pico-secondary-background); }
form.inline-form { display: inline; margin: 0; }
button.link { background: none; border: none; color: var(--pico-primary); padding: 0; margin: 0; width: auto; font: inherit; cursor: pointer; }
