/* GED Mairie — en-têtes déplaçables pour les modales internes.
 * Les contrôles interactifs et le contenu de chaque fenêtre restent utilisables.
 */
.wf-source-overlay > .wf-source-dialog > .wf-source-header,
.register-modal-backdrop > .register-modal > .register-modal-header,
.modal-backdrop > :is(.dossier-modal,.role-rights-modal,.confirmation-modal,
  .ged-message-modal,.dossier-ged-drop-modal,.trusted-devices-modal,.ged-properties-modal) > header,
.workflow-tree-delete-backdrop > .workflow-tree-delete-modal > h2,
.modal-backdrop > .mail-target-ready-modal > h2 {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
/* If another standard GED modal is introduced, its direct header works too. */
.modal-backdrop > section > header,
.register-modal-backdrop > section > header,
.wf-source-overlay > section > header {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.ged-modal-dragging,
.ged-modal-drag-handle-active {
  cursor: grabbing !important;
}
.ged-modal-drag-handle-active {
  user-select: none !important;
  -webkit-user-select: none !important;
}
/* Keep visible focus, close buttons and form controls unaffected by dragging. */
.ged-modal-drag-handle-active :is(button,a,input,select,textarea) {
  cursor: pointer;
  touch-action: auto;
}
/* Reduced-motion users should not see an artificial transition during drag. */
.ged-modal-dragging {transition: none !important;}
