/* Beranda portal setelah login — layout dashboard modern */
.hp-page {
  background: linear-gradient(180deg, #f4f7fc 0%, #eef2f8 40%, #f8fafc 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1e293b;
}

.hp-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
}

.hp-page--menu-only .hp-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2rem);
}

.hp-page--menu-only .hp-module-cards--solo {
  flex: 1;
  align-content: center;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.hp-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hp-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hp-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.hp-brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #153a6b;
  margin: 0;
}

.hp-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.hp-top-actions .badge {
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hp-welcome h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.hp-welcome p {
  color: #64748b;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.hp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hp-filter-pill {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hp-filter-pill strong {
  color: #153a6b;
}

/* Kartu Riset & Inovasi — dipertahankan */
.hp-module-cards {
  margin: 0.75rem 0 1rem;
}

.hp-module-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(21, 58, 107, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.hp-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(21, 58, 107, 0.12);
}

.hp-module-card a {
  display: block;
  padding: 0.75rem;
}

.hp-module-card img {
  display: block;
  margin: 0 auto;
  width: 82%;
  max-width: 220px;
  height: auto;
}

.hp-hero-row {
  margin-bottom: 1.25rem;
}

.hp-rank-hero {
  background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 30px rgba(239, 125, 125, 0.12);
  height: 100%;
}

.hp-rank-hero h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 0.5rem;
}

.hp-rank-big {
  font-size: 2rem;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.1;
}

.hp-rank-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #153a6b;
  background: conic-gradient(#22c55e 0 var(--hp-progress, 0%), #e2e8f0 var(--hp-progress, 0%) 100%);
  position: relative;
}

.hp-rank-ring::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.hp-rank-ring span {
  position: relative;
  z-index: 1;
}

/* Kartu Indeks OPD (akun OPD) */
.hp-indeks-mine-card {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 12px 32px rgba(21, 58, 107, 0.1);
}

.hp-indeks-mine-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1d4ed8;
  margin: 0;
}

.hp-indeks-mine-title {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hp-indeks-mine-sub {
  font-size: 0.9rem;
  color: #64748b;
  max-width: 36rem;
}

.hp-indeks-mine-score-wrap {
  display: inline-block;
  text-align: right;
  min-width: 10rem;
}

.hp-indeks-mine-score-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

.hp-indeks-mine-score {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 900;
  color: #153a6b;
  line-height: 1;
}

.hp-indeks-mine-meta {
  font-size: 0.88rem;
  color: #475569;
  margin-top: 0.35rem;
}

.hp-indeks-admin .hp-panel-head {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hp-indeks-admin-scroll {
  max-height: min(62vh, 520px);
  overflow-y: auto;
}

.hp-indeks-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0.85rem 1rem 0.75rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.hp-indeks-legend__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin-right: 0.15rem;
}

.hp-indeks-legend__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hp-indeks-legend__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid transparent;
}

.hp-indeks-legend__range {
  font-weight: 600;
  opacity: 0.92;
}

.hp-indeks-legend__chip--excellent {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.hp-indeks-legend__chip--developing {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

.hp-indeks-legend__chip--low {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.hp-indeks-legend__chip--none {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.hp-indeks-formula {
    margin: 0.85rem 1rem 0.75rem;
    padding: 0.85rem 0.95rem;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}

.hp-indeks-formula__title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 0.45rem;
}

.hp-indeks-formula__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.hp-indeks-formula__list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #1e3a8a;
}

.hp-indeks-formula__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

.hp-indeks-admin .hp-lb-table thead.hp-lb-table-head th,
.hp-indeks-admin .hp-lb-table thead th {
  background: #153a6b !important;
  background-color: #153a6b !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 0.55rem;
  border: none !important;
  vertical-align: middle;
  text-shadow: none;
}

.hp-indeks-admin .hp-lb-table thead.hp-lb-table-head th.hp-col-name,
.hp-indeks-admin .hp-lb-table thead th.hp-col-name {
  text-align: left;
}

.hp-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.hp-hero-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.hp-hero-stat-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #153a6b;
  line-height: 1.15;
}

.hp-hero-stat-lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-top: 0.15rem;
}

.hp-main-row {
  align-items: flex-start;
}

.hp-sidebar-col .hp-panel:last-child {
  margin-bottom: 0;
}

