@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-style: normal;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--grey: #f1f0f6;
	--dark-grey: #8d8d8d;
	--light: #fff;
	--dark: #000;
	--green: #81d43a;
	--light-green: #e3ffcb;
	--blue: oklch(57.016% 0.14498 276.704);
	--light-blue: #f1f3ff;
	--dark-blue: rgb(194, 199, 255);
	--red: #fc3b56;
	--scroll-thumb: #5762d964;
	--scroll-track: rgba(0, 0, 0, 0.04);
	--scroll-size: 10px;
}

/* -------------------------------------- */
/* ---------- STYLE CUSTOM -------------- */
/* -------------------------------------- */

/* Placeholder lebih kecil */
input::placeholder {
	font-size: 12px; /* Ubah sesuai kebutuhan */
}

input {
	font-size: 12px !important; /* Ubah sesuai kebutuhan */
}

select.form-control {
	font-size: 0.75rem;
}

textarea.form-control {
	font-size: 0.75rem;
}

.text-small {
	font-size: 12px !important;
}

.btn-primary-color {
	background-color: #636ccb;
}

.btn-primary-color:hover {
	background-color: #5159ad !important;
}

.btn-secondary-color {
	background: #f1f3ff;
}

.btn-secondary-color:hover {
	background: #e2e6fa;
}

.bg-primary-color {
	background-color: var(--blue) !important;
}

.bg-secondary {
	background-color: #f1f3ff !important;
}

.text-blue {
	color: var(--blue) !important;
}

.star-open {
	color: var(--blue);
	font-size: 11px;
}

.border-primary-color {
	border: 1px solid var(--blue) !important;
}

.collapse .table-responsive {
	position: relative;
	overflow-y: auto;
	max-height: 25rem;
}

.collapse .table .form-check-input {
	position: static !important;
	margin: 0 auto !important;
	display: block !important;
	transform: none !important;
	z-index: 1 !important;
}

.form-control:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 0.2rem #636ccb51;
}

/* TABLE STRIPED */
/* Warna striped untuk baris ganjil */
.table-striped tbody tr:nth-of-type(odd) {
	background-color: #e0e2fb !important; /* biru muda lembut */
}

/* Hover hanya untuk baris genap (yang tidak berwarna) */
.table-striped tbody tr:hover {
	background-color: #afb8ff !important; /* warna hover lembut */
}
/* TABLE STRIPED */

/* TABLE STRIPED LAZYLOD */
tbody > tr.bg-striped.odd {
	background-color: var(--light-blue);
	/* abu terang */
}

tbody > tr.bg-striped.even {
	background-color: #ffffff;
	/* putih */
}

tbody > tr.bg-striped:hover {
	background-color: #afb8ff;
	transition: background-color 0.2s ease-in-out;
}
/* TABLE STRIPED LAZYLOD */

/* TABLE STRIPED SELECT*/
/* 🔘 Hilangkan radio bawaan */
.select-billing-radio {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #6c757d;
	border-radius: 50%;
	display: inline-block;
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* 🔘 Hover efek */
.select-billing-radio:hover {
	border-color: #f9a01b;
	box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}

/* 🔘 Saat dipilih */
.select-billing-radio:checked {
	border-color: #ffffff;
	background-color: #f9a01b;
	box-shadow: 0 0 6px rgba(0, 123, 255, 0.6);
}

/* 🔘 Titik di tengah saat aktif */
.select-billing-radio:checked::after {
	content: "";
	width: 10px;
	height: 10px;
	background-color: white;
	border-radius: 50%;
	position: absolute;
	top: 3px;
	left: 3.2px;
}

/* TABLE STRIPED SELECT FIX */
.table-striped tbody tr.selected-row {
	background-color: #8d9aff !important;
	color: #fff; /* opsional: biar teks tetap kontras */
}
/* TABLE STRIPED SELECT*/

/* select 2 */
.select2-results__option:nth-child(odd) {
	background-color: #eff0ff;
}

.select2-results__option:nth-child(even) {
	background-color: #ffffff;
}

.select2-results__option--highlighted {
	background-color: var(--blue) !important;
	color: white !important;
}

/* Ukuran font select2 jadi kecil (sm) */
.select2-container--default .select2-selection--single {
	min-height: 28px;
	font-size: 12px;
}

/* Text yang dipilih */
.select2-container--default .select2-selection__rendered {
	line-height: 26px;
	font-size: 12px;
}

/* Input search di dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
	font-size: 12px;
	padding: 4px 6px;
}

/* Option di dropdown */
.select2-container--default .select2-results__option {
	font-size: 12px;
	padding: 4px 8px;
}

/* select 2 */

.ui-autocomplete {
	max-height: 250px;
	width: 250px;
	overflow-y: auto;
	overflow-x: hidden;
	border-radius: 8px;
	border: 1px solid #ddd;
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	background-color: #fff;
}

.ui-autocomplete li {
	cursor: pointer;
	transition: background 0.2s;
}

/* Baris bergaris (striped) */
.ui-autocomplete li:nth-child(odd) {
	background-color: #ffffff;
}

.ui-autocomplete li:nth-child(even) {
	background-color: #eff0ff;
}

/* Hover effect */
/* Hover & Active (keyboard navigation) */
.ui-autocomplete li:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
	background-color: var(--blue) !important;
	color: #fff !important;
	border: none !important;
}

