/* ==========================================================================
   Transaksi & publik (prefix kxp-)
   Halaman di luar dasbor: checkout, perpanjang, bayar (invoice), terima kasih,
   status pembayaran/produk, aktivasi akun, bagikan undangan, pesan klien, RSVP.
   Bingkai = AuthShell web: latar olive penuh + jalur undangan putus-putus +
   watermark amplop, kartu putih radius 20px, logo gelap, hak cipta bertitik emas.
   style.css lama dimuat SETELAH file ini dan penuh !important, jadi selektor
   diawali `html body` dan !important dipakai hanya untuk menimpa gaya lama.
   ========================================================================== */

/* ---------- Latar halaman ---------- */
html body#kt_body:has(.kxp) {
	background: var(--kx-olive) !important;
	background-image: none !important;
}

/* Modal dicetak di luar .kxp (supaya di atas backdrop), jadi butuh --kx-brand sendiri;
   tanpa ini tombol utama & tab aktif jadi teks putih tanpa latar. */
html body .kxp-modal { --kx-brand: var(--kx-olive); }

html body .kxp {
	--kx-brand: var(--kx-olive);
	position: relative;
	display: flex;
	flex: 1 0 auto; /* body Metronic = flex kolom setinggi layar; tanpa shrink 0 + overflow clip, isi panjang terpotong & tidak bisa digulir */
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 0 16px;
	overflow: clip;
	background: var(--kx-brand);
	color: var(--kx-ink);
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
html body .kxp :is(h1, h2, h3, p, dl, dd, ul, ol) { margin: 0; }
html body .kxp :is(ul, ol) { padding: 0; list-style: none; }
html body .kxp a { text-decoration: none; }
html body :is(.kxp, .kxp-modal) .kxp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hiasan: jalur undangan & amplop (di bawah konten, tanpa membuat stacking context) */
html body .kxp .kxp-jalur { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html body .kxp .kxp-watermark {
	position: absolute;
	right: -80px;
	bottom: -96px;
	color: rgb(255 255 255 / .06);
	font-size: 560px;
	line-height: 1;
	transform: rotate(12deg);
	pointer-events: none;
}

html body .kxp .kxp-corner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
	max-width: 1024px;
	height: 64px;
	margin-inline: auto;
}
html body .kxp .kxp-corner a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 10px;
	color: rgb(255 255 255 / .7) !important;
	font-size: 13px;
	font-weight: 500;
	transition: color .15s;
}
html body .kxp .kxp-corner a:hover { color: #fff !important; }
html body .kxp .kxp-corner i { font-size: 16px; }

html body .kxp .kxp-main {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	max-width: 440px;
	margin-inline: auto;
	padding: 8px 0 40px;
	animation: kxp-in .25s ease-out backwards; /* bukan both: transform yang tertahan mengurung modal di bawah backdrop */
}
html body .kxp .kxp-main--wide { justify-content: flex-start; max-width: 1024px; padding-bottom: 48px; }
@keyframes kxp-in { from { opacity: 0; } to { opacity: 1; } }

html body .kxp .kxp-card {
	padding: 36px;
	border-radius: 20px;
	background: #fff;
	color: var(--kx-ink);
	box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 16px 40px -16px rgb(0 0 0 / .28);
}
html body .kxp .kxp-main--wide .kxp-card { padding: 40px 48px 48px; }
html body .kxp .kxp-logo { display: block; width: fit-content; margin-bottom: 32px; }
html body .kxp .kxp-logo img { display: block; width: auto; height: 36px; max-width: 160px; object-fit: contain; }
html body .kxp .kxp-logo-text { color: var(--kx-ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
html body .kxp .kxp-copyright {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	color: rgb(255 255 255 / .7);
	font-size: 12px;
	text-align: center;
}
html body .kxp .kxp-copyright::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--kx-gold); }
html body .kxp .kxp-copyright a { color: inherit !important; }

/* ---------- Teks ---------- */
html body .kxp .kxp-head { margin-bottom: 28px; }
html body .kxp .kxp-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
html body .kxp .kxp-title {
	color: var(--kx-ink) !important;
	font-family: inherit !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: 1.25;
	letter-spacing: -.02em;
	text-transform: none !important;
	text-wrap: balance;
}
html body .kxp .kxp-lead { margin-top: 6px; color: var(--kx-muted); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
html body .kxp .kxp-meta { color: var(--kx-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
html body .kxp .kxp-muted { color: var(--kx-muted); }
html body .kxp .kxp-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--kx-ink) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: -.01em;
}
html body .kxp .kxp-section-title i { color: var(--kx-brand); font-size: 18px; }
html body .kxp .kxp-label { display: block; margin: 0 0 8px; color: var(--kx-ink) !important; font-size: 13px !important; font-weight: 500 !important; }
html body .kxp .kxp-hint { margin-top: 6px; color: var(--kx-muted); font-size: 12px; line-height: 1.5; }
html body .kxp .kxp-link { color: var(--kx-brand) !important; font-weight: 500; text-decoration: underline !important; text-decoration-color: rgb(72 83 73 / .3) !important; text-underline-offset: 3px; }
html body .kxp .kxp-link:hover { text-decoration-color: currentColor !important; }

/* ---------- Tombol ---------- */
html body .kxp .kxp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px !important;
	border: 1px solid transparent !important;
	border-radius: 10px !important;
	background: var(--kx-brand) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1;
	text-transform: none !important;
	white-space: nowrap;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s !important;
}
html body .kxp .kxp-btn:hover { background: var(--kx-ink) !important; transform: none !important; }
/* style.css lama mewarnai #checkout_btn emas lewat ID; di kartu putih tombol utama tetap olive. */
html body .kxp #checkout_btn.kxp-btn { background: var(--kx-brand) !important; color: #fff !important; }
html body .kxp #checkout_btn.kxp-btn:hover { background: var(--kx-ink) !important; }
html body .kxp .kxp-btn:active { transform: scale(.98) !important; }
html body .kxp .kxp-btn:disabled { opacity: .6; cursor: default; }
html body .kxp .kxp-btn i { font-size: 17px; }
html body .kxp .kxp-btn--block { width: 100%; }
html body .kxp .kxp-btn--sm { min-height: 40px; padding: 0 14px !important; font-size: 13px !important; font-weight: 500 !important; }
html body .kxp .kxp-btn--sm i { font-size: 15px; }
html body .kxp .kxp-btn--ghost { border-color: var(--kx-line-strong) !important; background: #fff !important; color: var(--kx-ink) !important; }
html body .kxp .kxp-btn--ghost:hover { border-color: var(--kx-ink) !important; background: var(--kx-bg) !important; }
html body .kxp .kxp-btn--soft { background: var(--kx-soft) !important; color: var(--kx-brand) !important; }
html body .kxp .kxp-btn--soft:hover { background: #DCE4DD !important; color: var(--kx-ink) !important; }
html body .kxp .kxp-btn--danger { border-color: rgb(192 61 61 / .25) !important; background: #fff !important; color: var(--kx-danger) !important; }
html body .kxp .kxp-btn--danger:hover { border-color: var(--kx-danger) !important; background: var(--kx-danger-soft) !important; }
html body .kxp .kxp-btn--icon { width: 36px; min-height: 36px; padding: 0 !important; }

html body .kxp :is(a, button, input, select, textarea, label[tabindex]):focus-visible,
html body .kxp-modal :is(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--kx-ink) !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px rgb(250 194 115 / .45) !important;
}

/* Indikator memuat (disableButton di wds.js memasang data-kt-indicator="on") */
html body .kxp .indicator-progress { display: none; }
html body .kxp [data-kt-indicator="on"] .indicator-label { display: none !important; }
html body .kxp [data-kt-indicator="on"] .indicator-progress { display: inline-flex !important; align-items: center; gap: 8px; }

/* ---------- Pil status ---------- */
html body .kxp .kxp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--kx-bg); color: var(--kx-muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
html body .kxp .kxp-pill--warn { background: var(--kx-warning-soft); color: var(--kx-gold-text); }
html body .kxp .kxp-pill--ok { background: var(--kx-ok-soft); color: var(--kx-ok); }
html body .kxp .kxp-pill--danger { background: var(--kx-danger-soft); color: var(--kx-danger); }
html body .kxp .kxp-pill--info { background: var(--kx-info-soft); color: var(--kx-info); }

/* ---------- Kotak catatan ---------- */
html body .kxp .kxp-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--kx-bg); color: var(--kx-text); font-size: 13px; line-height: 1.55; }
html body .kxp .kxp-note > i { flex-shrink: 0; margin-top: 1px; color: var(--kx-brand); font-size: 18px; }
html body .kxp .kxp-note--ok { background: var(--kx-ok-soft); color: var(--kx-ok); }
html body .kxp .kxp-note--ok > i { color: var(--kx-ok); }
html body .kxp .kxp-note--warning { background: var(--kx-warning-soft); box-shadow: inset 0 0 0 1px rgb(217 154 50 / .25); color: var(--kx-gold-text); }
html body .kxp .kxp-note--warning > i { color: var(--kx-warning); }
html body .kxp .kxp-note--danger { background: var(--kx-danger-soft); box-shadow: inset 0 0 0 1px rgb(192 61 61 / .18); color: var(--kx-danger); }
html body .kxp .kxp-note--danger > i { color: var(--kx-danger); }

/* ---------- Baris detail (dl) ---------- */
html body .kxp .kxp-rows { border-top: 1px solid var(--kx-line); }
html body .kxp .kxp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--kx-line); }
html body .kxp .kxp-row dt { display: flex; align-items: center; gap: 8px; color: var(--kx-muted); font-size: 14px; font-weight: 400; }
html body .kxp .kxp-row dt i { color: var(--kx-subtle); font-size: 16px; }
html body .kxp .kxp-row dd { color: var(--kx-ink); font-size: 14px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
html body .kxp .kxp-row dd small { margin-left: 4px; color: var(--kx-muted); font-size: 12px; font-weight: 400; }

/* ---------- Bagian (section) di dalam kartu ---------- */
html body .kxp .kxp-section + .kxp-section { margin-top: 32px; }

/* ---------- Checkout & perpanjang: dua kolom ---------- */
html body .kxp .kxp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; gap: 40px; }
html body .kxp .kxp-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
html body .kxp .kxp-panel { padding: 20px; border-radius: 16px; background: var(--kx-bg); box-shadow: 0 0 0 1px var(--kx-line); }
html body .kxp .kxp-panel .kxp-section-title { margin-bottom: 14px; font-size: 15px !important; }

