/* ==========================================================
   SELECT2 STYLE TWEAKS — match Bootstrap 5 form inputs
   ========================================================== */

/* Align height dengan input.form-control (Bootstrap 5: 38px default) */
.select2-container--bootstrap-5 .select2-selection {
  min-height: 38px;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: #e52657;
  box-shadow: 0 0 0 0.2rem rgba(229, 38, 87, 0.18);
}

/* Inside input-group (mis: kk-saved-picker), pastikan select2 flex-grow */
.input-group > .select2-container {
  flex: 1 1 auto;
  width: 1% !important;
}
.input-group > .select2-container .select2-selection {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Kalau dropdown dalam form-control-sm → kecilin */
.form-control-sm + .select2-container .select2-selection,
.select2-container .select2-selection.form-control-sm {
  min-height: 31px;
  font-size: .875rem;
}

/* Dropdown options: sedikit padding supaya nyaman di-scroll */
.select2-results__option {
  padding: 8px 12px;
  font-size: .92rem;
}

/* Placeholder lebih redup supaya terlihat beda dari value */
.select2-selection__placeholder {
  color: #adb5bd !important;
}

/* Mobile: layer z-index fix agar dropdown di atas bottom-nav */
.select2-dropdown {
  z-index: 1060;
}
.select2-container--open .select2-dropdown {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Disabled state (misal: cascading "-- Pilih xxx dulu --") */
.select2-container--bootstrap-5 .select2-selection--single[aria-disabled="true"] {
  background: #e9ecef;
  cursor: not-allowed;
}

/* Tombol clear (X) — match tema KK merah */
.select2-selection__clear {
  font-weight: bold;
  color: #e52657;
}
.select2-selection__clear:hover {
  color: #b51f48;
}