/* /Components/Layout/GlobalSearch.razor.rz.scp.css */
/* Contenedor principal de búsqueda global */
.global-search-container[b-53ff26bvnq] {
    position: relative;
    width: 100%;
}

/* Wrapper del campo de entrada y spinner */
.search-box-wrapper[b-53ff26bvnq] {
    position: relative;
    width: 100%;
}

.search-icon[b-53ff26bvnq] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input[b-53ff26bvnq] {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.5rem 2.5rem 0.5rem 2.2rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.search-input:focus[b-53ff26bvnq] {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-input[b-53ff26bvnq]::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

/* Spinner de carga */
.search-spinner[b-53ff26bvnq] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-dot[b-53ff26bvnq] {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-b-53ff26bvnq 0.8s linear infinite;
}

@keyframes spin-b-53ff26bvnq {
    to { transform: rotate(360deg); }
}

/* Desplegable de resultados */
.search-dropdown-results[b-53ff26bvnq] {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-top: 0.6rem;
    max-height: 480px;
    overflow-y: auto;
    z-index: 2000;
    padding: 0.5rem 0;
    animation: fadeIn-b-53ff26bvnq 0.15s ease-out;
}

@keyframes fadeIn-b-53ff26bvnq {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Secciones dentro del buscador */
.search-section[b-53ff26bvnq] {
    padding-bottom: 0.5rem;
}

.search-section:not(:last-child)[b-53ff26bvnq] {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
}

.section-header[b-53ff26bvnq] {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    padding: 0.5rem 1rem 0.25rem 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.5px;
}

.section-header i[b-53ff26bvnq] {
    font-size: 0.85rem;
    color: #475569;
}

/* Elemento de lista individuales */
.search-item[b-53ff26bvnq] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    gap: 1rem;
}

.search-item:hover[b-53ff26bvnq] {
    background-color: #f8fafc;
    border-left-color: #6366f1;
}

.item-main[b-53ff26bvnq] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.item-title[b-53ff26bvnq] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.85rem;
}

.client-name[b-53ff26bvnq] {
    color: #1e293b;
}

.invoice-number[b-53ff26bvnq] {
    font-family: monospace;
    font-weight: 700;
    color: #4f46e5;
}

.item-subtitle[b-53ff26bvnq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
}

.info-tag[b-53ff26bvnq] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.info-tag i[b-53ff26bvnq] {
    font-size: 0.85rem;
    color: #94a3b8;
}

.notes-tag[b-53ff26bvnq] {
    color: #475569;
    font-style: italic;
    background-color: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amount-tag[b-53ff26bvnq] {
    font-weight: 600;
    color: #1e293b;
}

/* Badges de Estado */
.badge[b-53ff26bvnq] {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: capitalize;
}

.badge-success[b-53ff26bvnq] {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-warning[b-53ff26bvnq] {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge-danger[b-53ff26bvnq] {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-secondary[b-53ff26bvnq] {
    background-color: #f1f5f9;
    color: #475569;
}

/* Botones de acción rápida */
.item-actions[b-53ff26bvnq] {
    display: flex;
    align-items: center;
}

.action-btn-quick[b-53ff26bvnq] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn-quick i[b-53ff26bvnq] {
    font-size: 0.85rem;
    color: #64748b;
}

.action-btn-quick:hover[b-53ff26bvnq] {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Sin resultados */
.no-results[b-53ff26bvnq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    color: #64748b;
    gap: 0.5rem;
    text-align: center;
}

.no-results i[b-53ff26bvnq] {
    font-size: 2.2rem;
    color: #cbd5e1;
}

.no-results span[b-53ff26bvnq] {
    font-size: 0.85rem;
    font-weight: 500;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ===== Nuevo Dashboard Layout (Radzen) ===== */

/* Header */
.nirixsolution-header[b-gs2jhnd7o5] {
    background: linear-gradient(135deg, #5c4df0 0%, #3f2fd3 100%) !important;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-container[b-gs2jhnd7o5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
}

.header-left[b-gs2jhnd7o5] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left .rz-sidebar-toggle[b-gs2jhnd7o5] {
    color: white !important;
}

.header-left .rz-sidebar-toggle:hover[b-gs2jhnd7o5] {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.header-title[b-gs2jhnd7o5] {
    margin: 0;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-right[b-gs2jhnd7o5] {
    display: flex;
    align-items: center;
}

.user-info[b-gs2jhnd7o5] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 0.75rem;
}

.user-name[b-gs2jhnd7o5] {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-role[b-gs2jhnd7o5] {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.user-icon[b-gs2jhnd7o5] {
    color: white;
    font-size: 32px;
}

/* Sidebar */
.nirixsolution-sidebar[b-gs2jhnd7o5] {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.nirixsolution-sidebar .rz-panel-menu[b-gs2jhnd7o5] {
    border-right: none;
    padding-top: 0.5rem;
}

.sidebar-footer[b-gs2jhnd7o5] {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.logout-btn[b-gs2jhnd7o5] {
    border-radius: 8px !important;
}

/* Body */
.nirixsolution-body[b-gs2jhnd7o5] {
    background-color: #f8fafc;
}

.body-content[b-gs2jhnd7o5] {
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Toggle state */
.nirixsolution-layout-wrapper.sidebar-closed[b-gs2jhnd7o5]  .rz-layout {
    grid-template-columns: 0px 1fr !important;
}

.nirixsolution-layout-wrapper.sidebar-closed[b-gs2jhnd7o5]  .nirixsolution-sidebar {
    display: none !important;
    width: 0 !important;
}

/* Blazor Error UI */
#blazor-error-ui[b-gs2jhnd7o5] {
    color-scheme: light only;
    background: #fff8db;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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-gs2jhnd7o5] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ltrxl87mzu],
.components-reconnect-repeated-attempt-visible[b-ltrxl87mzu],
.components-reconnect-failed-visible[b-ltrxl87mzu],
.components-pause-visible[b-ltrxl87mzu],
.components-resume-failed-visible[b-ltrxl87mzu],
.components-rejoining-animation[b-ltrxl87mzu] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ltrxl87mzu],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ltrxl87mzu],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ltrxl87mzu],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ltrxl87mzu],
#components-reconnect-modal.components-reconnect-retrying[b-ltrxl87mzu],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ltrxl87mzu],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ltrxl87mzu],
#components-reconnect-modal.components-reconnect-failed[b-ltrxl87mzu],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ltrxl87mzu] {
    display: block;
}


#components-reconnect-modal[b-ltrxl87mzu] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-ltrxl87mzu 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-ltrxl87mzu 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-ltrxl87mzu 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-ltrxl87mzu]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-ltrxl87mzu 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ltrxl87mzu {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ltrxl87mzu {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ltrxl87mzu {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-ltrxl87mzu] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ltrxl87mzu] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-ltrxl87mzu] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-ltrxl87mzu] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-ltrxl87mzu] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-ltrxl87mzu] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-ltrxl87mzu] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-ltrxl87mzu 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-ltrxl87mzu] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-ltrxl87mzu {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Layout/TenantLayout.razor.rz.scp.css */
/* ===== Tenant Layout Custom CSS ===== */

/* Header */
.nirixsolution-header[b-6v25dl3gzu] {
    background: linear-gradient(135deg, #5c4df0 0%, #3f2fd3 100%) !important;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-container[b-6v25dl3gzu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 1.5rem;
}

.header-left[b-6v25dl3gzu] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left .rz-sidebar-toggle[b-6v25dl3gzu] {
    color: white !important;
}

.header-left .rz-sidebar-toggle:hover[b-6v25dl3gzu] {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.header-title[b-6v25dl3gzu] {
    margin: 0;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Buscador central */
.header-center[b-6v25dl3gzu] {
    flex: 1;
    max-width: 450px;
    margin: 0 2rem;
    display: flex;
    align-items: center;
}



/* Header Right Controles */
.header-right[b-6v25dl3gzu] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.action-btn[b-6v25dl3gzu] {
    border-radius: 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-icon-btn[b-6v25dl3gzu] {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 1.4rem;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon-btn:hover[b-6v25dl3gzu] {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Profile Menu Dropdown */
.profile-menu-container[b-6v25dl3gzu] {
    display: flex;
    align-items: center;
}

/* Profile Dropdown Toggle JS Class */
.profile-dropdown-menu.show-menu[b-6v25dl3gzu] {
    display: block !important;
}

.profile-menu-toggle:hover[b-6v25dl3gzu] {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item:hover[b-6v25dl3gzu] {
    background-color: #f1f5f9;
}

/* Menú desplegable flotante */
[b-6v25dl3gzu] .rz-profile-menu .rz-navigation-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    position: absolute !important;
    right: 0 !important;
}

[b-6v25dl3gzu] .rz-profile-menu .rz-navigation-menu .rz-navigation-item-link {
    color: #1e293b !important;
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
}

[b-6v25dl3gzu] .rz-profile-menu .rz-navigation-menu .rz-navigation-item-link:hover {
    background-color: #f1f5f9 !important;
}

/* Sidebar */
.nirixsolution-sidebar[b-6v25dl3gzu] {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.nirixsolution-sidebar .rz-panel-menu[b-6v25dl3gzu] {
    border-right: none;
    padding-top: 0.5rem;
}

/* Sidebar Toggle state */
.nirixsolution-layout-wrapper.sidebar-closed[b-6v25dl3gzu]  .rz-layout {
    grid-template-columns: 0px 1fr !important;
}

.nirixsolution-layout-wrapper.sidebar-closed[b-6v25dl3gzu]  .nirixsolution-sidebar {
    display: none !important;
    width: 0 !important;
}
