/* =========================================================
   KONTRAK KERJA LENGKAP — REPLIKA DOKUMEN WORD RESMI
   Kertas Acuan: F4 / Folio (215,9 × 330 mm) & A4 (210 × 297 mm)
   Tingkat Kemiripan: 98% - 100%
   ========================================================= */
* { box-sizing: border-box; }
@font-face {
  font-family: 'Lucida Sans Unicode';
  src: url('assets/lucida_sans_unicode.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
:root {
  --ss: 1;               /* Skala tampilan layar */
  --pw: 215.9mm;         /* Lebar kertas cetak */
  --ph: 330mm;           /* Tinggi kertas cetak */
  --sp: 1;               /* Skala cetak proporsional */
  --tahoma: Tahoma, "DejaVu Sans", Geneva, sans-serif;
  --narrow: "Arial Narrow", "ArialNarrow", "Liberation Sans Narrow", "Helvetica Neue Condensed", "sans-serif-condensed", "Roboto Condensed", sans-serif;
  --arial: Arial, Helvetica, "Liberation Sans", sans-serif;
  --lucida: "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Geneva, Verdana, sans-serif;
}

html {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---------- Tipografi & Garis Bawah Resmi Dokumen (Word-Compatible) ---------- */
u, ins, .underline {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  -webkit-text-decoration-skip: none;
  text-underline-offset: 1.5px;
}

/* ---------- TEMA WARNA (DARK & LIGHT THEME) ---------- */
body, body.theme-dark {
  --desk-bg: #0b1120;
  --desk-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  --tb-bg: rgba(15, 23, 42, 0.95);
  --tb-border: rgba(255, 255, 255, 0.1);
  --tb-text: #f8fafc;
  --tb-brand: #60a5fa;
  --tb-label: #94a3b8;
  --tb-divider: #334155;
  --input-bg: #1e293b;
  --input-border: #334155;
  --input-text: #f8fafc;
  --search-bg: #0f172a;
  --search-dropdown-bg: #1e293b;
  --search-dropdown-border: #475569;
  --btn-tool-bg: #1e293b;
  --btn-tool-border: #334155;
  --btn-tool-hover: #334155;
  --btn-tool-text: #f8fafc;
  --btn-step-bg: #334155;
  --btn-step-border: #475569;
  --status-bar-bg: rgba(30, 41, 59, 0.94);
  --status-bar-border: rgba(255, 255, 255, 0.08);
  --status-pill-bg: rgba(15, 23, 42, 0.6);
  --status-pill-border: #334155;
  --status-pill-text: #cbd5e1;
  --status-pill-strong: #f8fafc;
}

body.theme-light {
  --desk-bg: #e2e8f0;
  --desk-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  --tb-bg: rgba(255, 255, 255, 0.97);
  --tb-border: #cbd5e1;
  --tb-text: #0f172a;
  --tb-brand: #1d4ed8;
  --tb-label: #64748b;
  --tb-divider: #cbd5e1;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-text: #0f172a;
  --search-bg: #ffffff;
  --search-dropdown-bg: #ffffff;
  --search-dropdown-border: #cbd5e1;
  --btn-tool-bg: #ffffff;
  --btn-tool-border: #cbd5e1;
  --btn-tool-hover: #f1f5f9;
  --btn-tool-text: #334155;
  --btn-step-bg: #f1f5f9;
  --btn-step-border: #cbd5e1;
  --status-bar-bg: rgba(255, 255, 255, 0.97);
  --status-bar-border: #e2e8f0;
  --status-pill-bg: #ffffff;
  --status-pill-border: #cbd5e1;
  --status-pill-text: #475569;
  --status-pill-strong: #0f172a;
}

body {
  margin: 0;
  background: var(--desk-bg);
  color: #000;
  padding: 12px 0 24px;
  transition: background-color 0.2s ease;
}

/* ---------- Toolbar Navigasi Modern (Glassmorphism) ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  font: 13.5px/1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--tb-bg);
  backdrop-filter: blur(12px);
  color: var(--tb-text);
  padding: 10px 20px;
  margin: 0;
  border-bottom: 1px solid var(--tb-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-icon { font-size: 20px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 13px; font-weight: 800; letter-spacing: 0.5px; color: var(--tb-brand); }
.brand-text small { font-size: 10.5px; color: var(--tb-label); }

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 6px;
}
.toolbar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-label);
  white-space: nowrap;
}

.select-modern {
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.select-modern:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Stepper Wrappers */
.stepper-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}
.btn-step {
  background: var(--btn-step-bg);
  color: var(--input-text);
  border: 1px solid var(--btn-step-border);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-step:hover {
  opacity: 0.85;
}

/* Search Bar & Dropdown */
.search-section {
  position: relative;
  min-width: 260px;
  max-width: 380px;
  flex: 1;
}
.search-input-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  pointer-events: none;
  opacity: 0.7;
}
.search-input {
  width: 100%;
  background: var(--search-bg);
  color: var(--input-text);
  border: 1px solid #3b82f6;
  border-radius: 6px;
  padding: 6px 30px 6px 30px;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.search-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
  border-color: #60a5fa;
}
.search-input::placeholder {
  color: var(--tb-label);
  font-size: 12.5px;
}
.btn-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--tb-label);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
}
.btn-clear:hover { color: var(--tb-text); }

