/* WP Facturación - Frontend Styles */

.wpf-invoice {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.wpf-invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
}

.wpf-company-info h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #000;
}

.wpf-company-info p {
    margin: 2px 0;
    font-size: 14px;
    color: #666;
}

.wpf-invoice-title h2 {
    margin: 0;
    font-size: 28px;
    color: #000;
    text-align: right;
}

.wpf-invoice-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.wpf-client-info,
.wpf-invoice-info {
    width: 48%;
}

.wpf-client-info h3,
.wpf-invoice-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.wpf-client-info p,
.wpf-invoice-info p {
    margin: 3px 0;
    font-size: 14px;
}

.wpf-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wpf-items-table th {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-weight: bold;
}

.wpf-items-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.wpf-items-table .wpf-text-right {
    text-align: right;
}

.wpf-totals {
    float: right;
    width: 300px;
    margin-top: 20px;
}

.wpf-totals table {
    width: 100%;
    border-collapse: collapse;
}

.wpf-totals td {
    padding: 8px;
    border-top: 1px solid #ddd;
}

.wpf-totals .wpf-total-row {
    font-weight: bold;
    border-top: 2px solid #000;
    font-size: 16px;
}

.wpf-invoice-footer {
    clear: both;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .wpf-invoice {
        padding: 10px;
    }
    
    .wpf-invoice-header {
        flex-direction: column;
    }
    
    .wpf-invoice-details {
        flex-direction: column;
    }
    
    .wpf-client-info,
    .wpf-invoice-info {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .wpf-totals {
        float: none;
        width: 100%;
    }
    
    .wpf-items-table {
        font-size: 12px;
    }
    
    .wpf-items-table th,
    .wpf-items-table td {
        padding: 5px;
    }
} 