/* ============================================================
   ui-myaset.css — DESIGN SYSTEM myAset (pengganti Soft UI)
   ------------------------------------------------------------
   Fondasi + layout + komponen. Dibuat sendiri, TANPA dependensi
   Soft UI. Dimuat SETELAH bootstrap.min.css.
   Palet warna memakai token --atk-* (didefinisikan di
   custom-theme.css yang dimuat setelah file ini — variabel CSS
   dievaluasi saat dipakai, jadi aman).
   ============================================================ */

/* ---------- 1. TOKEN ---------- */
:root {
    --ma-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ma-sidebar-w: 264px;
    --ma-sidebar-collapsed: 88px;
    --ma-radius-xs: 6px;
    --ma-radius-sm: 8px;
    --ma-radius-md: 12px;
    --ma-radius-lg: 16px;
    --ma-radius-xl: 20px;
    --ma-shadow-sm: 0 1px 2px rgba(16, 20, 30, 0.04);
    --ma-shadow-md: 0 2px 6px rgba(16, 20, 30, 0.05), 0 12px 28px rgba(16, 20, 30, 0.05);
    --ma-shadow-lg: 0 10px 30px rgba(16, 20, 30, 0.08), 0 4px 10px rgba(16, 20, 30, 0.04);
    --ma-bg: #f4f6fb;
    --ma-surface: #ffffff;
    --ma-border: #e6e9f0;
}

/* ---------- 2. BASE ---------- */
html { height: 100%; }
body {
    font-family: var(--ma-font);
    background: var(--ma-bg);
    color: #10141e;
    font-size: 0.925rem;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #10141e;
    letter-spacing: -0.015em;
}
a { text-decoration: none; }
a:hover { color: #1d4ed8; }
hr { opacity: 1; }

/* Scrollbar tipis & elegan */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8cdd6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #aab0bb; }

/* ---------- 3. LAYOUT APP ---------- */
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--ma-sidebar-w);
    background: var(--ma-surface);
    border-right: 1px solid var(--ma-border);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.22s ease, width 0.22s ease;
}

/* Brand */
.app-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.15rem 1.25rem 1rem;
    border-bottom: 0;
}
.app-brand img { height: 34px; width: auto; object-fit: contain; }
.app-brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.1; color: #10141e; }
.app-brand-sub { font-size: 0.6rem; color: #8a919c; line-height: 1.2; display: block; }

/* Navigasi */
.app-nav-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0 1rem;
    scrollbar-width: none;
}
.app-nav-wrap::-webkit-scrollbar { display: none; }
.app-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-nav-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.4rem 0.35rem;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa1ad;
    white-space: nowrap;
}
.app-nav-section::after { content: ''; flex: 1; height: 1px; background: var(--ma-border); }
.app-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1px 0.6rem;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    color: #3f4654;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.app-nav-link:hover { background: #eef1f7; color: #1d4ed8; }
.app-nav-link .app-nav-icon {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--ma-border);
    color: #3f4654;
    font-size: 0.95rem;
    transition: all 0.15s ease;
}
.app-nav-link:hover .app-nav-icon { color: #2563eb; }
.app-nav-link.active {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
}
.app-nav-link.active .app-nav-icon {
    background: #fff;
    border-color: transparent;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}
.app-nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.6rem; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 60%;
    border-radius: 0 4px 4px 0;
    background: #2563eb;
}

/* Footer sidebar (logout) */
.app-sidebar-foot {
    border-top: 1px solid var(--ma-border);
    padding: 0.6rem;
}
.app-sidebar-foot .btn { width: 100%; justify-content: center; }

