/* CashBookPro — ANIMATIONS
 * ------------------------------------------------
 * Component / element styles for the dark theme.  */


/* 1. Ensure the shine doesn't spill outside the rounded corners */
.list-item-card {
    position: relative; 
    overflow: hidden !important; /* Critical for the glass effect */
}

/* 2. The Card State on Long Press */
.sortable-chosen {
    border-color: var(--orange-accent) !important;
    background-color: #2a2a2a !important;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    z-index: 100;
}

/* 3. The "Glassy Shine" Element */
.sortable-chosen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Start far left */
    width: 100%;
    height: 100%;
    
    /* The Shine Gradient: Transparent -> White Tint -> Transparent */
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    
    transform: skewX(-25deg); /* Tilt it diagonally */
    pointer-events: none; /* Let touches pass through */
    
    /* The Animation Trigger */
    animation: glassyShine 0.75s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* 4. The Animation Keyframes */
@keyframes glassyShine {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}



/* --- HEADER BUTTON ENTRY ANIMATION --- */
@keyframes headerBtnPop {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(5px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.header-pop-enter {
    animation: headerBtnPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


/* --- APP VERSION FOOTER --- */
.version-footer-fixed {
    position: absolute; 
    bottom: 15px;
    right: 15px;
    font-size: 0.75em;
    color: var(--text-secondary);
    opacity: 0.4;
    pointer-events: none; /* Allows scrolling/clicking through it */
    z-index: 0; /* Behind other interactive elements if they overlap */
}

/* --- SMART FOOTER LAYOUT --- */

/* 1. Make the Books Page a Flex Container */
#view-books {
    display: flex !important; /* Override default block display */
    flex-direction: column;
}

/* 2. The Smart Footer Style */
.version-footer-smart {
    margin-top: auto;      /* CRITICAL: Pushes footer to bottom if space exists */
    align-self: flex-end;  /* Aligns the element itself to the right */
    
    padding: 10px 5px;
    font-size: 0.75em;
    color: var(--text-secondary);
    opacity: 0.4;
    
    /* Ensure it doesn't shrink/hide in complex layouts */
    flex-shrink: 0;
}



/* --- FOOTER ENTRY ANIMATIONS --- */

/* 1. The Footer Container (Slides up from off-screen) */
.footer-enter {
    animation: footerSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes footerSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 2. The Buttons (Pop in with "Parallax" delay) */
.footer-btn-enter {
    animation: btnPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0; /* Start invisible */
    transform: translateY(20px) scale(0.9); /* Start lower and smaller */
}

@keyframes btnPopIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


.swal2-container {
    z-index: 20000 !important; /* Higher than Login (9999) */
}
/* --- UPDATE TOAST NOTIFICATION --- */
.update-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Start hidden below */
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--orange-accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20001 !important;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    white-space: nowrap;
}

.update-toast.show {
    transform: translateX(-50%) translateY(0); /* Slide Up */
}

.update-toast-text {
    font-size: 0.9em;
    color: var(--text-primary);
}

.update-toast-btn {
    background: var(--orange-accent);
    color: #000;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: transform 0.2s;
}
.update-toast-btn:active { transform: scale(0.95); }

.update-toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 5px;
    display: flex; 
    align-items: center;
}
.update-toast-close:hover { color: #fff; }


/* --- LOGIN PAGE STYLES --- */
.login-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark);
    z-index: 9999; 
    display: none; 
    align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px); /* Nice blur effect behind */
}
.login-container.active { display: flex; }