/* Add-on */
html body .kxp .kxp-addons { display: flex; flex-direction: column; gap: 8px; }
html body .kxp .kxp-addon .form-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 0;
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--kx-line);
	transition: box-shadow .15s, background-color .15s;
}
html body .kxp .kxp-addon .form-check:hover { box-shadow: 0 0 0 1px var(--kx-line-strong); }
html body .kxp .kxp-addon .form-check:has(input:checked) { background: var(--kx-bg); box-shadow: 0 0 0 1.5px var(--kx-brand); }
html body .kxp .kxp-addon .form-check-input { flex-shrink: 0; float: none; margin: 2px 0 0 !important; }
html body .kxp .kxp-addon .form-check-label { color: var(--kx-ink) !important; font-size: 14px; font-weight: 500 !important; line-height: 1.5; }
html body .kxp .kxp-addon .form-check-label a { color: var(--kx-brand) !important; text-decoration: underline; }

/* Metode pembayaran */
html body .kxp .kxp-gateways { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
html body .kxp .kxp-gateway {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	margin: 0;
	padding: 12px 16px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--kx-ink) !important;
	box-shadow: 0 0 0 1px var(--kx-line) !important;
	text-align: left;
	cursor: pointer;
	transition: box-shadow .15s, background-color .15s !important;
}
html body .kxp .kxp-gateway:hover { box-shadow: 0 0 0 1px var(--kx-line-strong) !important; transform: none !important; }
html body .kxp .kxp-gateway:has(input:checked) { background: var(--kx-bg) !important; box-shadow: 0 0 0 1.5px var(--kx-brand) !important; }
html body .kxp .kxp-gateway .form-check { flex-shrink: 0; min-height: 0; margin: 0 !important; padding: 0; }
html body .kxp .kxp-gateway .form-check-input { float: none; margin: 0 !important; }
html body .kxp .kxp-gateway img { display: block; width: auto; max-width: 100%; height: auto; max-height: 32px; object-fit: contain; }
html body .kxp .kxp-gateway-name { color: var(--kx-ink); font-size: 14px; font-weight: 500; line-height: 1.35; }

