/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Creado el: 2025-12-29 19:00:25 */
/* Actualizado: Layout con Sidebar */

/* ================================
   LAYOUT PRINCIPAL CON SIDEBAR
   ================================ */

.page[b-aadlt0u8uf] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* AppBar (Header) */
.app-bar[b-aadlt0u8uf] {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

[b-aadlt0u8uf] .custom-appbar.e-appbar {
    background: #1e3a5f;
    border-bottom: 2px solid #27AE60;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding: 0 20px;
    min-height: 64px;
}

/* Compact header styles – sticky para que no desaparezca al hacer scroll en móvil */
.compact-header[b-aadlt0u8uf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: linear-gradient(90deg, #1e3a5f, #16314f);
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1500;
    overflow: visible;
}
.compact-header .header-left[b-aadlt0u8uf] {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-toggle-sidebar[b-aadlt0u8uf] {
    background: transparent;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.brand-small[b-aadlt0u8uf] { font-weight: 700; color: #fff; }
.brand-accent[b-aadlt0u8uf] { color: #27AE60; }
.compact-header .user-section[b-aadlt0u8uf] { display: flex; align-items: center; gap: 12px; }
.compact-header .btn-logout[b-aadlt0u8uf] { background: transparent; border: none; color: white; cursor: pointer; }

.emisor-actions .btn-emisor[b-aadlt0u8uf] { background: transparent; border: none; color: white; cursor: pointer; font-size: 16px; }

.user-menu-root[b-aadlt0u8uf] { position: relative; }
.btn-user-menu[b-aadlt0u8uf] { background: transparent; border: none; color: white; cursor: pointer; font-size: 16px; }
.user-menu[b-aadlt0u8uf] { position: absolute; right: 0; top: 28px; background: rgba(30,58,95,0.98); border: 1px solid rgba(255,255,255,0.06); padding: 6px; border-radius: 6px; display: flex; flex-direction: column; min-width: 140px; z-index: 1600; }
.user-menu-item[b-aadlt0u8uf] { background: transparent; border: none; color: white; padding: 8px 10px; text-align: left; cursor: pointer; font-weight: 600; }
.user-menu-item:hover[b-aadlt0u8uf] { color: #ffeb3b; }

/* Make sure top nav below header doesn't overlap */
.top-nav[b-aadlt0u8uf] { margin-top: 6px; }

/* Asegurar que la barra de navegación superior quede debajo del AppBar y no recortada */
.top-nav[b-aadlt0u8uf] {
    position: relative;
    z-index: 1200;
    padding: 6px 20px;
}

/* Botón de toggle sidebar */
[b-aadlt0u8uf] .btn-toggle-sidebar.e-btn {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #ffffff;
    min-width: 44px;
    height: 44px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

[b-aadlt0u8uf] .btn-toggle-sidebar.e-btn:hover {
    background: #27AE60;
    border-color: #27AE60;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

[b-aadlt0u8uf] .btn-toggle-sidebar.e-btn:active {
    transform: scale(0.98);
}

[b-aadlt0u8uf] .btn-toggle-sidebar.e-btn .e-btn-icon {
    font-size: 20px;
    color: #ffffff;
}

/* Área de contenido principal */
.main-content-area[b-aadlt0u8uf] {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #f5f7fa;
    transition: margin-left 0.3s ease;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Cuando el sidebar está abierto en desktop */
@@media (min-width: 768px) {
    .main-content-area[b-aadlt0u8uf] {
        margin-left: 280px;
    }

    [b-aadlt0u8uf] #MainSidebar.e-sidebar.e-dock.e-close + * .main-content-area,
    [b-aadlt0u8uf] #MainSidebar.e-sidebar.e-close ~ .main-content-area {
        margin-left: 72px;
    }
}

/* Main content */
main[b-aadlt0u8uf] {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
}

.content[b-aadlt0u8uf] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    align-items: flex-start;
    width: 100%;
}

/* ================================
   USER SECTION EN APPBAR
   ================================ */

.user-section[b-aadlt0u8uf] {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.user-info[b-aadlt0u8uf] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-name[b-aadlt0u8uf] {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.emisor-info[b-aadlt0u8uf] {
    display: flex;
    gap: 8px;
    align-items: center;
}

.emisor-label[b-aadlt0u8uf] {
    color: #95a5a6;
    font-size: 12px;
    font-weight: 500;
}

.emisor-data[b-aadlt0u8uf] {
    color: #3498db;
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(52, 152, 219, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.super-badge[b-aadlt0u8uf] {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-logout[b-aadlt0u8uf] {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-logout:hover[b-aadlt0u8uf] {
    background-color: #e74c3c;
    border-color: #e74c3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* ================================
   FOOTER
   ================================ */

.main-footer[b-aadlt0u8uf] {
    width: 100%;
    border-top: 1px solid #dee2e6;
    background-color: #ffffff;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content[b-aadlt0u8uf] {
    text-align: center;
    width: 100%;
    color: #6c757d;
    font-size: 0.85rem;
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */

@@media (max-width: 767px) {
    .main-content-area[b-aadlt0u8uf] {
        margin-left: 0 !important;
    }

    [b-aadlt0u8uf] .custom-appbar.e-appbar {
        padding: 0 10px;
        min-height: 56px;
    }

    .user-section[b-aadlt0u8uf] {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

    .user-info[b-aadlt0u8uf] {
        align-items: flex-end;
        width: 100%;
    }

    .user-name[b-aadlt0u8uf] {
        font-size: 13px;
    }

    .emisor-info[b-aadlt0u8uf] {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .emisor-data[b-aadlt0u8uf] {
        font-size: 11px;
        padding: 3px 8px;
    }

    .super-badge[b-aadlt0u8uf] {
        padding: 3px 10px;
        font-size: 10px;
    }

    .btn-logout[b-aadlt0u8uf] {
        padding: 6px 12px;
        font-size: 12px;
    }

    .content[b-aadlt0u8uf] {
        padding: 1rem;
    }

    .footer-content[b-aadlt0u8uf] {
        font-size: 0.75rem;
        padding: 0 10px;
    }
}

/* ================================
   RESPONSIVE - TABLET
   ================================ */

@@media (min-width: 768px) and (max-width: 1024px) {
    .main-content-area[b-aadlt0u8uf] {
        margin-left: 280px;
    }

    [b-aadlt0u8uf] .custom-appbar.e-appbar {
        padding: 0 15px;
    }

    .user-section[b-aadlt0u8uf] {
        gap: 10px;
    }

    .user-name[b-aadlt0u8uf] {
        font-size: 13px;
    }

    .super-badge[b-aadlt0u8uf] {
        padding: 3px 10px;
        font-size: 10px;
    }

    .btn-logout[b-aadlt0u8uf] {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ================================
   ANIMACIONES
   ================================ */

.animate-fade-in[b-aadlt0u8uf] {
    animation: fadeIn 0.3s ease-in;
}

@@keyframes fadeIn {
    from[b-aadlt0u8uf] {
        opacity: 0;
        transform: translateY(10px);
    }
    to[b-aadlt0u8uf] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   SCROLLBAR PERSONALIZADO
   ================================ */

main[b-aadlt0u8uf]::-webkit-scrollbar {
    width: 8px;
}

main[b-aadlt0u8uf]::-webkit-scrollbar-track {
    background: #f1f1f1;
}

main[b-aadlt0u8uf]::-webkit-scrollbar-thumb {
    background: #27AE60;
    border-radius: 4px;
}

main[b-aadlt0u8uf]::-webkit-scrollbar-thumb:hover {
    background: #229954;
}

/* /Components/Layout/NavMenu.razor.rz.scp.css */
.top-bar[b-5q54wccush] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px;
    padding: 0 20px;
    background: #ffffff !important; /* Fondo blanco para que resalte el naranja */
    border-bottom: 3px solid #FF6B00; /* Acento Naranja Fox */
    color: #1e3a5f;
}

.left-section[b-5q54wccush] {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 30px;
}

.brand-container[b-5q54wccush] {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.sidebar-brand[b-5q54wccush] {
    font-size: 24px;
    font-weight: 600; /* Peso normal para el texto */
    color: #1e3a5f; /* Azul oscuro profesional */
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.brand-accent[b-5q54wccush] {
    color: #FF6B00; /* Naranja vibrante para las F */
    font-weight: 900; /* Las F se verán más robustas */
}

/* Icono del Zorro (Cuando pongas la imagen) */
.logo-icon[b-5q54wccush] {
    height: 32px;
    margin-right: 10px;
}

/* Navegación Desktop */
.top-nav-desktop[b-5q54wccush] {
    display: flex;
    gap: 5px;
    align-items: center;
}

[b-5q54wccush] .top-nav-btn.e-btn.e-flat {
    color: #1e3a5f !important;
    font-weight: 600 !important;
    font-size: 14px;
}

    [b-5q54wccush] .top-nav-btn.e-btn.e-flat:hover {
        color: #FF6B00 !important;
        background: rgba(255, 107, 0, 0.08) !important;
    }

.top-nav-wrapper[b-5q54wccush] {
    position: relative;
    z-index: 1100;
}

/* Dropdown Ventas */
.ventas-dropdown[b-5q54wccush] {
    position: relative;
}

.ventas-submenu[b-5q54wccush] {
    position: absolute;
    top: 45px;
    left: 0;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    min-width: 190px;
    z-index: 1200;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.ventas-item[b-5q54wccush] {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #1e3a5f;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
}

    .ventas-item:hover[b-5q54wccush] {
        background: #FF6B00;
        color: white;
    }

/* Móvil - Menú Cortina */
.mobile-menu-overlay[b-5q54wccush] {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #1e3a5f;
    z-index: 1050;
    border-bottom: 4px solid #FF6B00;
}

    .mobile-menu-overlay.show[b-5q54wccush] {
        display: block;
        animation: slideDown-b-5q54wccush 0.3s ease;
    }

.mobile-submenu[b-5q54wccush] {
    background: rgba(0,0,0,0.2);
    border-left: 4px solid #FF6B00;
    margin: 0;
    padding: 0;
}

.submenu-item-mobile[b-5q54wccush] {
    padding: 14px 25px 14px 40px;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    cursor: pointer;
    font-size: 14px;
}

    .submenu-item-mobile:hover[b-5q54wccush] {
        background: rgba(255,107,0,0.3);
        color: white;
    }

.rotated[b-5q54wccush] {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.menu-item-mobile[b-5q54wccush] {
    padding: 18px 25px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

[b-5q54wccush] .mobile-menu-btn.e-btn.e-flat {
    color: #1e3a5f !important;
    font-size: 24px !important;
}

@keyframes slideDown-b-5q54wccush {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .top-nav-desktop[b-5q54wccush] {
        display: none !important;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ye9d5h8rmp],
.components-reconnect-repeated-attempt-visible[b-ye9d5h8rmp],
.components-reconnect-failed-visible[b-ye9d5h8rmp],
.components-pause-visible[b-ye9d5h8rmp],
.components-resume-failed-visible[b-ye9d5h8rmp],
.components-rejoining-animation[b-ye9d5h8rmp] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ye9d5h8rmp],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ye9d5h8rmp],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ye9d5h8rmp],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ye9d5h8rmp],
#components-reconnect-modal.components-reconnect-retrying[b-ye9d5h8rmp],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ye9d5h8rmp],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ye9d5h8rmp],
#components-reconnect-modal.components-reconnect-failed[b-ye9d5h8rmp],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ye9d5h8rmp] {
    display: block;
}


#components-reconnect-modal[b-ye9d5h8rmp] {
    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-ye9d5h8rmp 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-ye9d5h8rmp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-ye9d5h8rmp 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-ye9d5h8rmp]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-ye9d5h8rmp 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ye9d5h8rmp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ye9d5h8rmp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ye9d5h8rmp {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-ye9d5h8rmp] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ye9d5h8rmp] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-ye9d5h8rmp] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-ye9d5h8rmp] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-ye9d5h8rmp] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-ye9d5h8rmp] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-ye9d5h8rmp] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-ye9d5h8rmp 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-ye9d5h8rmp] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-ye9d5h8rmp {
    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/ComplementosPago/Editor.razor.rz.scp.css */
.page-container[b-f4em848f21] {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header[b-f4em848f21] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h3[b-f4em848f21] {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.header-buttons[b-f4em848f21] {
    display: flex;
    gap: 12px;
}

.loading-container[b-f4em848f21] {
    text-align: center;
    padding: 40px;
    color: #666;
}

.form-container[b-f4em848f21] {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}

.form-section[b-f4em848f21] {
    margin-bottom: 32px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.section-title[b-f4em848f21] {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.form-row[b-f4em848f21] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group[b-f4em848f21] {
    display: flex;
    flex-direction: column;
}

.form-group label[b-f4em848f21] {
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}

.form-group small[b-f4em848f21] {
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.form-group.full-width[b-f4em848f21] {
    grid-column: 1 / -1;
}

.input-with-buttons[b-f4em848f21] {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-with-buttons .e-textbox[b-f4em848f21] {
    flex: 1;
}

.cliente-info[b-f4em848f21] {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.info-item[b-f4em848f21] {
    display: inline-block;
    margin-right: 20px;
}

/* Estilos para los grids anidados */
.e-grid[b-f4em848f21] {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.e-grid .e-headercell[b-f4em848f21] {
    background: #f0f0f0;
    font-weight: 600;
}

/* Filas de pagos en la grid */
.pagos-grid-row-completo[b-f4em848f21] {
    background: #eafbe7 !important;
}

.pagos-grid-row-parcial[b-f4em848f21] {
    background: #fffbe6 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header[b-f4em848f21] {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-row[b-f4em848f21] {
        grid-template-columns: 1fr;
    }
}
/* /Components/Pages/ComplementosPago/Index.razor.rz.scp.css */
.action-buttons[b-ppcic3ok8t] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
/* /Components/Pages/Cotizaciones/Index.razor.rz.scp.css */
.page-container[b-f8kzrmxnbm] {
    padding: 15px;
    width: 100%;
    max-width: 1600px;
    margin: 0;
    box-sizing: border-box;
}

.page-header[b-f8kzrmxnbm] {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h3[b-f8kzrmxnbm] {
    margin: 0;
    color: #1e3a5f;
    font-size: 1.5rem;
}

.header-buttons[b-f8kzrmxnbm] {
    display: flex;
    gap: 10px;
}

.loading-container[b-f8kzrmxnbm] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-size: 1.2rem;
    color: #666;
}

.action-buttons[b-f8kzrmxnbm] {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .page-header[b-f8kzrmxnbm] {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-buttons[b-f8kzrmxnbm] {
        width: 100%;
        justify-content: flex-start;
    }
}
/* /Components/Pages/Documentos/DocumentoEditor.razor.rz.scp.css */
.page-container[b-zc1g0iel1x] {
    padding: 15px;
    width: 100%;
    max-width: 1400px;
    margin: 0;
    box-sizing: border-box;
}

.page-header[b-zc1g0iel1x] {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h3[b-zc1g0iel1x] {
    margin: 0;
    color: #1e3a5f;
    font-size: 1.5rem;
}

.header-buttons[b-zc1g0iel1x] {
    display: flex;
    gap: 10px;
}

.loading-container[b-zc1g0iel1x] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-size: 1.2rem;
    color: #666;
}

.form-container[b-zc1g0iel1x] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section[b-zc1g0iel1x] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-title[b-zc1g0iel1x] {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e3a5f;
    color: #1e3a5f;
    font-size: 1.1rem;
    font-weight: 600;
}

.section-header-with-button[b-zc1g0iel1x] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header-with-button .section-title[b-zc1g0iel1x] {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.form-row[b-zc1g0iel1x] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
    gap: 15px;
    align-items: start;
}

.form-group[b-zc1g0iel1x] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group.full-width[b-zc1g0iel1x] {
    grid-column: 1 / -1;
    max-width: 750px;
}

.form-group label[b-zc1g0iel1x] {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.input-with-button[b-zc1g0iel1x] {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-with-button .e-input-group[b-zc1g0iel1x],
.input-with-button .e-numerictextbox[b-zc1g0iel1x] {
    flex: 1;
}

.input-with-button .e-btn[b-zc1g0iel1x] {
    flex-shrink: 0;
}

.input-with-buttons[b-zc1g0iel1x] {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-with-buttons .e-input-group[b-zc1g0iel1x],
.input-with-buttons .e-numerictextbox[b-zc1g0iel1x] {
    flex: 1;
    min-width: 120px;
}

.input-with-buttons .e-btn[b-zc1g0iel1x] {
    flex-shrink: 0;
    white-space: nowrap;
}

.cliente-info[b-zc1g0iel1x] {
    margin-top: 15px;
    padding: 15px;
    background: #f0f7ff;
    border: 1px solid #d0e4f7;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item[b-zc1g0iel1x] {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

.info-item strong[b-zc1g0iel1x] {
    color: #1e3a5f;
}

.partidas-section[b-zc1g0iel1x] {
    max-width: 100%;
}

.action-buttons[b-zc1g0iel1x] {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.totales-section[b-zc1g0iel1x] {
    max-width: 600px;
    margin-left: 0;
}

.impuestos-section[b-zc1g0iel1x] {
    max-width: 600px;
    margin-left: 0;
}

.impuestos-totales-container[b-zc1g0iel1x] {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.impuestos-section .checkbox-row[b-zc1g0iel1x] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.impuestos-section .checkbox-row input[type="checkbox"][b-zc1g0iel1x] {
    width: 16px;
    height: 16px;
}

.totales-grid[b-zc1g0iel1x] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.total-item[b-zc1g0iel1x] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.total-item label[b-zc1g0iel1x] {
    font-weight: 500;
    color: #555;
}

.total-value[b-zc1g0iel1x] {
    font-weight: 600;
    color: #1e3a5f;
    font-size: 1rem;
}

.total-final[b-zc1g0iel1x] {
    grid-column: 1 / -1;
    background: #1e3a5f;
    color: #fff;
    border: none;
}

.total-final label[b-zc1g0iel1x] {
    color: #fff;
    font-size: 1.1rem;
}

.total-final .total-value[b-zc1g0iel1x] {
    color: #fff;
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row[b-zc1g0iel1x] {
        grid-template-columns: 1fr;
    }

    .page-header[b-zc1g0iel1x] {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-buttons[b-zc1g0iel1x] {
        width: 100%;
        justify-content: flex-start;
    }

    .totales-grid[b-zc1g0iel1x] {
        grid-template-columns: 1fr;
    }

    .total-final[b-zc1g0iel1x] {
        grid-column: 1;
    }
}

/* Lightweight toast styles */
.app-toasts[b-zc1g0iel1x] { position: fixed; right: 12px; bottom: 20px; z-index: 4000; display:flex; flex-direction:column; gap:8px; }
.app-toast[b-zc1g0iel1x] { background: rgba(30,58,95,0.95); color: white; padding: 10px 14px; border-radius: 8px; min-width: 200px; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.app-toast .toast-title[b-zc1g0iel1x] { font-weight:700; margin-bottom:4px; font-size:0.95rem; }
.app-toast .toast-content[b-zc1g0iel1x] { font-size:0.9rem; opacity:0.95; }
/* /Components/Pages/Facturas/Index.razor.rz.scp.css */
/* Botones optimizados para el dedo (Touch Targets) */
.btn-touch-friendly[b-20uu5anp9z] {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 2px !important;
}

    /* Iconos un poco más grandes para que se vean mejor */
    .btn-touch-friendly .e-icons[b-20uu5anp9z] {
        font-size: 1.2rem !important;
    }

.action-buttons[b-20uu5anp9z] {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Acción: botones uniformes, fondo sólido y accesibles al tacto */
.action-btn[b-20uu5anp9z] {
    background: #0f172a !important; /* fondo oscuro uniforme */
    color: #fff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 10px rgba(15,23,42,0.08);
}
.action-btn .e-icons[b-20uu5anp9z] { font-size: 1.05rem !important; }
.action-btn.danger[b-20uu5anp9z] { background: #b91c1c !important; /* rojo para acciones destructivas */ }

@media (max-width: 768px) {
    .action-btn[b-20uu5anp9z] { padding: 10px 14px !important; border-radius: 10px !important; min-width: 48px !important; min-height: 48px !important; }
}

@media (max-width: 768px) {
    /* En móviles, los botones se apilan 2x2 con flex-wrap */
    .mobile-touch-stack[b-20uu5anp9z] {
        gap: 6px;
        padding: 4px 0;
    }

    .btn-touch-friendly[b-20uu5anp9z] {
        min-width: 38px !important;
        min-height: 38px !important;
    }
}

/* Overlay de proceso (timbrado / descarga) */
.pdf-overlay[b-20uu5anp9z] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.pdf-overlay-content[b-20uu5anp9z] {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.page-container[b-20uu5anp9z] {
    padding: 15px;
    width: 100%;
    max-width: 1600px;
    margin: 0;
    box-sizing: border-box;
}

.page-header[b-20uu5anp9z] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FF6B00; /* Acento Naranja Fox */
}

.header-title-group[b-20uu5anp9z] {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header h3[b-20uu5anp9z] {
    margin: 0;
    color: #1e3a5f;
    font-size: 1.5rem;
    font-weight: 700;
}

.badge-emisor[b-20uu5anp9z] {
    background: #f1f5f9;
    color: #1e3a5f;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #cbd5e0;
    font-weight: 600;
}

/* Forzar que las celdas del Grid no corten el texto */
[b-20uu5anp9z] .e-grid .e-rowcell {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    padding: 12px 8px !important;
}

[b-20uu5anp9z] .e-grid .e-headercell {
    background-color: #f8fafc !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
}

/* (Regla duplicada eliminada – ya definida arriba con gap: 8px) */

/* Asegurar que los botones de acción reciban toques en móvil */
[b-20uu5anp9z] .e-grid .e-rowcell .action-buttons {
    pointer-events: auto;
    touch-action: auto;
}

/* Colores de botones */
[b-20uu5anp9z] .e-success {
    background-color: #FF6B00 !important; /* Botón Principal Naranja */
    border-color: #e65100 !important;
}

/* Estilo del Spinner con color corporativo */
.pdf-spinner[b-20uu5anp9z] {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 107, 0, 0.1);
    border-top-color: #FF6B00;
    border-radius: 50%;
    animation: pdf-spin-b-20uu5anp9z 0.7s linear infinite;
}

@keyframes pdf-spin-b-20uu5anp9z {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .page-header[b-20uu5anp9z] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-title-group[b-20uu5anp9z] {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons[b-20uu5anp9z] {
        flex-direction: row; /* Mantener en línea si son iconos */
    }
}

/* Asegurarse de que los botones dentro de las celdas reciban eventos táctiles.
   No deshabilitamos pointer-events en toda la celda porque puede bloquear
   otros manejadores y causar comportamientos extraños en móviles. */
[b-20uu5anp9z] .e-grid .e-rowcell .action-buttons {
    pointer-events: auto;
    touch-action: manipulation;
}

/* Asegurar que el header del listado esté por encima de overlays */
.page-header[b-20uu5anp9z] {
    position: relative;
    z-index: 2500;
}

/* Indicadores de envío (pequeños puntos junto al botón) */
.send-indicator[b-20uu5anp9z] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}
.send-indicator.sending[b-20uu5anp9z] { background: #f59e0b; /* amber */; box-shadow: 0 0 6px rgba(245,158,11,0.6);} 
.send-indicator.sent[b-20uu5anp9z] { background: #10b981; /* emerald */; box-shadow: 0 0 6px rgba(16,185,129,0.6);} 
.send-indicator.error[b-20uu5anp9z] { background: #ef4444; /* red-500 */; box-shadow: 0 0 6px rgba(239,68,68,0.6);} 

@media (max-width: 480px) {
    .send-indicator[b-20uu5anp9z] { width: 10px; height: 10px; margin-left:4px; }
}

/* Lightweight toast styles */
.app-toasts[b-20uu5anp9z] { position: fixed; right: 12px; bottom: 20px; z-index: 4000; display:flex; flex-direction:column; gap:8px; }
.app-toast[b-20uu5anp9z] { background: rgba(30,58,95,0.95); color: white; padding: 10px 14px; border-radius: 8px; min-width: 200px; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.app-toast .toast-title[b-20uu5anp9z] { font-weight:700; margin-bottom:4px; font-size:0.95rem; }
.app-toast .toast-content[b-20uu5anp9z] { font-size:0.9rem; opacity:0.95; }

.readonly-field[b-20uu5anp9z] { opacity: 0.6; }


@media (max-width: 480px) { .app-toasts[b-20uu5anp9z] { right: 8px; left: 8px; bottom: 12px; } .app-toast[b-20uu5anp9z] { min-width: auto; } }
/* /Components/Pages/Remisiones/Index.razor.rz.scp.css */
.page-container[b-zlbx6ab4it] {
    padding: 15px;
    width: 100%;
    max-width: 1600px;
    margin: 0;
    box-sizing: border-box;
}

.page-header[b-zlbx6ab4it] {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h3[b-zlbx6ab4it] {
    margin: 0;
    color: #1e3a5f;
    font-size: 1.5rem;
}

.header-buttons[b-zlbx6ab4it] {
    display: flex;
    gap: 10px;
}

.loading-container[b-zlbx6ab4it] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-size: 1.2rem;
    color: #666;
}

.action-buttons[b-zlbx6ab4it] {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .page-header[b-zlbx6ab4it] {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-buttons[b-zlbx6ab4it] {
        width: 100%;
        justify-content: flex-start;
    }
}
/* /Components/Shared/ClienteSelectorModal.razor.rz.scp.css */
.alert[b-stuuh3fctb] {
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
}

.alert-danger[b-stuuh3fctb] {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

[b-stuuh3fctb] .e-dialog .e-dlg-header-content {
    background-color: #1e3a5f;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

[b-stuuh3fctb] .e-dialog .e-dlg-header {
    font-size: 18px;
    font-weight: 600;
}

[b-stuuh3fctb] .e-dialog .e-dlg-content {
    padding: 20px;
}

[b-stuuh3fctb] .e-dialog .e-footer-content {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

[b-stuuh3fctb] .e-dialog {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
/* /Components/Shared/DocumentoListPage.razor.rz.scp.css */
/* Contenedor de botones de acción en el grid */
.action-buttons[b-17h04swppc] {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

/* Botón icono uniforme para grid de facturas */
.action-btn-icon[b-17h04swppc] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 6px !important;
    border: none !important;
    background: #0ea5e9 !important;   /* sky-500: azul cielo moderno */
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    line-height: 1 !important;
}

.action-btn-icon:hover[b-17h04swppc] {
    background: #0284c7 !important;   /* sky-600 */
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(2,132,199,0.35);
}

.action-btn-icon .e-icons[b-17h04swppc],
.action-btn-icon span.e-icons[b-17h04swppc],
.action-btn-icon .e-btn-icon[b-17h04swppc] {
    font-size: 0.92rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* Timbrar: verde esmeralda */
.action-btn-icon.stamp[b-17h04swppc]               { background: #059669 !important; }
.action-btn-icon.stamp:hover[b-17h04swppc]         { background: #047857 !important; box-shadow: 0 3px 8px rgba(5,150,105,0.35); }

/* Eliminar: rojo */
.action-btn-icon.danger[b-17h04swppc]              { background: #e11d48 !important; }
.action-btn-icon.danger:hover[b-17h04swppc]        { background: #be123c !important; box-shadow: 0 3px 8px rgba(225,29,72,0.35); }

/* Cancelar: ámbar */
.action-btn-icon.warning[b-17h04swppc]             { background: #d97706 !important; }
.action-btn-icon.warning:hover[b-17h04swppc]       { background: #b45309 !important; box-shadow: 0 3px 8px rgba(217,119,6,0.35); }

.action-btn-icon.danger .e-icons[b-17h04swppc],
.action-btn-icon.danger .e-btn-icon[b-17h04swppc],
.action-btn-icon.warning .e-icons[b-17h04swppc],
.action-btn-icon.warning .e-btn-icon[b-17h04swppc],
.action-btn-icon.stamp .e-icons[b-17h04swppc],
.action-btn-icon.stamp .e-btn-icon[b-17h04swppc]   { color: #fff !important; opacity: 1 !important; }
.action-btn-icon.warning .e-icons[b-17h04swppc]     { color: #fff !important; opacity: 1 !important; }


/* Overlay de proceso (timbrado / descarga) */
.pdf-overlay[b-17h04swppc] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.pdf-overlay-content[b-17h04swppc] {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.page-container[b-17h04swppc] {
    padding: 15px;
    width: 100%;
    max-width: 1600px;
    margin: 0;
    box-sizing: border-box;
}

.page-header[b-17h04swppc] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FF6B00; /* Acento Naranja Fox */
}

.header-title-group[b-17h04swppc] {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header h3[b-17h04swppc] {
    margin: 0;
    color: #1e3a5f;
    font-size: 1.5rem;
    font-weight: 700;
}

.badge-emisor[b-17h04swppc] {
    background: #f1f5f9;
    color: #1e3a5f;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #cbd5e0;
    font-weight: 600;
}

/* Forzar que las celdas del Grid no corten el texto */
[b-17h04swppc] .e-grid .e-rowcell {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    padding: 12px 8px !important;
}

[b-17h04swppc] .e-grid .e-headercell {
    background-color: #f8fafc !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
}

/* Asegurar que los botones de acción reciban toques en móvil */
[b-17h04swppc] .e-grid .e-rowcell .action-buttons {
    pointer-events: auto;
    touch-action: auto;
}

/* Colores de botones */
[b-17h04swppc] .e-success {
    background-color: #FF6B00 !important; /* Botón Principal Naranja */
    border-color: #e65100 !important;
}

/* Estilo del Spinner con color corporativo */
.pdf-spinner[b-17h04swppc] {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 107, 0, 0.1);
    border-top-color: #FF6B00;
    border-radius: 50%;
    animation: pdf-spin-b-17h04swppc 0.7s linear infinite;
}

@keyframes pdf-spin-b-17h04swppc {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .page-header[b-17h04swppc] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-title-group[b-17h04swppc] {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons[b-17h04swppc] {
        flex-direction: row; /* Mantener en línea si son iconos */
    }
}

/* Asegurarse de que los botones dentro de las celdas reciban eventos táctiles. */
[b-17h04swppc] .e-grid .e-rowcell .action-buttons {
    pointer-events: auto;
    touch-action: manipulation;
}

/* Asegurar que el header del listado esté por encima de overlays */
.page-header[b-17h04swppc] {
    position: relative;
    z-index: 2500;
}

/* Indicadores de envío (pequeños puntos junto al botón) */
.send-indicator[b-17h04swppc] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}
.send-indicator.sending[b-17h04swppc] { background: #f59e0b; /* amber */; box-shadow: 0 0 6px rgba(245,158,11,0.6);} 
.send-indicator.sent[b-17h04swppc] { background: #10b981; /* emerald */; box-shadow: 0 0 6px rgba(16,185,129,0.6);} 
.send-indicator.error[b-17h04swppc] { background: #ef4444; /* red-500 */; box-shadow: 0 0 6px rgba(239,68,68,0.6);} 

@media (max-width: 480px) {
    .send-indicator[b-17h04swppc] { width: 10px; height: 10px; margin-left:4px; }
}

/* Lightweight toast styles */
.app-toasts[b-17h04swppc] { position: fixed; right: 12px; bottom: 20px; z-index: 4000; display:flex; flex-direction:column; gap:8px; }
.app-toast[b-17h04swppc] { background: rgba(30,58,95,0.95); color: white; padding: 10px 14px; border-radius: 8px; min-width: 200px; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.app-toast .toast-title[b-17h04swppc] { font-weight:700; margin-bottom:4px; font-size:0.95rem; }
.app-toast .toast-content[b-17h04swppc] { font-size:0.9rem; opacity:0.95; }

.readonly-field[b-17h04swppc] { opacity: 0.6; }

@media (max-width: 480px) { .app-toasts[b-17h04swppc] { right: 8px; left: 8px; bottom: 12px; } .app-toast[b-17h04swppc] { min-width: auto; } }
