:root {
    --primary: #2563eb;
    --surface: #ffffff;
    --background: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    
    /* Colores de estado */
    --success-bg: #dcfce7;
    --success-text: #166534;
    --warning-bg: #fef08a;
    --warning-text: #854d0e;
}


.header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Filtros */
.filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--background);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tabla */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: #f9fafb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

td {
    font-size: 0.95rem;
}

tbody tr:hover {
    background-color: #001d3a;
}

.invoice-id {
    font-weight: 600;
    color: var(--primary);
}

.amount {
    font-weight: 600;
}

/* Badges de Estado */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-paid {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.badge-pending {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

/* Botones de acción */
.action-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
}

.action-btn.pay {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.action-btn:hover {
    opacity: 0.9;
}