﻿
#MainContentDefault {
    position: sticky;
    top: 0 !important;
    background-color: transparent;
}


.ImagenTituloChico {
    position: absolute;
    width: 10rem;
    max-width: 48%;
    left: .8em;
    margin-top: .3em;
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Transición suave para la transformación y sombra */
    filter: drop-shadow(0 8px 15px rgb(0, 0, 0, 0,90)); /* Sombra reducida */
}


.ImagenTituloChico:active {
    width: 9.7rem;
    max-width: 65%;
    left: .8em;
    left: 1em;
    margin-top: .3em;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0,8)); /* Sombra reducida */
    transform: scale(.8); /* Reduce el tamaño del botón para simular que está siendo presionado */
}


.spanTituloChico {
    position: absolute;
    left: 3.5em;
    margin-top: .3em;
    white-space: nowrap;
    font-size: 1.3rem;
    font-weight: 400;
    color: #fcd46b;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    vertical-align: middle;
}

.cssImageButtonLogin {
    position: absolute;
    right: 4.5em;
    top: .65em;
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Transición suave para la transformación y sombra */
    filter: drop-shadow(0 8px 15px rgb(0, 0, 0, 0,90)); /* Sombra reducida */
}


.cssImageButtonLogin:active {
    position: absolute;
    right: 4.5em;
    top: .65em;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0,8)); /* Sombra reducida */
    transform: scale(.8); /* Reduce el tamaño del botón para simular que está siendo presionado */
}


.fixed-header {
    z-index: 10000000 !important;
    position: fixed;
    height: 3.5em;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    color: #333;
    font-family: sans-serif;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 80, 0.7);
    top: env(safe-area-inset-top);
}

.cssImageButtonRegistrarse {
    position: absolute;
    right: 1.2em;
    top: .6em;
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Transición suave para la transformación y sombra */
    filter: drop-shadow(0 8px 15px rgb(0, 0, 0, 0,90)); /* Sombra reducida */
}


    .cssImageButtonRegistrarse:active {
        position: absolute;
        right: 1.2em;
        top: .6em;
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0,8)); /* Sombra reducida */
        transform: scale(.8); /* Reduce el tamaño del botón para simular que está siendo presionado */
    }


.cssImageButtonCarrito {
    position: absolute;
    right: 1.2em;
    top: .6em;
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Transición suave para la transformación y sombra */
    filter: drop-shadow(0 8px 15px rgb(0, 0, 0, 0,90)); /* Sombra reducida */
}


    .cssImageButtonCarrito:active {
        position: absolute;
        right: 1.2em;
        top: .6em;
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0,8)); /* Sombra reducida */
        transform: scale(.8); /* Reduce el tamaño del botón para simular que está siendo presionado */
    }


.cssButtonNombreUsuario {
    position: absolute;
    right: 3.2em;
    top: .5em;
}


.cssImageButtonLlamaSubeProduct {
    filter: drop-shadow(0 8px 15px rgb(0, 0, 0, 0,90)); /* Sombra reducida */

    position: absolute;
    right: .7em;
    top: .4em;
    width: 2.5em;
    transition: transform 0.1s ease, box-shadow 0.1s ease; /* Transición suave para la transformación y sombra */
}

    .cssImageButtonLlamaSubeProduct:active {
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0,8)); /* Sombra reducida */

        position: absolute;
        right: .7em;
        top: .4em;
        transform: scale(.8); /* Reduce el tamaño del botón para simular que está siendo presionado */
    }





.EstiloIos {
    border-radius: 1.5em;
    line-height: 1.5;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 200, 0.7);
    padding: 1em;
    box-shadow: 0px 1px 3px 1px rgba(0,0,0,0.75);
    -webkit-box-shadow: 0px 1px 3px 1px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 1px 3px 1px rgba(0,0,0,0.75);
}



.containerListView {
    width: calc(100vw - 1em) !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    padding-top: 1em;
}

.panel1 {
    width: calc(50vw - 0.5em) !important /* Por defecto, ambos paneles ocuparán el 100% del ancho */
}