/* Teks di dalam item (hover & active) */
/* Hover & Active (keyboard navigation) */
.ui-autocomplete li:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
	background-color: var(--blue) !important;
	color: #fff !important;
	border: none !important;
}

/* Teks di dalam item (hover & active) */
.ui-autocomplete li:hover strong,
.ui-autocomplete li:hover small,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active strong,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active small {
	color: #fff !important;
}

/* Default tampilan item */
.ui-autocomplete .ui-menu-item-wrapper {
	background: none !important;
	transition: all 0.15s ease;
}

/* Default warna dan gaya teks strong */
.ui-autocomplete li > div strong {
	color: #000 !important;
	font-weight: 600 !important; /* sedikit lebih tebal dari bold biasa */
}

.ui-autocomplete li:focus {
	background-color: var(--blue) !important;
	color: white;
}

/* Jika teks panjang */
.ui-autocomplete li div {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Active */
.nav-link.active {
	background-color: #f1f3ff !important;
	border-bottom: none;
}

.nav-link.active.person {
	background-color: var(--blue) !important;
}
/* Active */

/* ROLE CARD - VERSI CHECKBOX */
.role-checkbox-group {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.role-checkbox-group {
		grid-template-columns: repeat(3, 1fr); /* Maks 3 kolom */
	}
}

.role-checkbox {
	position: relative;
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
	flex: 1 1 160px;
	transition: all 0.2s ease;
}

.role-checkbox input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.role-card {
	min-height: 4rem;
	border: 1.5px solid #dcdcdc;
	border-radius: 12px;
	transition: all 0.25s ease;
	color: #444;
	background: #fff;
}

.role-card small {
	color: #888888;
}

.role-card:hover {
	border-color: #636ccb;
	background-color: #e3e6fa;
}

/* Efek saat checkbox dicentang */
.role-checkbox input:checked + .role-card {
	border-color: #636ccb;
	background: linear-gradient(135deg, #636ccb, #8187dc);
	color: #fff;
	box-shadow: 0 2px 6px rgba(99, 108, 203, 0.3);
	transform: translateY(-1px);
}

.role-checkbox input:checked + .role-card small {
	color: #fff;
	transform: translateY(-1px);
}

/* Teks di dalam card */
.role-card span {
	display: block;
	font-size: 0.9rem;
}

/* Efek saat checkbox disabled */
.role-checkbox input:disabled + .role-card {
	border-color: #ddd;
	background: #f5f5f5;
	color: #aaa;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
	opacity: 0.7;
}

/* Pastikan hover tidak aktif jika disabled */
.role-checkbox input:disabled + .role-card:hover {
	border-color: #ddd;
	background: #f5f5f5;
	color: #aaa;
}

/* Transisi halus */
.role-card {
	transition:
		all 0.25s ease,
		background 0.3s ease;
}
/* ROLE CARD */

/* SUB-DROPDOWN */
.submenu-collapse {
	margin-left: -3.3rem !important;
}

/* Panah default */
.icon-right {
	transition: transform 0.3s ease;
}

/* Saat menu aktif (terbuka), panah berputar */
a.active .icon-right {
	transform: rotate(90deg);
}

/* Untuk submenu */
.submenu-collapse .icon-right {
	transition: transform 0.3s ease;
}

.submenu-collapse.active .icon-right {
	transform: rotate(90deg);
}

.side-dropdown,
.sub-dropdown {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.side-dropdown.show,
.sub-dropdown.show {
	max-height: 500px;
	/* atau sesuai tinggi kontenmu */
}

.submenu-collapse.active {
	color: var(--blue) !important;
	font-weight: 600;
}
/* SUB-DROPDOWN */

.table-responsive-xl th,
.table-responsive-xl td {
	white-space: nowrap;
}

.table-responsive-xl th:nth-child(1),
.table-responsive-xl td:nth-child(1) {
	width: 50px;
}

.table-responsive-xl th:nth-child(2),
.table-responsive-xl td:nth-child(2) {
	width: 100px;
}

.table-responsive-xl::-webkit-scrollbar {
	width: var(--scroll-size);
	height: var(--scroll-size);
}

.table-responsive-xl::-webkit-scrollbar-track {
	background: var(--scroll-track);
	border-radius: 8px;
}

.table-responsive-xl::-webkit-scrollbar-thumb {
	background-color: var(--scroll-thumb) !important;
	border-radius: 8px;
}

/* Wrapper untuk efek hover */
.profile-wrapper {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease;
	border: 1px solid #2828282a;
}

/* Efek zoom sedikit saat hover */
.profile-wrapper:hover {
	transform: scale(1.05);
}

/* Foto */
.profile-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Overlay muncul saat hover */
.overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.229);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: 0.3s ease;
}

.profile-wrapper:hover .overlay {
	opacity: 1;
}

/* Teks upload */
.overlay-text {
	color: white;
	font-size: 8px;
	letter-spacing: 0.5px;
	background: rgba(97, 97, 97, 0.292);
	padding: 4px 8px;
	border-radius: 4px;
	backdrop-filter: blur(3px);
}

/* Font */
.poppins-regular {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.poppins-bold {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-style: normal;
}
/* Font */

/* style login */
.style-login {
	background-image: url(../image/loginImg.jpg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.login {
	border-radius: 10px;
	background-color: rgba(167, 167, 167, 0.189) !important;
	backdrop-filter: blur(5px);
}

.style-input-login::placeholder {
	font-size: 12px;
}
/* style login */

.animation-warning {
	animation: pulseWarning 2s infinite ease-in-out;
}

@keyframes pulseWarning {
	0% {
		transform: scale(1);
		color: #ffc107;
		/* kuning */
	}

	25% {
		transform: scale(1.1);
		color: #ff9800;
		/* oranye */
	}

	50% {
		transform: scale(1.2);
		color: #dc3545;
		/* merah */
	}

	75% {
		transform: scale(1.1);
		color: #ff9800;
		/* oranye lagi */
	}

	100% {
		transform: scale(1);
		color: #ffc107;
		/* balik ke kuning */
	}
}

/* highlight saat dragover */
#filterContainer.dragover {
	border: 2px dashed #ffc108;
	background: #f8f9fa;
}

#filterContainer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 0.5rem;
	/* jarak antar kolom */
}

#filterContainer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

#filterContainer > [data-field] {
	flex: 1 1 calc(33.33% - 0.5rem);
	/* maksimal 3 kolom */
	min-width: 250px;
	/* biar gak kependekan */
}

#filterContainer .card {
	cursor: grab;
	/* saat normal */
}

