.modal-detail-pasien {
	/* ============================================
   MODAL DETAIL PASIEN - MODERN CLEAN DESIGN
   Theme: Medical/Aesthetic Clinic Dashboard
   Primary Color: #006766 (Emerald Green)
   ============================================ */

	/* Modal Container */
	.modal-dialog {
		max-width: min(1100px, 90vw);
		width: 100%;
		margin: clamp(10px, 3vh, 30px) auto;
	}

	.modal-content {
		border-radius: clamp(8px, 1vw, 12px) !important;
		border: none;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	}

	/* ============================================
   HEADER SECTION - Dark Green Gradient
   ============================================ */
	.modal-header-detail-pasien {
		background: linear-gradient(135deg, #004d4d 0%, #006766 50%, #008080 100%);
		background-image: url("/assets/images/background-hayyu.png"), linear-gradient(135deg, #004d4d 0%, #006766 50%, #008080 100%);
		background-size: cover;
		background-position: center;
		background-blend-mode: overlay;
		padding: clamp(14px, 2vw, 24px) !important;
		border: none;
		position: relative;
		border-top-left-radius: clamp(8px, 1vw, 12px);
		border-top-right-radius: clamp(8px, 1vw, 12px);
	}

	.modal-header-detail-pasien .close {
		position: absolute;
		top: 7px;
		right: 15px;
		color: white;
		opacity: 0.9;
		z-index: 10;
		font-size: 27px;
		font-weight: 300;
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
		border: 0 !important;
		outline: 0 !important;
	}

	.modal-header-detail-pasien .close:hover {
		opacity: 1;
	}

	/* Header Content Layout */
	.header-content-wrapper {
		padding-top: 1.25rem;
		width: 100%;
	}

	/* Profile Section (Left) */
	.profile-section {
		display: flex;
		gap: clamp(10px, 1.5vw, 20px);
		align-items: center;
		background: rgba(255, 255, 255, 0.08);
		backdrop-filter: blur(1px);
		border-radius: clamp(8px, 1vw, 12px);
		padding: clamp(10px, 1.5vw, 18px);
		border: 1px solid rgba(255, 255, 255, 0.2);
		height: 100%;
	}

	.profile-photo-circle {
		width: clamp(80px, 9vw, 130px);
		height: clamp(80px, 9vw, 130px);
		border-radius: 50%;
		overflow: hidden;
		background: white;
		flex-shrink: 0;
		position: relative;
	}

	.profile-photo-circle img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	.profile-photo-fallback {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		display: none;
		align-items: center;
		justify-content: center;
		background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
	}

	.profile-photo-fallback i {
		font-size: clamp(27px, 3.5vw, 49px);
		color: #006766;
	}

	.profile-details {
		color: white;
	}

	.profile-name {
		font-size: clamp(14px, 1.4vw, 19px);
		font-weight: 700;
		margin: 0 0 6px 0;
		color: white;
		letter-spacing: -0.5px;
	}

	.profile-subtitle {
		font-size: clamp(11px, 1.1vw, 15px);
		margin: 4px 0;
		opacity: 0.95;
		font-weight: 400;
	}

	.profile-regno {
		font-size: clamp(11px, 1.1vw, 15px);
		margin: 4px 0 10px 0;
		opacity: 0.9;
	}

	.stage-badge {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: #006766;
		border: 2px solid rgba(255, 255, 255, 0.4);
		padding: clamp(6px, 0.7vw, 10px) clamp(12px, 1.5vw, 22px);
		border-radius: 50px;
		font-size: clamp(10px, 1.1vw, 15px);
		font-weight: 600;
		color: white;
	}

	.stage-badge .stage-icon {
		font-size: clamp(12px, 1.4vw, 19px);
		line-height: 1;
	}

	.stage-badge .stage-text {
		line-height: 1;
	}

	/* Stats Section (Right - Stacked Vertical) */
	.stats-section {
		display: flex;
		flex-direction: column;
		gap: 12px;
		height: 100%;
	}

	.stat-card {
		background: rgba(255, 255, 255, 0.08);
		backdrop-filter: blur(1px);
		border-radius: clamp(8px, 1vw, 12px);
		padding: clamp(8px, 1vw, 14px) clamp(10px, 1.2vw, 18px);
		display: flex;
		align-items: center;
		gap: clamp(8px, 1vw, 14px);
		border: 1px solid rgba(255, 255, 255, 0.2);
	}

	.stat-card i {
		font-size: clamp(17px, 1.8vw, 25px);
		color: white;
		width: clamp(28px, 2.8vw, 40px);
		text-align: center;
	}

	.stat-info {
		flex: 1;
	}

	.stat-value {
		font-size: clamp(11px, 1.1vw, 15px);
		font-weight: 700;
		color: white;
		margin: 0;
		line-height: 1.2;
	}

	.stat-label {
		font-size: clamp(10px, 1vw, 14px);
		color: rgba(255, 255, 255, 0.85);
		margin: 2px 0 0 0;
	}

	/* ============================================
   MODAL BODY - Two Column Layout
   ============================================ */
	.modal-body-detail-pasien {
		padding: clamp(14px, 1.8vw, 24px);
		background: #f8f9fa;
		border-bottom-left-radius: clamp(8px, 1vw, 12px);
		border-bottom-right-radius: clamp(8px, 1vw, 12px);
	}

	.card-section {
		background: white;
		border-radius: clamp(8px, 1vw, 12px);
		border: 1px solid #e2e8f0;
	}

	/* Section Heading Outside Card */
	.section-heading-outside {
		font-size: clamp(11px, 1.1vw, 15px);
		font-weight: 600;
		color: #212529;
		margin: 0 0 8px 0;
	}

	/* ============================================
   INFO ROWS
   ============================================ */
	.info-rows {
		display: flex;
		flex-direction: column;
	}

	.info-row {
		display: flex;
		align-items: center;
		gap: clamp(10px, 1.4vw, 20px);
		padding: clamp(10px, 1vw, 14px) clamp(12px, 1.4vw, 20px);
		border-bottom: 1px solid #e2e8f0;
	}

	.info-row:last-child {
		border-bottom: none;
	}

	.info-row-highlight {
		background: #e6f0f0;
	}

	.info-row-warning {
		background: #F8F4F1;
		border-left: none;
	}

	.info-label-warning {
		font-size: clamp(11px, 1.1vw, 15px);
		font-weight: 600;
		color: #927106;
		display: flex;
		align-items: center;
		gap: 6px;
		margin-bottom: 6px;
	}

	.info-label-warning i {
		font-size: clamp(10px, 1vw, 14px);
		color: #927106;
	}

	.catatan-customer-list {
		margin: 0;
		padding-left: 20px;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.catatan-customer-list li {
		font-size: clamp(11px, 1.1vw, 15px);
		color: #927106;
	}

	.info-content {
		flex: 1;
		display: flex;
		flex-direction: column;
		gap: 3px;
	}

	.info-content-row {
		flex: 1;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.info-label-sm {
		font-size: clamp(11px, 1.1vw, 15px);
		color: #212529;
		font-weight: 500;
		letter-spacing: 0.3px;
	}

	.info-value-sm {
		font-size: clamp(10px, 1vw, 13px);
        color: #6c757d;
		font-weight: 400;
	}

	.info-value-sm.text-muted {
		color: #6c757d;
		font-size: clamp(9px, 0.9vw, 11px);
	}

	.info-value-lg {
		font-size: clamp(11px, 1.1vw, 15px);
		color: #006766;
		font-weight: 700;
	}

	/* Alamat Header (untuk badge Utama) */
	.alamat-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin-bottom: 2px;
	}

	.alamat-badge-utama {
		background: #006766;
		color: white;
		padding: 4px 10px;
		border-radius: 12px;
		font-size: 9px;
		font-weight: 600;
		text-transform: uppercase;
	}

	/* ============================================
   VOUCHER CARDS - Modern Fintech Style
   ============================================ */
	.voucher-cards {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.voucher-card {
		background: linear-gradient(135deg, #004d4d 0%, #006766 50%, #008080 100%);
		background-image: url("/assets/images/background-hayyu.png"), linear-gradient(135deg, #004d4d 0%, #006766 50%, #008080 100%);
		background-size: cover;
		background-position: center;
		background-blend-mode: overlay;
		border-radius: clamp(10px, 1.2vw, 16px);
		padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.5vw, 20px);
		position: relative;
		overflow: hidden;
		box-shadow: 0 4px 12px rgba(0, 103, 102, 0.15);
	}

	/* Glow effect on right side */
	.voucher-card::after {
		content: "";
		position: absolute;
		top: -30%;
		right: -10%;
		width: 150px;
		height: 150px;
		background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
		border-radius: 50%;
		pointer-events: none;
	}

	.voucher-header {
		margin-bottom: 14px;
		position: relative;
		z-index: 1;
	}

	.voucher-title {
		font-size: clamp(10px, 1vw, 14px);
		font-weight: 600;
		color: white;
		line-height: 1.4;
		display: block;
	}

	.voucher-value-pill {
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border-radius: clamp(8px, 1vw, 12px);
		padding: clamp(10px, 1vw, 14px) clamp(14px, 1.5vw, 20px);
		display: flex;
		width: 100%;
		align-items: center;
		gap: clamp(10px, 1vw, 14px);
		margin-bottom: 14px;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		position: relative;
		z-index: 1;
	}

	.voucher-icon {
		width: clamp(28px, 2.8vw, 40px);
		height: clamp(28px, 2.8vw, 40px);
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}

	.voucher-icon i {
		color: white;
		font-size: clamp(12px, 1.2vw, 17px);
	}

	.voucher-amount-large {
		font-size: clamp(16px, 1.8vw, 23px);
		font-weight: 700;
		color: #004d4d;
		letter-spacing: -0.5px;
	}

	.voucher-minimal {
		font-size: clamp(10px, 1vw, 14px);
		color: white;
		opacity: 0.95;
		position: relative;
		z-index: 1;
		font-weight: 500;
	}

	/* ============================================
   PAKET AKTIF - NEW DESIGN (using info-row)
   ============================================ */
	.info-row-paket {
		padding: clamp(12px, 1.2vw, 16px) clamp(14px, 1.4vw, 20px);
	}

	.info-label-paket {
		font-size: clamp(10px, 1vw, 13px);
		font-weight: 600;
		color: #212529;
		display: block;
		margin-bottom: 8px;
	}

	.paket-detail-list {
		list-style-position: inside;
		padding-left: 0;
		margin: 0;
		color: #6c757d;
	}

	.paket-detail-list li {
		font-size: clamp(9px, 0.9vw, 11px);
		color: #6c757d;
		padding: 4px 0;
		line-height: 1.6;
	}

	/* ============================================
   UPCOMING RESERVATION
   ============================================ */
	.info-value-reservation {
		font-size: clamp(11px, 1.1vw, 15px);
		font-weight: 500;
		color: #212529;
		display: block;
	}

	.info-reservation-details {
		font-size: clamp(10px, 1vw, 13px);
		color: #6c757d;
		line-height: 1.6;
	}

	/* ============================================
   HISTORY CUSTOMER CARD
   ============================================ */
	.card-history-customer {
		padding: clamp(12px, 1.2vw, 16px) clamp(14px, 1.4vw, 20px);
	}

	.history-customer-content {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.history-customer-label {
		font-size: clamp(11px, 1.1vw, 15px);
		font-weight: 600;
		color: #212529;
	}

	.btn-lihat-detail {
		background: #fff;
		color: #006766;
		border: none;
		padding: clamp(6px, 0.6vw, 8px) clamp(12px, 1.2vw, 16px);
		border-radius: 8px;
        border: 1px solid #e2e8f0;
		font-size: clamp(10px, 1vw, 14px);
		font-weight: 500;
		transition: background 0.2s;
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}

	.btn-lihat-detail i {
		font-size: clamp(10px, 1vw, 13px);
	}

	/* ============================================
   MODAL FOOTER
   ============================================ */
	.modal-footer-detail-pasien {
		padding: 16px 24px;
		border-top: none;
		background: #016363;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		border-bottom-left-radius: 12px;
		border-bottom-right-radius: 12px;
	}

	.btn-secondary {
		background: #ffffff;
		color: #005c5c;
		border: none;
		padding: 10px 20px;
		border-radius: 8px;
		font-size: 13px;
		font-weight: 600;
	}

	.btn-secondary:hover {
		background: #f0f0f0;
		color: #005c5c;
	}

    .btn-outline-primary {
        color: #006766;
        border-color: #006766;
    }

	.btn-outline-primary:hover,
	.btn-outline-primary:focus,
	.btn-outline-primary:active,
	.btn-outline-primary:focus:active {
		background-color: #006766 !important;
		border-color: #006766 !important;
		color: #fff !important;
	}

	/* ============================================
   RESPONSIVE
   ============================================ */
	/* Tablet & small laptop — kolom kanan jadi full-row, padding rapat */
	@media (max-width: 991px) {
		.profile-section {
			margin-bottom: 12px;
		}

		.stats-section {
			flex-direction: row;
			flex-wrap: wrap;
			gap: 10px;
		}

		.stat-card {
			flex: 1 1 calc(33.333% - 8px);
			min-width: 0;
		}

		.modal-body-detail-pasien .row.gx-4 > [class*="col-lg-6"] {
			margin-bottom: 4px;
		}
	}

	@media (max-width: 576px) {
		/* ===== HEADER COMPACT ===== */
		.modal-header-detail-pasien {
			padding: 16px !important;
		}

		.header-content-wrapper {
			padding-top: 1rem;
		}

		.header-content-wrapper > .row {
			margin-left: -6px;
			margin-right: -6px;
			gap: 8px;
		}

		.header-content-wrapper > .row > [class*="col-"] {
			padding-left: 6px;
			padding-right: 6px;
		}

		/* Profile: foto kiri, info kanan (sejajar) */
		.profile-section {
			flex-direction: row;
			align-items: center;
			text-align: left;
			gap: 12px;
			padding: 12px;
			margin-bottom: 10px;
		}

		.profile-photo-circle {
			width: 70px;
			height: 70px;
		}

		.profile-photo-fallback i {
			font-size: 27px;
		}

		.profile-details {
			min-width: 0;
			flex: 1;
		}

		.profile-name {
			font-size: 13px;
			margin: 0 0 2px 0;
		}

		.profile-subtitle {
			font-size: 10px;
			margin: 2px 0;
		}

		.profile-regno {
			font-size: 10px;
			margin: 2px 0 6px 0;
		}

		.stage-badge {
			padding: 5px 12px;
			font-size: 10px;
			gap: 5px;
		}

		.stage-badge .stage-icon {
			font-size: 12px;
		}

		/* Stats: 2 kolom (Poin + Coin), voucher full row */
		.stats-section {
			flex-direction: row;
			flex-wrap: wrap;
			gap: 8px;
		}

		.stat-card {
			flex: 1 1 calc(50% - 4px);
			min-width: 0;
			padding: 8px 10px;
			gap: 6px;
			overflow: hidden;
		}

		.stat-card.stat-voucher {
			flex: 1 1 100%;
		}

		.stat-card .icon-2lg,
		.stat-card app-icon {
			font-size: 17px;
			width: 24px;
			height: 24px;
			flex-shrink: 0;
		}

		.stat-card app-icon svg,
		.stat-card app-icon img {
			width: 24px;
			height: 24px;
		}

		/* Info-row icon (NIK, telp, alamat, dll) */
		.info-row app-icon.icon-lg,
		.info-row app-icon {
			width: 24px;
			height: 24px;
			flex-shrink: 0;
		}

		.info-row app-icon.icon-lg svg,
		.info-row app-icon.icon-lg img,
		.info-row app-icon svg,
		.info-row app-icon img {
			width: 24px;
			height: 24px;
		}

		.stat-info {
			min-width: 0;
			overflow: hidden;
		}

		.stat-value {
			font-size: 10px;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}

		.stat-label {
			font-size: 9px;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}

		/* ===== BODY COMPACT ===== */
		.modal-body-detail-pasien {
			padding: 14px;
		}

		.section-heading-outside {
			font-size: 12px;
		}

		.info-row {
			padding: 10px 12px;
			gap: 12px;
		}

		.info-label-sm {
			font-size: 11px;
		}

		.info-value-sm {
			font-size: 10px;
		}

		.info-value-sm.text-muted {
			font-size: 9px;
		}

		.info-value-lg {
			font-size: 12px;
		}

		.info-row-highlight .info-value-lg[style] {
			font-size: 12px !important;
		}

		.info-label-warning {
			font-size: 11px;
		}

		.catatan-customer-list li {
			font-size: 11px;
		}

		/* Voucher card compact */
		.voucher-card {
			padding: 14px 16px;
		}

		.voucher-title {
			font-size: 11px;
		}

		.voucher-value-pill {
			padding: 10px 14px;
			gap: 10px;
			margin-bottom: 10px;
		}

		.voucher-amount-large {
			font-size: 17px;
		}

		.voucher-minimal {
			font-size: 11px;
		}

		/* Paket */
		.info-label-paket {
			font-size: 11px;
		}

		.paket-detail-list li {
			font-size: 10px;
		}

		/* Reservasi */
		.info-value-reservation {
			font-size: 12px;
		}

		.info-reservation-details {
			font-size: 11px;
		}

		/* History customer */
		.history-customer-label {
			font-size: 12px;
		}

		.btn-lihat-detail {
			font-size: 11px;
			padding: 6px 12px;
		}

		/* ===== SKELETON MOBILE ===== */
		/* Profile section skeleton — sejajar foto + info */
		.modal-header-detail-pasien .profile-section {
			flex-direction: row;
			align-items: center;
			text-align: left;
			gap: 10px;
			padding: 10px;
		}

		.sk-avatar {
			width: 54px;
			height: 54px;
		}

		.sk-badge {
			width: 90px;
			height: 20px;
		}

		.modal-header-detail-pasien .sk-line {
			height: 8px;
			margin-bottom: 5px;
		}

		.modal-header-detail-pasien .sk-line-title {
			height: 11px;
		}

		.modal-header-detail-pasien .profile-details .sk-line {
			margin-bottom: 4px;
		}

		/* Stats skeleton: 2 kolom + voucher full */
		.modal-header-detail-pasien .stats-section {
			flex-direction: row;
			flex-wrap: wrap;
			gap: 6px;
		}

		.sk-stat-card {
			flex: 1 1 calc(50% - 3px);
			height: 34px;
			border-radius: 8px;
		}

		.sk-stat-card:nth-child(3) {
			flex: 1 1 100%;
		}

		/* Body skeleton compact */
		.sk-section-title {
			height: 14px;
			margin-bottom: 6px;
		}

		.sk-info-row {
			padding: 10px 12px;
			gap: 12px;
		}

		.sk-icon-circle {
			width: 24px;
			height: 24px;
		}

		.modal-body-detail-pasien .sk-line {
			height: 10px;
			margin-bottom: 6px;
		}

		.modal-body-detail-pasien .sk-line-label {
			height: 12px;
		}

		.sk-info-content {
			gap: 4px;
		}

		/* Voucher skeleton */
		.sk-voucher-card {
			padding: 14px 16px;
			min-height: 100px;
		}

		.sk-voucher-pill {
			height: 42px;
			margin-bottom: 10px;
		}

		/* Highlight + btn placeholder */
		.sk-highlight-row {
			height: 38px;
			padding: 0 12px;
		}

		.sk-btn-placeholder {
			width: 90px;
			height: 30px;
		}
	}
    /* ============================================
       SKELETON LOADING - Premium Shimmer Effect
       ============================================ */

    /* Shimmer keyframe — defined at top level below, outside this selector block */

    /* Base skeleton element */
    .sk-line,
    .sk-avatar,
    .sk-badge,
    .sk-icon-circle,
    .sk-stat-card,
    .sk-section-title,
    .sk-voucher-card,
    .sk-voucher-pill,
    .sk-btn-placeholder,
    .sk-highlight-row {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0.06) 0%,
            rgba(255,255,255,0.18) 30%,
            rgba(255,255,255,0.06) 60%
        );
        background-size: 600px 100%;
        animation: sk-shimmer 1.6s ease-in-out infinite;
        border-radius: 6px;
    }

    /* ---- Header skeleton overrides (dark bg) ---- */
    .modal-header-detail-pasien .sk-line,
    .modal-header-detail-pasien .sk-avatar,
    .modal-header-detail-pasien .sk-badge,
    .modal-header-detail-pasien .sk-stat-card {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0.08) 0%,
            rgba(255,255,255,0.22) 30%,
            rgba(255,255,255,0.08) 60%
        );
        background-size: 600px 100%;
        animation: sk-shimmer 1.6s ease-in-out infinite;
    }

    /* ---- Body skeleton (light bg) ---- */
    .modal-body-detail-pasien .sk-line,
    .modal-body-detail-pasien .sk-icon-circle,
    .modal-body-detail-pasien .sk-section-title,
    .modal-body-detail-pasien .sk-voucher-card,
    .modal-body-detail-pasien .sk-voucher-pill,
    .modal-body-detail-pasien .sk-btn-placeholder,
    .modal-body-detail-pasien .sk-highlight-row {
        background: linear-gradient(
            90deg,
            #e8ecef 0%,
            #f5f7f9 35%,
            #e8ecef 60%
        );
        background-size: 600px 100%;
        animation: sk-shimmer 1.6s ease-in-out infinite;
    }

    /* Avatar / Profile photo skeleton */
    .sk-avatar {
        width: clamp(80px, 9vw, 130px);
        height: clamp(80px, 9vw, 130px);
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* Stage badge skeleton */
    .sk-badge {
        width: clamp(110px, 11vw, 160px);
        height: clamp(28px, 3vw, 42px);
        border-radius: 50px;
    }

    /* Stat card skeleton inside header */
    .sk-stat-card {
        height: clamp(46px, 4.5vw, 64px);
        border-radius: clamp(8px, 1vw, 12px);
    }

    /* Generic line variants */
    .sk-line {
        height: 14px;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .sk-line-label { height: 16px; }
    .sk-line-title { height: 22px; }

    .sk-line-20  { width: 20%; }
    .sk-line-30  { width: 30%; }
    .sk-line-35  { width: 35%; }
    .sk-line-40  { width: 40%; }
    .sk-line-45  { width: 45%; }
    .sk-line-50  { width: 50%; }
    .sk-line-55  { width: 55%; }
    .sk-line-60  { width: 60%; }
    .sk-line-65  { width: 65%; }
    .sk-line-70  { width: 70%; }
    .sk-line-80  { width: 80%; }

    /* Section title outside card */
    .sk-section-title {
        height: 18px;
        width: 40%;
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .sk-section-title-spread {
        width: 100%;
        height: auto;
        background: transparent !important;
        animation: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Icon circle in info row */
    .sk-icon-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* Info row layout */
    .sk-info-rows {
        display: flex;
        flex-direction: column;
    }

    .sk-info-row {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 14px 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .sk-info-row:last-child {
        border-bottom: none;
    }

    .sk-info-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* Highlight row skeleton */
    .sk-highlight-row {
        height: 48px;
        border-radius: 0;
        display: flex;
        align-items: center;
        padding: 0 20px;
        gap: 0;
        background-clip: padding-box;
    }

    /* Voucher card skeleton */
    .sk-voucher-card {
        border-radius: 16px;
        padding: 18px 20px;
        background: linear-gradient(
            90deg,
            #d4e5e5 0%,
            #e8f2f2 35%,
            #d4e5e5 60%
        ) !important;
        background-size: 600px 100% !important;
        animation: sk-shimmer 1.6s ease-in-out infinite !important;
        min-height: 130px;
    }

    /* Voucher pill inside voucher skeleton */
    .sk-voucher-pill {
        height: 56px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    /* Button placeholder */
    .sk-btn-placeholder {
        width: 110px;
        height: 36px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    /* Staggered animation delays for a wave-like feel */
    .sk-info-row:nth-child(1) .sk-line,
    .sk-info-row:nth-child(1) .sk-icon-circle { animation-delay: 0s; }
    .sk-info-row:nth-child(2) .sk-line,
    .sk-info-row:nth-child(2) .sk-icon-circle { animation-delay: 0.1s; }
    .sk-info-row:nth-child(3) .sk-line,
    .sk-info-row:nth-child(3) .sk-icon-circle { animation-delay: 0.2s; }
    .sk-info-row:nth-child(4) .sk-line,
    .sk-info-row:nth-child(4) .sk-icon-circle { animation-delay: 0.3s; }
    .sk-info-row:nth-child(5) .sk-line,
    .sk-info-row:nth-child(5) .sk-icon-circle { animation-delay: 0.4s; }
    .sk-info-row:nth-child(6) .sk-line,
    .sk-info-row:nth-child(6) .sk-icon-circle { animation-delay: 0.5s; }
    .sk-info-row:nth-child(7) .sk-line,
    .sk-info-row:nth-child(7) .sk-icon-circle { animation-delay: 0.6s; }


}

/* ============================================
   DRAWER FROM BOTTOM (mobile only)
   Must live at top level — nesting prepends .modal-detail-pasien
   to inner selectors, breaking match on the window element itself.
   ============================================ */
@media (max-width: 576px) {
    .modal.modal-detail-pasien {
        padding: 0 !important;
        overflow: hidden !important;
    }

    .modal.modal-detail-pasien .modal-dialog {
        position: fixed;
        margin: 0;
        width: 100%;
        max-width: 100%;
        bottom: 0;
        left: 0;
        right: 0;
        height: 90vh;
        max-height: 90vh;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
    }

    .modal.modal-detail-pasien.in .modal-dialog,
    .modal.modal-detail-pasien.show .modal-dialog {
        transform: translateY(0);
    }

    .modal.modal-detail-pasien .modal-content {
        border-radius: 16px 16px 0 0 !important;
        border: none;
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* ng-if="!loading" wrapper — flatten supaya header+body jadi flex child langsung */
    .modal.modal-detail-pasien .modal-content > div[ng-if] {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
    }

    .modal.modal-detail-pasien .modal-header-detail-pasien {
        flex: 0 0 auto;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        padding-top: 24px !important;
        position: relative;
    }

    .modal.modal-detail-pasien .modal-header-detail-pasien::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.5);
        z-index: 11;
    }

    .modal.modal-detail-pasien .modal-body-detail-pasien {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* ============================================
   SKELETON KEYFRAMES — must be at top level,
   cannot be nested inside a selector.
   ============================================ */
@keyframes sk-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

/* ============================================
   V2 FONT SIZE OVERRIDES
   Montserrat optically larger than legacy font.
   Trim ~1-2px desktop to match V1 visual weight.
   Mobile sudah compact — skip.
   ============================================ */
.template-v2 .modal-detail-pasien {

    /* ---- Header ---- */
    .profile-name        { font-size: clamp(14px, 1.25vw, 18px); }
    .profile-subtitle    { font-size: clamp(11px, 1vw, 14px); }
    .profile-regno       { font-size: clamp(11px, 1vw, 14px); }
    .stage-badge         { font-size: clamp(11px, 0.95vw, 13px); padding: clamp(6px, 0.65vw, 8px) clamp(12px, 1.3vw, 18px); }
    .stage-badge .stage-icon { font-size: clamp(13px, 1.2vw, 16px); }

    .stat-value          { font-size: clamp(11px, 1vw, 14px); }
    .stat-label          { font-size: clamp(10px, 0.9vw, 12px); }

    /* ---- Body ---- */
    .section-heading-outside { font-size: clamp(11px, 1vw, 14px); }

    .info-label-sm       { font-size: clamp(11px, 0.95vw, 13px); }
    .info-value-sm       { font-size: clamp(10px, 0.9vw, 12px); }
    .info-value-sm.text-muted { font-size: clamp(10px, 0.85vw, 11px); }
    .info-value-lg       { font-size: clamp(11px, 1vw, 14px); }
    .info-row-highlight .info-value-lg[style] { font-size: clamp(12px, 1.1vw, 15px) !important; }

    .info-label-warning  { font-size: clamp(11px, 0.95vw, 13px); }
    .info-label-warning i { font-size: clamp(11px, 0.95vw, 13px); }
    .catatan-customer-list li { font-size: clamp(11px, 0.95vw, 13px); }

    /* ---- Voucher ---- */
    .voucher-title       { font-size: clamp(11px, 0.95vw, 13px); }
    .voucher-amount-large { font-size: clamp(15px, 1.5vw, 20px); }
    .voucher-minimal     { font-size: clamp(11px, 0.95vw, 13px); }

    /* ---- Paket ---- */
    .info-label-paket    { font-size: clamp(11px, 0.95vw, 13px); }
    .paket-detail-list li { font-size: clamp(10px, 0.85vw, 11px); }

    /* ---- Reservasi ---- */
    .info-value-reservation  { font-size: clamp(11px, 1vw, 14px); }
    .info-reservation-details { font-size: clamp(10px, 0.9vw, 12px); }

    /* ---- History Customer ---- */
    .history-customer-label { font-size: clamp(11px, 1vw, 14px); }
    .btn-lihat-detail    { font-size: clamp(11px, 0.95vw, 13px); }

    /* ---- Mobile: re-shrink (override desktop block above) ---- */
    @media (max-width: 576px) {
        .profile-name        { font-size: 14px; }
        .profile-subtitle    { font-size: 11px; }
        .profile-regno       { font-size: 11px; }
        .stage-badge         { font-size: 11px; padding: 5px 12px; }
        .stage-badge .stage-icon { font-size: 13px; }

        .stat-value          { font-size: 11px; }
        .stat-label          { font-size: 10px; }

        .section-heading-outside { font-size: 13px; }
        .info-label-sm       { font-size: 12px; }
        .info-value-sm       { font-size: 11px; }
        .info-value-sm.text-muted { font-size: 10px; }
        .info-value-lg       { font-size: 13px; }
        .info-row-highlight .info-value-lg[style] { font-size: 13px !important; }

        .info-label-warning  { font-size: 12px; }
        .catatan-customer-list li { font-size: 12px; }

        .voucher-title       { font-size: 12px; }
        .voucher-amount-large { font-size: 18px; }
        .voucher-minimal     { font-size: 12px; }

        .info-label-paket    { font-size: 12px; }
        .paket-detail-list li { font-size: 11px; }

        .info-value-reservation  { font-size: 13px; }
        .info-reservation-details { font-size: 12px; }

        .history-customer-label { font-size: 13px; }
        .btn-lihat-detail    { font-size: 12px; }
    }
}


