    /* ===== Estilos generales de tarjetas y layout ===== */
    .kpi-card {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #ffffff;
        padding: 14px 14px 10px;
        height: 100%;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
        transition: transform .08s ease-out, box-shadow .08s ease-out, border-color .08s ease-out;
    }

    .kpi-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
        border-color: #d1d5db;
    }

    .kpi-icon-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: #eff6ff;
        color: #1d4ed8;
        margin-bottom: 4px;
        font-size: 16px;
    }

.kpi-title {
        margin: 0;
        font-weight: 600;
        color: #374151;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

.kpi-subtitle {
        font-size: 12px;
        color: #4b5563;
    }

    .kpi-value {
        margin: 6px 0 0;
        font-size: 21px;
        font-weight: 700;
        color: #111827;
    }

    .section-title {
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #374151;
        margin: 18px 0 10px;
    }

    .container-fluid .text-muted {
        color: #4b5563 !important;
    }

.small-link {
        font-size: 13px;
        text-decoration: none;
        color: #1d4ed8;
    }

    .small-link:hover {
        text-decoration: underline;
    }

    .table-min td,
    .table-min th {
        padding: .5rem .6rem;
    }

    .card-soft {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #ffffff;
        padding: 14px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    }

    .chart-box {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        border-radius: 8px;
        background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    }

    .h-220 {
        height: 220px;
    }

    .h-260 {
        height: 260px;
    }

    .h-280 {
        height: 280px;
    }

    .h-320 {
        height: 320px;
    }

    .chart-box>canvas {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        display: block;
    }

    /* ===== Detalles visuales extra ===== */
    .tile {
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
        transition: transform .08s ease-out, box-shadow .08s ease-out, background .08s, border-color .08s;
        background: #ffffff;
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
    }

    .tile:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
        background: #f9fafb;
        border-color: #d1d5db;
    }

    .tile-tittle {
        font-weight: 600;
        font-size: 13px;
        margin-bottom: 4px;
    }

    .tile-icon i {
        font-size: 20px;
        margin-bottom: 4px;
    }

.tile-icon p {
        font-size: 12px;
        color: #374151;
        margin-bottom: 0;
    }

    .badge-soft {
        border-radius: 999px;
        padding: 2px 8px;
        font-size: 11px;
        font-weight: 600;
    }

    .badge-soft-neutral {
        background: #e5e7eb;
        color: #374151;
    }

    .badge-soft-success {
        background: #dcfce7;
        color: #166534;
    }

    .badge-soft-warning {
        background: #fef9c3;
        color: #854d0e;
    }

    .badge-soft-danger {
        background: #fee2e2;
        color: #b91c1c;
    }

    /* Alertas dashboard */
    .alert-dashboard {
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 8px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .alert-dashboard i {
        font-size: 18px;
        margin-top: 3px;
    }

    .alert-dashboard-title {
        font-weight: 600;
        margin-bottom: 2px;
    }

.alert-dashboard small {
        font-size: 12px;
        color: #374151;
    }

    .alerts-wrapper {
        max-height: 300px;
        overflow-y: auto;
    }

.btn.btn-light {
        color: #111827;
        background-color: transparent;
        border-color: #9ca3af;
    }

    /* ===== Seguimiento de cobranza (UX/UI) ===== */
    .cobranza-shell {
        border: 1px solid #dbe3ef;
        border-radius: 14px;
        background: linear-gradient(180deg, #f8fbff 0%, #ffffff 58%);
        padding: 14px;
    }

    .cobranza-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
    }

    .cobranza-head h2 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .cobranza-head small {
        color: #64748b;
        font-weight: 600;
    }

    .cob-kpi {
        border: 1px solid #dbe3ef;
        border-radius: 12px;
        background: #fff;
        padding: 10px 12px;
        height: 100%;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    }

    .cob-kpi .title {
        font-size: 12px;
        color: #475569;
        margin-bottom: 4px;
    }

    .cob-kpi .value {
        font-size: 18px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.1;
    }

    .cob-kpi .meta {
        font-size: 12px;
        color: #334155;
        margin-top: 3px;
    }

    .cob-kpi.promesa {
        border-left: 4px solid #0ea5e9;
    }

    .cob-kpi.atraso {
        border-left: 4px solid #f59e0b;
    }

    .cob-kpi.riesgo {
        border-left: 4px solid #ef4444;
    }

    .cob-kpi.total {
        border-left: 4px solid #22c55e;
    }

    .seg-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 11px;
        font-weight: 700;
        margin-right: 6px;
        margin-bottom: 6px;
    }

    .seg-chip b {
        font-size: 12px;
    }

    .seg-pendiente {
        background: #e2e8f0;
        color: #334155;
    }

    .seg-contactado {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .seg-promesa {
        background: #dcfce7;
        color: #166534;
    }

    .seg-incumplido {
        background: #fef3c7;
        color: #92400e;
    }

    .seg-cerrado {
        background: #ecfccb;
        color: #3f6212;
    }

    .cob-table {
        border: 1px solid #dbe3ef;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .cob-table thead th {
        background: #0f172a;
        color: #f8fafc;
        font-size: 12px;
        border: 0;
        padding: 10px 8px;
    }

    .cob-table tbody td {
        vertical-align: top;
        border-top: 1px solid #edf2f7;
        padding: 9px 8px;
    }

    .seg-form .linea1 {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 6px;
    }

    .seg-form .linea2 {
        margin-top: 6px;
    }

    .seg-form .form-control {
        border-color: #cbd5e1;
    }

    .btn-guardar-seg {
        min-width: 86px;
    }

    .acc-col .btn {
        min-width: 102px;
    }

    @media (max-width: 576px) {
        .kpi-card {
            padding: 10px 10px 8px;
        }

        .kpi-title {
            font-size: 12px;
        }

        .kpi-value {
            font-size: 18px;
        }

        .h-260,
        .h-280,
        .h-320 {
            height: 200px;
        }

        .cobranza-shell {
            padding: 10px;
        }

        .cobranza-head {
            flex-direction: column;
            align-items: flex-start;
        }

        .seg-form .linea1 {
            grid-template-columns: 1fr;
        }

        .btn-guardar-seg {
            width: 100%;
        }
    }
