/* SIKEU Parent Portal — Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --p-primary: #2563eb;
    --p-primary-dark: #1e40af;
    --p-primary-light: #dbeafe;
    --p-accent: #fbbf24;
    --p-bg: #f1f5f9;
    --p-surface: #ffffff;
    --p-text: #0f172a;
    --p-text-muted: #64748b;
    --p-text-light: #94a3b8;
    --p-danger: #ef4444;
    --p-danger-bg: #fef2f2;
    --p-warning: #f59e0b;
    --p-warning-bg: #fffbeb;
    --p-success: #16a34a;
    --p-radius: 16px;
    --p-radius-sm: 12px;
    --p-radius-xs: 8px;
    --p-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 4px 16px rgba(15,23,42,0.04);
    --p-shadow-lg: 0 8px 32px rgba(15,23,42,0.1);
    --p-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    justify-content: center;
    font-family: var(--p-font);
    color: var(--p-text);
    -webkit-font-smoothing: antialiased;
}

/* ── Shell ── */
.pwa-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background: var(--p-bg);
    position: relative;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.05), 0 20px 60px rgba(15,23,42,0.15);
    overflow-x: hidden;
}
.pwa-shell-inner {
    padding-bottom: 96px;
    min-height: 100vh;
}

/* ── Header ── */
.pwa-header {
    position: relative;
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
    padding: 1.5rem 1.25rem 3.5rem;
    overflow: hidden;
}
.pwa-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.pwa-header::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.pwa-header-inner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}
.pwa-header-logo-wrap {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
}
.pwa-header-logo { width: 100%; height: 100%; object-fit: contain; }
.pwa-header-text { flex: 1; min-width: 0; }
.pwa-header-text .greeting {
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.pwa-header-text .name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-top: 2px;
}
.pwa-header-sub {
    margin-top: 0.6rem;
    font-size: 0.68rem;
    opacity: 0.75;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ── Cards (shared) ── */
.pwa-card {
    background: var(--p-surface);
    border-radius: var(--p-radius);
    padding: 1.15rem;
    margin: 0 1rem 0.875rem;
    box-shadow: var(--p-shadow);
    border: 1px solid rgba(15,23,42,0.04);
}
.pwa-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 700; }
.pwa-card h4 { margin: 0 0 0.75rem; font-size: 0.95rem; font-weight: 700; }

/* ── Navbar ── */
.pwa-navbar {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 406px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(15,23,42,0.12), 0 0 0 1px rgba(15,23,42,0.04);
    display: flex;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    border-radius: 20px;
}
.pwa-navbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--p-text-light);
    font-size: 0.58rem;
    font-weight: 600;
    padding: 6px 6px;
    border-radius: 14px;
    transition: all 0.2s;
    min-width: 48px;
}
.pwa-navbar a.active {
    color: var(--p-primary);
    background: var(--p-primary-light);
}
.pwa-navbar i { font-size: 1.15rem; margin-bottom: 2px; }

/* ── Dashboard ── */
.dash-body { padding: 0 0 1rem; }

.dash-hero { margin-bottom: -2.75rem; }

