/*
 * Gaya halaman Pendaftaran Online (landing, wizard reservasi, ubah berkas,
 * registrasi PIC) dengan tema SATU SIMRS.
 *
 * Banyak view menyisipkan <style> inline setelah file ini dimuat, jadi
 * selector halaman diawali `html` agar spesifisitasnya menang tanpa
 * mengubah markup. `!important` hanya dipakai untuk mengalahkan atribut
 * style="" pada markup legacy.
 */
/* Naikkan ?v= setiap satusimrs-theme.css berubah agar cache browser terbarui. */
@import url("satusimrs-theme.css?v=20261102");

/* =========================================================================
   Wizard: #msform (reservasi) dan #formUpdate (ubah berkas)
   ========================================================================= */

html #msform,
html #formUpdate {
	max-width: 880px;
	margin: 16px auto 24px;
	text-align: left;
	position: relative;
	/* Semua fieldset menumpuk di satu sel grid: animasi `left` dari JS tetap
	   jalan, dan tinggi form ikut fieldset aktif sehingga tidak tertutup footer. */
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

/* Fieldset = kartu langkah */
html #msform fieldset,
html #formUpdate fieldset {
	grid-row: 2;
	grid-column: 1;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 24px 28px 24px;
	text-align: right;
	background: var(--card);
	border: 0;
	border-radius: var(--radius-xl);
	box-shadow: 0 0 0 1px rgb(30 52 48 / 10%), var(--shadow-xs);
}
/* Konten rata kiri; tombol aksi (inline, anak langsung fieldset) rata kanan
   sesuai urutan DOM Kembali, Lanjut/Simpan. */
html #msform fieldset > :not(.action-button),
html #formUpdate fieldset > :not(.action-button) {
	text-align: left;
}
/* Hanya fieldset pertama tampil di awal; JS yang menampilkan berikutnya. */
#msform fieldset:not(:first-of-type),
#formUpdate fieldset:not(:first-of-type) {
	display: none;
}

/* Judul langkah */
html #msform .fs-title,
html #formUpdate .fs-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0;
	color: var(--foreground);
}
html #msform .fs-subtitle,
html #formUpdate .fs-subtitle {
	margin: 0 0 20px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--muted-foreground);
}
html #msform .fs-title + .div-esc,
html #msform .fs-title + .form-group,
html #formUpdate .fs-title + .form-group {
	margin-top: 16px;
}

/* Sub-bagian (Data Pasien, Data Penanggung Jawab, kewenangan): judul
   text-sm semibold dengan garis hairline, bukan kicker uppercase. */
html #msform h3:not(.fs-subtitle),
html #formUpdate h3:not(.fs-subtitle) {
	clear: both;
	margin: 28px 0 14px;
	padding-top: 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.43;
	color: var(--secondary-foreground);
	border-top: 1px solid var(--border);
}
html #msform h3:not(.fs-subtitle):first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* ---------- Progress langkah (step marker) ---------- */

html #progressbar {
	grid-row: 1;
	grid-column: 1;
	position: relative;
	z-index: 0;
	display: flex;
	margin: 0 0 20px;
	padding: 0;
	overflow: visible;
	counter-reset: step;
	list-style: none;
}
html #progressbar li {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	float: none;
	padding: 0 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: none;
	text-align: center;
	color: var(--muted-foreground);
	list-style: none;
}
html #progressbar li::before {
	content: counter(step);
	counter-increment: step;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: 0 auto 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--muted-foreground);
	background: var(--muted);
	border: 2px solid var(--border);
	border-radius: 9999px;
	transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
}
/* garis penghubung */
html #progressbar li::after {
	content: "";
	position: absolute;
	top: 15px;
	left: calc(-50% + 20px);
	width: calc(100% - 40px);
	height: 2px;
	background: var(--border);
	border-radius: 9999px;
	z-index: -1;
}
html #progressbar li:first-child::after {
	content: none;
}
/* Langkah yang sudah dicapai */
html #progressbar li.active {
	color: var(--foreground);
	font-weight: 600;
}
html #progressbar li.active::before {
	color: var(--secondary);
	background: var(--deep-green);
	border-color: var(--deep-green);
}
html #progressbar li.active::after {
	background: var(--deep-green);
}
/* Langkah saat ini (aktif terakhir): outline tosca, nomor hijau tua. */
html #progressbar li.active:has(+ li:not(.active))::before,
html #progressbar li.active:last-child::before {
	color: var(--deep-green);
	background: var(--card);
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgb(0 169 157 / 15%);
}
/* Langkah selesai: centang. */
html #progressbar li.active:has(+ li.active)::before {
	content: "\2713";
	font-size: 15px;
}

/* ---------- Grup field ---------- */

html #msform .form-group,
html #formUpdate .form-group {
	margin-bottom: 14px;
}
#msform .form-group::after,
#formUpdate .form-group::after {
	content: "";
	display: table;
	clear: both;
}
html #msform .form-group > .control-label,
html #formUpdate .form-group > .control-label,
html #msform label,
html #formUpdate label {
	line-height: 1.43;
	text-align: left;
}
html #msform .form-group > .control-label,
html #formUpdate .form-group > .control-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--foreground);
}
@media (min-width: 1200px) {
	html #msform .form-group > .control-label,
	html #formUpdate .form-group > .control-label {
		margin-bottom: 0;
		padding-top: 10px;
		color: var(--muted-foreground);
	}
}

