/* CSS Dokumen Modul Ajar — Diambil dari mockup */
/* Warna: biru pendidikan (referensi Prosem) */
/* Orientasi: Portrait A4 */
/* Tidak boleh diubah, digunakan untuk rendering output */

*, *::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; }

/* A4 PORTRAIT */
.page {
  width: 210mm;
  min-height: auto;
  height: auto;
  margin: 20px auto;
  background: #fff;
  padding: 10mm 10mm 10mm 10mm;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  overflow: visible;
  display: block;
  position: relative;
}
.page-break {
  page-break-before: always;
}

.nomor-dok { font-size: 8pt; color: #1a365d; text-align: right; margin-bottom: 4px; }

/* HEADER */
.doc-header {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 10px;
  border-top: 3px solid #1a365d;
  border-bottom: 3px solid #1a365d;
  padding: 8px 0;
  margin-bottom: 14px;
}
.logo-box {
  width: 52px; height: 52px;
  border: 1.5px dashed #2c5aa0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 6.5pt; color: #2c5aa0; 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; }
.doc-title-center .instansi { font-size: 9.5pt; font-weight: normal; color: #1a365d; }
.doc-title-center .judul-utama { font-size: 14pt; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; margin: 2px 0; color: #1a365d; }
.doc-title-center .subjudul { font-size: 9.5pt; color: #2c5aa0; }

/* SECTION TITLE */
.section-title {
  font-size: 10.5pt; font-weight: bold; text-transform: uppercase;
  letter-spacing: 0.04em; border-left: 4px solid #1a365d;
  padding: 3px 8px; margin: 12px 0 7px 0; background: #e6f2ff;
  color: #1a365d;
}
.sub-section {
  font-size: 10pt; font-weight: bold;
  border-bottom: 1.5px solid #1a365d;
  padding: 2px 0 3px 0; margin: 10px 0 6px 0;
  letter-spacing: 0.02em;
  color: #1a365d;
}

/* TABEL IDENTITAS */
table.identitas {
  width: 100%; border-collapse: collapse;
  margin-bottom: 12px; font-size: 10pt;
}
table.identitas td {
  padding: 4px 8px; border: 1px solid #1a365d; vertical-align: top;
}
table.identitas td.label {
  font-weight: bold; white-space: nowrap; width: 35%; background: #e6f2ff;
  color: #1a365d;
}

/* TABEL UMUM */
table.main {
  width: 100%; border-collapse: collapse;
  font-size: 10pt; margin-bottom: 12px;
}
table.main th {
  background: #1a365d; color: #fff;
  padding: 5px 7px; border: 1px solid #1a365d;
  text-align: center; vertical-align: middle; font-size: 9.5pt;
}
table.main td {
  padding: 5px 7px; border: 1px solid #1a365d;
  vertical-align: top; line-height: 1.5;
}
table.main tr:nth-child(even) td { background: #f5f9ff; }
table.main td.no { text-align: center; font-weight: bold; width: 24px; vertical-align: middle; }
table.main td.center { text-align: center; vertical-align: middle; }
table.main td.label { font-weight: bold; background: #e6f2ff; width: 35%; color: #1a365d; }

/* KOTAK KONTEN */
.konten-box {
  border: 1px solid #1a365d;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 10pt;
  line-height: 1.6;
  background: #fefefe;
}
.konten-box .box-label {
  font-weight: bold; font-size: 9.5pt;
  border-bottom: 1px solid #2c5aa0;
  padding-bottom: 4px; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: #1a365d;
}

/* SINTAK KEGIATAN PEMBELAJARAN */
.pertemuan-header {
  background: #1a365d; color: #fff;
  font-weight: bold; font-size: 10.5pt;
  padding: 6px 10px; margin: 14px 0 0 0;
  letter-spacing: 0.04em;
}
.pertemuan-meta {
  border: 1px solid #1a365d; border-top: none;
  padding: 5px 10px; font-size: 9.5pt;
  margin-bottom: 8px; background: #e6f2ff;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.pertemuan-meta span { font-size: 9.5pt; }
.pertemuan-meta b { font-weight: bold; color: #1a365d; }

/* FASE PEMBUKA/PENUTUP */
.fase-box {
  border: 1px solid #1a365d;
  margin-bottom: 6px;
}
.fase-box .fase-header {
  background: #2c5aa0; color: #fff;
  font-weight: bold; font-size: 9.5pt;
  padding: 4px 10px;
}
.fase-box .fase-content {
  padding: 7px 10px; font-size: 9.5pt; line-height: 1.6;
}
.fase-box .fase-content table {
  width: 100%; border-collapse: collapse; font-size: 9.5pt;
}
.fase-box .fase-content table td {
  padding: 3px 6px; border: 1px solid #2c5aa0; vertical-align: top; line-height: 1.5;
}
.fase-box .fase-content table td.waktu {
  width: 55px; text-align: center; font-weight: bold; background: #e6f2ff;
}
.fase-box .fase-content table td.peran {
  width: 70px; font-weight: bold; background: #edf5ff;
}

/* SINTAK BOX */
.sintak-box {
  border: 1px solid #1a365d;
  margin-bottom: 6px;
}
.sintak-box .sintak-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: #1a365d; color: #fff;
  padding: 4px 10px; gap: 10px;
}
.sintak-box .sintak-header .sintak-no {
  font-size: 9pt; font-weight: bold;
  border: 1px solid #fff;
  padding: 1px 6px; white-space: nowrap;
}
.sintak-box .sintak-header .sintak-nama {
  font-weight: bold; font-size: 9.5pt;
  letter-spacing: 0.03em;
}
.sintak-box .sintak-header .sintak-waktu {
  font-size: 8.5pt; white-space: nowrap;
  opacity: 0.85;
}
.sintak-box .sintak-content {
  padding: 7px 10px; font-size: 9.5pt;
}
.sintak-box .sintak-content table {
  width: 100%; border-collapse: collapse; font-size: 9.5pt;
}
.sintak-box .sintak-content table td {
  padding: 4px 7px; border: 1px solid #2c5aa0; vertical-align: top; line-height: 1.5;
}
.sintak-box .sintak-content table td.peran {
  width: 80px; font-weight: bold; background: #e6f2ff; text-align: center;
}
.sintak-box .sintak-content table td.waktu-col {
  width: 55px; text-align: center; font-weight: bold; background: #edf5ff;
}

/* ASESMEN */
.asesmen-box {
  border: 1px solid #1a365d;
  margin-bottom: 10px;
}
.asesmen-box .asesmen-header {
  background: #2c5aa0; color: #fff;
  font-weight: bold; font-size: 10pt;
  padding: 5px 10px;
}
.asesmen-box .asesmen-content {
  padding: 8px 10px; font-size: 9.5pt; line-height: 1.6;
}
.asesmen-box .asesmen-content table {
  width: 100%; border-collapse: collapse; font-size: 9.5pt;
}
.asesmen-box .asesmen-content table th {
  background: #1a365d; color: #fff;
  padding: 4px 7px; border: 1px solid #1a365d; text-align: center;
}
.asesmen-box .asesmen-content table td {
  padding: 4px 7px; border: 1px solid #1a365d;
  vertical-align: top; line-height: 1.5;
}
.asesmen-box .asesmen-content table tr:nth-child(even) td { background: #f5f9ff; }

/* DIFERENSIASI */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin-bottom: 12px;
}
.diff-card {
  border: 1px solid #1a365d;
  font-size: 9pt;
}
.diff-card .diff-header {
  background: #1a365d; color: #fff;
  font-weight: bold; padding: 4px 7px; font-size: 9pt;
}
.diff-card .diff-content {
  padding: 4px 6px; line-height: 1.5;
}

/* REFLEKSI */
.refleksi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.refleksi-card {
  border: 1px solid #1a365d; font-size: 9.5pt;
}
.refleksi-card .refleksi-header {
  background: #2c5aa0; color: #fff;
  font-weight: bold; padding: 4px 8px;
}
.refleksi-card .refleksi-content {
  padding: 7px 8px; line-height: 1.6;
}

/* LAMPIRAN */
.lampiran-box {
  border: 1px solid #1a365d; margin-bottom: 10px;
}
.lampiran-box .lampiran-header {
  background: #1a365d; color: #fff;
  font-weight: bold; font-size: 10pt; padding: 5px 10px;
}
.lampiran-box .lampiran-content {
  padding: 8px 12px; font-size: 9.5pt; line-height: 1.7;
}

.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: 9.5pt;
    color: #444;
  }
  .ttd-wrapper {
    margin-top: 20px;
    page-break-inside: avoid;
  }

/* TTD — hanya di Modul Ajar */
.ttd-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.ttd-box {
    padding: 8px 12px;
    text-align: center;
    font-size: 10pt;
  }
  .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;
  }

.catatan { font-size: 8.5pt; color: #1a365d; margin-bottom: 10px; padding: 5px 8px; border-left: 3px solid #2c5aa0; line-height: 1.7; background: #e6f2ff; }

.doc-footer {
  border-top: 2px solid #1a365d; margin-top: 16px; padding-top: 4px;
  display: flex; justify-content: space-between; font-size: 8pt; color: #1a365d;
}

@media print {
  body { background: #fff; }
  .page {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .pertemuan-header {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  .pertemuan-group-pertama {
    page-break-before: always !important;
    break-before: page !important;
  }
  .soal-box .soal-header {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  .soal-box {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .page-break .doc-header {
    display: none !important;
  }
  .page-break .nomor-dok {
    margin-top: 2mm !important;
    margin-bottom: 6mm !important;
  }
}

/* ═══════════════════════════════════════
   CSS BARU — MODUL AJAR v2.0
   Ditambahkan: 21 Maret 2026
   Jangan ubah CSS di atas baris ini
   ═══════════════════════════════════════ */

/* Label Deep Learning */
.deep-learning-label {
  font-size: 8.5pt;
  font-style: italic;
  color: #1a365d;
  background: #e8f0fa;
  border-bottom: 1px solid #b0c4e8;
  padding: 3px 10px;
  margin: 0;
}

/* Tabel 4 kolom aktivitas */
table.aktivitas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
  margin: 0;
}
table.aktivitas-table th {
  padding: 4px 6px;
  text-align: center;
  border: 1px solid #1a365d;
  font-size: 8.5pt;
}
table.aktivitas-table th.th-guru {
  background: #1a365d; color: #fff;
}
table.aktivitas-table th.th-siswa {
  background: #2e7d32; color: #fff;
}
table.aktivitas-table td {
  padding: 4px 6px;
  border: 1px solid #c8dff5;
  vertical-align: top;
  line-height: 1.5;
}
table.aktivitas-table .col-no {
  width: 22px;
  text-align: center;
  font-weight: bold;
  background: #f0f5ff;
  color: #1a365d;
}
table.aktivitas-table .col-no-siswa {
  width: 22px;
  text-align: center;
  font-weight: bold;
  background: #f0fff0;
  color: #2e7d32;
}
table.aktivitas-table tr:nth-child(even) td { background: #f5f9ff; }
table.aktivitas-table tr:nth-child(even) .col-no { background: #e8f0ff; }
table.aktivitas-table tr:nth-child(even) .col-no-siswa { background: #e8ffe8; }

/* Box tujuan pertemuan */
.tujuan-pertemuan-box {
  border: 1px solid #1a365d;
  border-top: none;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 9pt;
  background: #f8faff;
}
.tujuan-pertemuan-box .tujuan-label {
  font-weight: bold;
  font-size: 8.5pt;
  color: #1a365d;
  margin-bottom: 3px;
}
.tujuan-pertemuan-box ol {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}
.tujuan-pertemuan-box ol li { margin-bottom: 1px; }

/* Box soal */
.soal-box { border: 1px solid #1a365d; margin-bottom: 10px; }
.soal-box .soal-header {
  background: #1a365d; color: #fff;
  font-weight: bold; font-size: 9.5pt; padding: 5px 10px;
}
.soal-box .soal-content {
  padding: 5px 10px; font-size: 9.5pt; line-height: 1.4;
}
.soal-box .soal-content ol {
  padding-left: 20px; margin: 0; line-height: 1.4;
}
.soal-box .soal-content li { margin-bottom: 1px; }
.soal-box .soal-tipe {
  display: inline-block;
  font-size: 7.5pt;
  background: #e6f2ff;
  color: #1a365d;
  border: 1px solid #b0c4e8;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  font-style: italic;
}

/* Tabel lintas disiplin */
table.lintas-disiplin {
  width: 100%; border-collapse: collapse;
  font-size: 10pt; margin-bottom: 10px;
}
table.lintas-disiplin th {
  background: #1a365d; color: #fff;
  padding: 5px 8px; border: 1px solid #1a365d;
  text-align: left;
}
table.lintas-disiplin td {
  padding: 5px 8px; border: 1px solid #1a365d;
  vertical-align: top; line-height: 1.5;
}
table.lintas-disiplin td.mapel {
  font-weight: bold; width: 28%;
  background: #e6f2ff; color: #1a365d;
}
table.lintas-disiplin tr:nth-child(even) td { background: #f5f9ff; }
table.lintas-disiplin tr:nth-child(even) td.mapel { background: #dbeeff; }

/* Tabel dimensi profil lulusan */
table.dimensi-profil {
  width: 100%; border-collapse: collapse;
  font-size: 10pt; margin-bottom: 10px;
}
table.dimensi-profil th {
  background: #1a365d; color: #fff;
  padding: 5px 8px; border: 1px solid #1a365d;
  text-align: left;
}
table.dimensi-profil td {
  padding: 5px 8px; border: 1px solid #1a365d;
  vertical-align: top; line-height: 1.5;
}
table.dimensi-profil td.dimensi {
  font-weight: bold; width: 25%;
  background: #e6f2ff; color: #1a365d;
}
table.dimensi-profil tr:nth-child(even) td { background: #f5f9ff; }
table.dimensi-profil tr:nth-child(even) td.dimensi { background: #dbeeff; }

/* Vertical align middle helper class */
table.main td.valign-middle,
table.aktivitas-table td.valign-middle,
.asesmen-box table td.valign-middle {
  vertical-align: middle !important;
}