.dash-balance-card {
    background: var(--p-surface);
    border-radius: 20px;
    padding: 1.25rem;
    margin: 0 1rem 0.875rem;
    box-shadow: var(--p-shadow-lg);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(15,23,42,0.04);
}
.dash-balance-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.dash-balance-label {
    font-size: 0.75rem;
    color: var(--p-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dash-balance-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--p-primary-light);
    color: var(--p-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.dash-balance-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-top: 0.35rem;
}
.dash-student-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.875rem;
    margin-top: 0.875rem;
    border-top: 1px solid #f1f5f9;
}
.dash-student-avatar {
    width: 42px; height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.dash-student-info { flex: 1; min-width: 0; }
.dash-student-name {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-student-nis {
    font-size: 0.72rem;
    color: var(--p-text-light);
    font-weight: 500;
    margin-top: 1px;
}

/* Quick actions */
.dash-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.625rem;
    margin: 0 1rem 0.875rem;
}
.dash-action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--p-surface);
    border-radius: var(--p-radius-sm);
    padding: 0.85rem 0.9rem;
    text-decoration: none;
    color: var(--p-text);
    box-shadow: var(--p-shadow);
    border: 1px solid rgba(15,23,42,0.04);
    transition: transform 0.15s;
}
.dash-action:active { transform: scale(0.97); }
.dash-action-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.dash-action-icon.bill { background: #fef3c7; color: #d97706; }
.dash-action-icon.history { background: #dbeafe; color: #2563eb; }
.dash-action-icon.wallet { background: #dcfce7; color: #16a34a; }
.dash-action-text { font-size: 0.78rem; font-weight: 700; line-height: 1.25; }
.dash-action-sub { font-size: 0.65rem; color: var(--p-text-light); font-weight: 500; margin-top: 1px; }

/* Student selector */
.dash-selector {
    margin: 0 1rem 0.875rem;
    background: var(--p-surface);
    border-radius: var(--p-radius-sm);
    padding: 0.75rem 1rem;
    box-shadow: var(--p-shadow);
    border: 1px solid rgba(15,23,42,0.04);
}
.dash-selector label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--p-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.dash-selector select {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: var(--p-radius-xs);
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--p-font);
    color: var(--p-text);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Alert */
.dash-alert {
    margin: 0 1rem 0.875rem;
    background: var(--p-danger-bg);
    border-radius: var(--p-radius);
    padding: 1rem;
    border: 1px solid #fecaca;
    position: relative;
    overflow: hidden;
}
.dash-alert::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--p-danger);
    border-radius: 4px 0 0 4px;
}
.dash-alert-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.dash-alert-item {
    background: white;
    border-radius: var(--p-radius-xs);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.dash-alert-item:last-of-type { margin-bottom: 0; }
.dash-alert-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}
.dash-alert-item-name { font-weight: 700; font-size: 0.82rem; }
.dash-alert-item-code { font-size: 0.68rem; color: var(--p-text-light); margin-top: 1px; }
.dash-alert-item-amount { font-weight: 800; color: #dc2626; font-size: 0.82rem; white-space: nowrap; }
.dash-alert-meta { font-size: 0.72rem; color: var(--p-text-muted); }
.dash-alert-overdue { color: var(--p-danger); font-weight: 700; }
.dash-alert-soon { color: var(--p-warning); font-weight: 700; }
.dash-alert-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--p-radius-xs);
    background: white;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* VA Card — bank card style */
.dash-va-card {
    margin: 0 1rem 0.875rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
    border-radius: 20px;
    padding: 1.35rem;
    color: white;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}
.dash-va-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.dash-va-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 20%;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.dash-va-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}
.dash-va-chip {
    width: 40px; height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    opacity: 0.9;
}
.dash-va-bank-logo {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.85;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.dash-va-label {
    font-size: 0.68rem;
    opacity: 0.7;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.dash-va-nis {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 4px;
    font-family: 'SF Mono', 'Consolas', monospace;
    margin: 0.25rem 0 0.5rem;
    position: relative;
    z-index: 1;
}
.dash-va-hint {
    font-size: 0.68rem;
    opacity: 0.65;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.dash-va-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 1rem 0 0.75rem;
    position: relative;
    z-index: 1;
}
.dash-va-transfer-label {
    font-size: 0.65rem;
    opacity: 0.6;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.dash-va-full {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'SF Mono', 'Consolas', monospace;
    margin-top: 0.2rem;
    position: relative;
    z-index: 1;
}
.dash-va-admin {
    font-size: 0.65rem;
    opacity: 0.55;
    margin-top: 0.4rem;
    position: relative;
    z-index: 1;
}
.dash-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--p-radius-sm);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--p-font);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    z-index: 1;
}
.dash-copy-btn:active { background: rgba(255,255,255,0.22); }

/* Section */
.dash-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--p-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0.25rem 1rem 0.625rem;
}

