/* =============================================================================
   Laporan SIPERI 2026 — polished & fully responsive
   ============================================================================= */

:root {
  --lap-primary: #003366;
  --lap-secondary: #0073e6;
  --lap-accent: #ff6600;
  --lap-success: #28a745;
  --lap-warning: #ffc107;
  --lap-danger: #dc3545;
  --lap-bg: #f0f4f8;
  --lap-radius: 12px;
  --lap-shadow: 0 4px 16px rgba(0, 51, 102, 0.08);
}

.laporan-section {
  background: var(--lap-bg);
  padding: 2rem 0 3rem;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.laporan-title {
  color: var(--lap-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.laporan-subtitle {
  color: #6c757d;
  line-height: 1.5;
}

/* ── Intro bar (below page hero) ── */
.laporan-intro-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: var(--lap-radius);
  box-shadow: var(--lap-shadow);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--lap-secondary);
}

.laporan-intro-bar .intro-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lap-primary), var(--lap-secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.laporan-intro-bar .laporan-title {
  text-align: left;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  margin-bottom: 0.2rem;
}

.laporan-intro-bar .laporan-subtitle {
  text-align: left;
  font-size: 0.85rem;
}

/* ── Section titles ── */
.section-title-wrap {
  margin: 2rem 0 1rem;
}

.section-title-wrap:first-of-type {
  margin-top: 0.5rem;
}

.laporan-section h4.section-title {
  color: var(--lap-primary);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 51, 102, 0.1);
}

.laporan-section h4.section-title i {
  color: var(--lap-secondary);
  width: 1.25rem;
  text-align: center;
}

/* ── Stat cards — vertical layout ── */
.laporan-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .laporan-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .laporan-stats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.infographic-card {
  background: #fff;
  border-radius: var(--lap-radius);
  box-shadow: var(--lap-shadow);
  padding: 1.25rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-top: 3px solid transparent;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}

.infographic-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-radius: 0 0 0 60px;
  opacity: 0.08;
  background: currentColor;
}

.infographic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 51, 102, 0.14);
}

