2b1d7c0b65
The dashboard had several oversized orchestration, component, and CSS files that made product-copy changes and mobile/performance work risky. This refactor preserves behavior while splitting scan terminal CSS, opportunity helpers, future forecast panels, history/detail charts, and probability/model sections into smaller ownership boundaries. Constraint: No user-visible version bump because this batch is architecture and performance cleanup, not a release announcement. Rejected: Rewrite dashboard state management in the same batch | too broad for a safe upload after CSS and component splitting. Confidence: high Scope-risk: moderate Reversibility: clean Directive: Keep new component/CSS boundaries instead of moving product copy back into the large dashboard files. Tested: npm run build; npm run test:business; git diff --check Not-tested: Browser visual smoke test after push
648 lines
13 KiB
CSS
648 lines
13 KiB
CSS
/* ══════════════════════════════════════════════════════════════
|
|
SCAN TERMINAL — 3-Column Layout
|
|
══════════════════════════════════════════════════════════════ */
|
|
|
|
.root :global(.scan-terminal) {
|
|
display: flex;
|
|
width: 100%;
|
|
height: calc(100vh - var(--header-height, 72px));
|
|
margin-top: var(--header-height, 72px);
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* ── Left: Filter Panel ── */
|
|
.root :global(.scan-filter-panel) {
|
|
width: 220px;
|
|
min-width: 220px;
|
|
height: 100%;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border-glass);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px 16px;
|
|
gap: 20px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.root :global(.scan-filter-section) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.root :global(.scan-filter-label) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Mode Tabs */
|
|
.root :global(.scan-mode-tabs) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.root :global(.scan-mode-tab) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: left;
|
|
position: relative;
|
|
}
|
|
|
|
.root :global(.scan-mode-tab:hover) {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-mode-tab.active) {
|
|
background: rgba(0, 224, 164, 0.08);
|
|
color: #4DA3FF;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.root :global(.scan-mode-tab.active)::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
top: 25%;
|
|
height: 50%;
|
|
width: 3px;
|
|
background: #4DA3FF;
|
|
border-radius: 0 2px 2px 0;
|
|
}
|
|
|
|
.root :global(.scan-mode-tab-indicator) {
|
|
display: none;
|
|
}
|
|
|
|
/* Filter Rows */
|
|
.root :global(.scan-filter-row) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.root :global(.scan-filter-row-label) {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.root :global(.scan-range-display) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.root :global(.scan-range-slider) {
|
|
flex: 1;
|
|
appearance: none;
|
|
height: 4px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-radius: 2px;
|
|
outline: none;
|
|
}
|
|
|
|
.root :global(.scan-range-slider::-webkit-slider-thumb) {
|
|
appearance: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
background: #4DA3FF;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: 2px solid var(--bg-secondary);
|
|
}
|
|
|
|
/* Toggle */
|
|
.root :global(.scan-toggle) {
|
|
width: 36px;
|
|
height: 20px;
|
|
border-radius: 10px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: all 0.2s;
|
|
padding: 0;
|
|
}
|
|
|
|
.root :global(.scan-toggle.active) {
|
|
background: rgba(0, 224, 164, 0.3);
|
|
border-color: #4DA3FF;
|
|
}
|
|
|
|
.root :global(.scan-toggle-knob) {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--text-secondary);
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.root :global(.scan-toggle.active .scan-toggle-knob) {
|
|
left: 18px;
|
|
background: #4DA3FF;
|
|
}
|
|
|
|
/* Select */
|
|
.root :global(.scan-select) {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 6px;
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
outline: none;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
.root :global(.scan-select:focus) {
|
|
border-color: #4DA3FF;
|
|
}
|
|
|
|
/* Scan CTA */
|
|
.root :global(.scan-cta-button) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
background: linear-gradient(135deg, #4DA3FF, #00c48f);
|
|
color: #030711;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.25s;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.root :global(.scan-cta-button:hover) {
|
|
background: linear-gradient(135deg, #00f0b0, #00d89a);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 20px rgba(0, 224, 164, 0.3);
|
|
}
|
|
|
|
.root :global(.scan-cta-button:disabled) {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
/* ── Center: Data Grid ── */
|
|
.root :global(.scan-data-grid) {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
padding: 20px 24px;
|
|
gap: 16px;
|
|
}
|
|
|
|
.root :global(.scan-data-grid-header) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.root :global(.scan-data-grid-title) {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-data-grid-subtitle) {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.root :global(.scan-data-grid-controls) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* KPI Bar */
|
|
.root :global(.scan-kpi-bar) {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.root :global(.scan-kpi-card) {
|
|
background: rgba(13, 17, 23, 0.6);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.root :global(.scan-kpi-card:hover) {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border-color: rgba(0, 224, 164, 0.3);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.root :global(.scan-kpi-card::after) {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
rgba(0, 224, 164, 0.5),
|
|
transparent
|
|
);
|
|
transform: translateX(-100%);
|
|
transition: transform 0.5s;
|
|
}
|
|
|
|
.root :global(.scan-kpi-card:hover::after) {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.root :global(.scan-kpi-green) {
|
|
border-top: 2px solid rgba(0, 224, 164, 0.4);
|
|
}
|
|
|
|
.root :global(.scan-kpi-purple) {
|
|
border-top: 2px solid rgba(123, 97, 255, 0.4);
|
|
}
|
|
|
|
.root :global(.scan-kpi-header) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.root :global(.scan-kpi-icon) {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.root :global(.scan-kpi-label) {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.root :global(.scan-kpi-value) {
|
|
font-size: 22px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1;
|
|
}
|
|
|
|
.root :global(.scan-kpi-green .scan-kpi-value) {
|
|
color: #4DA3FF;
|
|
}
|
|
|
|
.root :global(.scan-kpi-delta) {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* View Tabs */
|
|
.root :global(.scan-view-tabs) {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.root :global(.scan-view-tab) {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
background: none;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.root :global(.scan-view-tab:hover) {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-view-tab.active) {
|
|
color: #4DA3FF;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.root :global(.scan-view-tab.active)::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: -1px;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: #4DA3FF;
|
|
border-radius: 4px;
|
|
opacity: 0.8;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* ── Right: Scan Detail Panel ── */
|
|
.root :global(.scan-detail-panel) {
|
|
width: 360px;
|
|
min-width: 360px;
|
|
height: 100%;
|
|
border-left: 1px solid var(--border-glass);
|
|
background: var(--bg-secondary);
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.root :global(.scan-detail-header) {
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.root :global(.scan-detail-hero-img) {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 10px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.root :global(.scan-detail-hero-placeholder) {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 10px;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(0, 224, 164, 0.15),
|
|
rgba(123, 97, 255, 0.15)
|
|
);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.root :global(.scan-detail-city-info) {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.root :global(.scan-detail-city-name) {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-detail-city-sub) {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.root :global(.scan-detail-volume) {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.root :global(.scan-detail-section) {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.root :global(.scan-detail-section-title) {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-muted);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Conditions Table */
|
|
.root :global(.scan-conditions-table) {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.root :global(.scan-condition-item) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.root :global(.scan-condition-label) {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.root :global(.scan-condition-value) {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.root :global(.scan-condition-value.accent-green) {
|
|
color: #4DA3FF;
|
|
}
|
|
|
|
.root :global(.scan-condition-value.accent-red) {
|
|
color: #EF4444;
|
|
}
|
|
|
|
/* Trade Cards */
|
|
.root :global(.scan-trade-cards) {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.root :global(.scan-trade-card) {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: 10px;
|
|
padding: 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.root :global(.scan-trade-card.yes) {
|
|
border-top: 2px solid #4DA3FF;
|
|
}
|
|
|
|
.root :global(.scan-trade-card.no) {
|
|
border-top: 2px solid #EF4444;
|
|
}
|
|
|
|
.root :global(.scan-trade-card-title) {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-trade-card-price) {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.root :global(.scan-trade-card-edge) {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.root :global(.scan-trade-card-edge.positive) {
|
|
color: #4DA3FF;
|
|
}
|
|
|
|
.root :global(.scan-trade-card-edge.negative) {
|
|
color: #EF4444;
|
|
}
|
|
|
|
.root :global(.scan-trade-card-note) {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Score Gauge */
|
|
.root :global(.scan-detail-score) {
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.root :global(.scan-detail-score-big) {
|
|
font-size: 40px;
|
|
font-weight: 900;
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1;
|
|
}
|
|
|
|
.root :global(.scan-detail-score-label) {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.root :global(.scan-detail-score-suffix) {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Confidence Dots */
|
|
.root :global(.scan-confidence-dots) {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.root :global(.scan-confidence-dot) {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.root :global(.scan-confidence-dot.filled) {
|
|
background: #4DA3FF;
|
|
}
|
|
|
|
.root :global(.scan-confidence-dot.filled.amber) {
|
|
background: #F59E0B;
|
|
}
|
|
|
|
.root :global(.scan-confidence-dot.filled.red) {
|
|
background: #EF4444;
|
|
}
|
|
|
|
/* Empty state */
|
|
.root :global(.scan-detail-empty) {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
SCAN TERMINAL OVERRIDES — EMOS DESK
|
|
══════════════════════════════════════════════════════════════ */
|
|
|
|
.root :global(.scan-terminal) {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
|
|
gap: 14px;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
height: auto;
|
|
margin-top: 0;
|
|
padding: 16px;
|
|
background:
|
|
radial-gradient(circle at top, rgba(77, 163, 255, 0.12), transparent 36%),
|
|
linear-gradient(180deg, #0B1220 0%, #07101D 100%);
|
|
overflow: auto;
|
|
}
|
|
|
|
.root :global(.scan-filter-panel),
|
|
.root :global(.scan-data-grid),
|
|
.root :global(.scan-detail-panel) {
|
|
min-height: calc(100vh - 32px);
|
|
border: 1px solid rgba(159, 178, 199, 0.14);
|
|
border-radius: 22px;
|
|
background: linear-gradient(180deg, rgba(17, 26, 46, 0.96), rgba(11, 18, 32, 0.96));
|
|
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.root :global(.scan-data-grid) {
|
|
padding: 18px;
|
|
gap: 18px;
|
|
overflow: hidden;
|
|
min-height: calc(100vh - 32px);
|
|
max-height: calc(100vh - 32px);
|
|
}
|