/* Estilos para cuando la pantalla está en orientación horizontal (paisaje) */
@media screen and (orientation: landscape) {
    .panel1 {
        width: calc(25vw - 0.25em) !important; /* El panel ocupará el 50% del ancho */
        position: relative;
    }
}

.ocultar {
    visibility: hidden;
}

.imgProd {
    display: block;
    width: 100%;
    height: 11em;
    min-height: 11em;
    background-color: #eee;
    object-fit: cover;
    object-position: center;
    border-radius: .5em;
}


.paddIsqDer {
    padding-left: .5em;
    padding-right: .5em;
}


.efectoCarrito {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(.1);
    }

    100% {
        transform: scale(1);
    }
}



.ImageVendedorCSS {
    width: 2em; /* Ajusta el ancho al deseado, aquí es 2em */
    height: 2em; /* Ajusta la altura igual que el ancho para mantener aspecto circular */
    border-radius: 50%; /* Hace que la imagen sea completamente circular */
    object-fit: cover; /* Asegura que la imagen cubra completamente el espacio sin distorsionarse */
    display: block; /* Opcional, asegura que la imagen no tenga espacio extra alrededor */
    overflow: hidden; /* Oculta cualquier parte de la imagen que sobresalga del área circular */
    position: absolute;
    top: -.3em;
    left: -.3em;
}

@keyframes rotateImage {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1800deg); /* 360 grados * 5 vueltas */
    }
}

.rotating {
    animation: rotateImage 5s linear; /* Ajusta la duración según necesites */
}




.FichaProdCSS {
    max-width: calc(50vw - .3em) !important;
    height: 26.5em; /* O la altura "necesaria" */
    border-radius: 1em;
    margin: 1.5em 0.2em 1.5em .4em;
    padding: .4em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    overflow: hidden; /* O overflow: auto; */
}

.LineasJuntas {
    line-height: 110%; /* Ajusta este valor según necesites */
    left: -.3em;
    position: relative;
}



.CSSPanelDescripProdVenta {
    padding: .2em;
    margin: .2em;
    width: 100%;
}



.PanelDescripProdVentaCSS {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido horizontalmente */
    justify-content: flex-start; /* Alinea el contenido al inicio verticalmente */
    width: 100%; /* Ancho del panel */
    overflow: auto; /* Permite el scroll cuando es necesario */
    padding: .2em 0 .2em 0;
    box-sizing: border-box;
}

    .PanelDescripProdVentaCSS:not(:empty) {
        justify-content: center; /* Centra verticalmente si el panel no está vacío y no hay suficiente contenido para scroll */
    }


.ButtonDerechaFichProdCSS {
    margin-top: -.12em;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    margin-left: -.13em;
    vertical-align: middle;
    height: 2.5em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.4em;
    background-image: url('/Imagenes/Iconos/Borrar.png');
    padding: .2em;
}

.ButtonIsqFichProdCSS {
    margin-top: -.12em;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    margin-right: -.13em;
    vertical-align: middle;
    height: 2.5em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.4em;
    background-image: url('/Imagenes/Iconos/EditProductVendedor.png');
    padding: .2em;
}

.ButtonIsqGuardarCSS {
    margin-top: -.12em;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    margin-right: -.13em;
    vertical-align: middle;
    height: 2.5em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.4em;
    background-image: url('/Imagenes/Iconos/Guardar.png');
    padding: .2em;
}



.BtnDerFichClientProdCSS {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    margin-left: -.13em;
    background-size: cover; /* Ajusta la imagen para cubrir todo el botón */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    white-space: pre-wrap; /* Asegura que se respetan los saltos de línea y espacios */
    padding: 0;
    margin-right: 0;
    vertical-align: middle;
    text-align: center;
    padding-bottom: .2em;
}

.BtnIsqFichClientProdCSS {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    margin-right: -.13em;
    background-size: cover; /* Ajusta la imagen para cubrir todo el botón */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    white-space: pre-wrap; /* Asegura que se respetan los saltos de línea y espacios */
    padding: 0;
    margin-left: 0;
    vertical-align: middle;
    text-align: center;
    padding-bottom: .2em;
}