/* Reset gaya input lama dari reservasi.css/inline; tampilan field dari tema. */
html #msform input,
html #msform select,
html #msform textarea,
html #formUpdate input,
html #formUpdate select,
html #formUpdate textarea {
	margin-bottom: 0;
	font-size: 14px;
	color: var(--foreground);
}
html #msform .form-control,
html #formUpdate .form-control {
	width: 100%;
	border: 1px solid var(--input);
	border-radius: var(--radius-md);
}
html #msform .form-control[readonly],
html #formUpdate .form-control[readonly] {
	border-color: var(--border);
}
html #msform input[type="checkbox"],
html #msform input[type="radio"],
html #formUpdate input[type="checkbox"],
html #formUpdate input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0 8px 0 0;
	vertical-align: -3px;
	box-shadow: none;
}

/* Pilihan radio/checkbox berbentuk tile: input di dalam kolom .text-left
   ditimpakan ke sisi kiri label, label menjadi area klik penuh. */
html #msform .text-left > input[type="radio"],
html #msform .text-left > input[type="checkbox"],
html #formUpdate .text-left > input[type="radio"],
html #formUpdate .text-left > input[type="checkbox"] {
	position: absolute;
	top: 13px;
	left: 28px;
	z-index: 1;
	margin: 0;
}
html #msform .text-left > input[type="radio"] + label,
html #msform .text-left > input[type="checkbox"] + label,
html #formUpdate .text-left > input[type="radio"] + label,
html #formUpdate .text-left > input[type="checkbox"] + label {
	display: block;
	min-height: 42px;
	margin: 0 0 8px;
	padding: 10px 12px 10px 40px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.43;
	color: var(--foreground);
	background: var(--control-editable);
	border: 1px solid var(--input);
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
html #msform .text-left > input + label:hover,
html #formUpdate .text-left > input + label:hover {
	border-color: rgb(0 169 157 / 60%);
}
html #msform .text-left > input:checked + label,
html #formUpdate .text-left > input:checked + label {
	color: var(--secondary-foreground);
	font-weight: 600;
	background: var(--secondary);
	border-color: var(--primary);
}
html #msform .text-left > input:focus-visible + label,
html #formUpdate .text-left > input:focus-visible + label {
	box-shadow: 0 0 0 3px var(--ring);
}
html #msform .text-left > input:disabled + label {
	color: var(--muted-foreground);
	background: var(--muted);
	border-color: var(--border);
	cursor: not-allowed;
}

/* ---------- Tombol aksi wizard ----------
 * Default outline (Kembali, Ubah, Cetak); .sx-btn-primary = Lanjut,
 * .sx-btn-success = Simpan.
 */

html #msform .action-button,
html #formUpdate .action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	vertical-align: top;
	width: auto;
	min-width: 112px;
	min-height: 40px;
	margin: 20px 0 0 8px;
	padding: 8px 18px;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.43;
	color: var(--foreground);
	background-color: var(--card);
	border: 1px solid var(--input);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-xs);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out;
}
html #msform .action-button:hover,
html #formUpdate .action-button:hover {
	background-color: var(--muted);
	box-shadow: var(--shadow-xs);
}
html #msform .action-button:focus,
html #formUpdate .action-button:focus {
	outline: 0;
	box-shadow: 0 0 0 3px var(--ring);
}
html #msform .action-button:active,
html #formUpdate .action-button:active {
	transform: translateY(1px);
}
html #msform .action-button.sx-btn-primary,
html #formUpdate .action-button.sx-btn-primary {
	color: var(--primary-foreground);
	background-color: var(--primary);
	border-color: var(--primary);
}
html #msform .action-button.sx-btn-primary:hover,
html #formUpdate .action-button.sx-btn-primary:hover {
	background-color: var(--primary-hover);
	border-color: var(--primary-hover);
}
html #msform .action-button.sx-btn-success,
html #formUpdate .action-button.sx-btn-success {
	color: #ffffff;
	background-color: var(--success);
	border-color: var(--success);
}
html #msform .action-button.sx-btn-success:hover,
html #formUpdate .action-button.sx-btn-success:hover {
	background-color: rgb(39 134 75 / 85%);
	border-color: transparent;
}
html #msform .action-button.sx-btn-success:focus,
html #formUpdate .action-button.sx-btn-success:focus {
	box-shadow: 0 0 0 3px rgb(39 134 75 / 35%);
}
html #msform .action-button[disabled],
html #formUpdate .action-button[disabled] {
	color: var(--button-disabled-foreground);
	background-color: var(--button-disabled);
	border-color: var(--button-disabled-border);
	opacity: 0.3;
	box-shadow: none;
	cursor: not-allowed;
}
/* Simpan tetap <input> karena JS mengganti labelnya lewat .val(); ikon
   simpan dipasang sebagai background karena <input> tidak punya ::before. */
