/**
 * App-wide soft lock: discourage selecting/copying study content in the dashboard.
 * Not bypass-proof (DevTools, screenshots). Form controls stay selectable for UX.
 *
 * Employee referrer portal: body.ep-portal-no-select — only .ep-copy-zone allows selection.
 */

/* Learner dashboard shell (user/dashboard via app_head.php) */
body.rs-app-no-select,
body.rs-app-no-select * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body.rs-app-no-select input,
body.rs-app-no-select textarea,
body.rs-app-no-select select,
body.rs-app-no-select [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Referrer / employee portal: block selection except copy-link regions and form fields */
body.ep-portal-no-select .ep-app,
body.ep-portal-no-select .ep-app * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body.ep-portal-no-select input,
body.ep-portal-no-select textarea,
body.ep-portal-no-select select,
body.ep-portal-no-select [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body.ep-portal-no-select .ep-copy-zone,
body.ep-portal-no-select .ep-copy-zone * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