.cssButtonEmojiVendedor {
    padding: 0;
    margin: 0;
}



.CssImageUsuarioOpinaA {
    position: absolute;
    right: -1.5em;
    top: -1em;
    width: 4em;
    border-radius: 50%;
}

.CssImageUsuarioOpinaB {
    position: absolute;
    left: -1.5em;
    top: -1em;
    width: 4em;
    border-radius: 50%;
}


.category {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
}

.subcategory {
    margin-left: 20px;
    margin-bottom: 5px;
}


.modal {
    display: none; /* Oculto por defecto */
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }



.PanelSeleccionarCategCSS {
    z-index: 100;
    position: relative;
    height: 21em;
    border-radius: 0.5em; /* Añade un radio de borde de 0.5em */
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.4), /* Sombra interior ligera en la parte superior */
    inset 0 -3px 5px rgba(0,0,0,0.4); /* Sombra interior ligera en la parte inferior */
}


.accordionHeader {
    width: 20em;
    text-align: left;
    cursor: pointer;
    height: 2.3em;
    font-size: 1.15em;
    font-weight: bold;
    box-shadow: rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
    border-radius: .5em;
    padding: 0.48em 0.2em 0.6em 0.6em;
    max-width: 100%;
}

.accordionHeaderSelected {
    width: 20em;
    cursor: pointer;
    box-shadow: rgba(28, 102, 255, 2) 0px -2px 6px 0px inset;
    text-align: left;
    height: 2.3em;
    font-size: 1.15em;
    font-weight: bold;
    border-radius: .5em;
    padding: 0.48em 0.2em 0.6em 0.6em;
    max-width: 100%;
}

.auto-style1 {
    margin: auto auto;
    margin-top: -3px;
    margin-bottom: -1em;
    padding-top: 1em;
    padding-bottom: 3em;
    width: 22em;
    max-width: 100%;
    box-shadow: 0px 0px 3px 1px #000000;
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1em;
}

.Image6CSS {
    padding-right: .2em;
    padding-bottom: 0.5em;
}

.modal {
    display: none; /* Hidden by default */
    z-index: 1000000;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }



.PanelDireccEnviosCSS {
    z-index: 10000;
    position: relative;
    height: 20em;
    overflow-y: auto; /* Habilita solo el desplazamiento vertical */
    overflow-x: hidden; /* Oculta el desplazamiento horizontal */
    border-radius: 0.5em; /* Añade un radio de borde de 0.5em */
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.4), /* Sombra interior ligera en la parte superior */
    inset 0 -3px 5px rgba(0,0,0,0.4); /* Sombra interior ligera en la parte inferior */
}



/* ===== Overlay y modal ===== */
#mf-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    padding: 1.2rem;
    z-index: 2147483647;
}

#mf-modal {
    width: min(900px, 100%);
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#mf-toolbar {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .7rem .9rem;
    border-bottom: 1px solid #eee;
    background: #fff;
}

#mf-title {
    font-weight: 700;
    font-size: 1.05rem;
    flex: 1;
}

#mf-close {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

#mf-body {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1rem;
    padding: 1rem;
    overflow: auto
}

@media (max-width: 780px) {
    #mf-body {
        grid-template-columns: 1fr;
        max-height: calc(90vh - 52px);
    }
}

.mf-left {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.mf-preview-wrap {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

#mf-preview {
    max-width: 100%;
    max-height: 50vh;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.mf-right {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.mf-field label {
    display: block;
    font-size: .9rem;
    color: #555;
    margin-bottom: .25rem;
}

.mf-static {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: .55rem .7rem;
    word-break: break-word;
}

#mf-desc-extra {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: .6rem .7rem;
    font-size: .98rem;
    resize: vertical;
    min-height: 6rem;
    outline: none;
}

    #mf-desc-extra:focus {
        border-color: #999;
    }

.mf-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
}

    .mf-actions.right {
        justify-content: flex-end;
        margin-top: .3rem;
    }