html #msform input.action-button.sx-btn-success,
html #formUpdate input.action-button.sx-btn-success {
	padding-left: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7'/%3E%3Cpath d='M7 3v4a1 1 0 0 0 1 1h7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 16px center;
	background-size: 16px 16px;
}
/* Tombol ubah No. HP / NIK di bawah field read-only */
html #msform #changeNoHp,
html #msform #changeNoNIK {
	display: inline-flex;
	min-width: 0;
	min-height: 32px;
	margin: 8px 0 0;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 500;
	white-space: normal;
}

/* ---------- Pesan & catatan ---------- */

html #msform .messengger:empty,
html #msform .messengger2:empty,
html #msform .messengger3:empty,
html #msform .messengger4:empty,
html #formUpdate .messengger:empty,
html #formUpdate .messengger2:empty,
html #formUpdate .messengger3:empty {
	display: none;
}
html #msform .alert,
html #formUpdate .alert {
	margin: 4px 0 0;
}
html .alert.alert-danger {
	font-weight: 500;
}
html .list-keterangan {
	margin: 12px 0 0;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 1.55;
	text-align: left;
	background: rgb(22 119 168 / 5%);
	border: 1px solid rgb(22 119 168 / 30%);
	border-radius: var(--radius-md);
}
html .list-keterangan ul {
	margin: 0;
	padding-left: 18px;
}
html .list-keterangan ul li {
	padding: 2px 0 !important;
}
html .text-red {
	color: var(--destructive);
}
html .text-blue {
	color: var(--info);
}
#pesan_pembatasan_tgl_reservasi:not(:empty) {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
}

/* ---------- Langkah 1: persetujuan pasien baru ---------- */

/* Dua orang yang diberi kewenangan: pisahkan orang kedua dengan garis putus. */
html #msform .row.pasien-baru > .col-lg-12 > .form-group:nth-child(4) {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed var(--border);
}

html #msform table.pj_pasien {
	width: 100%;
	margin: 12px 0 0;
	border: 1px solid var(--border);
	border-collapse: separate;
	border-radius: var(--radius-md);
	background: rgb(240 244 242 / 50%);
}
html #msform table.pj_pasien td {
	padding: 14px 16px 14px 32px !important;
	font-size: 13px;
	line-height: 1.6;
	border: 0;
	color: var(--foreground);
}
html #msform table.pj_pasien li {
	margin: 0 0 8px;
}
html #msform table.pj_pasien li label {
	font-size: 13px !important;
	margin: 0 12px 0 0;
}
html #msform table.pj_pasien li input[type="radio"] {
	margin: 0 4px 0 0;
}
html #msform table.pj_pasien #idKetPrivasi {
	margin-top: 8px;
}
/* Checkbox "Saya setuju" sebagai tile mint */
html #msform input#konfirmasi_pj {
	float: left;
	position: relative;
	z-index: 1;
	margin: 26px 0 0 14px;
}
html #msform label[for="konfirmasi_pj"] {
	display: block;
	margin: 12px 0 0;
	padding: 12px 14px 12px 42px;
	font-size: 14px;
	background: var(--secondary);
	border: 1px solid rgb(0 169 157 / 40%);
	border-radius: var(--radius-md);
	cursor: pointer;
}
html #msform input#konfirmasi_pj:checked + label {
	border-color: var(--primary);
}

/* OTP (fitur nonaktif secara default) */
html #modal_otp {
	padding: 32px 24px;
	background: var(--card);
	border-radius: var(--radius-xl);
	text-align: center;
}

/* ---------- Langkah 2: data BPJS ---------- */

html #tableBPJS {
	margin: 0 0 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
}
html #tableBPJS .table {
	margin: 0;
}
html #tableBPJS .table > thead > tr > th {
	text-align: left;
	border-top: 0;
}
html #tableBPJS .table > tbody > tr > td:first-child {
	color: var(--muted-foreground);
	width: 28%;
}

/* ---------- Langkah 3: vaksin, dokumen, unggah ---------- */

/* Langkah 3 membungkus field dengan .row; samakan indentasi dengan langkah lain. */
html #fieldsetDataPendaftararOnline > .row {
	margin-left: 0;
	margin-right: 0;
}
html #fieldsetDataPendaftararOnline > .row[style*="padding-top"] {
	padding-top: 12px !important;
}
html #fieldsetDataPendaftararOnline .list-keterangan,
html #msform .progressUpload,
html #formUpdate .progressUpload {
	width: auto;
	margin-left: 15px;
	margin-right: 15px;
}

html #pilihanVaksinCheckboxes .vaksin-item label {
	padding: 9px 12px;
	font-size: 14px;
	background: var(--control-editable);
	border: 1px solid var(--input);
	border-radius: var(--radius-md);
}
html #pilihanVaksinCheckboxes .vaksin-item input:checked + * ,
html #pilihanVaksinCheckboxes .vaksin-item label:has(input:checked) {
	background: var(--secondary);
	border-color: var(--primary);
}
html #pilihanVaksinCheckboxes .vaksin-kuota,
html #pilihanVaksinCheckboxes .vaksin-loading {
	color: var(--muted-foreground);
}