#filterContainer .card:active {
	cursor: grabbing;
	/* saat lagi drag */
}

#patientTable thead.dragover {
	outline: 3px dashed #ffc108;
	/* garis biru dashed */
	background-color: #ffc61ab2;
	transition: background-color 0.2s ease;
}

th.sortable {
	position: relative;
	cursor: pointer;
	user-select: none;
}

th.sortable.sorted-asc::after {
	content: "▲";
	/* bisa ganti pakai background-image juga */
	font-size: 0.75rem;
	margin-left: 5px;
	color: #ffc108;
}

th.sortable.sorted-desc::after {
	content: "▼";
	font-size: 0.75rem;
	margin-left: 5px;
	color: #ffc108;
}

.sortable-highlight {
	background: #f8f9fa;
	border: 2px dashed #ffc108;
	height: 40px;
}

.sortable-placeholder {
	border: 2px dashed #ffc108;
	background: #e9f5ff;
	height: 50px;
	margin-bottom: 0.5rem;
}

.draggable-filter {
	border: 1px solid #636ccb;
	border-radius: 5px;
	transition: all 0.2s ease;
}

.draggable-filter:hover {
	background-color: #e9f5ff !important;
	/* sedikit lebih gelap */
	color: #000;
	transform: translateY(-2px);
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px #636ccb;
}

.draggable-column {
	border: 1px solid #636ccb;
	border-radius: 5px;
	transition: all 0.2s ease;
}

