Files
fusion/packages/dashboard/app/components/command-center/CommandCenter.css
gsxdsm 5c0c162a2b FN-6609: fix command center CSS token hygiene
Command Center styles now rely on canonical muted text and shadow tokens.

- Replace deprecated --text-secondary usages in command center styles with --text-muted.
- Remove the raw rgba fallback from the date range popover shadow token.
- Document the command-center styling token requirements with FNXC comments.

Files changed:
 .../app/components/command-center/CommandCenter.css   | 13 +++++++++----
 .../app/components/command-center/DateRangePicker.css |  8 ++++++--
 .../components/command-center/MissionControlPanel.css | 11 ++++++++---
 .../app/components/command-center/areas/areas.css     | 19 ++++++++++++-------
 .../app/components/command-center/charts/charts.css   | 11 ++++++++---
 5 files changed, 43 insertions(+), 19 deletions(-)

Fusion-Task-Id: FN-6609
Fusion-Task-Lineage: 8a02f4a3-a881-4db6-893e-363b74cbfba8
2026-06-17 18:54:24 -07:00

169 lines
3.7 KiB
CSS

/*
FNXC:CommandCenterStyling 2026-06-17-18:46:
The FN-4286 dashboard text-token guard requires command-center secondary copy to use --text-muted, not the deprecated secondary text token or raw color fallbacks.
*/
/* Command Center shell.
* Animation durations use --duration-* tokens only (never --transition-*).
*/
.command-center {
display: flex;
flex: 1;
flex-direction: column;
gap: var(--space-4, 1rem);
min-height: 0;
width: 100%;
padding: var(--space-4, 1rem);
}
/*
FNXC:CommandCenter 2026-06-17-00:00:
The Command Center must remain scrollable on mobile inside the overflow-hidden .project-content flex parent. Keep the header and tablist pinned while .cc-tabpanel owns vertical scrolling and safe-area bottom clearance.
*/
.cc-header {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: space-between;
gap: var(--space-3, 0.75rem);
}
.cc-title {
display: flex;
align-items: center;
gap: var(--space-2, 0.5rem);
margin: 0;
font-size: var(--font-size-lg, 1.1rem);
}
/* ---- Tabs ---- */
.cc-tablist {
display: flex;
flex-shrink: 0;
flex-wrap: wrap;
gap: var(--space-1, 0.25rem);
border-bottom: 1px solid var(--border-subtle, rgba(127, 127, 127, 0.25));
}
.cc-tab {
appearance: none;
background: none;
border: none;
border-bottom: 2px solid transparent;
color: var(--text-muted);
padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
cursor: pointer;
font-size: var(--font-size-sm, 0.85rem);
transition: color var(--transition-fast), border-color var(--transition-fast);
}
.cc-tab:hover {
color: var(--text-primary, #ddd);
}
.cc-tab.active {
color: var(--text-primary, #ddd);
border-bottom-color: var(--color-accent, #4f8cff);
}
.cc-tabpanel {
flex: 1;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
outline: none;
-webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
.cc-tabpanel {
padding-bottom: calc(var(--space-4, 1rem) + env(safe-area-inset-bottom, 0px) + var(--standalone-bottom-gap));
}
}
/* ---- Overview ---- */
.cc-overview {
display: flex;
flex-direction: column;
gap: var(--space-4, 1rem);
}
.cc-stat-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
gap: var(--space-3, 0.75rem);
}
.cc-stat-card {
display: flex;
flex-direction: column;
gap: var(--space-1, 0.25rem);
padding: var(--space-3, 0.75rem);
}
.cc-stat-label {
font-size: var(--font-size-sm, 0.85rem);
color: var(--text-muted);
}
.cc-stat-value {
font-size: var(--font-size-xl, 1.5rem);
font-variant-numeric: tabular-nums;
color: var(--text-primary, #ddd);
}
.cc-live-strip {
display: flex;
align-items: center;
gap: var(--space-2, 0.5rem);
padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
border: 1px dashed var(--border-subtle, rgba(127, 127, 127, 0.25));
border-radius: var(--radius-md, 8px);
font-size: var(--font-size-sm, 0.85rem);
}
.cc-live-strip-label {
color: var(--text-primary, #ddd);
font-weight: 600;
}
.cc-live-strip-placeholder {
color: var(--text-muted);
}
/* ---- States ---- */
.cc-loading,
.cc-error,
.cc-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-2, 0.5rem);
padding: var(--space-6, 2rem);
color: var(--text-muted);
text-align: center;
}
.cc-error {
color: var(--color-error, #e5484d);
}
.cc-loading .cc-chart-skeleton {
height: 1rem;
border-radius: var(--radius-sm, 4px);
background: var(--surface-2, rgba(127, 127, 127, 0.12));
animation: cc-shell-pulse var(--duration-slow) ease-in-out infinite;
}
@keyframes cc-shell-pulse {
0%,
100% {
opacity: 0.4;
}
50% {
opacity: 0.9;
}
}