/* V5.3.4 Certification Remediation & Sidebar UX Closure */

/* Access Center is backend/context only: never render it as an ESG sidebar item. */
html body .ldg40-root.ldg534-cert-remediation .ldg40-sidebar .ldg40-access,
html body .ldg40-root.ldg534-cert-remediation .ldg40-sidebar .ldg462-access,
html body .ldg40-root.ldg534-cert-remediation .ldg31f-sidebar .ldg31f-access,
html body .ldg40-root.ldg534-cert-remediation .ldg41-side .ldg41-access,
html body .ldg40-root.ldg534-cert-remediation .ldg40-sidebar [data-ldg-view="access_center"],
html body .ldg40-root.ldg534-cert-remediation .ldg40-sidebar [data-ldg-view="access"]{
  display:none!important;
}

/* Canonical dark-surface rule: no dark ink is allowed inside sidebar navigation. */
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a strong,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a small,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a em,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a span{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:none!important;
}
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a em{
  background:rgba(255,255,255,.14)!important;
  background-image:none!important;
}
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a.active em,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a.current em,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a[aria-current="page"] em{
  background:#12689b!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
/* Report 10 is a certification sentinel: active+blocked must remain white on blue. */
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a[data-ldg-view="relazioni"] em,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a[data-ldg-view="relazioni"].active em,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a[data-ldg-view="relazioni"].state-blocked em,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation aside.ldg40-sidebar nav a[data-ldg-view="relazioni"].state-blocked.active em{
  background:#12689b!important;
  background-color:#12689b!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:rgba(255,255,255,.18)!important;
}

/* Evidence upload: previous cascade could put dark ink on a navy action button. */
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation .ldg42-secure-upload .ldg42-action-row button.ldg40-primary,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation .ldg526-client-evidence .ldg42-action-row button.ldg40-primary{
  background:#0b527e!important;
  background-color:#0b527e!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:#0b527e!important;
  text-shadow:none!important;
}
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation .ldg42-secure-upload .ldg42-action-row button.ldg40-primary *,
html body.ldg-esg-page .ldg40-root.ldg534-cert-remediation .ldg526-client-evidence .ldg42-action-row button.ldg40-primary *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Explicit non-applicability banner remains readable and visibly numbered. */
html body .ldg40-root.ldg534-cert-remediation .ldg533-module-na>span{
  display:inline-flex!important;
  margin-bottom:7px!important;
  color:#285b78!important;
  -webkit-text-fill-color:#285b78!important;
  font-size:12.5px!important;
  font-weight:850!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
}
html body .ldg40-root.ldg534-cert-remediation .ldg533-module-na h2{
  color:#123753!important;
  -webkit-text-fill-color:#123753!important;
}

/* Fallback marker only appears when the source section did not expose its canonical step number. */
html body .ldg40-root.ldg534-cert-remediation .ldg534-section-marker{
  display:inline-flex!important;
  margin:0 0 10px!important;
  padding:4px 9px!important;
  border:1px solid #cfe4ef!important;
  border-radius:999px!important;
  background:#eef8fc!important;
  color:#285b78!important;
  -webkit-text-fill-color:#285b78!important;
  font-size:12.5px!important;
  font-weight:850!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
}

/* Branding preview: organisation and approval state must be separate, readable rows. */
html body .ldg40-root.ldg534-cert-remediation .ldg441-logo-meta{
  display:grid!important;
  gap:3px!important;
}
html body .ldg40-root.ldg534-cert-remediation .ldg441-logo-meta strong,
html body .ldg40-root.ldg534-cert-remediation .ldg441-logo-meta span{
  display:block!important;
}