.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  background: var(--search-dropdown-bg);
  border: 1px solid var(--search-dropdown-border);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  z-index: 10000;
}
.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--search-dropdown-border);
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover, .search-item.selected {
  background: #2563eb;
  color: #ffffff;
}
.item-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 4px;
}
.item-badge-no {
  background: #059669;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.item-badge-rup {
  background: #334155;
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
}
body.theme-light .item-badge-rup {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.item-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--input-text);
}
.search-item:hover .item-title { color: #fff; }
.item-sub {
  font-size: 11.5px;
  color: var(--tb-label);
  margin-top: 3px;
  display: flex;
  justify-content: space-between;
}
.search-item:hover .item-sub { color: #e2e8f0; }

/* Status Pill Bar */
.package-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  background: var(--status-bar-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--status-bar-border);
  padding: 7px 20px;
  margin-bottom: 18px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 12.5px;
  color: var(--status-pill-text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--status-pill-bg);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--status-pill-border);
  transition: all 0.2s ease;
}
.status-pill strong { color: var(--status-pill-strong); font-weight: 600; }
.status-pill.active-badge {
  background: #047857;
  border-color: #059669;
  color: #ffffff;
}
.status-pill.highlight {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}
body.theme-light .status-pill.highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
.status-pill.highlight strong { color: #34d399; }
body.theme-light .status-pill.highlight strong { color: #059669; }
.terbilang-preview {
  font-style: italic;
  color: var(--tb-label);
  font-size: 11px;
  margin-left: 4px;
}
body.theme-light .terbilang-preview {
  color: #059669;
}
.status-pill.meta-badge {
  background: transparent;
  border: none;
  color: var(--tb-label);
}

/* Toolbar Divider & Buttons */
.toolbar-divider {
  width: 1px;
  height: 26px;
  background: var(--tb-divider);
  margin: 0 4px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.zoom-btn-group {
  display: flex;
  align-items: center;
  gap: 2px;
}
.btn-tool {
  background: var(--btn-tool-bg);
  color: var(--btn-tool-text);
  border: 1px solid var(--btn-tool-border);
  border-radius: 4px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-tool:hover { background: var(--btn-tool-hover); }

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-secondary {
  background: #1e40af;
  color: #ffffff;
  border: 1px solid #1e40af;
  border-radius: 6px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-secondary:hover { background: #1d4ed8; }

.btn-download-pdf {
  background: #059669;
  color: #ffffff;
  border: 1px solid #059669;
  border-radius: 6px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-download-pdf:hover { background: #047857; }


/* Responsivitas Toolbar Mobile */
@media (max-width: 768px) {
  .toolbar {
    padding: 8px 10px;
    gap: 6px;
    justify-content: center;
  }
  .toolbar label {
    font-size: 12px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .toolbar select {
    max-width: 90vw;
    font-size: 12px;
  }
  .toolbar button, .toolbar a.btn-download {
    font-size: 12px;
    padding: 6px 10px;
  }
  .toolbar-ppk-group, .toolbar-download-group {
    flex-wrap: wrap;
    justify-content: center;
  }
  .toolbar-divider {
    display: none;
  }
}

/* ---------- Kertas & Lembar Dokumen ---------- */
.kertas {
  position: relative;
  overflow: hidden;
  margin: 0 auto 16px;
  background: #fff;
  width: calc(215.9mm * var(--ss));
  height: calc(330mm * var(--ss));
  box-shadow: var(--desk-shadow, 0 3px 12px rgba(0,0,0,0.22));
  transition: width 0.15s ease, height 0.15s ease, box-shadow 0.2s ease;
}
.lembar {
  position: relative;
  width: 215.9mm;
  height: 330mm;
  margin: 0 auto;
  zoom: var(--ss);
  background: #fff;
  overflow: hidden;
}
.lembar p { margin: 0; }

/* ---------- SVG Kop Surat Vektor ---------- */
.kop {
  position: absolute;
  left: 0;
  top: 0;
  width: 215.9mm;
  height: 45mm;
  overflow: visible;
}
.kop text { text-anchor: middle; fill: #000; }
.kop .k1 { font-family: var(--narrow); font-weight: 700; }
.kop .k2 { font-family: var(--narrow); font-weight: 700; }
.kop .k3 { font-family: var(--narrow); font-weight: 400; }
.kop rect { fill: #000; }

/* ---------- Tipografi & Utilitas Global ---------- */
.c { text-align: center; }
.j { text-align: justify; }
.c-right { text-align: right; }
.bold { font-weight: 700; }
.normal { font-weight: 400; }
.v-mid { vertical-align: middle; }
.f14 { font-size: 14pt; }
.f16 { font-size: 16pt; }
.lembar p.sa6, .sa6 { margin-bottom: 6pt !important; }
.lembar p.sb6, .sb6 { margin-top: 6pt !important; }
.lembar p.sb12, .sb12 { margin-top: 12pt !important; }

/* =========================================================
   1. HALAMAN 1: CHECKLIST PROFIL PERUSAHAAN
   ========================================================= */
.checklist-page {
  font-family: var(--calibri);
  padding: 8mm 17.6mm;
}
.chk-header { margin-bottom: 8px; font-size: 10pt; line-height: 1.3; }
.chk-meta { border-collapse: collapse; margin-bottom: 8px; font-size: 10pt; width: 100%; }
.chk-meta td { padding: 1px 0; }
.cm-lbl { width: 130px; }
.cm-sep { width: 15px; text-align: center; }
.cm-val { font-weight: normal; }

.tbl-check {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.8pt;
  table-layout: fixed;
}
.tbl-check td, .tbl-check th {
  border: 1px solid #000;
  padding: 8px 6px;
  vertical-align: middle;
}
.th-cat {
  text-align: center;
  font-size: 9.5pt;
  font-weight: bold;
  padding: 4px;
  background: #fff;
}
.tc-no { text-align: center; width: 25px; }
.tc-name { vertical-align: middle; line-height: 1.15; }
.sub-txt { font-size: 7.5pt; color: #111; }
.tc-box { width: 35px; }
.tc-scan { text-align: center; padding: 4px; font-size: 9pt; }
.tc-jilid { font-size: 8.5pt; padding: 4px 6px; }
.badge-kuning { background: #ffff00; padding: 1px 3px; font-weight: bold; }
.badge-hijau { background: #00ff00; padding: 1px 3px; font-weight: bold; }
.badge-biru { background: #00ffff; padding: 1px 3px; font-weight: bold; }
.badge-merah { background: #ff0000; color: #fff; padding: 1px 3px; font-weight: bold; }
.tc-catatan-box { height: 147pt; }

/* =========================================================
   2. HALAMAN 2: COVER SPK
   ========================================================= */
.cover {
  font-family: var(--tahoma);
  font-weight: 700;
  font-size: 11pt;
  line-height: 1.207;
}
.cover .bingkai {
  position: absolute;
  left: 18.6mm;
  top: 10.6mm;
  width: 178.7mm;
  height: 308.7mm;
  border: 1.59mm solid #000;
  border-radius: 30.3mm;
  padding: 9.13mm 10.4mm 0;
  text-align: center;
}
.cover .logo-p { line-height: 0; }
.cover .logo-p img { width: 33.1mm; height: 31mm; }
.cover .s16 { font-size: 16pt; }
.cover .s12 { font-size: 12pt; }
.cover .sb6 { margin-top: 6pt !important; }
.cover .sb12 { margin-top: 12pt !important; }
.cover .sa6 { margin-bottom: 6pt !important; }
.cover .nb { font-weight: 400; }
.cover .nw { white-space: nowrap; margin-left: -6mm; margin-right: -6mm; }
.cover .f1 { font-size: 1pt; } .cover .f2 { font-size: 2pt; } .cover .f3 { font-size: 3pt; }
.cover .rp { letter-spacing: -0.15pt; }

.tbl-cover {
  width: 141.47mm;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}
.tbl-cover td { padding: 0 1.9mm; vertical-align: top; }
.tbl-cover td.c { text-align: center; }
.tbl-cover td.j { text-align: justify; }

/* Tabel Alamat Mandiri (Hanging Indent) */
.tbl-alamat {
  display: inline-table;
  border-collapse: collapse;
  text-align: left;
  max-width: 145mm;
  margin: 0 auto;
}
.tbl-alamat td { vertical-align: top; padding: 0; }
.tbl-alamat .c-lbl { white-space: nowrap; font-weight: 700; padding-right: 2px; }
.tbl-alamat .c-sep { white-space: nowrap; padding-right: 6px; }
.tbl-alamat .c-val { text-align: left; word-break: break-word; font-weight: 700; }

/* =========================================================
   3, 4, 5, 9, 10, 11, 12: DOKUMEN SURAT RESMI (Arial Narrow)
   ========================================================= */
.spmk, .bapl-page, .sppbj-page, .barppk-page, .undangan-page, .permohonan-page {
  font-family: var(--narrow);
  font-size: 11pt;
  line-height: 1.15;
}
.badan {
  position: absolute;
  left: 25.4mm;
  top: 25.4mm;
  width: 165.1mm;
}
.judul {
  margin: 20.9mm 0 0;
  font-size: 14pt;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  -webkit-text-decoration-skip: none;
  text-underline-offset: 2px;
  text-align: center;
  line-height: 1.15;
}
.paket { margin-left: -10mm; margin-right: -5.79mm; }

/* Kolom Tabular Data Pihak */
.tab {
  display: grid;
  grid-template-columns: 35mm 5mm 1fr;
}
.tab.j > span:last-child { text-align: justify; }

/* Daftar Bernomor 4 Kolom SPMK */
.daftar {
  display: grid;
  grid-template-columns: 6.35mm 46.15mm 5mm 1fr;
}
.daftar .lbl1 { padding-left: 0.81mm; }
.daftar.j > span:last-child { text-align: justify; }

/* Daftar Bernomor 2 Kolom (BAPL & SSUK) */
.daftar-num {
  display: grid;
  grid-template-columns: 6.35mm 1fr;
  row-gap: 2px;
  text-align: justify;
  margin-bottom: 3px;
}

/* Pihak Entry (BAPL & BA RPPK) */
.pihak-entry {
  display: grid;
  grid-template-columns: 6.35mm 18mm 4mm 1fr;
  row-gap: 2px;
  margin-bottom: 2px;
}
.pihak-entry.j > div:last-child {
  text-align: justify;
}

/* Tabel Tanda Tangan Ganda */
.ttd {
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
  width: 165.12mm;
}
.ttd td {
  padding: 0 1.9mm;
  vertical-align: top;
  text-align: center;
}
.ttd p {
  margin: 0;
}
.ttd-header-row td {
  vertical-align: bottom;
}
.ttd-signer-row td {
  vertical-align: top;
}
.ttd-space {
  height: 22mm;
}
.ttd-space-sskk {
  height: 29.0mm;
}
.sskk-page .ttd {
  font-family: var(--lucida);
  font-size: 11pt;
  line-height: 17.0pt;
}
.sskk-page .ttd p {
  margin: 0;
  line-height: 17.0pt;
}

/* Blok Tanda Tangan Tunggal Rata Kanan */
.ttd-kanan {
  width: 90mm;
  margin-left: auto;
  text-align: center;
  margin-top: 10px;
}
.ttd-kanan p {
  margin: 0;
  text-align: center;
}

/* =========================================================
   6. HALAMAN 6 - 8: FORMAT SPK
   ========================================================= */
.spk-page {
  font-family: var(--lucida);
  font-size: 11pt;
  line-height: 1.54;
}
.kop-p6 {
  position: absolute;
  left: 0.41mm;
  top: -2.72mm;
  width: 214.49mm;
  height: 42.19mm;
}
.badan-spk-p1 {
  position: absolute;
  left: 25.4mm;
  top: 38.5mm;
  width: 159.09mm;
  font-family: var(--lucida);
}
.badan-spk-cont {
  position: absolute;
  left: 25.4mm;
  top: 25.4mm;
  width: 159.1mm;
}
.tbl-spk {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 0.5pt solid #000;
}
.tbl-spk td {
  border: 0.5pt solid #000;
  padding: 0;
  vertical-align: top;
}
.tbl-spk td.v-mid {
  vertical-align: middle !important;
}
.spk-title-box {
  font-size: 11pt;
  font-weight: bold;
  text-align: center;
  margin: 0;
  line-height: 16.8pt;
}
.spk-cell-hdr { font-size: 12pt; font-weight: bold; }
.spk-bold { font-weight: bold; }
.spk-grid-meta {
  display: grid;
  grid-template-columns: 36mm 4mm 1fr;
  row-gap: 2px;
  font-size: 10pt;
}
.spk-note { font-size: 11pt; margin-top: 0; }
.hierarki-list {
  display: grid;
  grid-template-columns: 5mm 1fr;
  row-gap: 2px;
  margin-top: 4px;
}

.tbl-spk-p6 {
  max-height: 260mm;
}
.tbl-spk-p6 td.col-r {
  padding-left: 2.03mm !important;
  padding-right: 0.56mm !important;
}
.tbl-spk-p6 tr:nth-child(1) td { height: 19.67mm; }
.tbl-spk-p6 tr:nth-child(2) td { height: 32.73mm; }
.tbl-spk-p6 tr:nth-child(3) td, .tbl-spk-p6 tr.r2 td { min-height: 90mm; }
.tbl-spk-p6 tr:nth-child(4) td, .tbl-spk-p6 tr.r3 td { min-height: 50mm; }
.tbl-spk-p6 tr:nth-child(5) td { height: 29.99mm; }

.p-r0 {
  margin: 0;
  padding: 0;
  font-size: 12pt;
  line-height: 18.5pt;
}
.p-r1 {
  margin: 0;
  padding: 0;
  font-size: 12pt;
  line-height: 1.36;
}
.p-r2 {
  margin: 0;
  padding: 0;
  font-size: 11pt;
  line-height: 1.33;
}
.p-r3 {
  margin: 0;
  padding: 0;
  font-size: 11pt;
  line-height: 1.33;
}
.p-r4 {
  margin: 0;
  padding: 0;
  font-size: 11pt;
  line-height: 1.33;
}
.line-meta {
  display: flex;
  align-items: baseline;
}

.tbl-spk-p7 td {
  border: 0.5pt solid #000;
  padding: 1.5pt 5.4pt 1.5pt 5.8pt;
  vertical-align: top;
  box-sizing: border-box;
  font-family: var(--lucida);
  font-size: 11pt;
  line-height: 17.0pt;
}

.tbl-spk-p7 tr:nth-child(1) td { height: 29.99mm; }
.tbl-spk-p7 tr:nth-child(2) td { height: 24.08mm; }
.tbl-spk-p7 tr:nth-child(3) td { height: 35.91mm; }
.tbl-spk-p7 tr:nth-child(4) td { height: 6.17mm; }
.tbl-spk-p7 tr:nth-child(5) td { height: 89.62mm; }
.tbl-spk-p7 tr:nth-child(6) td { height: 27.26mm; }
.tbl-spk-p7 tr:nth-child(7) td { height: 12.09mm; }
.tbl-spk-p7 tr:nth-child(8) td { height: 53.90mm; }

.spk-grid-meta-p7 {
  display: grid;
  grid-template-columns: 18.1mm 3.0mm 1fr;
  row-gap: 0;
  font-size: 11pt;
  line-height: 17.0pt;
}

.spk-dok-item {
  display: grid;
  grid-template-columns: 21.2pt 1fr;
  margin-left: 15.8pt;
  line-height: 17.0pt;
}

.spk-sistem-bayar {
  margin-left: 5.9pt;
  margin-right: 0;
  text-align: justify;
  text-justify: inter-word;
  line-height: 17.0pt;
}

.tbl-spk-p8 td {
  border: 0.5pt solid #000;
  padding: 0;
  vertical-align: top;
  box-sizing: border-box;
  font-family: var(--lucida);
}

.tbl-spk-p8 tr:nth-child(1) td {
  height: 50.37mm;
  padding: 9.35mm 2.6pt 0 5.8pt !important;
}

.tbl-spk-p8 tr:nth-child(2) td {
  height: 68.64mm;
  padding: 0.5pt 2.6pt 0 5.8pt !important;
}

.tbl-spk-p8 tr:nth-child(3) td {
  height: 29.82mm;
  padding: 2.0pt 5.4pt 0 5.8pt !important;
}

.spk-num-grid {
  display: grid;
  grid-template-columns: 17.8pt 1fr;
  font-size: 11pt;
  line-height: 19.5pt;
}

.spk-num-grid .num {
  font-family: var(--lucida);
  font-size: 11pt;
  line-height: 19.5pt;
}

.spk-num-grid .txt {
  font-family: var(--lucida);
  font-size: 11pt;
  line-height: 19.5pt;
  text-align: justify;
  text-justify: inter-word;
}

.spk-p8-r2-hdr {
  font-size: 11pt;
  font-weight: bold;
  line-height: 17.0pt;
}

.spk-p8-r2-txt {
  font-size: 11pt;
  line-height: 17.0pt;
}

/* =========================================================
   7. HALAMAN 9 - 15: SSKK & INSTRUKSI
   ========================================================= */
.sskk-page {
  font-family: var(--lucida);
  font-size: 11pt;
  line-height: 17.0pt;
}
.sskk-box {
  position: absolute;
  left: 72.0pt;
  top: 72.0pt;
  width: 451.0pt;
  height: 778.2pt;
  border: 0.5pt solid #000;
  box-sizing: border-box;
  padding: 1.0pt 5.8pt 6.5pt 5.8pt;
  font-family: var(--lucida);
  font-size: 11pt;
  line-height: 17.0pt;
  color: #000;
}
.sskk-box p {
  margin: 0;
  line-height: 17.0pt;
}
.sskk-grid-list {
  display: grid;
  line-height: 17.0pt;
  row-gap: 0;
}
.sskk-instruksi-tbl {
  position: absolute;
  left: 72.0pt;
  top: 72.0pt;
  width: 451.0pt;
  border-collapse: collapse;
  border: 0.5pt solid #000;
  font-family: var(--lucida);
  font-size: 11pt;
  line-height: 17.0pt;
  box-sizing: border-box;
}
.sskk-instruksi-tbl p {
  margin: 0;
  line-height: 17.0pt;
}
.instruksi-cell {
  border-bottom: 0.5pt solid #000;
  padding: 6.5pt 5.8pt 6.5pt 5.8pt;
  height: 184.1pt;
  vertical-align: top;
  box-sizing: border-box;
}
.instruksi-ttd-left {
  width: 226.4pt;
  border-right: 0.5pt solid #000;
  vertical-align: top;
  text-align: center;
  padding: 6.5pt 5.8pt;
  box-sizing: border-box;
}
.instruksi-ttd-right {
  width: 224.6pt;
  vertical-align: top;
  text-align: center;
  padding: 6.5pt 5.8pt;
  box-sizing: border-box;
}
.sskk-space-p11 {
  height: 25.5mm;
}
.sskk-space-p14 {
  height: 17.5mm;
}
.sskk-materai {
  position: absolute;
  width: 87.85pt;
  height: 65.15pt;
  border: 1px solid #d9d9d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-style: italic;
  font-size: 9pt;
  color: #bfbfbf;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}
.sskk-materai span {
  display: block;
}

/* =========================================================
   8. HALAMAN 16 - 32: SSUK (SYARAT UMUM KONTRAK)
   ========================================================= */
.ssuk-page {
  font-family: 'Lucida Sans Unicode', 'Lucida Grande', Arial, sans-serif;
  font-size: 12.0pt;
  line-height: 18.45pt;
  color: #000;
}
.box-ssuk-head {
  position: absolute;
  left: 50.5pt;
  top: 97.5pt;
  width: 503.3pt;
  height: 68.5pt;
  border: 0.5pt solid #000;
  border-bottom: none;
  text-align: center;
  font-size: 16.0pt;
  line-height: 24.0pt;
  font-weight: bold;
  padding-top: 10.0pt;
  box-sizing: border-box;
}
.box-ssuk-body {
  position: absolute;
  left: 50.5pt;
  top: 166.0pt;
  width: 503.3pt;
  height: 695.7pt;
  border: 0.5pt solid #000;
  padding: 1.0pt 2.0pt 0 5.5pt;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 12.0pt;
  line-height: 18.45pt;
  text-align: justify;
}
.box-ssuk-page {
  position: absolute;
  left: 50.5pt;
  top: 72.0pt;
  width: 503.3pt;
  height: 777.0pt;
  border: 0.5pt solid #000;
  padding: 1.0pt 2.0pt 0 5.5pt;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 12.0pt;
  line-height: 18.45pt;
  text-align: justify;
}
.box-ssuk-page.page-32-box {
  height: 355.0pt;   /* SSUK selesai di y=422.9 pt (350.9 pt dari border atas) */
}

/* Level 1: Judul Pasal (e.g. 1. LINGKUP PEKERJAAN) */
.ssuk-pasal {
  font-weight: bold;
  margin: 18.45pt 0 0 22.8pt;
  text-indent: -22.8pt;
  text-align: justify;
}
.box-ssuk-body > .ssuk-pasal:first-child,
.box-ssuk-page > .ssuk-pasal:first-child {
  margin-top: 0;
}
.ssuk-pasal > .m-pasal {
  display: inline-block;
  width: 22.8pt;
  text-indent: 0;
}
.ssuk-pasal-cont {
  font-weight: bold;
  margin: 0 0 0 22.8pt;
  text-indent: 0;
  text-align: justify;
}

/* Level 1.5: Paragraf langsung di bawah Pasal */
.ssuk-p-pasal {
  margin: 0 0 0 22.8pt;
  text-indent: 0;
  text-align: justify;
}

/* Level 2: Sub-item dengan marker (a., b., c.) */
.ssuk-sub {
  margin: 0 0 0 44.1pt;
  text-indent: -18.1pt;
  text-align: justify;
}
.ssuk-sub > .m-sub {
  display: inline-block;
  width: 18.1pt;
  text-indent: 0;
}

/* Level 2: Paragraf lanjutan di bawah sub */
.ssuk-sub-p {
  margin: 0 0 0 44.1pt;
  text-indent: 0;
  text-align: justify;
}

/* Level 3: Sub-sub-item dengan marker (1), 2)) */
.ssuk-subsub {
  margin: 0 0 0 58.8pt;
  text-indent: -18.0pt;
  text-align: justify;
}
.ssuk-subsub > .m-subsub {
  display: inline-block;
  width: 18.0pt;
  text-indent: 0;
}

/* Level 3: Paragraf lanjutan di bawah subsub */
.ssuk-subsub-p {
  margin: 0 0 0 58.8pt;
  text-indent: 0;
  text-align: justify;
}

/* Level 3.5: Sub-sub-sub-item dengan marker ((a), (b)) */
.ssuk-subsubsub {
  margin: 0 0 0 82.0pt;
  text-indent: -20.0pt;
  text-align: justify;
}
.ssuk-subsubsub > .m-subsubsub {
  display: inline-block;
  width: 20.0pt;
  text-indent: 0;
}

/* Level 4: Penomoran Romawi (i., ii. atau II., III.) */
.ssuk-roman {
  margin: 0 0 0 58.8pt;
  text-indent: -18.0pt;
  text-align: justify;
}
.ssuk-roman > .m-roman {
  display: inline-block;
  width: 18.0pt;
  text-indent: 0;
}

/* Bullet item (-) */
.ssuk-bullet {
  margin: 0 0 0 58.8pt;
  text-indent: -12.0pt;
  text-align: justify;
}
.ssuk-bullet > .m-bullet {
  display: inline-block;
  width: 12.0pt;
  text-indent: 0;
}

/* =========================================================
   9, 10, 11, 12: SPPBJ, BA RPPK, UNDANGAN, PERMOHONAN
   ========================================================= */
.sppbj-page .judul {
  margin: 18.5mm 0 2.5mm;
  font-size: 14pt;
  font-weight: 700;
  text-decoration: underline;
}
.sppbj-page .meta-grid,
.undangan-page .meta-row {
  display: grid;
  grid-template-columns: 18mm 4mm 1fr;
  row-gap: 2px;
}
.sppbj-page .meta-perihal {
  display: grid;
  grid-template-columns: 18mm 4mm 1fr;
  margin-top: 3.5mm;
}

.tgl-surat-kanan {
  text-align: right;
  margin-top: 19mm;
  margin-bottom: 4px;
}
.undangan-page .tgl-surat-kanan {
  margin-top: 19.2mm;
  margin-bottom: 4px;
}
.permohonan-page {
  font-size: 10.5pt;
  line-height: 1.1;
}
.permohonan-page .tgl-surat-kanan {
  margin-top: 16.0mm;
  margin-bottom: 4px;
}
.bapl-page .judul {
  margin: 17.5mm 0 0;
}
.barppk-page .judul {
  margin: 19.5mm 0 0;
}

/* Page 34 BA RPPK colons align at exactly 35mm */
.barppk-page .tab {
  display: grid;
  grid-template-columns: 35mm 4mm 1fr;
}
.barppk-page .pihak-entry {
  display: grid;
  grid-template-columns: 5mm 30mm 4mm 1fr;
  row-gap: 2px;
  margin-bottom: 2px;
}
.barppk-points {
  margin: 3mm 0 3mm 6.4mm;
}
.barppk-points > div {
  display: grid;
  grid-template-columns: 6.4mm 1fr;
  margin-bottom: 2px;
}

/* Page 35 Undangan */
.undangan-head-grid {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 9mm;
  margin-bottom: 6px;
}
.uh-meta { flex: 1.15; }
.uh-tujuan { flex: 0.85; text-align: left; }
.undangan-agenda {
  margin: 3.5mm 0;
}
.undangan-agenda > div {
  display: grid;
  grid-template-columns: 24mm 4mm 1fr;
  margin-bottom: 2px;
}

/* Page 36 Permohonan */
.permohonan-head-meta {
  display: grid;
  grid-template-columns: 18mm 4mm 1fr;
  row-gap: 2px;
  margin-top: 2.5mm;
  margin-bottom: 2.5mm;
}
.permohonan-tujuan {
  margin: 2mm 0 2.5mm 0;
}
.permohonan-perihal {
  display: grid;
  grid-template-columns: 18mm 4mm 1fr;
  margin-bottom: 3mm;
}
.permohonan-berdasarkan p {
  margin-bottom: 2px;
}
.tbl-hps {
  width: calc(100% + 15.5mm);
  margin: 4mm 0 3mm -7.75mm;
  font-size: 9.5pt;
  border-collapse: collapse;
}
.tbl-hps th, .tbl-hps td {
  border: 1px solid #000;
  padding: 3px 5px;
}
.permohonan-points {
  margin: 3mm 0 3mm 0;
}
.permohonan-points > div {
  display: grid;
  grid-template-columns: 6.35mm 1fr;
  margin-bottom: 2px;
}

.tembusan { font-size: 9pt; margin-top: 10px; }

/* =========================================================
   MODAL DATABASE PPK & TOAST NOTIFIKASI
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.2s ease-out;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1f2937;
}
.modal-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #f9fafb;
}
.modal-header-text .modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.modal-header-text .modal-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}
.modal-close:hover {
  color: #111827;
  background: #e5e7eb;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover {
  background: #e5e7eb;
  color: #111827;
}
.tab-btn.active {
  background: #ffffff;
  color: #1f5fbf;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tab-pane {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
#ppk-search {
  flex: 1;
  min-width: 250px;
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
}
#ppk-search:focus {
  border-color: #1f5fbf;
  box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.15);
}
.active-badge-info {
  font-size: 13px;
  color: #4b5563;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 6px;
}
.active-badge-info b {
  color: #1d4ed8;
}

.table-responsive {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.db-table th {
  background: #f9fafb;
  padding: 10px 14px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}
.db-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  vertical-align: middle;
}
.db-table tr:hover td {
  background: #f9fafb;
}
.db-table tr.active-row td {
  background: #eff6ff;
  font-weight: 500;
}
.badge-active {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}
.btn-pilih {
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #1f5fbf;
  border-radius: 5px;
  background: #1f5fbf;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-pilih:hover {
  background: #164692;
}
.btn-pilih.is-current {
  background: #10b981;
  border-color: #10b981;
  cursor: default;
}

.sql-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  color: #94a3b8;
  padding: 8px 16px;
  font-size: 13px;
  font-family: monospace;
  border-radius: 8px 8px 0 0;
}
.btn-copy {
  background: #334155;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.btn-copy:hover {
  background: #475569;
}
.sql-code {
  margin: 0;
  padding: 16px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  max-height: 380px;
  overflow: auto;
  border-radius: 0 0 8px 8px;
}

.deploy-guide {
  font-size: 14px;
  line-height: 1.6;
}
.deploy-guide h4 {
  margin: 16px 0 6px;
  font-size: 15px;
  color: #0f172a;
}
.deploy-guide h4:first-child {
  margin-top: 0;
}
.deploy-guide p {
  margin: 4px 0 8px;
  color: #4b5563;
}
.bash-code {
  background: #1e293b;
  color: #38bdf8;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 8px 0 16px;
}

.modal-footer {
  padding: 14px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.modal-tip {
  font-size: 13px;
  color: #6b7280;
}
.btn-close-modal {
  padding: 7px 18px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn-close-modal:hover {
  background: #f3f4f6;
}

.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  background: #111827;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  animation: slideUpToast 0.2s ease-out;
}
@keyframes slideUpToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   ATURAN CETAK (PRINT MEDIA STYLESHEET)
   ========================================================= */
@page {
  size: 215.9mm 330mm;
  margin: 0;
}

@media print {
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .toolbar, .no-print, .modal-backdrop, .toast-box {
    display: none !important;
  }
  .kertas {
    width: var(--pw) !important;
    height: calc(var(--ph) - 0.6mm) !important;
    margin: 0 !important;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
  }
  .kertas:last-of-type {
    break-after: auto;
    page-break-after: auto;
  }
  .lembar {
    zoom: var(--sp) !important;
  }
  u, ins, .underline, .judul, .judul-sskk {
    text-decoration: underline !important;
    text-decoration-skip-ink: none !important;
    -webkit-text-decoration-skip: none !important;
    text-underline-offset: 1.5px !important;
  }
}
