.report-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }
.report-heading h3 { font-size:20px; margin-bottom:6px; }
.report-heading p { font-size:13px; color:#6b7280; }
.report-shortcuts, .report-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.report-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; padding:18px; background:#fff; border:1px solid #e5e7eb; border-radius:12px; }
.report-filter { display:flex; flex-direction:column; gap:6px; min-width:140px; max-width:260px; }
.report-filter > span { color:#6b7280; font-size:12px; }
.report-filter input, .report-filter select { width:100%; min-height:36px; padding:7px 10px; font-size:13px; background:#fff; color:#1f2937; border:1px solid #d1d5db; border-radius:6px; }
.report-filter select { max-width:260px; }
.report-buttons { align-items:center; }
.report-note { font-size:12px; color:#64748b; line-height:1.8; margin:14px 0; padding:12px 16px; border:1px solid #dbeafe; background:#eff6ff; border-radius:8px; }
.report-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin:14px 0; }
.report-stat { display:flex; flex-direction:column; gap:9px; padding:17px; border-radius:10px; background:#fff; border-top:3px solid #667eea; box-shadow:0 1px 3px #0000000a; }
.report-stat span { color:#6b7280; font-size:12px; }
.report-stat b { font-size:23px; color:#1f2937; }
.report-message { color:#64748b; font-size:12px; margin:12px 0; min-height:18px; }
.report-table-scroll { overflow:auto; max-height:68vh; }
.report-table { width:max-content; min-width:100%; }
.report-table th { position:sticky; top:0; z-index:1; white-space:nowrap; border-bottom:1px solid #dbe1ea; }
.report-table td { white-space:nowrap; vertical-align:top; }
.report-table td:first-child, .report-table th:first-child { position:sticky; left:0; background:#fff; box-shadow:1px 0 0 #e5e7eb; }
.report-table th:first-child { background:#f9fafb; z-index:2; }
.report-table td.report-wrap { white-space:normal; min-width:230px; max-width:340px; overflow-wrap:anywhere; line-height:1.6; }
.report-table .report-empty { text-align:center; color:#9ca3af; padding:36px; }
.report-pager { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px; font-size:12px; color:#64748b; border-top:1px solid #e5e7eb; }
#workReports button:disabled { opacity:.45; cursor:not-allowed; }
.insight-team-title { font-size:15px; font-weight:700; margin:18px 0 8px; color:#1f2937; }
.insight-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(360px,1fr)); gap:16px; }
.insight-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; box-shadow:0 1px 3px #0000000a; }
.insight-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.insight-card h4 { margin:0 0 5px; font-size:17px; }
.insight-card header small { color:#64748b; }
.insight-headline { margin:13px 0; padding:10px 12px; border-radius:8px; background:#fff7ed; color:#9a3412; font-weight:600; line-height:1.6; }
.insight-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.insight-metrics > div { min-width:0; padding:9px 8px; background:#f8fafc; border-radius:7px; }
.insight-metrics span { display:block; color:#64748b; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.insight-metrics b { display:block; margin-top:4px; font-size:14px; color:#1f2937; overflow-wrap:anywhere; }
.insight-reasons { margin-top:14px; }
.insight-reasons h5 { margin:0 0 8px; font-size:13px; }
.insight-reason { border-left:3px solid #94a3b8; padding:8px 10px; margin:7px 0; background:#f8fafc; border-radius:0 7px 7px 0; }
.insight-reason.insight-warning { border-color:#f97316; background:#fff7ed; }
.insight-reason.insight-good { border-color:#10b981; background:#ecfdf5; }
.insight-reason b { font-size:13px; }
.insight-reason p { margin:4px 0; color:#475569; font-size:12px; line-height:1.6; }
.insight-reason small { display:block; color:#64748b; line-height:1.5; }
.insight-quality { margin-top:12px; padding:9px 11px; background:#fefce8; border-radius:7px; color:#854d0e; font-size:12px; line-height:1.6; }
.insight-quality ul { margin:4px 0 0 18px; padding:0; }
/* 二级菜单增加后保持侧栏可滚动，底部退出入口仍可见。 */
.sidebar .nav { min-height:0; overflow-y:auto; }
@media (max-width:760px) { .report-heading { align-items:flex-start; flex-direction:column; } .report-filter { flex:1; min-width:130px; } .report-buttons { width:100%; } }

.insight-chart{height:10px;background:#ffedd5;border-radius:10px;overflow:hidden;margin:12px 0 6px}.insight-chart>div{height:100%;background:#10b981}.insight-evidence{margin-top:12px;border:1px solid #e2e8f0;border-radius:8px;padding:10px;min-width:0}.insight-evidence summary{cursor:pointer;font-size:13px;color:#2563eb}.insight-evidence h5{margin:12px 0 6px}.insight-evidence .report-table-scroll{max-height:300px;font-size:11px}.insight-card{min-width:0}
@media(max-width:760px){.insight-cards{grid-template-columns:minmax(0,1fr)}.insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
