:root{
        --box-color: #59cb9a;
        --main-color-blue: #1754cf;
        --main-color-blue-rgb: 23,84,207;
        --main-color:var(--main-color-blue);
        
        --main-color-contrast: #ffffff;
        --main-color-contrast-rgb: 255,255,255;
        --main-color-darker: #0f3a99;
        --main-color-shade: #3a66d1;
        --main-color-tint: #4d7ee6;
        --main-color-lighter: #e1e5f9;

    --secondary-color: #e61810;
    --secondary-color-rgb: 230,24,16;
    --secondary-color-contrast: #ffffff;
    --secondary-color-contrast-rgb: 255,255,255;
    --secondary-color-darker: #b30000;
    --secondary-color-shade: #cd0000;
    --secondary-color-tint: #ff322a;
    --secondary-color-lighter: #ff4b43;

    --accent-color: #4747bb;
    --accent-color-rgb: 71,71,187;
    --accent-color-contrast: #ffffff;
    --accent-color-contrast-rgb: 255,255,255;
    --accent-color-darker: #141488;
    --accent-color-shade: #2e2ea2;
    --accent-color-tint: #6161d5;
    --accent-color-lighter: #7a7aee;

    --success-color: #2dd55b;
    --success-color-rgb: 45,213,91;
    --success-color-contrast: #161616;
    --success-color-contrast-rgb: 0,0,0;
    --success-color-darker: #16662d;
    --success-color-shade: #28bb50;
    --success-color-tint: #42d96b;
    --success-color-lighter: #5de38a;

    --warning-color: #ffc409;
    --warning-color-rgb: 255,196,9;
    --warning-color-contrast: #000000;
    --warning-color-contrast-rgb: 0,0,0;
    --warning-color-darker: #cc9d07;
    --warning-color-shade: #e0ac08;
    --warning-color-tint: #ffca22;
    --warning-color-lighter: #ffd144;

    --danger-color: #c5000f;
    --danger-color-rgb: 197,0,15;
    --danger-color-contrast: #ffffff;
    --danger-color-contrast-rgb: 255,255,255;
    --danger-color-darker: #740e16;
    --danger-color-shade: #ad000d;
    --danger-color-tint: #cb1a27;
    --danger-color-lighter: #f2463b;

    --light-color: #f8f8f8;
    --light-color-rgb: 246,248,252;
    --light-color-contrast: #161616;
    --light-color-contrast-rgb: 0,0,0;
    --light-color-darker: rgb(170, 170, 170);
    --light-color-shade: #dddada;
    --light-color-tint: #f5f5f5;
    --light-color-lighter: #ffffff;

    --medium-color: #5f5f5f;
    --medium-color-rgb: 95,95,95;
    --medium-color-contrast: #ffffff;
    --medium-color-contrast-rgb: 255,255,255;
    --medium-color-darker: #4b4b4b;
    --medium-color-shade: #545454;
    --medium-color-tint: #6f6f6f;
    --medium-color-lighter: #7d7d7d;

    --dark-color: #161616;
    --dark-color-rgb: 47,47,47;
    --dark-color-contrast: #f6f8fc;
    --dark-color-contrast-rgb: 246,248,252;
    --dark-color-darker: #262626;
    --dark-color-shade: #292929;
    --dark-color-tint: #444444;
    --dark-color-lighter: #595959;

    --rgba-opacity-f: 1;
    --rgba-opacity-mid: .5;
    --rgba-opacity-mid-t: .25;

    --text-xxl: 2.4rem;
    --text-xl: 1.85rem;
    --text-lg: 1.5rem;
    --text-md: 1.25rem;
    --text-base-important: 1.1rem;
    --text-base: 1rem;
    --text-s: .875rem;
    --text-xs: .75rem;

    --radius-xl: 1rem;
    --radius-l: .75rem;
    --radius-base: .5rem;
    --radius-s: .25rem;
    --radius-xs: .12rem;
    --radius-full: 99999999px;

    --space-base: 1rem;
    --space-s: calc(var(--space-base) * .25);
    --space-1: calc(var(--space-base) * .5);
    --space-2: var(--space-base);
    --space-3: calc(var(--space-base) * 1.5);
    --space-4: calc(var(--space-base) * 2);
    --space-5: calc(var(--space-base) * 2.5);
    --space-6: calc(var(--space-base) * 3);
    --space-7: calc(var(--space-base) * 3.5);
    --space-8: calc(var(--space-base) * 4);
    --space-9: calc(var(--space-base) * 4.5);
    --space-10: calc(var(--space-base) * 5);
    --space-11: calc(var(--space-base) * 5.5);
    --space-12: calc(var(--space-base) * 6);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --line-height-block: 3rem;

        --def-button-fill: var(--main-color);
        --def-button-text: var(--main-color-contrast);
    --def-button-rounded: var(--radius-full);
    --def-button-size: .875rem;
    --def-button-block: max-content;
    --def-button-height: var(--line-height-block);
    --def-button-shadow: var(--shadow-sm);
        --def-button-hover-fill: var(--main-color-tint);
    --def-button-hover-text: var(--main-color-contrast);
        --def-button-active-fill: var(--main-color);
    --def-button-active-text: var(--main-color-contrast);
}
@layer baseSeller, buttons;
@layer baseSeller{
    /* body {
        margin-top: 8px !important;
    } */
    /* HEADER SELLER */
   /* .logo_seller {
        height: 40px;
        margin: auto;
        width: max-content;
    }
    .logo_seller a svg {
        height: 35px;
    } */
     
    /*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;
	}
	
	.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;
     }
    .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: 100%;
        transition: all 0.5s ease;
        z-index: 50;
        /* padding: var(--space-4); */
    }
    @media (min-width: 481px) {
        .home-section {
            width: calc(100% - 60px);
        }
    }
    .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;
    }

    /* logged_name.html dentro del sidebar */
    .sidebar-seller-user .logged-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 .logged-user-avatar .material-symbols-outlined {
        font-size: 28px;
        color: #4f46e5;
    }

    .sidebar-seller-user .logged-user-info {
        flex: 1;
        min-width: 0;
        transition: opacity 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .sidebar-seller:not(.open) .sidebar-seller-user .logged-user-info {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .sidebar-seller-user .logged-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 .logged-user-role {
        font-size: 0.75rem;
        color: #6b7280;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 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;
        text-decoration: none;
        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: #1e40af !important;
        font-weight: 600;
    }
    
    .sidebar-seller-nav-item .material-symbols-outlined {
        font-size: 20px;
        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;
    }
    
    .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;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        /* .sidebar-seller {
            transform: translateX(-100%);
        } */
        
        .sidebar-seller.open {
            transform: translateX(0);
        }
      
    }
    
    /* Sidebar siempre superpuesto: contenido solo respeta el ancho colapsado (60px) */
    @media (min-width: 481px) {
        .home-section {
            margin-left: 60px;
        }
    }

    @media (min-width: 481px) and (max-width: 768px) {
        .home-section {
            margin-left: 60px;
            padding: 0 !important;
        }
    }

    /* 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);
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: "cat search user cart";
        column-gap: var(--space-2);
    }
    .btn-open-categories-sidebar {
        grid-area: cat;
    }
    #formBusquedaSeller {
        grid-area: search;
    }
    .content_selected_user_header {
        grid-area: user;
    }
    .cart_seller {
        grid-area: cart;
    }
    .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 {
        width: calc(100% - 40px);
        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;
        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);
    }
    /* 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; 
    }
    .site_seller {
        --cart-line-height: 7.5rem;
    }
    #seller_cart .linea_carro_lat,
    #seller_cart_sidebar .linea_carro_lat,
    .content_cart_seller .linea_carro_lat{
        width: 100%;
        min-height: var(--cart-line-height);
        height: var(--cart-line-height);
        display: flex;
        align-items: stretch;
        gap: .5rem;
        padding: var(--space-s);
        margin-top: var(--space-s) !important;
        margin-bottom: 0;
        border-radius: var(--radius-base);
        background: var(--light-color-lighter);
        box-shadow: var(--shadow);
        overflow: hidden;
        float: none;
    }
    #seller_cart .img_carro_lat,
    #seller_cart_sidebar .img_carro_lat,
    .content_cart_seller .img_carro_lat{
        width: 5rem;
        min-width: 5rem;
        max-width: 5rem;
        height: calc(var(--cart-line-height) - (var(--space-s) * 2));
        margin-right: 0;
        border-radius: var(--radius-l);
        overflow: hidden;
        flex: 0 0 auto;
        float: none;
        aspect-ratio: 2 / 3;
    }
    #seller_cart .img_carro_lat .img,
    #seller_cart_sidebar .img_carro_lat .img,
    .content_cart_seller .img_carro_lat .img,
    #seller_cart .img_carro_lat img,
    #seller_cart_sidebar .img_carro_lat img,
    .content_cart_seller .img_carro_lat img{
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }
    #seller_cart .description_carro_lat,
    #seller_cart_sidebar .description_carro_lat,
    .content_cart_seller .description_carro_lat{
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding-left: var(--space-1);
        overflow: hidden;
        float: none;
    }
    #seller_cart .desc_carro_lat,
    #seller_cart_sidebar .desc_carro_lat,
    .content_cart_seller .desc_carro_lat{
        padding-left: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #seller_cart .cant_precio_carro_lat.seller,
    #seller_cart_sidebar .cant_precio_carro_lat.seller,
    .content_cart_seller .cant_precio_carro_lat.seller{
        width: 100%;
        min-width: 0;
        padding-left: 0;
        gap: .5rem;
        flex-wrap: wrap;
    }
    #seller_cart .borrar_carro_lat,
    #seller_cart_sidebar .borrar_carro_lat,
    .content_cart_seller .borrar_carro_lat{
        width: auto;
        min-width: 2rem;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: .35rem;
        float: none;
        flex: 0 0 auto;
    }
    #seller_cart .borrar_carro_lat img,
    #seller_cart_sidebar .borrar_carro_lat img,
    .content_cart_seller .borrar_carro_lat img{
        width: 1rem;
        height: 1rem;
        display: block;
    }
    .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{
        display: flex;
        padding: var(--space-1) 0;
        flex-direction: column;
        gap: var(--space-2);
        max-width: 300px;
        margin-left: auto;
        text-transform: uppercase;
    }
    .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: #a8aeb9;
    }
    .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{
        padding: var(--space-4);
        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;
        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;
        }
        .logo_seller a svg{
            height: 25px;
        }
        .search_input_wrapper, .search_section, .filters_section{
            padding: 5px 10px;
            
        }
        .search_section{
            padding-inline: 1px;
        }
        .search_input_wrapper svg{
            width: 30px;
        }
        .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;
            grid-template-columns: auto 1fr 1fr;
            grid-template-areas:
               "cat search search search"
                "user user user cart";
            row-gap: var(--space-1);
        }
        .btn-open-categories-sidebar{
            padding: 0.75rem;
            min-width: 40px;
        }
        #formBusquedaSeller{
            width: 100%;
        }
        .content_selected_user_header{
            justify-content: flex-start;
        }
        .cart_seller{
            justify-self: end;
        }
        .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;
    }
    .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;
    }
    .address_user_seller, .name_user_seller{
        color: #3f4958;
        display: flex;
        flex-direction: column;
    }
    .address_user_seller span, .name_user_seller span {
        font-weight: 300;
        font-size: var(--text-base);
        color: #a8aeb9;
    }
    

    /* 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;
        overflow: auto;
    }

    .line_ctacte_seller {
        display: grid;
        /* grid-template-columns: minmax(82px, 0.65fr) minmax(58px, 0.42fr)  minmax(220px, 1.7fr) minmax(60px, 0.25fr) minmax(92px, 0.75fr) minmax(108px, 0.85fr) minmax(96px, 0.75fr) minmax(96px, 0.75fr) minmax(112px, 0.85fr) ; */
        grid-template-columns: minmax(7rem, 0.65fr) minmax(6rem, 0.42fr)  minmax(7rem, 1.7fr) minmax(6rem, 0.25fr) minmax(9rem, 0.75fr) minmax(9rem, 0.85fr) minmax(9rem, 0.75fr) minmax(9rem, 0.75fr) minmax(10rem, 0.85fr);
        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;
        width: 100%;
        min-width: fit-content;
    }
    .line_factura_seller {
        display: grid;
        grid-template-columns: minmax(82px, 0.65fr) minmax(58px, 0.42fr) minmax(190px, 1.45fr) minmax(92px, 0.72fr) minmax(96px, 0.75fr) minmax(118px, 0.85fr) minmax(78px, 0.55fr);
    }

    .ctacte_item_vencido {
        border-left: 4px solid var(--danger-color);
    }

    .icono_vencido_ctacte_seller {
        display: inline-flex;
        align-items: center;
        margin-left: 4px;
    }

    .icono_vencido_ctacte_seller svg {
        width: 14px;
        height: 14px;
        fill: var(--danger-color);
        vertical-align: middle;
    }

    .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,
    .importe_ctacte_seller,
    .pagado_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;
        min-width: 0;
        white-space: nowrap;
    }

    .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;
        max-width: 100%;
    }

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

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

    .importe_ctacte_seller,
    .pagado_ctacte_seller {
        font-size: 13px;
        color: #495057;
        justify-content: flex-end;
        text-align: right;
    }

    .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: grid;
        grid-template-columns: max-content max-content;
        column-gap: 24px;
        row-gap: 10px;
        justify-content: end;
        align-items: baseline;
        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;
    }

    .totales_footer_title {
        grid-column: 1 / -1;
        color: var(--main-color-blue);
        margin-bottom: 4px;
    }

    .total_label_ctacte_seller {
        font-weight: 500;
        color: #6c757d;
        text-align: left;
    }

    .total_value_ctacte_seller {
        font-weight: 600;
        color: #2b2d42;
        text-align: right;
    }

    .porcentaje_vencido_ctacte_seller {
        font-weight: 700;
        color: var(--danger-color);
    }

    .total_label_final_ctacte_seller,
    .total_value_final_ctacte_seller {
        margin-top: 6px;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }

    .total_label_final_ctacte_seller {
        color: #2b2d42;
        font-weight: 700;
    }

    .total_value_final_ctacte_seller {
        font-size: 18px;
        font-weight: 700;
        color: var(--main-color-blue);
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .line_ctacte_seller {
            /* grid-template-columns: minmax(76px, 0.6fr) minmax(54px, 0.4fr) minmax(190px, 1.55fr) minmax(86px, 0.7fr) minmax(98px, 0.8fr) minmax(104px, 0.82fr) minmax(84px, 0.65fr) minmax(84px, 0.65fr) minmax(96px, 0.75fr) ; */
            gap: 8px;
            padding: 12px 15px;
            font-size: 13px;
        }
        .line_factura_seller {
            grid-template-columns: minmax(76px, 0.6fr) minmax(54px, 0.4fr) minmax(170px, 1.35fr) minmax(86px, 0.7fr) minmax(90px, 0.72fr) minmax(108px, 0.82fr) minmax(70px, 0.5fr);
        }
    }

    @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);
            width: 100%;
        }

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

        .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;
        }

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

        .pagado_ctacte_seller::before {
            content: "Pagado: ";
            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 {
            /* grid-template-columns: 1fr; */
            justify-content: stretch;
            row-gap: 6px;
            justify-content: space-between;
        }

        .total_label_ctacte_seller {
            text-align: left;
        }
    }

    @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,
        .importe_ctacte_seller,
        .pagado_ctacte_seller {
            font-size: 13px;
        }
    }


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

    /****** LISTADO DE PRODUCTOS ******/
    .seller_product_item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 16px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 10px 14px;
        margin-bottom: 8px;
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }

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

    /* Info: Nombre + Código */
    .seller_product_info {
        flex: 1 1 220px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .seller_product_name {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Precio */
    .seller_product_price_wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .seller_product_price {
        font-size: 18px;
        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;
    }

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

    /* Compra: inputs + botón juntos */
    .seller_product_buy {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        flex-shrink: 0;
    }

    .seller_product_quantity {
        display: flex;
    }

    .seller_product_quantity .content_inputs_producto {
        display: flex;
        gap: 8px;
    }

    .seller_product_quantity .wrapper_input_producto {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .seller_product_quantity .title_input_producto {
        font-size: 11px;
        color: #6b7280;
        font-weight: 500;
    }

    .seller_product_quantity .input_producto input {
        width: 64px;
        text-align: center;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        padding: 6px 4px;
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        outline: none;
        background: #ffffff;
    }

    .seller_product_quantity .input_producto input:focus {
        border-color: var(--main-color);
    }

    .seller_product_quantity .select_prod_variant {
        min-width: 90px;
    }

    .seller_product_quantity .select_prod_variant select {
        width: 100%;
        padding: 6px 4px;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 600;
        color: #111827;
        background: #ffffff;
        outline: none;
    }

    .seller_product_quantity .select_prod_variant select:focus {
        border-color: var(--main-color);
    }

    /* Botón Agregar */
    .seller_product_actions {
        display: flex;
        align-items: center;
    }

    .seller_btn_add {
        background: var(--main-color);
        color: var(--main-color-contrast);
        border: none;
        padding: 9px 20px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .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 {
            padding: 10px 12px;
        }

        .seller_product_info {
            flex: 1 1 100%;
        }

        .seller_product_price_wrap {
            align-items: flex-start;
        }

        .seller_product_buy {
            flex: 1 1 100%;
            justify-content: flex-end;
        }
    }

    @media (max-width: 480px) {
        .seller_product_name {
            font-size: 13px;
        }

        .seller_product_price {
            font-size: 16px;
        }

        .seller_product_buy {
            gap: 8px;
        }
        .input_producto{
            width: 100%;
        }
        .seller_product_quantity .content_inputs_producto{
            gap:var(--space-1);
        }
        .seller_product_quantity{
            justify-content: end;
        }
        .seller_product_quantity .input_producto input {
            width: 100%;
            font-size: 13px;
        }

        .seller_btn_add {
            padding: 8px 14px;
            font-size: 12px;
        }
    }

    .seller_products_report_page .wrap_users_vendedores {
        gap: 18px;
    }

    .seller_products_report_header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 18px;
    }

    .seller_products_report_actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .seller_products_report_export {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        border: 0;
        border-radius: 7px;
        background: #2dd4bf;
        color: #ffffff;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
    }

    .seller_products_report_export .material-symbols-outlined {
        font-size: 22px;
        line-height: 1;
    }

    .seller_products_report_export:hover {
        background: #14b8a6;
        transform: translateY(-1px);
    }

    .seller_products_report_bonus {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 8px 12px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: #ffffff;
        color: #374151;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
    }

    .seller_products_report_bonus input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--main-color);
    }

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

    .seller_products_report_table {
        width: 100%;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
        background: #ffffff;
    }

    .seller_product_report_head,
    .seller_product_report_row {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(56px, 0.55fr));
        align-items: center;
        gap: 0;
    }

    .seller_product_report_head.is_price,
    .seller_product_report_row.is_price {
        grid-template-columns: minmax(0, 1fr) minmax(88px, 0.32fr);
    }

    .seller_product_report_head {
        background: #f3f4f6;
        color: #374151;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 1px solid #e5e7eb;
    }

    .seller_product_report_row {
        min-height: 52px;
        border-bottom: 1px solid #f1f5f9;
        color: #111827;
        font-size: 13px;
    }

    .seller_product_report_row:last-child {
        border-bottom: none;
    }

    .seller_product_report_row:hover {
        background: #f9fafb;
    }

    .seller_product_report_cell {
        padding: 8px 6px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .seller_product_report_code {
        display: block;
        font-weight: 700;
        color: #1f2937;
        line-height: 1.15;
    }

    .seller_product_report_name {
        display: block;
        white-space: normal;
        line-height: 1.25;
        color: #6b7280;
        font-size: 13px;
        font-weight: 700;
        overflow-wrap: anywhere;
        margin-top: 4px;
    }

    .seller_product_report_product {
        min-width: 0;
    }

    .seller_product_report_number,
    .seller_product_report_price {
        text-align: right;
        font-variant-numeric: tabular-nums;
        font-weight: 700;
        color: #111827;
    }

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

    .seller_product_report_loading,
    .seller_product_report_empty {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        min-height: 220px;
        padding: 36px;
        color: #6b7280;
        text-align: center;
        font-size: 14px;
    }

    .seller-product-report-status {
        text-align: center;
        padding: 18px;
        color: #6b7280;
        font-size: 13px;
    }

    @media (max-width: 900px) {
        .seller_products_report_header {
            flex-direction: row;
            align-items: flex-start;
        }

        .seller_products_report_actions {
            justify-content: flex-end;
        }

        .search_filter_container {
            gap: 10px;
        }

        .seller_products_report_export {
            width: 38px;
            height: 38px;
            min-width: 38px;
            min-height: 38px;
            flex-basis: 38px;
        }

        .seller_product_report_head,
        .seller_product_report_row {
            grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(52px, 0.55fr));
        }

        .seller_product_report_head.is_price,
        .seller_product_report_row.is_price {
            grid-template-columns: minmax(0, 1fr) minmax(92px, 0.36fr);
        }

        .seller_product_report_cell {
            padding: 8px 5px;
            font-size: 12px;
        }

        .seller_product_report_name {
            font-size: 12px;
        }
    }

    @media (max-width: 520px) {
        .seller_products_report_page .wrap_users_vendedores {
            padding-left: 8px;
            padding-right: 8px;
        }

        .seller_product_report_head,
        .seller_product_report_row {
            grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(48px, 0.55fr));
        }

        .seller_product_report_head.is_price,
        .seller_product_report_row.is_price {
            grid-template-columns: minmax(0, 1fr) minmax(86px, 0.42fr);
        }

        .seller_product_report_head {
            font-size: 11px;
        }

        .seller_product_report_row {
            font-size: 12px;
        }

        .seller_product_report_cell {
            padding: 7px 4px;
        }

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

}

