﻿.lista-busqueda {
    max-height: 60vh;
    overflow-y: auto;
}

.ancho-form {
    max-width: 870px;
}

.fondo-celeste, .fondo-celeste:focus {
    background-color: azure;
}


#maxBoss {
    background-color: rgba(196, 193, 192, 0.49); /* Color del fondo */
    height: 100vh;
    width: 100%;
    position: fixed;
    /* compatibilidad en diferentes navegadores web */
    -webkit-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    z-index: 10000;
}

#minBoss {
    border: 15px solid #ccc; /* Color del circulo */
    border-top-color: var(--var-colCirCar); /* Color del que gira */
    border-top-style: groove; /* solid inset ridge groove */
    height: 100px;
    width: 100px;
    border-radius: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    /* compatibilidad en diferentes navegadores web */
    -webkit-animation: girar 1.5s linear infinite;
    -o-animation: girar 1.5s linear infinite;
    animation: girar 1.5s linear infinite;
}

@keyframes girar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ===== Padron de ventas ===== */

.pv-fondo {
    background-color: var(--var-fonPagGen);
}

.pv-color {
    color: var(--var-oscTitPri);
}

.pv-cabecera {
    background: linear-gradient(135deg, var(--var-oscTitPri) 0%, var(--var-claTitPri) 100%);
}

.pv-etiqueta {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* filtros sobre la cabecera azul */
.pv-control {
    background-color: rgba(255, 255, 255, .95);
    border-color: transparent;
    color: #212529;
}

    .pv-control:focus {
        background-color: #fff;
        border-color: #fff;
        box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .35);
    }

.input-group-text.pv-control {
    color: #6C757D;
}

/* tarjeta de cada venta */
.pv-venta {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border-radius: var(--var-radBasBlo);
    padding: .7rem .9rem;
    margin-bottom: .5rem;
    box-shadow: 0 .25rem .75rem rgba(var(--var-rgbTitPri), .12);
    border: 1px solid var(--var-borBloTar);
    border-left: 4px solid var(--var-oscTitPri);
    cursor: pointer;
    transition: transform .1s, box-shadow .15s;
}

    .pv-venta:hover {
        border-color: var(--var-borBloSob);
        border-left-color: var(--var-oscTitPri);
        box-shadow: 0 .35rem .9rem rgba(var(--var-rgbTitPri), .15);
    }

    .pv-venta:active {
        transform: scale(.985);
    }

.pv-numero {
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 .4rem;
    border-radius: var(--var-radMedNum);
    background: var(--var-fonSuaIco);
    color: var(--var-oscTitPri);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-importe {
    font-weight: 700;
    color: var(--var-oscTitPri);
    white-space: nowrap;
}

.pv-vacio {
    text-align: center;
    color: #6C757D;
    padding: 2.5rem 1rem;
    background: #fff;
    border-radius: var(--var-radBasBlo);
    border: 1px solid var(--var-borBloTar);
    box-shadow: 0 .25rem .75rem rgba(var(--var-rgbTitPri), .12);
}

/* montos del modal */
.pv-monto {
    background: #fff;
    border-radius: var(--var-radBasBlo);
    padding: .6rem .75rem;
    height: 100%;
    box-shadow: 0 .25rem .75rem rgba(var(--var-rgbTitPri), .12);
    border: 1px solid var(--var-borBloTar);
    border-left: 4px solid #CED4DA;
}

    .pv-monto .pv-etiqueta {
        color: #6C757D;
    }

.pv-total {
    border-left-color: var(--var-oscTitPri);
}

    .pv-total .fs-5 {
        color: var(--var-oscTitPri);
    }

.pv-saldo {
    border-left-color: #ADB5BD;
}

    .pv-saldo.con-deuda {
        border-left-color: #DC3545;
        background: #FFF5F5;
    }

        .pv-saldo.con-deuda .fs-5 {
            color: #DC3545;
        }

.pv-efectivo {
    border-left-color: #198754;
}

.pv-banco {
    border-left-color: #0DCAF0;
}

/* productos del modal */
.pv-item {
    padding: .5rem 1rem;
    border-bottom: 1px solid var(--var-linSepFil);
}

    .pv-item:nth-child(even) {
        background: var(--var-fonFilAlt);
    }

    .pv-item:last-child {
        border-bottom: 0;
    }

/* boton principal */
.pv-boton {
    background: var(--var-oscTitPri);
    border-color: var(--var-oscTitPri);
    color: #fff;
}

    .pv-boton:hover, .pv-boton:focus {
        background: var(--var-colBotToc);
        border-color: var(--var-colBotToc);
        color: #fff;
    }

/* bloques blancos del modal (cliente y productos) */
.pv-bloque {
    background: #fff;
    border-radius: var(--var-radBasBlo);
    border: 1px solid var(--var-borBloTar);
    box-shadow: 0 .25rem .75rem rgba(var(--var-rgbTitPri), .12);
}


/* ===== Menu ===== */

.pv-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .9rem;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.pv-opcion {
    background: var(--var-fonOpcMen);
    border-radius: var(--var-radGraMen);
    padding: 1.4rem 1rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--var-borOpcMen);
    border-bottom: 4px solid var(--var-oscTitPri);
    box-shadow: 0 .25rem .75rem rgba(var(--var-rgbTitPri), .12);
    cursor: pointer;
    transition: transform .1s, box-shadow .15s;
}

    .pv-opcion:hover {
        border-color: var(--var-borBloSob);
        border-bottom-color: var(--var-oscTitPri);
        box-shadow: 0 .5rem 1.2rem rgba(var(--var-rgbTitPri), .18);
    }

    .pv-opcion:active {
        transform: scale(.97);
    }

