/* 安全审计日志可视化（B6）—— at- 前缀，只在 #page-audit 内生效 */
#page-audit .at-wrap { padding-bottom: 24px; }

#page-audit .at-load { color: var(--muted, #6E6869); font-size: 13px; padding: 6px 0; }

#page-audit .at-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 10px; }
#page-audit .at-kpi {
  flex: 1 1 150px; min-width: 140px; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2, #f6f7f9); border: 1px solid var(--line, #ececf0);
}
#page-audit .at-kpi b { display: block; font-size: 24px; line-height: 1.2; color: var(--text, #1f2328); }
#page-audit .at-kpi span { font-size: 12px; color: var(--muted, #6E6869); }
#page-audit .at-kpi.warn b { color: #8A5A00; }
#page-audit .at-kpi.ok b { color: #137A52; }
#page-audit .at-kpi.bad b { color: #dc2626; }

#page-audit .at-alert {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: #fef2f2; color: #b42318; border: 1px solid #fecaca;
}

#page-audit .at-chart-title { font-size: 13px; font-weight: 600; color: var(--text, #1f2328); margin-bottom: 8px; }
#page-audit .at-bars { display: flex; flex-direction: column; gap: 8px; }
#page-audit .at-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
#page-audit .at-bar-label { flex: 0 0 132px; color: var(--muted, #5B5457); }
#page-audit .at-bar { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--surface-2, #f1f2f5); overflow: hidden; }
#page-audit .at-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff5c8a, #ff8a5c); }
#page-audit .at-bar-num { flex: 0 0 46px; text-align: right; color: var(--text, #1f2328); font-variant-numeric: tabular-nums; }

#page-audit .at-cols { display: flex; align-items: flex-end; gap: 6px; height: 120px; overflow-x: auto; padding-bottom: 4px; }
#page-audit .at-col { flex: 0 0 26px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
#page-audit .at-col i {
  display: block; width: 14px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #7c8cff, #b39cff); min-height: 3px;
}
#page-audit .at-col span { font-size: 12px; color: var(--muted, #6E6869); margin-top: 4px; white-space: nowrap; }

#page-audit .at-tbl-wrap { overflow-x: auto; margin-top: 10px; }
#page-audit .at-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
#page-audit .at-tbl th {
  text-align: left; padding: 8px 10px; font-weight: 600; color: var(--muted, #5B5457);
  border-bottom: 1px solid var(--line, #ececf0); white-space: nowrap;
}
#page-audit .at-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line, #f2f3f5); vertical-align: top; }
#page-audit .at-tbl tbody tr:hover { background: var(--surface-2, #fafbfc); }
#page-audit .at-nowrap { white-space: nowrap; }
#page-audit .at-detail { color: var(--muted, #5B5457); max-width: 320px; word-break: break-all; }
#page-audit .at-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
#page-audit .at-tag.ok { background: #ecfdf5; color: #047857; }
#page-audit .at-tag.bad { background: #fef2f2; color: #b42318; }

@media (max-width: 640px) {
  #page-audit .at-bar-label { flex-basis: 92px; }
  #page-audit .at-kpi { flex-basis: 100%; }
}