html #msform #divDokumen,
html #formUpdate #divDokumen {
	width: 100%;
	padding: 0 15px;
}
html #msform .row > #divDokumen {
	box-sizing: border-box;
}
html #msform .dokFile,
html #formUpdate .dokFile {
	margin: 0 0 10px;
	padding: 12px 0;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
html #msform .dokFile > .control-label,
html #formUpdate .dokFile > .control-label {
	padding-top: 4px;
	color: var(--foreground);
	font-weight: 600;
}
html #msform .dokFile .btn,
html #formUpdate .dokFile .btn {
	min-width: 40px;
	min-height: 36px;
	margin: 0 4px 4px 0;
}
html img.imagePreview {
	max-height: 320px;
	margin: 8px auto 0 !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-md);
}
html img.imagePreview[src=""] {
	display: none;
}
html #formUpdate .infoKeteranganVerif:not(:empty) {
	margin-bottom: 8px;
	font-size: 13px;
}

.progressUpload,
html .progressUpload {
	position: relative;
	padding: 0;
	background: var(--muted);
	border-radius: 9999px;
	overflow: hidden;
}
.barUpload,
html .barUpload {
	width: 0;
	height: 22px;
	background-color: rgb(0 169 157 / 35%);
	border: 0;
	border-radius: 9999px;
}
.percentUpload,
html .percentUpload {
	position: absolute;
	top: 2px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--deep-green);
}

/* ---------- Captcha ---------- */

html #captchaContainer img,
html #captchaOTPContainer img {
	vertical-align: middle;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}
html .refresh-captcha,
html a.refresh-captcha {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin-left: 8px;
	padding: 0;
	vertical-align: middle;
}
.loading-captcha {
	width: 206px;
	text-align: right;
	background: url("../images/loader.gif") no-repeat 48px;
}
html #msform .div-online {
	margin: 0 0 14px;
}

/* ---------- Resume / bukti pendaftaran ---------- */

html #msform h1#kode_reservasi,
html #formUpdate h1#kode_reservasi {
	margin: 4px 0 12px;
	padding: 14px 16px;
	font-size: 26px !important;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: var(--deep-green);
	background: var(--secondary);
	border: 1px solid rgb(0 169 157 / 20%);
	border-radius: var(--radius-lg);
}
html #msform h1#kode_reservasi:empty,
html #formUpdate h1#kode_reservasi:empty {
	display: none;
}
html #msform #barcode,
html #formUpdate #barcode {
	text-align: center;
}
html #barcode img {
	max-width: 100%;
	height: auto;
}
html .resume_reservasi,
html .resume_pasien {
	margin-bottom: 16px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}
html .resume_reservasi td,
html .resume_pasien td {
	font-size: 14px;
}
html .resume_reservasi td:first-child,
html .resume_pasien td:first-child {
	width: 38%;
	font-size: 13px;
	color: var(--muted-foreground);
}
html .resume_reservasi td:nth-child(2),
html .resume_pasien td:nth-child(2) {
	width: 1%;
	padding-left: 0;
	padding-right: 0;
	color: var(--muted-foreground);
}
html .resume_reservasi td:nth-child(3),
html .resume_pasien td:nth-child(3) {
	font-weight: 500;
}
html #msform fieldset > p,
html #formUpdate fieldset > p {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted-foreground);
}

/* Tabel info pasien pada ubah berkas */
html #formUpdate fieldset > div > .table {
	margin-bottom: 16px;
	border-bottom: 1px solid var(--border);
}
html #formUpdate fieldset > div > .table td:first-child {
	width: 34%;
	font-size: 13px;
	color: var(--muted-foreground);
}
html #formUpdate fieldset > div > .table td:nth-child(2) {
	width: 1%;
	padding-left: 0;
	padding-right: 0;
	color: var(--muted-foreground);
}

/* ---------- Modal survey kanal informasi ---------- */

#modalSurveyKanalInfo .checkbox label {
	font-size: 14px;
	font-weight: 400;
}
#modalSurveyKanalInfo .modal-body .text-danger {
	padding: 10px 14px;
	font-size: 13px;
	color: var(--foreground);
	background: rgb(225 173 22 / 12%);
	border: 1px solid rgb(225 173 22 / 60%);
	border-radius: var(--radius-md);
}

/* =========================================================================
   Landing (info/tac)
   Mengikuti halaman masuk SATU SIMRS (ss-auth, mis. Aplikasi Kepegawaian):
   panel identitas hijau tua di kiri, kartu layanan di panel mint di kanan.
   Topbar dan footer template disembunyikan khusus halaman ini.
   Di bawah 1024px: bilah identitas, kartu layanan, lalu info pendaftaran.
   ========================================================================= */

html body:has(.ss-auth) {
	padding: 0;
}
html body:has(.ss-auth) > .navbar,
html body:has(.ss-auth) > .footer {
	display: none;
}
html body:has(.ss-auth) #maincontainer {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

html .ss-auth {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow: hidden;
	color: var(--foreground);
}
html .ss-auth p {
	margin: 0;
}

