/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-hwh8wgr6hv] {
    --shell-bg: #f6f4ee;
    --shell-bg-alt: #f2efe7;
    --surface: #ffffff;
    --border: #e7e2d6;
    --text: #1b2130;
    --text-muted: #6d7280;
    --accent: #0f9d70;
    --accent-strong: #0b7a58;
    --accent-soft: rgba(15, 157, 112, 0.12);
    min-height: 100vh;
    display: flex;
    background: linear-gradient(180deg, #f8f6f0 0%, var(--shell-bg) 40%, var(--shell-bg-alt) 100%);
    color: var(--text);
}

.sidebar[b-hwh8wgr6hv] {
    flex: 0 0 272px;
    min-height: 100vh;
    background: #0d1321;
    color: #f8fafc;
    box-shadow: 14px 0 36px rgba(9, 14, 26, 0.12);
    transition: flex-basis 220ms ease;
    z-index: 20;
}

.page.sidebar-collapsed .sidebar[b-hwh8wgr6hv] {
    flex-basis: 84px;
}

.sidebar-overlay[b-hwh8wgr6hv] {
    display: none;
}

main[b-hwh8wgr6hv] {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-row[b-hwh8wgr6hv] {
    height: 4.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.45);
}

.topbar-spacer[b-hwh8wgr6hv] {
    flex: 1;
}

.mobile-menu-button[b-hwh8wgr6hv] {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: var(--accent-soft);
    color: var(--accent-strong);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

    .mobile-menu-button:hover[b-hwh8wgr6hv] {
        background: rgba(15, 157, 112, 0.2);
    }

    .mobile-menu-button:active[b-hwh8wgr6hv] {
        transform: scale(0.94);
    }

.logout-link[b-hwh8wgr6hv] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
    white-space: nowrap;
}

    .logout-link svg[b-hwh8wgr6hv] {
        flex: 0 0 auto;
    }

    .logout-link:hover[b-hwh8wgr6hv] {
        color: var(--accent-strong);
        border-color: rgba(15, 157, 112, 0.35);
        background: var(--accent-soft);
    }

    .logout-link:focus-visible[b-hwh8wgr6hv] {
        outline: none;
        box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
    }

.content[b-hwh8wgr6hv] {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

@media (max-width: 767.98px) {
    .page[b-hwh8wgr6hv] {
        display: block;
        background: var(--shell-bg);
    }

    .sidebar[b-hwh8wgr6hv] {
        position: fixed;
        inset: 0 auto 0 0;
        width: 272px;
        transform: translateX(0);
        transition: transform 220ms ease;
    }

    .page.sidebar-collapsed .sidebar[b-hwh8wgr6hv] {
        flex-basis: auto;
    }

    .sidebar:has(.nav-shell.is-collapsed)[b-hwh8wgr6hv] {
        transform: translateX(-100%);
    }

    .sidebar-overlay[b-hwh8wgr6hv] {
        display: block;
        position: fixed;
        inset: 0;
        width: 100%;
        border: 0;
        background: rgba(11, 16, 28, 0.45);
        backdrop-filter: blur(2px);
        z-index: 15;
    }

    .mobile-menu-button[b-hwh8wgr6hv] {
        display: inline-flex;
    }

    .top-row[b-hwh8wgr6hv] {
        height: 4rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .content[b-hwh8wgr6hv] {
        padding-top: 1.25rem;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* =========================================================
   Tokens de diseño — navy + verde esmeralda, contraste WCAG AA+
   ========================================================= */
.nav-shell[b-9yq5mn7h8l] {
    /* Superficies */
    --nav-bg: #0d1321;
    --nav-bg-elevated: #141b2c;
    --nav-bg-soft: rgba(255, 255, 255, 0.04);
    --nav-bg-hover: rgba(255, 255, 255, 0.065);
    --nav-border: rgba(255, 255, 255, 0.075);
    /* Texto con contraste mejorado */
    --nav-text: #c3cbdb;
    --nav-text-strong: #f7f9fc;
    --nav-text-muted: #838ea3;
    /* Acento único — verde esmeralda (finanzas / crecimiento) */
    --nav-accent: #14b686;
    --nav-accent-hover: #22cb99;
    --nav-accent-deep: #0b7a58;
    --nav-accent-soft: rgba(20, 182, 134, 0.16);
    /* Semántica */
    --nav-success: #34d399;
    --nav-success-glow: rgba(52, 211, 153, 0.22);
    /* Geometría y motion */
    --nav-radius: 0.8rem;
    --nav-ease: cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--nav-bg);
    color: var(--nav-text);
    transition: width 220ms var(--nav-ease);
    position: relative;
    font-family: inherit;
}

/* =========================================================
   Header
   ========================================================= */
.nav-header[b-9yq5mn7h8l] {
    min-height: 5.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--nav-border);
    position: relative;
}

.brand[b-9yq5mn7h8l] {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.6rem;
    padding: 0.15rem;
    transition: opacity 160ms var(--nav-ease);
}

    .brand:hover[b-9yq5mn7h8l] {
        opacity: 0.92;
    }

    .brand:focus-visible[b-9yq5mn7h8l],
    .sidebar-toggle:focus-visible[b-9yq5mn7h8l],
    .nav-link:focus-visible[b-9yq5mn7h8l],
    .nav-search:focus-visible[b-9yq5mn7h8l] {
        outline: none;
        box-shadow: 0 0 0 2px var(--nav-bg), 0 0 0 4px var(--nav-accent);
    }

.brand-mark[b-9yq5mn7h8l] {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--nav-radius);
    background: linear-gradient(135deg, #34d399, var(--nav-accent-deep));
    box-shadow: 0 8px 18px rgba(11, 122, 88, 0.32);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.brand-copy[b-9yq5mn7h8l] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}

    .brand-copy strong[b-9yq5mn7h8l] {
        font-size: 1rem;
        color: var(--nav-text-strong);
    }

    .brand-copy small[b-9yq5mn7h8l],
    .user-summary small[b-9yq5mn7h8l] {
        color: var(--nav-text-muted);
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }

/* Botón colapsar */
.sidebar-toggle[b-9yq5mn7h8l] {
    flex: 0 0 auto;
    margin-left: auto;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.6rem;
    background: var(--nav-bg-soft);
    color: #cbd5e1;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms var(--nav-ease), color 160ms var(--nav-ease), transform 220ms var(--nav-ease), border-color 160ms var(--nav-ease);
}

    .sidebar-toggle svg[b-9yq5mn7h8l] {
        display: block;
    }

    .sidebar-toggle:hover[b-9yq5mn7h8l] {
        background: var(--nav-accent-soft);
        border-color: rgba(52, 211, 153, 0.4);
        color: #ffffff;
    }

    .sidebar-toggle:active[b-9yq5mn7h8l] {
        transform: scale(0.94);
    }

/* =========================================================
   Área scrollable
   ========================================================= */
.nav-scrollable[b-9yq5mn7h8l] {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 0.9rem 1.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    mask-image: linear-gradient(180deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
}

    .nav-scrollable[b-9yq5mn7h8l]::-webkit-scrollbar {
        width: 6px;
    }

    .nav-scrollable[b-9yq5mn7h8l]::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-scrollable[b-9yq5mn7h8l]::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 999px;
    }

        .nav-scrollable[b-9yq5mn7h8l]::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.22);
        }

/* Búsqueda */
.nav-search[b-9yq5mn7h8l] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0.6rem 0.75rem;
    background: var(--nav-bg-soft);
    border: 1px solid var(--nav-border);
    border-radius: var(--nav-radius);
    color: var(--nav-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 160ms var(--nav-ease), border-color 160ms var(--nav-ease), color 160ms var(--nav-ease);
    font-family: inherit;
}

    .nav-search:hover[b-9yq5mn7h8l] {
        background: var(--nav-bg-hover);
        border-color: rgba(255, 255, 255, 0.14);
        color: var(--nav-text);
    }

.nav-search-icon[b-9yq5mn7h8l] {
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
}

.nav-search-label[b-9yq5mn7h8l] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-search-kbd[b-9yq5mn7h8l] {
    margin-left: auto;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.62rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--nav-text-muted);
    line-height: 1;
}

