/* tombol icon grafik di pojok kanan atas card */
.ph-card__header {
	position: relative;
}

.ph-card__chart-btn {
	margin-left: auto;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(240, 184, 0, 0.473);
	color: rgba(31, 31, 31, 0.92);
	box-shadow: 0 14px 30px rgba(2, 14, 40, 0.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition:
		transform 0.18s ease,
		background 0.18s ease,
		box-shadow 0.18s ease;
}

.ph-card__chart-btn:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.22);
	box-shadow: 0 18px 40px rgba(2, 14, 40, 0.22);
}

/* =========================
   Modal Detail Harian (PPID)
   ========================= */

/* modal xxl custom */
.modal-xxl {
	max-width: 1320px;
}

/* chart wrapper premium */
.ph-chart-wrap {
	position: relative;
	height: 420px;
	border-radius: 18px;
	background:
		radial-gradient(
			900px 420px at 10% 10%,
			rgba(56, 189, 248, 0.18),
			transparent 55%
		),
		radial-gradient(
			800px 360px at 90% 30%,
			rgba(29, 78, 216, 0.14),
			transparent 60%
		),
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.92),
			rgba(255, 255, 255, 0.84)
		);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 22px 60px rgba(2, 14, 40, 0.14);
	overflow: hidden;
	padding: 12px 12px 10px 12px;
}
.ph-chart-canvas {
	width: 100% !important;
	height: 100% !important;
}

#phChartModal .ph-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(56, 189, 248, 0.1);
	border: 1px solid rgba(29, 78, 216, 0.14);
	color: rgba(11, 18, 32, 0.78);
	font-weight: 800;
	font-size: 0.82rem;
}

#phChartModal .ph-chip b {
	color: rgba(11, 18, 32, 0.92);
}

#phChartModal .modal-body {
	padding: 12px 16px 14px 16px;
}
#phChartModal .modal-header {
	padding: 12px 16px;
}
#phChartModal .ph-detail-info {
	margin: 8px 0 10px 0;
}

#phDetailModal .modal-header {
	padding: 12px 16px;
}

#phDetailModal .modal-title {
	font-weight: 900;
	font-size: 1rem;
	line-height: 1.15;
}

#phDetailModal .ph-detail-subtitle {
	margin-top: 2px;
	font-size: 0.85rem;
	font-weight: 700;
	color: rgba(11, 18, 32, 0.6);
}

#phDetailModal .modal-body {
	padding: 10px 16px 14px 16px; /* bikin rapat, tidak “kosong” */
}

#phDetailModal .ph-detail-info {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 6px 0 10px 0;
}

#phDetailModal .ph-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(56, 189, 248, 0.1);
	border: 1px solid rgba(29, 78, 216, 0.14);
	color: rgba(11, 18, 32, 0.78);
	font-weight: 800;
	font-size: 0.82rem;
}

#phDetailModal .ph-chip b {
	color: rgba(11, 18, 32, 0.92);
}

#phDetailModal .ph-detail-table-wrap {
	max-height: 62vh;
	overflow: auto;
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
}

#phDetailModal .ph-detail-table {
	margin: 0;
	font-size: 0.88rem;
}

#phDetailModal .ph-detail-table thead th {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f8fafc;
	color: rgba(11, 18, 32, 0.72);
	font-weight: 900;
	white-space: nowrap;
	padding: 10px 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#phDetailModal .ph-detail-table tbody td {
	padding: 9px 10px;
	border-color: rgba(0, 0, 0, 0.06);
	white-space: nowrap;
}

/* angka rata kanan */
#phDetailModal .ph-detail-table thead th:last-child,
#phDetailModal .ph-detail-table tbody td.ph-price-cell {
	text-align: right;
}

/* highlight tanggal terbaru */
#phDetailModal .ph-detail-table tbody tr.ph-row-latest td {
	background: rgba(56, 189, 248, 0.14) !important;
	font-weight: 900;
}

#phDetailModal .ph-detail-table tbody tr:hover td {
	background: rgba(56, 189, 248, 0.08);
}

/* ===== Modal Detail Premium ===== */
#phDetailModal .modal-header {
	padding: 14px 16px;
}
#phDetailModal .modal-body {
	padding: 12px 12px 14px 12px;
}

/* ===== Modal Detail Harian: harga kanan + highlight latest ===== */
#phDetailModal table thead th:last-child,
#phDetailModal table tbody td.ph-price-cell {
	text-align: right;
	white-space: nowrap;
}

#phDetailModal table tbody tr.ph-row-latest td {
	background: rgba(56, 189, 248, 0.14) !important;
	font-weight: 900;
}

#phDetailModal table tbody tr:hover td {
	background: rgba(56, 189, 248, 0.08);
}
