/* ============= MI455 HUD Tab Styles ============= */

/* Section headers */
.mi455-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
}

.mi455-section-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mi455-section-header h2 svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.mi455-section-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Section stats (inline stats row) */
.mi455-section-stats-wrap {
    margin-bottom: 12px;
}

.mi455-section-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border-radius: 6px;
    font-size: 0.82rem;
}

.mi455-stat {
    color: var(--text-secondary);
}

.mi455-stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

.mi455-stat-good strong {
    color: var(--status-pass, #22c55e);
}

.mi455-stat-warn strong {
    color: var(--status-warn, #f59e0b);
}

.mi455-stat-bad strong {
    color: var(--status-fail, #ef4444);
}

/* Table cell styling */
.mi455-branch-cell {
    max-width: 180px;
}

.mi455-branch-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mi455-author {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mi455-time {
    white-space: nowrap;
    font-size: 0.82rem;
}

.mi455-runner {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Re-run indicator */
.mi455-rerun-hint {
    margin-left: 4px;
    color: var(--status-warn, #f59e0b);
    font-weight: 600;
}

/* Truncated results warning */
.mi455-truncated-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: var(--status-warn-bg, rgba(245, 158, 11, 0.1));
    border: 1px solid var(--status-warn, #f59e0b);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--status-warn, #f59e0b);
}

.mi455-truncated-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .mi455-section-header {
        flex-direction: column;
        gap: 4px;
    }

    .mi455-section-stats {
        flex-direction: column;
        gap: 8px;
    }

    .mi455-branch-cell {
        max-width: 120px;
    }

    .mi455-runner {
        max-width: 80px;
    }
}