.hp-panel--fill {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hp-panel--fill .hp-panel-body {
  flex: 1;
}

.hp-panel--accent .hp-panel-head {
  background: linear-gradient(90deg, #eff6ff, #fff);
}

.hp-panel-body--scroll {
  max-height: 280px;
  overflow-y: auto;
}

.hp-chart-wrap--tall {
  height: 280px;
}

.hp-bar-chart-wrap {
	position: relative;
	width: 100%;
}

/* Grafik indeks + inovasi — satu kolom entitas, dua batang per baris */
.hp-dual-bar-chart {
	--hp-dual-name-w: minmax(9.5rem, 32%);
	font-size: 0.8125rem;
}

.hp-dual-bar-chart__head,
.hp-dual-bar-row,
.hp-dual-bar-chart__foot {
	display: grid;
	grid-template-columns: var(--hp-dual-name-w) 1fr;
	gap: 0.65rem 0.75rem;
	align-items: center;
}

.hp-dual-bar-chart__head {
	padding: 0 0 0.5rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.35);
	margin-bottom: 0.35rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.hp-dual-bar-chart__col-bars {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.hp-dual-bar-chart__metric {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	line-height: 1.2;
}

.hp-dual-bar-chart__metric small {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: #94a3b8;
}

.hp-dual-bar-chart__body {
	max-height: min(520px, 70vh);
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.15rem;
}

.hp-dual-bar-row {
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.hp-dual-bar-row:last-child {
	border-bottom: none;
}

.hp-dual-bar-row__name {
	font-weight: 600;
	color: #1e293b;
	line-height: 1.35;
	word-break: break-word;
	padding-right: 0.25rem;
}

.hp-dual-bar-row__bars {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.hp-dual-bar-track {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.45rem;
	align-items: center;
}

.hp-dual-bar-track__rail {
	position: relative;
	height: 0.72rem;
	border-radius: 999px;
	background: rgba(226, 232, 240, 0.95);
	overflow: hidden;
}

.hp-dual-bar-track__rail--indeks {
	height: 0.82rem;
}

.hp-dual-bar-track__fill {
	height: 100%;
	border-radius: inherit;
	min-width: 2px;
	transition: width 0.35s ease;
}

.hp-dual-bar-track__fill--inovasi {
	background: linear-gradient(90deg, #64748b 0%, #475569 100%);
}

.hp-dual-bar-track__val {
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #334155;
	min-width: 2rem;
	text-align: right;
}

.hp-dual-bar-track--inovasi .hp-dual-bar-track__val {
	color: #475569;
}

.hp-dual-bar-chart__foot {
	padding-top: 0.35rem;
	margin-top: 0.15rem;
	border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.hp-dual-bar-chart__scales {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.hp-dual-bar-scale {
	position: relative;
	height: 1rem;
	margin-right: 2.45rem;
	border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.hp-dual-bar-scale span {
	position: absolute;
	top: 0.15rem;
	transform: translateX(-50%);
	font-size: 0.625rem;
	font-weight: 600;
	color: #94a3b8;
	font-variant-numeric: tabular-nums;
}

.hp-dual-bar-scale--indeks span:first-child {
	transform: none;
}

.hp-dual-bar-scale--inovasi span:first-child {
	transform: none;
}

@media (max-width: 575.98px) {
	.hp-dual-bar-chart {
		--hp-dual-name-w: minmax(7rem, 38%);
		font-size: 0.75rem;
	}

	.hp-dual-bar-track__val {
		min-width: 1.6rem;
		font-size: 0.6875rem;
	}
}

.hp-indeks-bar-chart .hp-panel-head {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hp-bar-legend {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.hp-bar-legend--inovasi { background: #64748b; }
.hp-bar-legend--hi { background: #16a34a; }
.hp-bar-legend--mid { background: #2563eb; }
.hp-bar-legend--low { background: #ea580c; }

.hp-top3-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hp-top3-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.hp-top3-list-rank {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hp-top3-list-item--1 .hp-top3-list-rank {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
}

.hp-top3-list-item--2 .hp-top3-list-rank {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #1e293b;
}

.hp-top3-list-item--3 .hp-top3-list-rank {
  background: linear-gradient(135deg, #fdba74, #f97316);
  color: #7c2d12;
}

.hp-top3-list-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  line-height: 1.3;
}

.hp-top3-list-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.hp-steps-list {
  color: #475569;
  font-size: 0.9rem;
}

.hp-steps-list li {
  margin-bottom: 0.35rem;
}

.hp-kpi {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid #f1f5f9;
  height: 100%;
}

.hp-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.hp-kpi-icon--red { background: #fee2e2; color: #dc2626; }
.hp-kpi-icon--purple { background: #ede9fe; color: #7c3aed; }
.hp-kpi-icon--blue { background: #dbeafe; color: #2563eb; }
.hp-kpi-icon--green { background: #dcfce7; color: #16a34a; }

.hp-kpi-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.hp-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hp-kpi-trend {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.hp-kpi--clickable {
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  appearance: none;
  font: inherit;
  color: inherit;
}

.hp-kpi--clickable:hover,
.hp-kpi--clickable:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  border-color: #93c5fd;
  outline: none;
}

.hp-kpi--clickable:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.hp-kpi-action {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb;
}

.sirida-opd-kpi-table td,
.sirida-opd-kpi-table th {
  vertical-align: middle;
}

.sirida-opd-kpi-table .badge {
  font-size: 0.72rem;
  font-weight: 600;
  white-space: normal;
  text-align: left;
}

.sirida-opd-kpi-modal {
  z-index: 1060 !important;
}

.sirida-opd-kpi-modal.show {
  display: block !important;
}

.sirida-opd-kpi-backdrop,
body.modal-open .modal-backdrop {
  z-index: 1050 !important;
}

.hp-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.hp-progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 999px;
}

.hp-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hp-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hp-quick-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  opacity: 0.95;
}

.hp-quick-btn--red { background: linear-gradient(135deg, #f87171, #ef4444); }
.hp-quick-btn--green { background: linear-gradient(135deg, #4ade80, #22c55e); }
.hp-quick-btn--blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.hp-quick-btn--orange { background: linear-gradient(135deg, #fb923c, #f97316); }
.hp-quick-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.hp-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.hp-panel-head {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hp-panel-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #153a6b;
}

.hp-panel-body {
  padding: 1rem 1.1rem;
}

.hp-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  min-height: 160px;
}

.hp-podium-item {
  flex: 1;
  max-width: 140px;
  text-align: center;
}

.hp-podium-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.hp-podium-item--1 .hp-podium-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
.hp-podium-item--2 .hp-podium-rank { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #1e293b; }
.hp-podium-item--3 .hp-podium-rank { background: linear-gradient(135deg, #fdba74, #f97316); color: #7c2d12; }

.hp-podium-bar {
  border-radius: 12px 12px 4px 4px;
  padding: 0.65rem 0.4rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
}

.hp-podium-item--1 .hp-podium-bar { background: linear-gradient(180deg, #fbbf24, #d97706); min-height: 100px; }
.hp-podium-item--2 .hp-podium-bar { background: linear-gradient(180deg, #94a3b8, #64748b); min-height: 72px; }
.hp-podium-item--3 .hp-podium-bar { background: linear-gradient(180deg, #fb923c, #ea580c); min-height: 56px; }

.hp-podium-score {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.hp-podium-name {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 0.4rem;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.hp-chart-wrap {
  position: relative;
  height: 200px;
}

.hp-lb-table {
  width: 100%;
  font-size: 0.82rem;
  margin: 0;
}

.hp-lb-table thead th {
  background: #153a6b;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 0.45rem;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.hp-lb-table thead th.hp-col-name {
  text-align: left;
}

.hp-lb-table tbody td {
  padding: 0.45rem 0.4rem;
  vertical-align: middle;
  border-color: #f1f5f9;
}

.hp-lb-table tbody tr.hp-row-mine {
  background: #fff7ed !important;
  box-shadow: inset 3px 0 0 #f97316;
}

.hp-activity-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.hp-activity-item:last-child {
  border-bottom: none;
}

.hp-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.hp-deadline-card {
  background: linear-gradient(135deg, #eff6ff, #fff);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  border: 1px dashed #93c5fd;
}

.hp-deadline-days {
  font-size: 2rem;
  font-weight: 800;
  color: #1d4ed8;
}

.hp-admin-strip {
  margin-top: 1rem;
  text-align: center;
}

.hp-footer {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 2rem;
}

@media (max-width: 767.98px) {
  .hp-rank-hero {
    margin-top: 1rem;
  }
}

/* Admin — ringkasan verifikasi IGA di /home */
.hp-admin-verif-kpi {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.15rem 1.1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.hp-admin-verif-kpi__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.hp-admin-verif-kpi__title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.2rem;
}

.hp-admin-verif-kpi__sub {
  font-size: 0.82rem;
  color: #64748b;
}

.hp-admin-verif-kpi__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.hp-admin-verif-kpi__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  min-height: 96px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.hp-admin-verif-kpi__card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.hp-admin-verif-kpi__card--secondary { border-color: #cbd5e1; background: #f8fafc; }
.hp-admin-verif-kpi__card--primary { border-color: #93c5fd; background: #eff6ff; }
.hp-admin-verif-kpi__card--warning { border-color: #fcd34d; background: #fffbeb; }
.hp-admin-verif-kpi__card--success { border-color: #86efac; background: #f0fdf4; }

.hp-admin-verif-kpi__card--secondary:hover { border-color: #64748b; }
.hp-admin-verif-kpi__card--primary:hover { border-color: #3b82f6; }
.hp-admin-verif-kpi__card--warning:hover { border-color: #f59e0b; }
.hp-admin-verif-kpi__card--success:hover { border-color: #22c55e; }

.hp-admin-verif-kpi__val {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.hp-admin-verif-kpi__card--primary .hp-admin-verif-kpi__val { color: #1d4ed8; }
.hp-admin-verif-kpi__card--warning .hp-admin-verif-kpi__val { color: #b45309; }
.hp-admin-verif-kpi__card--success .hp-admin-verif-kpi__val { color: #15803d; }

.hp-admin-verif-kpi__lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-top: 0.25rem;
}

.hp-admin-verif-kpi__go {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 0.35rem;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hp-admin-verif-kpi__card:hover .hp-admin-verif-kpi__go {
  opacity: 1;
  transform: translateY(0);
}

.hp-admin-verif-kpi__foot {
  margin-top: 0.65rem;
}

@media (max-width: 991px) {
  .hp-admin-verif-kpi__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .hp-admin-verif-kpi__grid {
    grid-template-columns: 1fr;
  }
}

/* Indeks Inovasi Daerah (nasional) — beranda & dashboard internal */
.hp-iid-nasional {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, #fff 45%, rgba(239, 246, 255, 0.85) 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hp-iid-nasional--embed {
  margin-top: 1rem;
}

.hp-iid-nasional__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hp-iid-nasional__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3730a3;
}

.hp-iid-nasional__desc {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #475569;
}

.hp-iid-nasional__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3730a3;
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
}

.hp-iid-nasional__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .hp-iid-nasional__grid {
    grid-template-columns: 3fr 2fr;
  }
}

.hp-iid-nasional__chart-panel,
.hp-iid-nasional__table-panel {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.hp-iid-nasional__chart-panel {
  position: relative;
  padding: 1rem 1.25rem;
  overflow: hidden;
}

.hp-iid-nasional__chart-label {
  margin: 0 0 0.75rem;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.hp-iid-nasional__chart {
  position: relative;
  overflow: hidden;
  min-height: 11rem;
}

.hp-iid-nasional__line-wrap {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 2rem;
  bottom: 4rem;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hp-iid-nasional__line {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hp-iid-nasional__bars {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 11rem;
  padding: 0.5rem 0 2rem;
  border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 576px) {
  .hp-iid-nasional__bars {
    height: 13rem;
    gap: 1rem;
  }
}

.hp-iid-nasional__bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
}

.hp-iid-nasional__bar-val {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
}

.hp-iid-nasional__bar {
  width: 100%;
  max-width: 4.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  min-height: 4px;
  position: relative;
}

.hp-iid-nasional__bar::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: inherit;
  box-shadow: 0 0 0 2px #fff;
}

.hp-iid-nasional__bar-year {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
}

.hp-iid-nasional__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
}

.hp-iid-nasional__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hp-iid-nasional__legend-swatch {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 0.125rem;
}

.hp-iid-nasional__legend-swatch--low { background: #f97316; }
.hp-iid-nasional__legend-swatch--mid { background: #2563eb; }
.hp-iid-nasional__legend-swatch--high { background: #059669; }

.hp-iid-nasional__table-panel {
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.hp-iid-nasional__table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.hp-iid-nasional__table thead {
  background: #f8fafc;
}

.hp-iid-nasional__table th {
  padding: 0.625rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  text-align: left;
}

.hp-iid-nasional__th-num {
  text-align: right;
}

.hp-iid-nasional__table td {
  padding: 0.625rem 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.hp-iid-nasional__td-year {
  font-weight: 700;
  color: #0f172a;
}

.hp-iid-nasional__td-index {
  text-align: right;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #4338ca;
}

.hp-iid-nasional__td-rank {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.hp-iid-nasional__rank-total {
  color: #94a3b8;
  font-size: 0.75rem;
}

.hp-iid-nasional__pred {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.hp-iid-nasional__pred--low {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fed7aa;
}

.hp-iid-nasional__pred--mid {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.hp-iid-nasional__pred--high {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.hp-iid-nasional__pred--neutral {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}

.hp-iid-nasional__delta {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #475569;
}

.hp-iid-nasional__delta-up { color: #047857; }
.hp-iid-nasional__delta-down { color: #b91c1c; }

.hp-iid-nasional__td-sk {
  white-space: nowrap;
}

.hp-iid-nasional__sk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4338ca;
  text-decoration: none;
}

.hp-iid-nasional__sk-link:hover {
  color: #312e81;
  text-decoration: underline;
}

.hp-iid-nasional__sk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hp-iid-nasional__sk-empty {
  color: #94a3b8;
}
