/* ========== TABLEAU COMPARATIF DES PLANS ========== */
.plans-table-container {
    margin-top: 1rem;
    overflow-x: auto;
}

.plans-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.plans-comparison-table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    min-width: 600px;
}

.plans-row {
    display: flex;
    border-bottom: 1px solid #eef2f6;
}

.plans-row:last-child {
    border-bottom: none;
}

.plans-cell {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    border-right: 1px solid #eef2f6;
}

.plans-cell:last-child {
    border-right: none;
}

.plans-label {
    flex: 0.8;
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
    color: #1e293b;
}

.plans-plan-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.plan-name {
    font-weight: 700;
    font-size: 1rem;
}

.plan-status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.plan-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.plan-status-badge.archived {
    background: #fef3c7;
    color: #b45309;
}

.plans-description {
    font-size: 0.8rem;
    color: #475569;
    text-align: left;
}

.plans-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.plans-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.3rem;
    border-radius: 0.4rem;
    transition: all 0.2s;
}

.plans-actions .edit-plan-btn {
    color: #3b82f6;
}
.plans-actions .edit-plan-btn:hover {
    background: #e0e7ff;
    transform: translateY(-1px);
}

.plans-actions .toggle-plan-btn {
    color: #f59e0b;
}
.plans-actions .toggle-plan-btn:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

.plans-actions .delete-plan-btn {
    color: #ef4444;
}
.plans-actions .delete-plan-btn:hover {
    background: #fee2e2;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .plans-comparison-table {
        overflow-x: auto;
    }
    .plans-row {
        min-width: 600px;
    }
}