<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>{{ __($report['title_key']) }}</title>
    <style>
        body { font-family: DejaVu Sans, sans-serif; font-size: 11px; color: #222; }
        h1 { font-size: 16px; margin-bottom: 4px; }
        .meta { font-size: 10px; margin-bottom: 12px; color: #555; }
        table { width: 100%; border-collapse: collapse; }
        th, td { border: 1px solid #ccc; padding: 4px 6px; text-align: left; }
        th { background: #eee; }
    </style>
</head>
<body>
    <h1>{{ __($report['title_key']) }}</h1>
    <div class="meta">
        {{ __('recruitment.reports.generated_at') }}: {{ $generatedAt->format('Y-m-d H:i') }}
        @if ($filters->dateFrom || $filters->dateTo)
            | {{ __('recruitment.reports.filters.date_from') }}: {{ $filters->dateFrom ?? '—' }}
            → {{ $filters->dateTo ?? '—' }}
        @endif
    </div>
    <table>
        <thead>
            <tr>
                @foreach ($report['columns'] as $col)
                    <th>{{ __('recruitment.reports.columns.'.$col) }}</th>
                @endforeach
            </tr>
        </thead>
        <tbody>
            @forelse ($report['rows'] as $row)
                <tr>
                    @foreach ($row as $cell)
                        <td>{{ $cell }}</td>
                    @endforeach
                </tr>
            @empty
                <tr>
                    <td colspan="{{ count($report['columns']) }}">{{ __('recruitment.reports.empty') }}</td>
                </tr>
            @endforelse
        </tbody>
    </table>
</body>
</html>
