.topnav-hamburger .hamburger-icon span {
    width: 100% !important;
    left: 0 !important;
}


table.dataTable,
table.dataTable th,
table.dataTable td {
    width: auto;
    border: none !important;
    border-collapse: collapse;
    border-bottom: 1px solid #ddd !important;
}
table.dataTable tbody tr:last-child td {
    border-bottom: none; /* opsional untuk row terakhir */
}

/* Tambahkan garis tipis hanya di bawah tiap row */
table.dataTable tbody tr {
    border-bottom: 1px solid #ccc;
}

/* Opsional: hapus border bawah row terakhir */
table.dataTable tbody tr:last-child {
    border-bottom: none;
}

/* Header tetap ada garis tipis */
table.dataTable thead th {
    background: #171717;
    color:#fff;
    border-bottom: 1px solid #f3f3f3;
}
.bg-black{
    background: #171717;
    color: #e3e3e3;
}
.SaSpinner {
    display: none;
    position: fixed;
    top: 21%;
    left: 60%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    border: 1px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: spin 1s linear infinite;
}#waSpinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.status-badge {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  display: inline-block;
  min-width: 100px;
  text-align: center;
}
.status-dk  { background:#D1F1C2; color:#28a745; }
.status-tt  { background:#FFEFA3; color:#000; }
.status-td  { background:#C1DFF7; color:#0851AD; }
.status-pd  { background:#ECD4F4; color:#491759; }
.status-taw { background:#AD0000; color:#FFBFBF; }
.status-ab  { background:#0851AD; color:#fff; }
.status-none  { background:#e3e3e3; color:#333; }
.status-dropdown{
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  display: inline-block;
  min-width: 100px;
  text-align: center;
}.toastCustom{
    position: fixed;  top: 20px;right: 20px;background: #28a745;color: #fff;padding: 10px 15px;display: none;border-radius: 4px;z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}.toast{display:none; position:fixed;
    top:20px;
    right:20px;
    background:#28a745;
    color:#fff;
    padding:8px 14px;
    border-radius:6px;
    z-index:9999;}
.navbar-menu {
  background-color: #171717 !important;
  color: #fff !important;
}

.navbar-nav .nav-link {
    color: #495057;
    transition: all 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color:#2D2D2D ; 
    color: #fff59d;
}
/* Hanya menu utama */
.navbar-nav > .nav-item > .nav-link {
    color: #495057;
    transition: all 0.2s;
}

.navbar-nav > .nav-item > .nav-link:hover,
.navbar-nav > .nav-item > .nav-link.active {
    background-color: #2D2D2D; 
    color: #fff59d;
}

.navbar-nav .nav-dropdown .nav-link,
.navbar-nav .nav-sm .nav-link {
    background: none;
    color: #495057;
}
.card .nav-link.active {
    background-color: #f60 !important; 
    color: #ffffff;
    font-weight: 600; 
    border-radius: 6px; 
    transition: all 0.3s ease;
}
.card .nav-link.active:hover {
    background-color: #f60; /* biru lebih gelap pas hover */
    color: #fff;
}
.card .btnFilter {
    background-color: #f60; 
    color: #ffffff;
    padding: 7px 15px;
    font-weight: 600; 
    border-radius: 6px; 
}
.card .btnReset {
    background-color: #f90; 
    color: #ffffff;
    padding: 7px 15px;
    font-weight: 600; 
    border-radius: 6px; 
}
.nav-tabs .nav-link {
    color: #000;  
    background-color: #d3d3d3; 
    border: 1px solid #dee2e6;
    margin-right: 2px;
    transition: 0.3s;
}

/* Hover */
.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
}

/* Tab aktif */
.nav-tabs .nav-link.active {
    color: #3b3b3b;   
    background-color:#fff ; 
    border-color: #c3c3cs3;
}.tab-content{
    margin-top: 0px;
}
.filter-input {
    width: 230px;
}
.form-control-sm-custom {
    height: 34px;    
    padding: 0.25rem 0.5rem;
    font-size: 0.700rem;
    border:1px solid #CED4DA;
    line-height: 1.4;
    color: #362529;
}.form-control-sm-custom-small {
    height: 30px;    
    padding: 0.05rem 0.5rem;
    font-size: 0.700rem;
    border:1px solid #CED4DA;
    line-height: 1.0;
    color: #362529;
}
.form-control-sm-custom option:checked {
    border:1px solid #CED4DA;
    background-color: #f0f0f0;
    color: #362529;
}
.input-custom{
    border-bottom: 1px solid #DFE4DA;
}.tocustom{
    background-color: #E9ECF1;
    padding: 0.375rem 0.75rem;
    height: 33px;                 /* samakan dengan input */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 600;
}
/* Spinner overlay */
.spinner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner animasi */
.spinner {
    width: 25px;
    height: 25px;
    border: 3px solid #ccc;
    border-top: 3px solid #000; /* warna biru */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Mobile */
@media (max-width: 767.98px) {
    .filter-input {
        width: 100%; 
    }
    .label-custom {
        display: flex;
        min-height: 40px;
    }.input-custom{
        min-height: 56px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}
.navbar-brand-box{
    background: #171717 !important;
}
.teks-white{color: #fff;}
.nama-modul{font-size: 12px;}
.mb10{margin-bottom: 10px;}
.mb5{margin-bottom: 5px;}
.mb8{margin-bottom: 8px;}
.boxmenu{height: 30px;}
.boxmenu a:hover{color: #ff0}
#top-bar {
  width: 100%;
  background: #111;
  padding: 10px;
  border-bottom: 1px solid #0f0;
  display: flex;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 2000;
}

#top-bar button {
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

/* Tombol khusus */
#test-btn {
  background: #0f0;
  color: #000;
}

#start-auto {
  background: #0f0;
  color: #000;
}

#stop-auto {
  background: #f00;
  color: #fff;
}

/* Panel konten utama */
#panel-wrapper {
  position: relative;
  padding: 20px;
}

.deposit-block {
  border: 1px solid #0f0;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.deposit-block h4 {
  margin: 0 0 5px 0;
}

.deposit-block p {
  margin: 2px 0;
}

.deposit-block button {
  margin-right: 5px;
  padding: 5px 10px;
  cursor: pointer;
  background: #0f0;
  color: #000;
  border: none;
  border-radius: 3px;
}

.deposit-block button.reject {
  background: #f00;
  color: #fff;
}
#output {
display: grid;
grid-template-columns: 4% 7% 10% 10% 14% 18% 18% 8% 10%;
width: 100%;
font-family: monospace;
gap: 1px;
}

.deposit-row {
    display: contents; /* supaya children langsung masuk grid */
}

.data-cell {
    padding: 5px 10px;
}
.data-cell button {
    background: transparent;  /* transparan */
    border: none;             /* hilangkan border */
    padding: 0;               /* hilangkan padding default */
    margin-left: 5px;
    cursor: pointer;
    vertical-align: middle;   /* sejajar sama teks */
    color: inherit;           /* warna sama teks */
    font-size: 16px;          /* bisa disesuaikan */
}

/* HEADER */
#output .header-cell {
    background: #000;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}
/* Mobile */
@media (max-width: 767.98px) {
  #output {
    display: block;
  }
  #output .data-cell,
  #output .header-cell {
    display: block;
    width: 100%;
  }
}
#output .data-cell {
    background: #fff;
    color: #000;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 100%;          /* ⬅️ PENTING */
    box-sizing: border-box;
}


.data-cell .btn {
    padding: 4px 10px;
    font-size: 12px;
    border: none;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
}

.data-cell .btn-success {
    background: #13C318;
    color: #fff;
}

.data-cell .btn-danger {
    background: #D54343;
    color: #fff;
}

.data-cell .btn:hover {
    opacity: 0.85;
}
.flatpickr-calendar {
    width: 220px !important;   
    font-size: 0.85rem;    
}

/* Atur jarak antara hari & tanggal */
.flatpickr-day, 
.flatpickr-weekday {
    width: 25px;
    height: 26px !important;   
    line-height: 26px !important;   
}
.flatpickr-month {
    height: 40px !important; 
    line-height: 40px !important; 
    background-color: #0f0f0f !important; 
    color: #fff !important; 
    font-weight: bold;
    font-size: 0.9rem;
}

/* Tombol navigasi (prev/next) */
.flatpickr-prev-month,
.flatpickr-next-month {
    color: #fff !important; 
}

/* Nama hari / tanggal */
.flatpickr-weekdays, 
.flatpickr-days {
    color: #000 !important; 
}

/* Pilihan bulan & tahun dropdown */
.flatpickr-monthDropdown-months,
.flatpickr-yearDropdown {
    color: #fff !important;
}
.flatpickr-calendar .flatpickr-month {
    background-color: #333 !important; /* ganti header jadi gelap */
    color: #fff;
}

/* Hari yang dipilih */
.flatpickr-day.selected {
    background-color: #ff9800 !important; 
    color: #fff;
}

/* Hover hari */
.flatpickr-day:hover {
    background-color: #ff9800 !important; 
    color: #fff;
}

/* Background kalender */
.flatpickr-calendar {
    background-color: #f5f5f5 !important;
}
/* file: custom-status.css */
.stt-draft {
    background-color: #ffe58f; /* kuning muda */
    color: #212529;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    width: 100%;
    display: inline-block;
    text-align: center; 
    box-sizing: border-box; 
    font-size: 0.65rem;
}

.stt-pending {
    background-color: #FF751A !important; /* kuning */
    color: #ffffff;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    width: 100%;
    display: inline-block;
    text-align: center; 
    box-sizing: border-box; 
    font-size: 0.65rem;
}

.stt-approved {
    background-color: #198754; /* hijau */
    color: #fff;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    width: 100%;
    display: inline-block;
    text-align: center; 
    box-sizing: border-box; 
}

.stt-rejected {
    background-color: #dc3545; /* merah */
    color: #fff;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    width: 100%;
    display: inline-block;
    text-align: center; 
    box-sizing: border-box; 
}

.stt-returned {
    background-color: #FF751A; /* abu */
    color: #fff;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    width: 100%;
    display: inline-block;
    text-align: center; 
    box-sizing: border-box; 
}

.stt-default {
    background-color: #f8f9fa; /* light */
    color: #212529;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    width: 100%;
    display: inline-block;
    text-align: center; 
    box-sizing: border-box; 
}
/* Base button dashboard toko */
.btn-toko {
    color: #000;               /* teks default */
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

/* Hover & Active */
.btn-toko:hover,
.btn-toko.active {
    background-color: #FF6600 !important;
    color: #fff !important;
    border-color: #FF6600 !important;
}
.row-hidden {
    display: none !important; /* langsung sembunyi */
    opacity: 0;                /* optional: kalau mau efek fade bisa diubah */
    height: 0;                 /* optional, supaya row ga makan space */
    overflow: hidden;          /* optional */
    transition: all 0.3s ease; /* optional, efek smooth */
}.dl-grid {
    display: grid;
    grid-template-columns: 150px auto; /* kiri label, kanan isi */
    row-gap: 2px;
}

.dl-grid dt {
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 1px solid #e3e3e3;
}

.dl-grid dd {
    margin: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e3e3e3;
}
.table-skeleton {
    height: 200px; /* kira-kira tinggi table */
    background: #f0f0f0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {opacity: 1;}
    50% {opacity: 0.4;}
    100% {opacity: 1;}
}
.action-select {
    font-weight: 500;
    height: 25px;
    color: #333;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

/* Warna per option (hanya beberapa browser mendukung) */
.option-approve {
    color: #fff;
    background-color: #28a745; /* hijau */
}

.option-reject {
    color: #fff;
    background-color: #dc3545; /* merah */s
}
.option-return {
    color: #fff;
    background-color: #FF751A; /* orange */
}

/* Alternatif: jika option tidak bisa di-style, bisa gunakan :after untuk menampilkan warna di select */
.action-select option[value="approve"] {
    background-color: #28a745;
    color: #fff;
}
.action-select option[value="reject"] {
    background-color: #dc3545;
    color: #fff;
}
.action-select option[value="return"] {
    background-color: #FF751A;
    color: #fff;
}.text-small{
    font-size: 1.0em;
    font-style: italic;
    color: #d4d4d4;
}.text-miring{
    font-size: 0.9em;
    font-style: italic;
}.w100{
    width: 100%;
}
#tabel-activity-log td {
    white-space: nowrap;       /* 1 baris */
    overflow: hidden;
    text-overflow: ellipsis;   /* muncul ... kalau panjang */
}
#tabel-activity-log th:first-child,
#tabel-activity-log td:first-child {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center;
}#tabel-activity-log td pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 30px;   /* batasi tinggi per cell */
    overflow: auto;      /* scroll di dalam cell jika JSON panjang */
}
}#tabel-activity-log dataTable tbody td:before {
    background: url('https://cdn.datatables.net/1.13.6/images/details_open.png') no-repeat center center;
    content:"";
    display:block;
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);
    width:16px;
    height:16px;
}
#tabel-activity-log str.shown td:before {
    background: url('https://cdn.datatables.net/1.13.6/images/details_close.png') no-repeat center center;
}/* Tombol POST untuk status APPROVED */
.btn-approved {
    width: 100%;
    height: 20px;
    font-size: 10px;
    background-color: #4CAF50;  /* hijau */
    color: #fff;                 /* teks putih */
    border: 1px solid #4CAF50;
    transition: background-color 0.3s, color 0.3s;
}