/* Konten utama */
.app-main {
    margin-left: var(--ma-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.22s ease;
}
.app-main-inner { flex: 1; padding: 1.25rem 1.5rem 2rem; }

/* Topbar */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ma-border);
}
.app-topbar-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.app-topbar-title { font-weight: 800; font-size: 1.02rem; margin: 0; letter-spacing: -0.01em; }
.app-topbar-sub { font-size: 0.72rem; color: #8a919c; display: block; margin: 0; }
.app-topbar-right { display: flex; align-items: center; gap: 0.5rem; }

.app-icon-btn {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--ma-border);
    background: #fff;
    color: #5f6672;
    font-size: 1rem;
    transition: all 0.15s ease;
    position: relative;
}
.app-icon-btn:hover { background: #eef1f7; color: #2563eb; }
.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    font-size: 0.55rem;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* Overlay mobile */
.app-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1039;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.app-overlay.show { opacity: 1; pointer-events: auto; }

/* Responsive: sidebar off-canvas di bawah xl */
@media (max-width: 1199.98px) {
    .app-sidebar { transform: translateX(-100%); box-shadow: none; }
    .app-sidebar.show { transform: translateX(0); box-shadow: var(--ma-shadow-lg); }
    .app-main { margin-left: 0; }
}

/* ---------- 4. TOMBOL ---------- */
.btn { border-radius: 10px; font-weight: 600; font-size: 0.875rem; }
.btn-sm { border-radius: 8px; font-size: 0.8rem; }
.btn-lg { border-radius: 12px; }
.btn:focus, .btn:focus-visible { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }

/* Gradien brand: dipakai btn/badge/chip/icon */
.bg-gradient-primary,
.btn.bg-gradient-primary { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important; }
.bg-gradient-success,
.btn.bg-gradient-success { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22) !important; }
.bg-gradient-info,
.btn.bg-gradient-info    { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 4px 12px rgba(8, 145, 178, 0.22) !important; }
.bg-gradient-warning,
.btn.bg-gradient-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.22) !important; }
.bg-gradient-danger,
.btn.bg-gradient-danger  { background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.22) !important; }
.bg-gradient-dark,
.btn.bg-gradient-dark    { background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important; color: #fff !important; border: none !important; }
.btn.bg-gradient-primary:hover,
.btn.bg-gradient-success:hover,
.btn.bg-gradient-info:hover,
.btn.bg-gradient-warning:hover,
.btn.bg-gradient-danger:hover { filter: brightness(0.94); box-shadow: 0 6px 16px rgba(16, 20, 30, 0.14) !important; }

/* Outline: hover solid + teks putih (tetap konsisten) */
.btn-outline-primary { color: #2563eb !important; border-color: #2563eb !important; }
.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary:focus { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
.btn-outline-success { color: #16a34a !important; border-color: #16a34a !important; }
.btn-outline-success:hover { background: #16a34a !important; color: #fff !important; }
.btn-outline-danger { color: #dc2626 !important; border-color: #dc2626 !important; }
.btn-outline-danger:hover { background: #dc2626 !important; color: #fff !important; }
.btn-outline-warning { color: #d97706 !important; border-color: #d97706 !important; }
.btn-outline-warning:hover { background: #d97706 !important; color: #fff !important; }
.btn-outline-info { color: #0891b2 !important; border-color: #0891b2 !important; }
.btn-outline-info:hover { background: #0891b2 !important; color: #fff !important; }
.btn-outline-secondary { color: #5f6672 !important; border-color: #c8cdd6 !important; }
.btn-outline-secondary:hover { background: #5f6672 !important; color: #fff !important; border-color: #5f6672 !important; }
.btn-outline-light { color: #fff !important; border-color: rgba(255, 255, 255, 0.55) !important; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14) !important; color: #fff !important; }
.btn-white { background: #fff !important; color: #1d4ed8 !important; font-weight: 700 !important; }

/* ---------- 5. CHIP IKON & AVATAR ---------- */
.icon { display: inline-flex; }
.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
}
.icon-shape i { font-size: 1.1rem; line-height: 1; }
.icon-xxs.icon-shape { width: 24px; height: 24px; border-radius: 8px; }
.icon-xs.icon-shape  { width: 28px; height: 28px; border-radius: 9px; }
.icon-sm.icon-shape  { width: 34px; height: 34px; border-radius: 10px; }
.icon-sm.icon-shape i { font-size: 0.95rem; }
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    color: #fff; font-weight: 700;
}
.avatar-sm { width: 32px; height: 32px; border-radius: 10px; }

/* ---------- 6. KARTU ---------- */
.card {
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius-lg);
    background: var(--ma-surface);
    box-shadow: var(--ma-shadow-sm);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--ma-border);
    padding: 1rem 1.25rem;
}
.card-header:first-child { border-radius: calc(var(--ma-radius-lg) - 1px) calc(var(--ma-radius-lg) - 1px) 0 0; }
.card-header h6, .card-header .h6 { font-weight: 700; }
.card-body { padding: 1.25rem; }
.card .card { border-radius: var(--ma-radius-md); }

/* ---------- 7. TABEL ---------- */
.table { --bs-table-bg: transparent; }
.table thead th {
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #8a919c;
    border-bottom-width: 1px;
    border-bottom-color: var(--ma-border);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}
.table tbody td { padding: 0.8rem 1rem; vertical-align: middle; border-color: #f0f2f7; font-size: 0.875rem; }
.table tbody tr { transition: background 0.12s ease; }
.table-hover tbody tr:hover { background: #f7f9fd; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: #fafbfe; }

/* ---------- 8. FORM ---------- */
.form-control, .form-select {
    border-radius: 10px;
    border-color: #d9dde6;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-label { font-weight: 600; font-size: 0.82rem; color: #3f4654; margin-bottom: 0.35rem; }
.input-group-text { border-radius: 10px; }
.form-check-input:checked { background-color: #2563eb; border-color: #2563eb; }

/* ---------- 9. BADGE ---------- */
.badge { font-weight: 600; border-radius: 6px; padding: 0.45em 0.7em; font-size: 0.72em; }
.badge.bg-gradient-primary,
.badge.bg-gradient-success,
.badge.bg-gradient-warning,
.badge.bg-gradient-danger,
.badge.bg-gradient-info { color: #fff; }

/* ---------- 10. DROPDOWN & MODAL & LIST ---------- */
.dropdown-menu {
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius-md);
    box-shadow: var(--ma-shadow-md);
    padding: 0.4rem;
}
.dropdown-item { border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 0.875rem; }
.dropdown-item:hover { background: #f2f5fb; color: #1d4ed8; }
.dropdown-item.active { background: #eff6ff; color: #2563eb; }
.dropdown-divider { opacity: 0.5; }
.modal-content { border: none; border-radius: var(--ma-radius-lg); box-shadow: var(--ma-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--ma-border); }
.modal-footer { border-top: 1px solid var(--ma-border); }
.list-group-item { border-color: #f0f2f7; }
.list-group-flush > .list-group-item:first-child { border-top: 0; }
.page-link { color: #2563eb; border-radius: 8px; margin: 0 2px; }
.page-item.active .page-link { background-color: #2563eb; border-color: #2563eb; }
.page-item.disabled .page-link { color: #c8cdd6; }
.nav-pills .nav-link { border-radius: 10px; color: #5f6672; }
.nav-pills .nav-link.active { background: #2563eb; color: #fff; }

/* ---------- 11. UTILITAS ---------- */
/* Opacity skala Soft UI (opacity-1..9 = 0.1..0.9) */
.opacity-1 { opacity: 0.1 !important; }
.opacity-2 { opacity: 0.2 !important; }
.opacity-3 { opacity: 0.3 !important; }
.opacity-4 { opacity: 0.4 !important; }
.opacity-5 { opacity: 0.5 !important; }
.opacity-6 { opacity: 0.6 !important; }
.opacity-7 { opacity: 0.7 !important; }
.opacity-8 { opacity: 0.8 !important; }
.opacity-9 { opacity: 0.9 !important; }

/* Radius skala */
.border-radius-xs { border-radius: var(--ma-radius-xs) !important; }
.border-radius-sm { border-radius: var(--ma-radius-sm) !important; }
.border-radius-md { border-radius: var(--ma-radius-md) !important; }
.border-radius-lg { border-radius: var(--ma-radius-lg) !important; }
.border-radius-xl { border-radius: var(--ma-radius-xl) !important; }
.border-radius-2xl { border-radius: 24px !important; }

/* Teks & latar semantik (fallback bila custom-theme belum muat) */
.text-primary { color: #2563eb !important; }
.text-secondary { color: #5f6672 !important; }
.text-success { color: #16a34a !important; }
.text-danger { color: #dc2626 !important; }
.text-warning { color: #d97706 !important; }
.text-info { color: #0891b2 !important; }
.text-muted { color: #8a919c !important; }
.bg-primary { background-color: #2563eb !important; }
.bg-soft-primary { background: #eff6ff !important; }
.bg-soft-success { background: #f0fdf4 !important; }
.bg-soft-warning { background: #fffbeb !important; }
.bg-soft-danger  { background: #fef2f2 !important; }
.bg-soft-info    { background: #ecfeff !important; }

/* Helpers layout */
.min-w-0 { min-width: 0 !important; }
.font-weight-bolder { font-weight: 800 !important; }
.font-weight-bold { font-weight: 700 !important; }
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.825rem !important; }
.text-xxs { font-size: 0.65rem !important; }

/* ---------- 12. DATATABLES & SELECT2 MINOR ---------- */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d9dde6;
    border-radius: 10px;
    padding: 0.35rem 0.7rem;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); outline: none; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid var(--ma-border) !important;
    margin: 0 2px;
    padding: 0.3rem 0.7rem !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}
.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #d9dde6;
    border-radius: 10px;
    display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
.select2-container--default .select2-selection--multiple {
    border: 1px solid #d9dde6;
    border-radius: 10px;
}

/* ============================================================
   13. TOOLBAR HALAMAN — satu aksi primer + menu
   ============================================================ */
.ma-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}
.ma-page-head-text { min-width: 0; }
.ma-page-head-text h6 { margin: 0; }
.ma-page-head-text small { display: block; margin-top: 0.15rem; }
.ma-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.ma-toolbar .btn { display: inline-flex; align-items: center; white-space: nowrap; }
/* Tombol netral: garis tipis, tanpa aksen warna (agar hierarki jelas) */
.ma-toolbar .btn-neutral {
    background: #fff;
    border: 1px solid #d9dde6;
    color: #3f4654;
}
.ma-toolbar .btn-neutral:hover,
.ma-toolbar .btn-neutral:focus,
.ma-toolbar .btn-neutral.show {
    background: #f1f4f9;
    color: #1d4ed8;
    border-color: #c8cdd6;
}
.ma-toolbar .btn-neutral:focus,
.ma-toolbar .btn-neutral.show { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

/* Menu daftar kolom (column visibility) */
.ma-colvis-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
}
.ma-colvis-item .form-check-input { margin: 0; flex: 0 0 auto; }
.ma-colvis-item > span { flex: 1; }
.ma-colvis-item:hover { background: #f2f5fb; }

/* ============================================================
   14. DATATABLES 2 — kontrol berbahasa Indonesia, gaya myAset
   ============================================================ */
.dt-container { padding: 0; }
.dt-container .dt-layout-row { align-items: center; margin: 0; }
.dt-container .dt-layout-row:first-child { margin-bottom: 0.85rem; }
.dt-container .dt-layout-row:last-child { margin-top: 0.85rem; }
.dt-container .dt-length,
.dt-container .dt-info { color: #5f6672; font-size: 0.82rem; }
.dt-container .dt-search label,
.dt-container .dt-length label {
    color: #5f6672;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0;
}
.dt-container .dt-length select,
.dt-container .dt-search input {
    border: 1px solid #d9dde6;
    border-radius: 10px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    color: #10141e;
    background-color: #fff;
}
.dt-container .dt-length select { margin: 0 0.45rem 0 0.45rem; }
.dt-container .dt-search input { margin-left: 0.5rem; min-width: 210px; }
.dt-container .dt-search input::placeholder { color: #aab0bb; }
.dt-container .dt-length select:focus,
.dt-container .dt-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}
.dt-container .dt-paging { margin: 0; }
.dt-container .dt-paging .pagination { margin: 0; gap: 3px; flex-wrap: wrap; }
.dt-container .dt-paging .page-link {
    border-radius: 8px;
    border: 1px solid var(--ma-border);
    color: #2563eb;
    font-size: 0.82rem;
    padding: 0.32rem 0.7rem;
}
.dt-container .dt-paging .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.dt-container .dt-paging .page-item.disabled .page-link {
    color: #c8cdd6;
    border-color: var(--ma-border);
    background: #fff;
}
.dt-container .dt-processing { color: #5f6672; font-size: 0.82rem; }

/* Sembunyikan indikator urut pada kolom yang tidak bisa diurutkan
   (mis. kolom kotak centang) — dulu muncul tanda nyasar di header. */
table.dataTable thead > tr > th.dt-orderable-none .dt-column-order { display: none; }

/* ============================================================
   15. KEPADATAN TABEL & SATU FORMAT UANG
   ============================================================ */
.ma-table--dense tbody td { padding-top: 0.55rem; padding-bottom: 0.55rem; }
/* Tabel padat: rapatkan padding & tinggi baris (menimpa tema lama yang memakai !important) */
.table.ma-table--dense thead th,
.table.ma-table--dense tbody td {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
}
.table.ma-table--dense tbody td { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.table.ma-table--dense thead th { padding-top: 0.65rem !important; padding-bottom: 0.65rem !important; }
.ma-table--dense .ma-code { max-width: 120px; }
/* Judul kolom panjang boleh melipat dua baris agar kolom lebih ramping */
.table.ma-table--dense thead th { white-space: normal; line-height: 1.15; }
/* Kode panjang: satu baris, dipotong dengan elipsis (nilai lengkap via title) */
.ma-code {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}
/* Sel uang: satu format, tidak pecah ke baris berikutnya */
.ma-money { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.35; }
.ma-money .ma-money-main { display: block; white-space: nowrap; }
.ma-money .ma-money-sub { display: block; font-size: 0.72rem; color: #8a919c; white-space: nowrap; }
td.ma-money-cell, .table td.ma-money-cell { text-align: right; white-space: nowrap; }
th.ma-money-head, .table th.ma-money-head { text-align: right; white-space: nowrap; }

/* ============================================================
   16. MODE KARTU (PONSEL < 768px) — tabel tetap terbaca
   ============================================================ */
@media (max-width: 767.98px) {
    /* Kontrol DataTables menumpuk rapi, tidak ter-center aneh */
    .dt-container .dt-layout-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .dt-container .dt-layout-cell { width: 100%; }
    .dt-container .dt-search { text-align: left; }
    .dt-container .dt-search input { min-width: 0; width: 100%; margin-left: 0; margin-top: 0.35rem; }
    .dt-container .dt-length { text-align: left; }
    .dt-container .dt-paging { text-align: left; }
    .dt-container .dt-paging .pagination { justify-content: flex-start !important; }

    table.dataTable.ma-cards { border-collapse: separate; }
    table.dataTable.ma-cards thead { display: none; }
    /* Jadikan tabel blok biasa agar kartu pas selebar kontainer & tidak terpotong */
    table.dataTable.ma-cards { display: block; width: 100% !important; }
    table.dataTable.ma-cards tbody { display: block; }
    .dt-container .dt-layout-table,
    .dt-container .dt-layout-table > * { padding-left: 0; padding-right: 0; }
    table.dataTable.ma-cards tbody tr {
        display: block;
        margin: 0 0 0.7rem;
        border: 1px solid var(--ma-border);
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--ma-shadow-sm);
        padding: 0.3rem 0.15rem;
        width: auto;
    }
    table.dataTable.ma-cards tbody tr.row-selected { border-color: #93c5fd; }
    table.dataTable.ma-cards tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.9rem;
        width: auto !important;
        min-width: 0;
        border: 0;
        padding: 0.4rem 0.8rem;
        text-align: right !important;
        font-size: 0.85rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    table.dataTable.ma-cards tbody td > * { min-width: 0; }
    table.dataTable.ma-cards tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        max-width: 46%;
        font-size: 0.64rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #8a919c;
        text-align: left;
        white-space: nowrap;
    }
    table.dataTable.ma-cards tbody td.ma-code,
    table.dataTable.ma-cards .ma-code { max-width: 60%; }
    table.dataTable.ma-cards .ma-code { overflow: hidden; text-overflow: ellipsis; }
    /* nomor urut tak perlu di kartu */
    table.dataTable.ma-cards tbody td.ma-col-no { display: none !important; }
    /* kolom centang pilih: kecil di kiri atas kartu */
    table.dataTable.ma-cards tbody td.ma-col-check {
        justify-content: flex-start;
        padding-top: 0.55rem;
        padding-bottom: 0;
    }
    /* baris aksi di bawah kartu */
    table.dataTable.ma-cards tbody td.ma-col-actions {
        justify-content: flex-end;
        border-top: 1px solid var(--ma-border);
        margin-top: 0.35rem;
        padding-top: 0.6rem;
    }
    /* sel uang di kartu tetap satu baris */
    table.dataTable.ma-cards .ma-money { text-align: right; }
}
