/**
 * MCC Ops Integration - Frontend Styles
 */

.mcc-ops-invoices-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mcc-ops-invoices-section h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #2a5298;
    padding-bottom: 10px;
}

.mcc-ops-invoices-table {
    width: 100%;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mcc-ops-invoices-table thead th {
    background: #2a5298;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.mcc-ops-invoices-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.mcc-ops-invoices-table tbody tr:hover {
    background: #f8f9fa;
}

.view-invoice-details {
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
}

.view-invoice-details:hover {
    text-decoration: underline;
}

.overdue-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.invoice-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

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

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

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

.pay-invoice-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.pay-invoice-btn:hover {
    background: #218838;
}

.invoice-details-content {
    padding: 20px;
    background: #f8f9fa;
}

.invoice-items-table {
    width: 100%;
    margin-top: 15px;
}

.invoice-items-table th {
    background: #e9ecef;
    padding: 10px;
    text-align: left;
}

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

.invoice-items-table tfoot td {
    border-top: 2px solid #dee2e6;
    padding-top: 15px;
}

.invoice-items-table .total-row td {
    font-size: 1.1em;
    color: #2a5298;
}