.btn-approved:hover {
    background-color: #45a049;  /* sedikit lebih gelap saat hover */
    color: #fff;
}

.btn-approved:active {
    background-color: #3e8e41;
    border-color: #3e8e41;
}
.depo-gradient {
    background: linear-gradient(135deg, #47DD48, #03C66A);
    border: none;
    overflow: hidden;
}
.wd-gradient {
    background: linear-gradient(135deg, #E94F19, #DC2708);
    border: none;
     color: #fff;
    overflow: hidden; 
}
.wl-gradient {
    background: linear-gradient(135deg, #F98145, #E85921);
    border: none;
    color: #fff;
    overflow: hidden; 
}
.depo-gradient::before,
.wl-gradient::before,
.wd-gradient::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

/* Bubble kecil */
.depo-gradient::after,
.wl-gradient::after,
.wd-gradient::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    bottom: -40px;
    left: -40px;
}

/* Biar konten di atas bubble */
.depo-gradient .card-body,
.wl-gradient .card-body,
.wd-gradient .card-body {
    position: relative;
    z-index: 2;
}
.depo-gradient:hover,
.wl-gradient:hover,
.wd-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.depo-gradient::before,
.wl-gradient::before,
.wd-gradient::after {
    backdrop-filter: blur(10px);
}
.depo-gradient .card-body,
.wl-gradient .card-body,
.wd-gradient .card-body {
    position: relative;
    z-index: 1;
}.rounded-20{
    border-radius: 50px;
}
.sidebar-minimized .nav-link span {
    display: none;
}
.info-title {
    background: #000;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    background: #fff;
}
.info-table tr:hover{
    background: #D0E7ED;
}

.info-table td {
    padding: 6px 14px;
    border-bottom: 1px solid #e5e5e5;
    color: #000;
}


.info-table td.label {
    width: 35%;
    font-weight: 600;
}

.color-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    vertical-align: middle;
    margin-right: 6px;
}
.info-table td.text-right {
    display: flex;          
    justify-content: flex-end;
    font-weight: 600;
}.info-table td.text-red {
    color:#f00;
}
.info-table td.label-sub {
    padding-left: 60px; 
    font-style: italic;  
    color: #333;        
}

.info-table td.value-sub {
    padding-right: 80px; 
    font-style: italic;  
    color: #333;
}
.table-custom {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.table-custom tbody tr td {
    background: transparent;
}
table.table-custom tbody tr:hover td {
    background: #D0E7ED;
}
.table-custom thead th {
    background-color: #000; /* hitam */
    color: #fff;            /* teks putih */
    font-weight: 600;
    border-top: 1px solid #f3f3f3;
    padding: 8px 12px;
    word-wrap: break-word; 
    text-align: left;
}

.table-custom tbody td {
    background-color: #fff; /* putih */
    color: #000;            /* teks hitam */
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
    word-wrap: break-word; 
}

/* kanan untuk Amount & Potongan */
.table-custom tbody td.text-right {
    text-align: right;
    font-weight: 600;
}
.td-kecil{
    width: 12%;
}
.coin-icon {
    width: 15px;
    height: 15px;
    vertical-align: middle; /* biar sejajar sama angka */
}

.coin-icon circle {
    transition: fill 0.3s;
}