.pv-opcion-icono {
    width: var(--var-tamCirIco);
    height: var(--var-tamCirIco);
    margin: 0 auto .75rem;
    border-radius: 50%;
    background: var(--var-fonSuaIco);
    color: var(--var-oscTitPri);
    font-size: var(--var-tamIcoMen);
    display: flex;
    align-items: center;
    justify-content: center;
}



/* boton Menu en la cabecera azul */
.pv-btn-menu {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}

    .pv-btn-menu:hover, .pv-btn-menu:focus {
        background: rgba(255, 255, 255, .28);
        color: #fff;
        border-color: rgba(255, 255, 255, .5);
    }



/* ===== Nota de venta ===== */

/* titulo de cada bloque */
.pv-seccion {
    font-size: .78rem;
    font-weight: 600;
    color: var(--var-oscTitPri);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
}

/* total en la cabecera azul */
.pv-total-caja {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--var-oscTitPri);
}

/* caja de busqueda de productos */
.pv-buscar .input-group-text {
    background: #fff;
    color: var(--var-oscTitPri);
    border: 2px solid var(--var-oscTitPri);
    border-right: 0;
    border-radius: var(--var-radBasBlo) 0 0 var(--var-radBasBlo);
}

.pv-buscar .form-control {
    border: 2px solid var(--var-oscTitPri);
    border-left: 0;
    border-radius: 0 var(--var-radBasBlo) var(--var-radBasBlo) 0;
}

    .pv-buscar .form-control:focus {
        box-shadow: none;
    }

.pv-buscar:focus-within {
    box-shadow: 0 0 0 .2rem rgba(var(--var-rgbTitPri), .2);
    border-radius: var(--var-radBasBlo);
}

/* filas de productos de la venta */
.pv-fila {
    padding: .45rem .5rem;
    border-bottom: 1px solid var(--var-linSepFil);
}


    .pv-fila:last-child {
        border-bottom: 0;
    }

.pv-nombre {
    display: block;
    background: var(--var-fonNomPro);
    color: var(--var-oscTitPri);
    border-radius: var(--var-radChiNom);
    padding: .25rem .5rem;
}

/* opcion marcada en las listas de clientes y productos, con el azul de la tienda */
.lista-busqueda .list-group-item.active {
    background: var(--var-oscTitPri);
    border-color: var(--var-oscTitPri);
}


/* presupuesto importante en el padron de presupuestos */
.pv-venta.pv-importante {
    background-color: var(--var-fonPreImp);
    border-left: 4px solid var(--var-borPreImp);
}

/* cajas y combos: fondo suave y dato en semi negrita */
.form-control:not(.pv-control):not(:disabled),
.form-select:not(.pv-control):not(:disabled) {
    background-color: var(--var-fonCajCom);
    font-weight: 600;
}

    /* la caja donde se escribe queda en blanco para notar cual esta activa */
    .form-control:not(.pv-control):not(:disabled):focus,
    .form-select:not(.pv-control):not(:disabled):focus {
        background-color: #fff;
    }

/* el texto de ayuda (ej. "Agregar productos") sigue en letra normal */
.form-control::placeholder {
    font-weight: 400;
}


/* ===== Celular: cabecera pegada arriba y a los costados ===== */
@media (max-width: 767.98px) {

    /* sin espacio arriba de la pagina */
    .container-lg {
        padding-top: 0 !important;
    }

    /* sin margen a los costados y con las esquinas de arriba rectas */
    .pv-cabecera {
        margin-left: calc(var(--bs-gutter-x) * -.5);
        margin-right: calc(var(--bs-gutter-x) * -.5);
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
}