.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: 20% !important;
    left: 80% !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;
}
.table th, .table td {
    vertical-align: middle;
}
.form-check-input {
    cursor: pointer;
    width: 1.25em;
    height: 1.25em;
}
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
/* Warna khusus untuk Special Access agar beda */
.check_column_setprivileges, .check_column_administrator {
    border-color: #ffc107;
}
.img-pos{
    position: relative;
}
.img-pos > span.icon-close {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 100;
    display: contents;
}
/* Top Search */
.menu-search {
	position: relative;
	/*top: 26px;*/
}
.menu-search span.sep {
	top: 0;
	width: 1px;
	height: 26px;
	background: #eaeaea;
	position: relative;
	margin: 0 18px 0 16px;
	display: inline-block;
}
.menu-search i {
	/*color: #333;
	font-size: 16px;*/
	cursor: pointer;
	position: relative;
	/*top: -6px;*/
	/*background: url(../img/icons/top-search-icon.png) no-repeat;*/
	width: 15px;
	height: 15px;
	opacity: 0.6;
}
.menu-search i:hover {
	color: #e02222;
	background-position: 0 -15px;
}
/*.header-navigation .fa-search:before {
	content: none;
}*/
.search-box {
    top: 100%;
    padding: 15px;
    display: none;
    background: #fcfafb;
    position: absolute;
    border-top: solid 2px #ea4c1d;
    box-shadow: 5px 5px rgba(91, 91, 91, 0.2);
    width: 300px;
    margin-top: 10px;
    z-index: 22;
    /* PENTING: Gunakan left 0 agar sejajar ujung kiri tombol */
    left: 0 !important; 
    right: auto !important;
}

.search-box:after {
    top: -8px;
    width: 0;
    height: 0;
    /* PENTING: Pindahkan panah ke kiri (jarak 15px dari sisi kiri box) */
    left: 15px !important; 
    right: auto !important; 
    
    z-index: 2;
    content: " ";
    display: block;
    position: absolute;
    border-bottom: 8px solid #e6400c;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
}

.search-box button {
    margin-left: 0 !important;
}

/* Penyesuaian Mobile agar tidak lari */
@media screen and (max-width: 767px) {
  .menu-search {
    top: 26px;
  }
  .search-box {
    left: 0 !important;
    width: 100%; /* Biar penuh di layar HP */
    min-width: 250px;
  }
  .search-box:after {
    /* Panah tetap di kiri di layar HP */
    left: 20px !important;
    right: auto !important;
  }
}
.light-logo img,
.dark-logo img {
    opacity: 1 !important;
    filter: none !important;
}