/* _content/CRM.UI/Components/Layout/MainLayout.razor.rz.scp.css */
/* ===== Layout Architecture ===== */
/* Sidebar: fixed 260px | Content: workspace padding */

.main-content[b-8z52du7zwj] {
    margin-left: 260px;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--color-bg);
    position: relative;
    padding: calc(3.5rem + 0.75rem) 1.25rem 1rem;
    overflow-x: hidden;
    color: var(--color-text);
}

/* ===== Error UI ===== */
#blazor-error-ui[b-8z52du7zwj] {
    background: #991B1B;
    color: #FFFFFF;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    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-8z52du7zwj] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ================================================================== */
/*  TABLET & MOBILE (< 992px)                                          */
/* ================================================================== */
@media (max-width: 991.98px) {
    .main-content[b-8z52du7zwj] {
        margin-left: 0;
        padding: calc(3.5rem + 0.75rem) 1rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .main-content[b-8z52du7zwj] {
        margin-left: 0;
        padding: calc(3.5rem + 0.75rem) 0.75rem 1rem;
    }
}

/* Safe-area insets for notched phones */
@supports (padding: env(safe-area-inset-top)) {
    @media (max-width: 991.98px) {
        .main-content[b-8z52du7zwj] {
            padding-top: calc(4.5rem + env(safe-area-inset-top));
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
            padding-bottom: max(2rem, env(safe-area-inset-bottom));
        }
    }
}
/* _content/CRM.UI/Components/Layout/NavMenu.razor.rz.scp.css */
/* ===== Sidebar Inner Layout ===== */
.sidebar-inner[b-ltxpz8k5y8] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

.sidebar-top[b-ltxpz8k5y8] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== Brand ===== */
.sidebar-brand[b-ltxpz8k5y8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1.75rem;
    position: sticky;
    top: 0;
    background: var(--color-sidebar);
    z-index: 2;
}

.sidebar-brand-icon[b-ltxpz8k5y8] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0625rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.sidebar-brand-text[b-ltxpz8k5y8] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-brand-name[b-ltxpz8k5y8] {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.sidebar-brand-sub[b-ltxpz8k5y8] {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.6875rem;
    font-weight: 400;
}

/* ===== Navigation ===== */
.sidebar-nav[b-ltxpz8k5y8] {
    padding: 0 1rem 2rem;
}

.sidebar-divider[b-ltxpz8k5y8] {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0.875rem 0.75rem;
}

.sidebar-group-label[b-ltxpz8k5y8] {
    display: block;
    padding: 0.625rem 0.75rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.40);
}

.sidebar-link[b-ltxpz8k5y8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    margin: 3px 0;
    position: relative;
}

.sidebar-link i[b-ltxpz8k5y8] {
    font-size: 1.15rem;
    width: 1.35rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.95);
}

