fix(analytics): link sales filters to chart contracts

This commit is contained in:
ogt
2026-07-22 16:41:00 +08:00
parent 95682ee3bc
commit 9b677ae616
8 changed files with 960 additions and 310 deletions

View File

@@ -103,6 +103,24 @@
color: color-mix(in srgb, var(--momo-page-accent) 60%, var(--momo-text-strong));
}
.sa-tag__sep { opacity: 0.5; margin: 0 0.15rem; }
.sa-period-badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
flex: 0 0 auto;
padding: 0.2rem 0.45rem;
border: 1px solid var(--momo-border-subtle);
border-radius: 4px;
background: var(--momo-surface);
color: var(--momo-text-muted);
font-family: var(--momo-font-mono, ui-monospace, monospace);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0;
line-height: 1.2;
white-space: nowrap;
}
.sa-period-badge i { color: var(--momo-page-accent); }
.sa-alert { margin: 1rem 0; }
/* ---------- Filter card ---------- */
@@ -602,6 +620,18 @@
.sa-mkt-title--accent { color: var(--momo-page-accent); }
.sa-mkt-title--olive { color: var(--momo-tag-olive); }
.sa-modal-period { margin-top: 0.35rem; }
.sa-modal-status {
padding: 0.75rem;
border: 1px solid var(--momo-border-subtle);
border-radius: 4px;
background: var(--momo-surface);
color: var(--momo-text-muted);
font-size: 0.82rem;
font-weight: 700;
}
.sa-modal-status[hidden] { display: none; }
/* ---------- Responsive trims ---------- */
@media (max-width: 991.98px) {
.sa-insights__col { border-right: none; border-bottom: 1px dashed var(--momo-border-subtle); }