/* ===========================================
   SELECT2 UNIFORM BOOTSTRAP STYLE
   (SINGLE + MULTIPLE SAME SIZE)
   =========================================== */

/* Wrapper height helpers */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: .375rem !important;
    min-height: 38px !important;
    /* <-- Tinggi Bootstrap */
    height: 38px !important;
    padding: 6px 12px !important;
    /* <-- Padding Bootstrap */
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
}

/* --- SINGLE --- */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #6c757d !important;
    line-height: 24px !important;
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 10px !important;
}

/* --- MULTIPLE --- */
.select2-container--default .select2-selection--multiple {
    padding: 4px 8px !important;
    height: auto !important;
    /* allow tags */
    min-height: 38px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 0 !important;
}

/* Tag item */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ff8800 !important;
    border: none !important;
    color: #fff !important;
    padding: 2px 8px !important;
    border-radius: .375rem !important;
    font-size: .875rem !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, .85) !important;
    margin-right: 6px !important;
}

/* Focus style */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
}

/* --- Dropdown --- */
.select2-container .select2-dropdown {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: .375rem !important;
}

.select2-container .select2-results__option {
    padding: .5rem .75rem !important;
    font-size: 1rem !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    font-size: 14px !important;
    margin-right: 6px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    position: relative !important;
    padding: 5px 20px 5px 8px !important;
    margin: 2px 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 12px !important;
    height: 12px !important;
    font-size: 8px !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 0 6px 0 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding-left: 0;
}

.page-link {
    display: block;
    padding: 8px 14px;
    color: #ff8800;
    border: 1px solid #ff8800;
    background-color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

/* Hover hanya untuk yang tidak aktif */
.page-item:not(.active) .page-link:hover {
    background-color: #ff8800;
    color: #fff;
}

/* ACTIVE (termasuk saat di-hover) */
.page-item.active .page-link,
.page-item.active .page-link:hover {
    color: #fff;
    background-color: #ff8800;
    border-color: #ff8800;
    cursor: default;
}

/* Disabled */
.page-item.disabled .page-link {
    pointer-events: none;
    opacity: 0.4;
}