/* Tableau de bord : mise en page large, tuiles, graphique et tableaux triables. */
:root { --series-1: #257de0; --grid: #e6e6e2; }
.dash main { max-width: 1240px; }
.toplink { margin-left: auto; color: #fff; font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { min-width: 140px; flex: 1 1 140px; }
.filters .grow { flex: 2 1 220px; }
.filters input, .filters select { padding: 9px 10px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.quick #export { margin-left: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile .label { font-size: 13px; color: var(--muted); }
.tile .value { font-size: 26px; font-weight: 600; margin-top: 4px; }
.tile.hero .value { font-size: 40px; }
.tile .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.two > .card { min-width: 0; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 600; cursor: pointer; user-select: none; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
th[aria-sort="ascending"]::after { content: " ▲"; }
th[aria-sort="descending"]::after { content: " ▼"; }
tbody tr.clickable { cursor: pointer; }
tbody tr:hover { background: #f7f7f4; }
td.wrap { white-space: normal; min-width: 180px; }
.small-text { font-size: 13px; font-weight: 400; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 240px; }
.chart .axis { font-size: 11px; fill: var(--muted); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .bar { fill: var(--series-1); }
.chart .hit { fill: transparent; }
.chart .hit:hover + .bar, .chart .bar.on { fill: #1b64be; }
.chart .empty { color: var(--muted); padding: 40px 0; text-align: center; }
.tip { position: fixed; pointer-events: none; background: #191919; color: #fff; font-size: 13px; padding: 8px 10px; border-radius: 8px; z-index: 10; }
.tip strong { display: block; font-size: 15px; }
.chart .bar { pointer-events: none; }
