/*
 * Impression du panneau (revue UI du 17-09-2026).
 *
 * Sans elle, imprimer une fiche patient sortait UNE page coupée à la hauteur
 * de l'écran et tronquée à droite, avec le menu latéral et le simulateur :
 * le dossier médical tombait à moitié hors de la feuille. Ici, la page
 * s'étale sur toute sa hauteur, sur une colonne, sans la navigation.
 *
 * Chargée en media="print" depuis index.html : elle ne pèse rien à l'écran.
 */
@page { margin: 14mm 12mm; }

.rd-root {
  width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
  overflow: visible !important; display: block !important; background: #fff !important;
}
.rd-main { display: block !important; }
/* L'enveloppe de l'application, au fond gris, déborde sous la dernière carte. */
html, body, :has(.rd-root) { background: #fff !important; min-height: 0 !important; height: auto !important; }

/* Tout ce qui sert à naviguer ou à agir, rien qui informe. */
.rd-nav, .rd-topbar__right, .rd-sim, .rd-notices, .rd-reception, .rd-calltabs,
.rd-fiche__actions, .rd-filterbar, .rd-pager, .rd-overlay, .rd-notif, .rd-incoming {
  display: none !important;
}

/* Les zones à défilement se déplient. */
.rd-scroll, .rd-list, .rd-hist, .rd-dem, .rd-fiche, .rd-fiche__body, .rd-diag, .rd-grid, .rd-msg-thread {
  overflow: visible !important; height: auto !important; max-height: none !important; flex: none !important;
}

/* Une seule colonne : la feuille est plus étroite que l'écran. */
.rd-cols, .rd-fiche__grid { display: block !important; max-width: none !important; }
.rd-fiche, .rd-fiche__body { background: #fff !important; }
.rd-fiche__side { width: auto !important; }
.rd-cols > *, .rd-fiche__grid > * { width: auto !important; max-width: none !important; margin-bottom: 14px; }
.rd-page { max-width: none !important; padding: 0 !important; }
.rd-topbar { height: auto !important; padding: 0 0 8px !important; border: 0 !important; }

/* Pas de carte coupée entre deux pages. */
.rd-sidecard, .rd-card, .rd-doccard, .rd-listcard, .rd-qrow, .rd-tache, .rd-grid__row, .rd-medgrid, .rd-metric, .rd-kpi { break-inside: avoid; }

/* Les boutons « copier » n'ont pas de sens sur papier. */
.rd-copybtn, [aria-label^="Copier"] { display: none !important; }
