/* ==========================================================================
   MÓDULO ANTICIPOS & PAGOS — ESTILOS
   ========================================================================== */

/* Tarjeta de anticipo */
.anticipo-card {
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--glass-border);
}

.anticipo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Bloque financiero */
.anticipo-financial-block {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 12px;
}

.anticipo-financial-block .progress {
    border-radius: 3px;
    overflow: hidden;
}

/* Items / badges de paquetes */
.anticipo-card .badge {
    overflow-wrap: anywhere;
}

/* ===== SEGUIMIENTO DE PAGOS ===== */
.anticipo-seguimiento {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid var(--glass-border);
}

.anticipo-payment-history {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.anticipo-payment-history::-webkit-scrollbar {
    width: 4px;
}

.anticipo-payment-history::-webkit-scrollbar-track {
    background: transparent;
}

.anticipo-payment-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 2px;
}

.anticipo-payment-item {
    transition: background 0.12s ease;
    border-radius: 4px;
    padding: 4px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.anticipo-payment-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.anticipo-payment-item:last-child {
    border-bottom: none;
}

/* ===== HISTORIAL COMPLETO (modal detalle) ===== */
#modalAnticipoDetail .anticipo-payment-history {
    max-height: 260px;
}

#modalAnticipoDetail .anticipo-payment-item {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Grid de anticipos */
#anticipo-grid .progress {
    border-radius: 3px;
    overflow: hidden;
}

/* Badge de estado */
.anticipo-card .badge {
    white-space: nowrap;
}
