.vista-infaltables .mini-kpi-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}

.vista-infaltables .mini-kpi-box {
    flex: 1;
    padding: 4px 2px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease;
}

.vista-infaltables .mini-kpi-box div {
    line-height: 1.1;
}

.vista-infaltables .mini-kpi-box:hover {
    transform: translateY(-1px);
}

.vista-infaltables .kpi-info{
    background: linear-gradient(135deg,#4facfe,#00c6ff);
    color: white;
}
.vista-infaltables .kpi-success{
    background: linear-gradient(135deg,#43e97b,#38f9d7);
    color: #0b3d2e;
}
.vista-infaltables .kpi-warning{
    background: linear-gradient(135deg,#fddb92,#d1fdff);
    color: #5c4b00;
}
.vista-infaltables  .kpi-danger{
    background: linear-gradient(135deg,#ff9a9e,#fecfef);
    color: #5a1a1a;
}

.vista-infaltables .resumen-filtros{
    background: #eef3ff;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}
.vista-infaltables .resumen-filtros strong{
    color: #0d6efd;
}
.vista-infaltables .badge-filtro{
    background: #0d6efd;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    margin-right: 5px;
    font-size: 12px;
}

.vista-infaltables .progress{
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
    margin-top: 10px;
    height: 20px;
}
.vista-infaltables .progress-bar{
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: width .8s ease;
    animation: progressAnimation 1s ease;
}
.vista-infaltables .progress-bar.bg-danger{
    background: linear-gradient(90deg,#ff4d4d,#dc3545);
}
.vista-infaltables .progress-bar.bg-warning{
    background: linear-gradient(90deg,#ffd966,#ffc107);
    color: #000;
}
.vista-infaltables .progress-bar.bg-success{
    background: linear-gradient(90deg,#28c76f,#198754);
}
@keyframes progressAnimation{
    from{ width:0; }
}

/* ===== TITULO PRINCIPAL ===== */
.vista-infaltables .page-title{
    margin-bottom: 18px;
}
.vista-infaltables .page-title h1{
    font-weight: 700;
    font-size: 28px;
    letter-spacing: .3px;
    color: #2f2f2f;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.vista-infaltables .page-title h1 i{
    color: #6f42c1;
    font-size: 24px;
}

/* ===== CARDS ===== */
.vista-infaltables .card{
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: all .2s ease;
}
.vista-infaltables .card:hover{
    transform: translateY(-1px);
}
.vista-infaltables .card-body{
    padding: 22px;
}

/* ===== TABLAS ===== */
.vista-infaltables .table{
    margin-bottom: 0;
}
.vista-infaltables .table thead th{
    background: #f5f6f8;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}
.vista-infaltables .table tbody tr:hover{
    background: #fafafa;
}
.vista-infaltables .table td{
    vertical-align: middle;
}
.vista-infaltables .table-sm td{
    padding: 6px 8px;
}

/* ===== PANEL CLIENTES ===== */
.vista-infaltables .clientes-panel{
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 10px;
}
.vista-infaltables .filtros-clientes{
    margin-bottom: 15px;
}
.vista-infaltables #panel-clientes-global {
    animation: fadePanel .25s ease;
}
.vista-infaltables #panel-clientes-global .clientes-panel {
    background: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border-radius: 12px;
}
@keyframes fadePanel {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BOTONES ===== */
.vista-infaltables .btn{
    border-radius: 8px;
    font-weight: 600;
    transition: all .2s ease;
}
.vista-infaltables .btn:hover{
    transform: translateY(-1px);
}
.vista-infaltables .btn-outline-primary{
    font-weight: 500;
}
.vista-infaltables .btn-outline-primary:hover{
    transform: scale(1.03);
}
.vista-infaltables .btn-ver-clientes{
    font-size:11px;
    padding:4px 10px;
    border-radius:14px;
    line-height:1.2;
}

/* ===== BADGES ===== */
.vista-infaltables .badge{
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
}

/* ===== FORMULARIOS ===== */
.vista-infaltables label{
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
    display: inline-block;
}
.vista-infaltables .form-control{
    border-radius: 8px;
    border: 1px solid #dfe3e8;
    min-height: 42px;
    transition: all .2s ease;
}
.vista-infaltables .form-control:focus{
    border-color: #6f42c1;
    box-shadow: 0 0 0 .15rem rgba(111,66,193,.15);
}

/* ===== TITULOS DE SECCION ===== */
.vista-infaltables .titulo-seccion{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #2f2f2f;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 6px;
}
.vista-infaltables .titulo-seccion::before{
    content: "";
    width: 6px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg,#6f42c1,#512da8);
    display: inline-block;
    flex-shrink: 0;
}
.vista-infaltables .titulo-seccion::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    background: #e5d9ff;
    border-radius: 2px;
}
.vista-infaltables .titulo-seccion i{
    color:#6f42c1;
    font-size:15px;
}

/* ===== TEXTOS DE ESTADO ===== */
.vista-infaltables .estado-ok{
    color: #28a745;
    font-size: 16px;
}
.vista-infaltables .estado-no{
    color: #dc3545;
    font-size: 16px;
}

/* ===== TITULOS H5 ===== */
.vista-infaltables h5{
    font-weight: 700;
    color: #2f2f2f;
}

/* ===== LOADER ===== */
.loader-global{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-box{
    min-width: 240px;
    padding: 22px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    text-align: center;
    border: 1px solid #ece7fb;
}
.loader-spinner{
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border: 4px solid #e8defc;
    border-top: 4px solid #6f42c1;
    border-radius: 50%;
    animation: girarLoader 0.8s linear infinite;
}
.loader-text{
    font-size: 14px;
    font-weight: 700;
    color: #512da8;
    letter-spacing: .2px;
}
@keyframes girarLoader{
    100%{ transform: rotate(360deg); }
}
.loader-global{
    animation: fadeInLoader .2s ease;
}
@keyframes fadeInLoader{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

.vista-infaltables .infaltables-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;
}

.vista-infaltables .infaltables-hero-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    flex-wrap:wrap;
}

.vista-infaltables .infaltables-hero-title{
    margin:0;
    font-size:30px;
    font-weight:800;
    color:#2f2f2f;
    line-height:1.15;
    display:flex;
    align-items:center;
    gap:10px;
}

.vista-infaltables .infaltables-hero-title i{
    color:#6f42c1;
    font-size:24px;
}

.vista-infaltables .infaltables-hero-subtitle{
    margin-top:8px;
    color:#6b7280;
    font-size:14px;
}

@media (max-width: 768px){
    .vista-infaltables .infaltables-hero{
        padding:22px 20px;
    }

    .vista-infaltables .infaltables-hero-title{
        font-size:24px;
    }
}