/* =============================================================
   VARIABLES & GLOBAL SETUP
   ============================================================= */
   :root {
    --ibm-bg: #fff;
    --ibm-bg-content: #f4f6f8;
    --ibm-bg-dark: #212224;
    --ibm-bg-dark-soft: #3a3b3f;
    --ibm-bg-gray: rgb(248, 249, 250);
    --ibm-bg-gray2: #f6f8fa;
    --ibm-bg-white: #fff;
    --ibm-border: #D1D5DB;
    --ibm-border-color: #D1D5DB;
    --ibm-border-radius: 16px;
    --ibm-font-color-primary: #0F172A;
    --ibm-font-color-secondary: #475569;
    --ibm-font-size: 13px;
    --ibm-text: #64748b;
    --ibm-text-header: #1d2c48 !important;
    --ibm-text-white: #fff;
    --primary-green: #6CC523;
    --danger-red: #EF4444;
    --radius-card: 12px;
    --radius-card2: 10px;
    --radius-card3: 10px;
    --soft-bg: #f8fafc;
    --text-dark: #121A26;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ibm-text) !important;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ibm-border {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    background: #fff;
    border: 1px solid var(--ibm-border);
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0 10px;
}
/* Force font ke seluruh elemen */
* {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Link global style */
a {
    text-decoration: none;
    transition: all 0.25s ease;
}

p {
    line-height: 1.6;
    font-size: 0.8125rem;
    font-weight: 600 !important;
}

/* Body global setup */
body {
    background: var(--ibm-bg);
    color: var(--text-dark);
}


/* =============================================================
   CLASSES A-Z
   ============================================================= */

/* Badge notifikasi di sidebar */
.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    border: 0 solid #fff;
}

