/* ============================================================
   Widget Common Styles
   Shared utility classes for all widget components.
   Uses design tokens from mosys-theme.css.
   ============================================================ */

/* --- KPI Value (primary metric number) --- */
.widget-kpi-value {
    font-family: var(--font-mono);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.widget-kpi-value--lg {
    font-size: var(--text-kpi-large);
}

.widget-kpi-value--md {
    font-size: var(--text-kpi-medium);
}

.widget-kpi-value--sm {
    font-size: var(--text-kpi-small);
}

/* --- Metric Value (inline, for tables/rows) --- */
.widget-value {
    font-family: var(--font-mono);
    font-size: var(--text-md);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Unit Label --- */
.widget-unit {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.widget-unit--xs {
    font-size: var(--text-2xs);
}

/* --- KPI Label (uppercase category name) --- */
.widget-kpi-label {
    font-size: var(--text-kpi-label);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    line-height: 1;
}

/* --- Description --- */
.widget-description {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: var(--leading-snug);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Timestamp --- */
.widget-timestamp {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* --- Quality Dot (8px status indicator) --- */
.widget-quality-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* --- Status Row (dot + text inline) --- */
.widget-status-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Value Row (number + unit inline) --- */
.widget-value-row {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-1);
}
