<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ $listTitle }} — Print</title>
    <style>
        * { box-sizing: border-box; }
        body {
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
            font-size: 12px;
            color: #111;
            margin: 0;
            padding: 1rem 1.25rem;
        }
        .print-toolbar {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #e5e7eb;
        }
        .print-toolbar button {
            padding: 0.4rem 0.85rem;
            font-size: 0.875rem;
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            background: #fff;
            cursor: pointer;
        }
        .print-toolbar button:hover { background: #f9fafb; }
        .voucher-list-report-header {
            text-align: center;
            margin: 0 0 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #d1d5db;
        }
        .voucher-list-report-company {
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 0.35rem;
        }
        .voucher-list-report-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        .voucher-list-report-period {
            font-size: 0.875rem;
            color: #374151;
        }
        table { width: 100%; border-collapse: collapse; }
        th, td {
            border: 1px solid #d1d5db;
            padding: 0.35rem 0.5rem;
            text-align: left;
            vertical-align: top;
        }
        th { background: #f3f4f6; font-weight: 600; font-size: 0.75rem; }
        td.num, .text-end { text-align: right; font-variant-numeric: tabular-nums; }
        .text-muted { color: #6b7280; }
        .fw-semibold { font-weight: 600; }
        .badge { display: inline-block; padding: 0.1rem 0.35rem; border-radius: 0.25rem; font-size: 10px; }
        .empty { text-align: center; color: #6b7280; padding: 2rem; }
        @media print {
            .print-toolbar { display: none; }
            body { padding: 0; }
        }
    </style>
</head>
<body>
    <div class="print-toolbar">
        <button type="button" onclick="window.print()">Print</button>
        <button type="button" onclick="window.close()">Close</button>
    </div>

    @include('accounting.vouchers._list_report_header')

    @include('accounting.vouchers._list_table', ['showActions' => false])
</body>
</html>