.infographic-card .icon-wrapper {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.infographic-card .card-body-text {
  min-width: 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.infographic-card h5 {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.infographic-card h2.stat-value {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

.infographic-card h2.stat-value small {
  font-size: 0.65em;
  font-weight: 700;
  opacity: 0.85;
}

.infographic-card h2.stat-rupiah {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  cursor: help;
}

.infographic-card.total-sekolah {
  border-top-color: var(--lap-accent);
  color: var(--lap-accent);
}
.infographic-card.total-sekolah .icon-wrapper {
  color: var(--lap-accent);
  background: rgba(255, 102, 0, 0.12);
}
.infographic-card.total-sekolah h2 { color: var(--lap-accent); }

.infographic-card.total-dana {
  border-top-color: var(--lap-success);
  color: var(--lap-success);
}
.infographic-card.total-dana .icon-wrapper {
  color: var(--lap-success);
  background: rgba(40, 167, 69, 0.12);
}
.infographic-card.total-dana h2 { color: var(--lap-success); }

.infographic-card.avg-progres {
  border-top-color: var(--lap-secondary);
  color: var(--lap-secondary);
}
.infographic-card.avg-progres .icon-wrapper {
  color: var(--lap-secondary);
  background: rgba(0, 115, 230, 0.12);
}
.infographic-card.avg-progres h2 { color: var(--lap-secondary); }

.infographic-card.max-progres {
  border-top-color: var(--lap-warning);
  color: #d4a017;
}
.infographic-card.max-progres .icon-wrapper {
  color: #d4a017;
  background: rgba(255, 193, 7, 0.18);
}
.infographic-card.max-progres h2 { color: #856404; }

.infographic-card.min-progres {
  border-top-color: var(--lap-danger);
  color: var(--lap-danger);
}
.infographic-card.min-progres .icon-wrapper {
  color: var(--lap-danger);
  background: rgba(220, 53, 69, 0.1);
}
.infographic-card.min-progres h2 { color: var(--lap-danger); }

@media (max-width: 575.98px) {
  .infographic-card {
    min-height: 118px;
    padding: 1rem 0.85rem;
  }

  .infographic-card h2.stat-value {
    font-size: 1.25rem;
  }
}

/* ── Panels ── */
.laporan-panel {
  background: #fff;
  border-radius: var(--lap-radius);
  box-shadow: var(--lap-shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .laporan-panel { padding: 1.5rem; }
}

/* ── Ranking cards ── */
.ranking-row { margin-top: 0; }

.top-bottom-schools-card {
  overflow: hidden;
}

.ranking-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eef2f6;
}

.ranking-card-head h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lap-primary);
}

.ranking-head-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
}

.ranking-head-icon--top {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.ranking-head-icon--bottom {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.ranking-list .ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f2f5;
  background: transparent;
}

.ranking-list .ranking-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ranking-list .ranking-empty {
  padding: 1rem 0;
  border: none;
}

.rank-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: #adb5bd;
  margin-top: 0.1rem;
}

.rank-badge.rank-1 { background: linear-gradient(135deg, #ffd700, #ffb300); color: #333; }
.rank-badge.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.rank-badge.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); }

.ranking-item-body {
  flex: 1;
  min-width: 0;
}

.ranking-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ranking-item-body .school-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.4;
}

.ranking-item-body .progres-value {
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ranking-item-body .badge {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.25em 0.55em;
}

.ranking-progress {
  height: 6px;
  border-radius: 6px;
  background: #e9ecef;
}

.ranking-top .ranking-progress .progress-bar {
  border-radius: 6px;
}

.ranking-bottom .ranking-progress .progress-bar {
  border-radius: 6px;
}

/* legacy — keep for compatibility */
.top-bottom-schools-card h5 {
  color: var(--lap-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.top-bottom-schools-card .list-group-item {
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
}

.top-bottom-schools-card .school-rank {
  font-weight: 700;
  color: var(--lap-secondary);
}

.top-bottom-schools-card .progres-value {
  font-weight: 800;
  white-space: nowrap;
}

/* Kabupaten table */
.kabupaten-table-container {
  padding: 0 !important;
  overflow: hidden;
}

.kabupaten-table-container .table-responsive {
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.kabupaten-table-container .table {
  margin-bottom: 0;
  min-width: 560px;
}

.kabupaten-table-container .table th {
  background: var(--lap-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  padding: 0.75rem 0.85rem;
  white-space: nowrap;
}

.kabupaten-table-container .table td {
  font-size: 0.85rem;
  padding: 0.7rem 0.85rem;
  vertical-align: middle;
}

.kabupaten-table-container .table tbody tr:nth-child(even) { background: #f8f9fa; }
.kabupaten-table-container .table tbody tr:hover { background: #eef4fb; }

.kabupaten-table-container .progress {
  height: 18px;
  border-radius: 10px;
  background: #e9ecef;
  min-width: 90px;
}

.kabupaten-table-container .progress-bar {
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Filter */
.filter-section .filter-heading {
  color: var(--lap-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-section .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.3rem;
}

.filter-section .form-control {
  border-radius: 8px;
  font-size: 0.875rem;
  height: calc(1.5em + 0.85rem + 2px);
}

.filter-section .form-control:focus {
  border-color: var(--lap-secondary);
  box-shadow: 0 0 0 0.15rem rgba(0, 115, 230, 0.2);
}

.filter-section .btn-primary {
  background: var(--lap-secondary);
  border-color: var(--lap-secondary);
  border-radius: 8px;
  font-weight: 600;
}

.filter-section .btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .filter-actions { flex-direction: column; }
}

/* Data section */
.data-section {
  padding: 0 !important;
  overflow: hidden;
}

.data-header {
  background: linear-gradient(135deg, var(--lap-primary), var(--lap-secondary));
  color: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.data-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.data-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.data-header .badge-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 20px;
  font-size: 0.78rem;
}

.data-header .btn-export {
  background: #fff;
  color: var(--lap-primary);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.data-header .btn-export:hover {
  background: #f0f4f8;
  color: var(--lap-primary);
}

/* Desktop table */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.82rem;
  vertical-align: middle;
}

.data-table th {
  background: #003366 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.data-table th a {
  color: #fff !important;
  text-decoration: none;
}

.data-table th a:hover { color: #cce5ff !important; }

.data-table tbody tr:hover { background: #f8f9fa; }

.data-table .progress {
  height: 18px;
  border-radius: 10px;
  background: #e9ecef;
  min-width: 80px;
}

.data-table .progress-bar {
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
}

.btn-detail-sekolah {
  background: var(--lap-secondary) !important;
  border-color: var(--lap-secondary) !important;
  color: #fff !important;
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
  text-decoration: none !important;
}

.btn-detail-sekolah:hover {
  background: #0056b3;
  color: #fff !important;
}

/* Mobile card list — Bootstrap d-md-none handles visibility; keep styles scoped */
.school-mobile-list {
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .school-mobile-list {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .laporan-section .table-scroll {
    display: none !important;
  }

  .school-mobile-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .school-mobile-card:last-child { margin-bottom: 0; }

  .school-mobile-card .smc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .school-mobile-card .smc-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #212529;
    line-height: 1.35;
    flex: 1;
  }

  .school-mobile-card .smc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.65rem;
  }

  .school-mobile-card .smc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }

  .school-mobile-card .smc-progress { margin-bottom: 0.65rem; }

  .school-mobile-card .smc-progress-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
  }

  .school-mobile-card .btn-detail-sekolah {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
  }
}

.jenjang-badge {
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}

.badge-paud { background: #ff6b6b; }
.badge-sd { background: #45b7d1; }
.badge-smp { background: #6c5ce7; }
.badge-sma { background: #feca57; color: #333 !important; }
.badge-secondary { background: #6c757d; color: #fff; }

.npsn-code {
  background: #f1f3f5;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #495057;
}

.table-pagination {
  padding: 0.85rem 1rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-pagination .btn {
  border-radius: 8px;
  font-size: 0.8rem;
}

/* =============================================================================
   MODAL DETAIL — clean & responsive
   ============================================================================= */
.modal-detail .modal-dialog {
  margin: 0.5rem;
  max-width: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .modal-detail .modal-dialog {
    margin: 1rem auto;
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .modal-detail .modal-dialog { max-width: 720px; }
}

@media (min-width: 992px) {
  .modal-detail .modal-dialog { max-width: 860px; }
}

.modal-detail .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.modal-detail .modal-header {
  background: linear-gradient(135deg, var(--lap-primary), var(--lap-secondary));
  color: #fff;
  border: none;
  padding: 1rem 1.15rem;
}

.modal-detail .modal-header .modal-title {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-detail .modal-header .close {
  color: #fff;
  opacity: 0.85;
  text-shadow: none;
  padding: 0;
  margin: 0;
}

.modal-detail .modal-body {
  padding: 0;
  max-height: min(80vh, 680px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #f0f4f8;
}

.modal-detail .school-title {
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  line-height: 1.35;
  word-break: break-word;
}

.modal-detail .entry-card .card-header {
  gap: 0.5rem;
}

.modal-detail .entry-card .card-body {
  font-size: 0.9rem;
}

.modal-detail code {
  background: #f1f3f5;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #495057;
}

.modal-detail .modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  background: #fff;
}

.modal-detail .modal-footer .btn {
  border-radius: 8px;
  min-width: 100px;
}

/* Modal — school header */
.modal-school-header {
  background: #fff;
  padding: 1.15rem;
  border-bottom: 1px solid #e9ecef;
}

.modal-school-header .school-title {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 800;
  color: var(--lap-primary);
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.modal-school-header .school-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-school-header .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0f4f8;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  color: #495057;
  font-weight: 500;
}

.modal-school-header .chip i {
  color: var(--lap-secondary);
  font-size: 0.7rem;
}

.modal-school-header .chip.chip-entri {
  background: #e0f2f7;
  border-color: #b3d9f2;
  color: var(--lap-primary);
  font-weight: 700;
}

/* Modal — entries */
.modal-entries-wrap {
  padding: 1rem;
}

@media (min-width: 768px) {
  .modal-entries-wrap { padding: 1.15rem 1.25rem 1.25rem; }
}

.modal-entries-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.entry-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
}

.entry-card:last-child { margin-bottom: 0; }

.entry-card-header {
  background: linear-gradient(135deg, var(--lap-primary), var(--lap-secondary));
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.entry-card-header .entry-num {
  font-weight: 700;
  font-size: 0.85rem;
}

.entry-card-header .entry-date {
  font-size: 0.75rem;
  opacity: 0.9;
  flex: 1;
}

.entry-card-header .entry-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  text-transform: capitalize;
}

.entry-card-body { padding: 1rem; }

.entry-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 400px) {
  .entry-stats-row { grid-template-columns: 1fr; }
}

.entry-stat-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--lap-secondary);
}

.entry-stat-box .stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.entry-stat-box .stat-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #212529;
  word-break: break-word;
}

.entry-progress-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
  .entry-progress-row { grid-template-columns: 1fr 1fr; }
}

.entry-progress-item .prog-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: space-between;
}

.entry-progress-item .progress {
  height: 20px;
  border-radius: 10px;
  background: #e9ecef;
}

.entry-progress-item .progress-bar {
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.detail-block {
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #495057;
}

.detail-block .block-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.detail-block.block-kendala {
  background: #fff8e1;
  border-left: 3px solid #ffc107;
}
.detail-block.block-kendala .block-title { color: #856404; }

.detail-block.block-solusi {
  background: #e8f5e9;
  border-left: 3px solid #28a745;
}
.detail-block.block-solusi .block-title { color: #155724; }

.detail-block.block-keterangan {
  background: #e3f2fd;
  border-left: 3px solid #17a2b8;
}
.detail-block.block-keterangan .block-title { color: #0c5460; }

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #dee2e6;
}

.entry-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lap-secondary);
  background: #e0f2f7;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
}

.entry-links a:hover {
  background: #cce5ff;
  color: #0056b3;
  text-decoration: none;
}

.modal-empty,
.modal-loading,
.modal-error {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #6c757d;
}

.modal-loading i { color: var(--lap-secondary); }
.modal-error { color: var(--lap-danger); }

/* Page header laporan */
.revit-page-header {
  padding: 1.75rem 0 1.5rem;
}

.revit-page-header h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.revit-page-header p {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  max-width: 36rem;
}

/* Badge kabupaten white text fix */
.laporan-section .badge-primary,
.laporan-section .badge-info,
.laporan-section .badge-success,
.laporan-section .badge-danger,
.laporan-section .badge-dark,
.laporan-section .badge-secondary {
  color: #fff !important;
}

.laporan-section .badge-warning {
  color: #212529 !important;
}

@media (max-width: 575.98px) {
  .laporan-section { padding: 1.25rem 0 2rem; }
  .laporan-panel { padding: 1rem; border-radius: 10px; }
  .filter-section .row > [class*="col-"] { margin-bottom: 0.5rem; }
  .data-header { flex-direction: column; align-items: flex-start; }
}
