/* v5.2.5b Shell Proportion Fix
   CSS-only patch. Scope: visual proportions of ESG app sidebar/header only.
   It does not touch Registry Bridge, Access Center, roles, database, workflow, PDF/DOCX or admin bar behavior. */

/* Make the console header an operational header, not a landing-page banner. */
.ldg40-root .ldg40-hero{
  min-height:96px!important;
  padding:18px 22px!important;
  border-radius:20px!important;
  grid-template-columns:minmax(0,1fr) minmax(210px,260px)!important;
  gap:16px!important;
  box-shadow:0 12px 28px rgba(5,35,61,.14)!important;
}

.ldg40-root .ldg40-hero:before{
  inset:0 auto 0 70%!important;
  width:220px!important;
  opacity:.72!important;
}

.ldg40-root .ldg40-hero p{
  margin:0 0 6px!important;
  font-size:11.5px!important;
  line-height:1.2!important;
  letter-spacing:.15em!important;
}

.ldg40-root .ldg40-hero h1{
  font-size:clamp(28px,1.85vw,36px)!important;
  line-height:1.05!important;
  letter-spacing:-.025em!important;
  max-width:980px!important;
}

.ldg40-root .ldg40-hero span{
  margin-top:7px!important;
  font-size:14.5px!important;
  line-height:1.34!important;
  font-weight:760!important;
  max-width:860px!important;
}

/* Status badge: useful, compact and not visually dominant. */
.ldg40-root .ldg40-hero aside{
  min-height:70px!important;
  padding:12px 14px!important;
  border-radius:16px!important;
  gap:3px!important;
  background:rgba(255,255,255,.13)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 8px 18px rgba(3,31,52,.10)!important;
}

.ldg40-root .ldg40-hero aside small{
  font-size:10.5px!important;
  line-height:1.15!important;
  letter-spacing:.14em!important;
}

.ldg40-root .ldg40-hero aside strong{
  font-size:17.5px!important;
  line-height:1.12!important;
  letter-spacing:-.01em!important;
}

.ldg40-root .ldg40-hero aside em{
  font-size:12.5px!important;
  line-height:1.2!important;
}

/* Sidebar: reduce heavy logo block while preserving readability. */
.ldg40-root .ldg40-sidebar{
  border-radius:20px!important;
  padding:13px!important;
}

.ldg40-root .ldg40-brand{
  gap:8px!important;
  padding:4px 2px 12px!important;
  margin-bottom:10px!important;
}

.ldg40-root .ldg40-brand img{
  max-width:96px!important;
  max-height:54px!important;
  padding:6px!important;
  border-radius:14px!important;
  margin-bottom:2px!important;
}

.ldg40-root .ldg40-brand strong{
  font-size:15px!important;
  line-height:1.12!important;
}

.ldg40-root .ldg40-brand span{
  font-size:12.5px!important;
  line-height:1.28!important;
}

.ldg40-root .ldg40-sidebar nav a{
  min-height:50px!important;
  border-radius:13px!important;
}

.ldg40-root .ldg40-sidebar nav strong{
  font-size:13.5px!important;
}

.ldg40-root .ldg40-sidebar nav small{
  font-size:11.5px!important;
}

.ldg40-root .ldg40-access{
  border-radius:16px!important;
}

/* Keep page rhythm tighter under the compact shell. */
.ldg40-root .ldg40-layout{
  gap:16px!important;
  padding:16px 20px!important;
}

.ldg40-root .ldg40-content{
  margin-top:16px!important;
  gap:16px!important;
}

@media(max-width:1380px){
  .ldg40-root .ldg40-hero{
    grid-template-columns:1fr!important;
    min-height:auto!important;
  }
  .ldg40-root .ldg40-hero aside{
    display:grid!important;
    grid-template-columns:auto 1fr auto!important;
    align-items:center!important;
    min-height:54px!important;
  }
}

@media(max-width:720px){
  .ldg40-root .ldg40-hero{
    padding:16px!important;
    border-radius:18px!important;
  }
  .ldg40-root .ldg40-hero h1{
    font-size:28px!important;
  }
  .ldg40-root .ldg40-hero aside{
    grid-template-columns:1fr!important;
  }
}
