/* BASE */

.dashboard {
  margin: 0;
  padding: 12px;
  font: 14px Arial, sans-serif;
  color: #1e355e;
  background: #fff;
}

.dashboard,
.dashboard * {
  box-sizing: border-box;
}


/* FILTRES */

.dashboard .filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dashboard .filters label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dashboard .filters select {
  max-width: 235px;
  padding: 7px;
  border: 1px solid #ccc;
  color: #222;
  background: #fff;
}

.dashboard .filters select:disabled {
  color: #777;
  background: #eee;
}

.dashboard .filters button {
  padding: 10px 20px;
  border: 0;
  color: #222;
  background: #eee;
  cursor: pointer;
}


/* SÉLECTION */

.dashboard .selection {
  margin: 12px 0 6px;
}

.dashboard .selection small {
  font-size: 14px;
  color: #6e7c87;
}

.dashboard .selection p {
  margin: 7px 0;
  font-size: 19px;
  font-weight: 600;
}


/* CHIFFRES CLÉS */

.dashboard .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.dashboard .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid #e6ded2;
  border-radius: 10px;
  background: #f8f5ef;
}

.dashboard .stat dt {
  color: #6e7c87;
}

.dashboard .stat dd {
  order: -1;
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}


/* GRAPHIQUES */

.dashboard .chart {
  width: 100%;
  min-width: 0;
  background: #f8f5ef;
}

.dashboard .bottom {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 43fr);
  gap: 1%;
  margin-top: 12px;
}


/* MESSAGE ET ACCESSIBILITÉ */

.dashboard .error {
  margin: 16px 0;
  padding: 24px;
  border: 1px solid #e6ded2;
  border-radius: 10px;
  background: #f8f5ef;
}

.dashboard .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}