/* form_select_eyd.css */

/* ===================================================
   Form select + Select2 + EYD custom theme
   =================================================== */

/* -----------------------------
   Form select (Bootstrap 5 + EYD)
----------------------------- */
.form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    display: block;
    width: 100%;
    min-width: 150px;
    padding: 0 0.75rem;
    font-size: 0.80rem;
    font-weight: 400;
    line-height: 30px;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #FFC300;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: 30px;
}
.form-select:hover {
    border-color: #FFC300;
    background-color: #fff;
}
.form-select option {
    color: #000;
    background-color: #fff;
}
.form-select option:checked {
    background-color: #FFC300;
    color: #000;
}
.form-select:focus {
    border-color: #FFC300;
    box-shadow: 0 0 0 0.25rem rgba(255,195,0,0.3);
    outline: none;
}

/* -----------------------------
   Select2 custom EYD
----------------------------- */
.select2-container--default .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #FFC300 !important;
    height: 30px !important;       /* konsisten dengan form-select */
    padding: 0 4px !important;
    border-radius: 4px;
    display: flex !important;
    align-items: center !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333 !important;
    font-size: 0.80rem !important;
    line-height: normal !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #FFC300 !important;
    box-shadow: 0 0 0 0.25rem rgba(255,195,0,0.3) !important;
}
.select2-container--default .select2-results__option {
    padding: 0 4px !important;
    font-size: 0.82rem !important;
}
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #FFC300 !important;
    color: #000 !important;
}
.select2-container--default .select2-dropdown {
    border: 1px solid #FFC300 !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: none;
    border-bottom: 1px solid #FFC300;
    border-radius: 0;
    box-shadow: none !important;
    outline: none !important;
    background-clip: padding-box;
    height: 15px;
    font-size: 0.75rem;
}
.select2-container {
    width: 100% !important;
}

/* -----------------------------
   EYD custom form control
----------------------------- */
.eyd-form-control {
    height: 30px;
    padding: 0 12px;
    font-size: 0.80rem;
    line-height: 30px;
    border: 1px solid #FFC300;
    border-radius: 0 4px 4px 0;
    background-color: #fff;
    color: #000;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}
.eyd-form-control::-webkit-inner-spin-button,
.eyd-form-control::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.eyd-form-control:focus {
    border-color: #FFC300;
    box-shadow: 0 0 0 0.2rem rgba(255, 195, 0, 0.3);
    outline: none;
}

/* -----------------------------
   Background & button EYD
----------------------------- */
.eyd-bg-kuning {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    background-color: #FFC300;
    color: #fff;
    border: 1px solid #FFC300;
    border-radius: 4px;
    white-space: nowrap;
    cursor: default;
    font-size: 0.80rem;
    line-height: 30px;
    transition: background-color 0.2s;
}
.eyd-bg-kuning:hover { background-color: #8e4a00; }

.eyd-btn-kuning {
    height: 30px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    background-color: #FFC300;
    color: #000;
    border: 1px solid #FFC300;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.eyd-btn-kuning:hover { background-color: #8e4a00; color: #000; }

/* -----------------------------
   Select2 responsif teks terpanjang
----------------------------- */
#limitSelect + .select2-container {
    width: auto !important;
    min-width: 50px !important;
}