.form-control,
.form-select,
.select2-container--default .select2-selection--single {
    height: 46px !important;
    font-size: 14px !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    background-color: #fff !important;
}

input[type="text"].form-control,
select.form-select,
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    padding-left: 15px !important;
    color: #212529 !important;
}

input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="password"] {
    padding-left: 15px !important;
    position: relative;
}

input[type="file"].form-control {
    height: 46px !important;
    padding: 8px 15px !important;
    line-height: 28px !important;
    display: block !important;
}

input[type="date"]::-webkit-datetime-edit {
    display: flex !important;
    padding-left: 0px !important;
    align-items: center !important;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    margin-left: 0px !important;
    padding: 0 !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute !important;
    right: 12px !important;
    cursor: pointer;
    filter: invert(30%) sepia(50%) saturate(1000%) hue-rotate(210deg);
}

.select2-selection__clear {
    display: none !important;
}
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 44px !important;
    right: 12px !important;
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus
    .select2-selection--single {
    border-color: #4b49ac !important;
    box-shadow: 0 0 0 0.2rem rgba(75, 73, 172, 0.1) !important;
    outline: 0 !important;
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: #4b49ac !important;
}

/* KHUSUS FILTER TOOLBAR */
.filter-toolbar .input-group {
    height: 46px;
}

.filter-toolbar .input-group-text {
    height: 46px !important;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #fff;
    border-radius: 10px 0 0 10px !important;
}

.filter-toolbar .form-control,
.filter-toolbar .form-select {
    height: 46px !important;
    border-radius: 0 10px 10px 0 !important;
}

/* SEARCH INPUT */
.filter-toolbar .form-control {
    padding: 0 14px !important;
}

/* SHOW ENTRIES SELECT */
.filter-toolbar .form-select {
    padding-left: 12px !important;
    min-width: 70px;
}

/* MOBILE SEARCH ONLY */
@media (max-width: 767.98px) {
    .mobile-search-group {
        height: 42px !important;
    }

    .mobile-search-group .form-control {
        height: 42px !important;
        border-radius: 10px 0 0 10px !important;
        padding: 0 14px !important;
    }

    .mobile-search-group .btn,
    .mobile-search-group .input-group-text {
        height: 42px !important;
        border-radius: 0 10px 10px 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px !important;
    }
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.input-group {
    height: 42px;
}

.input-group .form-control,
.input-group .form-select {
    height: 42px;
}

.input-group-text,
.form-control,
.form-select {
    height: 42px;
    border-radius: 8px;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group .input-group-text {
    cursor: pointer;
}

.pagination {
    gap: 6px;
}

.pagination .page-item .page-link {
    border: none;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.18s ease;
    color: #6c757d;
    font-weight: 500;
}

.pagination .page-item .page-link:hover {
    transform: translateY(-1px);
    color: #4b49ac;
    background-color: #f7f7ff;
}

.pagination .page-item.active .page-link {
    background-color: #4b49ac;
    color: #fff;
    box-shadow: 0 4px 10px rgba(75, 73, 172, 0.18);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #adb5bd;
    box-shadow: none;
}

/* =========================================
   PAGE: Candidate Detail
   Aktif hanya kalau .main-panel berisi .candidate-detail
   ========================================= */

.main-panel:has(.candidate-detail) {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

.candidate-detail {
    min-width: 0;
}

.candidate-detail .card {
    max-width: 100%;
}

/* Tab: satu baris, bisa digeser */
.candidate-detail #candidateTab {
    overflow-x: auto;
    flex-wrap: nowrap;
}

.candidate-detail #candidateTab .nav-link {
    white-space: nowrap;
}

/* Tabel di dalam tab tidak mendorong lebar halaman */
.candidate-detail .tab-content .table-responsive {
    max-width: 100%;
}

/* Cetak: hanya konten */
@media print {
    .sidebar,
    .navbar,
    .footer {
        display: none !important;
    }

    .main-panel:has(.candidate-detail) {
        width: 100%;
    }
}