/* =========================================================
   KABAYAN — SKB HIBAH
   Tabel khusus artikel.
   Sengaja TIDAK memakai .jk-tariff-table agar tidak mewarisi
   aturan tabel jasa konstruksi 3 kolom.
   ========================================================= */

.article-body .kb-table-shell {
  width: 100%;
  margin: 24px 0 30px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dedfe3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 43, 76, 0.06);
}

.article-body .kb-table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: #ffffff !important;
}

.article-body .kb-table thead,
.article-body .kb-table tbody,
.article-body .kb-table tr {
  display: table-header-group;
}

.article-body .kb-table tbody {
  display: table-row-group;
}

.article-body .kb-table tr {
  display: table-row;
}

.article-body .kb-table th,
.article-body .kb-table td {
  display: table-cell !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 17px 20px !important;
  border-right: 1px solid #dedfe3 !important;
  border-bottom: 1px solid #dedfe3 !important;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif !important;
  font-size: 14px !important;
  line-height: 1.42 !important;
  letter-spacing: -0.005em !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.article-body .kb-table th:last-child,
.article-body .kb-table td:last-child {
  border-right: 0 !important;
}

.article-body .kb-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.article-body .kb-table thead th {
  background: #f4f4f6 !important;
  color: #424247 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.055em !important;
  text-transform: uppercase !important;
}

.article-body .kb-table tbody td {
  background: #ffffff !important;
  color: #404044 !important;
  font-weight: 450 !important;
}

.article-body .kb-table tbody tr:nth-child(even) td {
  background: #fafbfc !important;
}

.article-body .kb-table tbody tr:hover td {
  background: #f6f9fc !important;
}

/* Kolom pertama sedikit lebih tegas, ukuran font tetap sama */
.article-body .kb-table tbody td:first-child {
  color: #252529 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}

/* =========================================================
   MATRIKS KELUARGA
   Dibuat muat satu baris pada desktop.
   ========================================================= */

.article-body .kb-table-family {
  min-width: 0 !important;
}

.article-body .kb-table-family th:nth-child(1),
.article-body .kb-table-family td:nth-child(1) {
  width: 18% !important;
}

.article-body .kb-table-family th:nth-child(2),
.article-body .kb-table-family td:nth-child(2) {
  width: 18% !important;
}

.article-body .kb-table-family th:nth-child(3),
.article-body .kb-table-family td:nth-child(3) {
  width: 40% !important;
}

.article-body .kb-table-family th:nth-child(4),
.article-body .kb-table-family td:nth-child(4) {
  width: 24% !important;
  text-align: center !important;
}

.article-body .kb-table-family tbody td {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

.article-body .kb-table-family tbody td:nth-child(3) {
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* Status pill seperti referensi */
.article-body .kb-pill {
  display: inline-flex !important;
  min-width: 68px;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.article-body .kb-pill-yes {
  background: #e5f6ed !important;
  color: #158653 !important;
}

.article-body .kb-pill-no {
  background: #fff0eb !important;
  color: #c53122 !important;
}

/* =========================================================
   TABEL DUA KOLOM
   ========================================================= */
.article-body .kb-table-two th:nth-child(1),
.article-body .kb-table-two td:nth-child(1) {
  width: 30% !important;
}

.article-body .kb-table-two th:nth-child(2),
.article-body .kb-table-two td:nth-child(2) {
  width: 70% !important;
}

/* =========================================================
   KONDISI ISTRI
   ========================================================= */
.article-body .kb-table-wife th:nth-child(1),
.article-body .kb-table-wife td:nth-child(1) {
  width: 28% !important;
}

.article-body .kb-table-wife th:nth-child(2),
.article-body .kb-table-wife td:nth-child(2) {
  width: 35% !important;
}

.article-body .kb-table-wife th:nth-child(3),
.article-body .kb-table-wife td:nth-child(3) {
  width: 37% !important;
}

/* =========================================================
   HIBAH VS WARIS
   ========================================================= */
.article-body .kb-table-warisan th:nth-child(1),
.article-body .kb-table-warisan td:nth-child(1) {
  width: 22% !important;
}

.article-body .kb-table-warisan th:nth-child(2),
.article-body .kb-table-warisan td:nth-child(2),
.article-body .kb-table-warisan th:nth-child(3),
.article-body .kb-table-warisan td:nth-child(3) {
  width: 39% !important;
}

/* Catatan bawah tabel */
.article-body .kb-table-note {
  margin: 12px 2px 0 !important;
  color: #6b6b70 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

/* =========================================================
   TABLET & MOBILE
   Tidak diubah menjadi card. Tetap tabel + scroll horizontal.
   ========================================================= */
@media (max-width: 860px) {
  .article-body .kb-table-shell {
    border-radius: 16px;
  }

  .article-body .kb-table-family {
    min-width: 760px !important;
  }

  .article-body .kb-table-wife {
    min-width: 760px !important;
  }

  .article-body .kb-table-warisan {
    min-width: 760px !important;
  }

  .article-body .kb-table-two {
    min-width: 620px !important;
  }

  .article-body .kb-table th,
  .article-body .kb-table td,
  .article-body .kb-table tbody td:first-child,
  .article-body .kb-table-family tbody td:nth-child(3) {
    font-size: 13px !important;
    padding: 14px 16px !important;
  }

  .article-body .kb-table thead th {
    font-size: 12px !important;
  }

  .article-body .kb-pill {
    min-width: 62px;
    padding: 6px 14px;
    font-size: 13px !important;
  }
}

@media (max-width: 520px) {
  .article-body .kb-table-shell {
    margin: 20px 0 26px;
  }

  .article-body .kb-table-family {
    min-width: 720px !important;
  }
}

@media print {
  .article-body .kb-table-shell {
    overflow: visible !important;
    box-shadow: none !important;
  }

  .article-body .kb-table {
    min-width: 0 !important;
  }
}

/* =========================================================
   VISUAL ARTIKEL — SKB HIBAH
   ========================================================= */

.article-body .kb-article-visual {
  margin: 0;
}

.article-body .kb-article-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body .kb-article-visual-hero {
  margin: 8px 0 34px;
  overflow: hidden;
  border: 1px solid #e7e9ed;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(20, 43, 76, 0.07);
}

.article-body .kb-article-visual-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


@media (max-width: 760px) {
  .article-body .kb-article-visual-hero {
    margin: 4px 0 28px;
    border-radius: 20px;
  }

}

@media print {
  .article-body .kb-article-visual-hero {
    box-shadow: none !important;
  }
}

/* =========================================================
   PRINT CHECKLIST ONLY
   ========================================================= */

@media print {
  body.kb-print-checklist * {
    visibility: hidden !important;
  }

  body.kb-print-checklist #cek-sebelum-ajukan,
  body.kb-print-checklist #cek-sebelum-ajukan * {
    visibility: visible !important;
  }

  body.kb-print-checklist #cek-sebelum-ajukan {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.kb-print-checklist .kb-ref-checklist-heading {
    margin-bottom: 16px !important;
  }

  body.kb-print-checklist .jk-section-label,
  body.kb-print-checklist .kb-ref-actions {
    display: none !important;
  }

  body.kb-print-checklist .kb-ref-checklist {
    border: 1px solid #bfc2c7 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.kb-print-checklist .kb-ref-summary {
    background: #ffffff !important;
  }

  body.kb-print-checklist .kb-ref-progress {
    border: 1px solid #d5d8dc !important;
    background: #ffffff !important;
  }

  body.kb-print-checklist .kb-ref-progress-bar {
    background: #555555 !important;
  }

  body.kb-print-checklist .kb-ref-group {
    break-inside: avoid;
  }

  body.kb-print-checklist .kb-ref-na {
    border-color: #bfc2c7 !important;
  }

  @page {
    size: A4;
    margin: 16mm 14mm;
  }
}

/* =========================================================
   CHECKLIST SKB HIBAH — FINAL
   Satu panel, progress di atas, grup A-D, baris checkbox sederhana.
   ========================================================= */

.article-body .kb-checklist-section { margin-top: 46px; }

.article-body .kb-checklist-heading { margin-bottom: 24px; }

.article-body .kb-checklist-heading h2 { margin: 0 0 12px !important; }

.article-body .kb-checklist-heading p {
  margin: 0 !important;
  max-width: 900px;
  color: #55565b !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
}

.article-body .kb-checklist-panel {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(22, 42, 70, 0.05);
}

.article-body .kb-checklist-top {
  padding: 24px 26px 25px;
  border-bottom: 1px solid #e0e3e7;
  background:
    radial-gradient(circle at 94% 2%, rgba(222, 236, 255, 0.92) 0%, rgba(222, 236, 255, 0.18) 36%, transparent 62%),
    #ffffff;
}

.article-body .kb-checklist-count {
  display: block;
  margin: 0 0 14px;
  color: #55565b;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 750 !important;
}

.article-body .kb-checklist-progress {
  height: 7px;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf6;
}

.article-body .kb-checklist-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #1474ee;
  transition: width 180ms ease;
}

.article-body .kb-checklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-body .kb-checklist-button {
  appearance: none;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 17px;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 650;
  cursor: pointer;
}

.article-body .kb-checklist-reset {
  border: 1.5px solid #0874ef;
  color: #0868d8;
}

.article-body .kb-checklist-reset:hover { background: #f3f8ff; }

.article-body .kb-checklist-print {
  border: 1.5px solid #18865b;
  color: #16734f;
}

.article-body .kb-checklist-print:hover { background: #f2faf6; }

.article-body .kb-checklist-group {
  margin: 0;
  padding: 22px 26px 20px;
  border-bottom: 1px solid #e0e3e7;
}

.article-body .kb-checklist-group h3 {
  margin: 0 0 13px !important;
  color: #27272b;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 750 !important;
}

.article-body .kb-checklist-row {
  position: relative;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 9px 0 !important;
  color: #53545a !important;
  cursor: pointer;
}

.article-body .kb-checklist-row > span:last-child {
  display: block;
  font-size: 13.5px !important;
  line-height: 1.52 !important;
  font-weight: 430 !important;
}

.article-body .kb-check-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.article-body .kb-check-box {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  box-sizing: border-box;
  margin-top: 1px;
  border: 1.35px solid #9da1a7;
  border-radius: 5px;
  background: #ffffff;
}

.article-body .kb-checklist-row:hover .kb-check-box { border-color: #1474ee; }

.article-body .kb-check-input:checked + .kb-check-box {
  border-color: #16895c;
  background: #16895c;
}

.article-body .kb-check-input:checked + .kb-check-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.article-body .kb-checklist-row:has(.kb-check-input:checked) > span:last-child {
  color: #176e4f !important;
}

.article-body .kb-checklist-note {
  padding: 17px 26px 20px;
  background: #fafbfc;
}

.article-body .kb-checklist-note strong {
  display: block;
  margin: 0 0 4px;
  color: #55565b;
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-body .kb-checklist-note p {
  margin: 0 !important;
  color: #77787d !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

@media (max-width: 700px) {
  .article-body .kb-checklist-panel { border-radius: 16px; }

  .article-body .kb-checklist-top,
  .article-body .kb-checklist-group,
  .article-body .kb-checklist-note {
    padding-left: 17px;
    padding-right: 17px;
  }

  .article-body .kb-checklist-group {
    padding-top: 19px;
    padding-bottom: 17px;
  }

  .article-body .kb-checklist-row > span:last-child {
    font-size: 13px !important;
  }

  .article-body .kb-checklist-button {
    min-height: 36px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 12px;
  }
}

@media print {
  body.kb-print-checklist * { visibility: hidden !important; }

  body.kb-print-checklist #cek-sebelum-ajukan,
  body.kb-print-checklist #cek-sebelum-ajukan * {
    visibility: visible !important;
  }

  body.kb-print-checklist #cek-sebelum-ajukan {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.kb-print-checklist .jk-section-label,
  body.kb-print-checklist .kb-checklist-actions {
    display: none !important;
  }

  body.kb-print-checklist .kb-checklist-panel {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.kb-print-checklist .kb-checklist-top {
    background: #ffffff !important;
  }

  body.kb-print-checklist .kb-checklist-group { break-inside: avoid; }

  @page {
    size: A4;
    margin: 15mm 14mm;
  }
}

