.employee-risk-profile-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.employee-risk-head {
  margin-bottom: 0;
}

.employee-risk-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.detail-card-head h3 {
  margin-bottom: 0;
}

.detail-card-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.detail-card-title-with-icon i {
  margin-top: 1px;
  color: #334155;
  font-size: 16px;
  line-height: 1;
}

.employee-risk-tone-pill {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #dbe4ee;
  border-radius: 4px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.employee-risk-tone-pill.normal {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.employee-risk-tone-pill.medium {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.employee-risk-tone-pill.high {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.employee-risk-body {
  display: grid;
  gap: 14px;
}

.employee-risk-decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  align-items: stretch;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #ffffff;
}

.employee-risk-decision-panel.medium {
  border-color: #f3e8d9;
  background: #fffcf7;
}

.employee-risk-decision-panel.high {
  border-color: #fecaca;
  background: #fff7f7;
}

.employee-risk-decision-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 4px 0;
}

.employee-risk-decision-main > span,
.employee-risk-decision-action span {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.5;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.employee-risk-decision-main strong {
  min-width: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.employee-risk-decision-panel.medium .employee-risk-decision-main strong {
  color: #c2410c;
}

.employee-risk-decision-panel.high .employee-risk-decision-main strong {
  color: #b91c1c;
}

.employee-risk-decision-main p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
}

.employee-risk-decision-action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 13px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
}

.employee-risk-decision-action strong {
  min-width: 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.employee-risk-decision-action strong.medium {
  color: #c2410c;
}

.employee-risk-decision-action strong.high {
  color: #b91c1c;
}

.employee-risk-decision-action p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.employee-risk-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.employee-risk-review-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
}

.employee-risk-review-item.medium {
  border-color: #f3e8d9;
  background: #fffcf7;
}

.employee-risk-review-item.high {
  border-color: #fecaca;
  background: #fff7f7;
}

.employee-risk-review-item dt,
.employee-risk-review-item dd {
  margin: 0;
}

.employee-risk-review-item dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.4;
}

.employee-risk-review-item dd {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.employee-risk-review-item.high dd {
  color: #991b1b;
}

.employee-risk-review-item.medium dd {
  color: #9a3412;
}

.employee-risk-profile-section {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
}

.employee-risk-section-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-risk-section-head span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
}

.employee-risk-section-head small {
  min-width: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.employee-risk-profile-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.employee-risk-evidence-row {
  min-width: 0;
  display: grid;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  overflow: hidden;
}

.employee-risk-evidence-row.medium {
  border-color: #f3e8d9;
  background: #fffcf7;
}

.employee-risk-evidence-row.high {
  border-color: #fecaca;
  background: #fff7f7;
}

.employee-risk-evidence-row[open] {
  background: #fff;
}

.employee-risk-evidence-row summary {
  list-style: none;
  cursor: pointer;
}

.employee-risk-evidence-row summary::-webkit-details-marker {
  display: none;
}

.employee-risk-evidence-title {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto) 48px;
  align-items: center;
  column-gap: 14px;
  padding: 10px 14px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
}

.employee-risk-evidence-title span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee-risk-evidence-title strong {
  height: 20px;
  min-width: 48px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  padding: 0 7px;
  border-radius: 4px;
  background: #eef2f7;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.employee-risk-evidence-row.medium .employee-risk-evidence-title strong {
  background: #ffedd5;
  color: #c2410c;
}

.employee-risk-evidence-row.high .employee-risk-evidence-title strong {
  background: #fee2e2;
  color: #b91c1c;
}

.employee-risk-evidence-title::after {
  content: '展开';
  justify-self: end;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.employee-risk-evidence-row[open] .employee-risk-evidence-title::after {
  content: '收起';
}

.employee-risk-evidence-row ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 14px 14px 14px;
  list-style: none;
  align-content: start;
  border-top: 1px solid #e2e8f0;
}

.employee-risk-evidence-row li {
  min-width: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  white-space: normal;
}

.employee-risk-muted {
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 960px) {
  .employee-risk-decision-panel {
    grid-template-columns: 1fr;
  }

  .employee-risk-review-summary {
    grid-template-columns: 1fr;
  }

  .employee-risk-title-wrap,
  .employee-risk-section-head {
    flex-wrap: wrap;
  }

  .employee-risk-section-head small {
    text-align: left;
  }
}