/* =========================================================
   Títulos de sección
   ========================================================= */
.nav-section-title[b-9yq5mn7h8l] {
    margin: 0 0 0.7rem 0.75rem;
    color: var(--nav-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* =========================================================
   Lista de enlaces — flex-direction ROW explícito
   ========================================================= */
.nav-list[b-9yq5mn7h8l] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link[b-9yq5mn7h8l] {
    position: relative;
    display: flex;
    flex-direction: row; /* fuerza icono y texto en línea */
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    min-height: 3.1rem;
    margin: 0.15rem 0;
    padding: 0.75rem 0.85rem;
    border-radius: var(--nav-radius);
    color: var(--nav-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 160ms var(--nav-ease), color 160ms var(--nav-ease), transform 160ms var(--nav-ease);
}

    /* Indicador lateral del link activo */
    .nav-link[b-9yq5mn7h8l]::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translate(-6px, -50%);
        width: 3px;
        height: 0;
        border-radius: 0 4px 4px 0;
        background: linear-gradient(180deg, #34d399, var(--nav-accent-deep));
        transition: height 200ms var(--nav-ease), transform 200ms var(--nav-ease);
    }

    .nav-link:hover[b-9yq5mn7h8l] {
        color: #ffffff;
        background: var(--nav-bg-hover);
        transform: translateX(2px);
    }

    .nav-link.active[b-9yq5mn7h8l] {
        color: #ffffff;
        background: linear-gradient(90deg, rgba(20, 182, 134, 0.95), rgba(11, 122, 88, 0.78));
        box-shadow: 0 8px 20px rgba(11, 122, 88, 0.28);
    }

        .nav-link.active[b-9yq5mn7h8l]::before {
            height: 60%;
            transform: translate(0, -50%);
        }

/* Icono: caja cuadrada consistente */
.nav-icon[b-9yq5mn7h8l] {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    color: #86efc0;
    line-height: 1;
}

    .nav-icon svg[b-9yq5mn7h8l] {
        display: block;
    }

.nav-link.active .nav-icon[b-9yq5mn7h8l] {
    color: #ffffff;
}

/* Texto: ocupa el resto, permite truncado */
.nav-label[b-9yq5mn7h8l] {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

/* Tooltip (solo en modo colapsado) */
.nav-tooltip[b-9yq5mn7h8l] {
    position: absolute;
    left: calc(100% + 0.65rem);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    background: #182135;
    color: #f8fafc;
    padding: 0.45rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms var(--nav-ease), transform 140ms var(--nav-ease);
    z-index: 30;
}

    .nav-tooltip[b-9yq5mn7h8l]::before {
        content: "";
        position: absolute;
        left: -4px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 8px;
        height: 8px;
        background: #182135;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

.nav-shell.is-collapsed .nav-link:hover .nav-tooltip[b-9yq5mn7h8l] {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* =========================================================
   Footer / usuario
   ========================================================= */
.nav-footer[b-9yq5mn7h8l] {
    padding: 1rem 1.1rem 1.25rem;
    border-top: 1px solid var(--nav-border);
}

.user-summary[b-9yq5mn7h8l] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem;
    border-radius: var(--nav-radius);
    background: var(--nav-bg-soft);
    transition: background 160ms var(--nav-ease);
}

    .user-summary:hover[b-9yq5mn7h8l] {
        background: var(--nav-bg-hover);
    }

.user-avatar[b-9yq5mn7h8l] {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.user-copy[b-9yq5mn7h8l] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-summary strong[b-9yq5mn7h8l] {
    display: block;
    color: var(--nav-text-strong);
    font-size: 0.8rem;
    white-space: nowrap;
}

.user-summary small[b-9yq5mn7h8l] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.status-dot[b-9yq5mn7h8l] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nav-success);
    box-shadow: 0 0 0 3px var(--nav-success-glow);
}

/* =========================================================
   Estado colapsado
   ========================================================= */
.nav-shell.is-collapsed .brand-copy[b-9yq5mn7h8l],
.nav-shell.is-collapsed .nav-section-title[b-9yq5mn7h8l],
.nav-shell.is-collapsed .nav-label[b-9yq5mn7h8l],
.nav-shell.is-collapsed .user-copy[b-9yq5mn7h8l],
.nav-shell.is-collapsed .nav-search-label[b-9yq5mn7h8l],
.nav-shell.is-collapsed .nav-search-kbd[b-9yq5mn7h8l] {
    display: none;
}

.nav-shell.is-collapsed .nav-header[b-9yq5mn7h8l] {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.nav-shell.is-collapsed .sidebar-toggle[b-9yq5mn7h8l] {
    position: absolute;
    top: 1.75rem;
    left: 3.75rem;
    transform: rotate(180deg);
}

    .nav-shell.is-collapsed .sidebar-toggle:active[b-9yq5mn7h8l] {
        transform: rotate(180deg) scale(0.94);
    }

.nav-shell.is-collapsed .nav-search[b-9yq5mn7h8l] {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.nav-shell.is-collapsed .nav-link[b-9yq5mn7h8l] {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

    .nav-shell.is-collapsed .nav-link:hover[b-9yq5mn7h8l] {
        transform: translateX(0);
    }

.nav-shell.is-collapsed .nav-footer[b-9yq5mn7h8l] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.nav-shell.is-collapsed .user-summary[b-9yq5mn7h8l] {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

/* =========================================================
   Accesibilidad: reducir movimiento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .nav-shell[b-9yq5mn7h8l],
    .sidebar-toggle[b-9yq5mn7h8l],
    .nav-link[b-9yq5mn7h8l],
    .nav-tooltip[b-9yq5mn7h8l],
    .brand[b-9yq5mn7h8l],
    .nav-search[b-9yq5mn7h8l] {
        transition: none !important;
    }
}
/* /Pages/Categorias/Categorias.razor.rz.scp.css */
.rz-data-grid[b-peisekvt9h] {
    --rz-grid-header-text-transform: none;
    --rz-grid-header-font-size: 20px; /* Set this value to a desired font size */
}
/* /Pages/Gastos/Gastos.razor.rz.scp.css */
/* /Shared/Loading1.razor.rz.scp.css */
.loading-box[b-yy7h7nm3by] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centra el cuadro */
    width: 250px;
    height: 150px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* al frente */
}
