/* Dosen Data Manager - Frontend Styles
 *
 * Warna accent bisa di-override via Settings page (di-inject inline
 * sebagai CSS variable di container .ddm-frontend).
 */

.ddm-frontend {
	--ddm-accent: #2271b1;
	--ddm-accent-hover: #135e96;
	--ddm-accent-light: #f0f7ff;
	--ddm-text: #333;
	--ddm-text-muted: #666;
	--ddm-border: #e0e0e0;
	--ddm-bg: #ffffff;
	/* Default baris genap: biru transparan 8% (override per-instance dari Settings). */
	--ddm-bg-stripe: rgba(34,113,177,0.08);
	--ddm-radius: 6px;
	--ddm-shadow: 0 1px 3px rgba(0,0,0,0.08);

	margin: 24px 0;
	font-family: inherit;
	color: var(--ddm-text);
	/* Override theme content-width constraint (mis. 650px di Twenty Twenty-Five).
	 * Tabel dipaksa full-width mengikuti container parent, bukan dibatasi theme. */
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box;
}

/* Break-out: bila parent (entry-content) dibatasi theme ke sempit (mis. 650px),
 * tabel "keluar" ke full viewport width supaya benar-benar lebar.
 * Hanya aktif di layar cukup lebar agar mobile tetap aman. */
@media (min-width: 1024px) {
	.ddm-frontend.ddm-wide {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
	}
}

