/* 總覽與報表頁（demo，從 v6 補過來）：沿用 styles.css 的色票與外框 */
.rp-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; }
.rp-panel h2 { margin: 0 0 10px; font-size: 17px; }
.rp-panel h2 .rp-sub { color: var(--muted); font-size: 13px; font-weight: 600; margin-left: 6px; }
.rp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rp-stat { display: block; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; }
.rp-stat:hover { border-color: var(--blue); }
.rp-stat .label { color: var(--muted); font-size: 13px; font-weight: 700; }
.rp-stat .value { font-size: 28px; font-weight: 850; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rp-stat .hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.rp-stat.warn .value { color: var(--rose); }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-list { list-style: none; margin: 0; padding: 0; }
.rp-list li a { display: flex; gap: 10px; justify-content: space-between; padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.rp-list li a:hover { background: var(--crm-accent-soft); }
.rp-list .main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-list .side { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-list .side.warn { color: var(--rose); font-weight: 700; }
.rp-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }
.rp-empty { color: var(--muted); padding: 12px 6px; font-size: 14px; }
.rp-note { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.rp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rp-tabs a { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 700; text-decoration: none; font-size: 14px; }
.rp-tabs a.active { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.rp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.rp-toolbar input, .rp-toolbar select { font: inherit; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; background: #fff; }
.rp-toolbar .spacer { flex: 1; }
.rp-btn { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.rp-summary { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 10px; font-size: 14px; }
.rp-summary b { font-variant-numeric: tabular-nums; }
.rp-table-wrap { overflow-x: auto; }
table.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp-table th, .rp-table td { position: static; padding: 8px 8px; }
.rp-table td.num, .rp-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rp-table td { white-space: nowrap; }
.rp-table td.wrap { white-space: normal; min-width: 160px; }
.rp-bar { height: 10px; background: var(--teal); border-radius: 5px; min-width: 2px; }
.rp-tag { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; background: var(--line); color: var(--muted); }
.rp-tag.warn { background: var(--rose-soft); color: var(--rose); }
.rp-tag.ok { background: var(--teal-soft); color: var(--teal); }
@media (max-width: 900px) { .rp-stats, .rp-grid { grid-template-columns: minmax(0, 1fr); } }
.rp-grid > * { min-width: 0; }
