/* /Components/Layout/CourierBottomNav.razor.rz.scp.css */
/* ============================================================
   Bottom nav del motorizado.
   - Solo visible en mobile (< 900px). En desktop usa el drawer normal.
   - Fixed bottom, safe-area-inset para iOS.
   ============================================================ */
.courier-bottom-nav[b-zad1u3ua1n] {
    display: none;
}

@media (max-width: 899px) {
    .courier-bottom-nav[b-zad1u3ua1n] {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 -2px 10px rgba(36, 27, 51, 0.06);
        z-index: 1100;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .courier-bottom-nav-item[b-zad1u3ua1n] {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 10px 4px 12px;
        color: #6B7280;
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        min-height: 56px;
        transition: color 100ms ease, background-color 100ms ease;
    }

        .courier-bottom-nav-item:hover[b-zad1u3ua1n],
        .courier-bottom-nav-item:active[b-zad1u3ua1n] {
            background-color: #F8FAFC;
        }

        .courier-bottom-nav-item.is-active[b-zad1u3ua1n] {
            color: #E03A30;
        }

    .courier-bottom-nav-label[b-zad1u3ua1n] {
        line-height: 1;
        margin-top: 2px;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* =====================================================================
   MAIN LAYOUT — shell moderno (Linear/Vercel pattern)
   AppBar liviano + Drawer azul-plomo con user card sticky abajo.
   ===================================================================== */

/* ---------- APPBAR ---------- */
[b-3hnbkedlou] .app-bar {
    border-bottom: 1px solid #E2E8F0;
    background-color: #FFFFFF;
}

/* ---------- DRAWER (sidebar) ---------- */
[b-3hnbkedlou] .app-drawer {
    background-color: #241B33;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-shell[b-3hnbkedlou] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
}

/* ----- Brand arriba ----- */
.drawer-brand[b-3hnbkedlou] {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-height: 72px;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-brand-text[b-3hnbkedlou] {
    color: #FFFFFF;
    font-style: italic;
    font-weight: 700;
}

.drawer-brand-icon[b-3hnbkedlou] {
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

/* ----- Zona scroll del nav ----- */
.drawer-nav-scroll[b-3hnbkedlou] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem 0.5rem;
}

    .drawer-nav-scroll[b-3hnbkedlou]::-webkit-scrollbar {
        width: 6px;
    }

    .drawer-nav-scroll[b-3hnbkedlou]::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 3px;
    }

/* ----- Section labels ----- */
[b-3hnbkedlou] .nav-section-label {
    color: #6B6478;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 1rem 1rem 0.4rem 1rem;
    text-transform: uppercase;
}

/* ----- NavLinks: estado normal y activo ----- */
[b-3hnbkedlou] .mud-nav-link {
    color: #C7C2D2 !important;
    border-radius: 8px;
    margin: 2px 6px;
    padding-left: 14px !important;
    min-height: 40px;
    transition: background-color 120ms ease, color 120ms ease;
    position: relative;
}

    [b-3hnbkedlou] .mud-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.06) !important;
        color: #FFFFFF !important;
    }

    [b-3hnbkedlou] .mud-nav-link .mud-nav-link-icon {
        color: #8C8497 !important;
    }

    [b-3hnbkedlou] .mud-nav-link:hover .mud-nav-link-icon {
        color: #FFFFFF !important;
    }

    /* Active indicator: barra roja a la izquierda + fondo sutil + texto blanco */
    [b-3hnbkedlou] .mud-nav-link.active {
        background-color: rgba(224, 58, 48, 0.12) !important;
        color: #FFFFFF !important;
    }

        [b-3hnbkedlou] .mud-nav-link.active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 6px;
            bottom: 6px;
            width: 3px;
            background-color: #E03A30;
            border-radius: 0 3px 3px 0;
        }

        [b-3hnbkedlou] .mud-nav-link.active .mud-nav-link-icon {
            color: #E03A30 !important;
        }

/* ----- NavGroups (Pedidos, Rutas) ----- */
[b-3hnbkedlou] .mud-nav-group > .mud-nav-link {
    font-weight: 600;
}

