/**
 * Weavelinx Invoice Styles
 *
 * @package Weavelinx_License_Server
 * @since 1.0.0
 */

/* ==========================================================================
   Invoices List
   ========================================================================== */

.wl-invoices-wrapper {
    margin: 0;
    padding: 0;
}

.wl-invoices-wrapper h2 {
    margin-bottom: 20px;
}

.wl-no-invoices {
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
    border-radius: 4px;
}

.wl-no-invoices p {
    margin-bottom: 15px;
    color: #666;
}

/* ==========================================================================
   Invoices Table
   ========================================================================== */

.wl-invoices-table {
    width: 100%;
    border-collapse: collapse;
}

.wl-invoices-table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.wl-invoices-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.wl-invoices-table tr:hover {
    background: #f9f9f9;
}

.wl-invoice-number strong {
    color: #0073aa;
}

.wl-invoice-items {
    max-width: 200px;
}

.wl-invoice-items em {
    color: #666;
    font-size: 12px;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.wl-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.wl-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.wl-status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.wl-status-on-hold {
    background: #fff3e0;
    color: #ef6c00;
}

.wl-status-pending {
    background: #fce4ec;
    color: #c2185b;
}

.wl-status-cancelled,
.wl-status-failed,
.wl-status-refunded {
    background: #ffebee;
    color: #c62828;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */

.wl-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 5px;
}

.wl-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.wl-btn-small {
    padding: 4px 10px;
    font-size: 11px;
}

.wl-btn-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.wl-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

/* ==========================================================================
   Business Information Fieldset (Account Details)
   ========================================================================== */

.woocommerce-EditAccountForm fieldset {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woocommerce-EditAccountForm fieldset legend {
    font-weight: 600;
    padding: 0 10px;
    color: #333;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 768px) {
    .wl-invoices-table thead {
        display: none;
    }

    .wl-invoices-table,
    .wl-invoices-table tbody,
    .wl-invoices-table tr,
    .wl-invoices-table td {
        display: block;
    }

    .wl-invoices-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 10px;
    }

    .wl-invoices-table td {
        border: none;
        padding: 8px 10px;
        text-align: left;
    }

    .wl-invoices-table td::before {
        content: attr(data-title) ": ";
        font-weight: 600;
        display: inline-block;
        min-width: 100px;
    }

    .wl-invoice-actions {
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }

    .wl-invoice-actions::before {
        display: none;
    }
}
