/* AvComp Invoice System - Frontend Styles */

.avcomp-invoice-portal {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.avcomp-invoice-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.avcomp-invoice-header h1 {
    margin: 0 0 10px 0;
    color: #333;
}

.avcomp-invoice-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.avcomp-invoice-status.paid {
    background: #d4edda;
    color: #155724;
}

.avcomp-invoice-status.unpaid {
    background: #fff3cd;
    color: #856404;
}

.avcomp-invoice-status.overdue {
    background: #f8d7da;
    color: #721c24;
}

.avcomp-invoice-details {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.avcomp-invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.avcomp-invoice-items th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.avcomp-invoice-items td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.avcomp-invoice-totals {
    text-align: right;
    margin-top: 20px;
}

.avcomp-invoice-totals table {
    margin-left: auto;
    min-width: 300px;
}

.avcomp-invoice-totals td {
    padding: 8px 12px;
}

.avcomp-invoice-total {
    font-size: 20px;
    font-weight: bold;
    background: #f8f9fa;
}

.avcomp-payment-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.avcomp-payment-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.avcomp-payment-button:hover {
    background: #005a87;
    color: white;
}

.avcomp-cc-fee-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .avcomp-invoice-portal {
        padding: 10px;
    }
    
    .avcomp-invoice-header,
    .avcomp-invoice-details,
    .avcomp-payment-section {
        padding: 20px;
    }
    
    .avcomp-invoice-items {
        font-size: 14px;
    }
    
    .avcomp-invoice-items th,
    .avcomp-invoice-items td {
        padding: 8px;
    }
}