/* === Filter dropdown (inline, akan dipindahkan ke DataTables control via JS) === */
.ddm-inline-filters,
.ddm-filters {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Container host di dalam DataTables control area */
.ddm-controls,
.ddm-inline-filters-host {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

/* Label filter INLINE dengan select (di samping kiri, bukan di atas).
 * !important diperlukan karena banyak tema modern (mis. block themes) punya
 * rule global `label { display: block }` yang menimpa inline-flex di sini,
 * akibatnya label "Tahun"/"Semester" muncul di atas select. Scope .ddm-frontend
 * menaikkan specificity, dan !important memastikan menang walau tema pakai
 * selector label global. */
.ddm-frontend .ddm-filter-field {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.ddm-filter-label {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--ddm-text-muted);
	margin: 0;
	white-space: nowrap;
}

.ddm-filter-field select,
.ddm-frontend .ddm-select {
	padding: 0 28px 0 10px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background-color: #fff;
	font-size: 0.9em;
	color: #1d2327;
	cursor: pointer;
	min-width: 120px;
	height: 32px;
	line-height: 2;
	vertical-align: middle;
	/* Panah kustom (gaya WP) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233582c4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 18px 18px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transition: border-color 0.1s, box-shadow 0.1s;
}
.ddm-filter-field select:focus,
.ddm-frontend .ddm-select:focus {
	border-color: var(--ddm-accent);
	box-shadow: 0 0 0 1px var(--ddm-accent);
	outline: none;
}

/* === Table container ===
 * Tanpa border/box-shadow luar — biar tabel menyatu dengan halaman (lebih bersih).
 * Border tetap ada di tiap baris (row divider) supaya data mudah dibaca.
 */
.ddm-table-wrap {
	background: var(--ddm-bg);
	overflow: hidden;
}

.ddm-frontend .ddm-table {
	border-collapse: collapse;
	width: 100% !important;
	margin: 0 !important;
}

.ddm-frontend .ddm-table thead th {
	background: var(--ddm-accent);
	color: #fff;
	padding: 12px 14px;
	text-align: left;
	font-weight: 600;
	font-size: 0.85em;
	white-space: nowrap;
	border-bottom: 2px solid var(--ddm-accent-hover);
	cursor: pointer;
}
.ddm-frontend .ddm-table thead th:hover {
	background: var(--ddm-accent-hover);
}

.ddm-frontend .ddm-table tbody td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--ddm-border);
	vertical-align: top;
	font-size: 0.9em;
	line-height: 1.5;
}

/* Kolom tahun & semester: nowrap (sempit). */
.ddm-frontend .ddm-table td[data-col-key="tahun"],
.ddm-frontend .ddm-table th[data-col-key="tahun"],
.ddm-frontend .ddm-table td[data-col-key="semester"],
.ddm-frontend .ddm-table th[data-col-key="semester"] {
	white-space: nowrap !important;
}

/* Kolom konten lain: boleh word-wrap supaya tidak melebar tak terbatas.
 * Berlaku untuk td (data) DAN th (header). */
.ddm-frontend .ddm-table td[data-col-key="judul_artikel"],
.ddm-frontend .ddm-table td[data-col-key="nama_peneliti"],
.ddm-frontend .ddm-table td[data-col-key="nama_pengabdi"],
.ddm-frontend .ddm-table td[data-col-key="nama_dosen"],
.ddm-frontend .ddm-table td[data-col-key="judul_pengabdian"],
.ddm-frontend .ddm-table td[data-col-key="judul_ciptaan"],
.ddm-frontend .ddm-table td[data-col-key="publikasi"],
.ddm-frontend .ddm-table td[data-col-key="kategori"],
.ddm-frontend .ddm-table td[data-col-key="kategori_output"],
.ddm-frontend .ddm-table td[data-col-key="jenis_ciptaan"],
.ddm-frontend .ddm-table th[data-col-key="judul_artikel"],
.ddm-frontend .ddm-table th[data-col-key="nama_peneliti"],
.ddm-frontend .ddm-table th[data-col-key="nama_pengabdi"],
.ddm-frontend .ddm-table th[data-col-key="nama_dosen"],
.ddm-frontend .ddm-table th[data-col-key="judul_pengabdian"],
.ddm-frontend .ddm-table th[data-col-key="judul_ciptaan"],
.ddm-frontend .ddm-table th[data-col-key="publikasi"],
.ddm-frontend .ddm-table th[data-col-key="kategori"],
.ddm-frontend .ddm-table th[data-col-key="kategori_output"],
.ddm-frontend .ddm-table th[data-col-key="jenis_ciptaan"] {
	white-space: normal !important;
	word-wrap: break-word !important;
	overflow-wrap: anywhere !important;
	max-width: 360px;
}

/* Lebar spesifik per kelompok kolom (override blok bersama di atas).
 * - Nama: sempit & tetap wrap (bisa multiple baris).
 * - Judul: paling lebar agar teks panjang terbaca utuh.
 * - Kategori/publikasi/jenis: sedikit lebih lebar dari nama.
 * !important diperlukan karena DataTables set lebar kolom saat init. */
.ddm-frontend .ddm-table td[data-col-key="nama_peneliti"],
.ddm-frontend .ddm-table td[data-col-key="nama_pengabdi"],
.ddm-frontend .ddm-table td[data-col-key="nama_dosen"],
.ddm-frontend .ddm-table th[data-col-key="nama_peneliti"],
.ddm-frontend .ddm-table th[data-col-key="nama_pengabdi"],
.ddm-frontend .ddm-table th[data-col-key="nama_dosen"] {
	width: 140px !important;
	max-width: 180px !important;
	min-width: 110px;
}

.ddm-frontend .ddm-table td[data-col-key="judul_artikel"],
.ddm-frontend .ddm-table td[data-col-key="judul_pengabdian"],
.ddm-frontend .ddm-table td[data-col-key="judul_ciptaan"],
.ddm-frontend .ddm-table th[data-col-key="judul_artikel"],
.ddm-frontend .ddm-table th[data-col-key="judul_pengabdian"],
.ddm-frontend .ddm-table th[data-col-key="judul_ciptaan"] {
	width: 40% !important;
	max-width: 640px !important;
	min-width: 280px;
}

.ddm-frontend .ddm-table td[data-col-key="kategori"],
.ddm-frontend .ddm-table td[data-col-key="kategori_output"],
.ddm-frontend .ddm-table td[data-col-key="jenis_ciptaan"],
.ddm-frontend .ddm-table td[data-col-key="publikasi"],
.ddm-frontend .ddm-table th[data-col-key="kategori"],
.ddm-frontend .ddm-table th[data-col-key="kategori_output"],
.ddm-frontend .ddm-table th[data-col-key="jenis_ciptaan"],
.ddm-frontend .ddm-table th[data-col-key="publikasi"] {
	width: 200px !important;
	max-width: 260px !important;
	min-width: 150px;
}

/* Zebra: baris ganjil putih, baris genap warna stripe (default biru transparan).
 * Baris ganjil di-set eksplisit putih supaya tidak terbawa background tema.
 *
 * PENTING: DataTables (class `display`) mengecat baris via box-shadow inset
 * transparan pada td, BUKAN background. Karena itu set background di tr saja
 * tidak cukup — overlay box-shadow itu tetap menumpuk dan menimbulkan warna
 * abu/oranye. Kita disable overlay DataTables di sini supaya background zebra
 * kita yang dipakai. */
.ddm-frontend .ddm-table tbody tr:nth-child(odd) {
	background: var(--ddm-bg);
}
.ddm-frontend .ddm-table tbody tr:nth-child(even) {
	background: var(--ddm-bg-stripe);
}
/* Matikan overlay box-shadow bawaan DataTables:
 *  - nth-child(odd)>* : stripe overlay (var(--dt-row-stripe), default hitam).
 *  - .sorting_1/2/3   : highlight kolom yang sedang di-sort (3 kolom awal terlihat
 *    lebih gelap/abu karena default-sort tahun+semester+judul). Plugin pakai
 *    warna teks sendiri utk tahun, jadi highlight ini tidak diperlukan.
 *
 * PENTING — specificity: DataTables menulis rule sbg
 *   table.dataTable.display>tbody>tr:nth-child(odd)>.sorting_1   (0,4,3)
 * Selector di bawah sengaja menyertakan elemen table + tbody + tr + pseudo/class
 * .odd/.even supaya specificity menyamai DataTables (0,4,3), dan karena CSS ini
 * di-load SETELAH DataTables (dependency di wp_register_style), rule kita menang. */
.ddm-frontend table.ddm-table tbody tr > .sorting_1,
.ddm-frontend table.ddm-table tbody tr > .sorting_2,
.ddm-frontend table.ddm-table tbody tr > .sorting_3,
.ddm-frontend table.ddm-table tbody tr:nth-child(odd) > .sorting_1,
.ddm-frontend table.ddm-table tbody tr:nth-child(odd) > .sorting_2,
.ddm-frontend table.ddm-table tbody tr:nth-child(odd) > .sorting_3,
.ddm-frontend table.ddm-table tbody tr:nth-child(even) > .sorting_1,
.ddm-frontend table.ddm-table tbody tr:nth-child(even) > .sorting_2,
.ddm-frontend table.ddm-table tbody tr:nth-child(even) > .sorting_3,
.ddm-frontend table.ddm-table tbody tr.even > .sorting_1,
.ddm-frontend table.ddm-table tbody tr.even > .sorting_2,
.ddm-frontend table.ddm-table tbody tr.even > .sorting_3,
.ddm-frontend table.ddm-table tbody tr.odd > .sorting_1,
.ddm-frontend table.ddm-table tbody tr.odd > .sorting_2,
.ddm-frontend table.ddm-table tbody tr.odd > .sorting_3,
.ddm-frontend table.ddm-table tbody tr:nth-child(odd) > *,
.ddm-frontend table.ddm-table tbody tr:nth-child(even) > *,
.ddm-frontend table.ddm-table tbody tr.odd > *,
.ddm-frontend table.ddm-table tbody tr.even > * {
	box-shadow: none !important;
}

.ddm-frontend .ddm-table tbody tr:hover {
	background: var(--ddm-accent-light) !important;
}

/* Kolom tahun menonjol */
.ddm-frontend .ddm-table tbody td:first-child {
	font-weight: 700;
	color: var(--ddm-accent);
}

/* Multi-line list (nama dosen HAKI) */
.ddm-frontend .ddm-multiline {
	margin: 0;
	padding-left: 18px;
}
.ddm-frontend .ddm-multiline li {
	list-style: disc;
	margin: 2px 0;
}

/* === Link dokumen sebagai button === */
.ddm-doc-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	padding: 6px 14px !important;
	background: var(--ddm-accent) !important;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none !important;
	font-size: 0.85em;
	font-weight: 600;
	white-space: nowrap;
	border: none;
	/* No transition/transform — biar tombol polos tanpa animasi naik-turun. */
}
.ddm-doc-btn:hover,
.ddm-doc-btn:focus {
	background: var(--ddm-accent-hover) !important;
	color: #fff !important;
}
.ddm-doc-icon {
	font-size: 1em;
	line-height: 1;
}
/* Icon dokumen (dashicons media-document) di dalam tombol "Lihat". */
.ddm-doc-btn .dashicons {
	margin: 0 !important;
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	vertical-align: middle;
}
.ddm-doc-na {
	color: #ccc;
	font-size: 1.2em;
}

