/* PishkhanPlus RC6.2 — targeted correction based on RC6.1 screenshot */
:root{
  --rc62-ink:#18324f;
  --rc62-muted:#71839a;
  --rc62-line:#dce6f0;
  --rc62-surface:#fff;
  --rc62-soft:#f6f9fc;
  --rc62-accent:var(--acc,#147f86);
}

/* REPORT MODAL: fix oversized clipped title and keep the hero balanced */
html body .dlg.ix-dlg.ix2{overflow:hidden!important}
html body .dlg.ix-dlg.ix2 .ix2-hero{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:0!important;
  height:auto!important;
  padding:20px 22px!important;
  overflow:visible!important;
  border-radius:20px!important;
}
html body .dlg.ix-dlg.ix2 .ix2-hero>div:first-child{
  flex:1 1 0!important;
  min-width:0!important;
  max-width:100%!important;
}
html body .dlg.ix-dlg.ix2 .ix2-hero small{
  display:block!important;
  margin:0 0 7px!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.7!important;
  letter-spacing:0!important;
}
html body .dlg.ix-dlg.ix2 .ix2-hero h3{
  display:block!important;
  max-width:100%!important;
  margin:0!important;
  font-family:var(--f-ui,"Vazirmatn",Tahoma,sans-serif)!important;
  font-size:clamp(16px,1.55vw,21px)!important;
  font-weight:800!important;
  line-height:1.85!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  text-wrap:pretty!important;
}
html body .dlg.ix-dlg.ix2 .ix2-hero span{
  display:block!important;
  margin-top:6px!important;
  font-size:11.5px!important;
  font-weight:600!important;
  line-height:1.8!important;
  letter-spacing:0!important;
}
html body .dlg.ix-dlg.ix2 .ix2-badges{
  flex:0 0 auto!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  max-width:32%!important;
}
html body .dlg.ix-dlg.ix2 .ix2-badges span{
  padding:6px 10px!important;
  font-size:10.5px!important;
  line-height:1.5!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
html body .dlg.ix-dlg.ix2 .ix-body{padding:14px 16px!important}
html body .dlg.ix-dlg.ix2 .ix2-panel,
html body .dlg.ix-dlg.ix2 .ix2-card,
html body .dlg.ix-dlg.ix2 .ix2-stat,
html body .dlg.ix-dlg.ix2 .ix2-kpi{
  border:1px solid var(--rc62-line)!important;
  border-radius:16px!important;
  box-shadow:0 3px 12px rgba(24,50,79,.035)!important;
}

/* Compact, aligned report footer. Buttons never collide or grow excessively. */
html body .dlg.ix-dlg.ix2 .ix2-foot{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:9px 14px!important;
  min-height:58px!important;
  background:#fbfdff!important;
  border-top:1px solid var(--rc62-line)!important;
  box-shadow:none!important;
}
html body .dlg.ix-dlg.ix2 .ix2-foot .ix-send{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
  overflow:visible!important;
}
html body .dlg.ix-dlg.ix2 .ix2-foot .ix-send>span{
  font-size:11px!important;
  font-weight:700!important;
  color:#647991!important;
  white-space:nowrap!important;
}
html body .dlg.ix-dlg.ix2 .ix2-foot .btn{
  min-height:34px!important;
  height:auto!important;
  padding:6px 11px!important;
  border-radius:10px!important;
  font-family:var(--f-ui,"Vazirmatn",Tahoma,sans-serif)!important;
  font-size:10.5px!important;
  font-weight:750!important;
  line-height:1.5!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}

/* Global page/section headers: moderate type scale and consistent rhythm */
html body .ph,
html body .page-head,
html body .box-h,
html body .ins-h,
html body .uacc-card-h,
html body .dlg .dlg-h,
html body .pop-h{
  min-height:44px!important;
  padding:10px 14px!important;
  gap:9px!important;
  border-bottom:1px solid var(--rc62-line)!important;
}
html body .ph h1,
html body .page-head h1,
html body .box-h h2,
html body .ins-h h2,
html body .uacc-card-h h2,
html body .dlg .dlg-h h2,
html body .pop-h h2{
  font-family:var(--f-ui,"Vazirmatn",Tahoma,sans-serif)!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.75!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  margin:0!important;
}
html body .ph .sub,
html body .box-h .sub,
html body .ins-h .sub,
html body .uacc-card-h .sub,
html body .dlg .dlg-h .sub{
  font-size:10.5px!important;
  line-height:1.8!important;
  font-weight:550!important;
  letter-spacing:0!important;
}

/* Assistant animation overrides removed in RC6.3. The original pre-RC6.2 animation rules now apply. */

@media(max-width:760px){
  html body .dlg.ix-dlg.ix2 .ix2-hero{
    display:block!important;
    padding:15px 15px!important;
    border-radius:16px!important;
  }
  html body .dlg.ix-dlg.ix2 .ix2-hero h3{font-size:16px!important;line-height:1.9!important}
  html body .dlg.ix-dlg.ix2 .ix2-hero span{font-size:10.5px!important}
  html body .dlg.ix-dlg.ix2 .ix2-badges{max-width:100%!important;justify-content:flex-start!important;margin-top:10px!important}
  html body .dlg.ix-dlg.ix2 .ix2-badges span{font-size:10px!important}
  html body .dlg.ix-dlg.ix2 .ix2-foot{display:block!important;padding:8px 10px!important}
  html body .dlg.ix-dlg.ix2 .ix2-foot .ix-send{gap:6px!important}
  html body .dlg.ix-dlg.ix2 .ix2-foot .btn{flex:1 1 calc(50% - 6px)!important;min-width:0!important;white-space:normal!important;font-size:10px!important;padding:6px 8px!important}
  html body .ph h1,html body .page-head h1,html body .box-h h2,html body .ins-h h2,html body .uacc-card-h h2{font-size:13px!important}
}