@layer buttons{
    .app_button {
        margin: 0;
        padding: 8px 16px;
        border: 1px solid transparent;
        outline: none;
        background-color: var(--def-button-fill);
        color: var(--def-button-text);
        font-size: var(--def-button-size);
        font-weight: 600;
        line-height: 1;
        border-radius: var(--def-button-rounded);
        width: var(--def-button-block);
        min-height: 40px;
        max-height: var(--def-button-height);
        transition: all 0.2s ease;
        cursor: pointer;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        box-shadow: var(--def-button-shadow);
        gap: var(--space-1);
        text-decoration: none;
        white-space: nowrap;
        --hover-fill: var(--def-button-hover-fill);
        --active-fill: var(--def-button-active-fill);
        --hover-text: var(--def-button-hover-text);
        --active-text: var(--def-button-active-text);
    }

    .app_button svg{
        width: 1em;
        height: 1em;
        fill: currentColor;
        stroke: currentColor;
        transition: all 0.2s ease;
    }

    .app_button.icon-only,
    .app_button.icon_only{
        width: 2rem;
        height: 2rem;
        min-height: 2rem;
        padding: var(--space-1);
        aspect-ratio: 1 / 1;
    }

    .app_button.block-full {
        width: 100%;
        flex-grow: 1;
    }

    .app_button.grow{
        flex-grow: 1;
        width: auto;
    }

    .app_button.main {
        --def-button-fill: var(--main-color);
        --def-button-text: var(--main-color-contrast);
        --hover-fill: var(--main-color-tint);
        --active-fill: var(--main-color-darker);
        --hover-text: var(--main-color-contrast);
        --active-text: var(--main-color-contrast);
    }

    .app_button.secondary {
        --def-button-fill: var(--secondary-color);
        --def-button-text: var(--secondary-color-contrast);
        --hover-fill: var(--secondary-color-shade);
        --active-fill: var(--secondary-color-darker);
        --hover-text: var(--secondary-color-contrast);
        --active-text: var(--secondary-color-contrast);
    }

    .app_button.accent {
        --def-button-fill: var(--accent-color);
        --def-button-text: var(--accent-color-contrast);
        --hover-fill: var(--accent-color-shade);
        --active-fill: var(--accent-color-darker);
        --hover-text: var(--accent-color-contrast);
        --active-text: var(--accent-color-contrast);
    }

    .app_button.success {
        --def-button-fill: var(--success-color);
        --def-button-text: var(--success-color-contrast);
        --hover-fill: var(--success-color-shade);
        --active-fill: var(--success-color-darker);
        --hover-text: var(--success-color-contrast);
        --active-text: var(--success-color-contrast);
    }

    .app_button.danger {
        --def-button-fill: var(--danger-color);
        --def-button-text: var(--danger-color-contrast);
        --hover-fill: var(--danger-color-shade);
        --active-fill: var(--danger-color-darker);
        --hover-text: var(--danger-color-contrast);
        --active-text: var(--danger-color-contrast);
    }

    .app_button.dark {
        --def-button-fill: var(--dark-color);
        --def-button-text: var(--dark-color-contrast);
        --hover-fill: var(--dark-color-tint);
        --active-fill: var(--dark-color-darker);
        --hover-text: var(--dark-color-contrast);
        --active-text: var(--dark-color-contrast);
    }

    .app_button.light {
        --def-button-fill: var(--light-color);
        --def-button-text: var(--light-color-contrast);
        --hover-fill: var(--light-color-shade);
        --active-fill: var(--light-color-darker);
        --hover-text: var(--light-color-contrast);
        --active-text: var(--light-color-contrast);
    }

    .app_button.medium {
        --def-button-fill: var(--medium-color);
        --def-button-text: var(--medium-color-contrast);
        --hover-fill: var(--medium-color-tint);
        --active-fill: var(--medium-color-darker);
        --hover-text: var(--medium-color-contrast);
        --active-text: var(--medium-color-contrast);
    }

    .app_button.warning {
        --def-button-fill: var(--warning-color);
        --def-button-text: var(--warning-color-contrast);
        --hover-fill: var(--warning-color-tint);
        --active-fill: var(--warning-color-darker);
        --hover-text: var(--warning-color-contrast);
        --active-text: var(--warning-color-contrast);
    }

    .app_button.fill {
        background-color: var(--def-button-fill);
        color: var(--def-button-text);
    }

    .app_button.outline {
        background-color: #ffffff;
        color: var(--def-button-fill);
        border-color: var(--def-button-fill);
    }

    .app_button.ghost {
        background-color: transparent;
        color: var(--def-button-fill);
        box-shadow: none;
    }

    .app_button.ghosty {
        background-color: var(--light-color);
        color: var(--def-button-fill);
    }

    .app_button.soft {
        background-color: rgba(var(--main-color-blue-rgb), .12);
        color: var(--def-button-fill);
        border-color: rgba(var(--main-color-blue-rgb), .18);
        box-shadow: none;
    }

    .app_button:hover {
        background-color: var(--hover-fill);
        color: var(--hover-text);
        text-decoration: none;
    }

    .app_button.outline:hover,
    .app_button.ghost:hover,
    .app_button.ghosty:hover,
    .app_button.soft:hover {
        background-color: var(--hover-fill);
        border-color: var(--hover-fill);
        color: var(--hover-text);
    }

    .app_button:active {
        background-color: var(--active-fill);
        color: var(--active-text);
        transform: translateY(1px);
    }

    .app_button.no-shadow{
        box-shadow: none;
    }

    .app_button.no-bg{
        background: none;
    }

    .app_button.rounded-full{
        border-radius: var(--radius-full);
    }

    .app_button.rounded-l{
        border-radius: var(--radius-l);
    }

    .app_button.rounded-no{
        border-radius: 0;
    }

    .app_button.rounded-md{
        border-radius: var(--radius-xl);
    }

    .app_button.rounded-sm{
        border-radius: var(--radius-s);
    }

    .app_button.no-padding{
        padding: 0 !important;
    }

    .app_button.padding-1,
    .app_button.text-xs{
        padding: var(--space-1);
    }

    .app_button:disabled,
    .app_button[disabled] {
        opacity: .65;
        cursor: not-allowed;
    }
}