.draggable-column:hover {
	background-color: #e9f5ff !important;
	/* sedikit lebih gelap */
	color: #000;
	transform: translateY(-2px);
	box-shadow: 0 1px 2px #636ccb;
}

/* ini untuk elemen ghost */
.drag-ghost {
	transition: all 0.2s ease;
	text-align: center;
	position: absolute;
	top: -9999px;
	left: -9999px;
	background-color: #636ccb;
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	width: 13rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	font-weight: 500;
	font-size: 13px;
	opacity: 0.9;
	pointer-events: none;
}

/* Saat tombol sedang di-drag */
.draggable-filter.dragging-now,
.draggable-column.dragging-now {
	opacity: 0.6;
	transform: scale(0.95);
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

/* Animasi balik saat drag batal */
.draggable-filter.drag-cancel,
.draggable-column.drag-cancel {
	animation: bounceBack 0.25s ease;
}

@keyframes bounceBack {
	0% {
		transform: scale(0.9);
		opacity: 0.5;
	}

	50% {
		transform: scale(1.05);
		opacity: 1;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.karyawan-card-container {
	display: flex;
	align-items: center;
}

/* checkbox tetap aktif */
.karyawan-toggle {
	display: none;
}

/* label */
.karyawan-toggle-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 500;
	color: #495057;

	line-height: 1; /* ✅ INI KUNCINYA */
	padding: 0; /* amanin */
	margin: 0; /* pastikan */
}

/* SWITCH KECIL */
.toggle-switch-pasien {
	position: relative;
	width: 32px;
	height: 16px;
	background: #ced4da;
	border-radius: 20px;
	transition: 0.25s;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* KNOB KECIL */
.toggle-switch-pasien::after {
	content: "";
	position: absolute;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: 0.25s;
}

/* CHECKED */
.karyawan-toggle:checked + .karyawan-toggle-label .toggle-switch-pasien {
	background: #545bad;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.karyawan-toggle:checked + .karyawan-toggle-label .toggle-switch-pasien::after {
	transform: translateX(16px);
}

/* ===================== */
/* TOOLTIP */
/* ===================== */
.toggle-switch-pasien::before {
	content: attr(data-tooltip-off);
	position: absolute;
	bottom: 130%;
	left: 50%;
	transform: translateX(-50%);
	background: #212529;
	color: #fff;
	font-size: 0.65rem;
	padding: 3px 6px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: 0.2s;
}

/* Tooltip arrow */
.toggle-switch-pasien::marker {
	display: none;
}

/* Hover show */
.karyawan-toggle-label:hover .toggle-switch-pasien::before {
	opacity: 1;
}

/* Tooltip text ketika ON */
.karyawan-toggle:checked
	+ .karyawan-toggle-label
	.toggle-switch-pasien::before {
	content: attr(data-tooltip-on);
}

.upload-area {
	position: relative;
	border: 2px dashed #c7c7c7;
	border-radius: 12px;
	padding: 30px 15px;
	background-color: #ffffff;
	transition: all 0.18s ease;
	cursor: pointer;
	min-height: 110px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.upload-area:hover {
	background-color: #fbfdff;
	border-color: #6ea8fe;
}
.upload-area.drag-over {
	background-color: #e9f5ff;
	border-color: #3b82f6;
	box-shadow: 0 6px 18px rgba(59, 130, 246, 0.08);
}
.upload-area .hint {
	color: #6b7280;
}
.upload-area .preview {
	margin-top: 8px;
	text-align: center;
}
.upload-area .preview .name {
	font-weight: 600;
	color: #111827;
}
.upload-area .preview .size {
	color: #6b7280;
	font-size: 0.85rem;
}
.upload-area input[type="file"] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

#uploadHint {
	transition: all 0.3s ease;
}

#uploadHint[style*="display: none"] {
	opacity: 0;
	transform: scale(0.95);
}

.badge.badge-success {
	color: #ffffff !important;
	padding: 4px 10px;
	background-color: #5c69ff91 !important;
}

.badge.badge-danger {
	color: #ffffff !important;
	padding: 4px 10px;
	background-color: #f51c31be !important;
}

.badge.badge-info {
	color: #ffffff !important;
	padding: 4px 10px;
	background-color: #24bcd4b7 !important;
}

.badge.badge-warning {
	color: #ffffff !important;
	padding: 4px 10px;
	background-color: #fea712bf !important;
}

.badge.badge-primary {
	color: #ffffff !important;
	padding: 4px 10px;
	background-color: #1241febf !important;
}

.badge.badge-dark {
	padding: 4px 10px;
}

/* 🌙 Tombol utama dropdown */
.action-btn {
	background-color: #2b2b2b;
	border: none;
	padding: 8px 10px;
	transition: all 0.3s ease;
}

.action-btn:hover {
	background-color: #444;
	transform: scale(1.05);
}

/* 💫 Dropdown container */
.action-dropdown {
	background-color: #1e1e1e;
	border-radius: 14px;
	min-width: 180px;
}

/* ✨ Item dropdown */
.action-dropdown .dropdown-item {
	color: #e0e0e0;
	padding: 8px 12px;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.action-dropdown .dropdown-item:hover {
	background-color: #292929;
	color: #fff;
	transform: translateX(3px);
}

/* 🌈 Ikon */
.action-dropdown i {
	font-size: 1rem;
}

/* 🌬 Animasi lembut saat muncul */
.animate-fade {
	animation: fadeIn 0.25s ease-in-out;
}

/* Pastikan dropleft menu benar-benar menempel di sisi kiri tombol */
.dropleft .dropdown-menu {
	right: 100%; /* taruh tepat di kiri tombol */
	left: auto;
	top: 0; /* sejajar vertikal dengan tombol */
	transform-origin: right center;
}

.dropdown:hover .action-dropdown {
	display: block;
	margin-top: 0;
	opacity: 1 !important;
	visibility: visible !important;
}

.dropdown .action-dropdown {
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease-in-out;
}

.dropleft:hover .action-dropdown {
	right: 100%;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* --- Style khusus hanya untuk blok ini --- */
.custom-option .form-check {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 12px;
	padding: 5px;
	width: 100%;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
}

.custom-option .form-check:hover {
	background: #e9f5ff;
	border-color: #636ccb;
	transform: scale(1.03);
	box-shadow: 0 3px 10px rgba(13, 110, 253, 0.2);
}

/* Hide default input */
.custom-option .form-check-input {
	display: none;
}

/* Label jadi tombol elegan */
.custom-option .form-check-label {
	display: block;
	font-weight: 600;
	color: #333;
	padding: 5px;
	font-size: 12px;
	cursor: pointer;
}

/* --- Style saat dipilih --- */
.custom-option input[type="radio"]:checked + label,
.custom-option input[type="checkbox"]:checked + label {
	background: #636ccb;
	color: #fff;
	border-radius: 10px;
	transition: 0.3s ease;
	box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

/* --- Ubah warna text-muted jadi putih saat input dipilih --- */
.custom-option input[type="radio"]:checked + label small.text-muted,
.custom-option input[type="checkbox"]:checked + label small.text-muted {
	color: #fff !important;
}

/* --- Text harga kecil di bawah --- */
.custom-option small.text-muted {
	display: block;
	margin-top: 5px;
	font-weight: normal;
	color: rgba(255, 255, 255, 0.85);
}

/* Wrapper perlu position relative */
.hover-dropdown {
	position: relative;
	display: inline-block;
}

/* Default: dropdown hidden */
.bulk-dropdown-menu {
	display: block;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		visibility 0.25s ease;
}

/* Saat hover button atau menu → tetap tampil */
.hover-dropdown:hover .bulk-dropdown-menu,
.hover-dropdown.hover-active .bulk-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(4px);
	pointer-events: auto;
}

.is-invalid + .select2-container .select2-selection {
	border: 1px solid #dc3545 !important;
}

.upload-photo-box {
	width: 100px;
	height: 100px;
	border: 2px dashed #9f9f9f;
	border-radius: 12px;
	cursor: pointer;
	position: relative;
	margin: auto;
	transition: all 0.3s ease;
	background-color: #f9fcff;
}

.upload-photo-box:hover {
	border-color: #636ccb;
	background-color: #eef6ff;
}

.upload-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #494949;
	text-align: center;
	padding: 15px;
}

.upload-inner i {
	font-size: 15px;
	margin-bottom: 8px;
}

.upload-inner p {
	font-weight: 600;
	font-size: 8px;
}

.upload-inner small {
	font-size: 10px;
	color: #7daeea;
}

/* Preview Image */
.upload-photo-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

/* FIELD SELECT2 MULTIPLE — KECIL & PROFESIONAL */
.select2-container--default .select2-selection--multiple {
	min-height: 28px;
	padding: 2px 6px;
	border-radius: 6px;
	border: 1px solid #ced4da;
	font-size: 12px;
	display: flex;
	align-items: center;
}

/* SEMBUNYIKAN SEMUA TAG PILIHAN */
.select2-container--default
	.select2-selection--multiple
	.select2-selection__choice {
	display: none !important;
}

/* JAGA PLACEHOLDER TETAP TENGAH */
.select2-container--default
	.select2-selection--multiple
	.select2-search--inline
	.select2-search__field {
	margin-top: 0;
	height: 22px;
	line-height: 22px;
	font-size: 12px;
}

/* FOCUS STATE */
.select2-container--default.select2-container--focus
	.select2-selection--multiple {
	border-color: #86b7fe;
	box-shadow: 0 0 0 0.12rem rgba(13, 110, 253, 0.15);
}

/* DESTINATION */
.destination-box {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 20px;
}

.destination-title {
	font-size: 0.75rem;
	color: #6c757d;
	font-weight: 600;
	margin-bottom: 6px;
}

.destination-address {
	font-size: 0.75rem;
	font-weight: 600;
	color: #212529;
}

.last-title {
	font-size: 0.6rem;
	font-weight: 400;
	color: #ffffff;
	padding: 1px 3px;
	border-radius: 5px;
	background-color: #a2acf2;
}

.title-finish {
	font-size: 0.6rem;
	font-weight: 400;
	color: #ffffff;
	padding: 1px 3px;
	border-radius: 5px;
	background-color: #8ae181;
}

/* TIMELINE */
.tracking-timeline {
	position: relative;
	padding-left: 30px;
}

.tracking-timeline::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #dee2e6;
}

.timeline-item {
	position: relative;
	padding-bottom: 20px;
}

.timeline-marker {
	position: absolute;
	left: 6px;
	top: 4px;
}

.timeline-marker span {
	width: 14px;
	height: 14px;
	display: block;
	border-radius: 50%;
	background: #adb5bd;
}

.timeline-item.active .timeline-marker span {
	background: #636ccb;
}

.timeline-content {
	padding-left: 25px;
}

.timeline-header {
	display: flex;
	align-items: center;
	gap: 6px;
}

.timeline-title {
	font-weight: 600;
	font-size: 0.7rem;
	color: #212529;
}

.timeline-time {
	font-size: 0.75rem;
	color: #6c757d;
}

.nota-border-left-success {
	border-left: 6px solid #28a745; /* hijau */
	border-top: none;
	border-right: none;
	border-bottom: none;
	border-radius: 0.25rem;
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.15);
}

.nota-border-left-warning {
	border-left: 6px solid #ffc107; /* kuning */
	border-top: none;
	border-right: none;
	border-bottom: none;
	border-radius: 0.25rem;
	box-shadow: 0 2px 4px rgba(255, 193, 7, 0.18);
}

/* akses cepat */
.dropdown-item.disabled {
	pointer-events: none;
	opacity: 0.5;
}

/* ===== MODAL LOGOUT STYLE ===== */
.modal-logout .modal-content {
	border-radius: 18px;
	min-height: 15rem;
	animation: modalPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logout-icon {
	width: 80px;
	height: 80px;
	background: rgba(239, 68, 68, 0.12);
	color: #ef4444;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	box-shadow: 0 10px 30px rgba(239, 68, 68, 0.25);
}

.modal-logout .btn {
	border-radius: 50px;
	font-weight: 500;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.modal-logout .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* -------------------------------------- */
/* -------- STYLE CUSTOM END ------------ */
/* -------------------------------------- */

html {
	overflow-x: hidden;
	overscroll-behavior-y: none;
}

body {
	background: var(--grey);
	overflow-x: hidden;
}

a {
	text-decoration: none;
}

li {
	list-style: none;
}

/* SIDEBAR */
#sidebar {
	position: fixed;
	max-width: 210px;
	width: 100%;
	background: var(--light);
	top: 0;
	left: 0;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	transition: all 0.3s ease;
	z-index: 200;
}

/* ===== Scrollbar selalu ada ===== */
#sidebar::-webkit-scrollbar {
	width: 10px;
}

/* Track transparan */
#sidebar::-webkit-scrollbar-track {
	background: transparent;
}

