.tatib-hero {
  margin: 0 clamp(16px, 3vw, 30px);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 28px);
  background:
    radial-gradient(circle at 92% 14%, rgba(191, 219, 254, 0.5), transparent 24%),
    linear-gradient(145deg, #102339 0%, #0f6cbd 100%);
  color: #f8fbff;
  display: grid;
  grid-template-columns: 1fr minmax(250px, 340px);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
}

.tatib-hero-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tatib-kicker {
  display: inline-block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bfdbfe;
  font-weight: 600;
}

.tatib-hero-copy p {
  margin: 14px 0 0;
  color: rgba(248, 251, 255, 0.9);
  line-height: 1.7;
  max-width: 62ch;
}

.tatib-hero-stats {
  border: 1px solid rgba(191, 219, 254, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.tatib-hero-stats article {
  border-radius: 12px;
  border: 1px solid rgba(191, 219, 254, 0.28);
  background: rgba(248, 250, 252, 0.07);
  padding: 10px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tatib-hero-stats span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 234, 254, 0.95);
  font-weight: 600;
}

.tatib-hero-stats strong {
  font-size: 1.18rem;
  color: #ffffff;
}

.tatib-main-card {
  margin: 18px clamp(16px, 3vw, 30px) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d9e2ec;
  border-radius: 20px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.07);
  padding: clamp(16px, 2.6vw, 24px);
}

.tatib-table-card {
  border: 1px solid #dbe6f2;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.tatib-table-card .table-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #dbe6f2;
  background: #f7fbff;
}

.tatib-table-card .table-card-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #102339;
}

.tatib-table-card .table-card-header p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #526074;
}

.tatib-table-card .table-card-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tatib-table-card .table-stat-chip {
  border: 1px solid #d5e2f1;
  background: #f7fbff;
  color: #1e3a5f;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.74rem;
  font-weight: 700;
}

.tatib-table-card .table-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #dbe6f2;
  padding: 12px 14px;
  background: #fbfdff;
}

.tatib-table-card .table-tools__inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tatib-table-card .table-tools__search,
.tatib-table-card .table-tools__filter {
  display: grid;
  gap: 5px;
  min-width: 210px;
}

.tatib-table-card .table-tools span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.tatib-table-card .table-tools input,
.tatib-table-card .table-tools select {
  border: 1px solid #bed0e3;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #1e293b;
  background: #ffffff;
}

.tatib-table-card .table-tools input:focus,
.tatib-table-card .table-tools select:focus {
  outline: none;
  border-color: #0f6cbd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tatib-table-card .table-tools__result {
  margin: 0;
  color: #526074;
  font-size: 0.83rem;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
  border: 1px solid #dbe6f2;
  border-radius: 14px;
  background: #f7fbff;
  padding: 14px;
}

.filter-copy h3 {
  margin: 0;
  font-size: 1rem;
  color: #102339;
}

.filter-copy p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #526074;
  line-height: 1.55;
}

.filter-field {
  min-width: 250px;
}

.filter-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.86rem;
}

.filter-container select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 12px 42px 12px 12px;
  border: 1px solid #bed0e3;
  border-radius: 12px;
  width: 100%;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-wrap {
  position: relative;
}

.select-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.76rem;
  color: #475569;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.filter-container select:hover {
  border-color: #90b9e6;
}

.filter-container select:focus {
  outline: none;
  border-color: #0f6cbd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.select-wrap:focus-within i {
  color: #0f6cbd;
  transform: translateY(-50%) rotate(180deg);
}

.table-container {
  width: 100%;
  margin: 0;
  max-height: none;
  border-radius: 14px;
}

#tatib-table {
  table-layout: fixed;
}

#tatib-table td,
#tatib-table th {
  vertical-align: middle;
}

#tatib-table td:first-child,
#tatib-table th:first-child {
  color: #0f172a;
}

#tatib-table th:nth-child(2),
#tatib-table td:nth-child(2) {
  width: 156px;
  text-align: center;
}

#tatib-table th:nth-child(3),
#tatib-table td:nth-child(3) {
  width: 116px;
  text-align: center;
}

.tatib-rule-text {
  margin: 0;
  line-height: 1.58;
  white-space: normal;
  word-break: break-word;
  max-width: 86ch;
}

.tingkat-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  padding: 7px 12px;
  min-width: 132px;
  background: #e7f2ff;
  color: #0d5089;
  border: 1px solid #c6e0ff;
  font-weight: 700;
  text-align: center;
}

.tingkat-badge__level {
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tatib-point-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #c6e0ff;
  background: #edf5ff;
  color: #0d5089;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.table-empty {
  text-align: center;
  color: #64748b;
  padding: 18px 10px;
}

.empty-cell {
  text-align: center;
  color: #64748b;
  padding: 18px 10px;
}

.sanksi-section {
  margin-top: 18px;
  border: 1px solid #d9e2ec;
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(14px, 2.4vw, 20px);
}

.sanksi-section h3 {
  color: #0f172a;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sanksi-caption {
  margin: 8px 0 14px;
  color: #526074;
  font-size: 0.9rem;
}

.sanksi-tingkat {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfdff;
}

.sanksi-tingkat + .sanksi-tingkat {
  margin-top: 10px;
}

.sanksi-tingkat b {
  color: #0d5089;
  display: inline-block;
  margin-bottom: 6px;
}

.sanksi-tingkat ol {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.7;
}

.sanksi-empty {
  margin: 0;
  color: #64748b;
}

@media screen and (max-width: 992px) {
  .tatib-hero {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .tatib-main-card,
  .tatib-hero {
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 14px;
  }

  .tatib-hero-copy p {
    font-size: 0.9rem;
  }

  .filter-field {
    width: 100%;
    min-width: unset;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .tatib-table-card .table-card-header,
  .tatib-table-card .table-tools {
    flex-direction: column;
    align-items: stretch;
  }

  #tatib-table td,
  #tatib-table th {
    font-size: 0.82rem;
  }

  #tatib-table th:nth-child(2),
  #tatib-table td:nth-child(2) {
    width: 138px;
  }

  #tatib-table th:nth-child(3),
  #tatib-table td:nth-child(3) {
    width: 102px;
  }
}
