.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 12px;
}

.badge-danger {
    background-color: #dc3545; 
}

.right {
    float: right;
    margin-left: 5px;
}
.tf-btn.connected {
    background-color: #28a745; 
    color: #fff;
}


#list_virtual_account_bank,
#list_transfer_bank,
#list_e_wallet,
#list_retail_store,
#text_bank_account
 {
    display: none; 
}
.tf-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* maintenance */
    .maintenance-wrapper {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        text-align: center;
    }

    .maintenance-icon {
        width: 100px;
        margin: 20px auto;
    }

    .maintenance-title {
        font-size: 1.8rem;
        color: #ff6b6b;
        margin: 10px 0;
    }

    .maintenance-text {
        font-size: 1rem;
        color: #666;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .maintenance-spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #ff6b6b;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }    
    .input-wrapper {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .input-wrapper input {
        width: 100%;
        padding-right: 40px; /* kasih ruang untuk icon di kanan */
        font-weight: bold;
    }

    .copy-icon {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 18px;
        color: #007bff; /* warna biru */
    }

    .copy-icon:hover {
        color: #0056b3; /* warna hover */
    }

    .hidden {
        display: none !important; /* Paksa supaya hidden */
    }
/* end maintenance */

    .card {
      background-color: #fff;
      width: 100%;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      padding: 20px 24px;
      margin-top: 10px;
    }

    .card-header {
      display: flex;
      align-items: center;
      font-weight: bold;
      color: #2b2b2b;
      margin-bottom: 16px;
      font-size: 12px;
      border-bottom: 1px solid #e0e0e0;
      padding-bottom: 10px;
    }

    .card-header i {
      background-color: #005eff;
      color: white;
      padding: 4px;
      border-radius: 4px;
      margin-right: 10px;
    }

    .info-table {
      width: 100%;
      font-size: 12px;
      line-height: 1.8;
      margin-bottom: 20px;
    }

    .info-table td:first-child {
      width: 40%;
      color: #666;
    }

    .info-table td:last-child {
      font-weight: bold;
      color: #333;
    }

    .bottom-section {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid #eee;
      padding-top: 12px;
    }

    .rest-invoice {
      font-size: 16px;
      font-weight: bold;
      color: #333;
      width: 80%;
      font-size: 14px;
    }

    .pay-button {
      background-color: #0066ff;
      color: white;
      border: none;
      padding: 8px 16px;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s;
      width: 25%;

    }

    .pay-button:hover {
      background-color: #004ecc;
      color: white;
    }

    .pay-button-tabungan {
      background-color: #0066ff;
      color: white;
      border: none;
      padding: 4px 12px;
      font-weight: normal;
      font-size: 12px;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s;
      /* width: 35%; */
    }

    .pay-button-tabungan {
      background-color: #004ecc;
      color: white;
    }

    .detail-button {
      background-color: #0066ff;
      color: white;
      border: none;
      padding: 8px 16px;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s;
      width: 30%;

    }

    .detail-button:hover {
      background-color: #004ecc;
      color: white;
    }

    #loadingMaintenance {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: none;
        justify-content: center;
        align-items: center;
    }
    #loadingBox {
        background: #fff;
        color: #333;
        padding: 20px 30px;
        border-radius: 10px;
        border: 2px solid #007bff;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        min-width: 250px;
    }
    .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #007bff;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto 10px auto;
    }
    .success-icon {
        display: none;
        font-size: 40px;
        color: green;
        margin-bottom: 10px;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

/* Panel detail tersembunyi di bawah layar */
.tf-panel.detail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background: #fff;
    z-index: 999;
    opacity: 0;
    transition: bottom 0.4s ease, opacity 0.4s ease;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    display: none; /* tambahkan ini agar bisa di-toggle pakai jQuery fadeIn/fadeOut */
}

/* Overlay */
.tf-panel.detail .panel_overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

/* Saat panel aktif */
.tf-panel.detail.up {
    bottom: 0;
    opacity: 1;
}

/* Overlay aktif */
.tf-panel.detail.up .panel_overlay {
    opacity: 1;
    visibility: visible;
}

/* Animasi isi panel */
.tf-panel.detail.up .panel-box {
    animation: fadeUpDetail 0.4s ease forwards;
}
.div-scroll-tabel {
    height: 65vh;       /* penuh setinggi layar */
    overflow-y: auto;    /* aktifkan scroll vertikal */
    overflow-x: auto;    /* scroll horizontal jika lebar tabel besar */
    /* border: 1px solid #ccc; */
    background: #fff;
    /* padding: 10px; */
    box-sizing: border-box;
    /* margin-bottom: 10px; */
}

#tabelSantri tr.shown {
    background-color: #f5f8ff;
}
#tabelSantri tr td {
    vertical-align: middle;
}
.dataTables_wrapper .dataTables_paginate {
    margin-top: 10px;
}

.splash-bg {
    width: 100%;
    height: 100vh;
    background: url('images/boarding/SplashApp.jpg') no-repeat center center;
    background-size: cover; /* atau contain */
}

/* .disabled {
    pointer-events: none;
    opacity: 0.6;
    background: #9ca3af;
} */
.pay-button-tabungan.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.table-bordered {
    border: 1px solid #ccc;
    border-collapse: collapse;
    width: 100%;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #ccc;
    padding: 8px;
}
.table-sm > thead > tr > th,
.table-sm > tbody > tr > th,
.table-sm > tfoot > tr > th,
.table-sm > thead > tr > td,
.table-sm > tbody > tr > td,
.table-sm > tfoot > tr > td {
    padding: 4px 6px !important; /* lebih kecil dari default */
}

/* Keyframes naik */
@keyframes fadeUpDetail {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