html .ss-auth__logo {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	background-color: #ffffff;
	box-shadow: 0 12px 34px rgb(0 0 0 / 14%);
}
html .ss-auth__logo img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}
html .ss-auth__org {
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: rgb(255 255 255 / 60%);
}

/* Bilah identitas ponsel */
html .ss-auth__mobile-identity {
	display: flex;
	order: 0;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	color: #ffffff;
	background:
		radial-gradient(circle at 92% 0%, rgb(15 180 206 / 22%), transparent 45%),
		linear-gradient(145deg, #073f3a 0%, #053630 58%, #042d29 100%);
	box-shadow: 0 6px 20px rgb(6 64 59 / 18%);
}
html .ss-auth__mobile-identity .ss-auth__logo {
	width: 44px;
	height: 44px;
	border-radius: 12px;
}
html .ss-auth__mobile-identity .ss-auth__logo img {
	width: 32px;
	height: 32px;
}
html .ss-auth__mobile-identity .ss-auth__org {
	font-size: 9px;
	letter-spacing: 0.18em;
}
html .ss-auth__app {
	margin: 2px 0 0 !important;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--accent-lime);
}

/* Panel identitas. Di ponsel hanya info pendaftaran yang tampil, di bawah kartu. */
html .ss-auth__brand {
	position: relative;
	order: 2;
	box-sizing: border-box;
	overflow: hidden;
	padding: 24px 20px 32px;
	color: #ffffff;
	background:
		radial-gradient(circle at 86% 18%, rgb(15 180 206 / 20%), transparent 28%),
		linear-gradient(145deg, #073f3a 0%, #053630 58%, #042d29 100%);
}
html .ss-auth__brand .ss-auth__identity,
html .ss-auth__brand .ss-auth__headline,
html .ss-auth__grid,
html .ss-auth__orbit {
	display: none;
}
html .ss-auth__grid {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
	background-size: 52px 52px;
	-webkit-mask-image: linear-gradient(to right bottom, #000000, transparent 80%);
	mask-image: linear-gradient(to right bottom, #000000, transparent 80%);
}
html .ss-auth__orbit {
	position: absolute;
	border: 1px solid rgb(141 224 215 / 14%);
	border-radius: 9999px;
}
html .ss-auth__orbit--one {
	right: -13rem;
	bottom: -14rem;
	width: 34rem;
	height: 34rem;
	box-shadow: 0 0 0 58px rgb(0 169 157 / 4%), 0 0 0 116px rgb(0 169 157 / 3%);
}
html .ss-auth__orbit--two {
	right: 5rem;
	top: 22%;
	width: 7rem;
	height: 7rem;
	border-color: rgb(196 216 46 / 12%);
}
html .ss-auth__hero {
	position: relative;
	z-index: 1;
	max-width: 576px;
}
html .ss-auth__identity {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
html .ss-auth__headline {
	max-width: 512px;
	margin: 0;
	font-size: 44px !important;
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: var(--accent-lime);
}
html .ss-auth__tagline {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	font-style: italic;
	color: rgb(255 255 255 / 72%);
}
html .ss-auth__tagline::before {
	content: "";
	flex: none;
	width: 6px;
	height: 16px;
	border-radius: 9999px;
	background: var(--accent-lime);
}
html .ss-auth__lead {
	max-width: 448px;
	margin-top: 12px !important;
	font-size: 15px;
	line-height: 1.75;
	color: rgb(255 255 255 / 72%);
}

/* Info pendaftaran (ketentuan singkat) */
html .sx-facts {
	max-width: 448px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
html .sx-facts li {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
	padding: 12px 0;
	font-size: 13px;
	line-height: 1.45;
	color: rgb(255 255 255 / 72%);
	border-top: 1px solid rgb(255 255 255 / 12%);
}
html .sx-facts b {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
}
html .sx-facts__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--accent-lime);
	background: rgb(255 255 255 / 8%);
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: var(--radius-md);
}
html .sx-facts__icon.sx-i::before {
	width: 16px;
	height: 16px;
	vertical-align: 0;
}

/* Panel kartu */
html .ss-auth__panel {
	position: relative;
	order: 1;
	box-sizing: border-box;
	display: flex;
	flex: 1 1 0%;
	align-items: center;
	justify-content: center;
	padding: 24px 16px 32px;
	overflow: hidden;
	background: linear-gradient(160deg, #eef8f5 0%, #f4faf8 45%, var(--background) 100%);
}
html .ss-auth__glow {
	position: absolute;
	top: -8rem;
	right: -8rem;
	width: 28rem;
	height: 28rem;
	border-radius: 9999px;
	background: rgb(0 169 157 / 7%);
	filter: blur(16px);
	pointer-events: none;
}
html .ss-auth__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
}
html .ss-auth__card {
	overflow: hidden;
	border: 1px solid rgb(6 64 59 / 18%);
	border-radius: var(--radius-xl);
	background-color: rgb(255 255 255 / 95%);
	box-shadow: 0 24px 80px rgb(6 64 59 / 10%);
}
html .ss-auth__card-header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px;
	overflow: hidden;
	color: #ffffff;
	background:
		linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px) 0 0 / 26px 26px,
		linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px) 0 0 / 26px 26px,
		radial-gradient(circle at 100% 0%, rgb(15 180 206 / 35%), transparent 55%),
		linear-gradient(135deg, #00897f 0%, var(--deep-green) 100%);
}
html .ss-auth__card-header::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -64px;
	width: 150px;
	height: 150px;
	border: 1px solid rgb(196 216 46 / 25%);
	border-radius: 9999px;
	box-shadow: 0 0 0 22px rgb(255 255 255 / 4%);
	pointer-events: none;
}
html .ss-auth__key {
	position: relative;
	z-index: 1;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--accent-lime);
	background-color: rgb(255 255 255 / 12%);
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 12px;
}
html .ss-auth__key.sx-i::before {
	width: 21px;
	height: 21px;
	vertical-align: 0;
}
html .ss-auth__card-header > div:last-child {
	position: relative;
	z-index: 1;
}
html .ss-auth__title {
	margin: 0;
	font-size: 20px !important;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #ffffff;
}
html .ss-auth__subtitle {
	margin-top: 3px !important;
	font-size: 13px;
	color: rgb(255 255 255 / 72%);
}
html .ss-auth__card-body {
	padding: 4px 20px 20px;
}
html .ss-auth__note {
	margin-top: 20px !important;
	font-size: 11px;
	text-align: center;
	color: var(--muted-foreground);
}
/* Hak cipta selalu di dasar halaman: di ponsel itu di bawah info pendaftaran. */
html .ss-auth__note--desktop {
	display: none;
}
html .ss-auth__note--mobile {
	margin-top: 24px !important;
	color: rgb(255 255 255 / 50%);
}