[b-3hnbkedlou] .mud-nav-group .mud-collapse-container .mud-nav-link {
    padding-left: 38px !important;
    font-size: 0.875rem;
}

[b-3hnbkedlou] .mud-nav-group .mud-nav-link-expand-icon {
    color: #8C8497 !important;
}

/* ---------- USER CARD (sticky abajo) ---------- */
.drawer-user-card[b-3hnbkedlou] {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
}

.drawer-user-info[b-3hnbkedlou] {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem 0.75rem;
}

.drawer-user-text[b-3hnbkedlou] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    overflow: hidden;
}

.drawer-user-name[b-3hnbkedlou] {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-user-role[b-3hnbkedlou] {
    color: #9C95A8;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[b-3hnbkedlou] .drawer-logout.mud-button {
    color: #C7C2D2 !important;
    justify-content: flex-start;
    min-height: 40px;
    padding-left: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 120ms ease, color 120ms ease;
}

[b-3hnbkedlou] .drawer-logout .mud-icon-root {
    color: #C7C2D2 !important;
}

[b-3hnbkedlou] .drawer-logout.mud-button:hover {
    background-color: rgba(224, 58, 48, 0.18) !important;
    color: #FFFFFF !important;
}

[b-3hnbkedlou] .drawer-logout.mud-button:hover .mud-icon-root {
    color: #E03A30 !important;
}

/* ---------- MAIN CONTAINER ---------- */
.main-container[b-3hnbkedlou] {
    padding: 1.5rem 2rem 2rem;
}

/* En mobile, los Courier tienen bottom nav fija: dejamos espacio para que
   el ultimo elemento no quede tapado por la barra. */
@media (max-width: 899px) {
    .main-container-courier[b-3hnbkedlou] {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0)) !important;
    }
}

/* ---------- ERROR UI (sin cambios funcionales) ---------- */
#blazor-error-ui[b-3hnbkedlou] {
    color-scheme: light only;
    background: lightyellow;
    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-3hnbkedlou] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ---------- RESPONSIVE (preparado, móvil afinaremos después) ---------- */
@media (max-width: 600px) {
    .main-container[b-3hnbkedlou] {
        padding: 1rem;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
:host[b-xw6u6mxqqs] {
    display: block;
    padding: 0.75rem;
}

[b-xw6u6mxqqs] .mud-nav-link {
    border-radius: 6px;
    color: #F2F0F7 !important;
}

[b-xw6u6mxqqs] .mud-nav-link .mud-nav-link-text,
[b-xw6u6mxqqs] .mud-nav-link .mud-nav-link-icon,
[b-xw6u6mxqqs] .mud-nav-link .mud-icon-root,
[b-xw6u6mxqqs] .mud-nav-link svg,
[b-xw6u6mxqqs] .mud-nav-link svg path {
    color: #F2F0F7 !important;
    fill: currentColor !important;
}

[b-xw6u6mxqqs] .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF !important;
}

[b-xw6u6mxqqs] .mud-nav-link:hover .mud-nav-link-text,
[b-xw6u6mxqqs] .mud-nav-link:hover .mud-nav-link-icon,
[b-xw6u6mxqqs] .mud-nav-link:hover .mud-icon-root,
[b-xw6u6mxqqs] .mud-nav-link:hover svg,
[b-xw6u6mxqqs] .mud-nav-link:hover svg path {
    color: #FFFFFF !important;
    fill: currentColor !important;
}

[b-xw6u6mxqqs] .mud-nav-link.active {
    background-color: #E03A30;
    color: #FFFFFF !important;
}

[b-xw6u6mxqqs] .mud-nav-link.active .mud-nav-link-text,
[b-xw6u6mxqqs] .mud-nav-link.active .mud-nav-link-icon,
[b-xw6u6mxqqs] .mud-nav-link.active .mud-icon-root,
[b-xw6u6mxqqs] .mud-nav-link.active svg,
[b-xw6u6mxqqs] .mud-nav-link.active svg path {
    color: #FFFFFF !important;
    fill: currentColor !important;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-bkh65eu012],
.components-reconnect-repeated-attempt-visible[b-bkh65eu012],
.components-reconnect-failed-visible[b-bkh65eu012],
.components-pause-visible[b-bkh65eu012],
.components-resume-failed-visible[b-bkh65eu012],
.components-rejoining-animation[b-bkh65eu012] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-bkh65eu012],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-bkh65eu012],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-bkh65eu012],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-bkh65eu012],
#components-reconnect-modal.components-reconnect-retrying[b-bkh65eu012],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-bkh65eu012],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-bkh65eu012],
#components-reconnect-modal.components-reconnect-failed[b-bkh65eu012],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-bkh65eu012] {
    display: block;
}


