@import '_content/Blazored.Modal/Blazored.Modal.bundle.scp.css';
@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';
@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';

/* /Pages/Account/Ledger.razor.rz.scp.css */
/* ============================================================
   LEDGER PAGE – Scoped CSS
   Matches the ReportVault design system (--rv-* variables)
   ============================================================ */

/* ── Page Container ─────────────────────────────────────── */
.modern-page-container[b-wmtfe66gxt] {
    padding: 1rem 1.25rem;
    background: var(--rv-bg, #f5f7fb);
    min-height: 100%;
}

/* ── Page Header ────────────────────────────────────────── */
.page-header[b-wmtfe66gxt] {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 60%, #818cf8 100%);
    color: #fff;
    border-radius: var(--rv-radius, 10px) var(--rv-radius, 10px) 0 0;
    padding: 0.65rem 1.1rem;
}

.header-content[b-wmtfe66gxt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.header-left[b-wmtfe66gxt] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.header-title[b-wmtfe66gxt] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.header-title h1[b-wmtfe66gxt] {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-icon[b-wmtfe66gxt] {
    font-size: 1.25rem;
    opacity: 0.9;
    flex-shrink: 0;
}

/* ── Header Stats (right side) ──────────────────────────── */
.header-stats[b-wmtfe66gxt] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.stat-label[b-wmtfe66gxt] {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.stat-value[b-wmtfe66gxt] {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    padding: 0.18rem 0.75rem;
    white-space: nowrap;
}

.stat-separator[b-wmtfe66gxt] {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    font-weight: 300;
    user-select: none;
}

/* ── Icon Button ────────────────────────────────────────── */
.btn-icon[b-wmtfe66gxt] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 7px;
    font-size: 0.88rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: filter 0.15s, transform 0.15s;
}

.btn-icon:hover[b-wmtfe66gxt] {
    filter: brightness(1.18);
    transform: translateY(-1px);
}

/* ── Filter Section ─────────────────────────────────────── */
.filter-section[b-wmtfe66gxt] {
    background: #fff;
    border-bottom: 1px solid var(--rv-border, #e5e7eb);
    padding: 0.9rem 1.1rem 0.85rem;
}

.edit-form[b-wmtfe66gxt] {
    width: 100%;
}

.filter-grid[b-wmtfe66gxt] {
    display: grid;
    gap: 0.75rem;
}

.filter-group[b-wmtfe66gxt] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-label[b-wmtfe66gxt] {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--rv-text-muted, #6b7280);
    margin-bottom: 0.3rem;
}

.filter-control[b-wmtfe66gxt] {
    font-size: 0.83rem;
    border: 1px solid var(--rv-border, #e5e7eb);
    border-radius: 6px;
    color: var(--rv-text, #111827);
    background: #f8fafc;
    padding: 0.38rem 0.65rem;
    width: 100%;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.filter-control:focus[b-wmtfe66gxt] {
    outline: none;
    border-color: var(--rv-primary, #4f46e5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* ── Filter Buttons ─────────────────────────────────────── */
.btn-filter[b-wmtfe66gxt] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.15s, transform 0.15s;
}

.btn-filter:hover[b-wmtfe66gxt] {
    filter: brightness(0.88);
    transform: translateY(-1px);
}

.btn-filter.btn-success[b-wmtfe66gxt] {
    background: #10b981;
    color: #fff;
    border: 1.5px solid #10b981;
}

.btn-filter.btn-primary[b-wmtfe66gxt] {
    background: var(--rv-primary, #4f46e5);
    color: #fff;
    border: 1.5px solid var(--rv-primary, #4f46e5);
}

/* ── Loading Overlay ────────────────────────────────────── */
.loading-overlay[b-wmtfe66gxt] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: #fff;
    border-radius: 0 0 var(--rv-radius, 10px) var(--rv-radius, 10px);
}

.loading-content[b-wmtfe66gxt] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.spinner[b-wmtfe66gxt] {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(79, 70, 229, 0.15);
    border-top-color: var(--rv-primary, #4f46e5);
    border-radius: 50%;
    animation: ledger-spin-b-wmtfe66gxt 0.7s linear infinite;
}

@keyframes ledger-spin-b-wmtfe66gxt {
    to { transform: rotate(360deg); }
}

.loading-text[b-wmtfe66gxt] {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--rv-text-muted, #6b7280);
    letter-spacing: 0.3px;
}

/* ── Table Container ────────────────────────────────────── */
.table-container[b-wmtfe66gxt] {
    background: #fff;
    border-radius: 0 0 var(--rv-radius, 10px) var(--rv-radius, 10px);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.table-wrapper[b-wmtfe66gxt] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* When details modal is shown limit the table wrapper height to viewport and enable vertical scroll
   This prevents the page from growing beyond the viewport when month breakup details are displayed. */
.details-mode .table-wrapper[b-wmtfe66gxt] {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Modern Table ───────────────────────────────────────── */
.modern-table[b-wmtfe66gxt] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    color: var(--rv-text, #111827);
}

/* Use fixed layout so columns respect widths and shrink nicely on medium screens */
.modern-table[b-wmtfe66gxt] {
    table-layout: fixed;
}

.modern-table td[b-wmtfe66gxt],
.modern-table th[b-wmtfe66gxt] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-table thead tr[b-wmtfe66gxt] {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.modern-table thead th[b-wmtfe66gxt] {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
    border: none !important;
    position: sticky;
    top: 0;
    z-index: 2;
}

.modern-table tbody tr[b-wmtfe66gxt] {
    border-bottom: 1px solid var(--rv-border, #e5e7eb);
    transition: background 0.12s;
}

.modern-table tbody tr:last-child[b-wmtfe66gxt] {
    border-bottom: none;
}

.modern-table tbody tr:hover[b-wmtfe66gxt] {
    background: #f0f2ff;
}

.modern-table td[b-wmtfe66gxt] {
    padding: 0.52rem 0.85rem;
    vertical-align: middle;
}

/* ── Action Cell ────────────────────────────────────────── */
.action-cell[b-wmtfe66gxt] {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.5rem !important;
}

/* ── Action Button ──────────────────────────────────────── */
.btn-action[b-wmtfe66gxt] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.32rem 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.15s, transform 0.15s;
}

.btn-action:hover[b-wmtfe66gxt] {
    filter: brightness(0.88);
    transform: translateY(-1px);
}

.btn-action.btn-success[b-wmtfe66gxt] {
    background: #10b981;
    color: #fff;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .modern-page-container[b-wmtfe66gxt] {
        padding: 0.5rem;
    }

    .page-header[b-wmtfe66gxt] {
        border-radius: 8px 8px 0 0;
        padding: 0.55rem 0.75rem;
    }

    .header-content[b-wmtfe66gxt] {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-title h1[b-wmtfe66gxt] {
        font-size: 0.88rem;
    }

    .filter-grid[b-wmtfe66gxt] {
        grid-template-columns: 1fr !important;
    }

    .header-stats[b-wmtfe66gxt] {
        gap: 0.35rem;
    }

    .modern-table[b-wmtfe66gxt] {
        font-size: 0.77rem;
    }

    .modern-table thead th[b-wmtfe66gxt],
    .modern-table td[b-wmtfe66gxt] {
        padding: 0.42rem 0.5rem;
    }

    /* Convert table to stacked list on very small screens to avoid horizontal scrolling
       and to present details in readable form. */
    .modern-table thead[b-wmtfe66gxt] {
        display: none;
    }

    .modern-table[b-wmtfe66gxt], .modern-table tbody[b-wmtfe66gxt], .modern-table tr[b-wmtfe66gxt], .modern-table td[b-wmtfe66gxt] {
        display: block;
        width: 100%;
    }

    .modern-table tr[b-wmtfe66gxt] {
        margin-bottom: 0.55rem;
        border: 1px solid var(--rv-border, #e5e7eb);
        border-radius: 8px;
        padding: 0.45rem;
        background: #fff;
    }

    .modern-table td[b-wmtfe66gxt] {
        padding: 0.35rem 0.5rem;
        text-align: left;
        white-space: normal;
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
    }

    /* Add labels for each column using nth-child pseudo-elements so we don't need to change markup */
    .modern-table td:nth-child(1)[b-wmtfe66gxt]::before { content: "Month"; font-weight:700; color:var(--rv-text-muted,#6b7280); margin-right:0.45rem; }
    .modern-table td:nth-child(2)[b-wmtfe66gxt]::before { content: "Credit"; font-weight:700; color:var(--rv-text-muted,#6b7280); margin-right:0.45rem; }
    .modern-table td:nth-child(3)[b-wmtfe66gxt]::before { content: "Debit"; font-weight:700; color:var(--rv-text-muted,#6b7280); margin-right:0.45rem; }
    .modern-table td:nth-child(4)[b-wmtfe66gxt]::before { content: "Action"; font-weight:700; color:var(--rv-text-muted,#6b7280); margin-right:0.45rem; }

    .modern-table td[b-wmtfe66gxt]::before { flex: 0 0 36%; }
    .modern-table td > *[b-wmtfe66gxt] { flex: 1 1 auto; }
}

/* Medium screens: allow slightly smaller columns to prevent horizontal overflow */
@media (max-width: 991.98px) {
    .modern-table thead th:nth-child(1)[b-wmtfe66gxt] { width: 35%; }
    .modern-table thead th:nth-child(2)[b-wmtfe66gxt], .modern-table thead th:nth-child(3)[b-wmtfe66gxt] { width: 25%; }
    .modern-table thead th:nth-child(4)[b-wmtfe66gxt] { width: 15%; }
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-rpd8c5rs4b] {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sidebar[b-rpd8c5rs4b] {
    background-image: linear-gradient(180deg, #1a2744 0%, #1e2d4a 100%);
    z-index: 1000;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.top-row[b-rpd8c5rs4b] {
    background-image: linear-gradient(90deg, #1a2744 0%, #1e2d4a 100%);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    gap: 0.25rem;
}

main[b-rpd8c5rs4b] {
    flex: 1;
    min-width: 0;
    background-color: #f5f7fb;
}

    .top-row[b-rpd8c5rs4b]  a, .top-row .btn-link[b-rpd8c5rs4b] {
        white-space: nowrap;
        margin-left: 1rem;
    }

    .top-row a:first-child[b-rpd8c5rs4b] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.mobile-hamburger[b-rpd8c5rs4b] {
    padding: 0.25rem 0.6rem;
    background: transparent;
    border: none;
    display: none;
    order: -2;
    margin-left: 0.25rem;
}

.brand-mobile[b-rpd8c5rs4b] {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    order: -1;
    margin-right: auto;
    display: none;
}

.mobile-overlay[b-rpd8c5rs4b] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 640.98px) {
    .mobile-hamburger[b-rpd8c5rs4b],
    .brand-mobile[b-rpd8c5rs4b] {
        display: flex;
        align-items: center;
    }

    .sidebar[b-rpd8c5rs4b] {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 270px;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

        .sidebar.mobile-open[b-rpd8c5rs4b] {
            transform: translateX(0);
            box-shadow: 4px 0 24px rgba(0,0,0,0.35);
        }

    .top-row[b-rpd8c5rs4b] {
        justify-content: flex-start;
    }

    /* prevent body scroll when mobile nav is open */
    body:has(.mobile-overlay)[b-rpd8c5rs4b] {
        overflow: hidden;
    }
}

@media (min-width: 641px) {
    .page[b-rpd8c5rs4b] {
        flex-direction: row;
    }

    .sidebar[b-rpd8c5rs4b] {
        width: 190px;
        height: 100vh;
        position: sticky;
        top: 0;
        transition: width 0.22s ease;
        flex-shrink: 0;
    }

        .sidebar.slim[b-rpd8c5rs4b] {
            width: 100px;
        }

    .top-row[b-rpd8c5rs4b] {
        position: sticky;
        top: 0;
    }

    .top-row[b-rpd8c5rs4b], article[b-rpd8c5rs4b] {
        padding-left: 1rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.nav-header[b-327080or8u] {
    min-height: 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
}

.app-brand-text[b-327080or8u] {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.btn-close-nav[b-327080or8u] {
    background: transparent;
    border: none;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-close-nav:hover[b-327080or8u] {
        background: rgba(255,255,255,0.12);
    }

.nav-divider[b-327080or8u] {
    border-color: rgba(255,255,255,0.1);
    margin: 0;
}

.nav-scroll[b-327080or8u] {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 3.7rem);
    padding: 0.5rem 0;
}

.nav-item[b-327080or8u] {
    font-size: 0.92rem;
    user-select: none;
}

.nav-item[b-327080or8u]  .nav-link {
    color: rgba(255,255,255,0.78);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

    .nav-item[b-327080or8u]  .nav-link:hover {
        background: rgba(99,102,241,0.18);
        color: #fff;
    }

    .nav-item[b-327080or8u]  .nav-link.active {
        background: linear-gradient(90deg, #6366f1 0%, #06b6d4 100%);
        color: #fff;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(99,102,241,0.45);
    }

.nav-icon[b-327080or8u] {
    font-size: 1.1rem;
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
}

.nav-label[b-327080or8u] {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Always show nav content — mobile open/close is handled by the sidebar overlay */
.nav-scroll[b-327080or8u] {
    display: block !important;
}

/* Sub-menu flyout (desktop slim mode) */
.dropup-content[b-327080or8u] {
    display: none;
    position: absolute;
    background-color: #3a1e59;
    min-width: 170px;
    top: 0;
    left: 88px;
    z-index: 100;
    border-radius: 8px;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.3);
}

    .dropup-content a[b-327080or8u] {
        color: rgba(255,255,255,0.85);
        padding: 0.6rem 1rem;
        text-decoration: none;
        display: block;
        font-size: 0.88rem;
        transition: background 0.15s;
    }

        .dropup-content a:hover[b-327080or8u] {
            background: rgba(255,255,255,0.12);
            color: #fff;
        }

.dropup[b-327080or8u] {
    position: relative;
}

    .dropup:hover .dropup-content[b-327080or8u] {
        display: block;
    }.dropup:hover .dropup-content[b-327080or8u] {
    display: block;
}

.dropup:hover .bi-chevron-double-down[b-327080or8u] {
    display: none;
}

.dropup:hover .bi-chevron-double-right[b-327080or8u] {
    display: block;
}

/*------------------------Dropp for Setup menu --------------------------------*/

/*
.dropupSetting {
    position: relative;
}

.dropupSetting-content {
    display: none;
    position: absolute;
    background-color: #3a1e59;
    min-width: 160px;
    top: -50px;
    left: 88px;
    z-index: 2 !important;
    border-radius: 6px;
}

    .dropupSetting-content a {
        color: white;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropupSetting-content a:hover {
            background-color: #ccc;
        }

.bi-chevron-double-right {
    display: none;
}

.dropup:hover .dropup-content {
    display: block;
}

.dropup:hover .bi-chevron-double-down {
    display: none;
}

.dropup:hover .bi-chevron-double-right {
    display: block;
}*/
/* /Shared/_ToolTip.razor.rz.scp.css */
.tooltip-wrapper[b-7qj7aacp62] {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    cursor: pointer;
}

span[b-7qj7aacp62] {
    background-color: #080a4a;
    visibility: hidden;
    position: absolute;
    width: 120px;
    bottom: 100%;
    left: 105%;
    /*    top: -5px;*/
    /*    margin-left: -60px;*/
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    z-index: 1;
}

    span[b-7qj7aacp62]::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #555 transparent transparent transparent;
    }

.tooltip-wrapper:hover span[b-7qj7aacp62] {
    visibility: visible;
}
