diff --git a/resources/views/visitor/badge.blade.php b/resources/views/visitor/badge.blade.php index 9e898b9..6e5112f 100644 --- a/resources/views/visitor/badge.blade.php +++ b/resources/views/visitor/badge.blade.php @@ -41,32 +41,26 @@ .badge-header { background: #1a1a2e; color: #fff; - text-align: center; - padding: 2mm 2mm 1.5mm; + padding: 1.5mm 2mm; font-size: 8pt; font-weight: bold; letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; + flex-shrink: 0; } - .badge-header .type { - font-size: 9pt; - letter-spacing: 2px; - } - - .badge-header .badge-id { - font-size: 7pt; - opacity: 0.85; - } + .badge-header .type { font-size: 9pt; letter-spacing: 2px; } + .badge-header .badge-id { font-size: 7pt; opacity: 0.85; } /* ── Body ── */ .badge-body { display: flex; flex: 1; - padding: 2mm; + padding: 1.5mm 2mm; gap: 2mm; + overflow: hidden; } /* ── Fields (left) ── */ @@ -74,82 +68,104 @@ flex: 1; display: flex; flex-direction: column; - gap: 1.2mm; + overflow: hidden; } .field-row { display: grid; grid-template-columns: 16mm 3mm 1fr; - line-height: 1.3; - margin-bottom: 0.7mm; + line-height: 1.25; + margin-bottom: 0.6mm; + align-items: start; } .field-label { - color: #000; /* was #555 — now pure black */ + color: #000; font-size: 6.5pt; - font-weight: 700; /* was normal — now bold */ + font-weight: 700; + white-space: nowrap; } .field-colon { - color: #000; /* was #555 — now pure black */ + color: #000; font-size: 6.5pt; - font-weight: 700; /* added bold */ + font-weight: 700; text-align: center; } .field-value { - font-weight: 700; /* was 600 — now fully bold */ + font-weight: 700; font-size: 6.5pt; - color: #000; /* was #111 — now pure black */ + color: #000; + /* Prevent wrapping — truncate with ellipsis if too long */ + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } - /* ── Photo (right) ── */ + /* ── Photo column (right) ── */ .badge-photo { display: flex; flex-direction: column; align-items: center; - gap: 1mm; width: 18mm; + flex-shrink: 0; + gap: 0.5mm; } .badge-photo img { width: 16mm; - height: 18mm; + height: 16mm; object-fit: cover; - border: 1px solid #ccc; + border: 1px solid #000; } .badge-photo .no-photo { width: 16mm; - height: 18mm; - border: 1.5px dashed #000; /* was #aaa — darker border */ + height: 16mm; + border: 1.5px dashed #000; display: flex; align-items: center; justify-content: center; - font-size: 6pt; /* slightly larger */ - color: #000; /* was #aaa */ + font-size: 6pt; + color: #000; font-weight: 700; text-align: center; } .host-sign { - font-size: 6pt; /* was 5.5pt — slightly larger */ - color: #000; /* was #555 — now pure black */ - font-weight: 700; /* added bold */ + font-size: 6pt; + color: #000; + font-weight: 700; text-align: center; - border-top: 1px solid #000; /* was 0.5px #aaa — darker line */ + border-top: 1px solid #000; padding-top: 0.5mm; width: 100%; } + /* ── QR code ── */ + .visitor-qr { + margin-top: 1mm; + width: 18mm; + display: flex; + justify-content: center; + } + + .visitor-qr svg { + width: 16mm !important; + height: 16mm !important; + display: block; + } + /* ── Footer ── */ .badge-footer { - border-top: 1px solid #000; /* was 0.5px #ddd — darker line */ - padding: 1mm 2mm; + border-top: 1px solid #000; + padding: 0.8mm 2mm; text-align: right; - font-size: 6pt; /* was 5.5pt — slightly larger */ - color: #000; /* was #888 — now pure black */ - font-weight: 700; /* added bold */ + font-size: 6pt; + color: #000; + font-weight: 700; + flex-shrink: 0; } @media print { @@ -158,9 +174,9 @@ } - + - {{-- ── Print button (visible on screen only, hidden when printing) ── --}} + {{-- ── Print / Close buttons (screen only) ── --}}
@@ -247,5 +264,11 @@ + +