.fx-card-avatar {
    background-color: #f8f9fa; /* Warna latar jika gambar gagal muat */
    overflow: hidden;
    border-radius: 8px 8px 0 0; /* Membuat sudut atas melengkung */
}

.product-text {
    padding: 15px; /* Memberi ruang napas agar teks tidak menempel ke pinggir */
}

/* Mengatur wadah gambar agar konsisten */
.fx-card-avatar img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Anda bisa ganti ke 4/3 atau 1/1 (kotak) sesuai selera */
    object-fit: cover;    /* Ini kuncinya: memotong gambar agar memenuhi area tanpa gepeng */
    object-position: center; /* Memastikan bagian tengah gambar yang terlihat */
    display: block;
}

/* Pastikan row menggunakan flex (Bootstrap default sudah) */
.fx-card-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* Memaksa kartu mengisi tinggi kolom */
}

.fx-card-content {
    flex-grow: 1; /* Memaksa area teks mengisi sisa ruang yang kosong */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* Menambahkan border ke input group agar terlihat menyatu */
.input-group {
    border: 1px solid #ced4da; /* Warna border standar Bootstrap */
    border-radius: 5px;        /* Agar sudutnya sedikit melengkung */
    overflow: hidden;          /* Memastikan input & button tetap di dalam radius */
}

/* Menghilangkan border internal input agar tidak double */
.input-group .form-control {
    border: none;
}

/* Efek saat diklik (Focus) */
.input-group:focus-within {
    border-color: #007bff;     /* Warna biru saat aktif */
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.fx-element-overlay.box-body {
    padding: 0 !important;
}
/* Menghilangkan garis pembatas pada elemen li terakhir dalam list */
.topbar-right ul.list-inline li:last-child {
    border-right: none !important;
}

/* Jika template menggunakan pseudo-element :after */
.topbar-right ul.list-inline li:last-child:after {
    display: none !important;
}

.input-group {
        display: flex !important;
        flex-wrap: nowrap !important; /* Mencegah elemen turun ke bawah */
    }
    
.input-group .form-select, 
.input-group .form-control {
    width: 10px !important; /* Trik agar flex-grow yang mengatur lebar */
    flex: 1 1 auto !important;
}
/* Overlay untuk membungkus Fountain Text */
#fountain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Background putih transparan */
    z-index: 9999;
    display: none; /* Sembunyi secara default */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Tambahkan sedikit margin bawah pada animasi teks Anda jika perlu */
#fountainTextG {
    display: flex;
    justify-content: center;
}
#mymessage {
    position: fixed;
    top: 20px; /* Beri sedikit jarak dari atas agar tidak terlalu mepet */
    right: 20px; /* Beri sedikit jarak dari kanan */
    z-index: 999999 !important; /* Gunakan !important untuk memastikan tidak tertimpa */
    width: auto;
    min-width: 300px; /* Opsional: agar pesan memiliki lebar minimal */
    pointer-events: all; /* Memastikan pesan bisa diklik/di-close */
}
#myinner-message {
    margin: 0 auto;
}
.select2-container .select2-selection--single .select2-selection__rendered{
    margin-top: -7px !important;
 }
/* SOLUSI POJOK TENGAH LAYAR (CENTERED) */
/* SELECTOR UMUM UNTUK SEMUA ALERT (SUCCESS & DANGER) */
div.alert.alert-dismissible {
    /* 1. Posisi Paksa ke Tengah Layar */
    position: fixed !important; 
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* 2. Layer Paling Depan */
    z-index: 999999999 !important; 
    
    /* 3. Ukuran & Bentuk */
    width: 95% !important;
    max-width: 450px !important;
    padding: 35px 60px 35px 35px !important;
    border-radius: 15px !important;
    border: 3px solid #ffffff !important; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.8) !important;
    
    /* 4. Perataan Teks */
    text-align: center !important;
    opacity: 1 !important;
}

/* WARNA UNTUK ERROR / DANGER (MERAH) */
div.alert-danger {
    background-color: #dc3545 !important; 
}

/* WARNA UNTUK SUKSES (HIJAU) */
div.alert-success {
    background-color: #28a745 !important; 
}

/* MEMASTIKAN TULISAN PUTIH & JELAS */
div.alert.alert-dismissible,
div.alert.alert-dismissible * {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

/* TOMBOL CLOSE (X) AGAR PUTIH & POSISI PAS */
div.alert.alert-dismissible .btn-close,
div.alert.alert-dismissible .close {
    color: #ffffff !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    font-size: 24px !important;
    text-shadow: none !important;
}