@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
    /* scroll-behavior: smooth; */
    font-family: "Montserrat", sans-serif;
}

.rounded-partner {
    border-radius: 20px;
}

/* Update Style Brand Logo */
.sidenav-header {
    height: 85px; /* Sesuaikan tinggi jika perlu */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.navbar-brand-img {
    max-height: 65px !important;
    width: auto;
}

/* Update Modal Backdrop*/
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1045 !important;
}

#sidenav-main {
    z-index: 1030 !important;
}

/* Sweetalert custom color */
.colored-toast.swal2-icon-success {
    background-color: #a5dc86 !important;
}

.colored-toast.swal2-icon-error {
    background-color: #f27474 !important;
}

.colored-toast.swal2-icon-warning {
    background-color: #f8bb86 !important;
}

.colored-toast.swal2-icon-info {
    background-color: #3fc3ee !important;
}

.colored-toast.swal2-icon-question {
    background-color: #87adbd !important;
}

.colored-toast .swal2-title {
    color: white;
}

.colored-toast .swal2-close {
    color: white;
}

.colored-toast .swal2-html-container {
    color: white;
}

/* Cell color */
.bg-success-2 {
    background-color: #b6d7a8;
}
.bg-danger-2 {
    background-color: #ea9999;
}
.table-danger {
    background-color: #f8d7da !important;
    color: #721c24;
}

/* MAIN SELECT FIELD */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #cad1d7;
    border-radius: 0.5rem; /* lebih membulat */
    height: 2.625rem; /* sedikit lebih tinggi */
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* TEKS TERPILIH */
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    font-size: 0.875rem;
    line-height: 1.5;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
    color: #212529; /* default hitam */
}

/* DETEKSI PLACEHOLDER DENGAN TITLE */
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered[title="Pilih RFID Tag"] {
    color: #adb5bd !important; /* lebih samar */
}

/* PANAH DROPDOWN */
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    right: 0.75rem;
    top: 0;
    width: 20px;
}

/* SAAT FOKUS/OPEN */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
    border-color: #5e72e4 !important;
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}

/* FULL WIDTH */
.select2-container {
    width: 100% !important;
}

/* --- Dropdown Options --- */
.select2-container--default .select2-results__option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #212529;
    background-color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

/* Hover & Keyboard Highlighted */
.select2-container--default
    .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option:hover {
    background-color: #5e72e4 !important;
    color: #fff !important;
}

/* Option yang sedang dipilih (tapi tidak di-hover) */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #f6f9fc !important;
    color: #212529 !important;
}

/* Perbesar checkbox */
.maintenance-checkbox {
    width: 18px;
    height: 18px;
    transform: scale(1.3);
    /* Ubah skalanya sesuai kebutuhan */
    cursor: pointer;
}

.muted {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
    border-color: #ced4da;
}
