:root{
        /* Color Principal variables */
        --main-color: #59a5d1;
        --main-color-rgb: 89,165,209;
        --main-color-contrast: #ffffff;
        --main-color-contrast-rgb: 255,255,255;
        --main-color-darker: #368ec1;
        --main-color-shade: #459acb;
        --main-color-tint: #6db0d7;
        --main-color-lighter: #81bbdc;

        --def-button-fill: var(--main-color);
        --def-button-text: var(--main-color-contrast);
        --def-button-hover-fill: var(--main-color-tint);
        --def-button-active-fill: var(--main-color);

        --md-primary: var(--main-color );
        --md-primary-dark: var(--main-color-darker);
        --md-primary-light: var(--main-color-lighter);
        --md-accent: #00BCD4;
        --md-success: #4CAF50;
        --md-warning: #ffae00;
        --md-danger: rgb(185, 28, 28);
        --md-grey-50: #FAFAFA;
        --md-grey-100: #F5F5F5;
        --md-grey-200: #EEEEEE;
        --md-grey-300: #E0E0E0;
        --md-grey-400: #BDBDBD;
        --md-grey-600: #757575;
        --md-grey-800: #424242;
        --md-grey-900: #212121;
        --md-shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
        --md-shadow-2: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
        --md-shadow-3: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
        --md-radius: 8px;
        --md-radius-lg: 12px;
}
@layer baseSeller, buttons;
@layer baseSeller{
    /* HEADER SELLER */
   .logo_seller {
        width: max-content;
    }
    /*Header Seller*/
    .header_seller{
		background-color: #fff;
		/* padding: 10px; */
		top: 0;
		left: 0;
		border-bottom: 1px solid #ededed;
		width: calc(100% - 60px);
		margin-left: 60px;
		z-index: 51;
		box-sizing: border-box;
		display: flex;
		justify-content: center;
		align-items: center;
		position:relative;
        /* margin-bottom: 2rem; */
	}
	
	.page_margins_seller{
		display: flex;
		justify-content: space-between;
		align-items: center;
		max-width: 1400px;
		margin: 0 auto;
	}
	.right_menu{
		display: flex;
		align-items: center;
		justify-content: flex-end;
		margin-right: 20px;
		width: 150px;
	}
	.svg_right_menu{
		width: 40px;
	}
	.svg_right_menu svg{
		width: 100%;
		display: block;
	}
	.text_right_menu{
		margin-left: 8px;
		font-weight: 400;
		font-size: 8pt;
		width: max-content;
	}

	@media (max-width:580px){
		.text_right_menu{
			display: none;
		}
	}
	
    /* CONTENEDORES SELLER */
    .site_seller {
        top: 0px;
        background: #f5f5f5;
        display: flex;
        height: max-content;
        position: relative;
        min-height: 90vh;
    }
    .site_seller * {
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    /* SIDEBAR SELLER */
    .sidebar{
           max-height: calc(100vh - 75px) !important;
     }
    /* Paneles laterales (usuarios / contactos) animados por jquery.sidebar.js:
       el plugin solo anima la propiedad "right", necesita position/tamaño/fondo
       propios para no renderizarse como un bloque suelto en el flujo normal. */
    .lateral-panel-user,
    .lateral-panel {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 380px;
        max-width: 90vw;
        background: #fff;
        z-index: 1200;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }
    .lateral-panel-content {
        box-sizing: border-box;
        height: 100%;
        padding: 1.5rem;
    }
    .sidebar-seller {
        width: 280px;
        min-width: 280px;
        background: #ffffff;
        border-right: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        padding: 0;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        /* z-index: 51; */
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
    }
    
    .sidebar-seller:not(.open) {
        width: 60px;
        min-width: 60px;
    }
    
    /* Header del Sidebar */
    .sidebar-seller-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 1rem;
        border-bottom: 1px solid #f3f4f6;
        min-height: 70px;
    }
    .home-section{
        background-color: #f6f6f8;
        position: relative;
        background: var(--light-color-tint);
        min-height: calc(100vh - 71px - 40px);
        width: calc(100% - 78px);
        transition: all 0.5s ease;
        z-index: 50;
        padding: var(--space-4);
    }
    .sidebar-seller-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .sidebar-seller-logo-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .sidebar-seller-logo-icon:hover {
        transform: scale(1.05);
    }
    
    .sidebar-seller-logo-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .sidebar-seller-logo-text {
        font-size: 1.125rem;
        font-weight: 700;
        color: #111827;
        letter-spacing: -0.015em;
        margin: 0;
        white-space: nowrap;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-seller:not(.open) .sidebar-seller-logo-text {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }
    
    .sidebar-seller-toggle {
        background: #f3f4f6;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
        width: 32px;
        height: 32px;
    }
    
    .sidebar-seller-toggle:hover {
        background: #e5e7eb;
    }
    
    .sidebar-seller-toggle .material-symbols-outlined {
        font-size: 20px;
        color: #6b7280;
    }
    
    .sidebar-seller:not(.open) .sidebar-seller-toggle {
        opacity: 0;
        width: 0;
        padding: 0;
        overflow: hidden;
    }
    
    /* User Info Section */
    .sidebar-seller-user {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .sidebar-seller-user-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        background: #e0e7ff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-seller-user-avatar .material-symbols-outlined {
        font-size: 28px;
        color: var(--main-color-darker);
    }
    
    .sidebar-seller-user-info {
        flex: 1;
        min-width: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-seller:not(.open) .sidebar-seller-user-info {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }
    
    .sidebar-seller-user-name {
        font-size: 0.875rem;
        font-weight: 600;
        color: #111827;
        margin: 0 0 0.125rem 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sidebar-seller-user-role {
        font-size: 0.75rem;
        color: #6b7280;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-seller-user-profile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        min-width: 28px;
        border-radius: 6px;
        color: #6b7280;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .sidebar-seller-user-profile:hover {
        background: #e0e7ff;
        color: var(--main-color-darker);
    }

    .sidebar-seller-user-profile svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .sidebar-seller:not(.open) .sidebar-seller-user-profile {
        display: none;
    }

    /* Navigation */
    .sidebar-seller-nav {
        flex: 1;
        padding: 0.5rem;
        overflow-y: auto;
    }
    
    .sidebar-seller-nav-section {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .sidebar-seller-nav-title {
        font-size: 0.75rem;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 0.75rem 0.75rem 0.5rem;
        margin: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-seller:not(.open) .sidebar-seller-nav-title {
        opacity: 0;
        height: 0;
        padding: 0;
        overflow: hidden;
    }
    
    .sidebar-seller-nav-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.625rem 0.75rem;
        border-radius: 0.5rem;
        color: #4b5563 !important;
        transition: all 0.2s ease;
        position: relative;
        font-size: 0.875rem;
        font-weight: 500;
    }
    
    .sidebar-seller-nav-item:hover {
        background: #f3f4f6;
        color: #111827;
    }
    
    .sidebar-seller-nav-item.active {
        background: #dbeafe !important;
        color: var(--main-color-darker) !important;
        font-weight: 600;
    }
    
    .sidebar-seller-nav-item .material-symbols-outlined {
        font-size: 20px !important;
        min-width: 20px;
        transition: all 0.2s ease;
    }
    
    .sidebar-seller-nav-item.active .material-symbols-outlined {
        font-variation-settings: 'FILL' 1, 'wght' 600;
    }
    
    .sidebar-seller-nav-text {
        white-space: nowrap;
        transition: opacity 0.3s ease;
        font-size: var(--text-s);
    }
    
    .sidebar-seller:not(.open) .sidebar-seller-nav-text {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }
    
    .sidebar-seller:not(.open) .sidebar-seller-nav-item {
        justify-content: center;
        padding: 0.75rem;
        gap:0;
    }
    
    /* Footer / Logout */
    .sidebar-seller-footer {
        padding: 0.75rem;
        border-top: 1px solid #f3f4f6;
        margin-top: auto;
    }
    
    .sidebar-seller-logout {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.625rem 0.75rem;
        border-radius: 0.5rem;
        color: #dc2626;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 0.875rem;
        font-weight: 500;
    }
    
    .sidebar-seller-logout:hover {
        background: #fee2e2;
        color: #991b1b;
    }
    
    .sidebar-seller-logout .material-symbols-outlined {
        font-size: 20px;
        min-width: 20px;
    }
    
    .sidebar-seller:not(.open) .sidebar-seller-logout {
        justify-content: center;
        padding: 0.75rem;
    }
    
    /* Adjust main content when sidebar is present (desktop) */
    .home-section {
        margin-left: 287px;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-seller:not(.open) ~ .home-section {
        margin-left: 60px;
    }

    /* Boton hamburguesa y overlay: ocultos en desktop */
    .seller-mobile-menu-btn {
        display: none;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
        border-radius: 8px;
        color: #1f2937;           /* desktop: nunca se muestra, pero por si acaso */
        align-items: center;
        justify-content: center;
    }
    .seller-mobile-menu-btn .material-symbols-outlined { font-size: 26px; }
    .seller-mobile-menu-btn:hover { background: rgba(0,0,0,0.05); }
    .sidebar-seller-overlay { display: none; }

    /* ── MOBILE: sidebar off-canvas, se abre con el boton hamburguesa ── */
    @media (max-width: 768px) {
        /* El sidebar se esconde a la izquierda (ancho completo, no colapsado) */
        .sidebar-seller,
        .sidebar-seller:not(.open) {
            width: 280px;
            min-width: 280px;
            transform: translateX(-100%);
            box-shadow: none;
            z-index: 1001;
        }
        .sidebar-seller.mobile-open {
            transform: translateX(0);
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
        }

        /* En mobile el menu siempre se ve expandido (con textos), nunca a 60px */
        .sidebar-seller:not(.open) .sidebar-seller-nav-text,
        .sidebar-seller:not(.open) .sidebar-seller-user-info,
        .sidebar-seller:not(.open) .sidebar-seller-nav-title,
        .sidebar-seller:not(.open) .sidebar-seller-logo-text {
            opacity: 1; width: auto; height: auto; overflow: visible;
        }
        .sidebar-seller:not(.open) .sidebar-seller-nav-item,
        .sidebar-seller:not(.open) .sidebar-seller-logout {
            justify-content: flex-start;
            padding: 0.625rem 0.75rem;
            gap: 0.75rem;
        }
        /* En mobile, #collapse_sidebar_button sirve para CERRAR el menu
           off-canvas. Lo mostramos siempre dentro del sidebar (no se oculta). */
        .sidebar-seller-toggle,
        .sidebar-seller:not(.open) .sidebar-seller-toggle {
            display: flex !important;
            opacity: 1 !important;
            width: 32px !important;
            height: 32px !important;
            padding: 0.5rem !important;
            overflow: visible !important;
        }
        .sidebar-seller-toggle .material-symbols-outlined {
            font-size: 22px;
            color: #1f2937;
        }

        /* El contenido ocupa todo el ancho, sin barra lateral fija */
        .home-section,
        .sidebar-seller:not(.open) ~ .home-section {
            margin-left: 0 !important;
            width: 100% !important;
            padding: 0 !important;
        }

        /* Overlay oscuro detras del menu abierto */
        .sidebar-seller-overlay.active {
            display: block;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            z-index: 1000;
        }

        /* Mostrar el boton hamburguesa */
        .seller-mobile-menu-btn { display: inline-flex; }
    }

    /* OLD SIDEBAR STYLES - Keep for backwards compatibility */
    .logo-details {
        padding: 7px;
    }
    .profile_seller{
        position: fixed;
        bottom: 0;
        width: 60px;
    }
    .sidebar.open .profile_seller{
        width: 280px;
    }
    .sidebar.open .profile-details a {
        visibility: visible;
    }
    .profile-details a {
        visibility: hidden;
    }
    .profile-details {
        justify-content: space-around;
    }
    /* BUY BY SELLER */
    .selected_user_header {
         background: #fff;
        padding: 0.5rem 1.5rem;
        margin: 0 auto 0.5rem;
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 50;
    }
    .header_list_right{
        height: 20px;
    }
    .selected_user_info_header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .selected_user_label {
        font-size: 0.9em;
        font-weight: 500;
        color: #666;
    }
    .content_selected_user_header{
        display: flex; 
        align-items: center; 
        justify-content: flex-end; 
        gap: 10px;
    }
    .selected_user_name_header {
        font-size: 1em;
        font-weight: 600;
        color: #2b2b2b;
    }
    .btn_change_user {
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        /* gap: 0.4rem; */
        font-size: 0.9em;
        font-weight: 500;
        color: #555;
        transition: all 0.2s ease;
    }
    .btn_change_user:hover {
        background: #fff;
        border-color: var(--main-color);
        color: var(--main-color);
    }
    .search_users_seller_container {
        position: relative;
        width: 97%;
        margin: 20px auto;
    }
    .quantity_button_seller{
        color: var(--main-color) !important;
        border: solid 2px var(--main-color) !important;
        border-radius: var(--radius-base) !important;
    }
    .quantity_button_seller:hover{
        background-color: var(--main-color) !important;
    }
    .button_finalizar_seller{
        color: var(--light-color) !important;
        border: solid 2px var(--main-color) !important;
        padding-block: 1rem !important;
        border-radius: var(--radius-base) !important;
        background: var(--main-color) !important;
    }
    .button_finalizar_seller:hover{
        background-color: #071e4c !important;
    }
    .search_vendedor {
        background: #fff;
        padding: 0.75em 1.2em;
        width: calc(100% - 2.4em);
        max-width: calc(650px - 2.4em);
        margin: 0 auto;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 2px solid #f0f0f0;
        transition: all 0.3s ease;
    }
    .search_vendedor:hover {
        border-color: #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .search_vendedor:focus-within {
        border-color: var(--main-color);
        box-shadow: 0 4px 16px rgba(var(--main-color-rgb, 255, 193, 7), 0.15);
    }
    .search_vendedor input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        border-style: none;
        color: #2b2b2b;
        background-color: transparent;
        padding: 0;
        font-size: 0.95em;
        outline: none;
        font-weight: 400;
    }
    .search_vendedor input::placeholder {
        color: #999;
        font-weight: 400;
    }
    .search_vendedor svg{
        width: 22px !important;
        height: 22px;
        min-width: 22px;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }
    .search_vendedor svg path{
        stroke: #999;
        transition: stroke 0.2s ease;
    }
    .search_vendedor:focus-within svg path{
        stroke: var(--main-color);
    }
    /* Botón de escáner QR/código de barras dentro del buscador.
       Definido acá (global) para no depender de que carro_seller.html
       haya sido inyectado en el DOM (ver searchProductsSeller.html y
       buy_by_seller.html, que usan .scanner_btn_seller sin incluir ese template). */
    .scanner_btn_seller {
        background: var(--main-color, #3b82f6);
        color: white;
        border: none;
        padding: 0.5rem;
        border-radius: var(--radius-base);
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: all 0.2s;
        margin-left: 10px;
    }
    .scanner_btn_seller:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .scanner_btn_seller svg {
        width: 24px;
        height: 24px;
        fill: white;
    }
    .barcode_scanner_modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .barcode_scanner_modal.active {
        display: flex;
    }
    .barcode_scanner_header {
        width: 100%;
        max-width: 600px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: white;
        border-radius: 8px 8px 0 0;
    }
    .barcode_scanner_content {
        width: 100%;
        max-width: 600px;
        background: white;
        border-radius: 0 0 8px 8px;
        padding: 1rem;
    }
    .barcode_close_btn {
        background: #dc3545;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 600;
    }
    .barcode_close_btn:hover {
        background: #c82333;
    }
    /* Selected users grid */
    .selected_users_grid {
        margin-top: 2rem;
    }
    .selected_users_title {
        font-size: 1.1em;
        font-weight: 600;
        color: #2b2b2b;
        margin-bottom: 1rem;
        text-align: center;
    }
    .selected_user_card {
        background: #fff;
        border-radius: 12px;
        padding: 1.2em;
        border: 2px solid #f0f0f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    .selected_user_card:hover {
        border-color: var(--main-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    .selected_user_info {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .selected_user_code{
        font-size: 0.85em;
        font-weight: 700;
        color: var(--main-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .selected_user_name {
        font-size: 1em;
        font-weight: 500;
        color: #2b2b2b;
        line-height: 1.4;
    }
    .remove_user_btn {
        background: transparent;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 0.5em;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        align-self: flex-end;
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    .selected_user_card {
        position: relative;
    }
    .remove_user_btn svg {
        width: 18px;
        height: 18px;
        stroke: #999;
        transition: stroke 0.2s ease;
    }
    .remove_user_btn:hover {
        background: #fee;
        border-color: #f44;
    }
    .remove_user_btn:hover svg {
        stroke: #f44;
    }
    .wrp_vendedor{
        font-size: 14px;
        padding: 8px;
        width: calc(100% - 16px);
        color: #2b2b2b;
    }
    .wrp_vendedor:nth-child(even){
        background-color: #f1f1f1;
    }
    .wrp_vendedor:nth-child(odd){
        background-color: #fff;
    }
    .cod_vendedor{
        width: 10%;
        max-width: 60px;
        padding: 10px 0;
    }
    .name_vendedor{
        width: 25%;
        margin: 0px 10px;
    }
    .direccion_vendedor{
        width: 30%;
        max-width: 200px;
    }
    .localidad_vendedor{
        margin: 0px 10px;
        width: 30%;
        max-width: 170px;
    }
    .title_wrp_vendedor{
        color: var(--main-color) !important;
        font-size: 16px !important;
    }
    .titulo_estadisticas{
        font-weight: 500;
        text-align: start;
        font-size: var(--text-xl);
        margin: 0 auto;
        margin-bottom: 16px;
        color: #111827;
        width: 97%;
    }
    #formUsers{
        width: 100%;
        margin-bottom: 3rem;
    }
    
   
    /*buy by seller productos*/
    .sugested_products_list_container {
		position: absolute;
		left: 50%;
		z-index: 100;
		width: 100%;
		height: auto;
		max-height: 550px;
		overflow: hidden;
		background: #fff;
		transform: translateX(-50%);
		border-radius: 12px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
		overflow-y: auto;
		border: 2px solid #f0f0f0;
		display: none;
		margin-top: 8px;
	}
	.sugested_products_list_container.show {
		display: block;
	}
	.sugested_products_list_container p{
		margin: 0;
		padding: 1rem 1.2rem 0.5rem;
		font-size: 13px;
		font-weight: 600;
		color: #999;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
	.list_element {
		display: flex;
		gap: 1rem;
		min-height: 40px;
		background: #fff;
		border-radius: 8px;
		border: none;
		cursor: pointer;
		transition: all 0.2s ease;
		text-decoration: none;
		margin: 0;
	}
	ul.list_of_products.sugested_products {
	    list-style: none;
		padding: 0.75rem;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		margin: 0;
	}
	.pre_search_product_list_element{
		position: relative;
	}
	.pre_search_product_list_element.keyboard-selected .list_element {
		background-color: #f0f8ff;
		border-left: 3px solid #007bff;
	}
	.image_container {
		height: 100%;
		width: 70px;
		min-width: 70px;
		display: flex;
		background: #fafafa;
		border-radius: 8px;
		overflow: hidden;
		border: 1px solid #f0f0f0;
		transition: all 0.2s ease;
	}
	.list_of_products img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		border-radius: 8px;
		overflow: hidden;
	}
	.data_list_container {
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: 0;
		justify-content: center;
		gap: 0.5rem;
		flex: 1;
	}
    .search-loader-ellips {
        font-size: 20px;
        position: relative;
        width: 3em;
        height: 0.5em;
        display: inline-block;
        vertical-align: middle;
        margin-left: 5px;
    }
    .search-loader-ellips__dot {
        display: block;
        width: 0.5em;
        height: 0.5em;
        border-radius: 0.5em;
        background: #666;
        position: absolute;
        animation-duration: 0.5s;
        animation-timing-function: ease;
        animation-iteration-count: infinite;
    }
    .search-loader-ellips__dot:nth-child(1),
    .search-loader-ellips__dot:nth-child(2) {
        left: 0;
    }
    .search-loader-ellips__dot:nth-child(3) {
        left: 1em;
    }
    .search-loader-ellips__dot:nth-child(4) {
        left: 2.5em;
    }
    @keyframes search-reveal {
        from { transform: scale(0.001); }
        to { transform: scale(1); }
    }
    @keyframes search-slide {
        to { transform: translateX(1.5em); }
    }
    .search-loader-ellips__dot:nth-child(1) {
        animation-name: search-reveal;
    }
    .search-loader-ellips__dot:nth-child(2),
    .search-loader-ellips__dot:nth-child(3) {
        animation-name: search-slide;
    }
    .search-loader-ellips__dot:nth-child(4) {
        animation-name: search-reveal;
        animation-direction: reverse;
    }
    .presearch_product_code {
        font-size: 0.9em;
        font-weight: 600;
        color: var(--dark-color-shade);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-inline: 1rem;
    }
	.data_list_container .product_title p {
		color: #2b2b2b;
        font-weight: 500;
        font-size: 14px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding: 0 1rem;
	}
	.data_list_container .product_price {
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}
	.data_list_container .product_price .price {
		color: var(--main-color);
		font-weight: 700;
		font-size: 16px;
        padding-block: 0;
	}
	.data_list_container .product_price .old_price {
		color: #999;
		font-size: 13px;
		text-decoration: line-through;
		font-weight: 400;
	}

	.product_button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        margin-left: auto;
        opacity: 0;
        transition: all 0.2s ease;
        border-radius: 6px;
        background: transparent;
    }
	.product_button svg {
		width: 20px;
		height: 20px;
	}
	.product_button svg path {
		stroke: var(--main-color);
		stroke-width: 2;
	}
    a.list_element:hover {
        background: #fafafa;
        transform: translateX(2px);
    }
    a.list_element:hover .image_container {
        border-color: var(--main-color);
        background: #fff;
    }
	a.list_element:hover .product_button {
		opacity: 1;
		background: rgba(var(--main-color-rgb, 255, 193, 7), 0.1);
	}
    .sidebar-header-cart_seller{
        margin-top: 50px;
        border: 1px solid #e5e7eb;
        border-radius: var(--radius-base);
        background: var(--main-color);
        cursor: pointer;
        padding: 1.5rem;
        padding: 1rem;
        width: max-content;
        margin-left: auto;
    }
    .sidebar-header-cart_seller h3{
        color: var(--light-color);
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }
    .pre_search_add_to_cart {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translate(0, -50%);
    }
    .content_cart_seller{
        margin-top: 2rem; 
        padding: 1rem; 
        background: #fff; 
        border-radius: 8px; 
    }
    .cantidad_carro.seller{
        display: flex; 
        align-items: center; 
        gap: 3px; 
        width: max-content !important;
    }
    .cant_precio_carro_lat.seller{
        display: flex; align-items: center; 
        padding-left: var(--space-1); 
        margin: 0; gap: 5px; 
        justify-content: space-between;
    }
    .data_row.seller{
        display: flex;
        font-size: var(--text-base);
        justify-content: space-between;
    }
    .footer_carro_latseller{
        padding: var(--space-1) var(--space-2);
        display: flex;
        flex-direction: column;
        gap: var(--space-1);
        margin-top: 60px;
        max-width: 300px;
        margin-left: auto;
    }
    .desc_carro_lat{
        font-weight: 500;
        padding-left: var(--space-1);
        font-size: 0.85rem;
    }
    #shipping, #payments {
        margin-top: 1rem;
    }
    
    #shipping .wrp_radio, #payments .wrp_radio {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin: 10px 0;
        padding: 10px;
        border-radius: 8px;
        transition: all 0.2s ease-in-out;
        background-color: #f7f7f7;
        cursor: pointer;
        border: 1px solid #e0e0e0;
    }
    
    #shipping .wrp_radio:hover, #payments .wrp_radio:hover {
        background-color: #ececec;
        border-color: #ccc;
    }
    
    #shipping .wrp_radio_selected, #payments .wrp_radio_selected {
        background-color: #e3f2fd !important;
        border-color: var(--main-color) !important;
    }
    
    #shipping .content_radio, #payments .content_radio {
        margin-right: 10px;
        width: 21px;
    }
    
    #shipping .text_radio, #payments .text_radio {
        width: calc(100% - 31px);
    }
    
    #shipping .title_radio, #payments .title_radio {
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }
    
    #shipping .descripcion_radio, #payments .descripcion_radio {
        margin-top: 6px;
        font-weight: 400;
        font-size: 14px;
        color: #666;
    }

    /******   metricas SELLER  ******/

    .line_prod_seller{
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        padding: 10px 0px;
        font-size: var(--text-base-important);
    }

   .wrp_users_seller {
        /* width: 97%; */
        display: flex;
        flex-direction: column;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        background: #f9fafb;
        border-radius: var(--radius-base);
        border: solid 1px #e7e9ed;
        padding: 1rem;
        margin: auto;
        margin-block: 2rem;
    }
    .client_prod_seller{
        padding: 0px 5px;
        {% if user.commision > 0 %}
            width: 33.5%;
        {% else %}
            width: 45.5%;
        {% endif %}
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .line_prod_seller.is_title {
        color: var(--medium-color-lighter);
        border-bottom: solid 1px #e5e7eb;
        padding-bottom: 1rem;
        font-size: var(--text-s);
        font-weight: 500;
    }

    .detail_prod_seller{
        color: #3f4958;
    }
    .detail_prod_seller span {
        font-weight: 300;
        font-size: var(--text-base);
        color: #818a9b;
    }
    .clien_prod_seller_iniciales {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .status-green {
        color: #2b7548 !important;
        background-color: #dcfce7 !important;
    }

    .status-purple {
        color: rgb(156, 70, 236) !important;
        background-color: rgb(243, 232, 255) !important;
    }
    .status-yellow{
        color: #8a5718 !important;
        background-color: #fef9c3 !important;
    }
    .status-red {
        color: #9e2525 !important;
        background-color: #fee2e2 !important;
    }
    .status-blue{
        color: #1955cf !important;
        background-color: #e7eefa !important;
    }
    .status-lightblue{
        color: #00a2ff !important;
        background-color: #cffafe !important;
    }

    .wrap_users_vendedores{
        background: #f6f6f8;
        min-height: calc(100vh - var(--header-total-height));
    }

    .search_filter_container {
        background: #fcfcfd;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        border: 1px solid #e5e7eb;
        overflow: hidden;
        /* width: 97%; */
        margin: auto;
    }

    .search_section {
        padding: 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .search_input_wrapper {
        position: relative;
        width: 100%;
        display: flex;
        padding: 1rem;
        background: #f9fafb;
        border-radius: var(--radius-base);
    }

    .search_input_wrapper svg {
        width: 40px !important;
        height: 40px !important;
        color: #9ea5b6;
    }
    .search_input {
        width: 100%;
        background: #f9fafb;
        border: none;
        border-radius: 8px;
        padding: 0.75rem 1rem 0.75rem 3rem;
        font-size: var(--text-base);
        color: #111827;
        transition: all 0.2s ease;
    }

    .search_input::placeholder {
        color: #9ca3af;
    }

    .search_input:focus {
        outline: none;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(25, 85, 207, 0.1);
        border: 1px solid #1955cf;
    }

    .filters_section {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        background: rgba(249, 250, 251, 0.5);
    }

    .filters_wrapper {
        flex: 1;
        min-width: 200px;
    }

    .filter_group {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .filter_item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .filter_label {
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        white-space: nowrap;
    }

    .btn_aplicar_filtros {
        background: #1955cf;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        padding: 0.625rem 1.5rem;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .btn_aplicar_filtros:hover {
        background: #1048a6;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(25, 85, 207, 0.2);
    }

    .btn_aplicar_filtros:active {
        transform: translateY(0);
    }

    .filter_info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
    }

    .filter_results_count {
        font-size: 14px;
        color: #9ca3af;
        font-weight: 500;
    }

    .btn_clear_filters {
        background: transparent;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn_clear_filters:hover {
        background: #f3f4f6;
        color: #1955cf;
    }

    .clear_icon {
        font-size: 18px;
        font-weight: 600;
    }

    .more_prod_seller {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        position: relative;
    }

    .btn-more {
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 20px;
        line-height: 1;
        color: #6b7280;
        padding: 6px;
        border-radius: 6px;
    }

    .btn-more:hover {
        background-color: #f3f4f6;
        color: #111827;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        min-width: 200px;
        z-index: 1000;
        margin-top: 4px;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        color: #374151;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
        border: none;
        background: transparent;
        width: 100%;
        text-align: left;
    }

    .dropdown-item:hover {
        background-color: #f3f4f6;
        color: #1955cf;
    }

    .dropdown-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .dropdown-item:last-child {
        border-radius: 0 0 8px 8px;
    }

    .dropdown-item .material-symbols-outlined {
        font-size: 18px;
    }

    @media (max-width: 768px) {
         .wrap_users_vendedores{
            padding: var(--space-1);
        }
        .filters_section {
            flex-direction: column;
            align-items: stretch;
        }

        .filters_wrapper {
            width: 100%;
        }

        .filter_group {
            flex-direction: column;
            align-items: stretch;
        }

        .filter_item {
            width: 100%;
        }

        .filter_item input {
            flex: 1;
        }

        .btn_aplicar_filtros {
            width: 100%;
        }

        .filter_info {
            width: 100%;
            justify-content: space-between;
            margin-left: 0;
            padding-top: 0.5rem;
            border-top: 1px solid #e5e7eb;
        }
        .search_input_wrapper, .search_section, .filters_section{
            padding: 5px 10px;
            
        }
        .search_section{
            padding-inline: 1px;
        }
        .search_input_wrapper svg{
            width: 30px !important;
            height: 30px !important;
        }
        .search_input{
            padding: 5px 10px;
            font-size: 12px;
        }
    }

    /* Responsive para tabla de clientes */
    @media (max-width: 1050px) {
        .line_prod_seller {
            min-width: auto;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .client_prod_seller {
            width: calc(100% - 50px) !important;
            order: 1;
        }

        .more_prod_seller {
            order: 2;
            width: 40px;
            margin-left: auto;
        }

        .n_order_prod_seller {
            width: auto !important;
            min-width: auto;
            order: 3;
        }

        .status_prod_seller {
            width: auto !important;
            order: 4;
        }

        .fecha_prod_seller {
            width: 100% !important;
            order: 5;
            margin-top: 0.5rem;
        }

        .total_prod_seller {
            width: auto !important;
            order: 6;
            margin-left: auto;
        }


        .line_prod_seller.is_title {
            display: none;
        }

        .line_prod_seller:not(.is_title) {
            background: white;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            padding: 0.5rem !important;
            margin-bottom: 0.75rem;
            justify-content: space-between !important;
        }

        .wrp_users_seller {
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0;
        }
    }

    @media (max-width: 640px) {
        .line_prod_seller {
            font-size: 0.875rem;
        }

        .clien_prod_seller_iniciales {
            width: 36px;
            height: 36px;
            min-width: 36px;
            font-size: 12px;
        }


        .n_order_prod_seller,
        .status_prod_seller,
        .total_prod_seller {
            font-size: 0.8125rem;
        }
    }


    /******  fin metricas seller  ******/

    /****** metricas seller user ******/
        .client_avatar {
            width: 112px;
            height: 112px;
            border-radius: 50%;
            margin: 0 auto var(--space-2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            font-weight: 700;
        }

        .detail_item {
            display: flex;
            align-items: center;
            gap: var(--space-2);
        }
        .actions_title {
            font-size: 10px;
            text-transform: uppercase;
            font-weight: 700;
            color: #9ca3af;
            letter-spacing: 0.5px;
            padding: 0 var(--space-1);
        }
        @media (max-width: 640px) {
            .client_avatar {
                width: 80px;
                height: 80px;
                font-size: 36px;
            }

        }

    /****** fin metricas seller user ******/

    @media (max-width: 860px){
        .wrp_vendedor{
            font-size: 12px;
        }
        .title_wrp_vendedor{
            font-size: 14px !important;
        }
        .direccion_vendedor{
            width: 100%;
            max-width: 170px;
        }
        .selected_user_label{
            display:none;
        }
        .btn_change_user{
            padding: 5px;
        }
        .selected_user_header{
            flex-wrap: wrap;
        }
        .selected_user_info_header {
            display: flex        ;
            align-items: center;
            gap: 0.5rem;
        }
        .selected_user_name_header{
            font-size: 0.9em;
        }
        .btn-open-categories-sidebar{
            padding: 0.875rem 1rem;
        }
        .btn-open-categories-sidebar-text{
            display: none;
        }
        #formBusquedaSeller{
            flex: 1;
            min-width: 200px;
        }
    }
    @media (max-width: 680px){
        .selected_user_header{
            padding: 0.5rem;
            gap: 0;
        }
        .btn-open-categories-sidebar{
            padding: 0.75rem;
            min-width: 40px;
        }
        #formBusquedaSeller{
            order: 3;
            width: 100%;
            margin-top: 0.5rem;
        }
        .btn_change_user{
            padding: 0.4rem 0.6rem;
            font-size: 0.85em;
            min-width: 36px;
        }
    }
    
    @media (max-width: 480px){
        .selected_user_header{
            padding: 0.4rem;
        }
        .btn-open-categories-sidebar{
            padding: 0.625rem;
            min-width: 36px;
        }
        .btn-open-categories-sidebar svg{
            width: 20px;
            height: 20px;
        }
        .btn_change_user{
            padding: 0.3rem 0.5rem;
            min-width: 32px;
        }
        #formBusquedaSeller input{
            font-size: 0.9em;
        }
    }
    @media (max-width: 680px){
        .direccion_vendedor{
            display: none;
        }
    }
    @media (max-width: 520px){
        .localidad_vendedor{
            max-width: 100px;
            margin: 0px 5px;
        }
        .wrp_vendedor{
            font-size: 10px;
        }
    }
    
    /* CATEGORIES SIDEBAR */
    .categories-sidebar {
        position: fixed;
        left: -350px;
        top: 0;
        width: 350px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    
    .categories-sidebar.open {
        left: 60px;
    }
    
    .categories-sidebar .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .categories-sidebar .sidebar-header h3 {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 700;
        color: #111827;
        letter-spacing: -0.015em;
    }
    
    .categories-sidebar .close-sidebar {
        background: #f3f4f6;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        transition: background 0.2s ease;
    }
    
    .categories-sidebar .close-sidebar:hover {
        background: #e5e7eb;
    }
    
    .categories-sidebar .close-sidebar svg {
        width: 20px;
        height: 20px;
        stroke: #6b7280;
    }
    
    .categories-sidebar .sidebar-content {
        flex: 1;
        overflow-y: auto;
        padding: 0.5rem;
    }
    
    .btn-open-categories-sidebar {
        background: var(--main-color);
        color: #fff;
        border: none;
        border-radius: 50px;
        padding: 0.875rem 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(23, 84, 207, 0.3);
        z-index: 1000;
        font-size: 0.875rem;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .btn-open-categories-sidebar:hover {
        background: #1048a6;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(23, 84, 207, 0.4);
    }
    
    .btn-open-categories-sidebar svg {
        width: 20px;
        height: 20px;
    }
    
    /* LIST PRODUCT SELLER CONTAINER */
    .list_product_seller {
        padding: 1.5rem;
        padding-top: 0;
        width: 100%;
        margin: 0 auto;
    }
    
    @media (max-width: 768px) {
        .list_product_seller {
            padding: 1rem;
        }
    }
    
    @media (max-width: 560px) {
        .list_product_seller {
            padding: 0.75rem;
        }
    }
    
    @media (max-width: 760px) {
        .categories-sidebar {
            width: 85%;
            max-width: 350px;
        }
        
        .btn-open-categories-sidebar {
           padding: 0.5rem 1rem;
        }
    }
    
    /* CATEGORIES LIST - Modern Style with Image on Right */
    .categories-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .category-item {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .category-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        cursor: pointer;
        padding: 1rem;
        transition: all 0.2s ease;
        background: white;
    }
    
    .category-link:hover {
        background: #f9fafb;
    }
    
    .category-title {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .category-title a,
    .category-title div {
        color: #111827;
        font-size: 0.9375rem;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s ease;
        display: block;
    }
    
    .category-title a:hover,
    .category-title div:hover {
        color: var(--main-color);
    }
    
    .category-title div.active {
        color: var(--main-color) !important;
        font-weight: 600;
        background: #dbeafe;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
    }
    
    .category-image {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
        background: #f3f4f6;
    }
    
    .category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .cagetories_selected {
        color: var(--main-color) !important;
        font-weight: 600 !important;
    }
    
    .category-link:has(.cagetories_selected) {
        background: #eff6ff;
        border-left: 3px solid var(--main-color);
        padding-left: calc(1rem - 3px);
    }
    .content_productos_lista{
        gap: var(--space-1);
    }

    /* USER LIST PAGE SPECIFIC STYLES */
    .client_user_seller{
        padding: 0px 5px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: var(--text-s);
    }
    .list_users_seller {
        /* width: 97%; */
        display: flex;
        flex-direction: column;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        background: #f9fafb;
        border-radius: var(--radius-base);
        border: solid 1px #e7e9ed;
        padding: 1rem;
        margin: auto;
        margin-block: 2rem;
    }

    .line_user_seller.is_title {
        color: var(--medium-color-lighter);
        border-bottom: solid 1px #e5e7eb;
        padding-bottom: 1rem;
        padding-top: 0;
        font-weight: 500;
    }
    .line_user_seller {
        display: grid;
        grid-template-columns: 3fr 2fr 1fr 1fr 40px;
        gap: 1rem;
        align-items: center;
        width: 100%;
        padding: 10px 0px;
        font-size: var(--text-base-important);
    }
     .interaccion_user_seller, .compra_user_seller{
        color: #3f4958;
        font-size: 1rem;
    }
    .address_user_seller, .name_user_seller{
        color: #3f4958;
        display: flex;
        flex-direction: column;
        font-size: 1rem;
    }
    .address_user_seller, .interaccion_user_seller, .compra_user_seller{
        font-size: var(--text-s) !important;
    }
    .address_user_seller span, .name_user_seller span {
        font-weight: 300;
        font-size: var(--text-xs);
        color: #818a9b;
    }
    /* Vendedor asignado al cliente. Solo se renderiza para el Encargado de Ventas,
       que es el unico que ve clientes de varios vendedores. */
    .seller_of_client {
        font-weight: 400;
        font-size: var(--text-xs);
        color: #6b7280;
    }
    .stat-cell-loc{
        display:flex;
        flex-direction: column;
        gap: var(--space-xs);
    }
    

    /* RESPONSIVE USER LIST */
    @media (max-width: 1050px) {

        .line_user_seller {
            grid-template-columns: 2.5fr 2fr  1fr 1fr 40px;
            gap: 0.75rem;
        }

        .clien_prod_seller_iniciales {
            width: 36px;
            height: 36px;
            min-width: 36px;
            font-size: 12px;
        }
    }

    @media (max-width: 768px) {
        .list_users_seller {
            padding: 0.5rem;
            border-radius: 8px;
        }
        .titulo_estadisticas{
           font-size: var(--text-lg);
           padding-top: 1rem;
        }
        .line_user_seller {
            grid-template-columns: 1fr 0.5fr;
            grid-template-areas:
                "client actions"
                "interaccion compra"
                "address address";
            gap: 0.5rem;
            row-gap: 0.75rem;
            padding: 12px 0;
        }

        .line_user_seller.is_title {
            display: none;
        }

        .line_user_seller:not(.is_title) {
            border-bottom: 1px solid #e5e7eb;
        }

        /* Asignar grid areas a cada elemento */
        .client_user_seller {
            grid-area: client;
            gap: 8px;
        }

        .more_prod_seller {
            grid-area: actions;
        }

        .interaccion_user_seller {
            grid-area: interaccion;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.9rem;
        }
        .compra_user_seller {
            grid-area: compra;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .address_user_seller {
            grid-area: address;
            font-size: 14px;
        }

        .clien_prod_seller_iniciales {
            width: 32px;
            height: 32px;
            min-width: 32px;
            font-size: 11px;
        }
    }

    @media (max-width: 520px) {
        .list_users_seller {
            padding: 0.25rem;
        }

        .line_user_seller {
            padding: 10px 0;
            gap: 0.35rem;
            row-gap: 0.5rem;
        }

        .clien_prod_seller_iniciales {
            width: 28px;
            height: 28px;
            min-width: 28px;
            font-size: 10px;
        }

        .address_user_seller {
            font-size: 11px;
        }

        .btn-more {
            font-size: 18px;
            padding: 4px;
        }
    }

    /****** CUENTA CORRIENTE ******/
    .wrap_ctacte_seller {
        width: 100%;
        padding: 20px 0;
    }

    .form_ctacte_seller {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .line_ctacte_seller {
        display: grid;
        grid-template-columns: 1.2fr 0.4fr 0.8fr 0.9fr 0.9fr 0.9fr;
        gap: 10px;
        align-items: center;
        padding: 15px 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
        min-height: 60px;
    }
    .line_factura_seller {
        display: grid;
        grid-template-columns:  1.2fr 0.4fr 0.8fr 0.9fr 0.9fr 0.7fr 0.9fr ;
    }
    .line_ctacte_seller.is_title {
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 11px;
        text-transform: uppercase;
        color: #495057;
        letter-spacing: 0.5px;
        min-height: 45px;
    }
    .factura_ctacte_seller,
    .tipo_ctacte_seller,
    .comprobante_ctacte_seller,
    .emision_ctacte_seller,
    .vencimiento_ctacte_seller,
    .pedido_ctacte_seller,
    .total_ctacte_seller,
    .saldo_ctacte_seller,
    .seguimiento_ctacte_seller {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #2b2d42;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .factura_ctacte_seller {
        font-weight: 600;
        color: #1a1a1a;
    }

    .tipo_ctacte_seller {
        font-weight: 700;
        font-size: 13px;
        justify-content: center;
        background-color: #e9ecef;
        padding: 4px 8px;
        border-radius: 4px;
        width: fit-content;
    }

    .comprobante_ctacte_seller {
        font-size: 13px;
        color: #6c757d;
            min-width: 110px;
    }

    .emision_ctacte_seller,
    .vencimiento_ctacte_seller,
    .pedido_ctacte_seller,
    .seguimiento_ctacte_seller {
        font-size: 13px;
        color: #495057;
        justify-content: center;
        text-align: center;
    }

    .total_ctacte_seller,
    .saldo_ctacte_seller {
        font-weight: 600;
        font-size: 15px;
        justify-content: flex-end;
        text-align: right;
    }

    .saldo_ctacte_seller {
        color: var(--main-color);
        font-weight: 700;
    }

    .ctacte_seller_totales_footer {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
        gap: 5px;
        margin-top: 5px;
        padding: 15px 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        font-weight: 600;
        font-size: 14px;
        color: #2b2d42;
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .line_ctacte_seller {
            grid-template-columns: 1.2fr 0.4fr 0.8fr 0.8fr 0.8fr 0.9fr 0.9fr;
            gap: 8px;
            padding: 12px 15px;
            font-size: 13px;
        }
        .line_factura_seller {
            grid-template-columns: 1.2fr 0.4fr 0.8fr 0.9fr 0.9fr 0.7fr 0.9fr ;
        }
    }

    @media (max-width: 768px) {
        .line_ctacte_seller.is_title {
            display: none;
        }

        .line_ctacte_seller {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
            padding: 16px;
            border-left: 4px solid var(--main-color);
        }

        .factura_ctacte_seller,
        .tipo_ctacte_seller,
        .comprobante_ctacte_seller,
        .emision_ctacte_seller,
        .vencimiento_ctacte_seller,
        .pedido_ctacte_seller,
        .total_ctacte_seller,
        .saldo_ctacte_seller,
        .seguimiento_ctacte_seller {
            justify-content: flex-start;
            text-align: left;
        }

        .factura_ctacte_seller {
            font-size: 16px;
            margin-bottom: 4px;
        }

        .tipo_ctacte_seller::before {
            content: "Tipo: ";
            font-weight: 500;
            color: #6c757d;
            margin-right: 6px;
        }

        .comprobante_ctacte_seller::before {
            content: "Comprobante: ";
            font-weight: 500;
            color: #6c757d;
            margin-right: 6px;
        }

        .emision_ctacte_seller::before {
            content: "Emisión: ";
            font-weight: 500;
            color: #6c757d;
            margin-right: 6px;
        }

        .vencimiento_ctacte_seller::before {
            content: "Vencimiento: ";
            font-weight: 500;
            color: #6c757d;
            margin-right: 6px;
        }

        .pedido_ctacte_seller::before {
            content: "Pedido: ";
            font-weight: 500;
            color: #6c757d;
            margin-right: 6px;
        }

        .seguimiento_ctacte_seller::before {
            content: "Seguimiento: ";
            font-weight: 500;
            color: #6c757d;
            margin-right: 6px;
        }

        .total_ctacte_seller,
        .saldo_ctacte_seller {
            padding-top: 8px;
            margin-top: 8px;
            border-top: 1px solid #dee2e6;
            font-size: 16px;
        }

        .total_ctacte_seller::before {
            content: "Total: ";
            font-weight: 500;
            color: #6c757d;
            margin-right: 6px;
        }

        .saldo_ctacte_seller::before {
            content: "Saldo: ";
            font-weight: 500;
            color: #6c757d;
            margin-right: 6px;
        }

        .tipo_ctacte_seller {
            background-color: transparent;
            padding: 0;
        }

        .ctacte_seller_totales_footer {
            align-items: flex-start;
            gap: 8px;
        }
    }

    @media (max-width: 480px) {
        .line_ctacte_seller {
            padding: 14px;
        }

        .factura_ctacte_seller,
        .total_ctacte_seller,
        .saldo_ctacte_seller {
            font-size: 15px;
        }

        .tipo_ctacte_seller,
        .comprobante_ctacte_seller,
        .emision_ctacte_seller,
        .vencimiento_ctacte_seller,
        .pedido_ctacte_seller {
            font-size: 13px;
        }
    }


    /****** FIN CUENTA CORRIENTE ******/

    /****** LISTADO DE PRODUCTOS ******/
    .seller_product_item {
        display: grid;
        grid-template-columns: 120px 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px 16px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        transition: box-shadow 0.2s ease, transform 0.2s ease;
        align-items: start;
    }

    .seller_product_item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

    /* Imagen - ocupa 3 filas */
    .seller_product_img {
        grid-row: span 3;
        grid-column: 1;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f9fafb;
        border-radius: 6px;
        overflow: hidden;
    }

    .seller_product_img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Fila 1: Nombre */
    .seller_product_name {
        grid-row: 1;
        grid-column: 2;
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Fila 1: Precio */
    .seller_product_price_wrap {
        grid-row: 1;
        grid-column: 3;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .seller_product_price {
        font-size: 20px;
        font-weight: 700;
        color: var(--main-color);
    }

    .seller_product_old_price {
        font-size: 14px;
        color: #9ca3af;
        text-decoration: line-through;
    }

    .seller_product_discount {
        display: inline-block;
        background: #fef3c7;
        color: #d97706;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .seller_product_offers {
        font-size: 12px;
        color: #6b7280;
        margin-top: 4px;
        font-weight: 500;
    }

    /* Fila 2: Código */
    .seller_product_code {
        grid-row: 2;
        grid-column: 2;
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
    }

    /* Fila 2: Cantidad */
    .seller_product_quantity {
        grid-row: 2;
        grid-column: 3;
        display: flex;
        justify-content: flex-end;
        justify-self: end;
    }

    .seller_quantity_controls {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 4px;
        width: 100%;
    }

    .seller_qty_btn {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 700;
        color: #374151;
        transition: all 0.2s ease;
        user-select: none;
    }

    .seller_qty_btn:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

    .seller_qty_btn:active {
        transform: scale(0.95);
    }

    .seller_quantity_input {
        width: 60px;
        text-align: center;
        border: none;
        background: transparent;
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        outline: none;
    }

    .seller_quantity_input::-webkit-inner-spin-button,
    .seller_quantity_input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Fila 3: Espacio vacío */
    .seller_product_empty {
        grid-row: 3;
        grid-column: 2;
    }

    /* Fila 3: Botón Agregar */
    .seller_product_actions {
        grid-row: 3;
        grid-column: 3;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        justify-self: end;
        
    }

    .seller_btn_add {
        background: var(--main-color);
        color: var(--main-color-contrast);
        border: none;
        padding: 10px 24px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        width: 100%;
    }

    .seller_btn_add:hover {
        background: var(--main-color-darker);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(23, 84, 207, 0.3);
    }

    .seller_btn_add:active {
        transform: translateY(0);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .seller_product_item {
            grid-template-columns: 100px 1fr 1fr;
            grid-template-rows: auto auto auto auto;
            gap: 10px 12px;
            padding: 12px;
        }

        .seller_product_img {
            grid-row: span 3;
            grid-column: 1;
            width: 100px;
            height: 100px;
        }

        .seller_product_name {
            grid-row: 1;
            grid-column: 2 / 4;
            font-size: 13px;
        }

        .seller_product_code {
            grid-row: 2;
            grid-column: 2 / 4;
        }

        .seller_product_quantity {
            grid-row: 3;
            grid-column: 2 / 4;
            justify-content: flex-start;
        }

        .seller_product_price_wrap {
            grid-row: 4;
            grid-column: 1 / 2;
            align-items: flex-start;
        }

        .seller_product_price {
            font-size: 18px;
        }

        .seller_product_empty {
            display: none;
        }

        .seller_product_actions {
            grid-row: 4;
            grid-column: 2 / 4;
            justify-content: flex-end;
        }
    }

    @media (max-width: 480px) {
        .seller_product_item {
            grid-template-columns: 80px 1fr 1fr;
            grid-template-rows: auto auto auto auto;
            padding: 10px;
            gap: 8px 10px;
        }

        .seller_product_img {
            grid-row: span 3;
            grid-column: 1;
            width: 80px;
            height: 80px;
        }

        .seller_product_name {
            grid-row: 1;
            grid-column: 2 / 4;
            font-size: 12px;
        }

        .seller_product_code {
            grid-row: 2;
            grid-column: 2 / 4;
            font-size: 11px;
        }

        .seller_product_quantity {
            grid-row: 3;
            grid-column: 2 / 4;
            justify-content: flex-start;
            margin-left: auto;
        }

        .seller_product_price_wrap {
            grid-row: 4;
            grid-column: 1 / 2;
            align-items: flex-start;
        }

        .seller_product_price {
            font-size: 16px;
        }

        .seller_product_old_price {
            font-size: 12px;
        }

        .seller_product_discount {
            font-size: 10px;
            padding: 2px 6px;
        }

        .seller_product_actions {
            grid-row: 4;
            grid-column: 2 / 4;
            justify-content: flex-end;
            margin-left: auto;
        }

        .seller_btn_add {
            padding: 8px 16px;
            font-size: 12px;
            width: 100%;
        }

        .seller_quantity_controls {
            padding: 2px;
            gap: 6px;
        }

        .seller_qty_btn {
            width: 34px;
            height: 34px;
            font-size: 14px;
        }

        .seller_quantity_input {
            width: 45px;
            font-size: 12px;
        }
    }
    /****** FIN LISTADO DE PRODUCTOS ******/

}