.template-v2 {
	font-family: "Montserrat", sans-serif;
	color: #222020;
	font-weight: 500;

    svg.lucide,
    svg.lucide * {
        fill: none !important;
    }

	.fw-bold {
		font-weight: 700;
	}

	.fw-normal {
		font-weight: 500;
	}

	.rounded-sm {
		border-radius: 5px;
	}

	.rounded-md {
		border-radius: 7px;
	}

	.text-sm {
		font-size: 12px;
	}

	.text-xs {
		font-size: 10px;
	}

	.bg-golden {
		background-color: #ebe8dd !important;
	}

	.border-hayyu {
		border: 1px solid #006462;
		color: #006462;
	}

    .button-base {
        display: flex;
        align-items: center;
        min-height: 32px;
        line-height: 0;
    }

    .button-radio + .button-radio {
        margin-left: -1px;
    }

    .btn-icon {
        width: 30px !important;
        height: 30px !important;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .btn-icon i.fa {
        font-size: 13px;
        line-height: 1;
        display: block;
    }

	/* V2 Premium Aesthetics: Border Radius for Inputs and Selects */
    .form-control,
    .ui-select-match,
    .ui-select-search,
    .ui-select-choices,
    .ui-select-choices-row,
    .select2-selection,
    .select2-dropdown {
        border-radius: 7px !important;
    }

	/* 1. Berikan radius 7px secara umum ke input-group-text */
	.input-group-text {
		border-radius: 7px;
	}

	/* 2. input-group-text di posisi prepend (depan): hilangkan border-right & radius kanan */
	.input-group > .input-group-text:first-child,
	.input-group > .input-group-prepend:first-child .input-group-text {
		border-right: 0;
		border-top-right-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
	}

	/* 3. form-control yang didahului prepend: hilangkan radius kiri */
	.input-group > .input-group-text + .form-control,
	.input-group > .input-group-prepend + .form-control,
	.input-group > .input-group-prepend ~ .form-control {
		border-top-left-radius: 0 !important;
		border-bottom-left-radius: 0 !important;
	}

	/* 4. input-group-text di posisi append (belakang): hilangkan border-left & radius kiri */
	.input-group > .form-control + .input-group-text,
	.input-group > .form-control ~ .input-group-text,
	.input-group > .form-control ~ .input-group-append .input-group-text,
	.input-group > .input-group-append:last-child .input-group-text {
		border-left: 0;
		border-top-left-radius: 0 !important;
		border-bottom-left-radius: 0 !important;
	}

	/* 5. form-control yang diikuti append: hilangkan radius kanan */
	.input-group > .form-control:not(:last-child) {
		border-top-right-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
	}

    .ui-select-choices {
        margin-top: 5px;
        border: 1px solid #e1e1e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        /* Re-enable scrolling */
        max-height: 250px;
        /* Standard dropdown height */
    }

    /* Fix to ensure internal rows respect parent border radius while scrolling */
    .ui-select-choices-row:first-child {
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
    }

    .ui-select-choices-row:last-child {
        border-bottom-left-radius: 7px;
        border-bottom-right-radius: 7px;
    }

    .ui-select-choices-row.active>span {
        background-color: #5d78ff;
        /* Premium Blue */
    }

	.ui-select-placeholder {
		width: unset !important;
	}

	.formTemplate {
		.icon-input {
			width: 34px;
			padding: 0;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.uiselect-form {
			min-height: 32px;

			.form-control.ui-select-search {
				height: 32px !important;
				border-radius: 7px !important;
				background-color: white;
				outline: none;
				box-shadow: none;
				border: 1px solid #b2b2b2;
			}

			.ui-select-search.form-control:focus {
				border: 1px solid #006462 !important;
			}

			.dropdown-menu {
				border-radius: 7px !important;
			}
		}
	}

	.tab-navigation {
		.nav-pills {
			background-color: inherit !important;
			width: fit-content !important;
			border: 0;
			border-top-left-radius: 8px;
			border-top-right-radius: 8px;
			/* height: 40px; */
		}

		.uib-tab.nav-item {
			height: 40px;
		}

		.hidden-nav .nav-pills {
			display: none;
		}

		.hidden-nav .tab-content {
			background-color: inherit !important;
			padding: 0;
		}

		.nav-tabs {
			background-color: white !important;
			border-top-left-radius: 8px;
			border-top-right-radius: 8px;
		}

		.tab-content {
			background-color: white;
			border: none;
			padding: 1.25rem;
		}

		.tab-content .tab-pane {
			padding: 0 !important;
		}

		.nav-link {
			border: none !important;
			color: #3e3f44 !important;
			font-weight: 400;
			font-size: 16px;
			line-height: 23.8px;
			padding: 8px 30px;
		}

		.nav-pills .nav-link.active {
			background-color: #ffffff;
			color: #006462 !important;
			font-size: 16px;
			font-weight: 600;
			line-height: 23.8px;
			padding: 8px 30px;
			border-top-left-radius: 8px;
			border-top-right-radius: 8px;
			height: 40px;
		}

		.btn-sm {
			width: auto;
		}

		@media (max-width: 768px) {
			/* md breakpoint Bootstrap */
			.btn-sm {
				width: 100%;
			}

			.nav-pills {
				background-color: inherit !important;
				width: 100% !important;
				border: 0;
				border-top-left-radius: 8px;
				border-top-right-radius: 8px;
				display: flex;
				justify-content: start;
				align-items: center;
			}

			.uib-tab.nav-item {
				width: 33.3%;
			}

			.tab-content {
				background-color: white;
				border: none;
				padding: 0.8rem;
			}

			.nav-pills .nav-link.active {
				background-color: #ffffff;
				color: #006462 !important;
				font-size: 12px;
				font-weight: 600;
				line-height: 23.8px;
				border-top-left-radius: 8px;
				border-top-right-radius: 8px;
				height: 40px;
				padding: 8px 10px;
				display: flex;
				justify-content: center;
				align-items: center;
			}

			.nav-link {
				border: none !important;
				color: #3e3f44 !important;
				font-weight: 400;
				font-size: 12px;
				padding: 8px 10px;
				line-height: 23.8px;
				display: flex;
				justify-content: center;
				align-items: center;
			}
		}
	}

	.flatpickr-current-month .flatpickr-monthDropdown-months,
	.flatpickr-current-month .numInputWrapper,
	.flatpickr-current-month .numInputWrapper .numInput {
		font-family: "Montserrat", sans-serif !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		width: 100px;
	}

	.flatpickr-current-month .numInputWrapper .numInput {
		text-align: center !important;
	}

	.flatpickr-day.selected {
		background-color: #006462 !important;
		border: 0 !important;
	}

	.input-group.input-form-group .input-group-text {
		border: 0;
		height: 30px;
		border-left: 1px solid #e0e2eb;
	}

	.border-primary {
		border-color: #006462 !important;
		border-radius: 7px;
	}

	.dropdown-menu-v2 {
		cursor: pointer;
		border-radius: 7px;
		overflow: hidden;
	}

	.dropdown-menu-v2 .dropdown-item.selected-item {
		background-color: #006462 !important;
		color: #ffffff !important;
	}

	.dropdown-menu-v2 .dropdown-item.selected-item:hover {
		background-color: #006462 !important;
	}

	.dropdown-menu-v2 .dropdown-item:focus,
	.dropdown-menu-v2 .dropdown-item:hover {
		background-color: #006462 !important;
		border: none !important;
		outline: none !important;
		color: white;
	}

	.ui-select-bootstrap .ui-select-choices-row>span {
		padding: 4px 12px;
	}

	.button-info {
		width: auto;
		height: 32px;
		border-radius: 5px;
		padding: 8px 18px;
		border: none;
		cursor: pointer;
		background-color: #0aa6ef;
		color: #ffffff;
		font-size: 0.72rem;
		font-weight: 600;
		transition: all 0.2s ease;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.button-info:hover,
	.button-info:focus {
		background: linear-gradient(135deg, #0aa6ef 0%, #0088cb 100%) !important;
		box-shadow: 0 4px 12px 0 rgba(10, 166, 239, 0.3) !important;
		color: #ffffff;
		outline: none !important;
	}
}

/* ===== Hayyu V2 Alert (custom SweetAlert) ===== */
.hayyu-swal-popup {
	border-radius: 12px !important;
	padding: 20px !important;
	font-family: "Montserrat", sans-serif !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.hayyu-swal-popup .new-swal2-icon {
	margin-top: 1.5em !important;
}

.hayyu-swal-title {
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #222020 !important;
	padding: 0 !important;
	margin-bottom: 4px !important;
	line-height: 1.4 !important;
}

.hayyu-swal-html {
	font-size: 14px !important;
	color: #3e3f44 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

.hayyu-swal-actions {
	display: flex !important;
	margin-top: 32px !important;
	gap: 8px !important;
	padding: 0 !important;
	margin-left: unset !important;
	margin-right: unset !important;
}

.hayyu-swal-btn {
	border-radius: 6px !important;
	padding: 8px 12px !important;
	font-size: .76562rem !important;
	font-weight: 500 !important;
	font-family: "Montserrat", sans-serif !important;
	cursor: pointer !important;
	transition: background-color 0.15s, border-color 0.15s !important;
	min-width: 80px !important;
	border: 1px solid transparent !important;
}

.hayyu-swal-btn:focus,
.hayyu-swal-btn:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

.hayyu-swal-btn-primary {
	background-color: #006462 !important;
	color: #ffffff !important;
}

.hayyu-swal-btn-primary:hover {
	background-color: #006462 !important;
}

.hayyu-swal-btn-danger {
	background-color: #dc3545 !important;
	color: #ffffff !important;
}

.hayyu-swal-btn-danger:hover {
	background-color: #c82333 !important;
}

.hayyu-swal-btn-outline {
	background-color: #ffffff !important;
	color: #006462 !important;
	border-color: #006462 !important;
}

.hayyu-swal-btn-outline:hover {
	background-color: #e0f2f1 !important;
}

.hayyu-swal-btn-outline:active {
	background-color: #c8e6e5 !important;
}

.card-stat {
    position: relative;
    height: 150px;
    padding: 40px;
    overflow: hidden;
}

.card-stat::after {
    content: "";
    position: absolute;
    right: 0;
    top: 24px;
    width: 300px;
    height: 200px;
    background-image: url("https://storage.googleapis.com/hayyu-storage/landing-page/assets/background-vector-2.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right top;
    z-index: 1;
}

.card-stat__info-btn {
    position: absolute;
    top: 5%;
    left: 1%;
    color: #AAAAAA;
    background: transparent;
    border: none;
    z-index: 3;
}

.card-stat__info-btn:hover {
    color: #006462;
}

.card-stat__content {
    position: relative;
    z-index: 2;
    color: #006462;
    text-align: center;
}

@media (min-width: 992px) {
    /* Class baru untuk modal yang lebih besar */
    .modal-2lg {
        max-width: 1140px; /* Anda bisa mengubah angka ini sesuai kebutuhan (misal: 1200px) */
        width: 100%;
    }
}

/* ===== Menu Search (Command Palette) ===== */
.menu-search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #777;
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
	height: 36px;
}

.menu-search-trigger:hover,
.menu-search-trigger:focus {
    border-color: #006462;
    background: #fff;
    color: #006462;
    outline: none;
    box-shadow: none;
}

.menu-search-trigger-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.menu-search-trigger-text {
    flex: 1;
}

.menu-search-trigger-kbd {
    display: flex;
    align-items: center;
    gap: 3px;
}

.menu-search-trigger-kbd kbd {
    padding: 2px 5px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 10px;
    background: #fff;
    color: #999;
    font-family: monospace;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .menu-search-trigger-text,
    .menu-search-trigger-kbd {
        display: none;
    }
    .menu-search-trigger {
        padding: 6px 10px;
        border-radius: 50%;
        border-color: transparent;
        background: transparent;
    }
    .menu-search-trigger:hover {
        background: #f0f7f7;
        border-color: #006462;
    }
    .menu-search-trigger-icon {
        font-size: 15px;
    }
}

/* Overlay */
.menu-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
    animation: menuSearchFadeIn 0.12s ease;
}

@keyframes menuSearchFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Dialog */
.menu-search-dialog {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: menuSearchSlideDown 0.12s ease;
}

@keyframes menuSearchSlideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Header */
.menu-search-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
}

.menu-search-header-icon {
    font-size: 16px;
    color: #006462;
    flex-shrink: 0;
}

.menu-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    color: #222;
    background: transparent;
}

.menu-search-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.menu-search-esc-kbd {
    padding: 3px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 11px;
    background: #f5f5f5;
    color: #999;
    cursor: pointer;
    font-family: monospace;
    flex-shrink: 0;
}

.menu-search-esc-kbd:hover {
    background: #ebebeb;
}

.menu-search-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

/* Results */
.menu-search-results {
    list-style: none;
    margin: 0;
    padding: 8px;
    max-height: 352px;
    overflow-y: auto;
}

.menu-search-results::-webkit-scrollbar {
    width: 4px;
}

.menu-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.menu-search-results::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 2px;
}

.menu-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s;
}

.menu-search-result:hover,
.menu-search-result.is-selected {
    background: #f0f7f7;
}

.menu-search-result-icon {
    width: 36px;
    height: 36px;
    background: #e8f4f3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-search-result-body {
    flex: 1;
    display: flex;
    flex-direction: column;
	text-align: left;
    min-width: 0;
}

.menu-search-result-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-search-result-label mark {
    background: #d4edda;
    color: #006462;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 600;
}

.menu-search-result-parent {
    font-size: 11px;
    color: #aaa;
    margin-top: 1px;
    font-weight: 400;
}

.menu-search-result-arrow {
    font-size: 11px;
    color: #d0d0d0;
    flex-shrink: 0;
    transition: color 0.1s;
}

.menu-search-result.is-selected .menu-search-result-arrow {
    color: #006462;
}

/* Empty State */
.menu-search-empty {
    padding: 36px 16px;
    text-align: center;
    color: #bbb;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.menu-search-empty .fa {
    font-size: 28px;
    color: #e0e0e0;
}

/* Footer */
.menu-search-footer {
    padding: 8px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #bbb;
    font-family: "Montserrat", sans-serif;
}

.menu-search-footer kbd {
    padding: 2px 5px;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    background: #f7f7f7;
    font-family: monospace;
    color: #999;
    font-size: 10px;
}

/* Modal custom */
.modal-hayyu .modal-content {
	border-radius: 7px;
    overflow: hidden;
	border: none;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.modal-hayyu .modal-header {
	background-color: #b0cfce !important;
	color: #1f1f1f !important;
	padding: 14px 20px;
	border-bottom: none;
}
.modal-hayyu .modal-header .close {
	color: #1f1f1f;
	opacity: 0.85;
	font-size: 1.4rem;
	text-shadow: none;
}
.modal-hayyu .modal-header .close:hover { opacity: 1; }
.modal-hayyu .modal-header .close:focus { border: none; outline: none; }
.modal-hayyu .modal-body { padding: 20px; }
.modal-hayyu .modal-footer {
	padding: 12px 20px;
	background-color: #f8f9fa;
	border-top: 1px solid #eaeaea;
	border-radius: 0 0 7px 7px;
}
.modal-hayyu .modal-title { font-size: 14px; font-weight: 600; }
.modal-info-row {
	display: flex;
	gap: 8px;
	padding: 6px 0;
	font-size: 13px;
	align-items: flex-start;
}
.modal-info-row:last-child { border-bottom: none; }
.modal-info-label { color: #1f1f1f; min-width: 75px; flex-shrink: 0; }
.modal-info-value { color: #536c79; font-weight: 500; }

/* 1. Base Class: Mengatur struktur & layout utama */
.btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

/* State umum */
.btn-v2:disabled { 
    opacity: 0.65; 
    cursor: not-allowed; 
}

.btn-v2:focus {
	outline: none;
	border: 1px solid #eee;
}

/* 2. Modifiers: Hanya mengatur warna */

/* Primary (Default) */
.btn-v2-primary {
    background-color: #006462;
    color: #fff;
}
.btn-v2-primary:hover { background-color: #004e4c; color: #fff; }

/* Danger */
.btn-v2-danger {
    background-color: #dc3545;
    color: #fff;
}
.btn-v2-danger:hover { background-color: #b02a37; color: #fff; }

/* Warning (Tambahan Baru) */
.btn-v2-warning {
    background-color: #ffc107;
    color: #000;
}
.btn-v2-warning:hover { background-color: #e0a800; color: #000; }

/* Secondary Outline - Biasanya untuk tombol Batal/Tutup */
.btn-v2-outline {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d; /* Menggunakan border sebagai aksen utama */
}

.btn-v2-outline:hover {
    background-color: #f8f9fa; /* Background tipis saat hover */
    color: #495057;
    border-color: #495057;
}

.btn-v2-outline:disabled {
    background-color: transparent;
    border-color: #dee2e6;
    color: #dee2e6;
}


/* Warna shift jadwal karyawan */
td.pagi  { background-color: #cdedd8; }
td.siang { background-color: #ffeeba; }
td.libur { background-color: #f5c6cb; }

/* Answer correct radio — m_exam soal */
.answer-correct-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: 20px;
    border: 1.5px solid #dee2e6;
    background: #f8f9fa;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    margin: 0;
    font-weight: 600;
    font-size: 12px;
    color: #6c757d;
    user-select: none;
}
.answer-correct-radio input[type="radio"] {
    display: none;
}
.answer-correct-radio__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #adb5bd;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}
.answer-correct-radio__letter {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    line-height: 1;
    transition: color 0.15s;
}
.answer-correct-radio.is-correct {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}
.answer-correct-radio.is-correct .answer-correct-radio__dot {
    border-color: #28a745;
    background: #28a745;
}
.answer-correct-radio.is-correct .answer-correct-radio__letter {
    color: #fff;
}
.answer-correct-radio:hover {
    border-color: #28a745;
    background: #f0fff4;
    color: #28a745;
}
.answer-correct-radio:hover .answer-correct-radio__dot {
    border-color: #28a745;
}
.answer-correct-radio:hover .answer-correct-radio__letter {
    color: #28a745;
}
.answer-correct-radio.is-correct:hover .answer-correct-radio__dot {
    border-color: #218838;
    background: #218838;
}
.answer-correct-radio.is-correct:hover .answer-correct-radio__letter {
    color: #fff;
}

/* ── Tom Select — v2 style ───────────────────────────────────────── */

/* Sembunyikan native <select> sebelum TomSelect init agar tidak flash */
select.select-field-ts:not(.tomselected) {
    visibility: hidden;
    height: 32px;
}

.ts-wrapper {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 400;
}
.ts-wrapper .ts-control {
    border: 1px solid #b2b2b2;
    border-radius: 8px;
    min-height: 32px;
    padding: 4px 8px;
    background: #fff;
    box-shadow: none;
    transition: border-color 0.15s ease;
}
.ts-wrapper.focus .ts-control {
    border-color: #006462;
    outline: none;
    box-shadow: none;
}
.ts-wrapper.disabled .ts-control {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}
.ts-wrapper.disabled .ts-control .item,
.ts-wrapper.disabled .ts-control input {
    color: #6c757d;
}
.ts-wrapper .ts-control input {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    color: #222020;
}
.ts-wrapper .ts-control .item {
    font-size: 11px;
    color: #222020;
}
/* dropdown */
.ts-dropdown {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px !important;
    border: 1px solid #ced4da;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 9999 !important;
}
.ts-dropdown .ts-dropdown-content {
    max-height: 220px;
}
.ts-dropdown .option {
    padding: 6px 12px !important;
    color: #222020;
}
.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background-color: #e8f4f4;
    color: #006462;
}
.ts-dropdown .option.selected {
    background-color: #d0eaea;
    color: #006462;
    font-weight: 600;
}
.ts-dropdown .option .highlight {
    background: none !important;
    color: inherit;
    font-weight: 700;
}
/* placeholder */
.ts-wrapper .ts-control .placeholder {
    color: #adb5bd;
    font-weight: 400;
}
/* match input-form height */
.ts-wrapper.single .ts-control {
    height: 32px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.ts-wrapper.single .ts-control .item {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-wrapper.single .ts-control input {
    height: 100%;
    flex: 1 1 0;
    min-width: 0;
}
/* remove-button plugin (multi) */
.ts-wrapper.multi .ts-control .item {
    background: #e8f4f4;
    border: 1px solid #b0cfce;
    border-radius: 4px;
    color: #006462;
    padding: 1px 6px;
}
.ts-wrapper.multi .ts-control .item .remove {
    color: #006462;
    border-left-color: #b0cfce;
}
/* caret position — override library's .75rem → .5rem */
.ts-wrapper.single .ts-control:not(.rtl):after {
    right: calc(.5rem + 5px) !important;
}
.ts-wrapper.single .ts-control.rtl:after {
    left: calc(.5rem + 5px) !important;
}
/* loading spinner — lebih kecil */
.ts-dropdown .spinner {
    width: 18px !important;
    height: 18px !important;
    margin: 6px .75rem;
}
.ts-dropdown .spinner:after {
    width: 12px !important;
    height: 12px !important;
    border-width: 3px;
    margin: 0;
}

.ts-wrapper.multi .ts-control .item {
    background-color: #e6f0ef !important;
    border: none !important;
}
/* ── end Tom Select ──────────────────────────────────────────────── */

/* tableComponentV2 — display column dropdown */
.tc-display-column-menu:not(.ng-hide) { display: block !important; }

.gap-2 {
    gap: .5rem !important;
}

.top-0 { top: 0 !important; }
.right-0 { right: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.left-0 { left: 0 !important; }

/* empty state — reusable */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    color: #9aa0ab;
}
.empty-state svg {
    width: 48px;
    height: 48px;
    stroke: #c8cdd6;
    margin-bottom: 16px;
}
.empty-state-title {
    font-size: 15px;
    font-weight: 600;
    color: #6d6f78;
    margin-bottom: 4px;
}
.empty-state-sub {
    font-size: 13px;
    color: #9aa0ab;
    margin-bottom: 0;
}

/* skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: 4px;
}
.skeleton-text {
    height: 14px;
    display: block;
}
.skeleton-text.w-100 { width: 100%; }
.skeleton-text.w-80  { width: 80%; }
.skeleton-text.w-60  { width: 60%; }
.skeleton-text.w-40  { width: 40%; }
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.template-v2 .card-header-v2 {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e4e7ea;
    background-color: #fff;
    border-radius: 4px 4px 0 0;
}
.template-v2 .card-header-v2 .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #23282c;
    margin: 0;
}
