/* Menu Dashboard. Jarak antar-blok ditulis sebagai class di dashboard.html; warna tombol aktif ada di buttons.css. */

/* Kartu ringkasan menyesuaikan ruang yang tersedia, tanpa ukuran lebar/tinggi tetap. */
#summaryCards,
#ppuSummaryCards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.trend-period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 28px;
  margin: 4px 0 12px;
  line-height: 1.25;
}

.trend-period-row #trendPeriodLabel {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

#chartTrend {
  position: relative;
  z-index: 1;
}

#dashboardPage #successNotice #successText {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  line-height: 1.45 !important;
}

#dashboardPage #successNotice > i {
  flex: 0 0 auto !important;
}

@media (max-width: 639px) {
  #dashboardPage .pantau-table thead th,
  #dashboardPage .pantau-table tbody td {
    padding: 10px 12px !important;
  }
  .trend-period-row {
    margin: 4px 0 10px;
  }
}

/* Tabel peringkat: divider tipis hanya di akhir daftar. */
#dashboardPage table.pantau-table tbody tr,
#dashboardPage table.pantau-table tbody tr > td {
  border-bottom: 0 !important;
}

#dashboardPage table.pantau-table tbody tr:last-child > td {
  border-bottom: 1px solid var(--pantau-border) !important;
}

/* Tab PPU PN: batalkan warna kolom nominal dari table.css; hanya Total Tunggakan yang berwarna. */
#dashboardPpuPanel .pantau-table tbody td {
  color: var(--pantau-text) !important;
}

#dashboardPpuPanel .pantau-table tbody td:nth-child(5) {
  color: #f43f5e !important;
}

/* Nama SKPD/Satker panjang dibungkus, bukan dipotong, agar terbaca lengkap di layar sempit. */
#dashboardPpuPanel .pantau-table tbody td:nth-child(2),
#dashboardPpuPanel .pantau-table tbody td:nth-child(3) {
  white-space: normal;
  overflow-wrap: anywhere;
}
