/* gp-ajuste.css — 28/09 (Omar) : GestPlan bureau s'ajuste à une fenêtre étroite du PC.
   1. Zoom automatique : 90 % sous 1280 px de large, 80 % sous 1100 px (au-dessus de 768 px : en dessous, c'est la version téléphone).
      Les hauteurs « plein écran » (100vh) sont divisées par le zoom pour que la page remplisse toujours la fenêtre.
   2. Tableau de bord : tuiles au format commun cit-tuile (règle S10 : une rangée, 60 px, 6 au plus, les autres dans « Plus d'indicateurs »). */
:root { --gp-zoom: 1; }
@media (min-width: 769px) and (max-width: 1279px) { :root { --gp-zoom: .9; } html { zoom: .9; } }
@media (min-width: 769px) and (max-width: 1099px) { :root { --gp-zoom: .8; } html { zoom: .8; } }
@media (min-width: 769px) and (max-width: 1279px) {
  .app-layout, .app-shell, .app-layout > *, .app-shell > * { height: calc(100vh / var(--gp-zoom)) !important; max-height: none !important; }
  #view-embed, #view-webmail { height: calc(100vh / var(--gp-zoom) - 64px) !important; }
}

#view-dashboard .gp-dash-tuiles { margin-bottom: 12px; }
#view-dashboard .stat-card.cit-tuile {
  box-sizing: border-box; min-width: 0; height: 60px; padding: 8px 12px !important; margin: 0; border: 0 !important; border-radius: 10px !important;
  background: var(--cit-surface, var(--surface)); box-shadow: 0 0 0 1px var(--cit-border, var(--border)) !important;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
#view-dashboard .cit-tuile .stat-label { font-size: 11px !important; line-height: 1.3; margin: 0 !important; color: var(--cit-text2, var(--text-muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-dashboard .cit-tuile .stat-value { font-size: 20px !important; font-weight: 700; line-height: 1.2 !important; margin: 0 !important; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-dashboard .gp-dash-plus { margin: -4px 0 14px; }
#view-dashboard .gp-dash-plus > summary { cursor: pointer; font-size: 12px; color: var(--cit-text2, var(--text-muted)); padding: 2px 0 6px; user-select: none; }
#view-dashboard .gp-dash-plus > .cit-tuiles { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); }
