/**
 * RiskB 纸墨办公风格 — 覆盖彩色、光晕、渐变；排版与主色由 riskb-ciri-office.css 统一
 */
@import url('riskb-ciri-office.css?v=20261119');

:root {
  --acc: var(--ciri-navy, #1e3a5f);
  --acc-soft: var(--ciri-navy-soft, rgba(30, 58, 95, 0.08));
  --acc-glow: transparent;
  --acc-light: var(--ciri-navy-line, rgba(30, 58, 95, 0.22));
  --danger: #8b2e2e;
  --warn: #7a4f1a;
  --info: var(--ciri-navy, #1e3a5f);
  --success: #2d5a3d;
  --purple: var(--ciri-navy, #1e3a5f);
  --orange: #7a4f1a;
  --shadow-md: var(--shadow-sm, 0 1px 2px rgba(26, 34, 48, 0.04));
  --shadow-lg: none;
}

*,
*::before,
*::after {
  text-shadow: none !important;
}

body {
  background: var(--bg-deep, #f6f4ef) !important;
  color: var(--text-bright, #1a2230) !important;
}

.topbar,
.sidebar,
.footer,
.main,
.content,
.mod-panel,
.page {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #d4d4d4 !important;
}

.sidebar .ni {
  color: #333333 !important;
}

.sidebar .ni.active {
  background: #f0f0f0 !important;
  color: #111111 !important;
  border-color: #111111 !important;
}

.topbar .brand .info .name,
.topbar .brand .info .org {
  color: #111111 !important;
}

a {
  color: #111111 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #000000 !important;
}

button,
.tb,
.btn-primary,
.btn-secondary,
input[type="submit"],
.primary {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #111111 !important;
  box-shadow: none !important;
  filter: none !important;
}

button:hover,
.tb:hover,
.btn-primary:hover,
.tb.act,
.btn-primary {
  background: #111111 !important;
  color: #ffffff !important;
}

.sc,
.chart-box,
.pn,
.section,
.card,
.stat-card,
.depth-full,
.depth-thin,
.depth-demo,
.risk-radar-row,
.divination-form {
  background: #ffffff !important;
  border: 1px solid #d4d4d4 !important;
  box-shadow: none !important;
  filter: none !important;
}

.sc:hover,
.chart-box:hover {
  transform: none !important;
  border-color: #111111 !important;
}

.depth-full,
.depth-thin,
.depth-demo,
.risk-radar-badge,
.risk-radar-item .rri-level,
.tag,
.badge,
.pill,
.chip {
  background: #f5f5f5 !important;
  color: #111111 !important;
  border: 1px solid #cccccc !important;
}

.risk-radar-item .rri-bar {
  background: #e5e5e5 !important;
}

/* 导航/卡片等 UI 去渐变；可视化容器内不处理 */
.sc[style*="gradient"],
.divination-form[style*="gradient"],
.topbar [style*="linear-gradient"],
.sidebar [style*="linear-gradient"] {
  background: #fafafa !important;
  background-image: none !important;
}

[style*="box-shadow"] {
  box-shadow: none !important;
}

.sc[style*="rgba(124,58,237"],
.tb[style*="#2563eb"],
.btn-primary[style*="#16a34a"] {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #d4d4d4 !important;
}

/* 可视化分析：保留图形与雷达条/点原色 */
.chart-body,
.chart-body canvas,
.chart-box .chart-body canvas,
.risk-radar-chart-box,
.risk-radar-chart-box canvas,
.risk-radar-content .risk-radar-item .rri-dot,
.risk-radar-content .risk-radar-item .rri-fill {
  filter: none !important;
}

.risk-radar-content .risk-radar-item .rri-dot,
.risk-radar-content .risk-radar-item .rri-fill {
  background-color: revert !important;
  background: revert !important;
}

.ok,
.success,
.err,
.error,
.warn,
.muted,
.risk-radar-item .rri-issues {
  color: #111111 !important;
}

.err,
.error {
  font-weight: 600;
}

.topbar,
.sidebar,
.main,
.page {
  box-shadow: none !important;
}

.err-icon {
  display: none !important;
}

/* 列表/标题前装饰性符号（纯 CSS 难全覆盖，配合 module-ui-sanitize.js） */
h1::before,
h2::before,
h3::before,
h4::before,
label::before,
li::before {
  content: none !important;
}

table th {
  background: #f5f5f5 !important;
  color: #111111 !important;
}

table td,
table th {
  border-color: #d4d4d4 !important;
}

input,
select,
textarea {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #999999 !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid #111111 !important;
  box-shadow: none !important;
}

/* 传承 / 命理 / 法律等子模块内嵌 UI */
#ic .alert-item,
#ic .alert-item.high,
#ic .alert-item.medium,
#ic .alert-item.low,
#lc .alert-item,
#sc .alert-item,
#oc .alert-item,
#rc .alert-item,
#divinationSummary .pn,
#divinationSummary .tag,
.module-mono-panel {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d4d4d4 !important;
  box-shadow: none !important;
}

#p-inheritance .tag.tgg,
#p-inheritance .tag.tgy,
#p-inheritance .tag.tgr,
.tag.tgg,
.tag.tgy,
.tag.tgr {
  background: #f5f5f5 !important;
  color: #111111 !important;
  border: 1px solid #bbbbbb !important;
}

#p-divination .divination-form,
#divinationSummary [style*="rgba(201"],
#divinationSummary [style*="#f59e0b"],
#divinationSummary [style*="#5cc33e"] {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #d4d4d4 !important;
}

#p-inheritance .ph,
#p-divination .ph,
.mc .f.ph {
  background: #111111 !important;
}

.alert-item,
.alert-item.high,
.alert-item.medium,
.alert-item.low {
  background: #ffffff !important;
  border-left: 3px solid #111111 !important;
  color: #111111 !important;
}

.loading-state .sp {
  border-color: #cccccc !important;
  border-top-color: #111111 !important;
}

/* 顾问条 / 模块深色覆盖（保单、理赔、财务、健康） */
.policy-advisor-bar,
.claims-advisor-bar,
.finance-advisor-bar,
.health-advisor-bar,
.elderly-advisor-bar,
.inheritance-advisor-bar,
.legal-advisor-bar,
#p-policies .policy-advisor-bar,
#p-claims .claims-advisor-bar,
#p-finance .finance-advisor-bar,
#p-health .health-advisor-bar,
#p-elderly .elderly-advisor-bar,
#p-inheritance .inheritance-advisor-bar,
#p-legal .legal-advisor-bar {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #cccccc !important;
}

.policy-advisor-bar__title,
.policy-advisor-bar__chip,
.claims-advisor-bar__title,
.claims-advisor-bar__chip,
.finance-advisor-bar__title,
.finance-advisor-bar__chip,
.health-advisor-bar__title,
.health-advisor-bar__chip,
.policy-advisor-bar__chip strong,
.claims-advisor-bar__chip strong,
.finance-advisor-bar__chip strong,
.health-advisor-bar__chip strong,
.inheritance-advisor-bar__chip strong,
.legal-advisor-bar__title,
.legal-advisor-bar__chip,
.legal-advisor-bar__chip strong {
  color: #111111 !important;
}

.policy-crm-select,
.claims-crm-select,
.finance-crm-select,
.health-crm-select,
.inheritance-crm-select,
.legal-crm-select {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #999999 !important;
}

#p-policies,
#p-claims,
#p-finance,
#p-health,
#p-policies .sc,
#p-claims .claims-metric,
#p-finance .finance-metric,
#p-health .health-metric,
#p-policies .tb,
#p-claims .tb,
#p-finance .tb,
#p-health .tb,
#p-inheritance .tb {
  background: #ffffff !important;
  color: #111111 !important;
}

#p-policies .st,
#p-claims .st,
#p-finance .st,
#p-health .st,
#p-policies h4,
#p-claims h4,
#p-finance h4,
#p-health h4 {
  color: #111111 !important;
}

#p-policies .gap,
#p-policies .ab,
#p-claims table.dt th,
#p-claims table.dt td,
#p-finance table.dt th,
#p-health table.dt th {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #d4d4d4 !important;
}