.login-card {
    background: var(--card-bg);
    padding: 35px 30px;
    border-radius: 24px;
    width: 100%; max-width: 360px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.login-icon {
    width: 60px; height: 60px;
    background: rgba(255, 146, 0, 0.15);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 1.8em; color: var(--orange-accent);
}

.login-brand {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* --- SWITCH ANIMATION --- */
.mode-switch-anim {
    animation: switchContent 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes switchContent {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    50% {
        opacity: 0;
        transform: scale(0.95) translateY(5px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.login-card .form-group {
    text-align: left !important;
}

/* --- TRANSACTION ATTRIBUTION FOOTER --- */
.t-footer {
    font-size: 0.7em;
    color: var(--text-secondary);
    margin-top: 6px;
    font-style: italic;
    text-align: right;
    display: flex;
    /*justify-content: flex-end;*/
    align-items: center;
    gap: 5px;
    opacity: 0.7;
}
.t-footer i { font-size: 0.9em; }


/* REPORT TYPE PILLS */
#reportTypeBar .filter-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

#reportTypeBar .filter-btn:hover {
    background: #444;
    color: var(--text-primary);
}

#reportTypeBar .filter-btn.active {
    background: var(--orange-accent);
    color: #000;
    font-weight: bold;
    border-color: var(--orange-accent);
    box-shadow: 0 2px 8px rgba(255, 146, 0, 0.4);
}


/* Add this to your existing button styles */
button:active, .bs-btn:active {
    transform: scale(0.98); /* Slight shrink effect */
    opacity: 0.8;
}


/* DRAG TO SCROLL CURSORS */
#pdfScrollContainer {
    cursor: grab; /* Shows an open hand */
    cursor: -webkit-grab;
}

#pdfScrollContainer.grabbing {
    cursor: grabbing; /* Shows a closed hand when dragging */
    cursor: -webkit-grabbing;
}


/* --- SEARCH BOX STYLES --- */
.sheet-search-wrapper {
    position: relative;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.sheet-search-input {
    padding-left: 35px;
    padding-right: 35px; /* Space for Clear Button */
    border-radius: 12px;
    background: #181818;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sheet-search-input:focus {
    background: #4b4b4b;
    border-color: var(--orange-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sheet-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px; /* Increase touch target */
    display: none; /* Hidden by default */
    transition: color 0.2s;
}
.sheet-search-clear:hover { color: var(--danger-color); }

/* --- ANIMATIONS --- */
@keyframes fadeInUpRaw {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-item {
    animation: fadeInUpRaw 0.25s ease forwards;
}

/* --- FIXED HEIGHT CONTAINER (Prevents Jumping) --- */
.sheet-list-fixed {
    height: 50vh; /* Fixed height: occupies 50% of screen height */
    overflow-y: auto;
    padding-right: 5px; /* Prevent scrollbar overlapping content */
}


/* --- COLOR PICKER STYLES --- */
.color-picker-container {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    overflow-x: auto; /* Horizontal scroll if needed */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.color-picker-container::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome */

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    flex-shrink: 0;
}

.color-swatch.active {
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Checkmark for active state */
.color-swatch.active::after {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Update your existing .color-swatch CSS or add this below it */
.color-swatch:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white border on hover */
}


/* --- UPDATED LINK BADGE STYLES --- */
.account-link-badge {
    position: absolute;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    z-index: 5;
    transition: transform 0.2s;
    border: 2px solid rgba(255,255,255,0.2); /* Ring to make color pop */
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.account-link-badge:hover { transform: scale(1.15); }

/* SOURCE (Parent) -> Bottom Right */
.account-link-badge.source {
    right: 10px;
    /* Background color will be set dynamically via JS */
}

/* TARGET (Child) -> Bottom Left */
.account-link-badge.target {
    left: 10px;
    right: auto;
    /* Background color will be set dynamically via JS */
}


/* --- BULK SELECTION STYLES --- */

/* 1. When the LIST has this class, show ALL checkboxes */
.trans-list.bulk-mode .t-select-box,
.trans-row.selected-mode .t-select-box {
    display: flex !important;
    animation: fadeIn 0.2s;
}

/* 2. Selected Row Styling (Visual Feedback) */
.trans-row.selected-mode {
    background-color: rgba(255, 146, 0, 0.15) !important; /* Stronger highlight */
    border-color: var(--orange-accent);
}

/* Checkbox (Hidden by default, shown in selection mode) */
.t-select-box {
    display: none; 
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-secondary);
    border-radius: 6px;
    margin-right: 15px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    cursor: pointer; /* Hand cursor for desktop */
}

.trans-row.selection-active .t-select-box {
    display: flex; /* Show when selection mode is active */
}

/* Active Checkbox State */
/* 3. Checkbox State inside a selected row */
.trans-row.selected-mode .t-select-box {
    background-color: var(--orange-accent);
    border-color: var(--orange-accent);
    color: #000;
}

/* BULK ACTION BAR (Floating Bottom) */
.bulk-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--orange-accent);
    padding: 10px 15px 20px 15px; /* Adjusted padding */
    z-index: 95;
    
    /* Changed from row to column to fit header */
    display: flex;
    flex-direction: column; 
    gap: 10px;
    
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.bulk-action-bar.active {
    transform: translateY(0);
}

/* New Header Row inside Bulk Bar */
.bulk-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bulk-count-display {
    font-weight: bold;
    color: var(--orange-accent);
    font-size: 1.1em;
}

.bulk-select-all-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bulk-select-all-btn:active { background: #444; }

/* Action Buttons Row */
.bulk-actions-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}


.bulk-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

.bulk-btn:hover { opacity: 1; transform: translateY(-2px); color: var(--orange-accent); }
.bulk-btn.delete:hover { color: var(--danger-color); }

.bulk-count-badge {
    background: var(--orange-accent);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

/* --- GEAR ROTATION ANIMATION --- */

/* 1. Add smooth transition to the gear icon */
.fa-gear {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* 2. Rotate when hovering the icon directly */
.fa-gear:hover {
    transform: rotate(180deg);
}

/* 3. (Optional but recommended) Rotate when hovering the buttons containing the gear */
/* This covers the Header Settings button and the Book/Account card settings */
#headerSettingsBtn:hover .fa-gear,
.card-settings-btn:hover .fa-gear {
    transform: rotate(180deg);
}

        /* Custom Circular Checkboxes with Orange Theme */
        input[type="checkbox"].chart-category-checkbox,
input[type="checkbox"]#chartCategorySelectAll,
input[type="checkbox"].daily-chart-category-checkbox,
input[type="checkbox"]#dailyChartCategorySelectAll {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid #555;
            border-radius: 50%;
            background-color: transparent;
            cursor: pointer;
            position: relative;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            
        }
        
input[type="checkbox"].chart-category-checkbox:hover,
input[type="checkbox"]#chartCategorySelectAll:hover,
input[type="checkbox"].daily-chart-category-checkbox:hover,
input[type="checkbox"]#dailyChartCategorySelectAll:hover {
            border-color: var(--orange-accent);
            box-shadow: 0 0 0 4px rgba(255, 146, 0, 0.1);
            transform: scale(1.05);
        }
        
input[type="checkbox"].chart-category-checkbox:checked,
input[type="checkbox"]#chartCategorySelectAll:checked,
input[type="checkbox"].daily-chart-category-checkbox:checked,
input[type="checkbox"]#dailyChartCategorySelectAll:checked {
            background-color: var(--orange-accent);
            border-color: var(--orange-accent);
            animation: checkboxPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
input[type="checkbox"].chart-category-checkbox:checked::after,
input[type="checkbox"]#chartCategorySelectAll:checked::after,
input[type="checkbox"].daily-chart-category-checkbox:checked::after,
input[type="checkbox"]#dailyChartCategorySelectAll:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(1);
            color: #1e1e1e;
            font-size: 14px;
            font-weight: bold;
            animation: checkmarkAppear 0.2s ease-out 0.1s both;
        }
        
        /* Indeterminate state for Select All */
input[type="checkbox"]#chartCategorySelectAll:indeterminate,
input[type="checkbox"]#dailyChartCategorySelectAll:indeterminate {
            background-color: var(--orange-accent);
            border-color: var(--orange-accent);
            opacity: 0.7;
        }
        
        input[type="checkbox"]#chartCategorySelectAll:indeterminate::after,
input[type="checkbox"]#dailyChartCategorySelectAll:indeterminate::after {
            content: '−';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #1e1e1e;
            font-size: 16px;
            font-weight: bold;
            line-height: 1;
        }
        
        /* Animations */
        @keyframes checkboxPop {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        
        @keyframes checkmarkAppear {
            0% { 
                transform: translate(-50%, -50%) scale(0);
                opacity: 0;
            }
            100% { 
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
        }
        
        .update-toast-whats-new {
    background: transparent;
    color: var(--orange-accent);
    border: 1px solid var(--orange-accent);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.update-toast-whats-new:hover {
    background: var(--orange-accent);
    color: #000;
    transform: translateY(-1px);
}

/* ---- BUSINESS MANAGEMENT STYLES ---- */
.biz-role-badge {
    display: inline-flex; align-items: center; gap: 4px;
    border-radius: 20px; padding: 2px 9px;
    font-size: 0.7em; font-weight: 700; white-space: nowrap;
}
.biz-member-card {
    background: var(--card-bg); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--border-color); transition: border-color 0.2s;
}
.biz-member-card:hover { border-color: rgba(255,146,0,0.3); }
.biz-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1em;
}
.perm-book-row {
    background: var(--input-bg); border-radius: 10px;
    margin-bottom: 8px; border: 1px solid var(--border-color); overflow: hidden;
}
.perm-book-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; cursor: pointer;
}
.perm-acc-list { padding: 0 14px 12px 46px; }
.perm-acc-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-top: 1px solid var(--border-color); gap: 10px;
}
.perm-role-select {
    background: var(--card-bg); color: var(--text-primary);
    border: 1px solid var(--border-color); border-radius: 8px;
    padding: 5px 10px; font-size: 0.85em; cursor: pointer; 
}
.perm-role-select:focus { border-color: var(--orange-accent); }
.biz-info-card {
    background: linear-gradient(135deg, rgba(255,146,0,0.12), rgba(255,146,0,0.04));
    border: 1px solid rgba(255,146,0,0.25); border-radius: 16px;
    padding: 18px; margin-bottom: 20px;
}
.biz-id-row {
    background: rgba(0,0,0,0.25); border-radius: 8px;
    padding: 10px 14px; display: flex; align-items: center;
    justify-content: space-between; margin-top: 12px;
}
.invite-role-card {
    flex: 1; display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 12px; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s;
}
.invite-role-card.selected-card { border-color: var(--orange-accent); background: rgba(255,146,0,0.1); }
.book-biz-badge { position: absolute; top: 8px; left: 8px; z-index: 5; }

/* Profile avatar in header / member cards */
.user-avatar-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 0.75em; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ── FEATURE 1: PIN LOCK ── */
.pin-dot {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid #666; background: transparent;
    transition: background 0.15s, border-color 0.15s;
}
.pin-dot.filled { background: var(--orange-accent); border-color: var(--orange-accent); }
.pin-dot.error  { background: #ff5252; border-color: #ff5252; animation: pinShake 0.35s; }
@keyframes pinShake {
    0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 60%{transform:translateX(8px)}
}
.pin-key {
    width: 72px; height: 72px; border-radius: 50%; background: #2a2a2a;
    border: 1px solid #444; color: var(--text-primary); font-size: 1.5em; font-weight: 500;
    cursor: pointer; transition: background 0.15s, transform 0.1s; display:flex;align-items:center;justify-content:center;
}
.pin-key:active { background: #444; transform: scale(0.92); }
.pin-key-action { font-size: 0.9em; color: var(--text-secondary); }

/* ── FEATURE 3: RECURRING PILLS ── */
.recur-pill {
    padding: 6px 14px; border-radius: 20px; border: 1px solid #555;
    background: transparent; color: var(--text-secondary); font-size: 0.85em;
    cursor: pointer; transition: 0.2s;
}
.recur-pill.active { background: var(--orange-accent); color: #000; border-color: var(--orange-accent); font-weight: bold; }

/* ── FEATURE 4: BUDGET ALERT BADGE ── */
.budget-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 20px; font-size: 0.72em; font-weight: bold;
}
.budget-badge.warn  { background: rgba(241,196,15,0.18);  color: #f1c40f; }
.budget-badge.over  { background: rgba(231,76,60,0.18);   color: #e74c3c; }
.budget-badge.ok    { background: rgba(46,204,113,0.18);  color: #2ecc71; }

/* ── FEATURE 5: DASHBOARD ── */
.dash-stat-card {
    background: var(--input-bg); border-radius: 14px; padding: 16px;
    border: 1px solid var(--border-color); flex: 1; min-width: 0;
}
.dash-stat-card .stat-val { font-size: 1.3em; font-weight: bold; color: var(--orange-accent); }
.dash-stat-card .stat-lbl { font-size: 0.72em; color: var(--text-secondary); margin-top: 3px; }
.dash-activity-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-color);
    font-size: 0.88em;
}
.dash-budget-row { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.budget-bar-bg { background: #333; border-radius: 4px; height: 6px; margin-top: 6px; overflow: hidden; }
.budget-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }

/* ── FEATURE 7: CURRENCY CHIP ── */
.currency-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,146,0,0.12); color: var(--orange-accent);
    border-radius: 8px; padding: 2px 8px; font-size: 0.78em; font-weight: bold;
}

/* ── FEATURE 9: AUDIT LOG ── */
.audit-row {
    padding: 10px 0; border-bottom: 1px solid #2a2a2a;
    font-size: 0.82em; color: var(--text-secondary);
}
.audit-row .audit-action { color: var(--text-primary); font-weight: 500; }

/* ── FEATURE 10: ONBOARDING ── */
.ob-slide { text-align: center; animation: fadeIn 0.35s; }
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.ob-icon { font-size: 4em; margin-bottom: 20px; }
.ob-title { font-size: 1.5em; font-weight: bold; color: var(--text-primary); margin-bottom: 12px; }
.ob-desc  { font-size: 0.95em; color: var(--text-secondary); line-height: 1.6; }
.ob-dot   { width: 8px; height: 8px; border-radius: 50%; background: #444; transition: background 0.2s; }
.ob-dot.active { background: var(--orange-accent); width: 24px; }

/* Transaction note preview in row */
.t-note { font-size: 0.78em; color: var(--text-secondary); margin-top: 3px; font-style: italic;
          display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.t-receipt-thumb { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; cursor: pointer; border: 1px solid #444; }
.recurring-badge { display:inline-flex; align-items:center; gap:3px; background:rgba(52,152,219,0.15); 
                   color:#3498db; border-radius:8px; padding:2px 7px; font-size:0.72em; font-weight:bold; }
