﻿/* ===================================== */
/* CONTENEDOR */
/* ===================================== */

.ventas-container {
    max-width: 1300px;
    margin: auto;
    padding: 30px;
    color: white;
}

/* ===================================== */
/* TITULO */
/* ===================================== */

.ventas-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
    letter-spacing: 0.3px;
}

/* ===================================== */
/* RESUMEN */
/* ===================================== */

.ventas-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ===================================== */
/* CARD RESUMEN */
/* ===================================== */

.card-resumen {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    transition: all .25s ease;
}

    .card-resumen:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 45px rgba(0,0,0,0.9);
    }

    .card-resumen span {
        font-size: 13px;
        color: rgba(255,255,255,0.6);
    }

    .card-resumen h2 {
        margin-top: 6px;
        font-size: 24px;
        font-weight: 700;
        color: white;
    }

/* ===================================== */
/* FILTROS */
/* ===================================== */

.ventas-filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* INPUTS */

.buscador,
.filtro-fecha {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 14px;
    outline: none;
    transition: all .2s ease;
}

    .buscador::placeholder {
        color: rgba(255,255,255,0.5);
    }

    .buscador:focus,
    .filtro-fecha:focus {
        border: 1px solid #3b82f6;
        box-shadow: 0 0 0 1px rgba(59,130,246,0.35);
    }

/* ===================================== */
/* BOTON FILTRAR */
/* ===================================== */

.btn-filtrar {
    background: linear-gradient(135deg,#319e9f,#319e9F);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all .25s ease;
}

    .btn-filtrar:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(49,158,159,0.45);
    }

/* ===================================== */
/* TABLA */
/* ===================================== */

.tabla-responsive {
    overflow-x: auto;
}

/* TABLA */

.ventas-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.7);
}

    /* HEADER */

    .ventas-table thead {
        background: linear-gradient(135deg,#0f172a,#1e293b);
        color: white;
    }

    /* CELDAS */

    .ventas-table th,
    .ventas-table td {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: left;
        color: rgba(255,255,255,0.85);
    }

    /* HOVER FILAS */

    .ventas-table tbody tr:hover {
        background: rgba(255,255,255,0.05);
    }

/* ===================================== */
/* BOLETA */
/* ===================================== */

.boleta {
    font-weight: 700;
    color: #3b82f6;
}

/* ===================================== */
/* PRECIO */
/* ===================================== */

.precio {
    font-weight: 700;
    color: #22c55e;
}

/* ===================================== */
/* BOTON ANULAR */
/* ===================================== */

.btn-anular {
    background: linear-gradient(135deg,#ef4444,#dc2626);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s ease;
}

    .btn-anular:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(220,38,38,0.5);
    }

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */

@media(max-width:768px) {

    .ventas-container {
        padding: 20px;
    }

    .ventas-title {
        font-size: 22px;
    }

    .card-resumen h2 {
        font-size: 20px;
    }
}
