/* SWISO Portal 0.20.330 — screenshot-led acceptance corrections. */

/* Users: the four account metric cards must remain solid white in every
   light theme. The live page identity is carried by #moduleView[data-forge-page]. */
html:not([data-theme="dark"]) body[data-portal="forge"]
  #moduleView[data-forge-page="users"] .forge209-metrics > article,
html:not([data-theme="dark"]) body[data-portal="forge"]
  #moduleView[data-forge-page="users"] .forge209-metrics > .f272-card,
html:not([data-theme="dark"]) body[data-portal="forge"]
  #specialWorkspace[data-forge-layout="users"] .forge209-metrics > article {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #17364d !important;
  opacity: 1 !important;
}

html:not([data-theme="dark"]) body[data-portal="forge"]
  #moduleView[data-forge-page="users"] .forge209-metrics > article::before,
html:not([data-theme="dark"]) body[data-portal="forge"]
  #moduleView[data-forge-page="users"] .forge209-metrics > article::after,
html:not([data-theme="dark"]) body[data-portal="forge"]
  #specialWorkspace[data-forge-layout="users"] .forge209-metrics > article::before,
html:not([data-theme="dark"]) body[data-portal="forge"]
  #specialWorkspace[data-forge-layout="users"] .forge209-metrics > article::after {
  background: transparent !important;
  background-image: none !important;
}

body[data-portal="forge"] #moduleView[data-forge-page="users"]
  .forge209-metrics > article span { color: #52697b !important; }
body[data-portal="forge"] #moduleView[data-forge-page="users"]
  .forge209-metrics > article strong { color: #17364d !important; }

/* EA codes: remove the unwanted search/activity toolbar from the real live
   fieldset and restore a clean legend/content boundary. */
body[data-portal="forge"] #moduleView[data-forge-page="industry-ea-codes"]
  fieldset.r65-ea > .v290-ea-tools,
body[data-portal="forge"] #specialWorkspace[data-forge-layout="industry-ea-codes"]
  fieldset.r65-ea > .v290-ea-tools,
body[data-portal="forge"] fieldset.r65-ea > .v290-ea-tools {
  display: none !important;
}

body[data-portal="forge"] #moduleView[data-forge-page="industry-ea-codes"]
  fieldset.r65-ea,
body[data-portal="forge"] #specialWorkspace[data-forge-layout="industry-ea-codes"]
  fieldset.r65-ea {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body[data-portal="forge"] #moduleView[data-forge-page="industry-ea-codes"]
  fieldset.r65-ea > legend,
body[data-portal="forge"] #specialWorkspace[data-forge-layout="industry-ea-codes"]
  fieldset.r65-ea > legend {
  position: static !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 8px 8px !important;
  padding: 0 6px !important;
  line-height: 1.35 !important;
}

/* Prevent the stray coloured selection marker shown in the supplied images. */
#r65SidebarNav .nav-link::before,
#r65SidebarNav .nav-link::after,
#r65SidebarNav .nav-link.active > *::before,
#r65SidebarNav .nav-link.active > *::after,
#navigation .nav-link::before,
#navigation .nav-link::after,
#navigation .nav-link.active > *::before,
#navigation .nav-link.active > *::after {
  display: none !important;
  content: none !important;
}
