/* ==============================
   WFPL – Base
============================== */

.wfpl-cc-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    font-size: 14px;
}

.wfpl-cc-table thead {
    background: #f8fafc;
}

.wfpl-cc-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.wfpl-cc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}

.wfpl-cc-table tbody tr:hover {
    background: #f1f5f9;
    transition: background 0.15s ease;
}
.wfpl-cc-latest {
    background: #ecfeff;
    border-left: 4px solid #0ea5e9;
}

.wfpl-cc-latest td {
    font-weight: 600;
}
th[data-sort] {
    cursor: pointer;
    user-select: none;
    position: relative;
}

th.asc::after {
    content: " ▲";
    font-size: 11px;
    color: #64748b;
}

th.desc::after {
    content: " ▼";
    font-size: 11px;
    color: #64748b;
}
/* ==============================
   Registro de pago
============================== */

.wfpl-cc-payment-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.wfpl-cc-payment-box h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}
.wfpl-cc-payment-box input,
.wfpl-cc-payment-box select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    background: #ffffff;
}

.wfpl-cc-payment-box input:focus,
.wfpl-cc-payment-box select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}
.wfpl-cc-payment-box button {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wfpl-cc-payment-box button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.wfpl-cc-payment-box button:active {
    transform: translateY(0);
}
/* ==============================
   Mobile
============================== */

@media (max-width: 768px) {

    .wfpl-cc-table thead {
        display: none;
    }

    .wfpl-cc-table,
    .wfpl-cc-table tbody,
    .wfpl-cc-table tr,
    .wfpl-cc-table td {
        display: block;
        width: 100%;
    }

    .wfpl-cc-table tr {
        margin-bottom: 14px;
        background: #ffffff;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    }

    .wfpl-cc-table td {
        border: none;
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        font-size: 13px;
    }

    .wfpl-cc-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        margin-right: 10px;
    }
}
