/* =========================
   PPID PREMIUM SKY THEME (CLEAN)
   ========================= */
:root {
	--ppid-sky-1: #1d4ed8;
	--ppid-sky-2: #38bdf8;
	--ppid-sky-3: #a5f3fc;

	--ppid-ink: #0b1220;
	--ppid-muted: #64748b;

	--ppid-card: rgba(255, 255, 255, 0.78);
	--ppid-stroke: rgba(255, 255, 255, 0.28);

	--ppid-shadow: 0 22px 60px rgba(2, 14, 40, 0.18);
	--ppid-shadow-soft: 0 14px 35px rgba(2, 14, 40, 0.14);

	--ppid-radius-xl: 22px;
	--ppid-radius-lg: 18px;
}

/* =========================
   HERO (fix tidak kepotong)
   ========================= */
.section-frame {
	padding-top: 0 !important;
}

.ppid-hero {
	position: relative;
	border-radius: 18px 18px 28px 28px !important; /* top kecil, bottom lebih besar */
	overflow: hidden;
	min-height: 520px;
	padding-bottom: 70px; /* ruang wave */
	background:
		radial-gradient(
			900px 420px at 15% 20%,
			rgba(255, 255, 255, 0.28),
			transparent 65%
		),
		radial-gradient(
			700px 360px at 75% 35%,
			rgba(255, 255, 255, 0.22),
			transparent 70%
		),
		linear-gradient(
			135deg,
			rgba(29, 78, 216, 0.92),
			rgba(56, 189, 248, 0.78) 55%,
			rgba(165, 243, 252, 0.55)
		);
}
.ppid-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(
			1200px 500px at 50% -10%,
			rgba(255, 255, 255, 0.25),
			transparent 60%
		),
		linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.28),
			rgba(0, 0, 0, 0.05) 55%,
			rgba(255, 255, 255, 0)
		);
	pointer-events: none;
}
.ppid-hero .ppid-hero-inner {
	position: relative;
	z-index: 1;
}
.ppid-hero h1,
.ppid-hero .breadcrumb {
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ppid-wave {
	color: #ffffff !important;
}
.ppid-hero .divider.ppid-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	z-index: 2;
	color: #ffffff !important; /* nyatu dengan ppid-shell */
}

/* matikan efek angled bawaan template yg bikin garis aneh */
.ppid-shell.angled::before,
.ppid-shell.angled::after,
.wrapper.angled::before,
.wrapper.angled::after {
	display: none !important;
}

/* haluskan negative margin bawaan */
.mt-n19 {
	margin-top: -9rem !important;
}

/* =========================
   SECTION SHELL + CARD GLASS
   ========================= */

.ppid-card {
	border-radius: var(--ppid-radius-xl);
	background: var(--ppid-card);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: var(--ppid-shadow);
}

/* text hero */
.ppid-kicker {
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.92);
	font-weight: 700;
	text-transform: uppercase;
	opacity: 0.95;
}
.ppid-lead {
	color: rgba(255, 255, 255, 0.95);
}

/* stat chips */
.ppid-stat {
	border-radius: 16px;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.35),
		rgba(255, 255, 255, 0.12)
	);
	border: 1px solid var(--ppid-stroke);
	box-shadow: var(--ppid-shadow-soft);
}

/* =========================
   FORM
   ========================= */
.ppid-form {
	justify-content: center;
}
.ppid-form .form-label {
	text-align: center;
	width: 100%;
}
.ppid-form .form-select,
.ppid-form .form-control {
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.45);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 10px 20px rgba(2, 14, 40, 0.06);
}
.ppid-form .form-select {
	min-width: 220px;
}

.ppid-btn {
	border-radius: 14px !important;
	border: 0 !important;
	background: linear-gradient(135deg, var(--ppid-sky-1), var(--ppid-sky-2));
	box-shadow: 0 16px 30px rgba(29, 78, 216, 0.22);
}
.ppid-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 20px 40px rgba(29, 78, 216, 0.26);
}

/* =========================
   REKAP PANEL
   ========================= */
.ppid-recap {
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(148, 163, 184, 0.22);
	box-shadow: 0 18px 45px rgba(2, 14, 40, 0.08);
	padding: 18px;
}
.ppid-recap-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.ppid-recap-title h5 {
	margin: 0;
	font-weight: 800;
	color: #0f172a;
}

.ppid-recap-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}
@media (max-width: 992px) {
	.ppid-recap-grid {
		grid-template-columns: 1fr;
	}
}
.ppid-metric {
	border-radius: 16px;
	background: linear-gradient(
		180deg,
		rgba(51, 132, 255, 0.822),
		rgba(136, 201, 255, 0.89)
	);
	border: 1px solid rgb(255, 255, 255);
	padding: 14px;
	min-height: 84px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ppid-metric .label {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.55);
	margin-bottom: 4px;
	font-weight: 900;
}
.ppid-metric .value {
	font-weight: 1000;
	font-size: 16px;
	color: #0b1220;
}

.ppid-recap-chips {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}
@media (max-width: 1200px) {
	.ppid-recap-chips {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 576px) {
	.ppid-recap-chips {
		grid-template-columns: repeat(2, 1fr);
	}
}
.ppid-chip {
	border-radius: 14px;
	background: rgba(248, 251, 255, 0.95);
	border: 1px solid rgba(148, 163, 184, 0.22);
	padding: 10px 12px;
	min-height: 64px;
}
.ppid-chip .label {
	font-size: 12px;
	color: rgba(15, 23, 42, 0.58);
}
.ppid-chip .value {
	font-weight: 800;
	color: #0f172a;
}

/* =========================
   TABLE
   ========================= */
.ppid-table {
	border-radius: var(--ppid-radius-lg);
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.22);
	box-shadow: 0 16px 40px rgba(2, 14, 40, 0.07);
	background: #fff;
}

