@page {
  size: A4 portrait;
  margin: 14mm 15mm;
}

@page recapLandscape {
  size: A4 landscape;
  margin: 11mm 12mm;
}

body {
  background: #fff !important;
  color: #000 !important;
  font-family: 'Times New Roman', Times, serif !important;
  font-size: 11pt;
  line-height: 1.4;
}

.no-print {
  display: none !important;
}

.print-only {
  display: block !important;
}

/* ===== 1. CETAK FORM PELAPORAN TUMPAHAN B3 (SATUAN) ===== */
.pf-wrapper {
  width: 100%;
  border: 1.5px solid #000;
  padding: 16px 20px;
}

.pf-header {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.pf-logo-box {
  width: 90px;
  text-align: center;
  border-right: 1px solid #000;
  padding-right: 10px;
  margin-right: 14px;
}

.pf-logo-h {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 28pt;
  color: #15803d;
  line-height: 1;
}

.pf-logo-text {
  font-family: Arial, sans-serif;
  font-size: 7.5pt;
  font-weight: 700;
  color: #15803d;
  letter-spacing: 0.4px;
}

.pf-title-box {
  flex: 1;
  text-align: center;
}

.pf-title-box h1 {
  font-size: 13pt;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.pf-title-box h2 {
  font-size: 12pt;
  font-weight: 700;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.pf-section-title {
  font-weight: 700;
  font-size: 11.5pt;
  margin: 12px 0 6px;
}

.pf-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.pf-table td {
  padding: 3px 4px;
  vertical-align: top;
}

.pf-label {
  width: 155px;
  white-space: nowrap;
}

.pf-colon {
  width: 12px;
}

.pf-underline {
  border-bottom: 1px dotted #333;
}

.pf-box-text {
  border: 1px solid #444;
  min-height: 54px;
  padding: 6px 8px;
  margin: 4px 0 8px;
  white-space: pre-wrap;
}

.pf-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 6px 0 10px 18px;
}

.pf-check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pf-checkbox {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #000;
  text-align: center;
  line-height: 13px;
  font-size: 10pt;
  font-weight: 700;
}

.pf-sign-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.pf-sign-table td {
  width: 50%;
  border: 1px solid #000;
  padding: 8px 12px;
  vertical-align: top;
  text-align: center;
}

.pf-sig-img {
  height: 68px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin: 6px auto;
}

.pf-sig-spacer {
  height: 74px;
}

.pf-footer-meta {
  margin-top: 8px;
  font-size: 8.5pt;
  color: #444;
  display: flex;
  justify-content: space-between;
}

/* ===== 2. CETAK PDF REKAPAN BULANAN / RENTANG TANGGAL (A4 LANDSCAPE) ===== */
.recap-print-wrap {
  page: recapLandscape;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
  color: #000;
}

.recap-header {
  display: flex;
  align-items: center;
  border-bottom: 2.5px solid #000;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.recap-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.recap-stat-box {
  border: 1px solid #333;
  padding: 6px 8px;
  text-align: center;
  background: #f8fafc;
}
.recap-stat-box span {
  display: block;
  font-size: 7.5pt;
  text-transform: uppercase;
  color: #333;
}
.recap-stat-box strong {
  font-size: 12pt;
  color: #000;
}

.recap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.2pt;
  margin-bottom: 14px;
}

.recap-table th, .recap-table td {
  border: 1px solid #000;
  padding: 4px 5px;
  vertical-align: top;
}

.recap-table th {
  background: #e2e8f0;
  font-weight: 700;
  text-align: center;
}

.recap-table tr {
  page-break-inside: avoid;
}

.recap-sign-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  page-break-inside: avoid;
}

.recap-sign-col {
  width: 38%;
  text-align: center;
  font-size: 9pt;
}

.recap-sign-space {
  height: 58px;
}

/* ===== 3. CETAK KARTU DAFTAR ISI SPILL KIT PER UNIT ===== */
.sk-print-card {
  width: 100%;
  max-width: 180mm;
  margin: 0 auto;
  border: 2px solid #000;
  padding: 14px 18px;
  font-family: Arial, Helvetica, sans-serif;
}

.sk-print-header {
  text-align: center;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.sk-print-header h1 { font-size: 14pt; margin: 0; font-weight: 800; }
.sk-print-header h2 { font-size: 13pt; margin: 4px 0 0; font-weight: 800; color: #15803d; }
.sk-print-header p { font-size: 9pt; margin: 4px 0 0; }

.sk-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10pt;
}
.sk-print-table th, .sk-print-table td {
  border: 1px solid #000;
  padding: 5px 8px;
}
.sk-print-table th {
  background: #e2e8f0;
  font-weight: 700;
  text-align: center;
}
.sk-print-center { text-align: center; }

.sk-print-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 9.5pt;
}