/* Thumb default TRANSPARAN */
#sidebar::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0); /* benar-benar hilang */
	border-radius: 10px;
	transition: background-color 0.25s ease;
}

/* ===== Hover ke SIDEBAR → thumb muncul ===== */
#sidebar:hover::-webkit-scrollbar-thumb {
	background-color: var(--scroll-thumb);
}

#sidebar.hide {
	max-width: 50px;
}
#sidebar.hide:hover {
	max-width: 210px;
}
#sidebar .brand {
	font-size: 24px;
	display: flex;
	align-items: center;
	height: 64px;
	font-weight: 700;
	color: var(--blue);
	position: sticky;
	top: 0;
	left: 0;
	z-index: 100;
	background: var(--light);
	transition: all 0.3s ease;
	padding: 0 6px;
}
#sidebar .icon {
	min-width: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-right: 6px;
}
#sidebar .icon-right {
	margin-left: auto;
	transition: all 0.3s ease;
}
#sidebar .side-menu {
	padding: 0 10px;
	transition: all 0.3s ease;
}
#sidebar.hide .side-menu {
	padding: 0 6px;
}
#sidebar.hide:hover .side-menu {
	padding: 0 10px;
}
#sidebar .side-menu a {
	display: flex;
	align-items: center;
	font-size: 12px;
	color: var(--dark);
	padding: 10px 16px 10px 0;
	transition: all 0.3s ease;
	border-radius: 10px;
	margin: 4px 0;
	white-space: nowrap;
}

