/* 法律～声誉：Tab 区与内容区布局与财务/健康模块对齐 */

.page.active > .mod-tabs {
  flex-shrink: 0;
  padding: 10px 16px;
  margin: 0;
  box-sizing: border-box;
  background: var(--bg-main);
}

.page.active > .mod-tabs + .mod-panel,
#p-security.page.active > #sc.mod-panel {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0 16px 16px !important;
  box-sizing: border-box;
}

#p-legal.page.active > #lc,
#p-ops.page.active > #oc,
#p-reputation.page.active > #rc,
#p-security.page.active > #sc {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 16px 16px !important;
  box-sizing: border-box;
}

/* 主内容区与页面同色，避免四周灰/深色露边 */
.main:has(#p-legal.page.active),
.main:has(#p-security.page.active),
.main:has(#p-ops.page.active),
.main:has(#p-reputation.page.active) {
  background: var(--bg-main);
}

/* 内嵌完整 HTML 报告不要撑出灰色全屏底 */
#lc > .html-content,
#sc > .html-content,
#oc > .html-content,
#rc > .html-content,
#lc > .module-report-embed,
#sc > .module-report-embed,
#oc > .module-report-embed,
#rc > .module-report-embed {
  max-width: 100%;
  overflow-x: auto;
}

#lc .module-report-embed .section,
#sc .module-report-embed .section,
#oc .module-report-embed .section,
#rc .module-report-embed .section {
  margin-bottom: 12px;
}
