    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Times New Roman', Times, serif; font-size: 12pt; background: #e0e0e0; color: #000; }
.page { width: 210mm; min-height: 297mm; margin: 20px auto; background: #fff; padding: 20mm 20mm 20mm 25mm; box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.nomor-dok { font-size: 8.5pt; color: #444; text-align: right; margin-bottom: 4px; }
.doc-header { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 10px;    border-top: none;    border-bottom: 3px solid #1a365d; padding: 8px 0; margin-bottom: 16px; }
.logo-box { width: 56px; height: 56px; border: 1.5px dashed #555; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 7pt; color: #555; text-align: center; line-height: 1.3; }

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-box.has-logo {
  border: none;
}
.doc-title-center {
  text-align: center;
  line-height: 1.25;
}
.kop-pemda {
  font-size: 8pt;
  font-weight: normal;
  letter-spacing: 0.04em;
  margin-bottom: 1px;
}
.kop-dinas {
  font-size: 9pt;
  font-weight: bold;
  letter-spacing: 0.03em;
  margin-bottom: 1px;
}
.kop-sekolah {
  font-size: 12pt;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.kop-alamat {
  font-size: 7.5pt;
  font-weight: normal;
  font-style: italic;
  letter-spacing: 0.01em;
}
.doc-judul-area {
  text-align: center;
  margin-bottom: 12px;
}
.doc-judul-area .judul-utama {
  font-size: 14pt;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 4px 0 2px 0;
}
.doc-judul-area .subjudul {
  font-size: 10pt;
  color: #444;
}
.identitas { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 11pt; }
.identitas td { padding: 4px 8px;    border: 1px solid #1a365d; vertical-align: top; }
.identitas td:first-child { font-weight: bold; white-space: nowrap; width: 38%; }
.page .section-title { font-size: 11pt; font-weight: bold; color: #000; text-transform: uppercase; letter-spacing: 0.04em; border-left: 4px solid #1a365d; padding: 3px 8px; margin: 14px 0 8px 0; background: #f5f5f5; }
.section-prota { page-break-inside: avoid; }
.page .section-title { page-break-after: avoid; }

    table.main { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10pt; margin-bottom: 10px; }
    table.main th { background: #1a365d; color: #fff; padding: 6px 8px; text-align: center; font-size: 10pt; font-weight: bold;    border: 1px solid #1a365d; vertical-align: middle; }
    table.main td { padding: 5px 8px;    border: 1px solid #1a365d; vertical-align: top; line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; }
    table.main tr:nth-child(even) td { background: #fafafa; }
    table.main td.no { text-align: center; width: 42px; font-weight: bold; vertical-align: middle; }
    table.main td.kode { font-family: 'Times New Roman', Times, serif; font-size: 8pt; font-weight: bold; text-align: center; vertical-align: middle; width: 105px; word-break: break-all; line-height: 1.3; }
    table.main td.center { text-align: center; vertical-align: middle; }
    table.main td.sem-header { background: #1a365d; color: #fff; font-weight: bold; font-size: 10.5pt; text-align: left; padding: 6px 10px; letter-spacing: 0.04em; }
    table.main td.sub-header { background: #2c5aa0; color: #fff; font-weight: bold; font-size: 9.5pt; padding: 4px 8px; font-style: italic; }
    table.main tr.subtotal td { background: #e6f2ff; font-weight: bold; color: #1a365d; }
    table.main tr.subtotal td.label { text-align: right; }
    table.main tr.grandtotal td { background: #1a365d; color: #fff; font-weight: bold; }
    table.main tr.grandtotal td.label { text-align: right; }

table.main tr.cadangan td {
  background: #f0f7ff;
  font-style: italic;
  color: #1a365d;
}

    table.minggu { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9pt; margin-bottom: 6px; }
    table.minggu th { background: #2c5aa0; color: #fff; padding: 5px 7px;    border: 1px solid #1a365d; text-align: center; }
    table.minggu td { padding: 4px 7px;    border: 1px solid #1a365d; line-height: 1.4; word-wrap: break-word; overflow-wrap: break-word; }
    table.minggu td.center { text-align: center; }
    table.minggu tr.sem-row td { background: #eee; font-weight: bold; font-size: 9.5pt; }
    table.minggu tr.subtotal-row td { background: #ccc; font-weight: bold; text-align: center; }
    table.minggu tr.total-row td { background: #1a365d; color: #fff; font-weight: bold; text-align: center; }

    .catatan { font-size: 8.5pt; color: #333; margin-bottom: 14px; padding: 6px 10px; border-left: 3px solid #555; line-height: 1.7; background: #fafafa; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }

/* ── Area TTD Pengesahan ── */
.ttd-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  page-break-inside: avoid;
}
.ttd-box {
  text-align: center;
  font-size: 10pt;
  padding: 8px 12px;
}
.ttd-box .ttd-jabatan {
  font-weight: bold;
  color: #1a365d;
  font-size: 9.5pt;
  margin-bottom: 4px;
}
.ttd-box .ttd-tanggal {
  font-size: 9.5pt;
  margin-bottom: 44px;
}
.ttd-box .ttd-nama {
  font-weight: bold;
  font-size: 10pt;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ttd-box .ttd-nip {
  font-size: 9pt;
  color: #333;
  margin-top: 3px;
}

    @media print {
  body { background: #fff; }
  .page {
    margin: 0;
    box-shadow: none;
    padding: 0;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