/* Kelompok layanan di dalam kartu */
html .sx-services__sub {
	margin: 20px 0 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.33;
	color: var(--muted-foreground);
}
html .sx-services__group {
	display: grid;
	gap: 8px;
}
html .sx-services__group + .sx-services__sub {
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
	html .ss-auth__panel {
		padding: 32px;
	}
	html .ss-auth__card-header {
		padding: 24px 32px;
	}
	html .ss-auth__card-body {
		padding: 8px 32px 32px;
	}
	html .ss-auth__brand {
		padding: 32px;
	}
}

@media (min-width: 1024px) {
	html .ss-auth {
		display: grid;
		grid-template-columns: minmax(420px, 0.92fr) minmax(540px, 1.08fr);
	}
	html .ss-auth__mobile-identity,
	html .ss-auth__note--mobile {
		display: none;
	}
	html .ss-auth__note--desktop {
		display: block;
	}
	html .ss-auth__panel {
		order: 0;
		min-height: 100vh;
		padding: 32px 48px;
	}
	html .ss-auth__brand {
		order: 0;
		display: flex;
		flex-direction: column;
		min-height: 100vh;
		padding: 40px 48px;
	}
	html .ss-auth__brand .ss-auth__identity {
		display: flex;
	}
	html .ss-auth__brand .ss-auth__headline,
	html .ss-auth__grid,
	html .ss-auth__orbit {
		display: block;
	}
	html .ss-auth__hero {
		margin: auto 0;
		padding: 64px 0 96px;
	}
	html .ss-auth__tagline {
		margin-top: 18px !important;
	}
	html .sx-facts {
		margin-top: 32px;
	}
}

@media (min-width: 1280px) {
	html .ss-auth__brand {
		padding: 48px 64px;
	}
	html .ss-auth__headline {
		font-size: 56px !important;
	}
	html .ss-auth__panel {
		padding: 32px 80px;
	}
}

/* Baris aksi: ikon, label + keterangan, penunjuk arah. */
html .sx-action {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 16px;
	column-gap: 12px;
	align-items: center;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 10px 14px 10px 10px;
	font: inherit;
	text-align: left;
	text-decoration: none;
	color: var(--foreground);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	cursor: pointer;
	transition: background-color 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}
html .sx-action:hover,
html .sx-action:focus {
	color: var(--foreground);
	text-decoration: none;
	background: rgb(0 169 157 / 6%);
	border-color: rgb(0 169 157 / 45%);
}
html .sx-action:focus {
	outline: 0;
}
html .sx-action:focus-visible {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--ring);
}
html .sx-action:active {
	transform: translateY(1px);
}
html .sx-action__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--muted-foreground);
	background: var(--muted);
	border-radius: var(--radius-md);
}
html .sx-action__icon.sx-i::before {
	width: 20px;
	height: 20px;
	vertical-align: 0;
}
html .sx-action__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
html .sx-action__label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}
html .sx-action__desc {
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--muted-foreground);
}
html .sx-action__go {
	display: inline-flex;
	color: var(--placeholder);
	transition: transform 150ms ease-out, color 150ms ease-out;
}
html .sx-action__go.sx-i::before {
	vertical-align: 0;
}
html .sx-action:hover .sx-action__go.sx-i-chevron-right {
	transform: translateX(2px);
	color: var(--primary);
}
html .sx-action--external .sx-action__go::before {
	content: "";
	display: inline-block;
	background-color: currentColor;
	width: 14px;
	height: 14px;
	-webkit-mask-image: var(--sx-icon-external);
	mask-image: var(--sx-icon-external);
}

