
.logo-dark {
    max-width: 100px;
    margin: auto;
    display: block;
    height: auto;
}

.login-body {
    display: flex;
}

.quantity-input.akunesia {
    max-width: 60px;
    border-radius: 0.375rem !important;
}

.discount-input.akunesia {
    max-width: 85px;
}

.recurring-tab ul li button.active{
    background-color: #6366f1 !important;
}

.tax-select.akunesia{
    padding: 0.375rem;
}

.login-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    vertical-align: middle;
    padding-top: 0;
    flex-direction: column-reverse;
    justify-content: space-around;
    color: #000000;
}

.content {
    padding-right: 0px;
    padding-left:  0px;
    
}

.login-wrapper .loginbox .login-right .login-right-wrap h1 {
    font-size: 22px;
}

.login-wrapper .loginbox .account-subtitle {
    font-size: 14px;
}

.text-dark {
    font-size: 14px;
}

.form-control {
    border-color: #000000;
}

[data-topbar=light] body .header .toggle-bars .bar-icons {
    background: #000000;
}

.super-admin-dashboard .dash-user-card {
    background: #000000;
}

.table .thead-light th {
    background-color: #6366f1;
}

.flag-nav .dropdown-menu.notifications {
    position: absolute;
    inset: 0px 0px auto auto; 
    margin: 0px;
    transform: translate3d(0px, 62px, 0px);
}

.table tbody td a {
    color: #ffffff;
}

.super-admin-dashboard .dash-user-card .dash-btns a.view-company-btn {
    background: #6366f1;
    border: 2px solid #6366f1;

}

.rTable {
    display: table;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Membatasi lebar kolom */
}

.rTableRow {
    display: table-row;
}

.rTableHead {
    display: table-cell;
    padding: 10px;
    font-weight: bold;
    background-color: #f9f9f9;
    width: 25%; /* Lebar kolom kiri lebih kecil */
    vertical-align: top;
    word-wrap: break-word;
    white-space: normal;
}

.rTableCell {
    display: table-cell;
    padding: 10px;
    width: 75%; /* Lebar kolom kanan lebih besar */
    vertical-align: top;
    word-wrap: break-word; /* Membuat teks panjang pindah ke baris baru */
    word-break: break-word; /* Memotong teks jika terlalu panjang */
    white-space: normal; /* Agar teks multi-line terlihat rapi */
}

.modal-body {
    max-height: 900px; /* Membatasi tinggi modal */
    overflow-y: auto; /* Scroll vertikal jika konten terlalu panjang */
}

.btn-light {
    margin-left: 10px;
}

.quantity-input {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 150px; /* Tentukan lebar maksimum input group */
}

.quantity-input input {
    width: 60px; /* Lebar input number */
    text-align: center;
}

.quantity-input button {
    width: 30px; /* Lebar tombol */
}

.pagination li.active a.page-link {
    background: #6366f1;
    border-color: #ffffff;
}


.table td {
    white-space: nowrap; /* Menghindari teks turun ke baris berikutnya */
    overflow: hidden;    /* Memastikan teks yang terlalu panjang disembunyikan */
    text-overflow: ellipsis; /* Menambahkan elipsis untuk teks yang terlalu panjang */
}

/* Membatasi lebar maksimum kolom Nama Produk */
.table td:nth-child(2) { /* Kolom kedua (Nama Produk) */
    max-width: 180px; /* Sesuaikan lebar sesuai kebutuhan */
}

.sidebar .sidebar-menu ul li a.active {
    background: #f4f4f4d6;
}

.btn-check {
    display: none;
}

/* Atur ukuran kotak dan tampilannya */
.rating-label {
    width: 25px;  /* Ukuran lebih kecil */
    height: 25px; /* Sesuaikan ukuran kotak */
    font-size: 12px;  /* Ukuran teks di dalam kotak */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2px;  /* Jarak antar kotak */
    border-radius: 4px;  /* Membuat sudut sedikit membulat */
}

/* Saat kotak dipilih, ubah warna */
.btn-check:checked + .rating-label {
    background-color: #6366f1;
    color: white;
}

.footer-copyright {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    background-color: white;
    padding: 10px 0;
    border-top: 2px solid #6366f1; /* Garis hitam di bagian atas copyright */
    font-size: 12px;
    color: #000000;
    z-index: 100; /* Pastikan footer berada di atas konten lain */
    display: inline-table !important;
}

.page-header .btn {
    border-radius: 4px !important;
}

@media (max-width: 575.98px) {
    .content-page-header {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}


    div.dataTables_wrapper div.dataTables_filter {
        text-align: right !important;
    }
    
.card-table .card-body .table th {
    color: #fff !important;
}

.card-table .companies-table .table td {
    color: #6366f1 !important;
}

.table tbody td a {
    color: #fff !important;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .table thead {
        background: #ffffff;
       
    
    }
}

@media (max-width: 991.98px) {
    .page-wrapper .content {
        /* padding: 15px; */
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 575.98px) {
    .content-page-header {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    .flag-nav {
        display: inline-block;
    }
}


/* Dropdown Notifikasi - Versi Diperbaiki */
.dropdown-menu.notifications {
    width: 320px; /* Lebar default yang konsisten */
    max-width: 90vw; /* Batasi lebar untuk layar kecil */
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transform: none !important; /* Hilangkan transform bawaan */
    right: 0 !important; /* Pastikan selalu di kanan */
    left: auto !important; /* Jangan gunakan left auto */
    margin-top: 10px; /* Sedikit jarak dari elemen trigger */
}

/* Menghapus ketidakkonsistenan lebar */
.notifications .noti-content {
    width: 100%; /* Gunakan persentase, bukan pixel tetap */
    max-height: 300px; /* Maksimal tinggi konten untuk scroll */
    overflow-y: auto; /* Tambahkan scroll jika konten melebihi tinggi */
}

/* Header Notifikasi */
.topnav-dropdown-header {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Notifikasi Baru */
.notification-list .notification-message {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.notification-list .notification-message:hover {
    background-color: #f9f9f9;
}

/* Link 'View All' dan 'Mark all as read' */
.notification-title a, .clear-noti {
    font-size: 13px;
    font-weight: 500;
    color: #3F4254;
    text-decoration: none;
    margin-left: 8px;
    transition: color 0.2s;
}

.notification-title a:hover, .clear-noti:hover {
    color: #007bff;
    text-decoration: none;
}

/* Posisi untuk Tampilan Mobile */
@media (max-width: 576px) {
    .dropdown-menu.notifications {
        position: fixed !important;
        right: 10px !important; /* Supaya tetap di layar pada mobile */
        
        width: calc(100% - 20px) !important; /* Kurangi 10px dari kiri dan kanan */
        max-width: none !important;
        z-index: 1050 !important; /* Pastikan dropdown tampil di atas elemen lain */
        border-radius: 0.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        left: auto !important;
    }
    
    /* Memastikan dropdown konten tetap 100% di mobile */
    .notifications .noti-content {
        width: 100% !important;
    }
    
    /* Memperbaiki padding di mobile agar lebih nyaman */
    .notification-list .notification-message {
        padding: 15px;
    }
}

/* Scrollbar custom untuk dropdown */
.noti-content::-webkit-scrollbar {
    width: 6px;
}

.noti-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.noti-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.noti-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}