/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout scoped styles - MudBlazor handles most layout */

#blazor-error-ui[b-ra5zugdur5] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-ra5zugdur5] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Pages/Accounts.razor.rz.scp.css */
/* ── Context bar ─────────────────────────────────────────────────── */
.context-bar[b-yxkmn1emum] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
/* /Components/Pages/Holdings.razor.rz.scp.css */
/* ── Context bar ─────────────────────────────────────────────────── */
.context-bar[b-e7wp1z1kl8] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* ── Ghost Date Button ──────────────────────────────────────────── */
.ghost-date-wrapper[b-e7wp1z1kl8] {
    flex: none;
    max-width: 190px;
    border-radius: 8px;
    padding: 2px 6px;
    transition: background 0.15s ease;
}

.ghost-date-wrapper:hover[b-e7wp1z1kl8] {
    background: rgba(0, 0, 0, 0.04);
}

/* Remove MudDatePicker underline for ghost look */
[b-e7wp1z1kl8] .ghost-date-wrapper .mud-input-underline::before,
[b-e7wp1z1kl8] .ghost-date-wrapper .mud-input-underline::after {
    border: none !important;
}

[b-e7wp1z1kl8] .ghost-date-wrapper .mud-input {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

[b-e7wp1z1kl8] .ghost-date-wrapper .mud-input-label {
    display: none;
}

/* ── Segmented Control (allocation toggle) ──────────────────────── */
.segment-control[b-e7wp1z1kl8] {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.segment-item[b-e7wp1z1kl8] {
    border: none;
    background: transparent;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.segment-item:hover[b-e7wp1z1kl8] {
    color: var(--mud-palette-text-primary);
}

.segment-item.active[b-e7wp1z1kl8] {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}
/* /Components/Pages/Transactions.razor.rz.scp.css */
/* ── Context bar ─────────────────────────────────────────────────── */
.context-bar[b-nqsuuowc16] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* ── Ghost Date Button ──────────────────────────────────────────── */
.ghost-date-wrapper[b-nqsuuowc16] {
    flex: none;
    max-width: 190px;
    border-radius: 8px;
    padding: 2px 6px;
    transition: background 0.15s ease;
}

.ghost-date-wrapper:hover[b-nqsuuowc16] {
    background: rgba(0, 0, 0, 0.04);
}

/* Remove MudDatePicker underline for ghost look */
[b-nqsuuowc16] .ghost-date-wrapper .mud-input-underline::before,
[b-nqsuuowc16] .ghost-date-wrapper .mud-input-underline::after {
    border: none !important;
}

[b-nqsuuowc16] .ghost-date-wrapper .mud-input {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

[b-nqsuuowc16] .ghost-date-wrapper .mud-input-label {
    display: none;
}

/* ── Date range separator ───────────────────────────────────────── */
.date-sep[b-nqsuuowc16] {
    color: var(--mud-palette-text-secondary);
    font-size: 0.85rem;
    flex: none;
}
/* /Components/Shared/GlobalFilterDrawer.razor.rz.scp.css */
/* ── Overlay ─────────────────────────────────────────────────────── */
.filter-overlay[b-aehrszs6sa] {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.filter-overlay.open[b-aehrszs6sa] {
    opacity: 1;
    pointer-events: auto;
}

/* ── Drawer panel ────────────────────────────────────────────────── */
.filter-drawer[b-aehrszs6sa] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1250;
    width: 380px;
    max-width: 92vw;
    background: var(--mud-palette-surface);
    border-left: 1px solid var(--mud-palette-lines-default);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-drawer.open[b-aehrszs6sa] {
    transform: translateX(0);
}

/* ── Header ──────────────────────────────────────────────────────── */
.drawer-header[b-aehrszs6sa] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex-shrink: 0;
}

/* ── Macro filters (top, fixed) ──────────────────────────────────── */
.macro-filters[b-aehrszs6sa] {
    flex-shrink: 0;
    padding: 12px 20px 4px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* ── Accounts panel (middle, flex-grow, scrollable) ──────────────── */
.accounts-panel[b-aehrszs6sa] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.accounts-search[b-aehrszs6sa] {
    flex-shrink: 0;
    padding: 12px 20px 8px;
}

.accounts-list[b-aehrszs6sa] {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 8px;
}

/* ── Table wrapper (rounded corners + contained overflow) ────────── */
.accounts-table-wrapper[b-aehrszs6sa] {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

/* ── Formal data-grid table ──────────────────────────────────────── */
.accounts-table[b-aehrszs6sa] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.accounts-table thead[b-aehrszs6sa] {
    position: sticky;
    top: 0;
    z-index: 1;
}

.accounts-table th[b-aehrszs6sa] {
    background: #f5f5f5;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.accounts-table td[b-aehrszs6sa] {
    padding: 7px 12px;
    border-bottom: 1px solid #eee;
}

/* Zebra striping */
.accounts-table tbody tr:nth-child(odd)[b-aehrszs6sa] {
    background: #fff;
}

.accounts-table tbody tr:nth-child(even)[b-aehrszs6sa] {
    background: #f8fafc;
}

/* Hover */
.accounts-table tbody tr[b-aehrszs6sa] {
    cursor: pointer;
    transition: background 0.12s ease;
    user-select: none;
}

.accounts-table tbody tr:hover[b-aehrszs6sa] {
    background: #edf2f7;
}

/* Selected — overrides zebra & hover */
.accounts-table tbody tr.selected[b-aehrszs6sa],
.accounts-table tbody tr.selected:hover[b-aehrszs6sa] {
    background: #eff6ff;
    color: var(--mud-palette-primary);
    font-weight: 500;
}

/* Cell typography */
.acct-num[b-aehrszs6sa] {
    font-family: 'Roboto Mono', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    width: 110px;
}

.acct-name[b-aehrszs6sa] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 0;
}

/* ── Security section (bottom, fixed) ────────────────────────────── */
.security-section[b-aehrszs6sa] {
    flex-shrink: 0;
    padding: 8px 20px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* ── Sections (shared) ───────────────────────────────────────────── */
.drawer-section[b-aehrszs6sa] {
    margin-bottom: 8px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.drawer-footer[b-aehrszs6sa] {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--mud-palette-lines-default);
    flex-shrink: 0;
}