/* === DataTables control elements ===
 * .top = flex container agar filter+length (kiri) dan search (kanan) sebaris.
 */
.ddm-frontend .dataTables_wrapper {
	padding: 12px 14px;
	overflow-x: auto;
}

.ddm-frontend .top,
.ddm-frontend .ddm-table_wrapper > .top {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 6px;
}
.ddm-frontend .ddm-controls,
.ddm-frontend .ddm-controls-left {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.ddm-frontend .dt-search,
.ddm-frontend .dataTables_filter {
	margin-left: auto;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
}

.ddm-frontend .dataTables_length,
.ddm-frontend .dataTables_filter,
.ddm-frontend .dt-length,
.ddm-frontend .dt-search {
	font-size: 0.85em;
	margin-bottom: 0;
	color: var(--ddm-text-muted);
	float: left;
}
.ddm-frontend .dataTables_filter,
.ddm-frontend .dt-search {
	float: right;
}

/* Select "Show X entries" — gaya WP-native.
 * Hanya target SELECT (bukan input) — input search juga class .dt-input
 * tapi tidak boleh dapat panah SVG atau max-width sempit.
 * Label teks "Tampilkan ... data" dihapus via JS; di sini cukup sisakan select.
 * Lebar diperkecil agar muat angka pendek (5/10/25/.../Semua) tanpa ruang kosong. */
.ddm-frontend .dataTables_length,
.ddm-frontend .dt-length {
	padding: 0;
}
.ddm-frontend .dataTables_length select,
.ddm-frontend .dt-length select,
.ddm-frontend select.dt-input {
	padding: 0 24px 0 8px;
	margin: 0;
	width: 60px;
	min-width: 60px;
	max-width: 60px;
	height: 28px;
	line-height: 1.4;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 0.8em;
	color: #1d2327;
	background-color: #fff;
	vertical-align: middle;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233582c4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: 14px 14px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transition: border-color 0.1s, box-shadow 0.1s;
}
.ddm-frontend .dataTables_length select:focus,
.ddm-frontend .dt-length select:focus,
.ddm-frontend select.dt-input:focus {
	border-color: var(--ddm-accent);
	box-shadow: 0 0 0 1px var(--ddm-accent);
	outline: none;
}

/* Search box — lebar, gaya WP-native.
 * JANGAN kasih background-image panah (input search bukan dropdown). */
.ddm-frontend .dataTables_filter input,
.ddm-frontend .dt-search input,
.ddm-frontend input.dt-input {
	padding: 0 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	margin-left: 6px;
	width: 320px !important;
	max-width: 45vw;
	min-width: 180px;
	height: 32px;
	line-height: 2;
	font-size: 0.9em;
	color: #1d2327;
	background-color: #fff;
	background-image: none !important;
	vertical-align: middle;
	box-sizing: border-box;
	transition: border-color 0.1s, box-shadow 0.1s;
}
.ddm-frontend .dataTables_filter input:focus,
.ddm-frontend .dt-search input:focus,
.ddm-frontend input.dt-input:focus {
	border-color: var(--ddm-accent);
	box-shadow: 0 0 0 1px var(--ddm-accent);
	outline: none;
}

/* === Bottom container: info (kiri) + pagination (kanan) sejajar ===
 * Pakai flex agar "Menampilkan X dari Y data" di kiri bawah
 * dan navigasi ‹ › di kanan bawah, sebaris rapi.
 */
.ddm-frontend .bottom,
.ddm-frontend .ddm-table_wrapper > .bottom {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
	padding-top: 4px;
}

/* Info text "Menampilkan X sampai Y dari Z data" */
.ddm-frontend .dataTables_info,
.ddm-frontend .dt-info {
	font-size: 0.85em;
	color: var(--ddm-text-muted);
	margin: 0;
	padding: 0;
	font-weight: 400;
}

/* Pagination — tombol panah, gaya konsisten */
.ddm-frontend .dataTables_paginate,
.ddm-frontend .dt-paging {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 2px;
}
.ddm-frontend .dataTables_paginate .paginate_button,
.ddm-frontend .dt-paging .dt-paging-button,
.ddm-frontend .dt-paging-button {
	padding: 0 10px !important;
	margin: 0 2px !important;
	border-radius: 4px !important;
	border: 1px solid transparent !important;
	color: var(--ddm-accent) !important;
	background: transparent !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	min-width: 32px;
	min-height: 32px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	cursor: pointer;
	transition: background 0.1s, border-color 0.1s;
}
.ddm-frontend .dataTables_paginate .paginate_button:hover,
.ddm-frontend .dt-paging .dt-paging-button:hover:not(.disabled),
.ddm-frontend .dt-paging-button:hover:not(.disabled) {
	background: var(--ddm-accent-light) !important;
	border-color: var(--ddm-accent) !important;
	color: var(--ddm-accent-hover) !important;
}
/* Tombol pagination aktif (.current): background biru + teks PUTIH.
 * Selector sengaja menyertakan struktur DataTables (div.dt-container .dt-paging
 * + elemen button/a) supaya specificity menyamai/mengalahkan rule bawaan
 * DataTables `div.dt-container .dt-paging .dt-paging-button.current:hover { color: inherit !important }`
 * yang (tanpa ini) membuat teks mewarisi warna hitam tema. */
.ddm-frontend div.dt-container .dt-paging button.dt-paging-button.current,
.ddm-frontend div.dt-container .dt-paging button.dt-paging-button.current:hover,
.ddm-frontend div.dt-container .dt-paging a.dt-paging-button.current,
.ddm-frontend div.dt-container .dt-paging a.dt-paging-button.current:hover,
.ddm-frontend .dt-paging button.dt-paging-button.current,
.ddm-frontend .dt-paging button.dt-paging-button.current:hover,
.ddm-frontend .dt-paging a.dt-paging-button.current,
.ddm-frontend .dt-paging a.dt-paging-button.current:hover,
.ddm-frontend .dt-paging-button.current,
.ddm-frontend .dt-paging-button.current:hover,
.ddm-frontend .dataTables_paginate .paginate_button.current,
.ddm-frontend .dataTables_paginate .paginate_button.current:hover {
	background: var(--ddm-accent) !important;
	border-color: var(--ddm-accent) !important;
	color: #ffffff !important;
}
/* Pastikan elemen anak (span/a di dalam tombol aktif) juga putih, walau tema
 * set color !important pada button/a. */
.ddm-frontend .dt-paging-button.current *,
.ddm-frontend .dataTables_paginate .paginate_button.current * {
	color: #ffffff !important;
}
.ddm-frontend .dataTables_paginate .paginate_button.disabled,
.ddm-frontend .dataTables_paginate .paginate_button.disabled:hover,
.ddm-frontend .dt-paging .dt-paging-button.disabled,
.ddm-frontend .dt-paging .dt-paging-button.disabled:hover,
.ddm-frontend .dt-paging-button.disabled,
.ddm-frontend .dt-paging-button.disabled:hover {
	color: #c3c4c7 !important;
	background: transparent !important;
	border-color: transparent !important;
	cursor: default;
	opacity: 0.6;
}
/* Clear float untuk layout dom lama.
 * Karena .bottom sekarang flex, div ini disembunyikan agar pagination
 * benar-benar di ujung kanan (bukan di tengah karena 3rd flex item). */
.ddm-clear {
	display: none !important;
}

/* Responsive: tombol + di baris collapsed */
.ddm-frontend table.dataTable.dtr-inline.collapsed tbody td:first-child:before,
.ddm-frontend table.dataTable.dtr-inline.collapsed tbody th:first-child:before {
	background-color: var(--ddm-accent);
	border-radius: 50%;
	top: 10px;
}
.ddm-frontend .dtr-title {
	font-weight: 600;
	color: var(--ddm-accent);
}

/* === Heading kategori di atas tabel (opsional, bisa dimatikan via shortcode) === */
.ddm-table-title {
	font-size: 1.25em;
	font-weight: 700;
	color: var(--ddm-text);
	margin: 0 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--ddm-accent);
}