/* Daftar = aksi utama (tosca solid). */
html .sx-action--primary,
html .sx-action--primary:focus {
	color: var(--primary-foreground);
	background: var(--primary);
	border-color: var(--primary);
}
html .sx-action--primary:hover {
	color: var(--primary-foreground);
	background: var(--primary-hover);
	border-color: var(--primary-hover);
}
html .sx-action--primary .sx-action__icon {
	color: var(--primary-foreground);
	background: rgb(255 255 255 / 18%);
}
html .sx-action--primary .sx-action__desc {
	color: rgb(255 255 255 / 88%);
}
html .sx-action--primary .sx-action__go,
html .sx-action--primary:hover .sx-action__go.sx-i-chevron-right {
	color: var(--primary-foreground);
}
html .sx-action--primary:focus-visible {
	border-color: var(--deep-green);
}
/* Daftar varian lain (mint). */
html .sx-action--secondary {
	background: var(--secondary);
	border-color: rgb(0 169 157 / 30%);
}
html .sx-action--secondary .sx-action__icon {
	color: var(--deep-green);
	background: var(--card);
}
/* Cek / check in = info (biru). */
html .sx-action--info .sx-action__icon {
	color: var(--info);
	background: rgb(22 119 168 / 10%);
}

/* Overlay ketentuan: lembar di atas desk yang diredupkan. */
html #popup-konfirmasi {
	padding: 24px 16px;
	background: rgb(6 64 59 / 55%);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	overflow: hidden;
}
html .toc-sheet {
	display: flex;
	flex-direction: column;
	max-width: 760px;
	max-height: 100%;
	margin: 0 auto;
	background: var(--card);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-xl);
	overflow: hidden;
	animation: sx-sheet-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sx-sheet-in {
	from { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
	html .toc-sheet {
		animation: none;
	}
}
html .toc-sheet__head {
	flex: none;
	padding: 20px 24px 16px;
	border-bottom: 1px solid var(--border);
}
html .toc-sheet__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--foreground);
}
html .toc-sheet__desc {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--muted-foreground);
}
html #popup-konfirmasi #list_toc {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 4px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
html .toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}
html .toc-list > li {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	column-gap: 12px;
	padding: 12px 0;
	font-size: 14px;
	line-height: 1.55;
	border-top: 1px solid var(--border);
	counter-increment: toc;
}
html .toc-list > li:first-child {
	border-top: 0;
}
html .toc-list > li::before {
	content: counter(toc);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: -1px;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--deep-green);
	background: var(--secondary);
	border-radius: 9999px;
}
html .toc-sheet__foot {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 16px 24px;
	background: var(--background);
	border-top: 1px solid var(--border);
}
html .toc-consent {
	flex: 1 1 280px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.43;
	color: var(--foreground);
	background: var(--secondary);
	border: 1px solid rgb(0 169 157 / 40%);
	border-radius: var(--radius-md);
	cursor: pointer;
}
html .toc-consent input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
}
html .toc-sheet__actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}
html .toc-sheet__actions .btn {
	min-width: 112px;
}

/* Loader poli JKN */
html #loading-poli-jkn {
	background: rgb(6 64 59 / 72%);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
html .sk-folding-cube .sk-cube::before {
	background-color: var(--accent-lime);
}

/* Judul halaman wizard (reservasi, ubah berkas) */
html .sx-page-head {
	max-width: 880px;
	margin: 16px auto 20px;
}
html .sx-page-head__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--foreground);
}
html .sx-page-head__desc {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--muted-foreground);
}
html .sx-page-head + #msform,
html .sx-page-head + #formUpdate {
	margin-top: 0;
}

/* Dialog status reservasi */
html .modalStatusRO .modal-dialog {
	max-width: 720px;
	width: auto;
}
html .modalStatusRO .table-aktif,
html .modalStatusRO .table-batal {
	margin-bottom: 12px;
	border-radius: var(--radius-md);
	border-collapse: separate;
	overflow: hidden;
}
html .table-aktif {
	background-color: rgb(39 134 75 / 6%);
	box-shadow: inset 0 0 0 1px rgb(39 134 75 / 40%);
}
html .table-batal {
	background-color: rgb(231 0 11 / 5%);
	box-shadow: inset 0 0 0 1px rgb(231 0 11 / 30%);
}
html .modalStatusRO .table > tbody > tr > td:first-child {
	width: 34%;
	color: var(--muted-foreground);
	font-size: 13px;
}
html .modalStatusRO .table > tbody > tr > td:nth-child(2) {
	width: 1%;
	padding-left: 0;
	padding-right: 0;
	color: var(--muted-foreground);
}
html .modalStatusRO .table > tbody > tr:first-child > td {
	border-top: 0;
}
html .modalStatusRO .bootbox-body > .btn {
	margin: 0 6px 8px 0;
}
html .modalStatusRO .bootbox-body h4 {
	margin-top: 16px;
	font-size: 14px;
	font-weight: 600;
}
html .info-verifikasi {
	margin: 4px 0 12px;
	padding: 10px 14px;
	font-family: var(--font-sans) !important;
	font-size: 13px !important;
	color: var(--foreground) !important;
	background: rgb(22 119 168 / 5%);
	border: 1px solid rgb(22 119 168 / 30%);
	border-radius: var(--radius-md);
}
html .info-verifikasi ul {
	margin: 4px 0 0;
}
html .modal-informasi-bpjs .modal-body img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}
html #idInputNoRm {
	text-align: left;
}

