/* Catatan Kaki Table Styling */
/* Make the catatan-kaki table use fixed layout so column widths are respected */
#catatan-kaki .table-container table {
	table-layout: fixed;
	width: 100%;
	border-collapse: collapse;
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
}

/* Column width suggestions (No, NIK, Nama, Nomor SK, Catatan, Aksi) */
#catatan-kaki thead th:nth-child(1) { width: 56px; text-align:center; }
#catatan-kaki thead th:nth-child(2) { width: 150px; } /* NIK */
#catatan-kaki thead th:nth-child(3) { width: 220px; } /* Nama */
#catatan-kaki thead th:nth-child(4) { width: 220px; } /* Nomor SKPWNI */
#catatan-kaki thead th:nth-child(5) { width: auto; } /* Catatan (flexible) */
#catatan-kaki thead th:nth-child(6) { width: 120px; text-align:center; } /* Aksi */

/* Body cells */
#catatan-kaki tbody td { padding: 14px 12px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
#catatan-kaki tbody tr:hover { background: #fbfbfd; }

/* NIK font updated to the requested UI stack and keep truncate behavior */
#catatan-kaki tbody td:nth-child(2) {
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Nama truncate */
#catatan-kaki tbody td:nth-child(3) {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Nomor SK truncate */
#catatan-kaki tbody td:nth-child(4) {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #333;
	font-weight: 600;
}

/* Catatan allow wrapping but limit visual height */
#catatan-kaki tbody td:nth-child(5) {
	white-space: normal;
	max-height: 3.6em;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2em;
	color: #444;
	font-size: 0.95em;
}

/* Action buttons spacing */
#catatan-kaki tbody td:nth-child(6) .btn-sm {
	padding: 6px 8px;
	font-size: 0.9em;
	margin-right: 6px;
	min-width: 36px;
}

/* Pagination & page info */
#catatan-kaki + .pagination { margin-top: 12px; display:flex; align-items:center; gap:12px; }

/* Responsive tweaks */
@media (max-width: 900px) {
	#catatan-kaki thead th:nth-child(3) { width: 140px; }
	#catatan-kaki thead th:nth-child(4) { width: 140px; }
	#catatan-kaki tbody td { padding: 10px 8px; font-size: 12px; }
}
