/* =========================================================
   LAYANAN ADMINISTRASI CTAS — ARTIKEL V2
   Semua komponen khusus memakai prefix ctas- agar tidak
   berbenturan dengan artikel-editorial.css.
   ========================================================= */

.ctas-article,
.ctas-article * {
  font-family: inherit;
}

/* Cara menggunakan */
.ctas-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 34px;
}

.ctas-step {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--soft-gray);
  border-radius: 22px;
  background: var(--white);
}

.ctas-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--near-black);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ctas-step p {
  margin: 0 !important;
  color: #6e6e73 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Bagian tabel */
.ctas-table-section {
  margin: 74px 0 38px;
  scroll-margin-top: 86px;
}

.ctas-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ctas-section-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.ctas-table-heading h2 {
  margin: 0 0 15px !important;
}

.ctas-table-heading p {
  max-width: 760px;
  margin: 0 !important;
  color: #515154 !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* Filter */
.ctas-filter-panel {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.7fr)
    minmax(150px, 0.7fr)
    minmax(190px, 0.8fr)
    auto;
  gap: 12px;
  margin: 27px 0 14px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(20, 43, 76, 0.06);
}

.ctas-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ctas-field label {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.ctas-field input,
.ctas-field select {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 13px;
  background: var(--white);
  color: var(--near-black);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.ctas-field input:focus,
.ctas-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.ctas-reset-button {
  min-height: 45px;
  align-self: end;
  padding: 10px 15px;
  border: 1px solid #d2d2d7;
  border-radius: 13px;
  background: var(--white);
  color: #424245;
  cursor: pointer;
  font-weight: 600;
}

.ctas-reset-button:hover {
  background: #f5f5f7;
}

.ctas-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 14px;
  color: #6e6e73;
  font-size: 13px;
}

.ctas-result-line strong {
  color: var(--near-black);
}

/* =========================================================
   TABEL — RESET KHUSUS
   ========================================================= */
.ctas-table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(20, 43, 76, 0.08);
  -webkit-overflow-scrolling: touch;
}

.article-body .ctas-service-table {
  width: 100% !important;
  min-width: 1040px !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: #fff !important;
}

.article-body .ctas-service-table thead {
  display: table-header-group !important;
}

.article-body .ctas-service-table tbody {
  display: table-row-group !important;
  padding: 0 !important;
  background: #fff !important;
}

.article-body .ctas-service-table tr,
.article-body .ctas-service-table tbody tr,
.article-body .ctas-service-table tbody tr:nth-child(odd),
.article-body .ctas-service-table tbody tr:nth-child(even),
.article-body .ctas-service-table tbody tr:hover {
  display: table-row !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.article-body .ctas-service-table th,
.article-body .ctas-service-table td,
.article-body .ctas-service-table tbody tr:nth-child(odd) td,
.article-body .ctas-service-table tbody tr:nth-child(even) td,
.article-body .ctas-service-table tbody tr:hover td {
  display: table-cell !important;
  min-width: 0 !important;
  padding: 14px 15px !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid #e8e8ed !important;
  border-bottom: 1px solid #e8e8ed !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #515154 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.55 !important;
  letter-spacing: normal !important;
  text-align: left !important;
  text-transform: none !important;
  vertical-align: top !important;
  overflow-wrap: anywhere;
}

.article-body .ctas-service-table thead th {
  background: #111113 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.035em !important;
  text-transform: uppercase !important;
}

.article-body .ctas-service-table th:first-child {
  border-top-left-radius: 21px !important;
}

.article-body .ctas-service-table th:last-child {
  border-top-right-radius: 21px !important;
}

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

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

.article-body .ctas-service-table th:nth-child(1),
.article-body .ctas-service-table td:nth-child(1) {
  width: 12% !important;
}

.article-body .ctas-service-table th:nth-child(2),
.article-body .ctas-service-table td:nth-child(2) {
  width: 29% !important;
}

.article-body .ctas-service-table th:nth-child(3),
.article-body .ctas-service-table td:nth-child(3) {
  width: 29% !important;
}

.article-body .ctas-service-table th:nth-child(4),
.article-body .ctas-service-table td:nth-child(4) {
  width: 30% !important;
}

.article-body .ctas-service-table .ctas-service-name {
  color: var(--near-black) !important;
  font-weight: 650 !important;
}

.article-body .ctas-service-table .ctas-timeline-cell {
  color: #424245 !important;
}

.article-body .ctas-service-table .ctas-legal-cell {
  color: #6e6e73 !important;
}

.ctas-code {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ctas-legal-list {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  padding-left: 17px !important;
  color: inherit !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.article-body .ctas-legal-list li,
.article-body .ctas-legal-list li + li {
  margin: 0 !important;
  padding-left: 2px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.ctas-legal-list li::marker {
  color: var(--blue);
  font-size: 0.9em;
}

.ctas-source-struck {
  display: block;
  color: #86868b;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.ctas-service-separator {
  display: block;
  height: 12px;
}

/* Empty state */
.ctas-empty-state {
  display: none;
  margin-top: 14px;
  padding: 30px;
  border: 1px dashed #c7c7cc;
  border-radius: 20px;
  background: var(--white);
  color: #6e6e73;
  text-align: center;
}

.ctas-empty-state.visible {
  display: block;
}

/* Catatan */
.ctas-callout {
  margin: 32px 0;
  padding: 23px 25px;
  border-radius: 22px;
}

.ctas-callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.ctas-callout p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.58 !important;
}

.ctas-callout-orange {
  border: 1px solid #f2dfbd;
  background: #fff7e8;
  color: #6d4b14;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .ctas-filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .ctas-steps,
  .ctas-filter-panel {
    grid-template-columns: 1fr;
  }

  .ctas-reset-button {
    width: 100%;
  }

  .ctas-result-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .ctas-table-wrapper {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .article-body .ctas-service-table {
    min-width: 0 !important;
    table-layout: auto !important;
    background: transparent !important;
  }

  .article-body .ctas-service-table thead {
    display: none !important;
  }

  .article-body .ctas-service-table tbody {
    display: grid !important;
    gap: 13px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .article-body .ctas-service-table tr,
  .article-body .ctas-service-table tbody tr,
  .article-body .ctas-service-table tbody tr:nth-child(odd),
  .article-body .ctas-service-table tbody tr:nth-child(even),
  .article-body .ctas-service-table tbody tr:hover {
    display: block !important;
    overflow: hidden !important;
    border: 1px solid var(--soft-gray) !important;
    border-radius: 19px !important;
    background: #fff !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.055) !important;
  }

  .article-body .ctas-service-table td,
  .article-body .ctas-service-table tbody tr:nth-child(odd) td,
  .article-body .ctas-service-table tbody tr:nth-child(even) td,
  .article-body .ctas-service-table tbody tr:hover td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 15px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--soft-gray) !important;
    background: #fff !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .article-body .ctas-service-table td::before {
    display: block !important;
    margin-bottom: 5px;
    color: var(--medium-gray);
    content: attr(data-label) !important;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .article-body .ctas-service-table td:first-child {
    background: #f7fbff !important;
  }

  .article-body .ctas-service-table td:last-child {
    border-bottom: 0 !important;
  }

  .ctas-legal-list,
  .article-body .ctas-legal-list li {
    font-size: 13px !important;
  }
}

@media print {
  .ctas-filter-panel,
  .ctas-result-line {
    display: none !important;
  }

  .ctas-table-wrapper {
    overflow: visible;
    box-shadow: none;
  }

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

  .article-body .ctas-service-table thead th {
    background: #eee !important;
    color: #000 !important;
  }

  .article-body .ctas-service-table td {
    font-size: 10px !important;
  }
}