.mf-btn {
    border: 0;
    border-radius: 10px;
    padding: .55rem .9rem;
    font-weight: 600;
    cursor: pointer;
}

    .mf-btn.primary {
        background: #111;
        color: #fff;
    }

    .mf-btn.secondary {
        background: #f2f2f2;
    }

    .mf-btn.ghost {
        background: transparent;
        border: 1px solid #ddd;
    }

.mf-status {
    min-height: 1.2rem;
    font-size: .92rem;
    color: #444;
}

    .mf-status.ok {
        color: #0a7a32;
    }

    .mf-status.err {
        color: #b00020;
    }

.mf-btn[disabled] {
    opacity: .6;
    cursor: not-allowed
}

/* spinner del botón Guardar */
.mf-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: .6rem;
    animation: mfspin 1s linear infinite;
}

@keyframes mfspin {
    to {
        transform: rotate(360deg)
    }
}

.mf-saving .mf-save-text {
    opacity: .8
}

.mf-saving .mf-spinner {
    display: inline-block
}

#mf-desc {
    white-space: pre-line;
}



/* bloquear scroll del body */
html.mf-noscroll, html.mf-noscroll body {
    overflow: hidden;
    overscroll-behavior: none;
}


/* ===== Modal ===== */
#vt-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    z-index: 999999;
}

    #vt-overlay.vt-show {
        display: flex !important;
    }

#vt-modal {
    background: #fff;
    border-radius: 14px;
    width: min(900px,95vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    overflow: hidden;
}

#vt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    border-bottom: 1px solid #e6e6e6
}

#vt-body {
    overflow: auto;
    min-height: 0
}

/* ===== Tabla ===== */
.vt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px
}

    .vt-table thead {
        background: #fafafa;
        position: sticky;
        top: 0;
        z-index: 1
    }

    .vt-table th, .vt-table td {
        padding: .65rem .8rem;
        border-bottom: 1px solid #eee
    }

.vt-row {
    cursor: pointer
}

    .vt-row:hover {
        background: #f6f8ff
    }

.vt-name {
    display: inline-block;
    max-width: 28ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.vt-cell-num {
    text-align: right;
    font-variant-numeric: tabular-nums
}

.vt-deuda {
    font-weight: 600
}


#vt-modal {
    display: flex;
    flex-direction: column
}

#vt-body {
    flex: 1;
    overflow: auto;
    min-height: 0
}

#vt-foot {
    border-top: 1px solid #eee;
    padding: .6rem 1rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem
}

    #vt-foot .vt-total-label {
        opacity: .7
    }

    #vt-foot .vt-total-value {
        font-weight: 700
    }

#vd-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    z-index: 1000000
}

    #vd-overlay.vd-show {
        display: flex !important;
    }

#vd-modal {
    background: #fff;
    border-radius: 14px;
    width: min(800px,95vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.45)
}

#vd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    border-bottom: 1px solid #e6e6e6
}

#vd-body {
    overflow: auto;
    min-height: 0
}

.vd-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px
}

    .vd-table thead {
        background: #fafafa;
        position: sticky;
        top: 0;
        z-index: 1
    }

    .vd-table th, .vd-table td {
        padding: .65rem .8rem;
        border-bottom: 1px solid #eee
    }

.vd-cell-num {
    text-align: right;
    font-variant-numeric: tabular-nums
}

.vd-btn {
    background: #2563eb;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: .35rem .6rem;
    cursor: pointer
}

    .vd-btn:hover {
        filter: brightness(1.05)
    }




.proc-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    z-index: 999999;
}

.proc-box {
    background: #0f172a;
    color: #e5e7eb;
    padding: 1rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    min-width: 230px;
    font-size: 0.95rem;
}

.proc-spinner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.5);
    border-top-color: #22c55e;
    animation: proc-spin .8s linear infinite;
}

@keyframes proc-spin {
    to {
        transform: rotate(360deg);
    }
}