/* Tabs */
.dash-tabs {
    display: flex;
    margin: 0 1rem 0.625rem;
    gap: 4px;
    background: #e2e8f0;
    border-radius: 14px;
    padding: 4px;
}
.dash-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.2rem;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--p-font);
    color: var(--p-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
}
.dash-tab.active {
    background: var(--p-surface);
    color: var(--p-primary);
    box-shadow: 0 1px 4px rgba(15,23,42,0.08);
}
.dash-tab-badge {
    display: inline-block;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    border-radius: 9px;
    font-size: 0.6rem;
    font-weight: 800;
    margin-left: 3px;
    padding: 0 4px;
    vertical-align: middle;
}
.dash-tab.active .dash-tab-badge { background: var(--p-primary-light); color: var(--p-primary); }
.dash-tab:not(.active) .dash-tab-badge { background: #fecaca; color: #dc2626; }

/* List */
.dash-panel { padding: 0 1rem; }
.dash-list-card {
    background: var(--p-surface);
    border-radius: var(--p-radius);
    overflow: hidden;
    box-shadow: var(--p-shadow);
    border: 1px solid rgba(15,23,42,0.04);
}
.dash-list-header {
    padding: 0.85rem 1rem;
    font-weight: 800;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-list-header a {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--p-primary);
    text-decoration: none;
}
.dash-list-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--p-text-light);
    font-size: 0.82rem;
    font-weight: 500;
}
.dash-list-empty i {
    font-size: 2rem;
    color: var(--p-primary);
    opacity: 0.4;
    display: block;
    margin-bottom: 0.5rem;
}
.dash-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s;
}
.dash-list-item:last-child { border-bottom: none; }
.dash-list-item:active { background: #f8fafc; }
.dash-list-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.dash-list-icon.bill { background: #fef3c7; color: #d97706; }
.dash-list-icon.pay { background: #dbeafe; color: #2563eb; }
.dash-list-body { flex: 1; min-width: 0; }
.dash-list-title {
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-list-sub {
    font-size: 0.7rem;
    color: var(--p-text-light);
    margin-top: 2px;
    font-weight: 500;
}
.dash-list-amount { text-align: right; flex-shrink: 0; }
.dash-list-amount .value { font-weight: 800; font-size: 0.82rem; }

/* Saldo detail */
.dash-saldo-rows { padding: 0.25rem 0; }
.dash-saldo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.dash-saldo-row:last-child {
    border-bottom: none;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.dash-saldo-row span:first-child { font-size: 0.82rem; color: var(--p-text-muted); font-weight: 600; }
.dash-saldo-row span:last-child { font-weight: 800; font-size: 0.9rem; }

/* Toast */
.dash-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: white;
    padding: 0.7rem 1.25rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--p-font);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.dash-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tab-content { animation: dashFadeIn 0.25s ease; }
@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-success { color: var(--p-success) !important; }
.text-danger { color: var(--p-danger) !important; }

@media (max-width: 480px) {
    body { background: var(--p-bg); }
    .pwa-shell { box-shadow: none; }
}

/* Banner install PWA */
.pwa-install-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 1.5rem);
    max-width: 420px;
    z-index: 1001;
    padding: 0;
}

.pwa-install-banner[hidden] {
    display: none !important;
}

.pwa-install-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.pwa-install-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pwa-install-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-banner-text strong {
    display: block;
    font-size: 0.92rem;
    color: #111827;
    line-height: 1.2;
}

.pwa-install-banner-text p {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.3;
}

.pwa-install-banner-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.pwa-install-banner-btn:active {
    background: #1d4ed8;
}

.pwa-install-banner-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

body:not(.pwa-shell) .pwa-install-banner,
.login-page .pwa-install-banner {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* ── Mutasi saldo (parent) ── */
.mutasi-summary {
    margin: 0 1rem 0.75rem;
}
.mutasi-summary-card {
    background: var(--p-surface);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    box-shadow: var(--p-shadow);
    border: 1px solid rgba(15,23,42,0.04);
}
.mutasi-summary-card.saldo {
    margin-bottom: 0.625rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.mutasi-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}
.mutasi-summary-label {
    font-size: 0.72rem;
    color: var(--p-text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.mutasi-summary-value {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}
.mutasi-summary-hint {
    font-size: 0.65rem;
    color: var(--p-text-light);
    margin-top: 0.2rem;
}
.mutasi-filter { margin-bottom: 0.5rem; padding: 0.65rem !important; }
.mutasi-filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
}
.mutasi-filter-tabs a {
    text-align: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.55rem 0.4rem;
    border-radius: 10px;
    color: var(--p-text-muted);
    background: #f1f5f9;
}
.mutasi-filter-tabs a.active {
    background: var(--p-primary);
    color: #fff;
}
.mutasi-item { margin-bottom: 0.65rem !important; }
.mutasi-item-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.mutasi-item-icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mutasi-item-icon.masuk { background: #dcfce7; color: #16a34a; }
.mutasi-item-icon.keluar { background: #fee2e2; color: #dc2626; }
.mutasi-item-main { flex: 1; min-width: 0; }
.mutasi-item-type { font-weight: 800; font-size: 0.86rem; }
.mutasi-item-date { font-size: 0.7rem; color: var(--p-text-light); margin-top: 1px; }
.mutasi-item-amount { font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
.mutasi-tagihan {
    margin-top: 0.7rem;
    padding: 0.65rem 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}
.mutasi-tagihan-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 0.35rem;
}
.mutasi-tagihan ul {
    margin: 0;
    padding-left: 1rem;
}
.mutasi-tagihan li {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--p-text);
    margin-bottom: 0.15rem;
}
.mutasi-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin-top: 0.55rem;
    font-size: 0.68rem;
    color: var(--p-text-muted);
    font-weight: 600;
}
.mutasi-ket {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: var(--p-text);
    font-weight: 500;
}
.mutasi-ket.muted { color: var(--p-text-muted); }
.mutasi-saldo-row {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: var(--p-text-muted);
}
.mutasi-saldo-row strong { color: var(--p-text); font-weight: 800; }
.mutasi-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem 1rem;
    flex-wrap: wrap;
}
.mutasi-pagination a {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--p-text-muted);
    background: #f1f5f9;
}
.mutasi-pagination a.active {
    background: var(--p-primary);
    color: #fff;
}

@media (max-width: 380px) {
    .dash-actions { grid-template-columns: 1fr; }
    .dash-action { padding: 0.75rem 0.85rem; }
}
