/* Styling Modul Transparansi Mappi */
.page-id-7433 .site-content,
.page-id-7433 .ast-container,
.page-id-7433 #primary,
.page-id-7433 .entry-content {
	padding-top: 5px !important;
	max-width: 98% !important;
	width: 98% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.mappi-transparansi-wrapper {
	font-family: inherit;
	color: #1e293b;
	margin: -10px 0 0 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.mappi-transparansi-header {
	background: #9a2222;
	background: linear-gradient(135deg, #9a2222 0%, #a91a1a 100%);
	color: #ffffff;
	padding: 16px 20px;
	border-radius: 8px;
	margin-bottom: 12px;
	border-left: 4px solid #9a2222;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mappi-transparansi-header h2 {
	color: #ffffff;
	margin: 0 0 4px 0;
	font-size: 20px;
	font-weight: 700;
}

.mappi-transparansi-header p {
	color: #f1f5f9;
	margin: 0;
	font-size: 13px;
}

/* Controls: Search & Filter Box */
.mappi-transparansi-controls {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.mappi-search-box {
	flex: 1 1 280px;
	position: relative;
}

.mappi-search-box input {
	width: 100%;
	padding: 10px 14px 10px 38px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.mappi-search-box input:focus {
	border-color: #9a2222;
	box-shadow: 0 0 0 3px rgba(154, 34, 34, 0.12);
}

.mappi-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

.mappi-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mappi-search-icon .mappi-icon {
	width: 18px;
	height: 18px;
}

.mappi-filter-item {
	flex: 1 1 180px;
}

.mappi-filter-item select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	background-color: #fff;
	outline: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.mappi-filter-item select:focus {
	border-color: #9a2222;
	box-shadow: 0 0 0 3px rgba(154, 34, 34, 0.12);
}

/* Layout Views Tabs (Table vs OPD Cards) */
.mappi-view-switch {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.mappi-view-btn {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mappi-view-btn:hover {
	background: #f1f5f9;
	color: #1e293b;
}

.mappi-view-btn .mappi-icon {
	width: 15px;
	height: 15px;
}

.mappi-view-btn.active {
	background: #9a2222;
	color: #ffffff;
	border-color: #9a2222;
	box-shadow: 0 2px 6px rgba(154, 34, 34, 0.25);
}

/* Modern Data Table */
.mappi-table-container {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow-x: auto;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	width: 100%;
}

.mappi-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
}

.mappi-table th {
	background-color: #f8fafc;
	color: #334155;
	font-weight: 700;
	padding: 12px 14px;
	border-bottom: 2px solid #e2e8f0;
	white-space: nowrap;
}

.mappi-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.mappi-table td strong {
	color: #0f172a;
	font-weight: 600;
	display: block;
	line-height: 1.4;
}

.mappi-table tr:last-child td {
	border-bottom: none;
}

.mappi-table tr:hover {
	background-color: #fafbfc;
}

.mappi-tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
	position: relative;
	cursor: help;
	transition: all 0.2s ease;
}

.mappi-tag-opd {
	background: #fef2f2;
	color: #9a2222;
	border: 1px solid #fecaca;
}

.mappi-tag-year {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
	cursor: default;
}

/* INTERACTIVE TOOLTIP HOVER (CARA 1) */
.mappi-tooltip-trigger {
	position: relative;
}

.mappi-tooltip-trigger:hover::after,
.mappi-tooltip-trigger:focus::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background: #0f172a;
	color: #ffffff;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	border-radius: 6px;
	z-index: 1000;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
	pointer-events: none;
	line-height: 1.4;
}

.mappi-tooltip-trigger:hover::before,
.mappi-tooltip-trigger:focus::before {
	content: '';
	position: absolute;
	bottom: 105%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #0f172a transparent transparent transparent;
	z-index: 1000;
	pointer-events: none;
}

/* Action Buttons */
.mappi-btn-download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #9a2222;
	color: #ffffff !important;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.mappi-btn-download:hover {
	background: #7f1d1d;
}

.mappi-btn-preview {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	color: #334155 !important;
	border: 1px solid #cbd5e1;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mappi-btn-preview:hover {
	background: #fef2f2;
	color: #9a2222 !important;
	border-color: #fca5a5;
}

.mappi-no-data {
	text-align: center;
	padding: 40px 20px;
	color: #94a3b8;
}

/* Accordion Mode (Grouped by OPD) */
.mappi-opd-group {
	margin-bottom: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
}

.mappi-opd-group-header {
	background: #f8fafc;
	padding: 14px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-weight: 700;
	font-size: 15px;
	color: #1e293b;
	border-bottom: 1px solid transparent;
	transition: background 0.2s ease;
}

.mappi-opd-group-header:hover {
	background: #f1f5f9;
}

.mappi-opd-group.active .mappi-opd-group-header {
	border-bottom-color: #e2e8f0;
	background: #fffafa;
}

.mappi-opd-group-body {
	display: none;
	padding: 0;
}

.mappi-opd-group.active .mappi-opd-group-body {
	display: block;
}

/* Modal PDF Preview */
.mappi-modal-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.75);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.mappi-modal-backdrop.active {
	display: flex;
}

.mappi-modal-card {
	background: #fff;
	width: 100%;
	max-width: 900px;
	height: 85vh;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.mappi-modal-header {
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #020101 0%, #9a2222 100%);
	border-bottom: 2px solid #FBD463;
	color: #fff;
}

.mappi-modal-body {
	flex: 1;
	background: #f8fafc;
}

.mappi-modal-body iframe {
	width: 100%;
	height: 100%;
	border: none;
}