/* Contuaire Facturas – estilos pestaña Mi Cuenta */

.cfw-facturas-wrapper {
    width: 100%;
}

.cfw-facturas-wrapper h2 {
    margin-bottom: 1.2em;
}

.cfw-no-facturas {
    color: #666;
    font-style: italic;
    padding: 1.5em 0;
}

/* Tabla de facturas */
.cfw-facturas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.cfw-facturas-table th,
.cfw-facturas-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
    vertical-align: middle;
}

.cfw-facturas-table thead th {
    background: #f7f7f7;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.cfw-facturas-table tbody tr:hover {
    background: #fafafa;
}

/* Botón de descarga */
.cfw-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px !important;
    font-size: 0.85em !important;
    text-decoration: none;
    transition: background 0.15s ease;
}

.cfw-dl-btn::before {
    content: "⬇";
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 640px) {
    .cfw-facturas-table thead {
        display: none;
    }

    .cfw-facturas-table tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 8px;
    }

    .cfw-facturas-table td {
        display: block;
        text-align: right;
        padding: 6px 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .cfw-facturas-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #555;
    }
}