/* Radio & centang: warna merek */
html body .kxp .form-check-input,
html body .kxp-modal .form-check-input { border-color: var(--kx-line-strong); background-color: #fff; }
html body .kxp .form-check-input:checked,
html body .kxp-modal .form-check-input:checked { border-color: var(--kx-brand) !important; background-color: var(--kx-brand) !important; }

/* Isian (kupon, akun di partials/auth.php, sandi RSVP) */
html body .kxp .kxp-input,
html body .kxp .chk-card.account .form-control,
html body .kxp .kxp-account .form-control {
	height: 44px;
	padding: 0 14px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--kx-bg) !important;
	color: var(--kx-ink) !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 400 !important;
	box-shadow: inset 0 0 0 1px rgb(48 59 50 / .1) !important;
	transition: box-shadow .15s, background-color .15s;
}
html body .kxp .kxp-input:hover,
html body .kxp .chk-card.account .form-control:hover { box-shadow: inset 0 0 0 1px rgb(48 59 50 / .2) !important; }
html body .kxp .kxp-input:focus,
html body .kxp .chk-card.account .form-control:focus,
html body .kxp .kxp-account .form-control:focus { outline: 0 !important; background: #fff !important; box-shadow: inset 0 0 0 1px var(--kx-ink), 0 0 0 4px rgb(250 194 115 / .35) !important; }
html body .kxp :is(.kxp-input, .form-control)::placeholder { color: var(--kx-subtle); }
html body .kxp :is(.kxp-input, .form-control):disabled { color: var(--kx-muted) !important; opacity: 1; }

/* partials/auth.php (Detail akun) di dalam checkout: dipakai apa adanya, ditata ulang di sini */
html body .kxp .chk-card.account {
	margin: 32px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
html body .kxp .chk-card.account .chk-card-title {
	display: flex !important;
	align-items: center;
	gap: 8px !important;
	margin: 0 0 14px !important;
	color: var(--kx-ink) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: -.01em;
}
html body .kxp .chk-card.account .chk-card-title i { color: var(--kx-brand) !important; font-size: 18px !important; }
html body .kxp .chk-card.account .chk-card-title .btn {
	height: 32px;
	margin-left: auto;
	padding: 0 12px !important;
	border-radius: 999px !important;
	background: var(--kx-soft) !important;
	color: var(--kx-brand) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 32px;
	box-shadow: none !important;
}
html body .kxp .chk-card.account .chk-card-title .btn:hover { background: #DCE4DD !important; color: var(--kx-ink) !important; }
html body .kxp .chk-card.account .input-group { position: relative; flex-wrap: wrap; border: 0 !important; background: transparent !important; box-shadow: none !important; }
html body .kxp .chk-card.account .input-group-text {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	height: 44px;
	padding: 0 0 0 14px !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--kx-subtle) !important;
	pointer-events: none;
}
html body .kxp .chk-card.account .input-group-text i { color: var(--kx-subtle) !important; font-size: 18px !important; }
html body .kxp .chk-card.account .input-group .form-control { width: 100%; padding-left: 44px !important; border-radius: 10px !important; }
html body .kxp .chk-card.account .toggle-password { top: 22px !important; right: 4px; color: var(--kx-subtle) !important; }
html body .kxp .chk-card.account .text-muted { color: var(--kx-muted) !important; font-size: 12px !important; }
html body .kxp .chk-card.account .fv-plugins-message-container { flex: 0 0 100%; width: 100%; margin-top: 6px; color: var(--kx-danger); font-size: 12px; }

/* partials/sk.php (syarat & ketentuan) */
html body .kxp .kxp-sk { margin-top: 32px; }
html body .kxp .kxp-sk h2 { margin: 0 0 12px !important; color: var(--kx-ink) !important; font-size: 16px !important; font-weight: 600 !important; }
html body .kxp .kxp-sk .scroll { height: 220px !important; padding: 16px !important; border: 0 !important; border-radius: 12px; background: var(--kx-bg); box-shadow: inset 0 0 0 1px var(--kx-line); color: var(--kx-text); font-size: 13px; line-height: 1.65; }
html body .kxp .kxp-sk .border.rounded-10 { padding: 12px 14px !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 0 0 1px var(--kx-line); }
html body .kxp .kxp-sk .border.rounded-10.border-danger { box-shadow: 0 0 0 1.5px var(--kx-danger); }
html body .kxp .kxp-sk .form-check { display: flex; align-items: flex-start; gap: 10px; padding: 0; }
html body .kxp .kxp-sk .form-check-input { flex-shrink: 0; float: none; margin: 2px 0 0 !important; }
html body .kxp .kxp-sk .form-check-label { color: var(--kx-ink) !important; font-size: 13px; line-height: 1.5; }

/* Kupon */
html body .kxp .kxp-coupon { display: flex; gap: 8px; }
html body .kxp .kxp-coupon .kxp-input { flex: 1; min-width: 0; background: #fff !important; }
html body .kxp .kxp-coupon .kxp-btn { flex-shrink: 0; }

/* Ringkasan (diisi AJAX dari partials/summary.php) */
html body .kxp .kxp-summary { padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--kx-line), 0 1px 2px rgb(48 59 50 / .03); }
html body .kxp .kxp-summary .notice { padding: 0 !important; border: 0 !important; background: transparent !important; }
html body .kxp .kxp-summary .placeholder { height: 14px; border-radius: 6px; background: var(--kx-soft); }
html body .kxp .kxp-summary .kxp-btn { margin-top: 20px; }
html body .kxp .kxp-sum { display: flex; flex-direction: column; }
html body .kxp .kxp-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
html body .kxp .kxp-sum-row .title { color: var(--kx-muted); }
html body .kxp .kxp-sum-row .value { color: var(--kx-ink); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
html body .kxp .kxp-sum-row--discount .value { color: var(--kx-ok); }
html body .kxp .kxp-sum-row--unique .value,
html body .kxp .kxp-sum-row--addon .value { color: var(--kx-ink); }
html body .kxp .kxp-sum-tag { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--kx-soft); color: var(--kx-brand); font-size: 11px; font-weight: 500; }
html body .kxp .kxp-sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--kx-line-strong); }
html body .kxp .kxp-sum-total .title { color: var(--kx-ink); font-size: 14px; font-weight: 600; }
html body .kxp .kxp-sum-total .value { color: var(--kx-ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html body .kxp #wds-referred { margin-top: 16px; color: var(--kx-muted); font-size: 13px; }
html body .kxp #wds-referred:empty { display: none !important; }
html body .kxp .kxp-trust { display: flex; flex-direction: column; gap: 8px; color: var(--kx-muted); font-size: 13px; }
html body .kxp .kxp-trust li { display: flex; gap: 8px; }
html body .kxp .kxp-trust i { flex-shrink: 0; margin-top: 2px; color: var(--kx-ok); font-size: 15px; }

/* ---------- Halaman status (terima kasih, dibatalkan, tidak ditemukan, aktivasi) ---------- */
html body .kxp .kxp-state { display: flex; flex-direction: column; align-items: flex-start; }
html body .kxp .kxp-state-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 16px; background: var(--kx-soft); color: var(--kx-brand); font-size: 24px; }
html body .kxp .kxp-state-icon--ok { background: var(--kx-ok-soft); color: var(--kx-ok); }
html body .kxp .kxp-state-icon--danger { background: var(--kx-danger-soft); color: var(--kx-danger); }
html body .kxp .kxp-state-icon--warn { background: var(--kx-warning-soft); color: var(--kx-warning); }
html body .kxp .kxp-state .kxp-lead { margin-bottom: 24px; }
html body .kxp .kxp-state .kxp-btn { width: 100%; }
html body .kxp .kxp-state .kxp-note { width: 100%; margin-bottom: 16px; }
html body .kxp .kxp-art { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto 24px; }

/* ---------- Invoice (general/pay.php) ---------- */
html body .kxp .kxp-invoice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; gap: 40px; }
html body .kxp .kxp-invoice-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 500; }
html body .kxp .kxp-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-bottom: 28px; }
html body .kxp .kxp-meta-grid dt { margin-bottom: 4px; color: var(--kx-muted); font-size: 12px; font-weight: 500; }
html body .kxp .kxp-meta-grid dd { color: var(--kx-ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
html body .kxp .kxp-meta-grid dd span { display: block; color: var(--kx-muted); font-size: 13px; font-weight: 400; }
html body .kxp .kxp-items { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
html body .kxp .kxp-items th { padding: 0 0 10px; border-bottom: 1px solid var(--kx-line); color: var(--kx-muted); font-size: 12px; font-weight: 500; text-align: left; }
html body .kxp .kxp-items td { padding: 14px 0; border-bottom: 1px solid var(--kx-line); color: var(--kx-ink); font-weight: 500; vertical-align: top; }
html body .kxp .kxp-items .kxp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
html body .kxp .kxp-totals { max-width: 320px; margin: 16px 0 0 auto; }
html body .kxp .kxp-totals .kxp-sum-total .value { font-size: 20px; }

html body .kxp .kxp-paybox { padding: 24px; border-radius: 16px; background: var(--kx-bg); box-shadow: 0 0 0 1px var(--kx-line); }
html body .kxp .kxp-paybox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
html body .kxp .kxp-paybox-amount { margin-bottom: 20px; }
html body .kxp .kxp-paybox-amount strong { display: block; margin-top: 2px; color: var(--kx-ink); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html body .kxp .kxp-paybox .kxp-rows { margin-bottom: 20px; }
html body .kxp .kxp-paybox .kxp-row { padding: 10px 0; }
html body .kxp .kxp-paybox .kxp-row dt,
html body .kxp .kxp-paybox .kxp-row dd { font-size: 13px; }
html body .kxp .kxp-paybox .kxp-row dd { text-transform: capitalize; }
html body .kxp .kxp-paybox-sub { margin: 20px 0 8px; color: var(--kx-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html body .kxp .kxp-instruction { color: var(--kx-text); font-size: 13px; line-height: 1.6; white-space: pre-line; }
/* Keluaran aksi gateway (partials/payment/gateway.php masih bawaan plugin) */
html body .kxp .kxp-paybox .btn.btn-success {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: 20px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--kx-brand) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	box-shadow: none !important;
	transform: none !important;
}
html body .kxp .kxp-paybox .btn.btn-success:hover { background: var(--kx-ink) !important; }
html body .kxp .kxp-paybox .text-danger.fs-2 { margin-top: 16px; color: var(--kx-danger) !important; font-size: 16px !important; }

/* Rekening bank & QRIS */
html body .kxp .kxp-banks { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
html body .kxp .kxp-bank { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--kx-line); }
html body .kxp .kxp-bank-name { color: var(--kx-muted); font-size: 12px; }
html body .kxp .kxp-bank-no { display: block; margin-top: 2px; color: var(--kx-ink); font-size: 16px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html body .kxp .kxp-bank-holder { display: block; color: var(--kx-muted); font-size: 12px; }
html body .kxp .kxp-copy {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: var(--kx-ink);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	box-shadow: 0 0 0 1px var(--kx-line-strong);
	cursor: pointer;
	transition: box-shadow .15s, background-color .15s;
}
html body .kxp .kxp-copy:hover { background: var(--kx-bg); box-shadow: 0 0 0 1px var(--kx-ink); }
html body .kxp .kxp-copy i { font-size: 14px; }
html body .kxp .kxp-copy.is-copied { color: var(--kx-ok); }
html body .kxp .kxp-qris { display: block; width: fit-content; margin: 16px auto 0; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--kx-line); }
html body .kxp .kxp-qris img { display: block; width: 220px; max-width: 100%; height: auto; }
html body .kxp .kxp-paybox .kxp-confirm { width: 100%; margin-top: 20px; }

/* ---------- Bagikan undangan (public/share.php) ---------- */
html body .kxp #wds_public_share_wrapper { min-height: 0; background: transparent !important; }
html body .kxp .kxp-share-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--kx-muted); font-size: 13px; }
html body .kxp .kxp-share-stats #share_guest_count { color: var(--kx-ink) !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; }
html body .kxp #share_save_status {
	padding: 3px 10px !important;
	border-radius: 999px !important;
	background: var(--kx-bg) !important;
	color: var(--kx-muted) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
}
html body .kxp #share_save_separator { color: var(--kx-line-strong) !important; }

html body .kxp .kxp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
html body .kxp .kxp-tools { display: flex; flex-wrap: wrap; gap: 8px; }
html body .kxp .kxp-tools .kxp-btn { min-height: 40px; }
html body .kxp :is(#share_add_guest_btn, #share_import_guest_btn, #share_message_btn, #share_access_btn) {
	height: auto !important;
	min-height: 40px;
	padding: 0 14px !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	box-shadow: none !important;
	transform: none !important;
}
html body .kxp #share_add_guest_btn { border-color: transparent !important; background: var(--kx-brand) !important; color: #fff !important; }
html body .kxp #share_add_guest_btn:hover { background: var(--kx-ink) !important; }
html body .kxp :is(#share_import_guest_btn, #share_message_btn, #share_access_btn) { border: 1px solid var(--kx-line-strong) !important; background: #fff !important; color: var(--kx-ink) !important; }
html body .kxp :is(#share_import_guest_btn, #share_message_btn, #share_access_btn):hover { border-color: var(--kx-ink) !important; background: var(--kx-bg) !important; }
html body .kxp :is(#share_add_guest_btn, #share_import_guest_btn, #share_message_btn, #share_access_btn) i { color: inherit !important; font-size: 16px !important; }

html body .kxp .kxp-search { position: relative; width: 100%; max-width: 300px; }
html body .kxp .kxp-search > i { position: absolute; top: 50%; left: 12px; color: var(--kx-subtle); font-size: 16px; transform: translateY(-50%); pointer-events: none; }
html body .kxp #share_table_search {
	width: 100%;
	height: 40px !important;
	padding: 0 12px 0 36px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--kx-ink) !important;
	font-size: 14px !important;
	box-shadow: inset 0 0 0 1px var(--kx-line-strong) !important;
}
html body .kxp #share_table_search:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--kx-ink), 0 0 0 4px rgb(250 194 115 / .35) !important; }

/* Pilihan tampilan (HP): segmen olive */
html body .kxp .kxp-segment { display: flex; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 10px; background: var(--kx-bg); box-shadow: inset 0 0 0 1px var(--kx-line); }
html body .kxp .kxp-segment .btn {
	flex: 1;
	height: 32px;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--kx-muted) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	box-shadow: none !important;
}
html body .kxp .kxp-segment .btn.active { background: var(--kx-brand) !important; color: #fff !important; }

/* Tabel tamu (baris dibuat JS) */
html body .kxp .kxp-table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--kx-line); }
html body .kxp #share_table { margin: 0 !important; border: 0 !important; font-size: 14px; }
html body .kxp #share_table th {
	padding: 10px 16px !important;
	border-bottom: 1px solid var(--kx-line) !important;
	background: var(--kx-bg);
	color: var(--kx-muted) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
html body .kxp #share_table td { padding: 12px 16px !important; border-bottom: 1px solid var(--kx-line) !important; color: var(--kx-ink) !important; font-weight: 400; vertical-align: middle; }
html body .kxp #share_table tbody tr:last-child td { border-bottom: 0 !important; }
html body .kxp #share_table tbody tr:hover td { background: var(--kx-bg) !important; }
/* Pesan kosong dipasang di tabel (bukan di tbody) sebagai caption bawah supaya selebar tabel;
   pseudo-elemen block di dalam tbody hanya mengisi kolom pertama. */
html body .kxp #share_table:has(tbody:empty)::after {
	content: 'Belum ada tamu. Tambah tamu atau impor dari daftar, lalu kirim undangan bernama lewat WhatsApp.';
	display: table-caption;
	caption-side: bottom;
	padding: 32px 16px;
	color: var(--kx-muted);
	font-size: 13px;
	text-align: center;
}
html body .kxp :is(#share_table, #share_card_list) .btn-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	width: 32px !important;
	height: 32px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--kx-ink) !important;
	box-shadow: 0 0 0 1px var(--kx-line-strong) !important;
	transform: none !important;
}
html body .kxp :is(#share_table, #share_card_list) .btn-icon:hover { background: var(--kx-bg) !important; box-shadow: 0 0 0 1px var(--kx-ink) !important; }
html body .kxp :is(#share_table, #share_card_list) .btn-icon i { color: inherit !important; font-size: 16px; }
html body .kxp :is(#share_table, #share_card_list) .btn-light-success { color: var(--kx-ok) !important; }
html body .kxp :is(#share_table, #share_card_list) .btn-light-danger { color: var(--kx-danger) !important; }
html body .kxp #share_table tbody tr[hidden] { display: none; }
html body .kxp #share_card_list:not(.d-none) { display: flex; flex-direction: column; gap: 8px; }
/* Mode kartu (HP): dibangun skrip di public/share.php dari baris tabel */
html body .kxp .kxp-gcard { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--kx-line); }
html body .kxp .kxp-gcard-name { margin: 0; color: var(--kx-ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
html body .kxp .kxp-gcard-meta { margin: 2px 0 0; color: var(--kx-muted); font-size: 12px; }
html body .kxp .kxp-gcard > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
html body .kxp-modal .form-control.is-invalid { box-shadow: inset 0 0 0 1px var(--kx-danger), 0 0 0 4px rgb(192 61 61 / .12) !important; }
html body .kxp-modal .kxp-dropzone.is-drag { border-color: var(--kx-brand) !important; background: var(--kx-soft) !important; }

html body .kxp .kxp-share-foot { display: flex; justify-content: center; margin-top: 24px; }
html body .kxp #share_reset_guests {
	min-height: 40px;
	padding: 0 14px !important;
	border: 1px solid rgb(192 61 61 / .25) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--kx-danger) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	box-shadow: none !important;
	transform: none !important;
}
html body .kxp #share_reset_guests:hover { border-color: var(--kx-danger) !important; background: var(--kx-danger-soft) !important; }
html body .kxp #share_reset_guests i { color: inherit !important; }

/* Modal bagikan (dirender di luar .kxp supaya tidak tertutup backdrop) */
html body .kxp-modal .modal-content { border: 0 !important; border-radius: 20px !important; box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 24px 48px -16px rgb(0 0 0 / .35) !important; color: var(--kx-ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
html body .kxp-modal .modal-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 8px !important; border: 0 !important; background: transparent !important; }
html body .kxp-modal .modal-title { margin: 0; color: var(--kx-ink) !important; font-family: inherit !important; font-size: 18px !important; font-weight: 600 !important; letter-spacing: -.01em; }
html body .kxp-modal .kxp-modal-close { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; margin-left: auto; padding: 0; border: 0; border-radius: 10px; background: var(--kx-bg); color: var(--kx-muted); font-size: 16px; cursor: pointer; transition: background-color .15s, color .15s; }
html body .kxp-modal .kxp-modal-close:hover { background: var(--kx-soft); color: var(--kx-ink); }
html body .kxp-modal .modal-body { padding: 12px 24px 8px !important; color: var(--kx-text); font-size: 14px; }
html body .kxp-modal .modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 24px !important; border: 0 !important; background: transparent !important; }
html body .kxp-modal .modal-footer > * { margin: 0 !important; }
html body .kxp-modal .kxp-field { margin-bottom: 18px; }
html body .kxp-modal .kxp-field:last-child { margin-bottom: 0; }
html body .kxp-modal .kxp-label { display: block; margin: 0 0 8px; color: var(--kx-ink) !important; font-size: 13px !important; font-weight: 500 !important; }
html body .kxp-modal .kxp-label.required::after { content: ' *'; color: var(--kx-danger); }
html body .kxp-modal .kxp-hint { margin-top: 6px; color: var(--kx-muted); font-size: 12px; line-height: 1.5; }
html body .kxp-modal :is(input[type="text"], input[type="number"], textarea, select).form-control,
html body .kxp-modal select.form-select {
	min-height: 44px;
	padding: 10px 14px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background-color: var(--kx-bg) !important;
	color: var(--kx-ink) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	box-shadow: inset 0 0 0 1px rgb(48 59 50 / .1) !important;
}
html body .kxp-modal :is(.form-control, .form-select):focus { outline: 0; background-color: #fff !important; box-shadow: inset 0 0 0 1px var(--kx-ink), 0 0 0 4px rgb(250 194 115 / .35) !important; }
html body .kxp-modal .select2-container .select2-selection { min-height: 44px; border: 0 !important; border-radius: 10px !important; background: var(--kx-bg) !important; box-shadow: inset 0 0 0 1px rgb(48 59 50 / .1); }
html body .kxp-modal .kxp-btn,
html body .kxp-modal .modal-footer .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px !important;
	border: 1px solid transparent !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	box-shadow: none !important;
	transition: background-color .15s, border-color .15s;
}
html body .kxp-modal .modal-footer .btn-primary,
html body .kxp-modal .kxp-btn { background: var(--kx-brand) !important; color: #fff !important; }
html body .kxp-modal .modal-footer .btn-primary:hover,
html body .kxp-modal .kxp-btn:hover { background: var(--kx-ink) !important; }
html body .kxp-modal .modal-footer .btn-light,
html body .kxp-modal .kxp-btn--ghost { border-color: var(--kx-line-strong) !important; background: #fff !important; color: var(--kx-ink) !important; }
html body .kxp-modal .modal-footer .btn-light:hover,
html body .kxp-modal .kxp-btn--ghost:hover { border-color: var(--kx-ink) !important; background: var(--kx-bg) !important; }
html body .kxp-modal .kxp-btn--sm { min-height: 32px; padding: 0 12px !important; font-size: 12px !important; }
html body .kxp-modal .kxp-btn--soft { background: var(--kx-soft) !important; color: var(--kx-brand) !important; }
html body .kxp-modal .kxp-btn--soft:hover { background: #DCE4DD !important; color: var(--kx-ink) !important; }
html body .kxp-modal .kxp-tabs { display: flex; gap: 2px; margin: 0 0 20px !important; padding: 3px !important; border: 0 !important; border-radius: 10px; background: var(--kx-bg); box-shadow: inset 0 0 0 1px var(--kx-line); }
html body .kxp-modal .kxp-tabs .nav-item { flex: 1; margin: 0 !important; }
html body .kxp-modal .kxp-tabs .nav-link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: var(--kx-muted) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	white-space: nowrap;
}
html body .kxp-modal .kxp-tabs .nav-link.active { background: var(--kx-brand) !important; color: #fff !important; }
html body .kxp-modal .kxp-help { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--kx-bg); box-shadow: inset 0 0 0 1px var(--kx-line); color: var(--kx-text); font-size: 13px; line-height: 1.6; }
html body .kxp-modal .kxp-help strong { display: block; margin-bottom: 6px; color: var(--kx-ink); }
html body .kxp-modal .kxp-help code { padding: 1px 6px; border-radius: 6px; background: #fff; color: var(--kx-ink); font-size: 12px; box-shadow: 0 0 0 1px var(--kx-line); }
html body .kxp-modal .kxp-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-bottom: 14px; padding: 32px 16px; border: 1.5px dashed var(--kx-line-strong) !important; border-radius: 16px !important; background: var(--kx-bg) !important; text-align: center; cursor: pointer; transition: border-color .15s; }
html body .kxp-modal .kxp-dropzone:hover { border-color: var(--kx-brand) !important; }
html body .kxp-modal .kxp-dropzone > i { margin-bottom: 6px; color: var(--kx-brand); font-size: 32px; }
html body .kxp-modal .kxp-dropzone strong { color: var(--kx-ink); font-size: 14px; font-weight: 600; }
html body .kxp-modal .kxp-dropzone span { color: var(--kx-muted); font-size: 12px; }
html body .kxp-modal .kxp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html body .kxp-modal .kxp-chip { height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--kx-soft); color: var(--kx-brand); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s; }
html body .kxp-modal .kxp-chip:hover { background: #DCE4DD; color: var(--kx-ink); }
html body .kxp-modal .kxp-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--kx-bg); color: var(--kx-text); font-size: 13px; line-height: 1.55; }
html body .kxp-modal .kxp-note > i { flex-shrink: 0; margin-top: 1px; color: var(--kx-brand); font-size: 17px; }
html body .kxp-modal .kxp-note--warning { background: var(--kx-warning-soft); color: var(--kx-gold-text); }
html body .kxp-modal .kxp-note--warning > i { color: var(--kx-warning); }
html body .kxp-modal .kxp-note code { padding: 0 4px; border-radius: 4px; background: rgb(255 255 255 / .7); color: inherit; font-size: 12px; }
html body .kxp-modal .kxp-switch { padding: 16px; border-radius: 12px; background: var(--kx-bg); box-shadow: inset 0 0 0 1px var(--kx-line); }
html body .kxp-modal .kxp-switch .form-check-label { color: var(--kx-ink) !important; font-size: 14px; font-weight: 500 !important; }
html body .kxp-modal .kxp-overlay { border-radius: 10px; background: rgb(255 255 255 / .7) !important; }
html body .kxp-modal .kxp-overlay .spinner-border { color: var(--kx-brand); }
html body .kxp-modal .kxp-tutorial { color: var(--kx-text); font-size: 14px; line-height: 1.65; }
html body .kxp-modal .kxp-tutorial img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---------- Pesan untuk klien (public/share-client.php) ---------- */
html body .kxp .kxp-message {
	display: block;
	width: 100%;
	min-height: 220px;
	padding: 14px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--kx-bg);
	color: var(--kx-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.65;
	box-shadow: inset 0 0 0 1px rgb(48 59 50 / .1);
	resize: vertical;
	overflow-y: auto !important; /* autosize memasang overflow:hidden inline; bila ukurannya meleset, isi tetap bisa digulir */
}
html body .kxp .kxp-message:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--kx-ink), 0 0 0 4px rgb(250 194 115 / .35); }
html body .kxp .kxp-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
html body .kxp .kxp-actions .kxp-hint { text-align: center; }

/* ---------- RSVP (public/rsvp.php) ---------- */
html body .kxp .kxp-pass { display: flex; gap: 8px; }
html body .kxp .kxp-pass .kxp-input { flex: 1; min-width: 0; }
html body .kxp .kxp-pass .kxp-btn { flex-shrink: 0; }
html body .kxp .kxp-rsvp .card { border: 0 !important; border-radius: 16px !important; box-shadow: 0 0 0 1px var(--kx-line), 0 1px 2px rgb(48 59 50 / .03) !important; }

/* ---------- Utilitas kecil (pengganti style inline) ---------- */
html body .kxp .indicator-label { display: inline-flex; align-items: center; gap: 8px; }
html body .kxp .kxp-section--gap { margin-top: 32px; }
html body .kxp .kxp-cap { text-transform: capitalize; }
html body .kxp .kxp-eyebrow { margin-bottom: 12px; }
html body :is(.kxp, .kxp-modal) .kxp-hint--center { text-align: center; }
html body :is(.kxp, .kxp-modal) .kxp-hint--lead { margin: 0 0 10px; }
html body :is(.kxp, .kxp-modal) .kxp-hint--flush { margin: 0; }
html body .kxp .kxp-state-foot { width: 100%; margin-top: 16px; }
html body .kxp .kxp-search-field { position: relative; }
html body .kxp .kxp-search-field > i { position: absolute; top: 50%; left: 12px; color: var(--kx-subtle); font-size: 16px; transform: translateY(-50%); pointer-events: none; }
html body .kxp-modal .kxp-help-gap { margin-top: 10px; }
html body .kxp-modal .kxp-import-count { margin-top: 16px; color: var(--kx-ink); font-size: 13px; font-weight: 500; }
html body .kxp-modal .kxp-chips { margin-bottom: 12px; }
html body .kxp-modal .kxp-note--gap { margin-top: 12px; }
html body .kxp-modal .kxp-label--tight { margin-bottom: 2px; }

/* ---------- Responsif ---------- */
@media (max-width: 991px) {
	html body .kxp .kxp-grid,
	html body .kxp .kxp-invoice { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	html body .kxp .kxp-aside { position: static; }
	html body .kxp .kxp-main--wide .kxp-card { padding: 32px; }
}
@media (max-width: 575px) {
	html body .kxp .kxp-card,
	html body .kxp .kxp-main--wide .kxp-card { padding: 24px 20px; }
	html body .kxp .kxp-logo { margin-bottom: 24px; }
	html body .kxp .kxp-watermark { font-size: 420px; }
	html body .kxp .kxp-meta-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	html body .kxp .kxp-gateways { grid-template-columns: minmax(0, 1fr); }
	html body .kxp .kxp-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	html body .kxp .kxp-tools > * { width: 100%; }
	html body .kxp .kxp-search { max-width: none; }
	html body .kxp .kxp-totals { max-width: none; }
	html body .kxp-modal .modal-footer { flex-direction: column-reverse; }
	html body .kxp-modal .modal-footer > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html body .kxp .kxp-main { animation: none; }
	html body .kxp *,
	html body .kxp-modal * { transition-duration: .01ms !important; }
}

/* Cetak invoice: tanpa latar olive & hiasan */
@media print {
	html body#kt_body:has(.kxp),
	html body .kxp { background: #fff !important; }
	html body .kxp :is(.kxp-jalur, .kxp-watermark, .kxp-corner, .kxp-copyright) { display: none !important; }
	html body .kxp .kxp-card { padding: 0 !important; box-shadow: none !important; }
	html body .kxp .kxp-invoice { grid-template-columns: minmax(0, 1fr); }
}
