/* v88 — allow financial visuals to determine their height and keep labels inside their frames. */
#overview .homeTrendBox[data-participation-mode="sukuk"],
#overview .homeTrendBox[data-participation-mode="mush"]{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
}
#overview .homeTrendBox[data-participation-mode] .cwlsParticipationViz{
  height:auto!important;
  min-height:0!important;
  min-width:0;
  /* Keep bar values clear of the fixed quick-action controls at the right edge. */
  padding-right:clamp(62px,5vw,78px)!important;
}
#overview .cwlsParticipationViz :is(.cpvChart,.cpvBars,.cpvBarRow,.cpvBarLabel,.cpvBarValue){
  min-width:0;
  height:auto;
  overflow:visible;
}
#overview .cpvBarRow{grid-template-columns:minmax(105px,.35fr) minmax(80px,1fr) minmax(76px,auto)}
#overview .cpvBlockHead{flex-wrap:wrap;align-items:baseline}
#overview .cpvBlockHead > :is(b,span){min-width:0;line-height:1.35}

/* Keep the trend title and explanatory line together, with tabs on their own available width. */
#overview .homeAnalyticsGrid>.homePanel:first-child .homePanelHead{
  display:flex!important;
  align-items:flex-start!important;
  flex-wrap:wrap!important;
  gap:9px 16px!important;
}
#overview .homeAnalyticsGrid>.homePanel:first-child .homePanelHead>div:first-child{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:start!important;
  column-gap:12px!important;
  row-gap:3px!important;
  flex:1 1 240px!important;
  width:auto!important;
  min-width:min(100%,240px)!important;
}
#overview .homeAnalyticsGrid>.homePanel:first-child .homePanelHead>div:first-child>b,
#overview .homeAnalyticsGrid>.homePanel:first-child .homePanelHead>div:first-child>span:not(.cwls-ui-title-icon){
  display:block!important;
  grid-column:2!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  line-height:1.4!important;
}
#overview .homeAnalyticsGrid>.homePanel:first-child .homePanelHead>div:first-child>b{grid-row:1!important}
#overview .homeAnalyticsGrid>.homePanel:first-child .homePanelHead>div:first-child>span:not(.cwls-ui-title-icon){grid-row:2!important}
#overview .homeAnalyticsGrid>.homePanel:first-child .homePanelHead .cwls-ui-title-icon{
  grid-column:1!important;
  grid-row:1 / 3!important;
  align-self:center!important;
  justify-self:center!important;
  width:40px!important;
  height:40px!important;
  min-width:0!important;
  margin:0!important;
  padding:8px!important;
}
#overview .homeAnalyticsGrid>.homePanel:first-child .homeChartTabs{
  flex:0 1 auto;
  max-width:100%;
  min-width:0;
}

/* The amount belongs wholly inside the donut's inner disc. */
#overview .homeDonutCenter{
  box-sizing:border-box;
  width:103px;
  max-width:calc(100% - 50px);
  padding:3px 2px!important;
  display:grid;
  justify-items:center;
  gap:4px;
}
#overview .homeDonutCenter b{
  max-width:100%;
  font-size:15px!important;
  letter-spacing:-.045em!important;
  line-height:1.05!important;
  white-space:nowrap;
  font-variant-numeric:tabular-nums lining-nums;
}
#overview .homeDonutCenter span{max-width:100%;font-size:9px!important;line-height:1.28!important}

/* These supplied 1586:992 visuals follow the card width without the artificial side bands. */
.visualCanvas[data-visual-src="assets/cwls-5e34808aa0d13bb2.png"],
.visualCanvas[data-visual-src="assets/cwls-ec1c60324804acb8.png"],
.visualCanvas[data-visual-src="assets/cwls-dde3f176b4143e3e.png"],
.visualCanvas[data-visual-src="assets/cwls-00bbf293846c035e.png"]{
  align-self:start;
  height:auto!important;
  min-height:0!important;
  background:#f8f6ef!important;
}
.visualCanvas[data-visual-src="assets/cwls-5e34808aa0d13bb2.png"] img,
.visualCanvas[data-visual-src="assets/cwls-ec1c60324804acb8.png"] img,
.visualCanvas[data-visual-src="assets/cwls-dde3f176b4143e3e.png"] img,
.visualCanvas[data-visual-src="assets/cwls-00bbf293846c035e.png"] img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
}
/* The two illustrated panels have a small baked-in light rim. Fill the card
   without the previous 390px height cap or an empty band on either side. */
.visualCanvas[data-visual-src="assets/cwls-dde3f176b4143e3e.png"],
.visualCanvas[data-visual-src="assets/cwls-00bbf293846c035e.png"]{
  border-radius:clamp(14px,1.6vw,22px)!important;
  overflow:hidden!important;
}
.visualCanvas[data-visual-src="assets/cwls-dde3f176b4143e3e.png"] img,
.visualCanvas[data-visual-src="assets/cwls-00bbf293846c035e.png"] img{
  transform:scale(1.035)!important;
  transform-origin:center!important;
}

/* Status words and oval labels can grow vertically if a narrow card requires wrapping. */
:is(.statusPill,.badge,.chip,.pill,.livePill,.cwlsScenarioChip,.cwlsSukukTag,.cwlsRepTag,.reportedFigureLabel,.reportedProgramStamp,.reportedControlTag,.fxStatus,.pvtStatus,.docStatus,.homeStatus){
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  text-overflow:clip!important;
  line-height:1.3!important;
  text-align:center;
}
@media(max-width:700px){
  #overview .cpvBarRow{grid-template-columns:minmax(85px,.38fr) minmax(70px,1fr) minmax(68px,auto);gap:7px}
  #overview .homeAnalyticsGrid>.homePanel:first-child .homePanelHead>div:first-child{flex-basis:100%!important}
  #overview .homeAnalyticsGrid>.homePanel:first-child .homeChartTabs{flex-basis:100%}
}
@media(max-width:460px){
  #overview .cpvBarRow{grid-template-columns:minmax(0,1fr) auto;gap:6px}
  #overview .cpvBarTrack{grid-column:1/-1;grid-row:2}
  #overview .cpvBarValue{grid-column:2;grid-row:1}
}