.sidebar-link:hover[b-ltxpz8k5y8] {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.sidebar-link:hover i[b-ltxpz8k5y8] {
    opacity: 1;
    color: #FFFFFF;
}

.sidebar-link.active[b-ltxpz8k5y8] {
    background-color: rgba(59, 130, 246, 0.25);
    color: #FFFFFF;
    font-weight: 600;
}

.sidebar-link.active i[b-ltxpz8k5y8] {
    opacity: 1;
    color: var(--color-primary);
}

/* ===== User Section (bottom) ===== */
/* Las reglas de .sidebar-bottom y del menú de usuario viven ahora en
   UserMenu.razor.css (componente interactivo). */

/* ===== Scrollbar ===== */
.sidebar-top[b-ltxpz8k5y8]::-webkit-scrollbar {
    width: 3px;
}

.sidebar-top[b-ltxpz8k5y8]::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-top[b-ltxpz8k5y8]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

/* ===== Mobile (< 768px) ===== */
@media (max-width: 767.98px) {
    .sidebar-brand[b-ltxpz8k5y8] {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .sidebar-nav[b-ltxpz8k5y8] {
        padding: 0 0.75rem 1.5rem;
    }

    .sidebar-link[b-ltxpz8k5y8] {
        padding: 0.625rem 0.75rem;
        min-height: 2.75rem;
    }

    .sidebar-group-label[b-ltxpz8k5y8] {
        padding: 0.75rem 0.75rem 0.375rem;
    }

    .sidebar-user[b-ltxpz8k5y8] {
        padding: 0.625rem;
        min-height: 3rem;
    }

    .sidebar-bottom[b-ltxpz8k5y8] {
        padding: 1rem calc(0.75rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-bottom));
    }

    .sidebar-top[b-ltxpz8k5y8]::-webkit-scrollbar {
        width: 4px;
    }
}
/* _content/CRM.UI/Components/Layout/SidebarDrawer.razor.rz.scp.css */
/* ===== Sidebar (fixed 260px) ===== */

.sidebar[b-1b8dxffnnw] {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-sidebar);
    z-index: 50;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-menu-btn[b-1b8dxffnnw] {
    display: none;
}

/* ===== Overlay (hidden by default) ===== */
.sidebar-overlay[b-1b8dxffnnw] {
    display: none;
}

/* ================================================================== */
/*  TABLET (768px – 991.98px)                                          */
/*  Sidebar visible as collapsible panel, content offset.              */
/* ================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar[b-1b8dxffnnw] {
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .sidebar.sidebar-open[b-1b8dxffnnw] {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .mobile-menu-btn[b-1b8dxffnnw] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-card);
        color: var(--color-text);
        cursor: pointer;
        font-size: 1.25rem;
        position: fixed;
        top: 0.875rem;
        left: 0.875rem;
        z-index: 40;
        box-shadow: var(--shadow-sm);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar-overlay[b-1b8dxffnnw] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 45;
        backdrop-filter: blur(2px);
        animation: fadeIn-b-1b8dxffnnw 0.2s ease;
    }
}

/* ================================================================== */
/*  MOBILE (< 768px)                                                    */
/*  Sidebar completely hidden. Drawer on demand. Full-width content.   */
/* ================================================================== */
@media (max-width: 767.98px) {
    .sidebar[b-1b8dxffnnw] {
        width: 80%;
        max-width: 320px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .sidebar.sidebar-open[b-1b8dxffnnw] {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .mobile-menu-btn[b-1b8dxffnnw] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-card);
        color: var(--color-text);
        cursor: pointer;
        font-size: 1.25rem;
        position: fixed;
        top: 0.625rem;
        left: 0.625rem;
        z-index: 40;
        box-shadow: var(--shadow-sm);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .sidebar-overlay[b-1b8dxffnnw] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 45;
        backdrop-filter: blur(2px);
        animation: fadeIn-b-1b8dxffnnw 0.2s ease;
    }
}

/* Safe-area insets for notched phones */
@supports (padding: env(safe-area-inset-top)) {
    @media (max-width: 991.98px) {
        .mobile-menu-btn[b-1b8dxffnnw] {
            top: calc(0.625rem + env(safe-area-inset-top));
            left: calc(0.625rem + env(safe-area-inset-left));
        }
    }
}

@keyframes fadeIn-b-1b8dxffnnw {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Desktop (>= 992px) ===== */
@media (min-width: 992px) {
    .sidebar[b-1b8dxffnnw] {
        transform: none;
    }
}
/* _content/CRM.UI/Components/Layout/TopBar.razor.rz.scp.css */
.topbar[b-nh3n6qdbjb] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    z-index: 40;
    box-shadow: var(--shadow-sm);
    transition: left 0.3s ease, background-color 0.2s ease;
}

@media (min-width: 992px) {
    .topbar[b-nh3n6qdbjb] {
        left: 260px;
    }
}

.topbar-container[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.25rem;
    gap: 0.75rem;
}

.topbar-toggle-btn[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.topbar-toggle-btn:hover[b-nh3n6qdbjb] {
    background: var(--color-border);
}

.topbar-brand[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.topbar-brand-icon[b-nh3n6qdbjb] {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-brand-icon img[b-nh3n6qdbjb] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== Context Bar (Empresa | Sucursal | Ubicación) ===== */
.topbar-context-bar[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.2rem 0.65rem;
    font-size: 0.8125rem;
    box-shadow: var(--shadow-sm);
    height: 36px;
    margin-left: 14px; /* Sidebar | 12-16 px | Context */
    white-space: nowrap;
    max-width: calc(100vw - 440px);
    overflow: hidden;
    line-height: 1;
}

@media (max-width: 1200px) {
    .topbar-context-bar[b-nh3n6qdbjb] {
        max-width: calc(100vw - 360px);
    }
}

@media (max-width: 991.98px) {
    .topbar-context-bar[b-nh3n6qdbjb] {
        margin-left: 0.5rem;
        max-width: calc(100vw - 260px);
    }
}

.topbar-context-segment[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    flex-shrink: 1;
}

.topbar-context-label[b-nh3n6qdbjb] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.topbar-context-sep[b-nh3n6qdbjb] {
    color: var(--color-border);
    margin: 0 0.35rem;
    user-select: none;
    font-weight: 300;
    opacity: 0.8;
    flex-shrink: 0;
}

.topbar-context-select[b-nh3n6qdbjb] {
    border: none;
    background: transparent;
    padding: 0.1rem 0.3rem;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    outline: none;
    transition: background-color 0.15s ease;
    max-width: 170px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .topbar-context-select[b-nh3n6qdbjb] {
        max-width: 110px;
    }
}

.topbar-context-select:focus[b-nh3n6qdbjb] {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.topbar-context-val[b-nh3n6qdbjb] {
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    display: inline-block;
}

@media (max-width: 1200px) {
    .topbar-context-val[b-nh3n6qdbjb] {
        max-width: 110px;
    }
}

.topbar-color-empresa[b-nh3n6qdbjb], .topbar-icon-empresa[b-nh3n6qdbjb] {
    color: var(--color-primary) !important;
}

.topbar-color-sucursal[b-nh3n6qdbjb], .topbar-icon-sucursal[b-nh3n6qdbjb] {
    color: var(--color-info) !important;
}

.topbar-color-taller[b-nh3n6qdbjb], .topbar-icon-taller[b-nh3n6qdbjb] {
    color: var(--color-warning) !important;
}

/* Mobile Context Button & Popover (< 768px) */
.topbar-mobile-context-wrap[b-nh3n6qdbjb] {
    margin-left: 0.35rem;
}

.topbar-mobile-context-btn[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 38px;
    padding: 0 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-input-bg);
    color: var(--color-text);
    font-size: 0.8125rem;
    cursor: pointer;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    min-height: 38px;
}

.topbar-mobile-context-name[b-nh3n6qdbjb] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.topbar-context-backdrop[b-nh3n6qdbjb] {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.topbar-mobile-context-panel[b-nh3n6qdbjb] {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 290px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 95;
    animation: fadeIn-b-nh3n6qdbjb 0.15s ease;
}

.topbar-mobile-context-header[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

/* ===== Right Actions (Buscar, Tema, Avisos) ===== */
.topbar-actions[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.topbar-action-btn[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 38px;
    min-width: 38px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

.topbar-action-btn:hover[b-nh3n6qdbjb] {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-card);
}

.topbar-kbd[b-nh3n6qdbjb] {
    font-size: 0.6875rem;
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.topbar-badge[b-nh3n6qdbjb] {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-danger);
    color: #FFFFFF;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px var(--color-card);
}

/* Notifications Dropdown Panel */
.topbar-notifications-dropdown[b-nh3n6qdbjb] {
    position: relative;
}

.topbar-notifications-backdrop[b-nh3n6qdbjb] {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.topbar-notifications-panel[b-nh3n6qdbjb] {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 95;
    overflow: hidden;
    animation: fadeIn-b-nh3n6qdbjb 0.15s ease;
}

.topbar-notifications-header[b-nh3n6qdbjb] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.topbar-notifications-all[b-nh3n6qdbjb] {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.topbar-notifications-body[b-nh3n6qdbjb] {
    max-height: 320px;
    overflow-y: auto;
}

.topbar-notifications-empty[b-nh3n6qdbjb] {
    padding: 2rem 1rem;
    text-align: center;
}

.topbar-notification-item[b-nh3n6qdbjb] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s ease;
}

.topbar-notification-item:last-child[b-nh3n6qdbjb] {
    border-bottom: none;
}

.topbar-notification-item:hover[b-nh3n6qdbjb] {
    background: rgba(59, 130, 246, 0.08);
}

.topbar-notification-icon[b-nh3n6qdbjb] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.topbar-notification-content[b-nh3n6qdbjb] {
    flex: 1;
    min-width: 0;
}

.topbar-notification-title[b-nh3n6qdbjb] {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.topbar-notification-sub[b-nh3n6qdbjb] {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes fadeIn-b-nh3n6qdbjb {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@supports (padding: env(safe-area-inset-top)) {
    .topbar[b-nh3n6qdbjb] {
        height: calc(3.5rem + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
    }
}
/* _content/CRM.UI/Components/Layout/UserMenu.razor.rz.scp.css */
/* ===== User Section (bottom) ===== */
.sidebar-bottom[b-y7b1xxq7zg] {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0.875rem;
    flex-shrink: 0;
    background: var(--color-sidebar);
}

.user-menu-trigger[b-y7b1xxq7zg] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sidebar-user[b-y7b1xxq7zg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.sidebar-user:hover[b-y7b1xxq7zg] {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-user:focus-visible[b-y7b1xxq7zg] {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.sidebar-user-avatar[b-y7b1xxq7zg] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info[b-y7b1xxq7zg] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.sidebar-user-name[b-y7b1xxq7zg] {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role[b-y7b1xxq7zg] {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-plan[b-y7b1xxq7zg] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2px;
    font-size: 0.6875rem;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-plan-badge[b-y7b1xxq7zg] {
    font-size: 0.5875rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 3px;
    padding: 0.05rem 0.3rem;
    line-height: 1.2;
    display: inline-block;
    flex-shrink: 0;
}

.sidebar-plan-link[b-y7b1xxq7zg] {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.sidebar-plan-link:hover[b-y7b1xxq7zg] {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ===== User Menu (dropdown) ===== */
.user-menu[b-y7b1xxq7zg] {
    position: relative;
}

.user-menu-chevron[b-y7b1xxq7zg] {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.user-menu.open .user-menu-chevron[b-y7b1xxq7zg] {
    transform: rotate(180deg);
}

.user-menu-backdrop[b-y7b1xxq7zg] {
    position: fixed;
    inset: 0;
    z-index: 3;
    border: none;
    background: transparent;
    cursor: default;
    padding: 0;
}

.user-menu-dropdown[b-y7b1xxq7zg] {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 4;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    padding: 0.375rem;
}

.user-menu-section + .user-menu-section[b-y7b1xxq7zg] {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.user-menu-label[b-y7b1xxq7zg] {
    display: block;
    padding: 0.4375rem 0.625rem 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.user-menu-item[b-y7b1xxq7zg] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 450;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.user-menu-item:hover[b-y7b1xxq7zg] {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.user-menu-item > i[b-y7b1xxq7zg] {
    font-size: 0.9375rem;
    width: 1.375rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
    color: #fff;
}

.user-menu-item.active[b-y7b1xxq7zg] {
    color: #fff;
    font-weight: 500;
}

.user-menu-flag[b-y7b1xxq7zg] {
    line-height: 1;
    font-size: 0.9375rem;
    width: 1.375rem;
    flex-shrink: 0;
}

.user-menu-check[b-y7b1xxq7zg] {
    margin-left: auto;
    color: var(--color-primary);
}

.user-menu-logout[b-y7b1xxq7zg] {
    color: #FCA5A5;
}

.user-menu-logout:hover[b-y7b1xxq7zg] {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

.user-menu-logout i[b-y7b1xxq7zg] {
    font-size: 0.9375rem;
    width: 1.375rem;
    text-align: center;
    flex-shrink: 0;
}

/* ===== User Menu Submenu (Idioma) ===== */
.user-menu-submenu-trigger[b-y7b1xxq7zg] {
    position: relative;
}

.user-menu-submenu-chevron[b-y7b1xxq7zg] {
    margin-left: auto;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.15s ease;
}

.user-menu-subpanel[b-y7b1xxq7zg] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-menu-submenu-back[b-y7b1xxq7zg] {
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.75);
}

.user-menu-submenu-back i[b-y7b1xxq7zg] {
    font-size: 0.9375rem;
    width: 1.375rem;
    text-align: center;
    flex-shrink: 0;
}

/* ===== Mobile (< 768px) ===== */
@media (max-width: 767.98px) {
    .sidebar-user[b-y7b1xxq7zg] {
        padding: 0.5rem;
        min-height: 3rem;
    }

    .sidebar-bottom[b-y7b1xxq7zg] {
        position: relative;
        z-index: 10;
        padding: 0.75rem calc(0.75rem + env(safe-area-inset-bottom)) calc(0.75rem + env(safe-area-inset-bottom));
    }

    .user-menu-dropdown[b-y7b1xxq7zg] {
        position: absolute;
        bottom: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        max-height: calc(100dvh - 140px);
        overflow-y: auto;
        z-index: 100;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    }

    .user-menu-item[b-y7b1xxq7zg] {
        min-height: 2.75rem;
        padding: 0.625rem 0.75rem;
    }
}
/* _content/CRM.UI/Components/Pages/Settings.razor.rz.scp.css */
.settings-language-options[b-2fwcev833m] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-language-option[b-2fwcev833m] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
    background: var(--color-card, #fff);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.875rem;
    color: var(--color-text, #1E293B);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.settings-language-option:hover[b-2fwcev833m] {
    border-color: #2563EB;
    background: rgba(37, 99, 235, 0.04);
}

.settings-language-option.active[b-2fwcev833m] {
    border-color: #2563EB;
    background: rgba(37, 99, 235, 0.08);
    font-weight: 600;
}

.settings-language-flag[b-2fwcev833m] {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.settings-language-name[b-2fwcev833m] {
    font-weight: 600;
}
/* _content/CRM.UI/Components/Shared/GlobalSearchModal.razor.rz.scp.css */
.search-modal-backdrop[b-7zbsu1hhmt] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1050;
    animation: fadeIn-b-7zbsu1hhmt 0.15s ease;
}

.search-modal-dialog[b-7zbsu1hhmt] {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 640px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1055;
    overflow: hidden;
    animation: slideDown-b-7zbsu1hhmt 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-header[b-7zbsu1hhmt] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-input-bg);
}

.search-icon[b-7zbsu1hhmt] {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.search-input[b-7zbsu1hhmt] {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 1.0625rem;
    outline: none;
    box-shadow: none;
}

.search-input[b-7zbsu1hhmt]::placeholder {
    color: var(--color-text-muted);
}

.search-close-btn[b-7zbsu1hhmt] {
    border: none;
    background: transparent;
    cursor: pointer;
}

.search-close-btn kbd[b-7zbsu1hhmt] {
    background: var(--color-card);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.6875rem;
    font-family: inherit;
}

.search-modal-body[b-7zbsu1hhmt] {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.75rem;
}

.search-loading[b-7zbsu1hhmt], .search-empty-hint[b-7zbsu1hhmt], .search-no-results[b-7zbsu1hhmt] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    color: var(--color-text-muted);
    text-align: center;
}

.search-empty-hint i[b-7zbsu1hhmt], .search-no-results i[b-7zbsu1hhmt] {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.search-group[b-7zbsu1hhmt] {
    margin-bottom: 0.875rem;
}

.search-group-title[b-7zbsu1hhmt] {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: 0.5rem 0.75rem 0.25rem;
}

.search-item[b-7zbsu1hhmt] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-item:hover[b-7zbsu1hhmt] {
    background: rgba(59, 130, 246, 0.12);
}

.search-item-icon[b-7zbsu1hhmt] {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-item-content[b-7zbsu1hhmt] {
    flex: 1;
    min-width: 0;
}

.search-item-title[b-7zbsu1hhmt] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-sub[b-7zbsu1hhmt] {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-arrow[b-7zbsu1hhmt] {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    opacity: 0.5;
}

@keyframes fadeIn-b-7zbsu1hhmt {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown-b-7zbsu1hhmt {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
/* _content/CRM.UI/Components/Shared/KanbanBoard.razor.rz.scp.css */
.kanban-container[b-qo1ae93ioc] {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}

.kanban-board[b-qo1ae93ioc] {
    display: flex;
    gap: 1rem;
    min-width: max-content;
    align-items: flex-start;
}

.kanban-column[b-qo1ae93ioc] {
    width: 290px;
    min-width: 290px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
    box-shadow: var(--shadow-sm);
}

.kanban-column-header[b-qo1ae93ioc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.kanban-column-indicator[b-qo1ae93ioc] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.kanban-column-title[b-qo1ae93ioc] {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.kanban-column-count[b-qo1ae93ioc] {
    background: var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.6875rem;
    border-radius: var(--radius-sm);
}

.kanban-column-body[b-qo1ae93ioc] {
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 120px;
}

.kanban-empty-column[b-qo1ae93ioc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.05);
}

.kanban-card[b-qo1ae93ioc] {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.kanban-card:hover[b-qo1ae93ioc] {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.kanban-column.kanban-drop-hover[b-qo1ae93ioc] {
    border-color: var(--color-primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.kanban-card-dragging[b-qo1ae93ioc] {
    opacity: 0.45;
    border: 2px dashed var(--color-primary);
}

.kanban-card-actions[b-qo1ae93ioc] {
    gap: 0.35rem;
}

.btn-xs[b-qo1ae93ioc] {
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.2;
    border-radius: var(--radius-sm, 4px);
}

/* _content/CRM.UI/Components/Shared/LanguageSelector.razor.rz.scp.css */
.language-selector[b-8dh88zin7k] {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.language-selector-current[b-8dh88zin7k] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
    border-radius: 0.5rem;
    background: var(--color-card, #fff);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text, #1E293B);
}

.language-flag[b-8dh88zin7k] {
    line-height: 1;
}

.language-chevron[b-8dh88zin7k] {
    font-size: 0.625rem;
    opacity: 0.6;
}

.language-options[b-8dh88zin7k] {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 11rem;
    background: var(--color-card, #fff);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0.3rem;
    z-index: 60;
}

.language-selector:hover .language-options[b-8dh88zin7k],
.language-selector:focus-within .language-options[b-8dh88zin7k] {
    display: block;
}

.language-option[b-8dh88zin7k] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-text, #1E293B);
    cursor: pointer;
    text-align: left;
}

.language-option:hover[b-8dh88zin7k] {
    background: rgba(37, 99, 235, 0.08);
}

.language-option.active[b-8dh88zin7k] {
    font-weight: 600;
}

.language-check[b-8dh88zin7k] {
    margin-left: auto;
    color: #2563EB;
}

@media (max-width: 480px) {
    .language-name[b-8dh88zin7k] {
        display: none;
    }

    .language-selector-current[b-8dh88zin7k] {
        padding: 0.3rem 0.5rem;
    }

    .language-options[b-8dh88zin7k] {
        right: 0;
        min-width: 10rem;
    }
}
/* _content/CRM.UI/Components/Shared/ProcessPath.razor.rz.scp.css */
.process-path-wrapper[b-swgmwdzhr7] {
    width: 100%;
}

.process-path-container[b-swgmwdzhr7] {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.process-path[b-swgmwdzhr7] {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: max-content;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.process-step[b-swgmwdzhr7] {
    flex: 1;
    min-width: 130px;
    position: relative;
    padding: 0.65rem 0.85rem 0.65rem 1.6rem;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    clip-path: polygon(calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 12px 50%, 0% 0%);
    margin-right: -8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.process-step:first-child[b-swgmwdzhr7] {
    clip-path: polygon(calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 0 50%, 0% 0%);
    padding-left: 1rem;
}

.process-step:last-child[b-swgmwdzhr7] {
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, 12px 50%, 0% 0%);
    margin-right: 0;
    padding-right: 1rem;
}

/* Step indicator circle */
.step-indicator[b-swgmwdzhr7] {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.08);
    color: inherit;
    flex-shrink: 0;
}

.step-title[b-swgmwdzhr7] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 1. Completed State */
.process-step.is-completed[b-swgmwdzhr7] {
    background-color: #059669;
    color: #ffffff;
}

.process-step.is-completed .step-indicator[b-swgmwdzhr7] {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 2. Active State */
.process-step.is-active[b-swgmwdzhr7] {
    background-color: #0284c7;
    color: #ffffff;
    font-weight: 600;
    z-index: 2;
}

.process-step.is-active .step-indicator[b-swgmwdzhr7] {
    background-color: #ffffff;
    color: #0284c7;
}

/* 3. Upcoming State */
.process-step.is-upcoming[b-swgmwdzhr7] {
    background-color: #e2e8f0;
    color: #64748b;
}

/* Clickable / Actionable transition */
.process-step.is-clickable[b-swgmwdzhr7] {
    cursor: pointer;
}

.process-step.is-clickable:hover[b-swgmwdzhr7] {
    background-color: #cbd5e1;
    color: #1e293b;
    filter: brightness(0.95);
}

.process-step.is-completed.is-clickable:hover[b-swgmwdzhr7] {
    background-color: #047857;
    color: #ffffff;
}

.process-step.is-upcoming.is-clickable:hover[b-swgmwdzhr7] {
    background-color: #bae6fd;
    color: #0369a1;
}

.terminal-alert[b-swgmwdzhr7] {
    border-radius: 6px;
}