.svg-xxs svg{
    width: .6rem;
    height: .6rem;
}

.svg-xs svg{
    width: .85rem;
    height: .85rem;
}

.svg-sm svg{
    width: 1.25rem;
    height: 1.25rem;
}

.svg-base svg{
    width: 1.5rem;
    height: 1.5rem;
}

.svg-md svg{
    width: 2rem;
    height: 2rem;
}

.svg-l svg{
    width: 2.5rem;
    height: 2.5rem;
}

.svg-icon,
.simply-flex{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.svg-icon svg,
.svg-xs svg,
.svg-sm svg,
.svg-base svg,
.svg-md svg,
.svg-l svg{
    display: block;
    flex: 0 0 auto;
}

.svg-dark,
.svg-dark svg{
    color: var(--dark-color);
    fill: var(--dark-color);
    stroke: var(--dark-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .375rem .75rem;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    width: max-content;
}

.badge.rounded {
    border-radius: var(--radius-full);
}

.badge.md {
    min-height: 1.75rem;
    padding: .45rem .75rem;
    font-size: .8125rem;
}

.badge svg {
    display: block;
    flex: 0 0 auto;
    fill: currentColor;
    stroke: currentColor;
}

user-avatar.user-avatar-host {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    vertical-align: middle;
}

user-avatar.user-avatar-sm {
    width: 1.75rem;
    height: 1.75rem;
}

user-avatar.user-avatar-md {
    width: 2.25rem;
    height: 2.25rem;
}

user-avatar.user-avatar-lg {
    width: 2.5rem;
    height: 2.5rem;
}

.user-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

safe-back-button {
    display: inline-flex;
    flex: 0 0 auto;
}

.safe-back-button-inner .material-symbols-outlined {
    font-size: 1.25rem;
    line-height: 1;
}

.barcode_scanner_modal {
    position: fixed;
    inset: 0 0 0 60px;
    width: calc(100% - 60px);
    height: 100%;
    background: rgba(15, 23, 42, .86);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
}

.barcode_scanner_modal.active {
    display: flex;
}

.barcode_scanner_header {
    width: min(100%, 640px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .2);
}

.barcode_scanner_content {
    width: min(100%, 640px);
    background: #fff;
    border-radius: 0 0 1rem 1rem;
    padding: 1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .2);
}

.barcode_close_btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: .625rem 1rem;
    border-radius: .625rem;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.barcode_close_btn:hover {
    background: #c82333;
}

.scanner_btn_seller {
    background: var(--main-color, #3b82f6);
    color: #fff;
    border: none;
    padding: .5rem;
    border-radius: var(--radius-base);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease;
    margin-left: 10px;
    flex: 0 0 auto;
}

.scanner_btn_seller:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.scanner_btn_seller svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.scanner_loader_overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
}

.scanner_loader_overlay.active {
    display: flex;
}

@media (max-width: 768px) {
    .barcode_scanner_modal {
        inset: 0;
        width: 100%;
    }

    .barcode_scanner_header {
        padding: .875rem 1rem;
        border-radius: .875rem .875rem 0 0;
    }

    .barcode_scanner_content {
        border-radius: 0 0 .875rem .875rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PWA — Notification / Install
   ═══════════════════════════════════════════════════════════════════════════ */

.pwa-install-toast {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-top: 1px solid #e3e7ef;
  box-shadow: 0 -4px 20px rgba(23, 43, 77, .08);
  padding: 14px 20px;
  z-index: 1000;
  animation: pwaSlideUp .3s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes pwaSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pwa-install-toast__icon {
  color: var(--main-color-blue, #ff7600);
  flex-shrink: 0;
  display: flex;
}

.pwa-install-toast__text {
  flex: 1;
  min-width: 0;
}

.pwa-install-toast__title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1c2330;
}

.pwa-install-toast__desc {
  font-size: 12px;
  color: #6b7385;
  line-height: 1.4;
}

.pwa-install-toast__btn {
  flex-shrink: 0;
  background: var(--main-color-blue, #ff7600);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.pwa-install-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #9aa1b2;
  cursor: pointer;
  padding: 4px;
  font-size: 20px;
  line-height: 1;
}