.dt th,
table.dt th {
  background: #f5f5f5 !important;
  color: #111111 !important;
}

.lineage-live,
.lineage-demo,
.commercial-bar,
.sidebar,
.topbar,
.main,
.content,
.page,
.mc,
.pn {
  background: #ffffff !important;
  color: #111111 !important;
}

.sidebar .ni,
.sidebar .ni span,
.sidebar .sh {
  background: transparent !important;
  color: #111111 !important;
}

.sidebar .ni.active,
.sidebar .ni:hover {
  background: #f0f0f0 !important;
  color: #111111 !important;
  border-left: 3px solid #111111 !important;
}

.sidebar .ni .pct {
  color: #555555 !important;
  background: #f5f5f5 !important;
  border: 1px solid #cccccc !important;
}

.f.ph,
.mc .f.ph,
.page .ph,
#p-inheritance .ph,
#p-divination .ph,
#p-policies .ph,
#p-claims .ph,
#p-finance .ph,
#p-health .ph,
#p-elderly .ph {
  background: #f5f5f5 !important;
  color: #111111 !important;
  border-bottom: 1px solid #d4d4d4 !important;
}

#p-divination .tb.sm[data-qact],
.qimen-actions .tb.sm {
  background: #ffffff !important;
  border: 1px solid #999999 !important;
  color: #111111 !important;
}

/* 内联深绿/深底（由 JS 注入的块） */
[style*="background:#1a"],
[style*="background: #1a"],
[style*="background:#0f"],
[style*="background:rgb(26"],
[style*="rgba(52,199,89"],
[style*="rgba(92,195,62"],
[style*="linear-gradient"][style*="rgba(52"] {
  background: #f7f7f7 !important;
  background-image: none !important;
  color: #111111 !important;
}
