    .ventas-wrap{
        padding-bottom: 30px;
    }

    .ventas-hero{
        background: linear-gradient(135deg, #f5f2ff, #ffffff);
        border: 1px solid #e7ddff;
        border-radius: 22px;
        padding: 28px 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,.05);
        margin-bottom: 24px;
    }

    .ventas-hero-top{
        display:flex;
        justify-content:space-between;
        align-items:flex-start;
        gap:20px;
        flex-wrap:wrap;
    }

    .ventas-title{
        margin:0;
        font-size:30px;
        font-weight:800;
        color:#2f2f2f;
        line-height:1.15;
    }

    .ventas-subtitle{
        margin-top:8px;
        color:#6b7280;
        font-size:14px;
    }

    .btn-upload-modern{
        border:none;
        border-radius:14px;
        padding:12px 18px;
        font-weight:700;
        color:#fff;
        background:linear-gradient(135deg, #5b35b1, #7c4dff);
        box-shadow:0 10px 20px rgba(91,53,177,.18);
    }

    .btn-upload-modern:hover{
        color:#fff;
        transform:translateY(-1px);
    }

    .filtros-card{
        background:#fff;
        border:none;
        border-radius:22px;
        box-shadow:0 14px 35px rgba(0,0,0,.08);
        overflow:hidden;
        margin-bottom:24px;
    }

    .filtros-card-body{
        padding:24px;
    }

    .bloque-titulo{
        display:flex;
        align-items:center;
        gap:10px;
        font-size:18px;
        font-weight:800;
        color:#2f2f2f;
        margin-bottom:16px;
    }

    .bloque-icon{
        width:36px;
        height:36px;
        border-radius:12px;
        display:flex;
        align-items:center;
        justify-content:center;
        background:#f1eaff;
        color:#5b35b1;
        font-size:15px;
        flex-shrink:0;
    }

    .form-label-modern{
        font-size:13px;
        font-weight:700;
        color:#6b7280;
        margin-bottom:8px;
        text-transform:uppercase;
        letter-spacing:.4px;
    }

    .form-control,
    .form-select{
        min-height:46px;
        border-radius:12px !important;
        border:1px solid #dfe3e8;
        box-shadow:none;
    }

    .form-control:focus,
    .form-select:focus{
        border-color:#7c4dff;
        box-shadow:0 0 0 .18rem rgba(124,77,255,.12);
    }

    .btn-search-modern{
        border:none;
        border-radius:12px;
        min-height:46px;
        font-weight:800;
        color:#fff;
        background:linear-gradient(135deg, #5b35b1, #7c4dff);
        box-shadow:0 8px 18px rgba(91,53,177,.16);
    }

    .btn-search-modern:hover{
        color:#fff;
        transform:translateY(-1px);
    }

    .main-card{
        background:#fff;
        border:none;
        border-radius:22px;
        box-shadow:0 14px 35px rgba(0,0,0,.08);
        overflow:hidden;
    }

    .cliente-panel{
        background:linear-gradient(135deg, #5b35b1, #7c4dff);
        color:#fff;
        padding:28px;
    }

    .cliente-panel-title{
        font-size:28px;
        font-weight:800;
        line-height:1.15;
        margin:0 0 14px 0;
    }

    .cliente-chip-wrap{
        display:flex;
        flex-wrap:wrap;
        gap:12px;
    }

    .cliente-chip{
        display:flex;
        align-items:center;
        gap:12px;
        padding:14px 18px;
        border-radius:16px;
        background:rgba(255,255,255,.18);
        border:1px solid rgba(255,255,255,.22);
        min-width:220px;
        box-shadow:0 8px 18px rgba(0,0,0,.08);
    }

    .cliente-chip-icon{
        width:42px;
        height:42px;
        border-radius:12px;
        display:flex;
        align-items:center;
        justify-content:center;
        background:rgba(255,255,255,.18);
        color:#fff;
        font-size:16px;
        flex-shrink:0;
    }

    .cliente-chip-text{
        display:flex;
        flex-direction:column;
        line-height:1.2;
    }

    .cliente-chip-text small{
        font-size:11px;
        text-transform:uppercase;
        letter-spacing:.5px;
        color:rgba(255,255,255,.82);
        margin-bottom:4px;
    }

    .cliente-chip-text strong{
        font-size:15px;
        font-weight:800;
        color:#fff;
        word-break:break-word;
    }

    .main-card-body{
        padding:24px;
    }

    .info-grid{
        display:grid;
        grid-template-columns: repeat(4, minmax(0,1fr));
        gap:16px;
        margin-bottom:22px;
    }

    .info-box{
        background:#fafafa;
        border:1px solid #ececec;
        border-radius:18px;
        padding:18px;
        box-shadow:0 4px 16px rgba(0,0,0,.03);
    }

    .info-box-label{
        font-size:12px;
        font-weight:800;
        text-transform:uppercase;
        letter-spacing:.5px;
        color:#6b7280;
        margin-bottom:8px;
    }

    .info-box-value{
        font-size:15px;
        font-weight:700;
        color:#2f2f2f;
        line-height:1.5;
        word-break:break-word;
    }

    .btn-solicitud-modern{
        border:none;
        border-radius:12px;
        padding:11px 18px;
        font-weight:800;
        color:#fff;
        background:linear-gradient(135deg, #f59e0b, #f97316);
        box-shadow:0 10px 20px rgba(249,115,22,.18);
    }

    .btn-solicitud-modern:hover{
        color:#fff;
        transform:translateY(-1px);
    }

    .section-card{
        background:#fff;
        border:1px solid #efefef;
        border-radius:18px;
        padding:20px;
        box-shadow:0 4px 16px rgba(0,0,0,.03);
        margin-top:18px;
    }

    .section-title{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        flex-wrap:wrap;
        margin-bottom:14px;
    }

    .section-title-left{
        display:flex;
        align-items:center;
        gap:10px;
        font-size:18px;
        font-weight:800;
        color:#2f2f2f;
    }

    .section-icon{
        width:36px;
        height:36px;
        border-radius:12px;
        display:flex;
        align-items:center;
        justify-content:center;
        background:#f1eaff;
        color:#5b35b1;
        font-size:15px;
        flex-shrink:0;
    }

    .tabla-ventas-wrap{
        border:1px solid #ece7fb;
        border-radius:16px;
        overflow:hidden;
        background:#fff;
    }

    .tabla-ventas{
        margin-bottom:0;
    }

    .tabla-ventas thead th{
        background:linear-gradient(135deg, #f4efff, #ece4ff);
        color:#4b2aad;
        font-weight:800;
        font-size:13px;
        border:0;
        border-bottom:1px solid #e6dcff;
        padding:14px 12px;
    }

    .tabla-ventas tbody td{
        border:0;
        border-bottom:1px solid #f0edf8;
        padding:14px 12px;
        vertical-align:middle;
        font-size:14px;
        color:#2f2f2f;
        background:#fff;
    }

    .tabla-ventas tbody tr:hover td{
        background:#faf8ff;
    }

    .monto-badge{
        display:inline-block;
        padding:7px 12px;
        border-radius:999px;
        background:#eefaf3;
        color:#198754;
        font-weight:800;
        font-size:13px;
        border:1px solid #cdebd9;
    }

    .fecha-badge{
        display:inline-block;
        padding:7px 12px;
        border-radius:999px;
        background:#eef3ff;
        color:#335cbe;
        font-weight:700;
        font-size:13px;
        border:1px solid #d9e4ff;
    }

    .resumen-grafico-wrap{
        display:grid;
        grid-template-columns: 260px 1fr;
        gap:18px;
        align-items:stretch;
        margin-top:18px;
    }

    .kpi-promedio{
        background:linear-gradient(135deg, #eefaf3, #ffffff);
        border:1px solid #cdebd9;
        border-radius:18px;
        padding:20px;
        box-shadow:0 4px 16px rgba(0,0,0,.03);
        height:100%;
    }

    .kpi-promedio-label{
        font-size:12px;
        font-weight:800;
        text-transform:uppercase;
        letter-spacing:.5px;
        color:#2c7a4b;
        margin-bottom:10px;
    }

    .kpi-promedio-valor{
        font-size:28px;
        font-weight:900;
        color:#198754;
        line-height:1.2;
        word-break:break-word;
    }

    .grafico-card{
        background:#fff;
        border:1px solid #efefef;
        border-radius:18px;
        padding:20px;
        box-shadow:0 4px 16px rgba(0,0,0,.03);
    }

    .grafico-box{
        position:relative;
        min-height:320px;
    }

    .acciones-finales{
        display:flex;
        justify-content:flex-end;
        gap:12px;
        flex-wrap:wrap;
        margin-top:20px;
    }

    .btn-outline-modern{
        border:1px solid #d7dbe0;
        color:#4b5563;
        background:#fff;
        border-radius:12px;
        padding:11px 16px;
        font-weight:700;
        box-shadow:0 4px 10px rgba(0,0,0,.03);
    }

    .btn-outline-modern:hover{
        background:#f8f9fa;
        color:#111827;
    }

    .btn-warning-modern{
        border:none;
        border-radius:12px;
        padding:11px 16px;
        font-weight:800;
        color:#fff;
        background:linear-gradient(135deg, #f59e0b, #f97316);
        box-shadow:0 10px 20px rgba(249,115,22,.18);
    }

    .btn-warning-modern:hover{
        color:#fff;
        transform:translateY(-1px);
    }

    .modal-content{
        border:none;
        border-radius:18px;
        overflow:hidden;
        box-shadow:0 16px 40px rgba(0,0,0,.15);
    }

    .modal-header{
        background:#f5f2ff;
        border-bottom:1px solid #e8ddff;
    }

    .modal-title{
        font-weight:800;
        color:#2f2f2f;
    }

    .empty-box{
        background:#fff8e8;
        border:1px solid #f3e3b2;
        color:#8a5a00;
        border-radius:16px;
        padding:18px 20px;
        font-weight:700;
    }

    @media (max-width: 992px){
        .info-grid{
            grid-template-columns: repeat(2, minmax(0,1fr));
        }

        .resumen-grafico-wrap{
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px){
        .ventas-hero{
            padding:22px 20px;
        }

        .ventas-title{
            font-size:24px;
        }

        .cliente-panel-title{
            font-size:22px;
        }

        .cliente-chip-wrap{
            flex-direction:column;
        }

        .cliente-chip{
            width:100%;
            min-width:auto;
        }

        .info-grid{
            grid-template-columns: 1fr;
        }

        .section-title{
            flex-direction:column;
            align-items:flex-start;
        }

        .acciones-finales{
            flex-direction:column;
        }

        .acciones-finales .btn,
        .acciones-finales a{
            width:100%;
        }
    }

    @media (max-width: 768px){
    .ventas-wrap{
        padding-bottom:20px;
    }

    .ventas-hero{
        padding:18px 16px;
        border-radius:18px;
        margin-bottom:18px;
    }

    .ventas-title{
        font-size:22px;
        line-height:1.2;
    }

    .ventas-subtitle{
        font-size:13px;
        line-height:1.5;
    }

    .btn-upload-modern{
        width:100%;
        min-height:46px;
        margin-top:6px;
    }

    .filtros-card,
    .main-card{
        border-radius:18px;
    }

    .filtros-card-body,
    .main-card-body{
        padding:16px;
    }

    .bloque-titulo{
        font-size:16px;
        align-items:flex-start;
    }

    .bloque-icon,
    .section-icon{
        width:34px;
        height:34px;
        border-radius:10px;
        font-size:14px;
    }

    .form-label-modern{
        font-size:12px;
        margin-bottom:6px;
    }

    .form-control,
    .form-select{
        min-height:44px;
        font-size:14px;
    }

    .btn-search-modern{
        min-height:44px;
    }

    .cliente-panel{
        padding:18px 16px;
    }

    .cliente-panel-title{
        font-size:20px;
        margin-bottom:12px;
        word-break:break-word;
    }

    .cliente-chip-wrap{
        gap:10px;
    }

    .cliente-chip{
        padding:12px 14px;
        border-radius:14px;
    }

    .cliente-chip-icon{
        width:38px;
        height:38px;
        border-radius:10px;
        font-size:14px;
    }

    .cliente-chip-text strong{
        font-size:14px;
    }

    .info-grid{
        gap:12px;
        margin-bottom:18px;
    }

    .info-box{
        padding:14px;
        border-radius:14px;
    }

    .info-box-label{
        font-size:11px;
        margin-bottom:6px;
    }

    .info-box-value{
        font-size:14px;
    }

    .btn-solicitud-modern{
        width:100%;
        min-height:46px;
    }

    .section-card{
        padding:14px;
        border-radius:16px;
        margin-top:14px;
    }

    .section-title-left{
        font-size:16px;
    }

    .tabla-ventas-wrap{
        border-radius:14px;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .tabla-ventas{
        min-width:520px;
    }

    .tabla-ventas thead th{
        font-size:12px;
        padding:12px 10px;
        white-space:nowrap;
    }

    .tabla-ventas tbody td{
        font-size:13px;
        padding:12px 10px;
        white-space:nowrap;
    }

    .monto-badge,
    .fecha-badge{
        font-size:12px;
        padding:6px 10px;
    }

    .resumen-grafico-wrap{
        gap:14px;
        margin-top:14px;
    }

    .kpi-promedio,
    .grafico-card{
        padding:16px;
        border-radius:16px;
    }

    .kpi-promedio-label{
        font-size:11px;
    }

    .kpi-promedio-valor{
        font-size:24px;
    }

    .grafico-box{
        min-height:240px;
    }

    .acciones-finales{
        gap:10px;
        margin-top:16px;
    }

    .btn-outline-modern,
    .btn-warning-modern{
        width:100%;
        min-height:46px;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .modal-dialog{
        margin:12px;
    }

    .modal-body,
    .modal-footer{
        padding:14px;
    }

    .empty-box{
        padding:16px;
        font-size:14px;
        line-height:1.5;
    }
}

@media (max-width: 480px){
    .ventas-wrap{
        padding-left:10px;
        padding-right:10px;
    }

    .ventas-title{
        font-size:20px;
    }

    .cliente-panel-title{
        font-size:18px;
    }

    .home-btn,
    .btn-upload-modern,
    .btn-search-modern,
    .btn-solicitud-modern,
    .btn-outline-modern,
    .btn-warning-modern{
        font-size:14px;
    }

    .grafico-box{
        min-height:210px;
    }

    .kpi-promedio-valor{
        font-size:21px;
    }
}

.grafico-card{
    min-width: 0;
}

.grafico-box{
    position: relative;
    width: 100%;
    min-height: 320px;
    height: 320px;
    overflow: hidden;
}

.grafico-box canvas{
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px){
    .grafico-box{
        min-height: 220px;
        height: 220px;
    }
}

@media (max-width: 480px){
    .grafico-box{
        min-height: 200px;
        height: 200px;
    }
}

.resumen-grafico-wrap > *{
    min-width: 0;
}