fix(tickets): improve pdf table readability

This commit is contained in:
2026-09-01 12:06:50 -03:00
parent 80b8707771
commit 5e541f7cd0

View File

@@ -4,19 +4,19 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
@page { margin: 28px 34px 58px; }
body { color: #17211b; font-family: DejaVu Sans, sans-serif; font-size: 8px; margin: 0; }
body { color: #17211b; font-family: DejaVu Sans, sans-serif; font-size: 11px; margin: 0; }
h1 { font-size: 21px; margin: 0 0 3px; }
.subtitle { color: #66736b; margin: 0 0 15px; }
.summary { background: #eef5f1; border-left: 4px solid #198754; margin-bottom: 14px; padding: 8px 11px; }
.summary strong { font-size: 12px; }
table { border-collapse: collapse; table-layout: fixed; width: 100%; }
table { border-collapse: collapse; width: 100%; }
thead { display: table-header-group; }
tr { page-break-inside: avoid; }
th { background: #26382e; color: #fff; font-size: 7px; letter-spacing: .25px; padding: 6px 5px; text-align: left; text-transform: uppercase; }
th { background: #26382e; color: #fff; font-size: 11px; letter-spacing: .25px; padding: 6px 5px; text-align: left; text-transform: uppercase; }
td { border-bottom: 1px solid #dfe7e2; overflow-wrap: break-word; padding: 6px 5px; vertical-align: top; }
tbody tr:nth-child(even) { background: #f7f9f8; }
.number { text-align: right; }
.ticket-id { font-size: 6.8px; word-break: break-all; }
.ticket-id { font-size: 11px; word-break: break-all; }
.empty { color: #66736b; padding: 24px; text-align: center; }
</style>
</head>
@@ -34,10 +34,7 @@
<thead>
<tr>
@foreach ($columns as $column)
<th
style="width: {{ $column['width'] }}"
@class(['number' => $column['type'] === 'currency'])
>{{ $column['label'] }}</th>
<th @class(['number' => $column['type'] === 'currency'])>{{ $column['label'] }}</th>
@endforeach
</tr>
</thead>