#sidebar .side-menu > li > ul {
	margin-left: 15px;
}

#sidebar .side-menu > li > ul.active {
	margin-left: -20px;
}

#sidebar .side-menu > li > a:hover {
	background: var(--grey);
}
#sidebar .side-menu > li > a.active .icon-right {
	transform: rotateZ(90deg);
}
#sidebar .side-menu > li > a.active,
#sidebar .side-menu > li > a.active:hover {
	background: var(--blue);
	color: var(--light);
}
#sidebar .divider {
	margin-top: 24px;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--dark-grey);
	transition: all 0.3s ease;
	white-space: nowrap;
}
#sidebar.hide:hover .divider {
	text-align: left;
}
#sidebar.hide .divider {
	text-align: center;
}
#sidebar .side-dropdown {
	padding-left: 30px;
	border-left: 3px solid #636ccb;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transform: translateX(-20px);
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Saat dropdown aktif */
#sidebar .side-dropdown.show {
	max-height: 800px;
	/* cukup besar biar semua item muat */
	opacity: 1;
	transform: translateY(0);
}
#sidebar .side-dropdown a:hover {
	color: var(--blue);
}
#sidebar .ads {
	width: 100%;
	padding: 20px;
}
#sidebar.hide .ads {
	display: none;
}
#sidebar.hide:hover .ads {
	display: block;
}
#sidebar .ads .wrapper {
	background: var(--grey);
	padding: 20px;
	border-radius: 10px;
}
#sidebar .btn-upgrade {
	font-size: 14px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 0;
	color: var(--light);
	background: var(--blue);
	transition: all 0.3s ease;
	border-radius: 5px;
	font-weight: 600;
	margin-bottom: 12px;
}
#sidebar .btn-upgrade:hover {
	background: var(--dark-blue);
}
#sidebar .ads .wrapper p {
	font-size: 12px;
	color: var(--dark-grey);
	text-align: center;
}
#sidebar .ads .wrapper p span {
	font-weight: 700;
}
/* SIDEBAR */