/* Info BPJS di atas konten (template/view_info) */
html .contentInfoFooter {
	top: calc(var(--topbar-height) + 12px);
}
html .itemInfoFooter {
	font-size: 14px;
	box-shadow: var(--shadow-xl);
}

/* =========================================================================
   Registrasi PIC (/pic): #msform tanpa fieldset
   ========================================================================= */

html #contoh-webcam-di-html,
html #contoh-webcam-di-html + p {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}
html #contoh-webcam-di-html {
	margin-top: 20px;
	margin-bottom: 4px;
	font-size: 20px;
	font-weight: 700;
}
html #contoh-webcam-di-html + p {
	font-size: 14px;
	color: var(--muted-foreground);
}
html #msform > div {
	padding: 24px 28px;
	background: var(--card);
	border-radius: var(--radius-xl);
	box-shadow: 0 0 0 1px rgb(30 52 48 / 10%), var(--shadow-xs);
}
html #msform > div > .btn {
	min-width: 112px;
	margin: 8px 8px 0 0;
}
html #msform #first_form > .btn {
	margin-top: 4px;
}

/* =========================================================================
   Umum
   ========================================================================= */

#maincontainer {
	min-height: 0;
}
.bootbox .modal-dialog {
	z-index: 9999;
}
.modal-backdrop {
	height: 100% !important;
}
#loading {
	text-align: center;
	background-color: transparent;
	border: 0;
	box-shadow: none;
}
#loading > .modal-backdrop {
	z-index: -1;
}
.footer .pull-left {
	float: none !important;
	text-align: center;
}
th {
	text-align: left;
}
.info-last-reservasi td {
	vertical-align: top;
}
.text-left {
	text-align: left;
}

@media print {
	.no-print,
	.no-print * {
		display: none !important;
	}
	.navbar,
	footer.footer {
		display: none !important;
	}
	html body {
		padding: 0;
		background: #ffffff;
	}
	html #msform fieldset,
	html #formUpdate fieldset {
		box-shadow: none;
	}
}

.gly-spin {
	animation: spin 2s infinite linear;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(359deg); }
}

/* ---------- Ponsel ---------- */

@media (max-width: 767px) {
	html #msform,
	html #formUpdate {
		margin-top: 8px;
	}
	html #msform fieldset,
	html #formUpdate fieldset,
	html #msform > div {
		padding: 20px 16px;
	}
	html #progressbar li {
		font-size: 11px;
		padding: 0 2px;
	}
	html #progressbar li::before {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
	html #progressbar li::after {
		top: 13px;
		left: calc(-50% + 18px);
		width: calc(100% - 36px);
	}
	/* Tombol aksi berbagi lebar baris. */
	html #msform fieldset,
	html #formUpdate fieldset {
		text-align: center;
	}
	html #msform .action-button,
	html #formUpdate .action-button {
		min-width: calc(50% - 6px);
		margin: 16px 0 0;
	}
	html #msform .action-button + .action-button,
	html #formUpdate .action-button + .action-button {
		margin-left: 8px;
	}
	html #msform .text-left > input[type="radio"],
	html #msform .text-left > input[type="checkbox"],
	html #formUpdate .text-left > input[type="radio"],
	html #formUpdate .text-left > input[type="checkbox"] {
		top: 14px;
	}
	html #contoh-webcam-di-html,
	html .sx-page-head__title {
		font-size: 18px !important;
	}
	html .sx-page-head {
		margin: 8px 0 16px;
	}
	html #msform table.pj_pasien td {
		padding: 12px 12px 12px 28px !important;
	}
	html #popup-konfirmasi {
		padding: 8px;
	}
	html .toc-sheet__head {
		padding: 16px;
	}
	html #popup-konfirmasi #list_toc {
		padding: 0 16px;
	}
	html .toc-sheet__foot {
		padding: 12px 16px 16px;
	}
	html .toc-consent {
		flex-basis: 100%;
	}
	html .toc-sheet__actions {
		width: 100%;
	}
	html .toc-sheet__actions .btn,
	html .toc-sheet__actions > span {
		flex: 1 1 0;
		min-width: 0;
	}
	/* Aksi lanjut mendapat dua kali lebar Batal agar labelnya satu baris. */
	html .toc-sheet__actions > span {
		flex-grow: 2;
	}
	html .toc-sheet__actions > span .btn {
		width: 100%;
	}
	html .resume_reservasi td:first-child,
	html .modalStatusRO .table > tbody > tr > td:first-child {
		width: 40%;
	}
}
