/* v5.2.7a Surface Overflow & Label Fix
   Patch UI-only: nessuna modifica a Registry Bridge, Access Center, ruoli, permessi, dati, PDF/DOCX o workflow. */

/* KPI cards: readable values, no raw slug overflow, no light-on-light contrast issue. */
.ldg40-root .ldg40-strip{
  min-width:0!important;
  overflow:visible!important;
}
.ldg40-root .ldg40-strip > div{
  min-width:0!important;
  overflow:hidden!important;
  align-content:center!important;
}
.ldg40-root .ldg40-strip small{
  display:block!important;
  color:#315f80!important;
  line-height:1.22!important;
}
.ldg40-root .ldg40-strip strong{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  max-width:100%!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  hyphens:auto!important;
  color:#061b31!important;
  font-size:clamp(17px,1.05vw,22px)!important;
  line-height:1.22!important;
}

/* Advanced actions: dropdown is anchored to the action bar, not squeezed by the small summary button. */
.ldg40-root .ldg42-gold-actionbar,
.ldg40-root .ldg453-actionbar{
  position:relative!important;
  overflow:visible!important;
  z-index:55!important;
  isolation:isolate!important;
}
.ldg40-root .ldg42-gold-actionbar > details,
.ldg40-root .ldg453-actionbar > details,
.ldg40-root .ldg42-gold-actionbar details,
.ldg40-root .ldg453-actionbar details{
  position:static!important;
  justify-self:end!important;
  overflow:visible!important;
}
.ldg40-root .ldg42-gold-actionbar details > summary,
.ldg40-root .ldg453-actionbar details > summary{
  white-space:nowrap!important;
  min-width:0!important;
  max-width:100%!important;
}
.ldg40-root .ldg42-gold-actionbar details[open] > .ldg42-action-menu,
.ldg40-root .ldg453-actionbar details[open] > .ldg42-action-menu,
.ldg40-root .ldg42-action-menu{
  position:absolute!important;
  top:calc(100% - 6px)!important;
  right:16px!important;
  left:auto!important;
  width:min(560px,calc(100vw - 112px))!important;
  max-width:none!important;
  min-width:min(420px,calc(100vw - 112px))!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:14px!important;
  border-radius:20px!important;
  background:#ffffff!important;
  border:1px solid #d7e8f2!important;
  box-shadow:0 28px 70px rgba(6,35,58,.22)!important;
  overflow:visible!important;
  z-index:999!important;
}
.ldg40-root .ldg42-action-menu form,
.ldg40-root .ldg42-action-menu a,
.ldg40-root .ldg42-action-menu button{
  min-width:0!important;
  max-width:100%!important;
}
.ldg40-root .ldg42-action-menu button,
.ldg40-root .ldg42-action-menu a{
  display:block!important;
  width:100%!important;
  min-height:82px!important;
  padding:14px 16px!important;
  text-align:left!important;
  white-space:normal!important;
  border-radius:16px!important;
  background:#f8fcff!important;
  border:1px solid #d8eaf5!important;
  color:#061b31!important;
  box-shadow:none!important;
}
.ldg40-root .ldg42-action-menu button b,
.ldg40-root .ldg42-action-menu a b{
  display:block!important;
  color:#061b31!important;
  font-size:15px!important;
  line-height:1.22!important;
  margin:0 0 5px!important;
  overflow-wrap:anywhere!important;
}
.ldg40-root .ldg42-action-menu button small,
.ldg40-root .ldg42-action-menu a small{
  display:block!important;
  color:#36566f!important;
  font-size:12.5px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
.ldg40-root .ldg42-action-menu button.primary,
.ldg40-root .ldg42-action-menu .primary{
  background:#eef8ff!important;
  border-color:#bfe1f4!important;
}
.ldg40-root .ldg42-action-menu button.warn,
.ldg40-root .ldg42-action-menu .warn{
  background:#fff8e7!important;
  color:#7a3e00!important;
  border-color:#efdbaf!important;
}
.ldg40-root .ldg42-action-menu button.danger,
.ldg40-root .ldg42-action-menu .danger{
  background:#fff1f1!important;
  color:#9a1111!important;
  border-color:#f1c2c2!important;
}
.ldg40-root .ldg42-action-menu button.danger b,
.ldg40-root .ldg42-action-menu .danger b{
  color:#9a1111!important;
}

/* LCA / hotspot cards: prevent horizontal content bleed under opened menus. */
.ldg40-root .ldg42-gold-grid,
.ldg40-root .ldg42-gold-grid > article,
.ldg40-root .ldg40-card,
.ldg40-root .ldg40-content{
  min-width:0!important;
}
.ldg40-root .ldg42-gold-grid > article strong,
.ldg40-root .ldg42-gold-grid > article p,
.ldg40-root .ldg42-gold-grid > article span,
.ldg40-root .ldg42-gold-grid > article small{
  overflow-wrap:anywhere!important;
}

@media(max-width:980px){
  .ldg40-root .ldg42-gold-actionbar,
  .ldg40-root .ldg453-actionbar{
    z-index:auto!important;
  }
  .ldg40-root .ldg42-action-menu{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    grid-template-columns:1fr!important;
    margin-top:12px!important;
  }
}