/* CONTENT */
#content {
	position: relative;
	width: calc(100% - 210px);
	left: 210px;
	transition: all 0.3s ease;
}
#sidebar.hide + #content {
	width: calc(100% - 50px);
	left: 50px;
}
/* NAVBAR */
nav {
	background: var(--light);
	height: 45px;
	padding: 0 20px;
	display: flex;
	align-items: center;
	grid-gap: 28px;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 100;
}
nav .toggle-sidebar {
	font-size: 18px;
	cursor: pointer;
}

nav .nav-link {
	position: relative;
}
nav .nav-link .icon {
	font-size: 18px;
	color: var(--dark);
}
nav .nav-link .badge {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--light);
	background: var(--red);
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--light);
	font-size: 10px;
	font-weight: 700;
}
nav .divider {
	width: 1px;
	background: var(--grey);
	height: 12px;
	display: block;
}
nav .profile {
	position: relative;
}
nav .profile img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	cursor: pointer;
}
nav .profile .profile-link {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: var(--light);
	padding: 10px 0;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	width: 200px;
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s ease;
}
nav .profile .profile-link.show {
	opacity: 1;
	pointer-events: visible;
	top: 100%;
}
nav .profile .profile-link a {
	padding: 10px 16px;
	display: flex;
	grid-gap: 10px;
	font-size: 14px;
	color: var(--dark);
	align-items: center;
	transition: all 0.3s ease;
}
nav .profile .profile-link a:hover {
	background: var(--grey);
}
/* NAVBAR */