/* penting untuk sticky thead agar tidak glitch */
.ppid-table table {
	border-collapse: separate !important;
	border-spacing: 0 !important;
	width: 100%;
	margin: 0;
}

/* gradient nyatu di row header */
.ppid-table thead tr {
	background:
		radial-gradient(
			700px 220px at 20% 0%,
			rgba(255, 255, 255, 0.26),
			transparent 70%
		),
		linear-gradient(135deg, rgba(29, 78, 216, 0.96), rgba(56, 189, 248, 0.82));
}

.ppid-table thead th {
	background: transparent !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.22) !important;
	text-align: center !important;
	vertical-align: middle;
	font-weight: 800;
	white-space: nowrap;
	position: sticky; /* bantu beberapa browser */
	top: 0;
	z-index: 7;
}

.ppid-table tbody td {
	border-color: rgba(148, 163, 184, 0.14) !important;
	vertical-align: top;
	font-size: 13px;
	color: var(--ppid-ink);
}
.ppid-table tbody tr:hover td {
	background: rgba(56, 189, 248, 0.08);
}

/* kolom Uraian: left, sisanya right */
.ppid-table tbody td:nth-child(2) {
	text-align: left !important;
	white-space: normal !important;
	word-break: break-word;
}
.ppid-table tbody td:not(:nth-child(2)) {
	text-align: right;
}

/* row level */
.ppid-row-opd td {
	font-weight: 900;
	background: rgba(13, 152, 245, 0.25);
}
.ppid-row-program td {
	font-weight: 800;
	background: rgba(141, 209, 255, 0.28);
}
.ppid-row-kegiatan td {
	font-weight: 700;
	background: rgba(172, 222, 255, 0.2);
}
.ppid-row-subhead td {
	font-weight: 800;
	background: rgba(15, 23, 42, 0.04);
}
.ppid-row-sub td {
	background: #fff;
}

/* indent + mono */
.td-indent-1 {
	padding-left: 18px !important;
}
.td-indent-2 {
	padding-left: 36px !important;
}
.td-mono {
	font-family:
		ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
		"Courier New", monospace;
	font-size: 11px;
	color: rgba(15, 23, 42, 0.85);
}

/* =========================
   TFOOT (3 baris, beda warna, teks tengah)
   ========================= */
.ppid-table tfoot tr {
	z-index: 2;
} /* normal (tidak sticky) */

.ppid-table tfoot td {
	background: transparent !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.22) !important;
	font-weight: 800;
	vertical-align: middle;
	white-space: nowrap;
	font-size: 15px;
	/* text-align: center !important; <<< semua tengah */
	padding: 10px 12px;
}

/* Operasional */
.ppid-table tfoot tr.ppid-foot-opd {
	background:
		radial-gradient(
			700px 220px at 20% 0%,
			rgba(255, 255, 255, 0.18),
			transparent 70%
		),
		linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(56, 189, 248, 0.65));
}
/* Pegawai */
.ppid-table tfoot tr.ppid-foot-peg {
	background:
		radial-gradient(
			700px 220px at 20% 0%,
			rgba(255, 255, 255, 0.16),
			transparent 70%
		),
		linear-gradient(135deg, rgba(2, 132, 199, 0.92), rgba(107, 240, 255, 0.664));
}
/* Grand Total (beda sendiri) */
.ppid-table tfoot tr.ppid-foot-grand {
	background:
		radial-gradient(
			900px 260px at 20% 0%,
			rgba(255, 255, 255, 0.22),
			transparent 70%
		),
		linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(29, 78, 216, 0.92));
}
.ppid-table tfoot tr.ppid-foot-grand td {
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* =========================
   UTIL
   ========================= */
.ppid-no-justify {
	text-align: left !important;
}

.ppid-full {
	width: 100%;
	max-width: 100%;
	padding-left: 18px;
	padding-right: 18px;
}
@media (min-width: 1200px) {
	.ppid-full {
		padding-left: 28px;
		padding-right: 28px;
	}
}

/* rapikan spacing heading halaman (opsional) */
.ppid-tight-top .display-4 {
	margin-bottom: 18px !important;
}
.ppid-tight-top .mb-9 {
	margin-bottom: 18px !important;
}
.ppid-tight-top .ppid-recap {
	margin-top: 14px !important;
}
/* baris ke-2 thead untuk penomoran kolom */
.ppid-table thead tr:nth-child(2) {
	background: rgba(79, 83, 90, 0.247) !important; /* abu-abu soft */
}

.ppid-table thead tr:nth-child(2) th {
	background: transparent !important;
	color: rgba(15, 23, 42, 0.75) !important;
	font-size: 11px;
	font-weight: 700;
	text-align: center !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border-color: rgba(148, 163, 184, 0.25) !important;
}
/* baris nomor kolom: center horizontal + vertical */
.ppid-table thead tr.ppid-colnum th {
	text-align: center !important;
	vertical-align: middle !important;

	font-size: 11px;
	font-weight: 700;
	color: rgba(15, 23, 42, 0.75) !important;

	padding-top: 6px !important;
	padding-bottom: 6px !important;

	line-height: 1 !important;
	height: 28px; /* paksa tinggi baris */
}
