style(tatib): PDF SP — enter 1x antara 'Berikut daftar pelanggaran :' dan tabel; kompensasi margin/line-height agar tetap 1 lembar F4

This commit is contained in:
Novy San87
2026-08-26 11:22:11 +07:00
parent df74334617
commit 44207c9aed
+6 -6
View File
@@ -4,24 +4,24 @@
<meta charset="utf-8">
<title>Cetak SP - {{ $spLetter->student->full_name }}</title>
<style>
@page { margin: 0.6cm 1cm 0.55cm; size: 210mm 330mm; } /* F4 */
@page { margin: 0.5cm 1cm 0.5cm; size: 210mm 330mm; } /* F4 */
p { margin: 0; }
body { font-family: 'Times New Roman', 'DejaVu Serif', Times, serif; font-size: 12pt; line-height: 1.4; color: #000; }
body { font-family: 'Times New Roman', 'DejaVu Serif', Times, serif; font-size: 12pt; line-height: 1.37; color: #000; }
.kop-surat { margin-bottom: 4px; }
.kop-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.kop-table td { border: none; padding: 0; }
.kop-logo { width: 84px; text-align: center; vertical-align: middle; }
.kop-logo img { height: 40px; width: auto; max-width: 76px; object-fit: contain; }
.kop-logo img { height: 36px; width: auto; max-width: 76px; object-fit: contain; }
.kop-text { text-align: center; vertical-align: middle; width: 400pt; }
.kop-1, .kop-2 { font-size: 13pt; font-weight: bold; margin: 0; text-transform: uppercase; }
.kop-3 { font-size: 13pt; font-weight: bold; margin: 1px 0; text-transform: uppercase; }
.kop-4, .kop-5, .kop-6 { font-size: 7.5pt; margin: 0; }
.kop-4, .kop-5, .kop-6 { font-size: 7pt; margin: 0; }
.kop-surat .line { border-top: 2.5px solid #000; margin-top: 6px; }
.kop-surat .sub-line { border-top: 1px solid #000; margin-top: 2px; }
.letter-number { text-align: center; margin: 0 0 1.4em; font-weight: bold; font-size: 12pt; }
.letter-number .letter-title { font-size: 13pt; }
.to-title { margin-bottom: 1.4em; }
.body-text { text-align: justify; margin-bottom: 4px; }
.body-text { text-align: justify; margin-bottom: 2px; }
.body-text p { margin-bottom: 0; }
.violation-list { margin: 0 0 1px 20px; }
.violation-list li { margin-bottom: 3px; }
@@ -81,7 +81,7 @@
<div class="body-text">
<p>Total akumulasi poin pelanggaran: <strong>{{ $spLetter->total_points_at_time }} poin</strong></p>
<p>Berikut daftar pelanggaran :</p>
<p style="margin-bottom: 1.4em;">Berikut daftar pelanggaran :</p>
@php $violations = is_array($spLetter->violations_included) ? $spLetter->violations_included : json_decode($spLetter->violations_included, true); @endphp
@if($violations)
<table class="violation-table">