/**
 * print.css — Export PDF du rapport annuel (T14).
 *
 * Scope : la vue #view-rapport-annuel uniquement (via body.route-rapport-annuel
 * posé par setActiveView). Fond blanc forcé, texte sombre : les tokens sont
 * pensés pour l'écran — on les surcharge dans le contexte print, identique en
 * thème Jour et Nuit.
 */
@media print {
  /* ── Chrome applicatif masqué ─────────────────────────────────────────── */
  #app-sidebar,
  #bottom-nav,
  #sb-toggle,
  .rail-card,
  .mode-bar,
  .rm-modebar,
  .no-print,
  .breadcrumb,
  .coachmark,
  .chat-panel,
  #querybar {
    display: none !important;
  }

  /* ── Page ────────────────────────────────────────────────────────────── */
  html, body {
    background: #ffffff !important;
    color: #1a1a1a !important;
  }

  .rapport-annuel-print {
    /* Tokens surchargés dans le scope imprimé — lisibilité papier,
       indépendante du thème écran actif. */
    --bg-primary: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f6f4ef;
    --text-primary: #1a1a1a;
    --text-secondary: #3a3a3a;
    --text-dim: #555555;
    --text-muted: #666666;
    --border: #cccccc;
    --border-light: #dddddd;
    --gold: #8a6a10;

    max-width: 180mm;
    margin: 0 auto;
    padding: 0 !important;
  }

  .rapport-annuel-print a {
    color: #1a1a1a !important;
    text-decoration: none !important;
  }

  /* Cards : pas de coupure interne, bordures légères */
  .rapport-annuel-print > div > div,
  .rapport-annuel-print .glass {
    break-inside: avoid;
    page-break-inside: avoid;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  /* Roue zodiacale : pleine largeur, jamais coupée */
  .rapport-annuel-print svg {
    max-width: 100% !important;
    height: auto !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