#components-reconnect-modal[b-bkh65eu012] {
    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-bkh65eu012 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-bkh65eu012 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-bkh65eu012 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-bkh65eu012]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-bkh65eu012 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-bkh65eu012 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-bkh65eu012 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-bkh65eu012 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-bkh65eu012] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-bkh65eu012] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-bkh65eu012] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-bkh65eu012] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-bkh65eu012] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-bkh65eu012] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-bkh65eu012] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-bkh65eu012 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-bkh65eu012] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-bkh65eu012 {
    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/Pages/AsignarRepartidor.razor.rz.scp.css */
/* Estilos scoped propios de Asignar Repartidor.
   Header y acciones ahora viven en PageHeader (Components/Shared). */

[b-idn6a5n5aj] .grupo-distrito {
    overflow: hidden;
}

[b-idn6a5n5aj] .grupo-header {
    background-color: var(--mud-palette-background-grey);
    border-bottom: 1px solid var(--mud-palette-divider);
}
/* /Components/Pages/ClienteDetalle.razor.rz.scp.css */
/* Estilos scoped propios del detalle de Cliente.
   Header y acciones ahora viven en PageHeader (Components/Shared). */

.metric-card[b-sdzdew5bpn] {
    border-left: 5px solid #241B33;
    border-radius: 12px;
    min-height: 104px;
}

.metric-success[b-sdzdew5bpn] {
    border-left-color: #16A34A;
}

.metric-error[b-sdzdew5bpn] {
    border-left-color: #DC2626;
}

.metric-secondary[b-sdzdew5bpn] {
    border-left-color: #241B33;
}
/* /Components/Pages/Clientes.razor.rz.scp.css */
/* Estilos scoped propios de Clientes.
   Header y acciones ahora viven en PageHeader (Components/Shared). */
/* /Components/Pages/EditarPedido.razor.rz.scp.css */
/* Estilos scoped propios de Editar Pedido.
   Header y acciones ahora viven en PageHeader (Components/Shared). */

.form-panel[b-pkl9e1tp0f] {
    min-height: 100%;
}

.panel-title[b-pkl9e1tp0f] {
    color: #241B33;
    font-weight: 700;
}

.submit-actions[b-pkl9e1tp0f] {
    gap: 1rem;
}

@media (max-width: 600px) {
    .submit-actions[b-pkl9e1tp0f] {
        align-items: stretch !important;
        flex-direction: column !important;
    }
}
/* /Components/Pages/EmpleadoDetalle.razor.rz.scp.css */
/* Estilos scoped propios del detalle de Empleado.
   Header y acciones ahora viven en PageHeader (Components/Shared). */
/* /Components/Pages/Empleados.razor.rz.scp.css */
/* Estilos scoped propios de Empleados.
   Header y acciones ahora viven en PageHeader (Components/Shared). */
/* /Components/Pages/Home.razor.rz.scp.css */
/* Los estilos del panel (home-hero, kpi-card, courier-route-*, etc.) se
   movieron a wwwroot/app.css (global).
   Motivo: el CSS scoped de Blazor no penetra los componentes hijos de
   MudBlazor sin ::deep, así que aquí no se aplicaban (hero plano, botones
   desbordados en celular). En global sí aplican correctamente. */
/* /Components/Pages/NuevoPedido.razor.rz.scp.css */
/* Estilos scoped propios de Nuevo Pedido.
   Header y acciones ahora viven en PageHeader (Components/Shared). */

.form-panel[b-daz1fi32ka] {
    min-height: 100%;
}

.panel-title[b-daz1fi32ka],
.panel-header[b-daz1fi32ka] {
    color: #241B33;
    font-weight: 700;
}

.panel-header[b-daz1fi32ka] {
    gap: 1rem;
}

.submit-actions[b-daz1fi32ka] {
    gap: 1rem;
}

.package-row[b-daz1fi32ka] {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
}

.cliente-suggestions[b-daz1fi32ka] {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.5rem;
}

.cliente-suggestion[b-daz1fi32ka] {
    justify-content: flex-start;
    min-height: 52px;
    text-align: left;
}

.cliente-suggestion-content[b-daz1fi32ka] {
    width: 100%;
}

.package-actions[b-daz1fi32ka] {
    align-items: center;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .panel-header[b-daz1fi32ka],
    .submit-actions[b-daz1fi32ka] {
        align-items: stretch !important;
        background: #F8FAFC;
        bottom: 0;
        flex-direction: column !important;
        padding: 0.75rem 0;
        position: sticky;
        z-index: 5;
    }

    .package-actions[b-daz1fi32ka] {
        justify-content: flex-start;
    }
}
/* /Components/Pages/PedidoDetalle.razor.rz.scp.css */
/* Estilos scoped propios del detalle de pedido.
   Header y acciones ahora viven en PageHeader (Components/Shared). */
/* /Components/Pages/Pedidos.razor.rz.scp.css */
/* Estilos scoped propios de la pantalla de Pedidos.
   Header y acciones ahora viven en PageHeader (Components/Shared). */
/* /Components/Pages/TiendaDetalle.razor.rz.scp.css */
.detail-header[b-yti6592zyq],
.header-actions[b-yti6592zyq] {
    gap: 1rem;
}

@media (max-width: 600px) {
    .detail-header[b-yti6592zyq],
    .header-actions[b-yti6592zyq] {
        align-items: stretch !important;
        flex-direction: column !important;
    }
}
/* /Components/Pages/Tiendas.razor.rz.scp.css */
.page-actions[b-vp0flmwnue] {
    gap: 1rem;
}

@media (max-width: 600px) {
    .page-actions[b-vp0flmwnue] {
        align-items: stretch !important;
        flex-direction: column !important;
    }
}
/* /Components/Pages/UsuarioDetalle.razor.rz.scp.css */
/* Estilos scoped propios del detalle de Usuario.
   Header y acciones ahora viven en PageHeader (Components/Shared). */
/* /Components/Pages/Usuarios.razor.rz.scp.css */
/* Estilos scoped propios de Usuarios.
   Header y acciones ahora viven en PageHeader (Components/Shared). */
/* /Components/Shared/ModulePlaceholder.razor.rz.scp.css */
/* Estilos scoped propios del placeholder.
   Header y acciones ahora viven en PageHeader. */
/* /Components/Shared/PageHeader.razor.rz.scp.css */
.page-header-shell[b-mcjbf3zc7n] {
    margin-bottom: 1.5rem;
}

.page-header-row[b-mcjbf3zc7n] {
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header-titleblock[b-mcjbf3zc7n] {
    min-width: 0;
}

.page-header-eyebrow[b-mcjbf3zc7n] {
    align-items: center;
    color: #6B7280;
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 0.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[b-mcjbf3zc7n] .page-header-eyebrow-icon {
    color: #E03A30;
    font-size: 1rem;
}

.page-header-title[b-mcjbf3zc7n] {
    color: #241B33;
    font-weight: 700;
    line-height: 1.2;
}

.page-header-subtitle[b-mcjbf3zc7n] {
    color: #6B7280;
    margin-top: 2px;
    max-width: 720px;
}

.page-header-actions[b-mcjbf3zc7n] {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-header-divider[b-mcjbf3zc7n] {
    margin-top: 1.25rem;
    border-color: #E2E8F0;
}

@media (max-width: 600px) {
    .page-header-row[b-mcjbf3zc7n] {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .page-header-actions[b-mcjbf3zc7n] {
        width: 100%;
    }

    [b-mcjbf3zc7n] .page-header-actions .mud-button {
        flex: 1 1 auto;
    }
}