/* Badge untuk nomor urut tabel */
.badge-no {
    background: #F1F5F9;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

/* Badge status khusus di dalam modal */
.badge-status-modal {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge untuk tampilan nomor struk */
.badge-struk {
    background: #FFFFFF;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

/* Kontainer brand/logo di sidebar */
.brand {
    margin: 5px 10px;
    padding: 0px 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.brand h4 {
    color: #1e293b !important;
    letter-spacing: 0.5px;
    margin-right: 35px;
}

.brand p {
    color: #64748b !important;
    font-weight: 500;
    margin-top: 5px;
}

/* Tombol close pada modal custom */
.btn-close-custom {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
}

.btn-close-custom:hover {
    background: #e2e8f0;
    color: #ef4444;
}

/* Tombol export excel */
.btn-excel {
    background: #ffffff;
    color: #64748b;
    border-radius: var(--radius-card2);
    padding: 8px 12px;
    border: 1px solid var(--ibm-border);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 42px;
}

.btn-excel:hover {
    background: #f8fafc;
    color: #217346;
    border-color: #cbd5e1;
}

.btn-excel i {
    font-size: 20px;
}

/* Tombol filter utama */
.btn-filter {
    background: var(--primary-green);
    color: white;
    border-radius: var(--radius-card2);
    padding: 8px 18px;
    font-weight: 700;
    border: none;
    transition: all 0.2s;
}

.btn-filter:hover {
    opacity: 0.9;
    color: white;
}

/* Tombol refresh/update kecil di samping filter */
.btn-filter-refresh {
    background: var(--primary-green);
    color: white;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Tombol ukuran kecil (Small) */
.btn-sm {
    padding: 5px 10px !important;
    font-size: 0.8125rem;
    border-radius: var(--ibm-border-radius);
}

/* Tombol toggle sidebar */
.button-toggle-custom {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 10;
}

.button-toggle-custom:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Bar chart kecil di dalam card statistik */
.chart-bar {
    width: 3px;
    background: #E5E7EB;
    border-radius: 10px;
}

.chart-bar.active {
    background: #121A26;
}

/* Kontainer utama tabel dengan radius */
.custom-card-table {
    border-radius: var(--radius-card) !important;
    border: 1px solid var(--ibm-border) !important;
    background: #fff;
    overflow: hidden;
}

/* Grup filter standar */
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--ibm-border);
    margin-bottom: 20px;
}

/* Grup filter yang sejajar (inline) */
.filter-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 10px;
    border: 1px solid var(--ibm-border);
    background: #F1F5F9;
}

/* Dropdown/Select custom */
.form-select-custom {
    border-radius: var(--radius-card2);
    border: 1px solid var(--ibm-border);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    outline: none;
}

/* Card Statistik Utama */
.ibm-card {
    background: var(--ibm-bg-content);
    border: 1.5px solid var(--ibm-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: none;
   /* box-shadow: 0px 1px 6px rgba(124, 133, 151, 0.4); */

}

.ibm-card .card-body-top {
    padding: 20px 25px;
    position: relative;
    border: 1px solid var(--ibm-border);
    border-radius: var(--radius-card2);
    margin: 4px;
    background: #fff;
}

.ibm-card .card-footer-info {
    padding: 10px 25px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Box info ringkasan di modal */
.info-struk-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.info-label {
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 13px;
    color: #1E293B;
    font-weight: 700;
}

/* Input tanggal custom */
.input-date-custom {
    border: 1px solid var(--ibm-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    background: #fff;
}

/* Icon pencarian di input group */
.input-group-text-custom {
    border-radius: 8px 0 0 8px !important;
    border: 1px solid var(--ibm-border) !important;
    border-right: none !important;
    background: #fff !important;
    color: #94A3B8 !important;
}

/* Input search bar */
.input-search-custom {
    border-radius: 0 8px 8px 0 !important;
    border: 1px solid var(--ibm-border) !important;
    border-left: none !important;
    background: #fff !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

/* Nama item di detail transaksi */
.item-name {
    font-weight: 600;
    color: #0F172A;
    display: block;
    margin-bottom: 2px;
}

/* Label teks kecil di dalam card */
.label-ibm {
    color: var(--ibm-text);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

/* Teks periode terakhir di footer card */
.last-period {
    color: var(--color-white);
    font-size: 12px;

}

/* Kontainer sidebar kiri */
.left-sidenav {
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03);
    border-right: 1px solid #f3f6f9;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.left-sidenav .brand {
    text-align: center;
    height: auto !important;
}

/* Menu di dalam sidebar */
.left-sidenav-menu {
    padding: 5px 10px 15px 10px;
}

.left-sidenav-menu .menu-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 10px;
    padding-left: 15px;
}

.left-sidenav-menu li a {
    border-radius: var(--radius-card2);
    padding: 10px 15px;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    display: flex;
    align-items: center;
}

.left-sidenav-menu li a .menu-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: #64748b;
    transition: all 0.25s ease;
}

.left-sidenav-menu li a:hover {
    background-color: #eff6ff;
    color: #2563eb;
    transform: translateX(4px);
}

.left-sidenav-menu li a:hover .menu-icon {
    color: #2563eb;
}

.left-sidenav-menu li.mm-active>a,
.left-sidenav-menu li>a.active {
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: var(--radius-card2);
}

.left-sidenav-menu li.mm-active>a .menu-icon,
.left-sidenav-menu li>a.active .menu-icon {
    color: #2563eb;
}

.left-sidenav-menu li ul {
    padding: 0;
    margin: 0;
}

.left-sidenav-menu li ul li>a {
    padding: 10px 25px;
    color: #68728c;
    font-size: 13px;
    border-left: none;
    margin: 0 -3px;
}

/* Kontainer chart kecil */
.mini-chart {
    position: absolute;
    right: 24px;
    bottom: 20px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

/* Modal Custom Ajax */
.modal-custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-custom-overlay.show {
    opacity: 1;
    display: flex;
}

.modal-custom-box {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    margin: 15px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-custom-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ibm-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-custom-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-custom-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--ibm-border);
}

/* Menu tingkat kedua (Submenu) */
.nav-second-level li a {
    padding: 8px 15px 8px 25px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #68728c;
}

.nav-second-level li a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #cbd5e1;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-second-level li a:hover::before {
    background-color: #2563eb;
    transform: scale(1.5);
}

.nav-second-level li.mm-active>a,
.nav-second-level li>a.active {
    color: #2563eb;
    font-weight: 600;
    background-color: transparent;
    transform: none;
}

.nav-second-level li.mm-active>a::before,
.nav-second-level li>a.active::before {
    background-color: #2563eb;
    transform: none;
}

.left-sidenav-menu li.mm-active .mm-active > a {
    color: #2563eb;
    background: #fff;
}

/* Navigasi atas (Navbar) */
.navbar-custom {
    background-color: var(--ibm-bg) !important;
}

/* Kontainer utama konten halaman */
.page-content {
    background-color: var(--ibm-bg) !important;
}

/* Pagination container & buttons */
.pagination-container {
    margin: 20px 0 0 0;
}

.pagination-custom .btn-page {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    background: #fff;
    border: 1px solid var(--ibm-border);
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0 10px;
}

.pagination-custom .btn-page:hover:not(.disabled) {
    background: #f8fafc;
    color: var(--primary-green);
    border-color: #cbd5e1;
}

.pagination-custom .btn-page.active {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.pagination-custom .btn-page.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.pagination-custom .dots {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 5px;
    color: #94a3b8;
    font-weight: bold;
}

/* Status badge warna custom */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-modal-sukses {
    background: rgba(108, 197, 35, 0.1);
    color: #6CC523;
}

.status-modal-void {
    background: #FEF2F2;
    color: #EF4444;
}

.status-sukses {
    background: rgba(108, 197, 35, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(108, 197, 35, 0.3);
}

.status-void {
    background: #FEF2F2;
    color: var(--danger-red);
    border: 1px solid #FEE2E2;
}

/* Tab switcher design (Telegram style) */
.tab-container {
    background: #F1F5F9;
    padding: 5px;
    border-radius: 12px;
    display: inline-flex;
    gap: 5px;
}

.tab-item {
    padding: 8px 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748B;
    border: none;
    background: transparent;
}

.tab-item.active {
    background: #FFFFFF;
    color: var(--text-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Desain tabel utama */
.table-custom-ibm {
    width: 100%;
    border-collapse: collapse;
}

.table-custom-ibm thead th {
    background: #F8FAFC !important;
    font-weight: 700;
    border-bottom: 1.5px solid var(--ibm-border) !important;
    padding: 18px 25px;
    text-align: left;
}

.table-custom-ibm td {
    padding: 16px 25px;
    border-bottom: 1px dashed var(--ibm-border);
}

/* Tabel detail di dalam modal (Dashed Style) */
.table-detail-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-detail-custom th {
    background-color: #F1F5F9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 15px;
    border-bottom: 1px solid #CBD5E1;
}

.table-detail-custom td {
    padding: 14px 15px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px dashed #E2E8F0;
    vertical-align: middle;
}

.table-detail-custom tbody tr:last-child td {
    border-bottom: 2px solid #E2E8F0;
}

/* Wrapper tabel responsif */
.table-responsive {
    border: 1px solid var(--ibm-border);
    border-radius: 12px;
    margin: 0;
    overflow: hidden;
    background: #fff;
}

/* Warna teks custom */
.text-muted {
    color: var(--ibm-text) !important;
}

/* Animasi loading spinner */
.ti-spin {
    animation: spin 2s linear infinite;
    display: inline-block;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Badge trend di card statistik */
.trend-badge {
    font-size: 12px;
    font-weight: 700;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Nilai angka utama di card statistik */
.value-ibm {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}