/* === Responsive mobile === */
@media (max-width: 768px) {
	.ddm-inline-filters,
	.ddm-filters,
	.ddm-controls,
	.ddm-inline-filters-host {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.ddm-filter-field {
		width: 100%;
	}
	.ddm-filter-field select {
		width: 100%;
	}
	.ddm-frontend .dataTables_filter,
	.ddm-frontend .dt-search {
		float: none;
		margin-bottom: 12px;
	}
	.ddm-frontend .dataTables_filter input,
	.ddm-frontend .dt-search input {
		width: 100%;
		min-width: 0;
	}
	.ddm-frontend .dataTables_length,
	.ddm-frontend .dt-length {
		float: none;
		margin-bottom: 8px;
	}
	.ddm-frontend .bottom,
	.ddm-frontend .ddm-table_wrapper > .bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.ddm-frontend .dataTables_wrapper {
		padding: 8px;
	}
	.ddm-frontend .ddm-table thead th {
		padding: 10px 8px;
		font-size: 0.8em;
	}
	.ddm-frontend .ddm-table tbody td {
		padding: 9px 8px;
		font-size: 0.85em;
	}
	/* Mobile: tombol "Lihat" jadi icon saja (text disembunyikan) biar kolom lebih sempit. */
	.ddm-doc-btn {
		display: inline-flex !important;
		padding: 5px 8px !important;
		min-width: 32px;
		min-height: 32px;
		justify-content: center;
	}
	.ddm-doc-btn .ddm-doc-text {
		display: none;
	}
}

@media (max-width: 480px) {
	.ddm-frontend .dataTables_paginate .paginate_button {
		padding: 4px 8px !important;
		margin: 1px;
	}
}

/* === Ellipsis pagination (...) === */
.ddm-frontend .ddm-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
	padding: 0 6px;
	color: var(--ddm-text-muted);
	cursor: default;
	user-select: none;
}

/* Sembunyikan nomor halaman yang di-hide oleh condense pagination. */
.ddm-frontend .dt-paging-button.ddm-hidden-page {
	display: none !important;
}