/* MAIN */
main {
	width: 100%;
	padding: 24px 20px 20px 20px;
}
main .title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 10px;
}
main .breadcrumbs {
	display: flex;
	grid-gap: 6px;
}
main .breadcrumbs li,
main .breadcrumbs li a {
	font-size: 14px;
}
main .breadcrumbs li a {
	color: var(--blue);
}
main .breadcrumbs li a.active,
main .breadcrumbs li.divider {
	color: var(--dark-grey);
	pointer-events: none;
}
main .info-data {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	grid-gap: 20px;
}
main .info-data .card {
	padding: 20px;
	border-radius: 10px;
	grid-template-columns: repeat(4, 1fr); /* selalu 4 kolom max */
	background: var(--light);
}
main .card .head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}
main .card .head h2 {
	font-size: 24px;
	font-weight: 600;
}
main .card .head p {
	font-size: 14px;
}
main .card .head .icon {
	font-size: 20px;
	color: var(--green);
}
main .card .head .icon.down {
	color: var(--red);
}
main .card .progress {
	display: block;
	margin-top: 24px;
	height: 10px;
	width: 100%;
	border-radius: 10px;
	background: var(--grey);
	overflow-y: hidden;
	position: relative;
	margin-bottom: 4px;
}
main .card .progress::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: var(--blue);
	width: var(--value);
}
main .card .label {
	font-size: 14px;
	font-weight: 700;
}
main .data {
	display: flex;
	grid-gap: 20px;
	margin-top: 20px;
	flex-wrap: wrap;
}
main .data .content-data {
	flex-grow: 1;
	flex-basis: 400px;
	padding: 20px;
	background: var(--light);
	border-radius: 10px;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.1);
}
main .content-data .head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}
main .content-data .head h3 {
	font-size: 20px;
	font-weight: 600;
}
main .content-data .head .menu {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}
main .content-data .head .menu .icon {
	cursor: pointer;
}
main .content-data .head .menu-link {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 140px;
	background: var(--light);
	border-radius: 10px;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.1);
	padding: 10px 0;
	z-index: 100;
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s ease;
}
main .content-data .head .menu-link.show {
	top: 100%;
	opacity: 1;
	pointer-events: visible;
}
main .content-data .head .menu-link a {
	display: block;
	padding: 6px 16px;
	font-size: 14px;
	color: var(--dark);
	transition: all 0.3s ease;
}
main .content-data .head .menu-link a:hover {
	background: var(--grey);
}
main .content-data .chart {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}
main .content-data .chart::-webkit-scrollbar {
	display: none;
}

main .chat-box {
	width: 100%;
	max-height: 360px;
	overflow-y: auto;
	scrollbar-width: none;
}
main .chat-box::-webkit-scrollbar {
	display: none;
}
main .chat-box .day {
	text-align: center;
	margin-bottom: 10px;
}
main .chat-box .day span {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	background: var(--light-blue);
	color: var(--blue);
	font-size: 12px;
	font-weight: 600;
}
main .chat-box .msg img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}
main .chat-box .msg {
	display: flex;
	grid-gap: 6px;
	align-items: flex-start;
}
main .chat-box .profile .username {
	font-size: 14px;
	font-weight: 600;
	display: inline-block;
	margin-right: 6px;
}
main .chat-box .profile .time {
	font-size: 12px;
	color: var(--dark-grey);
}
main .chat-box .chat p {
	font-size: 14px;
	padding: 6px 10px;
	display: inline-block;
	max-width: 400px;
	line-height: 150%;
}
main .chat-box .msg:not(.me) .chat p {
	border-radius: 0 5px 5px 5px;
	background: var(--blue);
	color: var(--light);
}
main .chat-box .msg.me {
	justify-content: flex-end;
}
main .chat-box .msg.me .profile {
	text-align: right;
}
main .chat-box .msg.me p {
	background: var(--grey);
	border-radius: 5px 0 5px 5px;
}
main form {
	margin-top: 6px;
}

main .btn-send {
	padding: 0 16px;
	background: var(--blue);
	border-radius: 5px;
	color: var(--light);
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
}
main .btn-send:hover {
	background: var(--dark-blue);
}
/* MAIN */
/* CONTENT */

@media screen and (max-width: 768px) {
	#content {
		position: relative;
		width: calc(100% - 60px);
		transition: all 0.3s ease;
	}
	nav .nav-link,
	nav .divider {
		display: none;
	}
}
